测试keepalived备备模式一、需求:应用需要做HA,配置一个vip作为入口,心跳监测服务。使用backup/backup模式通过优先级和track脚本来控制主备
1)分布
主:10.0.200.88,状态:backup,优先级85
备:10.0.200.89,状态:backup,优先级75
vip:10.0.200.90
2)配置文件举例..
分类:
其他好文 时间:
2015-06-02 20:18:40
阅读次数:
157
[root@desktop2 ~]# fdisk -l Disk /dev/sda: 160.0 GB, 160041885696 bytes 255 heads, 63 sectors/track, 19457 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes ? ?Device Boot? ? ? Start?...
分类:
移动开发 时间:
2015-06-02 09:34:04
阅读次数:
283
# What is the difference between utm_source, utm_campaign and utm_medium? ## utm_source: As the name suggests this custom variable allows marketers to track the source that is sending the visits. I...
分类:
其他好文 时间:
2015-05-31 17:01:28
阅读次数:
120
C#的图像裁剪很容易操作,这里给个实现的例子
关键是需要处理鼠标的事件和一些更新
实现鼠标移动的代码.注意更新不要全部重画,只有选择矩形部分重画
private void Form1_MouseMove(object sender, MouseEventArgs e)
{
if (Track_move)
end...
通过查看TortoiseGit属性,我们得知,灰色对号代表的是assume-valid,也就是git中assume-unchanged的意思,通过如下步骤,可以去掉该灰色对号:
对于untrack的文件,我们可以创建.gitignore文件。
对于已经track的文件,我们可以这样做:git update-index –assume-unchanged 这样,即使已经更改了文件,用git sta...
分类:
其他好文 时间:
2015-05-28 18:04:43
阅读次数:
346
2个办法 @{ int hour = item.track / 3600; int min = (item.track - hour * 3600) / 60; int sen = item.track - hour * 3600 - min * 60; ...
Why are Eight Bits Enough for Deep NeuralNetworks?Deep learning is a very weird technology. It evolved over decades on a very different track than the...
分类:
Web程序 时间:
2015-05-25 21:48:55
阅读次数:
136
Pair Program and Feel the FlowGudny Hauknes, Kari Røssland, and Ann Katrin GagnatiMAGiNE THAT YOU ARE TOTALLY ABSORBED by what you are doing— focused, dedicated, and involved. You may have lost track o...
分类:
其他好文 时间:
2015-05-24 10:12:13
阅读次数:
155
I joined the NodeJS online Course three weeks ago, but now I'm late about 2 weeks.I pay the codeschool yearly subscribed, but I have lost the track lo...
分类:
其他好文 时间:
2015-05-23 12:41:39
阅读次数:
107
node1:~#cat/etc/issueWelcometoSUSELinuxEnterpriseServer11SP2(x86_64)-Kernel\r(\l).node1:~#node1:/etc/udev/rules.d#fdisk-lDisk/dev/sda:42.9GB,42949672960bytes255heads,63sectors/track,5221cylinders,total83886080sectorsUnits=sectorsof1*512=512bytesSectorsize(l..
分类:
系统相关 时间:
2015-05-22 19:31:45
阅读次数:
327