<?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: On-The-Fly Node add?</title>
		<link>http://www.datastax.com/support-forums/topic/on-the-fly-node-add</link>
		<description>Software, Support, and Training for Apache Cassandra</description>
		<language>en-US</language>
		<pubDate>Sun, 26 May 2013 04:33:29 +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/on-the-fly-node-add" rel="self" type="application/rss+xml" />

		<item>
			<title>cyborat on "On-The-Fly Node add?"</title>
			<link>http://www.datastax.com/support-forums/topic/on-the-fly-node-add#post-8910</link>
			<pubDate>Mon, 04 Feb 2013 20:14:46 +0000</pubDate>
			<dc:creator>cyborat</dc:creator>
			<guid isPermaLink="false">8910@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Hi - I'm working on a system where we'd like to be able to add a node 'on-the-fly' as it were, via a GUI interaction. The intent is to link 2 instances of a Cassandra based application together, into what we're calling a 'domain'. Each separate system is made aware of the others like it, and we can locate and add another into the domain via the GUI. What we need to do then is to have the Cassandra DBs join together into the ring, and coexist from that point on. What this means is that we need to add the other Cass instance into the ring, then update its replication factor, and perform a nodetool repair.&#60;/p&#62;
&#60;p&#62;My question is, is anyone aware of a best practice to achieve this? The application has the means to call its own shell scripts which we have secured - but the problem we're encountering is that the process of updating the replication factor and then the subsequent nodetool repair commands is not an immediate process, and it takes time before the UI starts to see the appropriate data (because it is taking time for the data to then propogate around the ring).&#60;/p&#62;
&#60;p&#62;Our app is EXT-JS on the front, PHP in the middle, using PHPCassa's thrift client, and then of course our Cassandra DB.&#60;/p&#62;
&#60;p&#62;In essence, here is the desired process:&#60;/p&#62;
&#60;p&#62;1) User logs into the UI on system A, and chooses to add a new system B to the domain - UI is put in state of 'In Process'&#60;br /&#62;
2) Upon this add, scripts are run server-side to add the selected system's Cass node to the ring&#60;br /&#62;
3) Once the node is in the ring, the scripts call cassandra-cli and issue a replication factor update - on each node&#60;br /&#62;
    a) After replication factor is updated on a node, run nodetool repair command&#60;br /&#62;
4) Once R-factor and nodetool repairs are complete on all nodes, UI receives notification of completion, and is again useable&#60;/p&#62;
&#60;p&#62;Is this something anyone here has been able to achieve? If so, what was your solution? Or is this process better suited for a scheduled overnight procedure?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
