Back to home

uWSGI Emperor

The uWSGI managed service provides an Emperor-mode uWSGI that is managed and monitored by nine.ch. The Emperor function is monitored, not the functionality of your application. If required, an SLA can be engineered to monitor your application. Please contact us if you require this.

The vassal configuration files are expected to be found under ~/uwsgi.d/. Four processes of /home/www-data/hellouwsgi.ch/hellouwsgi.ch.wsgi are started in the following example. For communication purposes Unix socket /home/www-data/hellouwsgi.ch/hellouwsgi.ch.sock is used.

The last four lines are important to ensure that vassal logging data can be written. Log output is not available without configured logging.

[uwsgi]
uwsgi-socket = /home/www-data/hellouwsgi.ch/hellouwsgi.ch.sock
chmod-socket = 660
master = 1
processes = 4
enable-threads = 1
uid = www-data
gid = www-data
plugins = python27
file = /home/www-data/hellouwsgi.ch/hellouwsgi.ch.wsgi

#Logfile
logfile-chown = true
plugin = logfile
log-file = /home/www-data/hellouwsgi.ch/hellouwsgi.ch.log
logto = /home/www-data/hellouwsgi.ch/hellouwsgi.ch.log
req-logger = file:/home/www-data/hellouwsgi.ch/hellouwsgi.ch.log

For nine-manage-vhosts a template which passes all queries on to ~/<domain>/<domain>.sock is available. We would be happy to work with you to devise a suitable template tailored to your requirements.

Didn't find what you were looking for?

Contact our support:

+41 44 637 40 40 Support Portal support@nine.ch