aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-internal.h
diff options
context:
space:
mode:
authorMichal Kubecek <[email protected]>2016-06-03 17:56:50 +0200
committerSimon Horman <[email protected]>2016-07-07 20:30:52 +0200
commitbe2cef49904b34dd5f75d96bbc8cd8341bab1bc0 (patch)
treeadfaa04559e95b4810554d5c7ea7f615970b0c48 /lib/mpi/mpi-internal.h
parentc6ac37d8d8843fb1fdc34e4a2a41a4f027ab670c (diff)
ipvs: count pre-established TCP states as active
Some users observed that "least connection" distribution algorithm doesn't handle well bursts of TCP connections from reconnecting clients after a node or network failure. This is because the algorithm counts active connection as worth 256 inactive ones where for TCP, "active" only means TCP connections in ESTABLISHED state. In case of a connection burst, new connections are handled before previous ones have finished the three way handshaking so that all are still counted as "inactive", i.e. cheap ones. The become "active" quickly but at that time, all of them are already assigned to one real server (or few), resulting in highly unbalanced distribution. Address this by counting the "pre-established" states as "active". Signed-off-by: Michal Kubecek <[email protected]> Acked-by: Julian Anastasov <[email protected]> Signed-off-by: Simon Horman <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions