Socket communication inside load balancer

Mike Gagnon mikegagnon at
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

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?

Mike Gagnon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx-devel mailing list