-
Notifications
You must be signed in to change notification settings - Fork 77
Open
Description
cat << EOF | tee uwsgi2.ini
[uwsgi]
#socket = /var/run/uwsgi.sock
# http = :9090
http = :5050
chmod-socket = 777
chdir = /workspace/app
module = config.wsgi:application
master = true
processes = 8
threads = 2
vacuum = true
harakiri = 30
max-requests = 10000
stats = :9202
memory-report = true
enable-threads = true
logger = internalservererror file:/tmp/uwsgi-errors.log
# auto-reading of POST content
# required when client sent HTTP POST request, but body
# wan't read by app as he does not have permission for
# this action
post-buffering = 1
uid = 1000
gid = 1000
# Graceful reload
touch-reload = uwsgi-reload
master-fifo = uwsgi-fifo
EOF
uwsgi --ini uwsgi2.ini
for i in {1..5}; do curl http://localhost:5050/admin/login/ &>/dev/null; done
uwsgi-2.0.19.1 - Fri Feb 5 22:03:13 2021 - req: 22 - RPS: 36559 - lq: 0 - tx: 47.6K
node: - cwd: /workspace/app - uid: 1000 - gid: 1000 - masterpid: 1220
WID % PID REQ RPS EXC SIG STATUS AVG RSS VSZ TX ReSpwn HC RunT LastSpwn
8 100.0 1238 22 36559 0 0 idle 6ms 98.3M 624.7M 47.6K 1 0 717.66 21:57:03
1 0.0 1224 0 0 0 0 idle 0ms 0 0 0 1 0 0.0 21:57:03
2 0.0 1226 0 0 0 0 idle 0ms 0 0 0 1 0 0.0 21:57:03
3 0.0 1228 0 0 0 0 idle 0ms 0 0 0 1 0 0.0 21:57:03
4 0.0 1230 0 0 0 0 idle 0ms 0 0 0 1 0 0.0 21:57:03
5 0.0 1232 0 0 0 0 idle 0ms 0 0 0 1 0 0.0 21:57:03
6 0.0 1234 0 0 0 0 idle 0ms 0 0 0 1 0 0.0 21:57:03
7 0.0 1236 0 0 0 0 idle 0ms 0 0 0 1 0 0.0 21:57:03So it always increments the very first process with WID 8, but all others are staying 0.
So if I increase the number of curl requests to let's say
for i in {1..5}; do curl http://localhost:5050/admin/login/ &>/dev/null; donethen I do get process with 2 processes (visible at Linux top 98% one and around 17% another) doing the work, while all others are staying iddle with 0% CPU utilization, but still uwsgitop shows 0 for everyone but WID 8.
Am I missing something?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels