Docker&Kubernetes

Kubernetes Cluster Autoscaler

2020-11-19  本文已影响0人  Secret_Sun

什么是 Cluster Autoscaler

CA 模块拆解

核心代码逻辑

main.go - run(healthCheck) - autoscaler.RunOnce(loopStart)
  core/autoscaler.go - static_autoscaler.go - RunOnce # 判断是否需要 Up Or Down
    scale_up.go - ScaleUp - context.ExpanderStrategy.BestOption
      estimator/binpacking_estimator.go #核心算法
Up & Down

注意点

文档总结

Ps. 别人写的很好 ...

上一篇 下一篇

猜你喜欢

热点阅读