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