一、概述 Nginx 作负载均衡器的优点许多,简单概括为:
①实现了可弹性化的架构,在压力增大的时候可以临时添加Tomcat服务器添加到这个架构里面去;
②upstream具有负载均衡能力,可以自动判断下面的机器,并且自动踢出不能正常提供服务的机器;Keepalived 可实现 Nginx负载均衡器...
分类:
其他好文 时间:
2014-05-14 01:39:22
阅读次数:
642
本文为senlie原创,转载请保留此地址:http://blog.csdn.net/zhengsenlie
Same Tree
Total Accepted: 15922 Total
Submissions: 38418
Given two binary trees, write a function to check if they are equal o...
分类:
其他好文 时间:
2014-05-14 01:15:40
阅读次数:
293
本文为senlie原创,转载请保留此地址:http://blog.csdn.net/zhengsenlie
Symmetric Tree
Total Accepted: 13991 Total
Submissions: 44240
Given a binary tree, check whether it is a mirror of itself ...
分类:
其他好文 时间:
2014-05-14 00:52:07
阅读次数:
372
linux高可用集群的种类很多,比如常见的heartbeat,corosync,rhcs,keepalived,这些集群软件的出现为我们的业务生产环境提供了高可用的保证,本文将简单介绍一下用heartbeat的v2版本来处理一个简单的http高可用集群的搭建。
在实现http高可用集群之前,首先至少需要2台主机,并且需要做3点基本的准备工作:
1.设置节点名称,并且集群...
分类:
系统相关 时间:
2014-05-13 23:11:46
阅读次数:
518
If you runfsck, the filesystem check and repair
command, it might find data fragments that are not referenced anywhere in the
filesystem. In particula...
分类:
其他好文 时间:
2014-05-13 16:59:54
阅读次数:
276
一、DRBD概述DRBD(DistributedReplicatedBlockDevice)是Linux平台上的分散式储存系统。由内核模组、用户空间工具组成,通常用于高可用性(highavailability,HA)集群。其实现方式是通过网络在服务器之间的对块设备(硬盘,分区,逻辑卷等)进行镜像。你可以把它看作是一种网络R..
分类:
其他好文 时间:
2014-05-13 13:02:59
阅读次数:
488
One Person Game
Time Limit: 1 Second Memory Limit: 32768 KB Special Judge
There is a very simple and interesting one-person game. You have 3 dice, namely Die1, Die2 and Die3. Die1 ha...
分类:
其他好文 时间:
2014-05-13 06:06:00
阅读次数:
357
#!/bin/bash
#checkmysqlslavestatus
USER="check"
PSW="***"
RUNTIME=3600
ADDR="192.168.*.*"
declare-aslave_is
forIPin$ADDR
do
slave_is=($(/usr/local/mysql/bin/mysql-h$IP-u${USER}-p${PSW}-e"showslavestatus\G"|grepRunning|awk‘{print$2}‘))
if["${slave_is[0]}"="Y..
分类:
数据库 时间:
2014-05-13 04:33:44
阅读次数:
374
使用两台LTM1600做HA,并且后端的真实机运行在不同vlan,而且vlan数远远大与物理接口数.故需要做逻辑接口,每个逻辑接口对应不同的vlan号.逻辑网络图接口表:角色F5接口交换机接口绑定+trunkTrunkVlan主2.1,2.2Gi1/0/27,Gi1/0/28PortChannel1ExterExter1.1,1.2Gi1/0/5,Gi1/0/6Port..
分类:
其他好文 时间:
2014-05-13 02:49:03
阅读次数:
356
lvs的DR方式次实验的前提是前面的heartbeat-HA已经做好,在HA主机上,先停掉heartbeat服务/etc/init.d/heartbeatstop/etc/init.d/ipvsadmstop/etc/init.d/heartbeatstop/etc/init.d/ipvsadmstop在RS主机上arptables-L查看arptables的设置server17上ifconfigeth0:0192.168.0.92n..
分类:
其他好文 时间:
2014-05-13 01:20:47
阅读次数:
457