Hi, i have just committed (in 1.9) support for "on demand" vassals.

Basically when you add a vassal, the Emperor will start tracking it, but
it will spawn the processes only at the first connection to the specified
socket.

The system already works for configurations stored in postgresql, mongodb
and for zeromq messages:

import zmq
c = zmq.Context()
s = zmq.Socket(c, zmq.PUSH)
s.connect('tcp://127.0.0.1:5252')
s.send_multipart(['touch','foo.ini',"[uwsgi]\nhttp-socket=fd://0\nmodule=werkzeug.testapp:test_app",
'0', '0', ":9090"])

as you can see the socket is mapped as the fd 0, so in addition to

socket/http-socket/fastcgi-socket/scgi-socket fd://0

you can simply use:

protocol = uwsgi|http|fastcgi|scgi


I would like to add the same system to configurations based on simple
files and globs. Some idea on how to specify the socket ? (please do not
suggest xattr as they are a mess to maintain on different servers, at
least for me...)

-- 
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to