Forum Discussion
LB DB servers
Hi all,
I am looking into the way to load balance mySQL DB servers.
I would like to send traffic to pool-A if URI start with "X" and to pool-B when it starts with "Y".
I wrote the following but it doesn't seem top work;
when CLIENT_ACCEPTED { TCP::collect 100 }
when CLIENT_DATA { set payload [TCP::payload] switch -glob $payload { "X" { pool pool-A } "Y" { pool pool-B } }
}
Thanks for your help.
3 Replies
- hatim1
Nimbostratus
I should have mentioned there is No HTTP protocol involved.
- crodriguezRet. Employee
Is the MySQL traffic encrypted?
- hatim1
Nimbostratus
No
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
