Difference between revisions of "Source Hashing Scheduling"

From LVSKB
Jump to: navigation, search
 
Line 1: Line 1:
 
The source hashing scheduling algorithm assigns network connections to the servers through looking up a statically assigned hash table by their source IP addresses.
 
The source hashing scheduling algorithm assigns network connections to the servers through looking up a statically assigned hash table by their source IP addresses.
 +
 +
 +
''Maybe, it would be nice to put this in the HOWTO, a lot of people, me too, don't understand why SH seems to lose connections. It's not a bug but a misconfiguration due to a lack of documentation. Like the man of ipvsadm doesn't mention the following:''
 +
 +
'''But''', careful, the weight of a realserver with the SH scheduler means the maximum number of connections, multiplied by 2, allowed on this realserver. The meaning of the weight argument is very different in SH and DH than RR, LC and others.
 +
 +
Just read this thread lvs-users : [http://archive.linuxvirtualserver.org/html/lvs-users/2006-06/msg00001.html Persistence vs SH scheduler]. Thanks to Martijn Grendelman to pointing this out.
 +
 +
  
 
[[Category:Job Scheduling Algorithms]]
 
[[Category:Job Scheduling Algorithms]]

Revision as of 21:24, 16 June 2006

The source hashing scheduling algorithm assigns network connections to the servers through looking up a statically assigned hash table by their source IP addresses.


Maybe, it would be nice to put this in the HOWTO, a lot of people, me too, don't understand why SH seems to lose connections. It's not a bug but a misconfiguration due to a lack of documentation. Like the man of ipvsadm doesn't mention the following:

But, careful, the weight of a realserver with the SH scheduler means the maximum number of connections, multiplied by 2, allowed on this realserver. The meaning of the weight argument is very different in SH and DH than RR, LC and others.

Just read this thread lvs-users : Persistence vs SH scheduler. Thanks to Martijn Grendelman to pointing this out.