F5 Redis Load Balancing Settings

I’m not going to go into too much detail but I just want to point out redis specific configs. Redis sentinal uses a master slave setup. Basically you want the F5 to know which node is the master and set that node to active. There are basically two settings I’m going to point out:

1. Monitor settings to detect the Master
2. Killing off all sessions to the node ASAP

The first one done in the Monitor settings. Below you’ll see the send and recieve strings along with the interval/timeouts:

So now you’ll have the F5 failover working based on who’s the master but there will be an issue with connections not dropping and staying connected even when there’s a failover. This is because the default mode is set to do this. The mode is “none” under the pools settings. I’ll dig more into those in a nother post but you want to change this behaviour by changing this setting to “reject” in the “Action on Service Down“.

See below:

By setting “reject“, the F5 will now kill off both the client and server side connections immediatly. This is something we needed for our environment and it works great.