简体   繁体   English

监视gke上的CPU / mem使用情况

[英]monitoring CPU/mem usage on gke

I recently launched with gke and kubernetes in production. 我最近在生产中推出了gke和kubernetes。 I have regular outages with no obvious reasons. 我有定期停电,没有明显的原因。 No event shows anything, pods are not restarting and seems stable. 没有任何事件显示任何内容,pods没有重启并且似乎稳定。 I have a similar qa env that has no issue at all whereas it's way smaller. 我有一个类似的qa env,根本没有问题,而它的方式更小。

Where can I find potential infos on the outage reason? 我在哪里可以找到停电原因的潜在信息?

You can see monitoring data for your cluster using Stackdriver . 您可以使用Stackdriver查看群集的监视数据。 There's a brief walkthrough of how to use it for GKE in this blog post . 这篇博客文章中简要介绍了如何将它用于GKE。 You may also want to check out the general Kubernetes application troubleshooting guide . 您可能还想查看一般的Kubernetes应用程序故障排除指南

What are the symptoms of the outage? 停电有什么症状?

Stack driver makes you pay and configure it... kubernetes comes with a tool for it... just use this: 堆栈驱动程序让你付费并配置它... kubernetes附带了一个工具...只需使用它:

kubectl top nodes

al@host:~/$ kubectl top nodes
NAME                             CPU(cores)   CPU%      MEMORY(bytes)   MEMORY%
gke-learn-pool-1-10f60e0a-s44c   104m         11%       1008Mi          86%

You can also go under clusters -> Cluster -> nodes -> Node 您也可以进入集群 - >集群 - >节点 - >节点

在此输入图像描述

Update: Stack Driver deprecated all load monitoring plugins. 更新:堆栈驱动程序已弃用所有负载监视插件。 It's K8s or the highway now. 现在是K8或高速公路。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在kubernetes上获得mem的最大使用率和pod的cpu使用率 - how to get max usage of mem and cpu usage of pod on kubernetes kubernetes-dashboard 中缺少 Pod 的 MEM 和 CPU 使用率 - Missing MEM and CPU usage for pod in the kubernetes-dashboard 如何评估 Linux 中特定命令/docker 的 CPU 和 Mem 使用率? - How to evaluate the CPU and Mem usage for speccific command/docker in linux? 实时监控k8s容器中的CPU使用率/ CPU限制 - Realtime monitoring of CPU usage/CPU limit in k8s container 为什么 GKE Workload 的 CPU 使用率不等于其 Pod 的 CPU 使用率之和? - Why the CPU usage of a GKE Workload is not equal to the sum of the CPU usage of its pods? 如何使用普罗米修斯作为监控来计算kube.netes中容器的cpu使用率? - How to calculate containers' cpu usage in kubernetes with prometheus as monitoring? 在 Stackdriver 和 Istio 上监控 GKE - Monitoring GKE on Stackdriver and Istio GKE 容器被“Memory cgroup out of memory”杀死,但监控、本地测试和 pprof 显示使用量远低于限制 - GKE container killed by 'Memory cgroup out of memory' but monitoring, local testing and pprof shows usage far below limit GKE 限制 RAM 和 CPU - GKE Limit RAM & CPU 如何用cpu / mem区分不同的节点 - How to distinguish different nodes with cpu/mem
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM