标签:ati div mysql 地址 lsp strong 一个 sheet webserver
frontend webserver
bind 0.0.0.0:80 #在本机的所有接口监听访问 80 端口的请求
MySQL集群在HAproxy之后运行,HAproxy对进来请求进行负载均衡,对外只暴露一个IP地址。
根据用户访问内容实现动静分离:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
frontend http- in bind *:80 mode http log global option httpclose acl url_static path_beg -i / static /images /javascript /stylesheets acl url_static path_end -i .jpg .jpeg .gif .png .css .js use_backend static_servers if url_static default_backend dynamic_servers backend static_servers balance roundrobin server imgsrv1 172.18.64.7:80 check maxconn 6000 server imgsrv2 172.18.64.107:80 check maxconn 6000 backend dynamic_servers balance source server websrv1 172.18.64.17:80 check maxconn 1000 server websrv2 172.18.64.106:80 check maxconn 1000 |
http://www.cnblogs.com/heiye123/articles/7928292.html
标签:ati div mysql 地址 lsp strong 一个 sheet webserver
原文地址:https://www.cnblogs.com/hixiaowei/p/9164713.html