Forum Discussion
Xi_Wang_97546
Nimbostratus
Jul 17, 2007Can LTM redirect traffic behind GTM?
Hi,
I have a GTM managing two LTMs as two data center. Each of the LTMs manages two nodes. The GTM redirects traffic to CDN if the F5 network's capacity is reached by configuring the CDN as the Last Resort Pool with its CNAME.
Is it possible, as second line of defense, to configure each of the LTMs to redirect the traffic to CDN? Can I do it using iRule? Will this setting conflict with GTM's setting on redirecting traffic to CDN?
Somehow, with round robin setting at GTM for load balancing, I don't see the HTTP load are evenly distributed to the two LTMs? Does anyone know what could be wrong?
When I set each of the two nodes accepts max 5 connections, i.e., one LTM can only accept max 10 connections, the statistics shown at GTM is inconsistent with what's shown at LTM, e.g., LTM shows 10 connection, but GTM shows 17 connections. Does anyone see this kind of situation before?
Thanks,
-Xi
- JRahm
Admin
Yes, you can set the fallback host in the http profile on each LTM, or if desired, you can write an iRule to do redirect to your CDN. - JRahm
Admin
On your point of GTM/LTM connection count, the display is not synchronized, so the snapshot you see in LTM is not instantaneously displayed in GTM, which most likely would account for the difference in statistics. LTM will show the more accurate realtime snapshot, whereas GTM will utilize this data at a slight delay for future actions (doling out requests, marking pool members down, etc) - Xi_Wang_97546
Nimbostratus
Thanks. If the LTM's HTTP pool shows 5 connections on each of the two nodes. How can I find where the requests are from? Is there any iRule code to log all this information? - JRahm
Admin
You can log the requests in LTM:when HTTP_REQUEST { log local0. "Client IP is [IP::client_addr]" }
when LB_SELECTED { log local0. "LDNS [IP::client_addr] assigned to [LB::server addr] for request [DNS:: rrname]" }
- JRahm
Admin
BTW, the log information for GTM query logging in either approach would be in the /var/log/gtm logfile.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects