<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>可可熊的窝 &#187; heartbeat</title>
	<atom:link href="http://cocobear.info/blog/tag/heartbeat/feed/" rel="self" type="application/rss+xml" />
	<link>http://cocobear.info/blog</link>
	<description>K.I.S.S</description>
	<lastBuildDate>Sat, 10 Dec 2011 16:11:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Fedora 8配置Heartbeat</title>
		<link>http://cocobear.info/blog/2008/08/07/fedora-8-heartbeat-config/</link>
		<comments>http://cocobear.info/blog/2008/08/07/fedora-8-heartbeat-config/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 09:28:24 +0000</pubDate>
		<dc:creator>可可熊</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[heartbeat]]></category>

		<guid isPermaLink="false">http://cocobear.info/blog/?p=301</guid>
		<description><![CDATA[Heartbeat是http://linux-ha.org中HA项目的核心，HA是(High Availability)的缩写；简单来说就是为了提供高可靠的应用服务，例如拿两来机子来做HA，提供WEB服务，一台机子为主服务器平时提供WEB服务，HA就是保证在主服务器出现故障(例如掉电)的时候另一台机子可以立刻接手继续提供WEB服务，从而使用户觉得服务未曾中断；实际应用中可能使用更多的机子组成集群。 Heartbeat可以使用串口或者以太网来实现对主机的监测，这里使用的是以太网，在两台机器上分别配双网卡，用一根双绞线把两台机器连接在一起，另外两个网卡连到路由；配置是： f801(主机名；使用这台作为主服务器)： eth0: 192.168.1.110 eth1: 10.0.0.1 f802: eth1: 192.168.1.111 eth2: 10.0.0.2 网络配置好后测试无误后再检查两台机器上的WEB服务是否可以正常使用；一切都正常后使用yum安装Heartbeat： yum install heartbeat 安装好heartbeat后开始配置，三个主要配置文件都在： /usr/share/doc/heartbeat-2.1.3/下面，需要我们手工修改后拷贝到/etc/ha.d/中(两台服务器使用的脚本基本一样)。 编辑authkeys文件，下面的配置使用了sha1作为认证方式(这里需要注意的是该文件的权限必须被设置为600)： auth 2 #1 crc 2 sha1 HI! #3 md5 Hello! 编辑ha.cf，注释下掉以下内容： keepalive 1 ##设定心跳(监测)时间时间为1秒 warntime 10 ##设定警告时间 deadtime 30 ##设定确定主机宕机时间 initdead 120 ##第一宕机时间 ucast eth1 10.0.0.2 ##使用eht1做心跳监测 也就是连接两PC的网卡 udpport 694 ##使用udp端口694 进行心跳监测 node f801 ##节点1，必须要与 [...]]]></description>
		<wfw:commentRss>http://cocobear.info/blog/2008/08/07/fedora-8-heartbeat-config/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

