Commit d9b1cf67 authored by David Johnson's avatar David Johnson

Change gnocchi-api service unit for queens; run uwsgi ourselves.

Basically, gnocchi-api was something like ncpus * 32 uwsgi threads, and
that was just killing some systems on open files (usually leading to
memcached death, which effectively paralyzes everything).

So now we start uwsgi ourselves so that we can control the number of
open files.  Seems to stabilize the ship.
parent e468946b
......@@ -2933,8 +2933,10 @@ User=gnocchi
Group=gnocchi
Type=simple
WorkingDirectory=~
ExecStart=/usr/bin/gnocchi-api
Restart=on-failure
#ExecStart=/usr/bin/gnocchi-api
#Restart=on-failure
ExecStart=/usr/bin/uwsgi --if-not-plugin python --plugin python --endif --http-socket 0.0.0.0:8041 --master --enable-threads --thunder-lock --processes 4 --threads 4 --lazy-apps --chdir / --wsgi gnocchi.rest.wsgi
Restart=always
LimitNOFILE=65535
TimeoutStopSec=15
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment