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.
a, install gcc kernel-headers kernel-devel(yum or apt-get)
b, make modules
c, make modules_install
a, modprobe ip_vs_ch
b, lsmod | grep ip_vs_ch
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
a, Consistent hashing library comes from libconhash
The ip_vs_ch is under GNU GPLv2 License