helix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kisho...@apache.org
Subject svn commit: r1479756 [2/39] - in /incubator/helix/site-content: ./ apidocs/reference/org/apache/helix/ apidocs/reference/org/apache/helix/agent/ apidocs/reference/org/apache/helix/manager/zk/ apidocs/reference/org/apache/helix/messaging/handling/ apido...
Date Tue, 07 May 2013 03:11:00 GMT
Modified: incubator/helix/site-content/Features.html
URL: http://svn.apache.org/viewvc/incubator/helix/site-content/Features.html?rev=1479756&r1=1479755&r2=1479756&view=diff
==============================================================================
--- incubator/helix/site-content/Features.html (original)
+++ incubator/helix/site-content/Features.html Tue May  7 03:10:53 2013
@@ -1,13 +1,13 @@
 <!DOCTYPE html>
 <!--
- | Generated by Apache Maven Doxia at Apr 27, 2013
+ | Generated by Apache Maven Doxia at May 6, 2013
  | Rendered using Apache Maven Fluido Skin 1.3.0
 -->
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
   <head>
     <meta charset="UTF-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-    <meta name="Date-Revision-yyyymmdd" content="20130427" />
+    <meta name="Date-Revision-yyyymmdd" content="20130506" />
     <meta http-equiv="Content-Language" content="en" />
     <title>Apache Helix - </title>
     <link rel="stylesheet" href="./css/apache-maven-fluido-1.3.0.min.css" />
@@ -52,6 +52,9 @@
                       <li>      <a href="Quickstart.html"  title="Quick Start">Quick Start</a>
 </li>
                   
+                      <li>      <a href="Concepts.html"  title="Core concept">Core concept</a>
+</li>
+                  
                       <li>      <a href="Tutorial.html"  title="Tutorial">Tutorial</a>
 </li>
                   
@@ -162,7 +165,7 @@
                 
                 
             
-                  <li id="publishDate" class="pull-right">Last Published: 2013-04-27</li> 
+                  <li id="publishDate" class="pull-right">Last Published: 2013-05-06</li> 
             
                             </ul>
       </div>
@@ -187,26 +190,111 @@ software distributed under the License i
 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 KIND, either express or implied.  See the License for the
 specific language governing permissions and limitations
-under the License. --><div class="section"><h2>Partition Placement<a name="Partition_Placement"></a></h2><p>The placement of partitions in a DDS is very critical for reliability and scalability of the system. For example, when a node fails, it is important that the partitions hosted on that node are reallocated evenly among the remaining nodes. Consistent hashing is one such algorithm that can guarantee this. Helix by default comes with a variant of consistent hashing based of the RUSH algorithm. This means given a number of partitions, replicas and number of nodes Helix does the automatic assignment of partition to nodes such that</p>
+under the License. --><div class="section"><div class="section"><h3>CONFIGURING IDEALSTATE<a name="CONFIGURING_IDEALSTATE"></a></h3><p>Read concepts page for definition of Idealstate.</p><p>The placement of partitions in a DDS is very critical for reliability and scalability of the system. For example, when a node fails, it is important that the partitions hosted on that node are reallocated evenly among the remaining nodes. Consistent hashing is one such algorithm that can guarantee this. Helix by default comes with a variant of consistent hashing based of the RUSH algorithm. </p><p>This means given a number of partitions, replicas and number of nodes Helix does the automatic assignment of partition to nodes such that</p>
 <ul>
   <li>Each node has the same number of partitions and replicas of the same partition do not stay on the same node.</li>
   <li>When a node fails, the partitions will be equally distributed among the remaining nodes</li>
   <li>When new nodes are added, the number of partitions moved will be minimized along with satisfying the above two criteria.</li>
-</ul><p>In simple terms, partition assignment can be defined as the mapping of Replica,State to a Node in the cluster. For example, lets say the system as 2 partitions(P1,P2) and each partition has 2 replicas and there are 2 nodes(N1,N2) in the system and two possible states Master and Slave </p><p>The partition assignment table can look like </p>
-<div class="source"><pre class="prettyprint">P1 -&gt; {N1:M, N2:S}
-P2 -&gt; {N1:S, N2:M}
-</pre></div><p>This means Partition P1 must be a Master at N1 and Slave at N2 and vice versa for P2</p><p>Helix provides multiple ways to control the partition placement. See Execution modes section for more info on this.</p><p>IdealState execution modes  Idealstate is defined as the state of the DDS when all nodes are up and running and healthy. Helix uses this as the target state of the system and computes the appropriate transitions needed in the system to bring it to a stable state. </p><p>Helix supports 3 different execution modes which allows application to explicitly control the placement and state of the replica.</p><div class="section"><div class="section"><div class="section"><h5>AUTO_REBALANCE<a name="AUTO_REBALANCE"></a></h5><p>When the idealstate mode is set to AUTO_REBALANCE, Helix controls both the location of the replica along with the state. This option is useful for applications where creation of a replica is not expensive. A typical example is evenly distr
 ibuting a group of tasks among the currently alive processes. For example, if there are 60 tasks and 4 nodes, Helix assigns 15 tasks to each node. When one node fails Helix redistributes its 15 tasks to the remaining 3 nodes. Similarly, if a node is added, Helix re-allocates 3 tasks from each of the 4 nodes to the 5th node. </p></div></div><div class="section"><h4>AUTO<a name="AUTO"></a></h4><p>When the idealstate mode is set to AUTO, Helix only controls STATE of the replicas where as the location of the partition is controlled by application. For example the application can say P1-&gt;{N1,N2,N3} which means P1 should only exist N1,N2,N3. In this mode when N1 fails, unlike in AUTO-REBALANCE mode the partition is not moved from N1 to others nodes in the cluster. But Helix might decide to change the state of P1 in N2 and N3 based on the system constraints. For example, if a system constraint specified that there should be 1 Master and if the Master failed, then N2 will be made
  the master.</p></div><div class="section"><h4>CUSTOM<a name="CUSTOM"></a></h4><p>Helix offers a third mode called CUSTOM, in which application can completely control the placement and state of each replica. Applications will have to implement an interface that Helix will invoke when the cluster state changes. Within this callback, the application can recompute the partition assignment mapping. Helix will then issue transitions to get the system to the final state. Note that Helix will ensure that system constraints are not violated at any time. For example, the current state of the system might be P1 -&gt; {N1:M,N2:S} and the application changes the ideal state to P2 -&gt; {N1:S,N2:M}. Helix will not blindly issue M-S to N1 and S-M to N2 in parallel since it might result in a transient state where both N1 and N2 are masters. Helix will issue S-M to N2 only when N1 has changed its state to S.</p></div></div></div><div class="section"><h2>State Machine Configuration<a name="S
 tate_Machine_Configuration"></a></h2><p>Helix comes with 3 default state models that are most commonly used. Its possible to have multiple state models in a cluster. Every resource that is added should have a reference to the state model. </p>
