chore: update gunicorn worker configuration to use single worker with multiple threads

This commit is contained in:
Rizqi 2026-06-23 00:22:02 +07:00
parent 92620df1bb
commit 046689bd09

View File

@ -5,7 +5,8 @@ module.exports = {
// Gunicorn inside the virtualenv as the production WSGI server // Gunicorn inside the virtualenv as the production WSGI server
script: './venv/bin/gunicorn', script: './venv/bin/gunicorn',
args: [ args: [
'--workers', '4', '--workers', '1',
'--threads', '4',
'--bind', '127.0.0.1:5000', '--bind', '127.0.0.1:5000',
'--timeout', '300', // long timeout for backup operations '--timeout', '300', // long timeout for backup operations
'--keep-alive', '5', '--keep-alive', '5',