Forum Discussion
Marcus_Hong_Yu
Nimbostratus
Jun 02, 2017LTM irule same irule got called by multiple tmm instances
HI guys, recently I'm working on an irule to make LTM VS acting as reverse proxy. basically the user will call the VS on https, and the VS will use the irule to do DNS query against a specific URL an...
Stanislas_Piro2
Cumulonimbus
Jun 02, 2017Hi,
Your irule is not optimized... look at this one:
when CLIENT_ACCEPTED {
set dnslist {10.1.1.1 10.1.1.12 10.2.2.4}
foreach dns $dnslist {
Check if the first list element was empty
if {[set dest [lindex [RESOLV::lookup @$dns -a "www.abc.com";] 0]] ne ""} {
Set Node IP based on DNS resolution
node $dest 443
break
}
}
}
another enhancement can be to use dns resolution in pool instead of this irule. it will create each member discovered with DNS.
to answer about TMM, each connection is handled by a different TMM. if you are working on a 6 TMM appliance, you may see in logs tmm0, tmm1, ... tmm6
but only one TMM request for each tcp connection.
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