随笔分类 -  Haproxy

摘要:一、基于cookie的会话保持 cookie value:为当前server指定cookie值,实现基于cookie的会话黏性 1、配置选项 cookie name [ rewrite | insert | prefix ][ indirect ] [ nocache ][ postonly ] [ 阅读全文
posted @ 2021-01-07 19:46 yaowx 阅读(663) 评论(0) 推荐(0)
摘要:IP透传是web服务器中需要记录客户端的真实IP地址,用于做访问统计、安全防护、行为分析、区域排行等场景。 四层IP透传配置 haproxy 配置: listen web_prot bind 192.168.32.204:80 mode tcp balance roundrobin server w 阅读全文
posted @ 2021-01-07 15:25 yaowx 阅读(1306) 评论(0) 推荐(1)
摘要:一、实验拓扑及环境 System OS: CentOS Linux release 7.8.2003 (Core) 内核:3.10.0-1127.el7.x86_64 web01: node1 10.0.0.201 nginx web02: node2 10.0.0.202 nginx haprox 阅读全文
posted @ 2021-01-07 15:10 yaowx 阅读(247) 评论(0) 推荐(0)
摘要:一、Haproxy在centos7上的部署 1、实验环境 System OS: CentOS Linux release 7.8.2003 (Core) 内核:3.10.0-1127.el7.x86_64 2、yum安装 [root@node4 ~]# yum provides haproxy Lo 阅读全文
posted @ 2021-01-06 16:29 yaowx 阅读(1694) 评论(0) 推荐(0)
摘要:一、负载均衡介绍 1、什么是SLB SLB(Server Load Balance)服务通过设置虚拟服务地址(IP),将位于同一地域(Region)的多台服务器资源虚拟成一个高性能、高可用的应用服务池;再根据应用指定的方式,将来自客户端的网络请求分发到服务器池中。 SLB服务会检查服务器池中所有服务 阅读全文
posted @ 2021-01-05 21:35 yaowx 阅读(415) 评论(0) 推荐(0)