[PATCH] reuse_port option for multiple server instances

Harry Mason harry.mason at smoothwall.net
Mon Jan 11 14:09:55 UTC 2016


This patch allows multiple polygraph-server instances to bind to the
same address and port. The intended use is to easily spread CPU load
across multiple cores. Enable it by adding "reuse_port = true" to the
Server block.

It is only tested on Linux, where it requires kernel >= 3.9.

Binding a new socket can reset existing connections which are part of
the way through a TCP handshake, so start all server instances before
starting any clients. See https://lwn.net/Articles/542738/

Harry Mason
Smoothwall Ltd.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: polygraph-reuseport.patch
Type: text/x-patch
Size: 3498 bytes
Desc: not available
URL: <http://lists.web-polygraph.org/pipermail/users/attachments/20160111/1b3cca28/attachment-0001.bin>


More information about the Users mailing list