Skip to content

Instantly share code, notes, and snippets.

@Glandos
Last active August 29, 2015 14:25
Show Gist options
  • Save Glandos/3a02036f14227cdb8440 to your computer and use it in GitHub Desktop.
Save Glandos/3a02036f14227cdb8440 to your computer and use it in GitHub Desktop.
[uwsgi]
print = Begin graphite with %(uid):%(gid)
uid=_graphite
gid=_graphite
include = %v/templates/python3.ini
virtualenv = /var/www/monitoring/graphite-api/
chdir = /var/www/monitoring/graphite-api/
mount = /graphite-api=graphite_api.app:app
manage-script-name = true
env = GRAPHITE_API_CONFIG=/etc/graphite/graphite-api.yaml
print = End graphite with %(uid):%(gid)
# uwsgi --ini /etc/uwsgi/vassals/graphite-api.ini --include /etc/uwsgi/vassals/templates/fixed.ini
[uWSGI] getting INI configuration from /etc/uwsgi/vassals/graphite-api.ini
[uWSGI] getting INI configuration from /etc/uwsgi/vassals/templates/python3.ini
[uWSGI] getting INI configuration from /etc/uwsgi/vassals/templates//base.ini
[uWSGI] getting INI configuration from /etc/uwsgi/vassals/templates/fixed.ini
Begin graphite with _graphite:_graphite
Begin python3 with _graphite:_graphite
Begin base with _graphite:_graphite
After base with _graphite:_graphite
After python3 with _graphite:_graphite
End graphite with _graphite:_graphite
Begin fixed with _graphite:_graphite
setting capability syslog [34]
End fixed with _graphite:_graphite
*** Starting uWSGI 2.0.7-debian (32bit) on [Fri Jul 17 14:34:03 2015] ***
compiled with version: 4.9.2 on 09 May 2015 10:08:46
os: Linux-3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt11-1 (2015-05-24)
nodename: belette
machine: i686
clock source: unix
pcre jit disabled
detected number of CPU cores: 4
current working directory: /etc/uwsgi/vassals
detected binary path: /usr/bin/uwsgi-core
your processes number limit is 32179
your memory page size is 4096 bytes
detected max file descriptor number: 65536
- async cores set to 10 - fd table size: 65536
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
initializing 10 uGreen threads with stack size of 262144 (256 KB)
group www-graphite-api not found.
# uwsgi --version
2.0.7-debian
[uwsgi]
print = Begin base with %(uid):%(gid)
uid = www-%N
gid = www-%N
workers = %k
cheaper = 2
idle = 60
;die-on-idle = true
auto-procname = true
procname-prefix-spaced = [%N]
print = After base with %(uid):%(gid)
[uwsgi]
print = Begin %n with %(uid):%(gid)
strict = true
master = true
check-interval = 10
chown-socket = %(uid):www-data
chmod-socket = 660
cap = syslog
print = End %n with %(uid):%(gid)
[uwsgi]
print = Begin python3 with %(uid):%(gid)
include = %d/base.ini
plugins = python3,ugreen
async = 10
ugreen =
print = After python3 with %(uid):%(gid)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment