Kubernetes 水平 Pod 自动缩放器 - 检测自定义指标的时间

问题描述

Kubernetes 中基于 prometheus 的自定义指标的流程如下图所示:

enter image description here

因此,可以推导出,HPA 检测到目标度量值修改最大时间是:(1)prometheus 需要的时间从 pod 中抓取读数 (Tprometheus),(2) prometheus 适配器从 prometheus 读取指标所需的时间 (Tprometheus_adapter) 和 (3) 指标聚合器 (Tmetrics_aggregator) 从适配器获取读数所需的时间,最后 (4) 所需的时间HPA 以从指标聚合器 (T_HPA) 获取读数。

Ttotal = Tprometheus + Tprometheus_adapter + Tmetrics_aggregator + T_HPA

这个结论准确吗?

有关如何配置所有这些计时(Tprometheus、Tprometheus_adapter、Tmetrics_aggregator、T_HPA)的任何提示

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)