Forum Discussion

Gladney_7700's avatar
Gladney_7700
Historic F5 Account
Apr 05, 2013

GTM iRule to parse data from host request to form a list of GTM pools for topology load balancing

IHAC who is looking to simplify ongoing management of his GTM wide-ip configuration by using an iRule with a wildcard WIP.

 

 

The example scenario is that we have a WIP for *.sip.foo.com

 

 

Users will be using a mobile app that, based on a users account, will make a DNS request that can be answered by a select group of 1 to 5 GTM pools.

 

 

Requests will come in in a format like this: ar2-ff1-sg1-sy1.sip.foo.com

 

 

Each 3 digit code separated by the dash will correspond to a GTM pool: ar2 or ff1 or sg1 or sy1

 

 

We then want to use topology load balancing to determine which pool of those available to this request to actually use for resolution.

 

 

We want any requests that cannot be parsed to be logged and discarded.

 

 

The user's hope is that rather than having to create new wide-ip's for each combination of available data centers, he can just update a data-group with new 3 digit codes and have this iRule parse the codes and load balance between the appropriate pools.

 

 

Is this possible to accomplish in the first place, if so, is this the right approach to the problem?

 

 

Thanks!

 

1 Reply

  • OK, I'm not that familiar with GTM so I can't comment on your approach but I can hopefully help with a rule. My only question is, what format would you want the resulting data taken from the hostname to be in? Would you want four populated variables, a list or something else?