uWSGI Blueprint¶
Installs uWSGI and contains service tasks and other useful helpers for other blueprints to use. Currently only acts as a provider for the application blueprint and can not be used standalone to deploy vassals.
Fabric environment:
blueprints:
- blues.uwsgi
settings:
uwsgi:
version: 2.0.8 # Version of uWSGI to install (Required)
# emperor: /etc/uwsgi/vassals (Default: /srv/app/*/uwsgi.d)
-
reload
¶ Reload uwsgi or reload specific vassal @ path, via touch.
Parameters: vassal_path – The absolute path to vassal ini to reload. If not given, the uwsgi service will reload
-
setup
¶ Install uWSGI system wide and upload vassals
-
configure
¶ Upload vassals
-
top
¶ Launch uwsgitop for vassal stats socket
Parameters: vassal_name – The vassal to show stats for (Default: project setting)
-
fifo
¶ Issue FIFO commands to a vassal.
Parameters: - vassal_name – The vassal to command
- command – The FIFO command to issue
See: http://uwsgi-docs.readthedocs.org/en/latest/MasterFIFO.html