Skip to content

Instantly share code, notes, and snippets.

@unbit
Created April 24, 2013 05:49
Show Gist options
  • Save unbit/5449900 to your computer and use it in GitHub Desktop.
Save unbit/5449900 to your computer and use it in GitHub Desktop.
using different socket, different protocol on different uWSGI workers
[uwsgi]
; create the socket 0 (uwsgi protocol)
socket = 127.0.0.1:3031
; create the socket 1 (HTTP protocol)
http-socket = 127.0.0.1:8080
; spawn the master
master = true
; spawn 4 processes
processes = 4
; the first 3 processes are mapped to socket 0
map-socket = 0:1,2,3
; process 4 will answer to http requests (socket 1)
map-socket = 1:4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment