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.<br>
<br><div>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.</div>
<div><br></div><div>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?</div><div><br></div><div>Thanks,</div><div>Mike Gagnon</div>