Skip to content

Commit

Permalink
Add gunicorn config (#551)
Browse files Browse the repository at this point in the history
Co-authored-by: Sarah Widder <[email protected]>
  • Loading branch information
sarah-widder and sarah-widder authored Jan 30, 2024
1 parent 649129c commit 5ac4ae9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions gunicorn.conf.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5ac4ae9

Please sign in to comment.