First round of deprecations and removals for 2.0¶
- The Go plugin is now considered “broken” and has been moved away from the
pluginsdirectory. The new blessed way for running Go apps in uWSGI is using The GCCGO plugin plugin.
--auto-snapshotoption has been removed, advanced management of instances now happens via The Master FIFO.
- The matheval support has been removed, while a generic “matheval” plugin (for internal routing) is available (but not compiled in by default). See below for the new way for making “math” in config files.
- The “erlang” and “pyerl” plugins are broken and has been moved out of the
pluginsdirectory. Erlang support will be completely rewritten after 2.0 release.
Next scheduled deprecations and removals¶
The ZeroMQ API (a single function indeed) will be removed. Each plugin using ZeroMQ will create its own
zmq context (no need to share it). This means libzmq will no more be linked in the uWSGI core binary.
Mongrel2 protocol support will be moved to a “mongrel2” plugin instead of being embedded in the core.
- Fixed master hang when gracefully reloading in lazy mode.
- Another round of coverity fixes by Riccardo Magliocchetti.
EAGAINmanagement when reading the body.
64bit return values for the RPC subsystem¶
Before this release every RPC response was limited to a size of 64k (16bit).
Now the RPC protocol automatically detects if more space is needed and can scale up to 64bit.
Another advantage of this approach is that only the required amount of memory per-response is allocated instead of blindly creating a 64k chunk every time.
The new GCCGO plugin¶
Check official docs: The GCCGO plugin
The plugin is in early stage of development but it’s already quite solid.
Simple math in configuration files¶
As seen before, we have removed matheval support in favor of a simplified interface:
For example, now you can automatically set the number of threads to:
[uwsgi] ; %k is a magic var translated to the number of cpu cores threads = %(%k * 3) ...
%k * 3 is
number_of_cpu_cores * 3).
New magic vars¶
- Unix time (in seconds, gathered at instance startup).
- Unix time (in microseconds, gathered at instance startup).
- Number of detected CPU cores.
- The Chunked input API.
Socket::IOobject mapped to the connection file descriptor (you need to enable it with
uwsgi::connection_fdfrom the API.
--plshellwill invoke an interactive shell (based on
New native protocols:
When built with SSL support, uWSGI exposes two new native socket protocols: HTTPS and uwsgi over SSL.
Both options take the following value:
[uwsgi] https-socket = :8443,foobar.crt,foobar.key ...
Currently none of the mainstream webservers support uwsgi over SSL, a patch for nginx will be sent for approval in the next few hours.
PROXY (version1) protocol support¶
Recently Amazon ELB added support for HAProxy PROXY (version 1) protocol support. This simple protocol allows the frontend to pass the real IP of the client to the backend.
--enable-proxy-protocol will force the
--http-socket to check for a PROXY protocol request for setting the
New metrics collectors¶
- Compute the math average of children:
- Always add the value of the specified children to the final value.
- Multiply the sum of the specified children for the value specified in
Check The Metrics subsystem.
uWSGI 1.9.20 has been released on 20131117 and can be downloaded from http://projects.unbit.it/downloads/uwsgi-1.9.20.tar.gz.