+</ul><p>Helix provides multiple ways to control the placement and state of a replica. </p>
+<div class="source"><pre class="prettyprint">            |AUTO REBALANCE|   AUTO     |   CUSTOM  |       
+            -----------------------------------------
+   LOCATION | HELIX        |  APP       |  APP      |
+            -----------------------------------------
+      STATE | HELIX        |  HELIX     |  APP      |
+            -----------------------------------------
+</pre></div><div class="section"><h4>HELIX EXECUTION MODE<a name="HELIX_EXECUTION_MODE"></a></h4><p>Idealstate is defined as the state of the DDS when all nodes are up and running and healthy. Helix uses this as the target state of the system and computes the appropriate transitions needed in the system to bring it to a stable state. </p><p>Helix supports 3 different execution modes which allows application to explicitly control the placement and state of the replica.</p><div class="section"><h5>AUTO_REBALANCE<a name="AUTO_REBALANCE"></a></h5><p>When the idealstate mode is set to AUTO_REBALANCE, Helix controls both the location of the replica along with the state. This option is useful for applications where creation of a replica is not expensive. Example</p>
+<div class="source"><pre class="prettyprint">{
+  &quot;id&quot; : &quot;MyResource&quot;,
+  &quot;simpleFields&quot; : {
+    &quot;IDEAL_STATE_MODE&quot; : &quot;AUTO_REBALANCE&quot;,
+    &quot;NUM_PARTITIONS&quot; : &quot;3&quot;,
+    &quot;REPLICAS&quot; : &quot;2&quot;,
+    &quot;STATE_MODEL_DEF_REF&quot; : &quot;MasterSlave&quot;,
+  }
+  &quot;listFields&quot; : {
+    &quot;MyResource_0&quot; : [],
+    &quot;MyResource_1&quot; : [],
+    &quot;MyResource_2&quot; : []
+  },
+  &quot;mapFields&quot; : {
+  }
+}
+</pre></div><p>If there are 3 nodes in the cluster, then Helix will internally compute the ideal state as </p>
+<div class="source"><pre class="prettyprint">{
+  &quot;id&quot; : &quot;MyResource&quot;,
+  &quot;simpleFields&quot; : {
+    &quot;NUM_PARTITIONS&quot; : &quot;3&quot;,
+    &quot;REPLICAS&quot; : &quot;2&quot;,
+    &quot;STATE_MODEL_DEF_REF&quot; : &quot;MasterSlave&quot;,
+  },
+  &quot;mapFields&quot; : {
+    &quot;MyResource_0&quot; : {
+      &quot;N1&quot; : &quot;MASTER&quot;,
+      &quot;N2&quot; : &quot;SLAVE&quot;,
+    },
+    &quot;MyResource_1&quot; : {
+      &quot;N2&quot; : &quot;MASTER&quot;,
+      &quot;N3&quot; : &quot;SLAVE&quot;,
+    },
+    &quot;MyResource_2&quot; : {
+      &quot;N3&quot; : &quot;MASTER&quot;,
+      &quot;N1&quot; : &quot;SLAVE&quot;,
+    }
+  }
+}
+</pre></div><p>Another typical example is evenly distributing a group of tasks among the currently alive processes. For example, if there are 60 tasks and 4 nodes, Helix assigns 15 tasks to each node. When one node fails Helix redistributes its 15 tasks to the remaining 3 nodes. Similarly, if a node is added, Helix re-allocates 3 tasks from each of the 4 nodes to the 5th node. </p></div></div><div class="section"><h4>AUTO<a name="AUTO"></a></h4><p>When the idealstate mode is set to AUTO, Helix only controls STATE of the replicas where as the location of the partition is controlled by application. Example: The below idealstate indicates thats MyResource_0 must be only on node1 and node2. But gives the control of assigning the STATE to Helix.</p>
+<div class="source"><pre class="prettyprint">{
+  &quot;id&quot; : &quot;MyResource&quot;,
+  &quot;simpleFields&quot; : {
+    &quot;IDEAL_STATE_MODE&quot; : &quot;AUTO&quot;,
+    &quot;NUM_PARTITIONS&quot; : &quot;3&quot;,
+    &quot;REPLICAS&quot; : &quot;2&quot;,
+    &quot;STATE_MODEL_DEF_REF&quot; : &quot;MasterSlave&quot;,
+  }
+  &quot;listFields&quot; : {
+    &quot;MyResource_0&quot; : [node1, node2],
+    &quot;MyResource_1&quot; : [node2, node3],
+    &quot;MyResource_2&quot; : [node3, node1]
+  },
+  &quot;mapFields&quot; : {
+  }
+}
+</pre></div><p>In this mode when node1 fails, unlike in AUTO-REBALANCE mode the partition is not moved from node1 to others nodes in the cluster. Instead, Helix will decide to change the state of MyResource_0 in N2 based on the system constraints. For example, if a system constraint specified that there should be 1 Master and if the Master failed, then node2 will be made the new master. </p></div><div class="section"><h4>CUSTOM<a name="CUSTOM"></a></h4><p>Helix offers a third mode called CUSTOM, in which application can completely control the placement and state of each replica. Applications will have to implement an interface that Helix will invoke when the cluster state changes. Within this callback, the application can recompute the idealstate. Helix will then issue appropriate transitions such that Idealstate and Currentstate converges.</p>
+<div class="source"><pre class="prettyprint">{
+  &quot;id&quot; : &quot;MyResource&quot;,
+  &quot;simpleFields&quot; : {
+      &quot;IDEAL_STATE_MODE&quot; : &quot;CUSTOM&quot;,
+    &quot;NUM_PARTITIONS&quot; : &quot;3&quot;,
+    &quot;REPLICAS&quot; : &quot;2&quot;,
+    &quot;STATE_MODEL_DEF_REF&quot; : &quot;MasterSlave&quot;,
+  },
+  &quot;mapFields&quot; : {
+    &quot;MyResource_0&quot; : {
+      &quot;N1&quot; : &quot;MASTER&quot;,
+      &quot;N2&quot; : &quot;SLAVE&quot;,
+    },
+    &quot;MyResource_1&quot; : {
+      &quot;N2&quot; : &quot;MASTER&quot;,
+      &quot;N3&quot; : &quot;SLAVE&quot;,
+    },
+    &quot;MyResource_2&quot; : {
+      &quot;N3&quot; : &quot;MASTER&quot;,
+      &quot;N1&quot; : &quot;SLAVE&quot;,
+    }
+  }
+}
+</pre></div><p>For example, the current state of the system might be MyResource_0 -&gt; {N1:MASTER,N2:SLAVE} and the application changes the ideal state to MyResource_0 -&gt; {N1:SLAVE,N2:MASTER}. Helix will not blindly issue MASTER&gt;SLAVE to N1 and SLAVE&gt;MASTER to N2 in parallel since it might result in a transient state where both N1 and N2 are masters. Helix will first issue MASTER&gt;SLAVE to N1 and after its completed it will issue SLAVE&gt;MASTER to N2. </p></div></div><div class="section"><h3>State Machine Configuration<a name="State_Machine_Configuration"></a></h3><p>Helix comes with 3 default state models that are most commonly used. Its possible to have multiple state models in a cluster. Every resource that is added should have a reference to the state model. </p>
 <ul>
   <li>MASTER-SLAVE: Has 3 states OFFLINE,SLAVE,MASTER. Max masters is 1. Slaves will be based on the replication factor. Replication factor can be specified while adding the resource</li>
   <li>ONLINE-OFFLINE: Has 2 states OFFLINE and ONLINE. Very simple state model and most applications start off with this state model.</li>
   <li>LEADER-STANDBY:1 Leader and many stand bys. In general the standbys are idle.</li>
