Using proxy server to redirect MySQL traffic to multiple servers using standard port?

Posted by FrenchFry on Server Fault See other posts from Server Fault or by FrenchFry
Published on 2013-10-31T15:51:55Z Indexed on 2013/10/31 15:57 UTC
Read the original article Hit count: 212

Filed under:
|
|

Is it possible to redirect MySQL (tcp) traffic to multiple servers based on domain name alone?

Our DNS is setup to point several sub-domain aliases to one proxy machine. (running haproxy and iptables). We would like to redirect all database traffic through this proxy server and route it to the appropriate db server, WITHOUT deviating from the standard MySQL port.

dev.domain1.com:3306 --> dbDevServer.domain1.com:3306 test.domain1.com:3306 --> dbTestServer.domain1.com:3306 prod.domain1.com:3306 --> dbProdServer.domain1.com:3306

Thanks!

© Server Fault or respective owner

Related posts about mysql

Related posts about tcp