一,Haproxy安装和
#cd/usr/local/src
#wgethttp://mirrors.elenet.me/eleme/yanming.zhang/haproxy-1.5.12.tar.gz
#tarxvzfhaproxy-1.5.12.tar.gz
#cdhaproxy-1.5.12
#yum-yinstallgcc
#makeTARGET=linux2628PREFIX=/opt/haproxy
#makeinstallPREFIX=/opt/haproxy
#cd/opt
#..
分类:
其他好文 时间:
2015-08-02 06:45:32
阅读次数:
374
#!/bin/bash# BY kerryhu# MAIL:king_819@163.com# BLOG:http://kerry.blog.51cto.com# Please manual operation yum of before Operation.....#===============...
分类:
其他好文 时间:
2015-08-02 00:51:40
阅读次数:
177
后端服务器健康检查
#vim/etc/varnish/health_check.vcl
probebackend_healthcheck{
.interval=5s;
.timeout=3s;
.window=10;
.threshold=8;
.request=
"GET/favicon.icoHTTP/1.1"
"Host:v5.ele.me"
"Connection:close"
"Accept-Encoding:foo/bar";
}
#后端服务器地址池配..
分类:
其他好文 时间:
2015-08-01 19:15:27
阅读次数:
413
HAProxy+Keepalived+PXC负载均衡和高可用的PXC环境
分类:
其他好文 时间:
2015-08-01 17:07:12
阅读次数:
308
张宴博客:http://zyan.cc/post/313/1、创建vnish用户和组,以及Varnish缓存文件存放目录(/var/vcache):/usr/sbin/groupadd vnish-g 48/usr/sbin/useradd -u 48 -g vnishvnishmkdir -p /...
分类:
其他好文 时间:
2015-08-01 14:07:43
阅读次数:
122
global
maxconn100000
log/dev/loglocal0notice
defaults
modetcp
logglobal
optionredispatch
retries3
timeoutconnect5s
timeoutclient1210s
timeoutserver1210s
listenstats:8642
modehttp
statsenable
statsuri/
statsauthadmin:admin
frontendbbs
bind:28000
defau..
分类:
其他好文 时间:
2015-08-01 06:38:47
阅读次数:
214
由于nginx默认仅支持http应用层协议的端口,对四层tcp端口支持不好,需要安装额外的nginx_tcp_proxy_module模块,因此在不方便重新编译nginx模块时,可以用HAProxy代理activemq的tcp端口,只需要6个步骤就可以完成(以Ubuntu为例,CentOS大同小异)。步骤1:安装HAProxyapt-geti..
分类:
其他好文 时间:
2015-07-30 15:06:01
阅读次数:
191
LB负载均衡集群分两类:LVS(四层)和nginx或haproxy(七层)客户端通过访问分发器的VIP来访问网站|现在应用更复杂,比如现在网站页面有:.php.html.png.jpeg.jsp等,有劢态页面有静态页面。静态页面一般是丌变的,想访问更快些,前面学习过SQUID。|但是前面的LVS是四层的。基..
分类:
其他好文 时间:
2015-07-29 06:41:58
阅读次数:
238
HAProxy概述:HAProxy提供高可用性、负载均衡以及基于TCP和HTTP应用的代理,支持虚拟主机,它是免费、快速并且可靠的一种解决方案。根据官方数据,其最高极限支持10G的并发。HAProxy特别适用于那些负载特大的web站点,这些站点通常又需要会话保持或七层处理。HAProxy运行在当前..
分类:
其他好文 时间:
2015-07-29 06:36:07
阅读次数:
199
1、通过监听端口进行健康检测 。这种检测方式,haproxy只会去检查后端server的端口,并不能保证服务的真正可用。配置示例:listen http_proxy 0.0.0.0:80 mode http cookie SERVERID balance r...
分类:
其他好文 时间:
2015-07-27 18:13:48
阅读次数:
226