-</ul><p>Apart from providing the state machine configuration, one can specify the constraints of states and transitions.</p><p>For example one can say Master:1. Max number of replicas in Master state at any time is 1. OFFLINE-SLAVE:5 Max number of Offline-Slave transitions that can happen concurrently in the system</p><p>STATE PRIORITY Helix uses greedy approach to satisfy the state constraints. For example if the state machine configuration says it needs 1 master and 2 slaves but only 1 node is active, Helix must promote it to master. This behavior is achieved by providing the state priority list as MASTER,SLAVE.</p><p>STATE TRANSITION PRIORITY Helix tries to fire as many transitions as possible in parallel to reach the stable state without violating constraints. By default Helix simply sorts the transitions alphabetically and fires as many as it can without violating the constraints. One can control this by overriding the priority order.</p></div><div class="section"><h2>C
 onfig management<a name="Config_management"></a></h2><p>Helix allows applications to store application specific properties. The configuration can have different scopes.</p>
+</ul><p>Apart from providing the state machine configuration, one can specify the constraints of states and transitions.</p><p>For example one can say Master:1. Max number of replicas in Master state at any time is 1. OFFLINE-SLAVE:5 Max number of Offline-Slave transitions that can happen concurrently in the system</p><p>STATE PRIORITY Helix uses greedy approach to satisfy the state constraints. For example if the state machine configuration says it needs 1 master and 2 slaves but only 1 node is active, Helix must promote it to master. This behavior is achieved by providing the state priority list as MASTER,SLAVE.</p><p>STATE TRANSITION PRIORITY Helix tries to fire as many transitions as possible in parallel to reach the stable state without violating constraints. By default Helix simply sorts the transitions alphabetically and fires as many as it can without violating the constraints. One can control this by overriding the priority order.</p></div><div class="section"><h3>C
 onfig management<a name="Config_management"></a></h3><p>Helix allows applications to store application specific properties. The configuration can have different scopes.</p>
 <ul>
   <li>Cluster</li>
   <li>Node specific</li>
   <li>Resource specific</li>
   <li>Partition specific</li>
-</ul><p>Helix also provides notifications when any configs are changed. This allows applications to support dynamic configuration changes.</p><p>See HelixManager.getConfigAccessor for more info</p></div><div class="section"><h2>Intra cluster messaging api<a name="Intra_cluster_messaging_api"></a></h2><p>This is an interesting feature which is quite useful in practice. Often times, nodes in DDS requires a mechanism to interact with each other. One such requirement is a process of bootstrapping a replica.</p><p>Consider a search system use case where the index replica starts up and it does not have an index. One of the commonly used solutions is to get the index from a common location or to copy the index from another replica. Helix provides a messaging api, that can be used to talk to other nodes in the system. The value added that Helix provides here is, message recipient can be specified in terms of resource, partition, state and Helix ensures that the message is delivered 
 to all of the required recipients. In this particular use case, the instance can specify the recipient criteria as all replicas of P1. Since Helix is aware of the global state of the system, it can send the message to appropriate nodes. Once the nodes respond Helix provides the bootstrapping replica with all the responses.</p><p>This is a very generic api and can also be used to schedule various periodic tasks in the cluster like data backups etc. System Admins can also perform adhoc tasks like on demand backup or execute a system command(like rm -rf ;-)) across all nodes.</p>
