Forum Discussion

peter_cuenco_73's avatar
peter_cuenco_73
Icon for Nimbostratus rankNimbostratus
Jun 21, 2006

Persistence within iRules

Hi,

 

I'm a newbie with iRules, but have a need for the following scenario -

 

 

VIP (my.company.com) is defined with cookie persistence. The VIP uses an iRule that basically reads -

 

 

when HTTP_REQUEST {

 

if { [string toupper [HTTP::uri]] contains "/Pool1/" } {

 

pool Resources

 

} elseif { [string toupper [HTTP::uri]] contains "/RESOURCES/" } {

 

pool Resources

 

} else {

 

pool my.company.com

 

}

 

}

 

 

I need to have sessions destined for /Pool1/ or /Resources/ be sticky, ie, once a user gets to server1 in the pool for /Resources/, the same server1 needs to be used for /Pool1/ requests as well.

 

 

Is there a way to this?

 

 

Thanks!

11 Replies