Forum Discussion
Travis_Lomness_
Nimbostratus
Jul 31, 2009Direct traffic based on cookie
Experts -
I have a Prod/failover environment. Rather than using two separate URL's for each environment I want to access the failover environment using the Prod URL. I am thinking about creating an extra cookie that acts as the prod/failover flag and then if that cookie exists the F5 will redirect me to a failover node.
Is it possible to create an Irule to do this? It looks for a specific cookie and if that cookie exists they are redirected to specific pool members? (The fail over nodes)
Thanks,
2 Replies
- Scot_85536
Nimbostratus
Why not just do something like the following:
if { [active_members [LB::server pool] ] < 0 } {DO_STUFF_CUZ_PROD_DOWN} - hoolio
Cirrostratus
Or you could use priority groups within the same pool where the production members have higher priority than the failover pool members.
Aaron
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
