Skip to content

Commit

Permalink
perf: ⚡️ worker_shutdown_timeout: 240s -> 440s (#79)
Browse files Browse the repository at this point in the history
perf: ⚡️ lifecycle.preStop: SIGTERM -> SIGKILL

perf: ⚡️ control (1 at a time) teardown of pods (previously pods were being removed before the new pod is
ready)
  • Loading branch information
jaskaransarkaria authored Mar 1, 2024
1 parent 0ded266 commit 6da2b76
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions templates/values.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@ nameOverride: ${name_override}
controller:
image:
chroot: false
terminationGracePeriod: 600
replicaCount: ${replica_count}
maxUnavailable: 1
priorityClassName: system-cluster-critical
minReadySeconds: 10
lifecycle:
preStop:
exec:
command: ["/bin/sh", "-c", "sleep 30; /usr/local/openresty/nginx/sbin/nginx -c /etc/nginx/nginx.conf -s quit; while pgrep -x nginx; do sleep 1; done"]

%{ if enable_modsec ~}
extraVolumes:
Expand Down Expand Up @@ -152,6 +159,7 @@ controller:
memory: 512Mi

config:
worker-shutdown-timeout: "440s"
enable-modsecurity: ${enable_modsec}
enable-owasp-modsecurity-crs: ${enable_owasp}
server-tokens: "false"
Expand Down

0 comments on commit 6da2b76

Please sign in to comment.