From 5ac4ae9448de39ffceefc8386c441f80421637fe Mon Sep 17 00:00:00 2001 From: Sarah Widder Date: Mon, 29 Jan 2024 16:24:15 -0800 Subject: [PATCH] Add gunicorn config (#551) Co-authored-by: Sarah Widder --- gunicorn.conf.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 gunicorn.conf.py diff --git a/gunicorn.conf.py b/gunicorn.conf.py new file mode 100644 index 0000000000..53e990fd10 --- /dev/null +++ b/gunicorn.conf.py @@ -0,0 +1,9 @@ +import multiprocessing + +bind = "0.0.0.0" + +timeout = 230 +# https://learn.microsoft.com/en-us/troubleshoot/azure/app-service/web-apps-performance-faqs#why-does-my-request-time-out-after-230-seconds + +num_cpus = multiprocessing.cpu_count() +workers = (num_cpus * 2) + 1 \ No newline at end of file