本文介绍了GKE集群中的水平自动缩放器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在GKE上运行了水平吊舱自动定标器.它可以工作,但是对工作量增加的响应速度很慢,因此我想尝试修改几个kube-controller-manager参数,具体是:

I have horizontal pod autoscaler running on GKE. It works but its slow to respond to increases in workload, so I would like to try modifying a couple of the kube-controller-manager parameters, specifically:

-水平吊舱自动定标器高档延时--horizo​​ntal-pod-autoscaler-downscale-delay

--horizontal-pod-autoscaler-upscale-delay--horizontal-pod-autoscaler-downscale-delay

但是唯一可用的CLI似乎是kubectl.我已经搜索过文档和客户端API,但找不到任何方法,实际上,此链接表明在GKE上可能无法实现:

But the only CLI available seems to be kubectl. I have scoured docs and the client API but can find no way to do it, in fact this link suggested it may not be possible on GKE:

更改horizo​​ntal-pod-autoscaler-sync-period用gke

有人知道是否有办法吗?

Does anyone know if there is a way to do it?

谢谢!

推荐答案

必须在kube-controller-manager中配置这些标志,并且由于您无法将标志传递给GKE集群,因此无法修改GKE上的自动缩放器设置.

These flags must be configured in the kube-controller-manager and since you cannot pass flags to the GKE cluster it is impossible to modify the autoscaler settings on GKE.

这篇关于GKE集群中的水平自动缩放器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-22 21:52