keepalived+nginx双机热备+负载均衡最近因业务扩展,需要将当前的apache 转为nginx(web), 再在web前端放置nginx(负载均衡)。同时结合keepalived 对前端nginx实现HA。nginx进程基于于Master+Slave(worker)多进程模型,自身具有非 ...
分类:
其他好文 时间:
2017-07-30 11:42:12
阅读次数:
261
一Ricci&&luciServer1和server4做同样的操作,(1)配置yum源[HighAvailability]name=HighAvailabilitybaseurl=http://172.25.21.250/rhel6.5/HighAvailabilitygpgcheck=0[LoadBalancer]name=LoadBalancerbaseurl=http://172.25.21.250/rhel6.5/LoadBalancergpgcheck=0..
分类:
其他好文 时间:
2017-07-30 10:20:01
阅读次数:
287
WithMySQLreplicationandkeepalived,wecansetupaquiterobusthighavailableMySQLenvironmentinafewsteps:Environment:Host1:db01.wordpress.comHost2:db02.wordpress.comDBVIP:mysql.wordpress.com10.0.0.11.SetupMySQLMaster-MasterreplicationRef:SetupMySQLreplication2.Inst..
分类:
数据库 时间:
2017-07-28 22:28:30
阅读次数:
302
一、配置A和B上面的IP1.Main>>Network>>SelfIPs在里面配置internal、External、Sync等信息lb1.silence.com上的信息,其中在配置IP的时候,一定要将PortLockdown设置为allowall或者allowdefault,不然通信可以会有问题。配置INternal口配置External口配置Sync口2.lb..
分类:
其他好文 时间:
2017-07-28 22:19:09
阅读次数:
415
HA,lvs,keepalived一配置heartbeat官网:linux-ha.orgserver1:(master节点)1下载rpm包并安装yuminstall-yheartbeat-*2heartbeat的配置文件/etc/ha.d/ ###主配置目录###/etc/ha.d/ha.cf ###主配置文件###/etc/ha.d/haresources ###资源定义文件,集群要维护的资源组###/e..
分类:
其他好文 时间:
2017-07-28 09:52:38
阅读次数:
207
HA结构图 HA是用来解决单点故障问题 DN: DataNode,启动时会往所有的NameNode汇报 NN: NameNode(主 Active(一个) 备 Standby(可以有多个)) JournalNodes:JournalNodes就是用来存储元数据的,是一个集群,节点数量必须为奇数个。 ...
分类:
其他好文 时间:
2017-07-28 00:59:16
阅读次数:
200
题目: There are a total of n courses you have to take, labeled from 0 to n - 1. Some courses may have prerequisites, for example to take course 0 you ha ...
分类:
编程语言 时间:
2017-07-27 13:35:56
阅读次数:
124
1.heartbeatyuminstallheartbeat-*-ycd/usr/share/doc/heartbeat-3.0.4/cpha.cfauthkeysharesources/etc/ha.d/cd/etc/ha.dvimha.cfvimauthkeysvimharesourceschmod600authkeysscpha.cfauthkeysharesourcesserver1:/etc/ha.d/etc/init.d/heartbeatstart测试:一台主机的服务挂掉..
分类:
其他好文 时间:
2017-07-27 09:37:51
阅读次数:
225
1 unsigned int SDBMHash(char *str) { 2 unsigned int hash = 0; 3 while (*str) 4 // equivalent to: hash = 65599*hash + (*str++); 5 hash = (*str++) + (ha... ...
分类:
其他好文 时间:
2017-07-27 00:57:52
阅读次数:
197
##################################DR#################################实验一:server4,server5/etc/init.d/heartbeatstopyuminstall-yldirectord-3.9.5-3.1.x86_64.rpmserver4cd/usr/share/doc/ldirectord-3.9.5/cpldirectord.cf/etc/ha.d/yuminstallrepolistyuminstallipv..
分类:
其他好文 时间:
2017-07-26 17:38:15
阅读次数:
161