+</ul><p>Helix also provides notifications when any configs are changed. This allows applications to support dynamic configuration changes.</p><p>See HelixManager.getConfigAccessor for more info</p></div><div class="section"><h3>Intra cluster messaging api<a name="Intra_cluster_messaging_api"></a></h3><p>This is an interesting feature which is quite useful in practice. Often times, nodes in DDS requires a mechanism to interact with each other. One such requirement is a process of bootstrapping a replica.</p><p>Consider a search system use case where the index replica starts up and it does not have an index. One of the commonly used solutions is to get the index from a common location or to copy the index from another replica. Helix provides a messaging api, that can be used to talk to other nodes in the system. The value added that Helix provides here is, message recipient can be specified in terms of resource, partition, state and Helix ensures that the message is delivered 
 to all of the required recipients. In this particular use case, the instance can specify the recipient criteria as all replicas of P1. Since Helix is aware of the global state of the system, it can send the message to appropriate nodes. Once the nodes respond Helix provides the bootstrapping replica with all the responses.</p><p>This is a very generic api and can also be used to schedule various periodic tasks in the cluster like data backups etc. System Admins can also perform adhoc tasks like on demand backup or execute a system command(like rm -rf ;-)) across all nodes.</p>
 <div class="source"><pre class="prettyprint">      ClusterMessagingService messagingService = manager.getMessagingService();
       //CONSTRUCT THE MESSAGE
       Message requestBackupUriRequest = new Message(
@@ -216,7 +304,7 @@ P2 -&gt; {N1:S, N2:M}
       requestBackupUriRequest.setMsgState(MessageState.NEW);
       //SET THE RECIPIENT CRITERIA, All nodes that satisfy the criteria will receive the message
       Criteria recipientCriteria = new Criteria();
-      recipientCriteria.setInstanceName(&quot;*&quot;);
+      recipientCriteria.setInstanceName(&quot;%&quot;);
       recipientCriteria.setRecipientInstanceType(InstanceType.PARTICIPANT);
       recipientCriteria.setResource(&quot;MyDB&quot;);
       recipientCriteria.setPartition(&quot;&quot;);
@@ -230,13 +318,13 @@ P2 -&gt; {N1:S, N2:M}
       //This will return only after all recipients respond or after timeout.
       int sentMessageCount = messagingService.sendAndWait(recipientCriteria,
           requestBackupUriRequest, responseHandler, timeout);
-</pre></div><p>See HelixManager.getMessagingService for more info.</p></div><div class="section"><h2>Application specific property storage<a name="Application_specific_property_storage"></a></h2><p>There are several usecases where applications needs support for distributed data structures. Helix uses Zookeeper to store the application data and hence provides notifications when the data changes. One value add Helix provides is the ability to specify cache the data and also write through cache. This is more efficient than reading from ZK every time.</p><p>See HelixManager.getHelixPropertyStore</p></div><div class="section"><h2>Throttling<a name="Throttling"></a></h2><p>Since all state changes in the system are triggered through transitions, Helix can control the number of transitions that can happen in parallel. Some of the transitions may be light weight but some might involve moving data around which is quite expensive. Helix allows applications to set threshold on transitio
 ns. The threshold can be set at the multiple scopes.</p>
+</pre></div><p>See HelixManager.getMessagingService for more info.</p></div><div class="section"><h3>Application specific property storage<a name="Application_specific_property_storage"></a></h3><p>There are several usecases where applications needs support for distributed data structures. Helix uses Zookeeper to store the application data and hence provides notifications when the data changes. One value add Helix provides is the ability to specify cache the data and also write through cache. This is more efficient than reading from ZK every time.</p><p>See HelixManager.getHelixPropertyStore</p></div><div class="section"><h3>Throttling<a name="Throttling"></a></h3><p>Since all state changes in the system are triggered through transitions, Helix can control the number of transitions that can happen in parallel. Some of the transitions may be light weight but some might involve moving data around which is quite expensive. Helix allows applications to set threshold on transitio
 ns. The threshold can be set at the multiple scopes.</p>
 <ul>
   <li>MessageType e.g STATE_TRANSITION</li>
   <li>TransitionType e.g SLAVE-MASTER</li>
   <li>Resource e.g database</li>
   <li>Node i.e per node max transitions in parallel.</li>
-</ul><p>See HelixManager.getHelixAdmin.addMessageConstraint() </p></div><div class="section"><h2>Health monitoring and alerting<a name="Health_monitoring_and_alerting"></a></h2><p>This in currently in development mode, not yet productionized.</p><p>Helix provides ability for each node in the system to report health metrics on a periodic basis. Helix supports multiple ways to aggregate these metrics like simple SUM, AVG, EXPONENTIAL DECAY, WINDOW. Helix will only persist the aggregated value. Applications can define threshold on the aggregate values according to the SLAs and when the SLA is violated Helix will fire an alert. Currently Helix only fires an alert but eventually we plan to use this metrics to either mark the node dead or load balance the partitions. This feature will be valuable in for distributed systems that support multi-tenancy and have huge variation in work load patterns. Another place this can be used is to detect skewed partitions and rebalance the cluste
 r.</p><p>This feature is not yet stable and do not recommend to be used in production.</p></div><div class="section"><h2>Controller deployment modes<a name="Controller_deployment_modes"></a></h2><p>Read Architecture wiki for more details on the Role of a controller. In simple words, it basically controls the participants in the cluster by issuing transitions.</p><p>Helix provides multiple options to deploy the controller.</p><p>STANDALONE</p><p>Controller can be started as a separate process to manage a cluster. This is the recommended approach. How ever since one controller can be a single point of failure, multiple controller processes are required for reliability. Even if multiple controllers are running only one will be actively managing the cluster at any time and is decided by a leader election process. If the leader fails, another leader will resume managing the cluster.</p><p>Even though we recommend this method of deployment, it has the drawback of having to manage 
 an additional service for each cluster. See Controller As a Service option.</p><p>EMBEDDED</p><p>If setting up a separate controller process is not viable, then it is possible to embed the controller as a library in each of the participant. </p><p>CONTROLLER AS A SERVICE</p><p>One of the cool feature we added in helix was use a set of controllers to manage a large number of clusters. For example if you have X clusters to be managed, instead of deploying X*3(3 controllers for fault tolerance) controllers for each cluster, one can deploy only 3 controllers. Each controller can manage X/3 clusters. If any controller fails the remaining two will manage X/2 clusters. At LinkedIn, we always deploy controllers in this mode. </p></div>
+</ul><p>See HelixManager.getHelixAdmin.addMessageConstraint() </p></div><div class="section"><h3>Health monitoring and alerting<a name="Health_monitoring_and_alerting"></a></h3><p>This in currently in development mode, not yet productionized.</p><p>Helix provides ability for each node in the system to report health metrics on a periodic basis. Helix supports multiple ways to aggregate these metrics like simple SUM, AVG, EXPONENTIAL DECAY, WINDOW. Helix will only persist the aggregated value. Applications can define threshold on the aggregate values according to the SLAs and when the SLA is violated Helix will fire an alert. Currently Helix only fires an alert but eventually we plan to use this metrics to either mark the node dead or load balance the partitions. This feature will be valuable in for distributed systems that support multi-tenancy and have huge variation in work load patterns. Another place this can be used is to detect skewed partitions and rebalance the cluste
 r.</p><p>This feature is not yet stable and do not recommend to be used in production.</p></div><div class="section"><h3>Controller deployment modes<a name="Controller_deployment_modes"></a></h3><p>Read Architecture wiki for more details on the Role of a controller. In simple words, it basically controls the participants in the cluster by issuing transitions.</p><p>Helix provides multiple options to deploy the controller.</p><div class="section"><h4>STANDALONE<a name="STANDALONE"></a></h4><p>Controller can be started as a separate process to manage a cluster. This is the recommended approach. How ever since one controller can be a single point of failure, multiple controller processes are required for reliability. Even if multiple controllers are running only one will be actively managing the cluster at any time and is decided by a leader election process. If the leader fails, another leader will resume managing the cluster.</p><p>Even though we recommend this method of depl
 oyment, it has the drawback of having to manage an additional service for each cluster. See Controller As a Service option.</p></div><div class="section"><h4>EMBEDDED<a name="EMBEDDED"></a></h4><p>If setting up a separate controller process is not viable, then it is possible to embed the controller as a library in each of the participant. </p></div><div class="section"><h4>CONTROLLER AS A SERVICE<a name="CONTROLLER_AS_A_SERVICE"></a></h4><p>One of the cool feature we added in helix was use a set of controllers to manage a large number of clusters. For example if you have X clusters to be managed, instead of deploying X*3(3 controllers for fault tolerance) controllers for each cluster, one can deploy only 3 controllers. Each controller can manage X/3 clusters. If any controller fails the remaining two will manage X/2 clusters. At LinkedIn, we always deploy controllers in this mode. </p></div></div></div>
                   </div>
           </div>
 

Modified: incubator/helix/site-content/Quickstart.html
URL: http://svn.apache.org/viewvc/incubator/helix/site-content/Quickstart.html?rev=1479756&r1=1479755&r2=1479756&view=diff
==============================================================================
--- incubator/helix/site-content/Quickstart.html (original)
+++ incubator/helix/site-content/Quickstart.html Tue May  7 03:10:53 2013
@@ -1,13 +1,13 @@
 <!DOCTYPE html>
 <!--
- | Generated by Apache Maven Doxia at Apr 27, 2013
+ | Generated by Apache Maven Doxia at May 6, 2013
  | Rendered using Apache Maven Fluido Skin 1.3.0
 -->
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
   <head>
     <meta charset="UTF-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-    <meta name="Date-Revision-yyyymmdd" content="20130427" />
+    <meta name="Date-Revision-yyyymmdd" content="20130506" />
     <meta http-equiv="Content-Language" content="en" />
     <title>Apache Helix - </title>
     <link rel="stylesheet" href="./css/apache-maven-fluido-1.3.0.min.css" />
@@ -52,6 +52,9 @@
                       <li>      <a href="Quickstart.html"  title="Quick Start">Quick Start</a>
 </li>
                   
+                      <li>      <a href="Concepts.html"  title="Core concept">Core concept</a>
+</li>
+                  
                       <li>      <a href="Tutorial.html"  title="Tutorial">Tutorial</a>
 </li>
                   
@@ -162,7 +165,7 @@
                 
                 
             
-                  <li id="publishDate" class="pull-right">Last Published: 2013-04-27</li> 
+                  <li id="publishDate" class="pull-right">Last Published: 2013-05-06</li> 
             
                             </ul>
       </div>

Added: incubator/helix/site-content/Sample_App.html
URL: http://svn.apache.org/viewvc/incubator/helix/site-content/Sample_App.html?rev=1479756&view=auto
==============================================================================
--- incubator/helix/site-content/Sample_App.html (added)
+++ incubator/helix/site-content/Sample_App.html Tue May  7 03:10:53 2013
@@ -0,0 +1,369 @@
+<!DOCTYPE html>
+<!--
+ | Generated by Apache Maven Doxia at Dec 11, 2012
+ | Rendered using Apache Maven Fluido Skin 1.3.0
+-->
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+  <head>
+    <meta charset="UTF-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="Date-Revision-yyyymmdd" content="20121211" />
+    <meta http-equiv="Content-Language" content="en" />
+    <title>Apache Helix - </title>
+    <link rel="stylesheet" href="./css/apache-maven-fluido-1.3.0.min.css" />
+    <link rel="stylesheet" href="./css/site.css" />
+    <link rel="stylesheet" href="./css/print.css" media="print" />
+
+      
+    <script type="text/javascript" src="./js/apache-maven-fluido-1.3.0.min.js"></script>
+
+    
+            </head>
+        <body class="topBarEnabled">
+          
+                        
+                    
+                
+
+    <div id="topbar" class="navbar navbar-fixed-top ">
+      <div class="navbar-inner">
+                                  <div class="container"><div class="nav-collapse">
+            
+                
+                                <ul class="nav">
+                          <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Helix <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li>      <a href="index.html"  title="About">About</a>
+</li>
+                  
+                      <li>      <a href="Quickstart.html"  title="Quick Start">Quick Start</a>
+</li>
+                  
+                      <li>      <a href="ApiUsage.html"  title="Api Usage">Api Usage</a>
+</li>
+                  
+                      <li>      <a href="Architecture.html"  title="Architecture">Architecture</a>
+</li>
+                  
+                      <li>      <a href="Features.html"  title="Features">Features</a>
+</li>
+                  
+                      <li>      <a href="Sample_App.html"  title="Sample App">Sample App</a>
+</li>
+                  
+                      <li>      <a href="UseCases.html"  title="Use Cases">Use Cases</a>
+</li>
+                          </ul>
+      </li>
+                <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Get Involved <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li>      <a href="mail-lists.html"  title="Mailing Lists">Mailing Lists</a>
+</li>
+                  
+                      <li>      <a href="issue-tracking.html"  title="Issues">Issues</a>
+</li>
+                  
+                      <li>      <a href="team-list.html"  title="Team">Team</a>
+</li>
+                  
+                      <li>      <a href="source-repository.html"  title="Sources">Sources</a>
+</li>
+                  
+                      <li>      <a href="integration.html"  title="Continuous Integration">Continuous Integration</a>
+</li>
+                  
+                      <li>      <a href="involved/building.html"  title="Building Guide">Building Guide</a>
+</li>
+                  
+                      <li>      <a href="involved/release.html"  title="Release Guide">Release Guide</a>
+</li>
+                          </ul>
+      </li>
+                <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Project Documentation <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li class="dropdown-submenu">
+                                      <a href="project-info.html"  title="Project Information">Project Information</a>
+              <ul class="dropdown-menu">
+                                  <li>      <a href="index.html"  title="About">About</a>
+</li>
+                                  <li>      <a href="project-summary.html"  title="Project Summary">Project Summary</a>
+</li>
+                                  <li>      <a href="dependency-info.html"  title="Dependency Information">Dependency Information</a>
+</li>
+                                  <li>      <a href="modules.html"  title="Project Modules">Project Modules</a>
+</li>
+                                  <li>      <a href="license.html"  title="Project License">Project License</a>
+</li>
+                                  <li>      <a href="team-list.html"  title="Project Team">Project Team</a>
+</li>
+                                  <li>      <a href="source-repository.html"  title="Source Repository">Source Repository</a>
+</li>
+                                  <li>      <a href="issue-tracking.html"  title="Issue Tracking">Issue Tracking</a>
+</li>
+                                  <li>      <a href="mail-lists.html"  title="Mailing Lists">Mailing Lists</a>
+</li>
+                                  <li>      <a href="dependency-management.html"  title="Dependency Management">Dependency Management</a>
+</li>
+                                  <li>      <a href="dependencies.html"  title="Dependencies">Dependencies</a>
+</li>
+                                  <li>      <a href="dependency-convergence.html"  title="Dependency Convergence">Dependency Convergence</a>
+</li>
+                                  <li>      <a href="integration.html"  title="Continuous Integration">Continuous Integration</a>
+</li>
+                                  <li>      <a href="plugin-management.html"  title="Plugin Management">Plugin Management</a>
+</li>
+                                  <li>      <a href="plugins.html"  title="Project Plugins">Project Plugins</a>
+</li>
+                                  <li>      <a href="distribution-management.html"  title="Distribution Management">Distribution Management</a>
+</li>
+                              </ul>
+            </li>
+                  
+                      <li class="dropdown-submenu">
+                                      <a href="project-reports.html"  title="Project Reports">Project Reports</a>
+              <ul class="dropdown-menu">
+                                  <li>      <a href="xref/index.html"  title="Source Xref">Source Xref</a>
+</li>
+                                  <li>      <a href="xref-test/index.html"  title="Test Source Xref">Test Source Xref</a>
+</li>
+                                  <li>      <a href="apidocs/index.html"  title="JavaDocs">JavaDocs</a>
+</li>
+                                  <li>      <a href="checkstyle-aggregate.html"  title="Checkstyle">Checkstyle</a>
+</li>
+                                  <li>      <a href="sonar.html"  title="Sonar">Sonar</a>
+</li>
+                              </ul>
+            </li>
+                          </ul>
+      </li>
+                <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Modules <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li>      <a href="helix-core/index.html"  title="Apache Helix :: Core">Apache Helix :: Core</a>
+</li>
+                  
+                      <li>      <a href="helix-admin-webapp/index.html"  title="Apache Helix :: Admin Webapp">Apache Helix :: Admin Webapp</a>
+</li>
+                  
+                      <li>      <a href="mockservice/index.html"  title="Helix :: Mockservice">Helix :: Mockservice</a>
+</li>
+                  
+                      <li>      <a href="recipes/index.html"  title="Helix :: Recipes">Helix :: Recipes</a>
+</li>
+                          </ul>
+      </li>
+                <li class="dropdown">
+        <a href="#" class="dropdown-toggle" data-toggle="dropdown">ASF <b class="caret"></b></a>
+        <ul class="dropdown-menu">
+        
+                      <li>      <a href="http://www.apache.org/foundation/how-it-works.html"  title="How Apache Works">How Apache Works</a>
+</li>
+                  
+                      <li>      <a href="http://www.apache.org/foundation/"  title="Foundation">Foundation</a>
+</li>
+                  
+                      <li>      <a href="http://www.apache.org/foundation/sponsorship.html"  title="Sponsoring Apache">Sponsoring Apache</a>
+</li>
+                  
+                      <li>      <a href="http://www.apache.org/foundation/thanks.html"  title="Thanks">Thanks</a>
+</li>
+                          </ul>
+      </li>
+                  </ul>
+          
+                      <form id="search-form" action="http://www.google.com/search" method="get"  class="navbar-search pull-right" >
+    
+  <input value="helix.incubator.apache.org" name="sitesearch" type="hidden"/>
+  <input class="search-query" name="q" id="query" type="text" />
+</form>
+<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=search-form"></script>
+          
+                                                              
+                   
+                      </div>
+          
+        </div>
+      </div>
+    </div>
+    
+        <div class="container">
+          <div id="banner">
+        <div class="pull-left">
+                                <div id="bannerLeft">
+                <h2>Apache Helix</h2>
+                </div>
+                      </div>
+        <div class="pull-right">                  <a href="http://incubator.apache.org/" id="bannerRight">
+                                                                                        <img src="http://incubator.apache.org/images/egg-logo.png" />
+                </a>
+      </div>
+        <div class="clear"><hr/></div>
+      </div>
+
+      <div id="breadcrumbs">
+        <ul class="breadcrumb">
+                
+                    
+                              <li class="">
+                    <a href="./" title="Apache Helix">
+        Apache Helix</a>
+        </li>
+      <li class="divider ">/</li>
+        <li class=""></li>
+        
+                
+                    
+                  <li id="publishDate" class="pull-right">Last Published: 2012-12-11</li> <li class="divider pull-right">|</li>
+              <li id="projectVersion" class="pull-right">Version: 0.6-incubating-SNAPSHOT</li>
+            
+                            </ul>
+      </div>
+
+      
+                
+        <div id="bodyColumn" >
+                                  
+            <!-- -
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License. --><h1>RabbitMQ Consumer Group</h1><p><a class="externalLink" href="http://www.rabbitmq.com/">RabbitMQ</a> is a well known Open source software the provides robust messaging for applications.</p><p>One of the commonly implemented recipes using this software is a work queue. <a class="externalLink" href="http://www.rabbitmq.com/tutorials/tutorial-four-java.html">http://www.rabbitmq.com/tutorials/tutorial-four-java.html</a> describes the use case where</p>
+<ul>
+  <li>A producer sends a message with a routing key.</li>
+  <li>The message goes to the queues whose binding key exactly matches the routing key of the message.</li>
+  <li>There are multiple consumers and each consumer is interested in processing only a subset of the messages by binding to the interested keys</li>
+</ul><p>The example provided <a class="externalLink" href="http://www.rabbitmq.com/tutorials/tutorial-four-java.html">here</a> describes how multiple consumers can be started to process all the tasks.</p><p>While this works, in production systems one needs the following * Ability to handle failures: when a consumers fails another consumer must be started or the other consumers must start processing these messages that should have been processed by the failed consumer. * When the existing consumers cannot keep up with the task generation rate, new consumers will be added. The tasks must be redistributed among all the consumers. </p><p>In this sample app, we explain how these set of consumers can be grouped together and handle consumer failures and expansion automatically.</p><p>Mapping this usecase to Helix is pretty easy as the binding key/routing key is equivalent to a partition. </p><p>Lets take a real example. Lets say a topic has 6 partitions, and we have 2 consumers to 
 process all the queues. What we want is all 6 queues to be evenly divided among 2 consumers. Eventually when the system scales, we add more consumers to keep up. This will make each consumer process tasks from 2 queues. Now lets say that a consumer fails and that the number of active consumers is now reduced to 2. This means each consumer must process 3 queues.</p><p>We showcase how such a dynamic App can be developed using Helix. </p><h1>Try it</h1><p>Before getting into the details on how to develop such an App using Helix, you can try the following steps to get a feel of it.</p>
+<div class="source"><pre class="prettyprint">git clone git@github.com:linkedin/helix.git
+cd helix
+./build
+export HELIX_PKG_ROOT=`pwd`/helix-core/target/helix-core-pkg
+</pre></div><p>OR Download the latest 0.5.28 release tar ball from <a class="externalLink" href="http://linkedin.github.com/helix/download/release-0.5.28//helix-core-pkg-0.5.28.tar.gz">here</a> <tt>
+tar -xzvf helix-core-pkg-0.5.28.tar.gz
+export HELIX_PKG_ROOT=`pwd`/helix-core-pkg
+</tt></p><p>Download the rabbitmq-consumer-group recipe from <a class="externalLink" href="http://linkedin.github.com/helix/download/release-0.5.28/rabbitmq-consumer-group-0.5.28.tar.gz">here</a> <tt>
+tar -xzvf rabbitmq-consumer-group-0.5.28.tar.gz
+export HELIX_RABBITMQ_ROOT=`pwd`/rabbitmq-consumer-group/
+</tt> <tt>
+chmod +x $HELIX_PKG_ROOT/bin/*
+chmod +x $HELIX_RABBITMQ_ROOT/bin/*
+</tt></p><div class="section"><h2>Install Rabbit MQ<a name="Install_Rabbit_MQ"></a></h2><p>Setting up RabbitMQ on a local box is straightforward. You can find the instructions here <a class="externalLink" href="http://www.rabbitmq.com/download.html">http://www.rabbitmq.com/download.html</a></p></div><div class="section"><h2>Start ZK<a name="Start_ZK"></a></h2><p>Start zookeeper at port 2199 <tt>
+$HELIX_PKG_ROOT/bin/start-standalone-zookeeper 2199
+</tt></p></div><div class="section"><h2>Setup the consumer group cluster<a name="Setup_the_consumer_group_cluster"></a></h2><p>This will setup the cluster by creating a rabbitmq-consumer-group cluster and adds a topic resource with 6 queues. <tt>
+$HELIX_RABBITMQ_ROOT/bin/setup-cluster.sh localhost:2199 
+</tt></p></div><div class="section"><h2>Add consumers<a name="Add_consumers"></a></h2><p>Start 2 consumers in 2 different terminals. Each consumer is given a unique id. ``` //start-consumer.sh zookeeperAddress (e.g. localhost:2181) consumerId , rabbitmqServer (e.g. localhost) $HELIX_RABBITMQ_ROOT/bin/start-consumer.sh localhost:2199 0 localhost $HELIX_RABBITMQ_ROOT/bin/start-consumer.sh localhost:2199 1 localhost </p>
+<div class="source"><pre class="prettyprint">Start HelixController
+--------------------
+Now start a Helix controller that starts managing the &quot;rabbitmq-consumer-group&quot; cluster.
+</pre></div><p>$HELIX_RABBITMQ_ROOT/bin/start-cluster-manager.sh localhost:2199 ```</p></div><div class="section"><h2>Send messages to the Topic<a name="Send_messages_to_the_Topic"></a></h2><p>Start sending messages to the topic. This script randomly selects a routing key (1-6) and sends the message to topic. Based on the key, messages gets routed to the appropriate queue.</p>
+<div class="source"><pre class="prettyprint">$HELIX_RABBITMQ_ROOT/bin/send-message.sh localhost 20
+</pre></div><p>After running this, you should see all 20 messages being processed by 2 consumers. </p></div><div class="section"><h2>Add another consumer<a name="Add_another_consumer"></a></h2><p>Once a new consumer is started, helix detects it. In order to balance the load between 3 consumers, it deallocates 1 partition from the existing consumers and allocates it to the new consumer. We see that each consumer is now processing only 2 queues. Helix makes sure that old nodes are asked to stop consuming before the new consumer is asked to start consuming for a given partition. But the transitions for each partition can happen in parallel. <tt>
+$HELIX_RABBITMQ_ROOT/bin/start-consumer.sh localhost:2199 2 localhost
+</tt></p><p>Send messages again to the topic. <tt>
+$HELIX_RABBITMQ_ROOT/bin/send-message.sh localhost 100
+</tt> You should see that messages are now received by all 3 consumers.</p></div><div class="section"><h2>Stop a consumer<a name="Stop_a_consumer"></a></h2><p>In any terminal press CTRL^C and notice that Helix detects the consumer failure and distributes the 2 partitions that were processed by failed consumer to the remaining 2 active consumers.</p><h1>How does it work</h1><p>Find the entire code <a class="externalLink" href="https://github.com/linkedin/helix/tree/master/recipes/rabbitmq-consumer-group/src/main/java/com/linkedin/helix/recipes/rabbitmq">here</a>. </p></div><div class="section"><h2>Cluster setup<a name="Cluster_setup"></a></h2><p>This step creates znode on zookeeper for the cluster and adds the state model. We use online offline state model since there is no need for other states. The consumer is either processing a queue or it is not.</p><p>It creates a resource called rabbitmq-consumer-group with 6 partitions. The execution mode is set to AUTO_REBALANCE. Thi
 s means that the Helix controls the assignment of partition to consumers and automatically distributes the partitions evenly among the active consumers. When a consumer is added or removed, it ensures that a minimum number of partitions are shuffled.</p>
+<div class="source"><pre class="prettyprint">      zkclient = new ZkClient(zkAddr, ZkClient.DEFAULT_SESSION_TIMEOUT,
+          ZkClient.DEFAULT_CONNECTION_TIMEOUT, new ZNRecordSerializer());
+      ZKHelixAdmin admin = new ZKHelixAdmin(zkclient);
+      
+      // add cluster
+      admin.addCluster(clusterName, true);
+
+      // add state model definition
+      StateModelConfigGenerator generator = new StateModelConfigGenerator();
+      admin.addStateModelDef(clusterName, &quot;OnlineOffline&quot;,
+          new StateModelDefinition(generator.generateConfigForOnlineOffline()));
+
+      // add resource &quot;topic&quot; which has 6 partitions
+      String resourceName = &quot;rabbitmq-consumer-group&quot;;
+      admin.addResource(clusterName, resourceName, 6, &quot;OnlineOffline&quot;, &quot;AUTO_REBALANCE&quot;);
+</pre></div></div><div class="section"><h2>Starting the consumers<a name="Starting_the_consumers"></a></h2><p>The only thing consumers need to know is the zkaddress, cluster name and consumer id. It does not need to know anything else.</p>
+<div class="source"><pre class="prettyprint">   _manager =
+          HelixManagerFactory.getZKHelixManager(_clusterName,
+                                                _consumerId,
+                                                InstanceType.PARTICIPANT,
+                                                _zkAddr);
+
+      StateMachineEngine stateMach = _manager.getStateMachineEngine();
+      ConsumerStateModelFactory modelFactory =
+          new ConsumerStateModelFactory(_consumerId, _mqServer);
+      stateMach.registerStateModelFactory(&quot;OnlineOffline&quot;, modelFactory);
+
+      _manager.connect();
+
+</pre></div><p>Once the consumer has registered the statemodel and the controller is started, the consumer starts getting callbacks (onBecomeOnlineFromOffline) for the partition it needs to host. All it needs to do as part of the callback is to start consuming messages from the appropriate queue. Similarly, when the controller deallocates a partitions from a consumer, it fires onBecomeOfflineFromOnline for the same partition. As a part of this transition, the consumer will stop consuming from a that queue.</p>
+<div class="source"><pre class="prettyprint"> @Transition(to = &quot;ONLINE&quot;, from = &quot;OFFLINE&quot;)
+  public void onBecomeOnlineFromOffline(Message message, NotificationContext context)
+  {
+    LOG.debug(_consumerId + &quot; becomes ONLINE from OFFLINE for &quot; + _partition);
+
+    if (_thread == null)
+    {
+      LOG.debug(&quot;Starting ConsumerThread for &quot; + _partition + &quot;...&quot;);
+      _thread = new ConsumerThread(_partition, _mqServer, _consumerId);
+      _thread.start();
+      LOG.debug(&quot;Starting ConsumerThread for &quot; + _partition + &quot; done&quot;);
+
+    }
+  }
+
+  @Transition(to = &quot;OFFLINE&quot;, from = &quot;ONLINE&quot;)
+  public void onBecomeOfflineFromOnline(Message message, NotificationContext context)
+      throws InterruptedException
+  {
+    LOG.debug(_consumerId + &quot; becomes OFFLINE from ONLINE for &quot; + _partition);
+
+    if (_thread != null)
+    {
+      LOG.debug(&quot;Stopping &quot; + _consumerId + &quot; for &quot; + _partition + &quot;...&quot;);
+
+      _thread.interrupt();
+      _thread.join(2000);
+      _thread = null;
+      LOG.debug(&quot;Stopping &quot; +  _consumerId + &quot; for &quot; + _partition + &quot; done&quot;);
+
+    }
+  }
+</pre></div></div>
+                  </div>
+          </div>
+
+    <hr/>
+
+    <footer>
+            <div class="container">
+              <div class="row span12">Copyright &copy;                    2012
+                        <a href="http://www.apache.org/">The Apache Software Foundation</a>.
+            All Rights Reserved.      
+                    
+      </div>
+
+        
+                <p id="poweredBy" class="pull-right">
+                          <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
+        <img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" />
+      </a>
+              </p>
+        
+                </div>
+    </footer>
+  </body>
+</html>
\ No newline at end of file

Modified: incubator/helix/site-content/Tutorial.html
URL: http://svn.apache.org/viewvc/incubator/helix/site-content/Tutorial.html?rev=1479756&r1=1479755&r2=1479756&view=diff
==============================================================================
--- incubator/helix/site-content/Tutorial.html (original)
+++ incubator/helix/site-content/Tutorial.html Tue May  7 03:10:53 2013
@@ -1,13 +1,13 @@
 <!DOCTYPE html>
 <!--
- | Generated by Apache Maven Doxia at Apr 27, 2013
+ | Generated by Apache Maven Doxia at May 6, 2013
  | Rendered using Apache Maven Fluido Skin 1.3.0
 -->
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
   <head>
     <meta charset="UTF-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-    <meta name="Date-Revision-yyyymmdd" content="20130427" />
+    <meta name="Date-Revision-yyyymmdd" content="20130506" />
     <meta http-equiv="Content-Language" content="en" />
     <title>Apache Helix - </title>
     <link rel="stylesheet" href="./css/apache-maven-fluido-1.3.0.min.css" />
@@ -52,6 +52,9 @@
                       <li>      <a href="Quickstart.html"  title="Quick Start">Quick Start</a>
 </li>
                   
+                      <li>      <a href="Concepts.html"  title="Core concept">Core concept</a>
+</li>
+                  
                       <li>      <a href="Tutorial.html"  title="Tutorial">Tutorial</a>
 </li>
                   
@@ -162,7 +165,7 @@
                 
                 
             
-                  <li id="publishDate" class="pull-right">Last Published: 2013-04-27</li> 
+                  <li id="publishDate" class="pull-right">Last Published: 2013-05-06</li> 
             
                             </ul>
       </div>
@@ -194,7 +197,7 @@ under the License. --><p>Lets walk throu
     admin = new ZKHelixAdmin(ZK_ADDRESS);
     String CLUSTER_NAME = &quot;helix-demo&quot;;
     //Create cluster namespace in zookeeper
-    admin.addCluster(clusterName, true);
+    admin.addCluster(clusterName);
 </pre></div><p>OR</p>
 <div class="source"><pre class="prettyprint">    ./helix-admin.sh --zkSvr localhost:2199 --addCluster helix-demo 
 </pre></div></div><div class="section"><h3>Configure nodes<a name="Configure_nodes"></a></h3><p>Add new nodes to the cluster, configure new nodes in the cluster. Each node in the cluster must be uniquely identifiable. Most commonly used convention is hostname:port.</p>

Modified: incubator/helix/site-content/UseCases.html
URL: http://svn.apache.org/viewvc/incubator/helix/site-content/UseCases.html?rev=1479756&r1=1479755&r2=1479756&view=diff
==============================================================================
--- incubator/helix/site-content/UseCases.html (original)
+++ incubator/helix/site-content/UseCases.html Tue May  7 03:10:53 2013
@@ -1,13 +1,13 @@
 <!DOCTYPE html>
 <!--
- | Generated by Apache Maven Doxia at Apr 27, 2013
+ | Generated by Apache Maven Doxia at May 6, 2013
  | Rendered using Apache Maven Fluido Skin 1.3.0
 -->
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
   <head>
     <meta charset="UTF-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-    <meta name="Date-Revision-yyyymmdd" content="20130427" />
+    <meta name="Date-Revision-yyyymmdd" content="20130506" />
     <meta http-equiv="Content-Language" content="en" />
     <title>Apache Helix - </title>
     <link rel="stylesheet" href="./css/apache-maven-fluido-1.3.0.min.css" />
@@ -52,6 +52,9 @@
                       <li>      <a href="Quickstart.html"  title="Quick Start">Quick Start</a>
 </li>
                   
+                      <li>      <a href="Concepts.html"  title="Core concept">Core concept</a>
+</li>
+                  
                       <li>      <a href="Tutorial.html"  title="Tutorial">Tutorial</a>
 </li>
                   
@@ -162,7 +165,7 @@
                 
                 
             
-                  <li id="publishDate" class="pull-right">Last Published: 2013-04-27</li> 
+                  <li id="publishDate" class="pull-right">Last Published: 2013-05-06</li> 
             
                             </ul>
       </div>



Mime
View raw message