<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.3" -->
<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">
	<channel>
		<title>DataStax Support Forums &#187; Topic: incorrect replica assignment</title>
		<link>http://www.datastax.com/support-forums/topic/incorrect-replica-assignment</link>
		<description>Software, Support, and Training for Apache Cassandra</description>
		<language>en-US</language>
		<pubDate>Wed, 22 May 2013 17:47:51 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.3</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.datastax.com/support-forums/search.php</link>
		</textInput>
		<atom:link href="http://www.datastax.com/support-forums/rss/topic/incorrect-replica-assignment" rel="self" type="application/rss+xml" />

		<item>
			<title>fredespi on "incorrect replica assignment"</title>
			<link>http://www.datastax.com/support-forums/topic/incorrect-replica-assignment#post-7489</link>
			<pubDate>Tue, 13 Nov 2012 20:07:59 +0000</pubDate>
			<dc:creator>fredespi</dc:creator>
			<guid isPermaLink="false">7489@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Unfortunately I had already switched tokens between two of the nodes so I can't replicate the problem now. Sorry.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nickmbailey on "incorrect replica assignment"</title>
			<link>http://www.datastax.com/support-forums/topic/incorrect-replica-assignment#post-7435</link>
			<pubDate>Wed, 07 Nov 2012 23:30:15 +0000</pubDate>
			<dc:creator>nickmbailey</dc:creator>
			<guid isPermaLink="false">7435@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;That could perhaps be a bug. Can you attach the output from 'nodetool ring' and 'nodetool describering &#38;lt;keyspace&#38;gt;'
&#60;/p&#62;</description>
		</item>
		<item>
			<title>fredespi on "incorrect replica assignment"</title>
			<link>http://www.datastax.com/support-forums/topic/incorrect-replica-assignment#post-7433</link>
			<pubDate>Wed, 07 Nov 2012 20:42:11 +0000</pubDate>
			<dc:creator>fredespi</dc:creator>
			<guid isPermaLink="false">7433@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;using opscenter view replication and by doing nodetool describering keyspace.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nickmbailey on "incorrect replica assignment"</title>
			<link>http://www.datastax.com/support-forums/topic/incorrect-replica-assignment#post-7432</link>
			<pubDate>Wed, 07 Nov 2012 19:36:21 +0000</pubDate>
			<dc:creator>nickmbailey</dc:creator>
			<guid isPermaLink="false">7432@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;How are you determining where data is being replicated?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>fredespi on "incorrect replica assignment"</title>
			<link>http://www.datastax.com/support-forums/topic/incorrect-replica-assignment#post-7431</link>
			<pubDate>Wed, 07 Nov 2012 19:29:02 +0000</pubDate>
			<dc:creator>fredespi</dc:creator>
			<guid isPermaLink="false">7431@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;NetworkTopologyStrategy with a cassandra-topology.properties.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nickmbailey on "incorrect replica assignment"</title>
			<link>http://www.datastax.com/support-forums/topic/incorrect-replica-assignment#post-7400</link>
			<pubDate>Mon, 05 Nov 2012 16:51:22 +0000</pubDate>
			<dc:creator>nickmbailey</dc:creator>
			<guid isPermaLink="false">7400@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Are you using SimpleStrategy or NetworkTopologyStrategy for your keyspace?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>fredespi on "incorrect replica assignment"</title>
			<link>http://www.datastax.com/support-forums/topic/incorrect-replica-assignment#post-7375</link>
			<pubDate>Fri, 02 Nov 2012 16:15:11 +0000</pubDate>
			<dc:creator>fredespi</dc:creator>
			<guid isPermaLink="false">7375@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;I read this post: &#60;a href=&#34;http://www.datastax.com/support-forums/topic/is-networktopology-strategy-unbalanced#post-1391&#34; rel=&#34;nofollow&#34;&#62;http://www.datastax.com/support-forums/topic/is-networktopology-strategy-unbalanced#post-1391&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;And documentation I've read elsewhere agrees with this post: within a dc replicas will be assigned according to the hash key and then around the ring, skipping the same rack. But I am not seeing this.&#60;/p&#62;
&#60;p&#62;I start with a 2 node dc with 2 racks. These nodes are in fact virtual machines on two separate physical machines. Tokens are assigned with 0 and 85070591730234615865843651857942052864, for node 1 on rack1 and 2 on rack2 respectively. RF is 2. Nodes replicate to each other. And that's the point; my idea is to replicate across racks and thereby physical machines.&#60;/p&#62;
&#60;p&#62;I then expand the cluster with 2 more nodes, one in each rack. The 2 new tokens that split the keyspaces in half are assigned to the new nodes: 42535295865117307932921825928971026432 to new node on rack 1 and 127605887595351923798765477786913079296 to new node on rack 2. In the ring (i.e. the token order) the first node is still the first, the new node in rack1 is now number 2, the old second node in rack2 is now number 3, and the new node in rack 2 is number 4.&#60;/p&#62;
&#60;p&#62;After waiting for bootstrapping I find that node 1 now replicates to node 2 (same rack), node 2 to node 3 (across to the other rack), node 3 to node 4 (same rack), and node 4 to node 1 (across). This is not what I wanted or expected. I expected a key to get it's first replica in the node to which the key belongs (for example node1). Then the next replica would be the next in the ring which is not in the same rack. In this case that would be node 3 in rack2. &#60;/p&#62;
&#60;p&#62;So I try to change the token assignements around. That's something I really would like to avoid since the old nodes have accumulated quite a bit of data. I switch tokens between node 2 on rack 1 and node 3 on rack 2. Now replication works as I want, across racks, and I believe that both racks now contain the full data so that I have fault tolerance and can loose a whole rack and still have all data. But it seems it's because replication simply follows the token order around the ring. &#60;/p&#62;
&#60;p&#62;What am I missing?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
