internet|| _ _ _ _ _ _ _ _ _ _ _ _ _ _ _DNS 轮询|route|nginx1 ………………………… …… nginx N|| |squid squid| |apache apache| || || |nginx _tcp ( Load Balancing )|| | | |mysql 主 mysql 从 mysql 主 mysql 从
###nginx_tcp.conf####tcp {upstream cluster {# SQL ROUTEserver 10.0.0.80:3306 weight=1;server 10.0.0.81:3306 weight=1;check interval=3000 rise=2 fall=5 timeout=1000;}server {listen 3307;proxy_pass cluster;}}