Hi everyone, the second release candidate for 1.0 is available.
This update focuses on processes name handling (only for Linux and
FreeBSD) and a new multi-option parser.
*** Processes name handling ***
Four new options have been added:
--auto-procname
will set the uWSGI processes name to somethig meaningful like
uWSGI master
uWSGI worker 1
uWSGI worker 2
uWSGI spooler
uWSGI mule 1
uWSGI fastrouter
uWSGI Emperor
...
--procname-prefix <value>
will prepend <value> to the processes name
--procname-append <value>
will append <value> to processes name
--procname-master <name>
will set the master process name to <name>
A new api function has been added
uwsgi.setprocname(name)
You can change the process name whenever you want in your code.
A funny use case is reporting the number of requests in the process name:
uwsgi.setprocname("requests: %d" % uwsgi.total_requests())
or the currently managed request
uwsgi.setprocname("currently handling %s" % env['REQUEST_URI'])
*** Spooler harakiri (thanks to Raffaele Colace and Gabriele Giaccari) ***
Spooler tasks can get harakiri with the --spooler-harakiri <n> option
*** Multi-options (thanks to ActiveState'Stackato guys for the idea) ***
You can "collapse" options using the ; symbol
Example:
--socket ":3031;:3032;:3033"
will be translated to
--socket :3031 --socket :3032 --socket :3033
This is mainly useful for environment vars-only configuration where you
are not allowed to specify multiple options with the same key:
UWSGI_SOCKET=":3031;:3032;:3033" uwsgi
*** Daemons throttling susbsystem (thanks to Simon Litchfield) ***
Daemons attached to uWSGI with attach-daemon will be throttled if they
start rebooting with rage (generating a fork bombing)
You can download uWSGI 1.0-rc2 it from
http://projects.unbit.it/downloads/uwsgi-1.0-rc2.tar.gz
Thanks for reports
--
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi