Hi all,

in the 2.1 branch a lot of new features and improvements to the
subscription system have been added.

The most interesting is probably mountpoints:

http://uwsgi-docs.readthedocs.org/en/latest/SubscriptionServer.html#mountpoints-uwsgi-2-1

In addition to this, backup nodes can now be configured (just add backup=n
to subscribe2, and it will be used only when all of the non-backup nodes
are death [the n is used to give precedence to backup nodes])

The http router can now speak http to backends (in addition to uwsgi) If
you have an instance (like a node or a tomcat server) you want to directly
subscribe to the httprouter just run it as:

[uwsgi]
subscribe2 = server=/run/ss,key=mydomain,addr=127.0.0.1:8000,proto=http
; bind node to port 8000
attach-daemon = node mydaemon.js 127.0.0.1:8000

Finally, load balancing algorithms are now pluggable (you can define new
algorithms in plugins), and you can choose which one to use for each
subscription key

--subscribe2 ...,algo=iphash

will use the new iphash algorithm instead of the wrr (weighted round
robin) one

There are currently 4 embedded algos:

wrr -> weighted round robin with backup support
lrc -> least reference counting with backup
wlrc -> weighted least reference counting with backup
iphash -> sticky connect to the same node using the hash of the source ip

Every report will be very useful

Regards

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

Reply via email to