关于tcp代理涉及3个实体: c: client p: proxy s: server c & …
分类存档:Haproxy
haproxy 实现http隧道代理
什么是http隧道代理?(自己搜吧) haproxy的经典逻辑是:每个请求都分配给所配置的后端(backend …
haproxy 健康检查与域名解析
配置:
1 2 3 4 5 6 7 8 9 10 |
resolvers mydns nameserver svr1 172.16.162.194:53 backend http_backend mode http acl acl_baidu req.hdr(host) -i www.baidu.com acl acl_beebank req.hdr(host) -i www.beebank.com use-server svr_baidu if acl_baidu use-server svr_beebank if acl_beebank server svr_baidu www.baidu.com:80 check fall 100 rise 1 resolvers mydns resolve-prefer ipv4 server svr_beebank www.beebank.com:80 check fall 100 rise 1 resolvers mydns resolve-prefer ipv4 |
其中: check 说明要开启健康检 …
haproxy 配置基础
mode health 该模式用于健康检查,tcp层面的,只返回OK,如下: stats 通过http页面查看 …