Skip to content

Commit

Permalink
ci: uwsgi tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
farioas committed Sep 28, 2022
1 parent d2350c0 commit 20ddc58
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions deploy/uwsgi.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[uwsgi]
chdir = /label-studio/label_studio
http = 0.0.0.0:8080
http-keepalive = true
module = core.wsgi:application
master = true
cheaper = true
Expand Down Expand Up @@ -72,9 +71,12 @@ lazy-apps = True
# This configuration will restart a worker process after any of the following events:
# 5000 requests have been handled
# The worker has allocated 2 GB of memory
# 1 hour has passed
max-requests = 5000
reload-on-rss = 2048
max-worker-lifetime = 3600
max-worker-lifetime-delta = 120
worker-reload-mercy = 300

# 1 hour has passed
; Remove these options because of https://github.com/unbit/uwsgi/issues/1760
;max-worker-lifetime = 3600
;max-worker-lifetime-delta = 120

0 comments on commit 20ddc58

Please sign in to comment.