From 12981ffad22f5e44420d40ea9298b6ff83c0bfc2 Mon Sep 17 00:00:00 2001 From: ppigazzini Date: Sat, 6 Jul 2024 09:36:48 +0200 Subject: [PATCH] Raise pserve threads and semaphores --- server/fishtest/rundb.py | 2 +- server/production.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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