From d911ebbc3ffee2511c51bcee876733511cc42936 Mon Sep 17 00:00:00 2001 From: wojtekt Date: Thu, 24 Jan 2019 13:29:28 +0100 Subject: [PATCH] Correlate max-inflight values in GCE with master VM sizes --- cluster/gce/gci/configure-helper.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cluster/gce/gci/configure-helper.sh b/cluster/gce/gci/configure-helper.sh index 629a2fd3322..a2e429f6a44 100644 --- a/cluster/gce/gci/configure-helper.sh +++ b/cluster/gce/gci/configure-helper.sh @@ -1598,9 +1598,9 @@ function start-kube-apiserver { fi if [[ -n "${NUM_NODES:-}" ]]; then # If the cluster is large, increase max-requests-inflight limit in apiserver. - if [[ "${NUM_NODES}" -ge 3000 ]]; then + if [[ "${NUM_NODES}" -gt 3000 ]]; then params+=" --max-requests-inflight=3000 --max-mutating-requests-inflight=1000" - elif [[ "${NUM_NODES}" -ge 1000 ]]; then + elif [[ "${NUM_NODES}" -gt 500 ]]; then params+=" --max-requests-inflight=1500 --max-mutating-requests-inflight=500" fi # Set amount of memory available for apiserver based on number of nodes.