diff --git a/server/fishtest/rundb.py b/server/fishtest/rundb.py index 19624165a..838bf7fdb 100644 --- a/server/fishtest/rundb.py +++ b/server/fishtest/rundb.py @@ -978,7 +978,7 @@ def calc_itp(self, run, count): # It is very important that the following semaphore is initialized # with a value strictly less than the number of Waitress threads. - task_semaphore = threading.Semaphore(2) + task_semaphore = threading.Semaphore(5) def worker_cap(self, run, worker_info): # Estimate how many games a worker will be able to run diff --git a/server/production.ini b/server/production.ini index 10066bcc3..0115a2ef0 100644 --- a/server/production.ini +++ b/server/production.ini @@ -32,7 +32,7 @@ trusted_proxy_headers = x-forwarded-for x-forwarded-host x-forwarded-proto x-for clear_untrusted_proxy_headers = yes connection_limit = 100 -threads = 4 +threads = 10 ### # logging configuration