<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>
	Comments on: keepalived failover机制的一些探讨	</title>
	<atom:link href="https://ssmax.net/archives/591.html/feed" rel="self" type="application/rss+xml" />
	<link>https://ssmax.net/archives/591.html</link>
	<description>ssmax blog here~</description>
	<lastBuildDate>Sun, 19 Jul 2009 05:37:19 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>
	<item>
		<title>
		By: ssmax		</title>
		<link>https://ssmax.net/archives/591.html/comment-page-1#comment-33114</link>

		<dc:creator><![CDATA[ssmax]]></dc:creator>
		<pubDate>Sun, 19 Jul 2009 05:37:19 +0000</pubDate>
		<guid isPermaLink="false">http://ssmax.net/?p=591#comment-33114</guid>

					<description><![CDATA[我的设置是这样的：
lvs master ： eth0 外网ip + vip(s) / eth1 192.168.x.1 / lo 127.0.0.1
lvs backup ： eth0 外网ip + vip(s) / eth1 192.168.x.2 / lo 127.0.0.1
负载均衡后台： eth0 外网ip / eth1 192.168.x.3-254 / lo 127.0.0.1 + vip(s)

每个内网ip和外网ip都不一样，而vip就是一个（或一堆）相同的虚拟ip
lvs master 和 backup 在lvs生效的时候就会自动把vip加到eth0里面的了。

eth0是在公网交换机上面，eth1是在内网交换机上面
一般lvs只有大访问量的时候才会用到，所以最好隔离公网和内网交换机，内网的可以搞到千兆，那样子从lvs到后台机器的速度就可以保证了。。

另外所有 【负载均衡后台】 都要设置sysctl.conf
net.ipv4.conf.all.arp_announce = 2
net.ipv4.conf.all.arp_ignore = 1
net.ipv4.conf.eth0.arp_announce = 2
net.ipv4.conf.eth0.arp_ignore = 1

保证不会响应vip的arp请求。]]></description>
			<content:encoded><![CDATA[<p>我的设置是这样的：<br />
lvs master ： eth0 外网ip + vip(s) / eth1 192.168.x.1 / lo 127.0.0.1<br />
lvs backup ： eth0 外网ip + vip(s) / eth1 192.168.x.2 / lo 127.0.0.1<br />
负载均衡后台： eth0 外网ip / eth1 192.168.x.3-254 / lo 127.0.0.1 + vip(s)</p>
<p>每个内网ip和外网ip都不一样，而vip就是一个（或一堆）相同的虚拟ip<br />
lvs master 和 backup 在lvs生效的时候就会自动把vip加到eth0里面的了。</p>
<p>eth0是在公网交换机上面，eth1是在内网交换机上面<br />
一般lvs只有大访问量的时候才会用到，所以最好隔离公网和内网交换机，内网的可以搞到千兆，那样子从lvs到后台机器的速度就可以保证了。。</p>
<p>另外所有 【负载均衡后台】 都要设置sysctl.conf<br />
net.ipv4.conf.all.arp_announce = 2<br />
net.ipv4.conf.all.arp_ignore = 1<br />
net.ipv4.conf.eth0.arp_announce = 2<br />
net.ipv4.conf.eth0.arp_ignore = 1</p>
<p>保证不会响应vip的arp请求。</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: jjj_K		</title>
		<link>https://ssmax.net/archives/591.html/comment-page-1#comment-33111</link>

		<dc:creator><![CDATA[jjj_K]]></dc:creator>
		<pubDate>Sun, 05 Jul 2009 07:35:50 +0000</pubDate>
		<guid isPermaLink="false">http://ssmax.net/?p=591#comment-33111</guid>

					<description><![CDATA[你好：
你的BACKUP 上的ETH1 和MASTER上的都是用同一个IP 吗 /
就是设置的VIP？？  我好象不成功 啊]]></description>
			<content:encoded><![CDATA[<p>你好：<br />
你的BACKUP 上的ETH1 和MASTER上的都是用同一个IP 吗 /<br />
就是设置的VIP？？  我好象不成功 啊</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: andre.ease		</title>
		<link>https://ssmax.net/archives/591.html/comment-page-1#comment-33092</link>

		<dc:creator><![CDATA[andre.ease]]></dc:creator>
		<pubDate>Thu, 25 Dec 2008 10:59:38 +0000</pubDate>
		<guid isPermaLink="false">http://ssmax.net/?p=591#comment-33092</guid>

					<description><![CDATA[sb了吧  哈哈]]></description>
			<content:encoded><![CDATA[<p>sb了吧  哈哈</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: ssmax		</title>
		<link>https://ssmax.net/archives/591.html/comment-page-1#comment-33086</link>

		<dc:creator><![CDATA[ssmax]]></dc:creator>
		<pubDate>Mon, 10 Nov 2008 09:51:11 +0000</pubDate>
		<guid isPermaLink="false">http://ssmax.net/?p=591#comment-33086</guid>

					<description><![CDATA[我的机器是这样的
eth0就一个ip，是lvs的真实ip也是vip
eth1是内网的ip
开机的时候不启动keepalived，eth0也会有vip的，因为这个本来就是它的ip，设置好了的，debian在/etc/network/interfaces
redhat好像就是ifcfg-eht0之类的。sysconfig里面好像。]]></description>
			<content:encoded><![CDATA[<p>我的机器是这样的<br />
eth0就一个ip，是lvs的真实ip也是vip<br />
eth1是内网的ip<br />
开机的时候不启动keepalived，eth0也会有vip的，因为这个本来就是它的ip，设置好了的，debian在/etc/network/interfaces<br />
redhat好像就是ifcfg-eht0之类的。sysconfig里面好像。</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: jackbillow		</title>
		<link>https://ssmax.net/archives/591.html/comment-page-1#comment-33085</link>

		<dc:creator><![CDATA[jackbillow]]></dc:creator>
		<pubDate>Mon, 10 Nov 2008 09:05:54 +0000</pubDate>
		<guid isPermaLink="false">http://ssmax.net/?p=591#comment-33085</guid>

					<description><![CDATA[我的机器环境和你一样的，优先没有设置错误。
你的master机器是直接把vip配上吗？就是说直接把vip配置到ifcfg-eth0文件里面？启动时机器，但不启动keepalived，机器的eth0就有vip这个ip吗？]]></description>
			<content:encoded><![CDATA[<p>我的机器环境和你一样的，优先没有设置错误。<br />
你的master机器是直接把vip配上吗？就是说直接把vip配置到ifcfg-eth0文件里面？启动时机器，但不启动keepalived，机器的eth0就有vip这个ip吗？</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: jackbillow		</title>
		<link>https://ssmax.net/archives/591.html/comment-page-1#comment-33084</link>

		<dc:creator><![CDATA[jackbillow]]></dc:creator>
		<pubDate>Mon, 10 Nov 2008 09:04:20 +0000</pubDate>
		<guid isPermaLink="false">http://ssmax.net/?p=591#comment-33084</guid>

					<description><![CDATA[我的机器环境和你一样的，优先没有设置错误。
你的master机器只直接把vip配置上吗？先到ifcfg-eth0文件里面？]]></description>
			<content:encoded><![CDATA[<p>我的机器环境和你一样的，优先没有设置错误。<br />
你的master机器只直接把vip配置上吗？先到ifcfg-eth0文件里面？</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: ssmax		</title>
		<link>https://ssmax.net/archives/591.html/comment-page-1#comment-33083</link>

		<dc:creator><![CDATA[ssmax]]></dc:creator>
		<pubDate>Sat, 01 Nov 2008 02:19:38 +0000</pubDate>
		<guid isPermaLink="false">http://ssmax.net/?p=591#comment-33083</guid>

					<description><![CDATA[我的服务器是这样子的，eth0接外网，其中一台的真实ip是vip，eth1接内网，内网是交换机，主机之间都是同一个内网的，然后广播的keepalived包就按内网的来发，如果还是抢ip的话你看看priority 有没有设置错，master的应该priority比较大，而且先开master再开backup，应该就不会抢了。]]></description>
			<content:encoded><![CDATA[<p>我的服务器是这样子的，eth0接外网，其中一台的真实ip是vip，eth1接内网，内网是交换机，主机之间都是同一个内网的，然后广播的keepalived包就按内网的来发，如果还是抢ip的话你看看priority 有没有设置错，master的应该priority比较大，而且先开master再开backup，应该就不会抢了。</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: jackbillow		</title>
		<link>https://ssmax.net/archives/591.html/comment-page-1#comment-33082</link>

		<dc:creator><![CDATA[jackbillow]]></dc:creator>
		<pubDate>Thu, 30 Oct 2008 06:27:29 +0000</pubDate>
		<guid isPermaLink="false">http://ssmax.net/?p=591#comment-33082</guid>

					<description><![CDATA[yhc_hai@hotmail.com
有空可以探讨一下。]]></description>
			<content:encoded><![CDATA[<p><a href="mailto:yhc_hai@hotmail.com">yhc_hai@hotmail.com</a><br />
有空可以探讨一下。</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: jackbillow		</title>
		<link>https://ssmax.net/archives/591.html/comment-page-1#comment-33081</link>

		<dc:creator><![CDATA[jackbillow]]></dc:creator>
		<pubDate>Thu, 30 Oct 2008 06:26:29 +0000</pubDate>
		<guid isPermaLink="false">http://ssmax.net/?p=591#comment-33081</guid>

					<description><![CDATA[我这样做时，不成功。
启动keepalived后，vip在两边都有，都绑定在两边。出现挣用。]]></description>
			<content:encoded><![CDATA[<p>我这样做时，不成功。<br />
启动keepalived后，vip在两边都有，都绑定在两边。出现挣用。</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: jackbillow		</title>
		<link>https://ssmax.net/archives/591.html/comment-page-1#comment-33080</link>

		<dc:creator><![CDATA[jackbillow]]></dc:creator>
		<pubDate>Thu, 30 Oct 2008 06:23:16 +0000</pubDate>
		<guid isPermaLink="false">http://ssmax.net/?p=591#comment-33080</guid>

					<description><![CDATA[上面说的，你实现了吗？没有任何问题吗？]]></description>
			<content:encoded><![CDATA[<p>上面说的，你实现了吗？没有任何问题吗？</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
