config: reduced gunicorn backlog default to handle less connections per worker

This commit is contained in:
RhodeCode Admin 2023-02-09 11:00:33 +01:00
parent f051e2a56e
commit 971b015bdf
2 changed files with 6 additions and 0 deletions

View file

@ -80,6 +80,9 @@ asyncore_use_poll = true
; The maximum number of simultaneous clients. Valid only for gevent
#worker_connections = 10
; The maximum number of pending connections worker will queue to handle
#backlog = 64
; Max number of requests that worker will handle before being gracefully restarted.
; Prevents memory leaks, jitter adds variability so not all workers are restarted at once.
#max_requests = 1000

View file

@ -63,6 +63,9 @@ worker_class = gevent
; The maximum number of simultaneous clients per worker. Valid only for gevent
worker_connections = 10
; The maximum number of pending connections worker will queue to handle
backlog = 64
; Max number of requests that worker will handle before being gracefully restarted.
; Prevents memory leaks, jitter adds variability so not all workers are restarted at once.
max_requests = 1000