Created
April 24, 2013 05:49
-
-
Save unbit/5449900 to your computer and use it in GitHub Desktop.
using different socket, different protocol on different uWSGI workers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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