mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
Increase max requests inflight limits in gce for very large clusters
This commit is contained in:
parent
e36fa85ec2
commit
1bcdfdbe00
@ -1455,7 +1455,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 1000 ]]; then
|
if [[ "${NUM_NODES}" -ge 3000 ]]; then
|
||||||
|
params+=" --max-requests-inflight=3000 --max-mutating-requests-inflight=1000"
|
||||||
|
elif [[ "${NUM_NODES}" -ge 1000 ]]; 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.
|
||||||
@ -2562,4 +2564,4 @@ fi
|
|||||||
reset-motd
|
reset-motd
|
||||||
prepare-mounter-rootfs
|
prepare-mounter-rootfs
|
||||||
modprobe configs
|
modprobe configs
|
||||||
echo "Done for the configuration for kubernetes"
|
echo "Done for the configuration for kubernetes"
|
||||||
|
@ -529,6 +529,11 @@ function compute-kube-apiserver-params {
|
|||||||
if [[ -n "${KUBE_APISERVER_REQUEST_TIMEOUT:-}" ]]; then
|
if [[ -n "${KUBE_APISERVER_REQUEST_TIMEOUT:-}" ]]; then
|
||||||
params+=" --min-request-timeout=${KUBE_APISERVER_REQUEST_TIMEOUT}"
|
params+=" --min-request-timeout=${KUBE_APISERVER_REQUEST_TIMEOUT}"
|
||||||
fi
|
fi
|
||||||
|
if [[ "${NUM_NODES}" -ge 3000 ]]; then
|
||||||
|
params+=" --max-requests-inflight=3000 --max-mutating-requests-inflight=1000"
|
||||||
|
elif [[ "${NUM_NODES}" -ge 1000 ]]; then
|
||||||
|
params+=" --max-requests-inflight=1500 --max-mutating-requests-inflight=500"
|
||||||
|
fi
|
||||||
if [[ -n "${RUNTIME_CONFIG:-}" ]]; then
|
if [[ -n "${RUNTIME_CONFIG:-}" ]]; then
|
||||||
params+=" --runtime-config=${RUNTIME_CONFIG}"
|
params+=" --runtime-config=${RUNTIME_CONFIG}"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user