Socket communication inside load balancer

Mike Gagnon mikegagnon at gmail.com
Wed Mar 28 04:05:25 UTC 2012


I am working on a new load-balancing module, similar to upstream-fair, but
with different requirements (and hence different features). One of my
planned features is that the module will send an alert when it detects an
overload.

Within my load balancing function (my implementation of
r->upstream->peer.get) I would like to send an alert to an external
process. I am considering sending it over either a socket connection or
perhaps a named pipe.

Does anyone have any tips on how I could accomplish this? Any pointers to
nginx code or 3rd party module code that performs similar communication?

Thanks,
Mike Gagnon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20120327/a106adbb/attachment-0001.html>


More information about the nginx-devel mailing list