Commit 12904ac9 authored by Matt Matejczyk's avatar Matt Matejczyk

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.
parent 81af4183
......@@ -43,12 +43,12 @@ function get-master-size {
# NUM_NODES
function get-master-root-disk-size() {
local suggested_master_root_disk_size="20GB"
if [[ "${NUM_NODES}" -gt "1000" ]]; then
suggested_master_root_disk_size="50GB"
fi
if [[ "${NUM_NODES}" -gt "2000" ]]; then
if [[ "${NUM_NODES}" -gt "500" ]]; then
suggested_master_root_disk_size="100GB"
fi
if [[ "${NUM_NODES}" -gt "3000" ]]; then
suggested_master_root_disk_size="500GB"
fi
echo "${suggested_master_root_disk_size}"
}
......@@ -56,10 +56,10 @@ function get-master-root-disk-size() {
# NUM_NODES
function get-master-disk-size() {
local suggested_master_disk_size="20GB"
if [[ "${NUM_NODES}" -gt "1000" ]]; then
if [[ "${NUM_NODES}" -gt "500" ]]; then
suggested_master_disk_size="100GB"
fi
if [[ "${NUM_NODES}" -gt "2000" ]]; then
if [[ "${NUM_NODES}" -gt "3000" ]]; then
suggested_master_disk_size="200GB"
fi
echo "${suggested_master_disk_size}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment