Forum Discussion

Travis_Lomness_'s avatar
Travis_Lomness_
Icon for Nimbostratus rankNimbostratus
Jul 31, 2009

Direct 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

  • Why not just do something like the following:

     

    if { [active_members [LB::server pool] ] < 0 } {DO_STUFF_CUZ_PROD_DOWN}
  • Or you could use priority groups within the same pool where the production members have higher priority than the failover pool members.

     

     

    Aaron