Haporxy

安装Haproxy:

下载

wget https://fossies.org/linux/misc/haproxy-1.8.3.tar.gz
tar -zxf haproxy-1.8.3.tar.g
cd haproxy-1.8.3/
make TARGET=linux2628 ARCH=x86_64  PREFIX=/usr/local/haproxy
make install PREFIX=/usr/local/haproxy

#参数说明
TARGET=linux26 #内核版本,使用uname -r查看内核,如:2.6.18-371.el5,此时该参数就为linux26;kernel 大于2.6.28的用:TARGET=linux2628
ARCH=x86_64 #系统位数


全局
进程
log
nbproc
daemon
性能
maxconn
调试
代理
defaults
frontend
backend
listen

动态调度方法支持的特性:
1、权重在服务器运行时调整
2、支持慢速启动

roundrobin
static-rr

source:
hash-type: map-based 静态
hash-type: consistent 动态

 

posted @ 2017-12-31 13:16  caocong  阅读(256)  评论(0编辑  收藏  举报