<?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>评论：redis cluster 添加 删除 重分配 节点</title>
	<atom:link href="http://blog.51yip.com/nosql/1726.html/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.51yip.com/nosql/1726.html</link>
	<description>－－一步，二步，三步，N步，二行脚印</description>
	<lastBuildDate>Tue, 07 Jun 2022 01:26:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>来自：乐灬乐</title>
		<link>http://blog.51yip.com/nosql/1726.html/comment-page-1#comment-17629</link>
		<dc:creator>乐灬乐</dc:creator>
		<pubDate>Thu, 20 Jul 2017 08:12:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.51yip.com/?p=1726#comment-17629</guid>
		<description>非常感谢，我在添加从节点时，总是失败，用你这方法直接成功了</description>
		<content:encoded><![CDATA[<p>非常感谢，我在添加从节点时，总是失败，用你这方法直接成功了</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：zhm</title>
		<link>http://blog.51yip.com/nosql/1726.html/comment-page-1#comment-17354</link>
		<dc:creator>zhm</dc:creator>
		<pubDate>Tue, 22 Dec 2015 08:06:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.51yip.com/?p=1726#comment-17354</guid>
		<description>现状： 
A: 192.168.15.44   7379\7380\7381
B: 192.168.15.45   7379\7380\7381 

准备在C机器：192.168.15.53  添加主从节点
主节点：192.168.85.53:7382
从节点：192.168.85.53:7383

添加成功，并没问题，但是查看集群状态时，发看不到新加的节点
# redis-trib.rb check 192.168.15.44:7380
Connecting to node 192.168.15.44:7380: OK
Connecting to node 192.168.15.44:7379: OK
Connecting to node 192.168.15.44:7381: OK
Connecting to node 192.168.15.45:7380: OK
Connecting to node 192.168.15.45:7381: OK
Connecting to node 192.168.15.45:7379: OK

但如果这样看，便可看到，请问这是什么原因？

# redis-trib.rb check 192.168.15.53:7382
Connecting to node 192.168.15.53:7382: OK
Connecting to node 192.168.15.45:7381: OK
Connecting to node 192.168.15.44:7380: OK
Connecting to node 192.168.15.45:7379: OK
Connecting to node 192.168.15.44:7381: OK
Connecting to node 192.168.15.45:7380: OK
Connecting to node 192.168.15.44:7379: OK</description>
		<content:encoded><![CDATA[<p>现状：<br />
A: 192.168.15.44   7379\7380\7381<br />
B: 192.168.15.45   7379\7380\7381 </p>
<p>准备在C机器：192.168.15.53  添加主从节点<br />
主节点：192.168.85.53:7382<br />
从节点：192.168.85.53:7383</p>
<p>添加成功，并没问题，但是查看集群状态时，发看不到新加的节点<br />
# redis-trib.rb check 192.168.15.44:7380<br />
Connecting to node 192.168.15.44:7380: OK<br />
Connecting to node 192.168.15.44:7379: OK<br />
Connecting to node 192.168.15.44:7381: OK<br />
Connecting to node 192.168.15.45:7380: OK<br />
Connecting to node 192.168.15.45:7381: OK<br />
Connecting to node 192.168.15.45:7379: OK</p>
<p>但如果这样看，便可看到，请问这是什么原因？</p>
<p># redis-trib.rb check 192.168.15.53:7382<br />
Connecting to node 192.168.15.53:7382: OK<br />
Connecting to node 192.168.15.45:7381: OK<br />
Connecting to node 192.168.15.44:7380: OK<br />
Connecting to node 192.168.15.45:7379: OK<br />
Connecting to node 192.168.15.44:7381: OK<br />
Connecting to node 192.168.15.45:7380: OK<br />
Connecting to node 192.168.15.44:7379: OK</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：姣姣</title>
		<link>http://blog.51yip.com/nosql/1726.html/comment-page-1#comment-17334</link>
		<dc:creator>姣姣</dc:creator>
		<pubDate>Mon, 23 Nov 2015 07:59:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.51yip.com/?p=1726#comment-17334</guid>
		<description>“cluster forget 从节点id”，提示成功。还需要去各个机器的配置文件nodes6379.conf将这一行删了，重启redis</description>
		<content:encoded><![CDATA[<p>“cluster forget 从节点id”，提示成功。还需要去各个机器的配置文件nodes6379.conf将这一行删了，重启redis</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：jack</title>
		<link>http://blog.51yip.com/nosql/1726.html/comment-page-1#comment-17315</link>
		<dc:creator>jack</dc:creator>
		<pubDate>Wed, 04 Nov 2015 12:17:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.51yip.com/?p=1726#comment-17315</guid>
		<description>一个正常运行的集群（三主三从），我测试的过程中，我想踢掉一个从节点，使用命令
“cluster  forget   从节点id”，提示成功。这个时候从节点的进程是还存在的，查看集群的状态，从节点确实不在集群中了，可是过了1分钟左右，发现集群又把这个从节点加进来了，很奇怪？

但是我使用redis-trib.rb del-node    是可以直接踢出从节点的，这个时候从节点的进程是死的.</description>
		<content:encoded><![CDATA[<p>一个正常运行的集群（三主三从），我测试的过程中，我想踢掉一个从节点，使用命令<br />
“cluster  forget   从节点id”，提示成功。这个时候从节点的进程是还存在的，查看集群的状态，从节点确实不在集群中了，可是过了1分钟左右，发现集群又把这个从节点加进来了，很奇怪？</p>
<p>但是我使用redis-trib.rb del-node    是可以直接踢出从节点的，这个时候从节点的进程是死的.</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：张映</title>
		<link>http://blog.51yip.com/nosql/1726.html/comment-page-1#comment-17188</link>
		<dc:creator>张映</dc:creator>
		<pubDate>Thu, 07 May 2015 02:47:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.51yip.com/?p=1726#comment-17188</guid>
		<description>用# redis-cli -c -p 6381 -h 192.168.10.219，对集群中的任何一点进行连接,包括新增节点，然后set，试了差不多十几次，没有一次值能存到新节点，槽为0的节点。

如果是用telnet 到新节点的话，肯定是可以的，但是这已脱离了集群。</description>
		<content:encoded><![CDATA[<p>用# redis-cli -c -p 6381 -h 192.168.10.219，对集群中的任何一点进行连接,包括新增节点，然后set，试了差不多十几次，没有一次值能存到新节点，槽为0的节点。</p>
<p>如果是用telnet 到新节点的话，肯定是可以的，但是这已脱离了集群。</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：lu</title>
		<link>http://blog.51yip.com/nosql/1726.html/comment-page-1#comment-17187</link>
		<dc:creator>lu</dc:creator>
		<pubDate>Wed, 06 May 2015 10:07:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.51yip.com/?p=1726#comment-17187</guid>
		<description>比如现有cluster分别拥有A、B、C 三个master节点，对应的slave节点分别为A1、B1、C1，假如需要加机器为节点D、D1分别为master和slave，已经将D、D1分别加入cluster中，那redis会自动将A、B、C中部分的槽均匀迁移到D上吗？还是需要自己手动去迁移？验证了一下槽是要自己去迁移的，但是我再还没迁移之前能在节点D上插入键值（key-value），这个又是怎么回事呢？</description>
		<content:encoded><![CDATA[<p>比如现有cluster分别拥有A、B、C 三个master节点，对应的slave节点分别为A1、B1、C1，假如需要加机器为节点D、D1分别为master和slave，已经将D、D1分别加入cluster中，那redis会自动将A、B、C中部分的槽均匀迁移到D上吗？还是需要自己手动去迁移？验证了一下槽是要自己去迁移的，但是我再还没迁移之前能在节点D上插入键值（key-value），这个又是怎么回事呢？</p>
]]></content:encoded>
	</item>
</channel>
</rss>
