Skip to content

Commit

Permalink
Config updates to UWSGI
Browse files Browse the repository at this point in the history
  • Loading branch information
fbanados committed Aug 26, 2024
1 parent 4f7da78 commit df006ba
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/morphodict/site/uwsgi.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ master = true
# How I decided the initial settings (2020-03-11):
# 2 * #logical-cores + 1
# altlab-itw has 2 logical cores (😭😭😭)
processes = 5
processes = 7
# This is the number of interpreters that uwsgi juggles WITHIN a single process.
# I have no idea how this affects things.
threads = 2
Expand Down Expand Up @@ -42,4 +42,13 @@ hook-post-app = print:Application loaded!
hook-accepting-once = exec:echo uWSGI worker ready to accept requests! pid: $PPID

# To know how much ram we are using
memory-report = true
memory-report = true

listen = 2048
max-requests = 4096

# These two are intended to avoid issues when requests take too long, which happens some times.
http-timeout = 60
harakiri = 70

logto = /var/log/uwsgi.log

0 comments on commit df006ba

Please sign in to comment.