当前位置:网站首页>Y55. Chapter III kubernetes from entry to proficiency -- HPA controller and metrics server (28)
Y55. Chapter III kubernetes from entry to proficiency -- HPA controller and metrics server (28)
2022-07-04 04:34:00 【Raymond999999】
11.HPA Controller and metrics-server
11.1 HPA Automatic telescopic pod Number
kubectl autoscale Automatic control at k8s Running in a cluster pod Number ( Horizontal auto retraction ), It needs to be set up in advance pod Scope and trigger conditions .
k8s from 1.1 The version began to add the name HPA(Horizontal Pod Autoscaler) The controller , For implementation based on pod China Resources (CPU/Memory) The utilization rate is adjusted pod Realization of automatic expansion and contraction function of , Earlier versions can only be based on Heapster Component implementation for CPU Utilization as trigger condition , But in k8s 1.11 Version in use Metrices Server Complete data collection , Then the collected data is passed through API(Aggregated API, Summary API), for example metrics.k8s.io、custom.metrics.k8s.io、external.metrics.k8s.io, Then provide the data to HPA Controller to query , To achieve a resource utilization based on pod The purpose of expansion and contraction .
The control manager defaults to every 15s( Can pass –horizontal-pod-autoscaler-sync-period modify ) Inquire about metrics Resource usage of
The following three types are supported metrics The index type :
-> predefined metrics( such as Pod Of CPU) Calculated in terms of utilization
-> Self defined Pod metrics, At original value (raw value) Method of calculation
-> Self defined object metrics
Two kinds of support metrics A query :
->Heapster
-> Self defined REST API
Support more metrics
边栏推荐
- Leetcode skimming: binary tree 09 (minimum depth of binary tree)
- Rhcsa 06 - suid, sgid, sticky bit (to be added)
- Krypton saikr daily question - CTF
- 96% of the collected traffic is prevented by bubble mart of cloud hosting
- Redis:集合Set类型数据的操作命令
- Exploration and practice of eventbridge in the field of SaaS enterprise integration
- Kivy教程之 更改背景颜色(教程含源码)
- The "functional art" jointly created by Bolang and Virgil abloh in 2021 to commemorate the 100th anniversary of Bolang brand will debut during the exhibition of abloh's works in the museum
- Senior developers tell you, how to write excellent code?
- Statistical genetics: Chapter 3, population genetics
猜你喜欢

Emlog user registration plug-in is worth 80 yuan

Experience sharing of epidemic telecommuting | community essay solicitation

Redis:有序集合zset类型数据操作命令

一个漂亮的API文档生成工具

多位科技公司创始人向Entrepreneur First提供高达1.58亿美元的C轮融资,协助其投资下一代全球创新者

Rhcsa 04 - process management

Leetcode brush questions: binary tree 05 (flip binary tree)

Architecture training graduation design + summary

Exercises in quantum mechanics

R语言中如何查看已安装的R包
随机推荐
北漂程序员,月薪20K,一年攒15W,正常吗?
Krypton saikr daily question - CTF
Balloon punching and Boolean operation problems (extremely difficult)
y55.第三章 Kubernetes从入门到精通 -- HPA控制器及metrics-server(二八)
A beautiful API document generation tool
Application scheme of Puyuan ds1000z series digital oscilloscope in communication principle experiment
浅谈一篇优质的小红书文案需要具备什么
Redis:集合Set类型数据的操作命令
Use NRM and NVM to manage your NPM source and node versions
96% of the collected traffic is prevented by bubble mart of cloud hosting
资深开发人员告诉你,怎样编写出优秀的代码?
tdk-lambda电源主要应用
Leetcode 121 best time to buy and sell stock (simple)
Main applications of TDK lambda power supply
Exercises in quantum mechanics
什么是上下文?
Exploration and practice of eventbridge in the field of SaaS enterprise integration
Unity资源路径
C language bidirectional linked list first edition
Asynchronous development process - touch your hand and lead you to realize a promise