summaryrefslogtreecommitdiff
path: root/net/netfilter/ipvs/ip_vs_sync.c
diff options
context:
space:
mode:
authorAlexander Frolkin <avf@eldamar.org.uk>2013-06-19 10:54:25 +0100
committerSimon Horman <horms@verge.net.au>2013-06-26 18:01:46 +0900
commiteba3b5a78799d21dea05118b294524958f0ab592 (patch)
tree2f84838b89f17c7b10cee8fa618f232c64e9fc1d /net/netfilter/ipvs/ip_vs_sync.c
parentacaac5d8bbedf6bd96f53960780942e1ad90d70e (diff)
ipvs: SH fallback and L4 hashing
By default the SH scheduler rejects connections that are hashed onto a realserver of weight 0. This patch adds a flag to make SH choose a different realserver in this case, instead of rejecting the connection. The patch also adds a flag to make SH include the source port (TCP, UDP, SCTP) in the hash as well as the source address. This basically allows for deterministic round-robin load balancing (i.e., where any director in a cluster of directors with identical config will send the same packet the same way). The flags are service flags (IP_VS_SVC_F_SCHED*) so that these options can be set per service. They are set using a new option to ipvsadm. Signed-off-by: Alexander Frolkin <avf@eldamar.org.uk> Acked-by: Julian Anastasov <ja@ssi.bg> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'net/netfilter/ipvs/ip_vs_sync.c')
0 files changed, 0 insertions, 0 deletions