Forum Discussion

smac8213_85838's avatar
smac8213_85838
Icon for Nimbostratus rankNimbostratus
Dec 03, 2007

Change TCP Timeout for specific URL

I'm very new to iRules and have searched around to no-avail.

 

 

Is there a way to load a specific profile from within an iRule? The reason for this is we'd like to adjust the TCP timeout value for connections but only to certain web pages.

 

 

Rather then impacting everything by a global change, it'd be great to only do this at a page level.

 

 

My first thought was load a different profile but i couldn't figure out a way to do that. Maybe there's another or better way?

 

 

Thanks for any help.

 

 

-Scott McLaughlin
  • Patrick_Chang_7's avatar
    Patrick_Chang_7
    Historic F5 Account
    The PROFILE commands only read the values in the profiles. They cannot be used to set the profiles. Switching profiles would be a global setting for everyone connecting to the Virtual Server. It cannot be done on a connection by connection basis.
  • We handled this by creating three VSes - one with a profile tuned to LAN, one tuned to WAN, and one tuned to extreme-conditions WAN connections. The LAN and WAN profiles are pretty much vanilla LAN/WAN profiles in 9.4, and the remaining one is meant for high-latency connections.

     

     

    From there we have two ways of determining how to stick the connection to a particular VS -- the first is GTM -- it assigns most everyone to either the WAN VS or the Extreme WAN VS based on topology lookup (overseas networks are sent EWAN-VS, everyone domestic gets WAN-VS). We then use an iRule on each VS (the same iRule applied to all VSes actually), that detects connections coming in with the "base" hostname and issues a quick redirect to either stick them to the VS they need, or redirect them to a new VS based on a source network check.

     

     

    Does this make sense? If you need additional explanation, let me know.