mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-11-16 22:29:09 +01:00
Give leader-elected controllers longer leases
The snapshot-controller (1,059 restarts), the CNPG operator and Envoy Gateway restart whenever a lease renewal takes more than 10 seconds, which happens when heavy writes stall dqlite on the node's SSD. Raise lease duration, renew deadline and retry period from 15s/10s/2s to 60s/40s/5s so they ride out stalls of up to ~40 seconds. With one replica, or a standby, a slower takeover costs nothing here.
This commit is contained in:
1 parent
9014898fc5
commit
858904384c
3 files changed
+35
No files matched your search
@@ -13,6 +13,19 @@ spec:
|
||||
chart: gateway-helm
|
||||
# v1.9 supports Kubernetes 1.33 to 1.36
|
||||
targetRevision: v1.9.2
|
||||
helm:
|
||||
values: |
|
||||
config:
|
||||
envoyGateway:
|
||||
provider:
|
||||
kubernetes:
|
||||
# Ride out dqlite stalls of up to ~40s instead of restarting
|
||||
# when a lease renewal takes over 10s
|
||||
# (docs/upgrade-k8s-1.33.md).
|
||||
leaderElection:
|
||||
leaseDuration: 60s
|
||||
renewDeadline: 40s
|
||||
retryPeriod: 5s
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: envoy-gateway-system
|
||||
|
||||
Reference in new issue
Block a user