From 55ca4e05d700068c9dbf530389ffd53daa1154fb Mon Sep 17 00:00:00 2001 From: yuanzhou Date: Thu, 3 Apr 2025 14:57:17 -0400 Subject: [PATCH] uWSGi with 12 workers and 24 threads --- src/uwsgi.ini | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/uwsgi.ini b/src/uwsgi.ini index 85b3cfd7..0ffffd98 100644 --- a/src/uwsgi.ini +++ b/src/uwsgi.ini @@ -9,14 +9,14 @@ module = wsgi:application # Send logs to stdout instead of file so docker picks it up and writes to AWS CloudWatch log-master=true -# Master with 16 worker processes (based on CPU number) +# Master with 12 worker processes (based on CPU number) master = true -processes = 16 +processes = 12 # Enable the multithreading within uWSGI # Launch the application across multiple threads inside each process enable-threads = True -threads = 16 +threads = 24 # Use http socket for integration with nginx running on the same machine socket = localhost:5000