[uwsgi]
# Accept only valid configuration options
strict = true

# Process management info
master = true
single-interpreter = true
need-app = true
auto-procname = true
procname-prefix = "drift-base "
die-on-term = true
vacuum = true
uid = uwsgi
pidfile = /tmp/uwsgi.pid

# Threading management info
enable-threads = true
threads = without
gevent = 1000
workers = %(1 * %k)

# Application info
module=driftbase.flask.driftbaseapp:app

# Web servers for nginx reverse proxy, local testing and uwsgitop.
# Number of listening sockets set to a rather high number.
socket = 0.0.0.0:10080
http-socket = :8080
stats=127.0.0.1:9191
listen = 128	

ignore-sigpipe = true            #
ignore-write-errors = true       # stop error spam when socket is disconnected
disable-write-exception = true   #

log-format = {"@timestamp": "%(ltime)", "levelname": "INFO", "name": "uwsgi", "method": "%(method)", "uri": "%(uri)", "status": %(status), "remote_addr": "%(addr)", "request_size": %(cl), "response_time_ms": %(msecs), "response_size": %(size), "message": "%(method) %(uri)"}

[uwsgi]
# Accept only valid configuration options
strict = true

# Process management info
master = true
single-interpreter = true
need-app = true
auto-procname = true
procname-prefix = "drift-base "
die-on-term = true
vacuum = true
uid = uwsgi
pidfile = /tmp/uwsgi.pid

# Threading management info
enable-threads = true
threads = without
gevent = 1000
workers = %(4 * %k)

# Application info
module=driftbase.flask.driftbaseapp:app

# Web servers for nginx reverse proxy, local testing and uwsgitop.
# Number of listening sockets set to a rather high number.
socket = 0.0.0.0:10080
http-socket = :8080
stats=127.0.0.1:9191
listen = 128	

ignore-sigpipe = true            #
ignore-write-errors = true       # stop error spam when socket is disconnected
disable-write-exception = true   #

log-format = {"@timestamp": "%(ltime)", "levelname": "INFO", "name": "uwsgi", "method": "%(method)", "uri": "%(uri)", "status": %(status), "remote_addr": "%(addr)", "request_size": %(cl), "response_time_ms": %(msecs), "response_size": %(size), "message": "%(method) %(uri)"}

Change to four workers per CPU
Change to four workers per CPU
