- Google Cloud Platform for Architects
- Vitthal Srinivasan Janani Ravi Judy Raj
- 140字
- 2021-06-25 20:48:36
Scaling nodes with the cluster autoscaler
For automatic resizing of your clusters based on nodes, you need to use something known as the cluster autoscaler. This will periodically check and optimize the size of your cluster, either increasing or reducing the number of instances. Let's say that your container cluster is larger than it needs to be and there are nodes that do not have any pods scheduled, those nodes will be deleted by the cluster autoscaler. On the other hand, if your cluster container is too small and if you have pods that are facing inordinate delays before they are run, the cluster autoscaler will add nodes and scale up your cluster:
gcloud container clusters create [CLUSTER-NAME] --num-nodes=5 \
--enable-autoscaling --min-nodes=3 --max-nodes=10 [--zone=[ZONE] \ --project=[PROJECT-ID]]
Notice how the scaling of nodes is carried out using gcloud (not kubectl).
推薦閱讀
- MySQL數據庫進階實戰
- 公有云容器化指南:騰訊云TKE實戰與應用
- Learning JavaScriptMVC
- 企業級數據與AI項目成功之道
- 一個64位操作系統的設計與實現
- MATLAB Graphics and Data Visualization Cookbook
- Hadoop大數據開發案例教程與項目實戰(在線實驗+在線自測)
- 智慧城市中的大數據分析技術
- The Natural Language Processing Workshop
- 數據賦能
- MySQL技術內幕:InnoDB存儲引擎
- Arquillian Testing Guide
- 成功之路:ORACLE 11g學習筆記
- Tableau商業分析從新手到高手(視頻版)
- 敏捷數據分析工具箱:深入解析ADW+OAC