Filip Hanik - Dev wrote:
I suppose in this case the load balancer would run HOOK_MIDDLE, and sticky would run HOOK_LAST.
cool, and then have the server just try them in that order? ie, if the sticky server went down, it just takes the next one from the list (and that list should be ordered well since it comes from the LB algorithm)
correct assumption?
Yes.
In other words, you start with a list of IPs (supplied by the config, resolved by DNS), and each "load balancer" module reorders the IP addresses in turn, as needed.
So a load balancer module will reorder the IPs least loaded to most loaded.
Then the sticky module will either do nothing to list, or it will notice a sticky session, and move the sticky IP address to the top of the list.
Thing is for the sticky module to be effective, it must run last, otherwise the load balancer will undo sticky's work.
Regards, Graham --
smime.p7s
Description: S/MIME Cryptographic Signature