Commit b0437a3d authored by wojtekt's avatar wojtekt

Correlate max-inflight values in GCE with master VM sizes

parent a0ad3763
...@@ -1563,9 +1563,9 @@ function start-kube-apiserver { ...@@ -1563,9 +1563,9 @@ function start-kube-apiserver {
fi fi
if [[ -n "${NUM_NODES:-}" ]]; then if [[ -n "${NUM_NODES:-}" ]]; then
# If the cluster is large, increase max-requests-inflight limit in apiserver. # 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" 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" params+=" --max-requests-inflight=1500 --max-mutating-requests-inflight=500"
fi fi
# Set amount of memory available for apiserver based on number of nodes. # Set amount of memory available for apiserver based on number of nodes.
......
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