On Å›ro, gru 31, 2008 at 02:58:30 -0500, Mark Swanson wrote:
seems to happen about 10% of the time (not useful to anyone needing
If I understand the source correctly, this happens when one of your
backends is down (as determined by Nginx). The IP address is then
rehashed and the connection retried until it succeeds or you run out of
Btw, modulo? If you have the source handy would you mind posting the
code for this? I was really hoping the class C address would be used as
a key into a hash table and the value was the previously used server ID.
The two functions starting from here:
I was also really hoping this hash table would be preserved after
sending a HUP signal to nginx.
There’s no hash table in ip_hash, there’s a hash function which maps
incoming IP to a server id. It isn’t remembered anywhere. But the
backend up/down status and failure count is indeed reset upon SIGHUP