Hello Alex.
You could configure an iRule that routes traffic base on the "nodeX" value of the JSESSIONID cookie, checking first if this specific member is UP using "active_members" command.
https://clouddocs.f5.com/api/irules/active_members.html
Config details.
- Create an iRule
- create a generic pool with all members
- create specific pools with only one member (let say, node1, node2, ...)
iRules steps:
- Get the "nodeX" value.
- if "[active_members pool_nodeX] == 0" use generic pool
- if "[active_members pool_nodeX] > 0" use specific pool (pool_nodeX)
Hope this helps you.
Regards,
Dario.