HAProxy
learner_1234
这个作者很懒,什么都没留下…
展开
-
HAProxy---HAProxy的状态检测
基于四层的传输端口状态监测#---------------------------------------------------------------------# cookie test#---------------------------------------------------------------------listen web_host bind 10.0.0.17:80 mode http balance roundrobin log glo原创 2021-02-22 22:50:58 · 844 阅读 · 0 评论 -
HAProxy---HAProxy的状态页
HAProxy的状态页#---------------------------------------------------------------------# stats#---------------------------------------------------------------------listen stats bind :10000 #监听端口 stats enable #启用状态页 stats hide-version #隐藏版本 st原创 2021-02-22 22:24:34 · 383 阅读 · 0 评论 -
HAProxy---基于cookie的会话保持
基于cookie会话保持,浏览器有这个cookie值,就访问对应的web后端服务器[root@centos7 ~]#cat /etc/haproxy/haproxy.cfg log 127.0.0.1 local2 info chroot /var/lib/haproxy pidfile /var/run/haproxy.pid maxconn 100000 user haproxy group原创 2021-02-22 21:44:13 · 408 阅读 · 0 评论 -
HAProxy---HAProxy调度算法
HAProxy的调度算法分为静态和动态调度算法静态调度算法:static-rr #基于权重的固定轮询,不支持慢启动first #自上而下调度,满了跑下一个动态调度算法roundrobin #加权轮询调度leastconn #加权的最少连接的动态,适用于长连接。random其他算法:可基于(hash-type consistent一致性hash) 从静态(hash-type map-base取模法)转换至动态source #基于源地址hashuri #基于用户请求的URIurl原创 2021-02-22 20:34:47 · 172 阅读 · 0 评论 -
HAProxy---HAProxy的haproxy.cfg文件
HAProxy的配置文件haproxy.cfg文件由两大部分组成。分别是global和proxies部分。global进程及安全配置相关的参数性能调整相关参数Debug参数proxiesdefaults:为frontend、backend、listen提供默认配置frontend:前端 clinet to haproxybackend:后端 haproxy to real-serverlisten:同时拥有前端和后端配置global配置原创 2021-02-22 18:43:25 · 1649 阅读 · 0 评论 -
HAProxy---HAProxy的YUM安装和编译安装
YUM源安装HAProxycentos7默认[root@centos7 ~]#yum install haproxy -y[root@centos7 ~]#haproxy -vHA-Proxy version 1.5.18 2016/05/10Copyright 2000-2016 Willy Tarreau <willy@haproxy.org>centos8默认[root@centos8 ~]#yum install -y haproxy[root@centos8 ~]#原创 2021-02-22 16:07:58 · 1659 阅读 · 0 评论 -
HAProxy---HAProxy的功能
HAproxy功能:TCP和HTTP反向代理SSL/TSL服务器可以针对HTTP请求添加cookie,进行路由后端服务器可平衡负载至后端服务器,并支持持久连接支持所有主服务器故障切换至备用服务器支持专用端口实现监控服务支持不影响现有连接情况下停止接收新连接请求可以在双向添加,修改或删除HTTP报文首部响应报文压缩支持基于pattern实现连接请求的访问控制通过特定的URI为授权用户提供详细的状态信息不具备的功能:正向代理缓存代理WEB服务不支持UDP协议单机性能–lv原创 2021-02-22 10:14:53 · 172 阅读 · 0 评论