Skip to content

Commit

Permalink
Limit gunicorn workers for this platform-test repo
Browse files Browse the repository at this point in the history
So we don't have to spin up larger (/more expensive) ECS Tasks for these
basic integration tests.

Restore config from 525e90d
  • Loading branch information
doshitan committed Dec 2, 2024
1 parent bd47ce2 commit cbd051c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/gunicorn.conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
# We use 'os.sched_getaffinity(pid)' not 'os.cpu_count()' because it returns only allowable CPUs.
# os.sched_getaffinity(pid): Return the set of CPUs the process with PID pid is restricted to.
# os.cpu_count(): Return the number of CPUs in the system.
workers = len(os.sched_getaffinity(0)) * 2
threads = 4
workers = 1
threads = 2

0 comments on commit cbd051c

Please sign in to comment.