From a8aac495b19631290354a3fe4a55e1d606ab4832 Mon Sep 17 00:00:00 2001 From: Cristhian Garcia Date: Mon, 12 Aug 2024 14:09:52 -0500 Subject: [PATCH] fix: add uwsgi tweaks for closed connection (#131) 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