摘要: Autoscaler 控制器与聚合 API 获取到 Pod 性能指标数据之后,基于下面的算法计算出目标 Pod 副本数量,与当前运行的 Pod 副本数量进行对比,决定是否需要进行扩缩容操作: desiredReplicas = ceil[currentReplicas * ( currentMetr 阅读全文
posted @ 2023-06-01 17:07 Dus 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 节选自: https://github.com/kubernetes/enhancements/blob/master/keps/sig-autoscaling/853-configurable-hpa-scale-velocity/README.md#algorithm-pseudocode ** 阅读全文
posted @ 2023-06-01 14:02 Dus 阅读(103) 评论(0) 推荐(0) 编辑