当前位置:网站首页>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
边栏推荐
- 网络 - VXLAN
- 优秀的测试/开发程序员是怎么修炼的?该往哪走......
- RHCSA 03 - 文件的基础权限
- GUI 应用:socket 网络聊天室
- Emlog用户注册插件 价值80元
- C语言单向链表练习
- leetcode刷题:二叉树05(翻转二叉树)
- Dry goods | detailed explanation of webshell Foundation
- Rhcsa 06 - suid, sgid, sticky bit (to be added)
- UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0x98 in position 1093: illegal multibyte sequence
猜你喜欢
Unity draws the trajectory of pinball and billiards
UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0x98 in position 1093: illegal multibyte sequence
ModStartBlog 现代化个人博客系统 v5.2.0 源码下载
R语言dplyr中的Select函数变量列名
Wechat official account infinite callback authorization system source code
5张图告诉你:同样是职场人,差距怎么这么大?
苹果CMS仿西瓜视频大气响应式视频模板源码
MySQL JDBC编程
Longest increasing subsequence problem (do you really know it)
十字路口通行优先权,十字路口通行规则图解
随机推荐
Flink learning 8: data consistency
DP83848+网线热拔插
RHCSA 01 - 创建分区与文件系统
R语言中如何查看已安装的R包
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
Emlog user registration plug-in is worth 80 yuan
Why use node
Kivy教程之 更改背景颜色(教程含源码)
Modstartblog modern personal blog system v5.2.0 source code download
北漂程序员,月薪20K,一年攒15W,正常吗?
NFT新的契机,多媒体NFT聚合平台OKALEIDO即将上线
Pytest basic self-study series (I)
Virtual commodity account trading platform source code_ Support personal QR code collection
96% of the collected traffic is prevented by bubble mart of cloud hosting
ModStartBlog 现代化个人博客系统 v5.2.0 源码下载
RHCSA 06 - suid, sgid, sticky bit(待补充)
(指针)编写函数void fun(int x,int *pp,int *n)
PPt 教程,如何在 PowerPoint 中将演示文稿另存为 PDF 文件?
AcWing第 58 场周赛
leetcode刷题:二叉树07(二叉树的最大深度)