Skip to content

Commit 1d0a529

Browse files
authored
Merge pull request #16 from opencitations/2025-fix-gunicorn-conffile
update gunicorn configuration
2 parents aca3d23 + a88d0ea commit 1d0a529

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

docker_version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.6.3sync
1+
1.6.4sync

gunicorn.conf.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,19 @@
33
import subprocess
44

55
# Worker configuration
6-
workers = 6
6+
workers = 5
77
worker_class = "gevent"
88
worker_connections = 300
99
timeout = 1200
1010
graceful_timeout = 180
1111
bind = "0.0.0.0:8080"
1212

1313
# Memory limits
14-
max_requests = 1000
15-
max_requests_jitter = 100
14+
max_requests = 10000
15+
max_requests_jitter = 200
16+
17+
#The number of seconds to wait for requests on a Keep-Alive connection.
18+
keepalive = 20
1619

1720
# Logging
1821
accesslog = None

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ APScheduler==3.10.1
4242
markdown
4343
redis
4444
gunicorn>=22.0.0
45-
gevent
45+
gevent>=1.4
4646
zope.event

0 commit comments

Comments
 (0)