A consistent hashing scheduler for LVS
A consistent hashing scheduling module for LVS(Linux Virtual Server)
Consistent hashing is a better algorithm than mod, for the latter might cause most of connections lose when the back-end servers is changed. In our case, we need support stickiness for multiple directors in LVS, so the consistent-hashing solution is a nice choice.
How to compile:
a, install gcc kernel-headers kernel-devel(yum or apt-get)
b, make modules
c, make modules_install
How to check if ip_vs_ch is installed:
a, modprobe ip_vs_ch
b, lsmod | grep ip_vs_ch
Issues:
a, if the current kernel version(uname -r) is different from the kernel-devel package might cause module compile or install issue:
upgrade your kernel or find the kernel-devel package to match the current kernel
References:
a, Consistent hashing library comes from libconhash
License:
The ip_vs_ch is under GNU GPLv2 License