Skip to content

Commit 3de1269

Browse files
committed
chore(gunicorn): add keepalive
1 parent f188a1f commit 3de1269

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

rootfs/drycc/gunicorn/config.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@
2121
else:
2222
bind = '0.0.0.0:8000'
2323

24-
workers = int(os.environ.get('GUNICORN_WORKERS', 2))
24+
workers = int(os.environ.get('GUNICORN_WORKERS', 4))
25+
timeout = int(os.environ.get('GUNICORN_TIMEOUT', 30))
26+
keepalive = int(os.environ.get('GUNICORN_KEEPALIVE', 60))
2527
worker_class = "uvicorn.workers.UvicornWorker"
2628
pythonpath = dirname(dirname(dirname(realpath(__file__))))
27-
timeout = 1200
2829
pidfile = '/tmp/gunicorn.pid'
2930
logger_class = 'drycc.gunicorn.logging.Logging'
3031
loglevel = 'info'

0 commit comments

Comments
 (0)