- 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).
推薦閱讀
- 漫話大數(shù)據(jù)
- 企業(yè)數(shù)字化創(chuàng)新引擎:企業(yè)級PaaS平臺HZERO
- 數(shù)據(jù)挖掘原理與實踐
- Python數(shù)據(jù)分析與挖掘?qū)崙?zhàn)
- 劍破冰山:Oracle開發(fā)藝術(shù)
- Visual Studio 2015 Cookbook(Second Edition)
- Creating Mobile Apps with Sencha Touch 2
- 智能數(shù)據(jù)時代:企業(yè)大數(shù)據(jù)戰(zhàn)略與實戰(zhàn)
- Oracle 12c云數(shù)據(jù)庫備份與恢復(fù)技術(shù)
- “互聯(lián)網(wǎng)+”時代立體化計算機組
- 大數(shù)據(jù)技術(shù)入門
- 深入淺出 Hyperscan:高性能正則表達式算法原理與設(shè)計
- 信息學(xué)競賽寶典:數(shù)據(jù)結(jié)構(gòu)基礎(chǔ)
- 數(shù)據(jù)庫應(yīng)用系統(tǒng)開發(fā)實例
- Solaris操作系統(tǒng)原理實驗教程