简体   繁体   English

可以从指标服务器获取哪些指标以进行水平Pod自动缩放

[英]What metrics can be fetched from metrics-server for Horizontal Pod Autoscaling

I am working on a use case related to Horizontal Pod Autoscaling. 我正在研究与“水平Pod自动缩放”有关的用例。 I am able to fetch memory and CPU usage from the metrics server in order to decide on scale out (found this after reading multiple blogs). 我可以从指标服务器获取内存和CPU使用率,以决定是否进行横向扩展(在阅读多个博客后即可找到此信息)。

I wish to know if any of the other standard metrics such as throughput, disk usage, resource consumption etc. can be fetched from the metrics server. 我想知道是否可以从指标服务器中获取其他任何标准指标,例如吞吐量,磁盘使用率,资源消耗等。 Have not been able to find anything on the same. 一直找不到相同的东西。

You can find all available metrics from Documentation of kube-state-metrics for all available resources. 您可以从kube-state-metrics的文档中找到所有可用资源的所有可用度量。

Also, as mentioned in Horizontal Pod Autoscaler documentation you can use custom metrics 另外,如Horizo​​ntal Pod Autoscaler文档中所述,您可以使用自定义指标

The Horizontal Pod Autoscaler automatically scales the number of pods in a replication controller, deployment or replica set based on observed CPU utilization (or, with custom metrics support, on some other application-provided metrics). Horizo​​ntal Pod Autoscaler基于观察到的CPU利用率(或借助自定义指标支持,基于其他一些应用程序提供的指标)自动缩放复制控制器,部署或副本集中的Pod数量。 Note that Horizontal Pod Autoscaling does not apply to objects that can't be scaled, for example, DaemonSets. 请注意,水平窗格自动缩放不适用于无法缩放的对象,例如DaemonSets。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM