Codis安装部署全架构前期规划机器与应用列表:操作系统:CentOS6.51,操作系统:CentOS6.5192.168.88.106codis-server1192.168.88.107codis-server2192.168.88.108codis-server3192.168.88.111codis-ha1192.168.88.112codis-ha2192.168.88.113 zookeeper-1(codis-proxy-1)192..
分类:
其他好文 时间:
2015-07-26 06:17:41
阅读次数:
693
添加lb[],rb[]数组,来标记竖边。添加num,来计算竖边的个数,因为计算周长的时候,未覆盖的竖边都要加#include#include#include#includeusing namespace std;#define lson l,m,rty?x:y;}bool cmp(seg a,seg...
分类:
其他好文 时间:
2015-07-24 22:12:50
阅读次数:
119
本文内容:LVS集群概述LVS集群分类实戓:配置LVS-NAT服务概述:什么是集群?集群(cluster)就是一组计算机,它们作为一个整体向用户提供一组网络资源。这些单个的计算机系统就是集群的节点(node)。集群的种类集群系统主要分为–负载均衡(LoadBalance)集群,简称LB–高可用(H..
分类:
其他好文 时间:
2015-07-23 15:50:21
阅读次数:
198
tar zxvf haproxy-1.4.21.tar.gzcd haproxy-1.4.21uname -rvim /etc/haproxy.cfgglobal #日志 log 127.0.0.1 local0 maxconn 4096 ...
分类:
数据库 时间:
2015-07-22 20:15:30
阅读次数:
128
因为测试机其有限,而且也只是为了看看lvs负载均衡tcp端口能否正确获取到客户端的真实IP,之前用过nginx,haproxy,对非http协议的获取客户端真实IP都毫无办法。安装过程就不叙述。keepalived+lvsserver192.168.53.10
DRserver192.168.53.10
realserver192.168.53.12keepaliveds..
分类:
其他好文 时间:
2015-07-22 11:06:42
阅读次数:
102
Nginx/LVS/HAProxy负载均衡软件的优缺点详解
分类:
其他好文 时间:
2015-07-20 01:08:00
阅读次数:
203
四台服务器 server1.example.com //realserver 本次实验作为httpd服务器 server2.example.com //realserver? 本次实验作为httpd服务器 server3.example.com //安装haproxy 和 keepalived server4.example.com /...
分类:
其他好文 时间:
2015-07-18 18:45:49
阅读次数:
172
比如客户访问http://www.abc.comip对应10.10.10.1.需要跳转到另外一个网址http://www.125.com.我是在haproxy上实现的。frontendrewritetotripbind192.168.1.250:80modehttpoptionhttplogmaxconn2000aclclubhdr_reg(host)-iwww.abc.comredirectprefixhttp://trip.125.comifclub..
分类:
其他好文 时间:
2015-07-17 14:13:43
阅读次数:
150
1)修改haproxy配置文件,添加如下参数:optionhttpclose
optionforwardfor2)修改nginx配置文件,添加如下参数注意:需要编译模块--with-http_realip_module#haproxy服务器IP
set_real_ip_from192.168.64.128;
real_ip_headerX-Forwarded-For;
real_ip_recursiveon;3)分别重启hap..
分类:
其他好文 时间:
2015-07-16 14:15:55
阅读次数:
478