Forum Discussion
Load balancing
Hello, I set up a wide ip in a GTM with 2 pools as members. and with the following irule definition. In order for this irule to work what should be the load balancing method to use;
when DNS_REQUEST { if { [matchregion ldns "BXB-IDMS-DNS"]} { if { [active_members pl_bxb-idcmysql-read_3306] > 0} { pool pl_bxb-idcmysql-read_3306
}
else {
pool pl_chi-idcmysql-read_3306
log local0. "No Active members in MYSQL for BXB so use CHI MYSQL by DNS [IP::client_addr]"
}
}
elseif { not [matchregion ldns "BXB-IDMS-DNS"] } {
if { [active_members pl_chi-idcmysql-read_3306] > 0 } {
pool pl_chi-idcmysql-read_3306
}
else {
pool pl_bxb-idcmysql-read_3306
log local0. "No Active members in CHI MYSQL for CHI so use BXB MYSQL by DNS [IP::client_addr]"
}
}
}
Thanks for any help,
3 Replies
- SynACk_128568
Cirrostratus
Hi
Looking in your irule you are matching LDNS it should be topology based . Any specific reason you are using irule it can be done through topology LB with help of rules defined in topology.inc and region.user
- ReynaldoQ_14206
Nimbostratus
Thanks. Using irule because because that is what is being commonly used in out GTM and besides I am not yet familiar on how to setup Topology Lad balancing. Do you know a good info for me to read and how to set it up?
- SynACk_128568
Cirrostratus
For topology loadbalancing here are some good links :
http://support.f5.com/kb/en-us/solutions/public/13000/400/sol13412.html
http://blog.garraux.net/2012/08/f5-gtm-topology-records-lessons-learned/
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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