Forwarding Traffic to URL rather than Pool
Hi,
In our current implementation of LTM, we create multiple virtual servers with each having it's own Policy. In the Policy, rules define domain based or URI path based requests, and forward to specific pools. Pools are made of predefined nodes specified using IP Port Pairs.
Going forward, we are servicing clients who also host their applications on HA instances but rather of having one VIP, they have multiple masked behind a URL which is publicly accessible i.e. a DNS record is in place.
From the LTM, we've tried using iRules with redirects, nslookups and also trying to avoid the use of pools, given that a node in the pool is created and always resolves to a particular IP. Our concern is; should a new IP behind the DNS be created and we are not aware, then traffic will never reach this node.
Current setup
Client Request to DNS/VIP --> F5 (Virtual Server -> Policy -> Rules -> forward to Pool) --> Nodes defined in Pool
What we want to Achieve
Client Request to DNS/VIP --> F5 (Virtual Server -> Policy -> Rules -> forward to URL) --> URL rather than Node
What has been used iRules setup to cater for redirects : HTTP::redirect "; iRules setup to cater for resolution : [lindex [RESOLV::lookup @8.8.8.8 -a $host] 0]
Thanks for your help, Stefan