From a8cbf65857fa2cdbd47e74b26f03323128d76a5e Mon Sep 17 00:00:00 2001 From: Cristhian Garcia Date: Mon, 12 Aug 2024 12:30:05 -0500 Subject: [PATCH] fix: add uwsgi tweaks for closed connection (#126) fix: add readiness probe for lms chore: remove startup probe and increase timeout of readiness probe chore: restore startup probe --- 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