Tune suggested master disk sizes for big clusters.

Looks like the get-master-root-disk-size() and get-master-disk-size() functions didn't anticipate
clusters bigger than 2K nodes.

In https://github.com/kubernetes/kubernetes/issues/72976 we found out
that 100GB may be not enough for large clusters (5K nodes) when it comes
to master root disk size.

Updating both get-master-root-disk-size() and get-master-disk-size() to
make them consistent and match cluster sizes with get-master-size()
function.
pull/564/head
Matt Matejczyk 2019-01-29 10:18:06 +01:00
parent 81af41836b
commit 12904ac911
1 changed files with 6 additions and 6 deletions

View File

@ -43,12 +43,12 @@ function get-master-size {
# NUM_NODES # NUM_NODES
function get-master-root-disk-size() { function get-master-root-disk-size() {
local suggested_master_root_disk_size="20GB" local suggested_master_root_disk_size="20GB"
if [[ "${NUM_NODES}" -gt "1000" ]]; then if [[ "${NUM_NODES}" -gt "500" ]]; then
suggested_master_root_disk_size="50GB"
fi
if [[ "${NUM_NODES}" -gt "2000" ]]; then
suggested_master_root_disk_size="100GB" suggested_master_root_disk_size="100GB"
fi fi
if [[ "${NUM_NODES}" -gt "3000" ]]; then
suggested_master_root_disk_size="500GB"
fi
echo "${suggested_master_root_disk_size}" echo "${suggested_master_root_disk_size}"
} }
@ -56,10 +56,10 @@ function get-master-root-disk-size() {
# NUM_NODES # NUM_NODES
function get-master-disk-size() { function get-master-disk-size() {
local suggested_master_disk_size="20GB" local suggested_master_disk_size="20GB"
if [[ "${NUM_NODES}" -gt "1000" ]]; then if [[ "${NUM_NODES}" -gt "500" ]]; then
suggested_master_disk_size="100GB" suggested_master_disk_size="100GB"
fi fi
if [[ "${NUM_NODES}" -gt "2000" ]]; then if [[ "${NUM_NODES}" -gt "3000" ]]; then
suggested_master_disk_size="200GB" suggested_master_disk_size="200GB"
fi fi
echo "${suggested_master_disk_size}" echo "${suggested_master_disk_size}"