summaryrefslogtreecommitdiff
path: root/net/netfilter/ipvs/Makefile
diff options
context:
space:
mode:
authorDarby Payne <darby.payne@gmail.com>2021-01-06 11:02:42 -0800
committerPablo Neira Ayuso <pablo@netfilter.org>2021-01-26 01:09:46 +0100
commit012da53d1afb619556f1a63c9da76b15888b190f (patch)
tree40b35a1f3a3d603c82a49071e65724b752bbfa05 /net/netfilter/ipvs/Makefile
parent83ace77f51175023c3757e2d08a92565f9b1c7f3 (diff)
downloadlinux-012da53d1afb619556f1a63c9da76b15888b190f.tar.gz
ipvs: add weighted random twos choice algorithm
Adds the random twos choice load-balancing algorithm. The algorithm will pick two random servers based on weights. Then select the server with the least amount of connections normalized by weight. The algorithm avoids the "herd behavior" problem. The algorithm comes from a paper by Michael Mitzenmacher available here http://www.eecs.harvard.edu/~michaelm/NEWWORK/postscripts/twosurvey.pdf Signed-off-by: Darby Payne <darby.payne@gmail.com> Acked-by: Julian Anastasov <ja@ssi.bg> Acked-by: Simon Horman <horms@verge.net.au> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/ipvs/Makefile')
-rw-r--r--net/netfilter/ipvs/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/netfilter/ipvs/Makefile b/net/netfilter/ipvs/Makefile
index bfce2677fda2..bb5d8125c82a 100644
--- a/net/netfilter/ipvs/Makefile
+++ b/net/netfilter/ipvs/Makefile
@@ -36,6 +36,7 @@ obj-$(CONFIG_IP_VS_SH) += ip_vs_sh.o
obj-$(CONFIG_IP_VS_MH) += ip_vs_mh.o
obj-$(CONFIG_IP_VS_SED) += ip_vs_sed.o
obj-$(CONFIG_IP_VS_NQ) += ip_vs_nq.o
+obj-$(CONFIG_IP_VS_TWOS) += ip_vs_twos.o
# IPVS application helpers
obj-$(CONFIG_IP_VS_FTP) += ip_vs_ftp.o