From f5cb1a1d1c4023419e546e49d4408119c29d9d6e Mon Sep 17 00:00:00 2001 From: Cristhian Garcia Date: Wed, 17 Jul 2024 15:23:27 -0500 Subject: [PATCH] fix: add uwsgi tweaks for closed connection fix: add readiness probe for lms chore: remove startup probe and increase timeout of readiness probe chore: restore startup probe (cherry picked from commit 33937d2be2b01cdf3af7308fd86f37d64a4226b9) --- drydock/patches/uwsgi-config | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 drydock/patches/uwsgi-config diff --git a/drydock/patches/uwsgi-config b/drydock/patches/uwsgi-config new file mode 100644 index 00000000..673d0acb --- /dev/null +++ b/drydock/patches/uwsgi-config @@ -0,0 +1,14 @@ +# Fix 502 errors for closed connections +http-keepalive = 1 +add-header = Connection: Keep-Alive + +# Better startup/shutdown in docker: +die-on-term = true +lazy-apps = false +need-app = true +no-defer-accept = true + +# Other settings +master = true +py-call-osafterfork = true +vacuum = true