Forum Discussion
Deb_Allen_18
Jan 16, 2008Historic F5 Account
If you use a port 0 pool, you can share the pool (and the related cookie) between 2 virtual servers and set both to use cookie insert persistence.
For the HTTP virtual server, no iRule would be required, since the port will pass through unchanged and the persistence will work as usual.
For the HTTPS virtual, you'll need an iRule to look for an existing cookie, decode the server IP and select the correct pool member specifying port 81.
The Persistence Cookie Logger iRule (Click here) has the logic to extract the IP address of the node.
You can use the node command (Click here) to specify a node by IP + port. (Logic to catch a dead server can be added in LB_FAILED event as demonstrated there.)
HTH
/deb