Persist connection to new node when LB_FAILED event occurs
We are doing load balancing between various members across different pools via hash and modulo function. The modulo value decides to which node the request should be redirected.
Now if one of the node goes down by the help of health monitors we will mark the same node down in other pools also as down.
The request will be shifted to new node picked in the LB_FAILED event.
Now we want to avoid following condition :
If previous down node comes up then again all the requests will be shifted to it from the new node (as per hash and modulo logic). Breaking again (second time) the existing client connections.
Can this condition be avoided by using cookie persistence or any other way?
Can anybody help or provide a suggestion.
Thanks.