We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0124725 commit 4633dedCopy full SHA for 4633ded
app/backend/gunicorn.conf.py
@@ -1,4 +1,5 @@
1
import multiprocessing
2
+import os
3
4
max_requests = 1000
5
max_requests_jitter = 50
@@ -9,5 +10,9 @@
9
10
# https://learn.microsoft.com/en-us/troubleshoot/azure/app-service/web-apps-performance-faqs#why-does-my-request-time-out-after-230-seconds
11
12
num_cpus = multiprocessing.cpu_count()
-workers = (num_cpus * 2) + 1
13
+if os.getenv("WEBSITE_SKU") == "LinuxFree":
14
+ # Free tier reports 2 CPUs but can't handle multiple workers
15
+ workers = 1
16
+else:
17
+ workers = (num_cpus * 2) + 1
18
worker_class = "uvicorn.workers.UvicornWorker"
0 commit comments