You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@helix.apache.org by jx...@apache.org on 2023/01/05 19:48:24 UTC

svn commit: r1906412 [29/35] - in /helix/site-content: ./ 0.9.9-docs/ 0.9.9-docs/css/ 0.9.9-docs/images/ 0.9.9-docs/js/ 0.9.9-docs/recipes/ 0.9.9-docs/releasenotes/ 1.0.2-docs/ 1.0.2-docs/css/ 1.0.2-docs/images/ 1.0.2-docs/js/ 1.0.2-docs/recipes/ 1.0.2...

Added: helix/site-content/1.0.3-docs/tutorial_rest_service.html
URL: http://svn.apache.org/viewvc/helix/site-content/1.0.3-docs/tutorial_rest_service.html?rev=1906412&view=auto
==============================================================================
--- helix/site-content/1.0.3-docs/tutorial_rest_service.html (added)
+++ helix/site-content/1.0.3-docs/tutorial_rest_service.html Thu Jan  5 19:48:20 2023
@@ -0,0 +1,1234 @@
+
+<!DOCTYPE html>
+
+
+
+
+
+
+<!--
+ Generated by Apache Maven Doxia at 2022-05-12  Rendered using Reflow Maven Skin 2.0.0 (https://olamy.github.io/reflow-maven-skin)
+-->
+<html  xml:lang="en" lang="en">
+
+	<head>
+		<meta charset="UTF-8" />
+		<title>Apache Helix &#x2013; Tutorial - REST Service 2.0</title>
+		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
+		<meta name="description" content="" />
+		<meta http-equiv="content-language" content="en" />
+
+		<link href="./css/bootstrap.min.css" rel="stylesheet" />
+		<link href="./css/bootstrap-responsive.min.css" rel="stylesheet" />
+		<link href="./css/docs.css" rel="stylesheet" />
+		<link href="./css/reflow-skin.css" rel="stylesheet" />
+
+
+		<link href="./css/lightbox.css" rel="stylesheet" />
+
+		<link href="./css/site.css" rel="stylesheet" />
+		<link href="./css/print.css" rel="stylesheet" media="print" />
+
+		<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
+		<!--[if lt IE 9]>
+			<script src="./js/html5.js"></script>
+		<![endif]-->
+
+
+
+
+
+    
+<!-- Matomo -->
+<script>
+    var _paq = window._paq = window._paq || [];
+                        _paq.push(['disableCookies']);
+                                    _paq.push(['trackPageView']);
+                                    _paq.push(['enableLinkTracking']);
+                    
+    (function() {
+        var u="https://analytics.apache.org";
+        _paq.push(['setTrackerUrl', u+'/matomo.php']);
+        _paq.push(['setSiteId', '15']);
+        var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
+        g.async=true; g.src=u+'/matomo.js'; s.parentNode.insertBefore(g,s);
+    })();
+</script>
+<!-- End Matomo Code -->
+    	</head>
+
+	<body class="page-tutorial_rest_service project-103-docs" data-spy="scroll" data-offset="60" data-target="#toc-scroll-target">
+
+    
+		<div class="navbar navbar-fixed-top">
+			<div class="navbar-inner">
+				<div class="container">
+					<a class="btn btn-navbar" data-toggle="collapse" data-target="#top-nav-collapse">
+						<span class="icon-bar"></span>
+						<span class="icon-bar"></span>
+						<span class="icon-bar"></span>
+					</a>
+					<a class="brand" href="http://helix.apache.org">Apache Helix</a>
+					<div class="nav-collapse collapse" id="top-nav-collapse">
+						<ul class="nav pull-right">
+							<li ><a href="index.html" title="Helix 1.0.3">Helix 1.0.3</a></li>
+							<li class="dropdown">
+								<a href="#" class="dropdown-toggle" data-toggle="dropdown">Get Helix <b class="caret"></b></a>
+								<ul class="dropdown-menu">
+									<li ><a href="download.html" title="Download">Download</a></li>
+									<li ><a href="Building.html" title="Building">Building</a></li>
+									<li ><a href="releasenotes/release-1.0.3.html" title="Release Notes">Release Notes</a></li>
+								</ul>
+							</li>
+							<li class="dropdown">
+								<a href="#" class="dropdown-toggle" data-toggle="dropdown">Hands-On <b class="caret"></b></a>
+								<ul class="dropdown-menu">
+									<li ><a href="Quickstart.html" title="Quick Start">Quick Start</a></li>
+									<li ><a href="Tutorial.html" title="Tutorial">Tutorial</a></li>
+									<li ><a href="../javadocs/1.0.3" title="Javadocs">Javadocs</a></li>
+								</ul>
+							</li>
+							<li class="dropdown">
+								<a href="#" class="dropdown-toggle" data-toggle="dropdown">Recipes <b class="caret"></b></a>
+								<ul class="dropdown-menu">
+									<li ><a href="recipes/lock_manager.html" title="Distributed lock manager">Distributed lock manager</a></li>
+									<li ><a href="recipes/rabbitmq_consumer_group.html" title="Rabbit MQ consumer group">Rabbit MQ consumer group</a></li>
+									<li ><a href="recipes/rsync_replicated_file_store.html" title="Rsync replicated file store">Rsync replicated file store</a></li>
+									<li ><a href="recipes/service_discovery.html" title="Service discovery">Service discovery</a></li>
+									<li ><a href="recipes/task_dag_execution.html" title="Distributed task DAG execution">Distributed task DAG execution</a></li>
+								</ul>
+							</li>
+						</ul>
+					</div><!--/.nav-collapse -->
+				</div>
+			</div>
+		</div>
+
+	<div class="container">
+
+	<!-- Masthead
+	================================================== -->
+
+	<header>
+	<div class="jumbotron subhead">
+		<div class="row" id="banner">
+			<div class="span12">
+				<div class="pull-left">
+					<a href="http://helix.apache.org/" id="bannerLeft"><img src="../images/helix-logo.jpg" alt='"''"' /></a>
+					<p class="lead">A cluster management framework for partitioned and replicated distributed resources</p>
+				</div>
+				<div class="pull-right">
+					<a href="http://www.apache.org/" id="bannerRight"><img src="../images/feather_small.gif" alt='"''"' /></a>
+				</div>
+			</div>
+		</div>
+	</div>
+		<div>
+			<ul class="breadcrumb">
+				<li><a href="http://helix.apache.org/" title="Apache Helix" class="externalLink">Apache Helix</a></li>
+				<li class="divider">/</li>
+				<li><a href="../" title="Apache Helix">Apache Helix</a></li>
+				<li class="divider">/</li>
+				<li><a href="./" title="Release 1.0.3">Release 1.0.3</a></li>
+				<li class="divider">/</li>
+				<li>Tutorial - REST Service 2.0</li>
+				<li class="publishDate version-date pull-right">Last Published: 2022-05-12</li>
+			</ul>
+		</div>
+	</header>
+
+	<div class="main-body">
+	<div class="row">
+		<div class="span12">
+			<div class="body-content">
+<!--
+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.
+--> 
+<section> 
+ <div class="page-header">
+  <h2 id="Helix_Tutorial:_REST_Service_2.0"><a href="./Tutorial.html">Helix Tutorial</a>: REST Service 2.0</h2>
+ </div> 
+ <p>New Helix REST service supported features:</p> 
+ <ul> 
+  <li>Expose all admin operations via restful API. 
+   <ul> 
+    <li>All of Helix admin operations, include these defined in HelixAdmin.java and ConfigAccessor.java, etc, are exposed via rest API.</li> 
+   </ul> </li> 
+  <li>Support all task framework API via restful.Current task framework operations are supported from rest API too.</li> 
+  <li>More standard Restful API 
+   <ul> 
+    <li>Use the standard HTTP methods if possible, GET, POST, PUT, DELETE, instead of customized command as it today.</li> 
+    <li>Customized command will be used if there is no corresponding HTTP methods, for example, rebalance a resource, disable an instance, etc.</li> 
+   </ul> </li> 
+  <li>Make Helix restful service an separately deployable service.</li> 
+  <li>Enable Access/Audit log for all write access.</li> 
+ </ul> 
+ <section> 
+  <h3 id="Installation">Installation</h3> 
+  <p>The command line tool comes with helix-core package:</p> 
+  <p>Get the command line tool:</p> 
+  <div class="source"> 
+   <pre><code>git clone https://git-wip-us.apache.org/repos/asf/helix.git
+cd helix
+git checkout tags/helix-1.0.3
+./build
+cd helix-rest/target/helix-rest-pkg/bin
+chmod +x *.sh
+</code></pre> 
+  </div> 
+  <p>Get help:</p> 
+  <div class="source"> 
+   <pre><code>./run-rest-admin.sh --help
+</code></pre> 
+  </div> 
+  <p>Start the REST server</p> 
+  <div class="source"> 
+   <pre><code>./run-rest-admin.sh --port 1234 --zkSvr localhost:2121
+</code></pre> 
+  </div> 
+ </section> 
+ <section> 
+  <h3 id="Helix_REST_2.0_Endpoint">Helix REST 2.0 Endpoint</h3> 
+  <p>Helix REST 2.0 endpoint will start with /admin/v2 prefix, and the rest will mostly follow the current URL convention. This allows us to support v2.0 endpoint at the same time with the current Helix web interface. Some sample v2.0 endpoints would look like the following:</p> 
+  <div class="source"> 
+   <pre><code>curl -X GET http://localhost:12345/admin/v2/clusters
+curl -X POST http://localhost:12345/admin/v2/clusters/myCluster
+curl -X POST http://localhost:12345/admin/v2/clusters/myCluster?command=activate&amp;supercluster=controler_cluster
+curl http://localhost:12345/admin/v2/clusters/myCluster/resources/myResource/IdealState
+</code></pre> 
+  </div> 
+ </section> 
+ <section> 
+  <h3 id="REST_Endpoints_and_Supported_Operations">REST Endpoints and Supported Operations</h3> 
+  <section> 
+   <h4 id="Operations_on_Helix_Cluster">Operations on Helix Cluster</h4> 
+   <ul> 
+    <li> <p><b>“/clusters”</b></p> 
+     <ul> 
+      <li>Represents all helix managed clusters connected to given zookeeper</li> 
+      <li><b>GET</b> – List all Helix managed clusters. Example: curl <a class="externalLink" href="http://localhost:1234/admin/v2/clusters">http://localhost:1234/admin/v2/clusters</a></li> 
+     </ul> 
+     <div class="source"> 
+      <pre><code>$curl http://localhost:1234/admin/v2/clusters
+{
+  "clusters" : [ "cluster1", "cluster2", "cluster3"]
+}
+</code></pre> 
+     </div> </li> 
+    <li> <p><b>“/clusters/{clusterName}”</b></p> 
+     <ul> 
+      <li> <p>Represents a helix cluster with name {clusterName}</p> </li> 
+      <li> <p><b>GET</b> – return the cluster info. Example: curl <a class="externalLink" href="http://localhost:1234/admin/v2/clusters/myCluster">http://localhost:1234/admin/v2/clusters/myCluster</a></p> 
+       <div class="source"> 
+        <pre><code>$curl http://localhost:1234/admin/v2/clusters/myCluster
+{
+  "id" : "myCluster",
+  "paused" : true,
+  "disabled" : true,
+  "controller" : "helix.apache.org:1234",
+  "instances" : [ "aaa.helix.apache.org:1234", "bbb.helix.apache.org:1234" ],
+  "liveInstances" : ["aaa.helix.apache.org:1234"],
+  "resources" : [ "resource1", "resource2", "resource3" ],
+  "stateModelDefs" : [ "MasterSlave", "LeaderStandby", "OnlineOffline" ]
+}
+</code></pre> 
+       </div> </li> 
+      <li> <p><b>PUT</b> – create a new cluster with {clusterName}, it returns 200 if the cluster already exists. Example: curl -X PUT <a class="externalLink" href="http://localhost:1234/admin/v2/clusters/myCluster">http://localhost:1234/admin/v2/clusters/myCluster</a></p> </li> 
+      <li> <p><b>DELETE</b> – delete this cluster. Example: curl -X DELETE <a class="externalLink" href="http://localhost:1234/admin/v2/clusters/myCluster">http://localhost:1234/admin/v2/clusters/myCluster</a></p> </li> 
+      <li> <p><b>activate</b> – Link this cluster to a Helix super (controller) cluster, i.e, add the cluster as a resource to the super cluster. Example: curl -X POST <a class="externalLink" href="http://localhost:1234/admin/v2/clusters/myCluster?command=activate&amp;superCluster=myCluster">http://localhost:1234/admin/v2/clusters/myCluster?command=activate&amp;superCluster=myCluster</a></p> </li> 
+      <li> <p><b>expand</b> – In the case that a set of new node is added in the cluster, use this command to balance the resources on the existing instances to new added instances. Example: curl -X POST <a class="externalLink" href="http://localhost:1234/admin/v2/clusters/myCluster?command=expand">http://localhost:1234/admin/v2/clusters/myCluster?command=expand</a></p> </li> 
+      <li> <p><b>enable</b> – enable/resume the cluster. Example: curl -X POST <a class="externalLink" href="http://localhost:1234/admin/v2/clusters/myCluster?command=enable">http://localhost:1234/admin/v2/clusters/myCluster?command=enable</a></p> </li> 
+      <li> <p><b>disable</b> – disable/pause the cluster. Example: curl -X POST <a class="externalLink" href="http://localhost:1234/admin/v2/clusters/myCluster?command=disable">http://localhost:1234/admin/v2/clusters/myCluster?command=disable</a></p> </li> 
+     </ul> </li> 
+    <li> <p><b>“/clusters/{clusterName}/configs”</b></p> 
+     <ul> 
+      <li>Represents cluster level configs for cluster with {clusterName}</li> 
+      <li><b>GET</b>: get all configs.</li> 
+     </ul> 
+     <div class="source"> 
+      <pre><code>$curl http://localhost:1234/admin/v2/clusters/myCluster/configs
+{
+  "id" : "myCluster",
+  "simpleFields" : {
+    "PERSIST_BEST_POSSIBLE_ASSIGNMENT" : "true"
+  },
+  "listFields" : {
+  },
+  "mapFields" : {
+  }
+}
+</code></pre> 
+     </div> 
+     <ul> 
+      <li><b>POST</b>: update or delete one/some config entries.<br> update – Update the entries included in the input.</li> 
+     </ul> 
+     <div class="source"> 
+      <pre><code>$curl -X POST -H "Content-Type: application/json" http://localhost:1234/admin/v2/clusters/myCluster/configs?command=update -d '
+{
+ "id" : "myCluster",
+  "simpleFields" : {
+    "PERSIST_BEST_POSSIBLE_ASSIGNMENT" : "true"
+  },
+  "listFields" : {
+    "disabledPartition" : ["p1", "p2", "p3"]
+  },
+  "mapFields" : {
+  }
+}'
+</code></pre> 
+     </div> 
+     <div class="source"> 
+      <pre><code>delete -- Remove the entries included in the input from current config.
+</code></pre> 
+     </div> 
+     <div class="source"> 
+      <pre><code>$curl -X POST -H "Content-Type: application/json" http://localhost:1234/admin/v2/clusters/myCluster/configs?command=update -d '
+{
+  "id" : "myCluster",
+  "simpleFields" : {
+  },
+  "listFields" : {
+    "disabledPartition" : ["p1", "p3"]
+  },
+  "mapFields" : {
+  }
+}'
+</code></pre> 
+     </div> </li> 
+    <li> <p><b>“/clusters/{clusterName}/controller”</b></p> 
+     <ul> 
+      <li>Represents the controller for cluster {clusterName}.</li> 
+      <li><b>GET</b> – return controller information</li> 
+     </ul> 
+     <div class="source"> 
+      <pre><code>$curl http://localhost:1234/admin/v2/clusters/myCluster/controller
+{
+  "id" : "myCluster",
+  "controller" : "test.helix.apache.org:1234",
+  "HELIX_VERSION":"1.0.3",
+  "LIVE_INSTANCE":"16261@test.helix.apache.org:1234",
+  "SESSION_ID":"35ab496aba54c99"
+}
+</code></pre> 
+     </div> </li> 
+    <li> <p><b>“/clusters/{clusterName}/controller/errors”</b></p> 
+     <ul> 
+      <li>Represents error information for the controller of cluster {clusterName}. This is new endpoint in v2.0.</li> 
+      <li><b>GET</b> – get all error information.</li> 
+      <li><b>DELETE</b> – clean up all error logs.</li> 
+     </ul> </li> 
+    <li> <p><b>“/clusters/{clusterName}/controller/history”</b></p> 
+     <ul> 
+      <li>Represents the change history of leader controller of cluster {clusterName}. This is new endpoint in v2.0.</li> 
+      <li><b>GET</b> – get the leader controller history.</li> 
+     </ul> 
+     <div class="source"> 
+      <pre><code>$curl http://localhost:1234/admin/v2/clusters/myCluster/controller/history
+{
+  "id" : "myCluster",
+  "history" [
+      "{DATE=2017-03-21-16:57:14, CONTROLLER=test1.helix.apache.org:1234, TIME=1490115434248}",
+      "{DATE=2017-03-27-22:35:16, CONTROLLER=test3.helix.apache.org:1234, TIME=1490654116484}",
+      "{DATE=2017-03-27-22:35:24, CONTROLLER=test2.helix.apache.org:1234, TIME=1490654124926}"
+  ]
+}
+</code></pre> 
+     </div> </li> 
+    <li> <p><b>/clusters/{clusterName}/controller/messages"</b></p> 
+     <ul> 
+      <li>Represents all uncompleted messages currently received by the controller of cluster {clusterName}. This is new endpoint in v2.0.</li> 
+      <li><b>GET</b> – list all uncompleted messages received by the controller.</li> 
+     </ul> 
+     <div class="source"> 
+      <pre><code>$curl http://localhost:1234/admin/v2/clusters/myCluster/controller/messages
+{
+  "id" : "myCluster",
+  "count" : 5,
+  "messages" [
+      "0b8df4f2-776c-4325-96e7-8fad07bd9048",
+      "13a8c0af-b77e-4f5c-81a9-24fedb62cf58"
+  ]
+}
+</code></pre> 
+     </div> </li> 
+    <li> <p><b>“/clusters/{clusterName}/controller/messages/{messageId}”</b></p> 
+     <ul> 
+      <li>Represents the messages currently received by the controller of cluster {clusterName} with id {messageId}. This is new endpoint in v2.0.</li> 
+      <li><b>GET</b> - get the message with {messageId} received by the controller.</li> 
+      <li><b>DELETE</b> - delete the message with {messageId}</li> 
+     </ul> </li> 
+    <li> <p><b>“/clusters/{clusterName}/statemodeldefs/”</b></p> 
+     <ul> 
+      <li>Represents all the state model definitions defined in cluster {clusterName}. This is new endpoint in v2.0.</li> 
+      <li><b>GET</b> - get all the state model definition in the cluster.</li> 
+     </ul> 
+     <div class="source"> 
+      <pre><code>$curl -X POST -H "Content-Type: application/json" http://localhost:1234/admin/v2/clusters/myCluster/statemodeldefs
+{
+  "id" : "myCluster",
+  "stateModelDefs" : [ "MasterSlave", "LeaderStandby", "OnlineOffline" ]
+}
+</code></pre> 
+     </div> </li> 
+    <li> <p><b>“/clusters/{clusterName}/statemodeldefs/{statemodeldef}”</b></p> 
+     <ul> 
+      <li>Represents the state model definition {statemodeldef} defined in cluster {clusterName}. This is new endpoint in v2.0.</li> 
+      <li><b>GET</b> - get the state model definition</li> 
+     </ul> 
+     <div class="source"> 
+      <pre><code>$curl -X POST -H "Content-Type: application/json" http://localhost:1234/admin/v2/clusters/myCluster/statemodeldefs/LeaderStandby
+{
+  "id" : "STANDBY",
+  "simpleFields" : {
+    "INITIAL_STATE" : "OFFLINE"
+  },
+  "mapFields" : {
+    "DROPPED.meta" : {
+      "count" : "-1"
+    },
+    "ERROR.meta" : {
+      "count" : "-1"
+    },
+    "ERROR.next" : {
+      "DROPPED" : "DROPPED",
+      "OFFLINE" : "OFFLINE"
+    },
+    "LEADER.meta" : {
+      "count" : "1"
+    },
+    "LEADER.next" : {
+      "STANDBY" : "STANDBY",
+      "DROPPED" : "STANDBY",
+      "OFFLINE" : "STANDBY"
+    },
+    "OFFLINE.meta" : {
+      "count" : "-1"
+    },
+    "OFFLINE.next" : {
+      "STANDBY" : "STANDBY",
+      "LEADER" : "STANDBY",
+      "DROPPED" : "DROPPED"
+    },
+    "STANDBY.meta" : {
+      "count" : "R"
+    },
+    "STANDBY.next" : {
+      "LEADER" : "LEADER",
+      "DROPPED" : "OFFLINE",
+      "OFFLINE" : "OFFLINE"
+    }
+  },
+  "listFields" : {
+    "STATE_PRIORITY_LIST" : [ "LEADER", "STANDBY", "OFFLINE", "DROPPED", "ERROR" ],
+    "STATE_TRANSITION_PRIORITYLIST" : [ "LEADER-STANDBY", "STANDBY-LEADER", "OFFLINE-STANDBY", "STANDBY-OFFLINE", "OFFLINE-DROPPED" ]
+  }
+}
+</code></pre> 
+     </div> 
+     <ul> 
+      <li><b>POST</b> - add a new state model definition with {statemodeldef}</li> 
+      <li><b>DELETE</b> - delete the state model definition</li> 
+     </ul> </li> 
+   </ul> 
+  </section> 
+  <section> 
+   <h4 id="Helix_.E2.80.9CResource.E2.80.9D_and_its_sub-resources">Helix “Resource” and its sub-resources</h4> 
+   <ul> 
+    <li> <p><b>“/clusters/{clusterName}/resources”</b></p> 
+     <ul> 
+      <li>Represents all resources in a cluster.</li> 
+      <li><b>GET</b> - list all resources with their IdealStates and ExternViews.</li> 
+     </ul> 
+     <div class="source"> 
+      <pre><code>$curl http://localhost:1234/admin/v2/clusters/myCluster/resources
+{
+  "id" : "myCluster",
+  "idealstates" : [ "idealstate1", "idealstate2", "idealstate3" ],
+  "externalviews" : [ "idealstate1", "idealstate3" ]
+}
+</code></pre> 
+     </div> </li> 
+    <li> <p><b>“/clusters/{clusterName}/resources/{resourceName}”</b></p> 
+     <ul> 
+      <li>Represents a resource in cluster {clusterName} with name {resourceName}</li> 
+      <li><b>GET</b> - get resource info</li> 
+     </ul> 
+     <div class="source"> 
+      <pre><code>$curl http://localhost:1234/admin/v2/clusters/myCluster/resources/resource1
+{
+  "id" : "resource1",
+  "resourceConfig" : {},
+  "idealState" : {},
+  "externalView" : {}
+}
+</code></pre> 
+     </div> 
+     <ul> 
+      <li><b>PUT</b> - add a resource with {resourceName}</li> 
+     </ul> 
+     <div class="source"> 
+      <pre><code>$curl -X PUT -H "Content-Type: application/json" http://localhost:1234/admin/v2/clusters/myCluster/resources/myResource -d '
+{
+  "id":"myResource",
+  "simpleFields":{
+    "STATE_MODEL_FACTORY_NAME":"DEFAULT"
+    ,"EXTERNAL_VIEW_DISABLED":"true"
+    ,"NUM_PARTITIONS":"1"
+    ,"REBALANCE_MODE":"TASK"
+    ,"REPLICAS":"1"
+    ,"IDEAL_STATE_MODE":"AUTO"
+    ,"STATE_MODEL_DEF_REF":"Task"
+    ,"REBALANCER_CLASS_NAME":"org.apache.helix.task.WorkflowRebalancer"
+  }
+}'
+</code></pre> 
+     </div> 
+     <ul> 
+      <li><b>DELETE</b> - delete a resource. Example: curl -X DELETE <a class="externalLink" href="http://localhost:1234/admin/v2/clusters/myCluster/resources/myResource">http://localhost:1234/admin/v2/clusters/myCluster/resources/myResource</a></li> 
+      <li><b>enable</b> enable the resource. Example: curl -X POST <a class="externalLink" href="http://localhost:1234/admin/v2/clusters/myCluster/resources/myResource?command=enable">http://localhost:1234/admin/v2/clusters/myCluster/resources/myResource?command=enable</a></li> 
+      <li><b>disable</b> - disable the resource. Example: curl -X POST <a class="externalLink" href="http://localhost:1234/admin/v2/clusters/myCluster/resources/myResource?command=disable">http://localhost:1234/admin/v2/clusters/myCluster/resources/myResource?command=disable</a></li> 
+      <li><b>rebalance</b> - rebalance the resource. Example: curl -X POST <a class="externalLink" href="http://localhost:1234/admin/v2/clusters/myCluster/resources/myResource?command=rebalance">http://localhost:1234/admin/v2/clusters/myCluster/resources/myResource?command=rebalance</a></li> 
+     </ul> </li> 
+    <li> <p><b>“/clusters/{clusterName}/resources/{resourceName}/idealState”</b></p> 
+     <ul> 
+      <li>Represents the ideal state of a resource with name {resourceName} in cluster {clusterName}. This is new endpoint in v2.0.</li> 
+      <li><b>GET</b> - get idealstate.</li> 
+     </ul> 
+     <div class="source"> 
+      <pre><code>$curl http://localhost:1234/admin/v2/clusters/myCluster/resources/myResource/idealState
+{
+  "id":"myResource"
+  ,"simpleFields":{
+    "IDEAL_STATE_MODE":"AUTO"
+    ,"NUM_PARTITIONS":"2"
+    ,"REBALANCE_MODE":"SEMI_AUTO"
+    ,"REPLICAS":"2"
+    ,"STATE_MODEL_DEF_REF":"STANDBY"
+  }
+  ,"listFields":{
+    "myResource_0":["host1", "host2"]
+    ,"myResource_1":["host2", "host1"]
+  }
+  ,"mapFields":{
+    "myResource_0":{
+      "host1":"LEADER"
+      ,"host2":"STANDBY"
+    }
+    ,"myResource_1":{
+      "host1":"STANDBY"
+      ,"host2":"LEADER"
+    }
+  }
+}
+</code></pre> 
+     </div> </li> 
+    <li> <p><b>“/clusters/{clusterName}/resources/{resourceName}/externalView”</b></p> 
+     <ul> 
+      <li>Represents the external view of a resource with name {resourceName} in cluster {clusterName}</li> 
+      <li><b>GET</b> - get the externview</li> 
+     </ul> 
+     <div class="source"> 
+      <pre><code>$curl http://localhost:1234/admin/v2/clusters/myCluster/resources/myResource/externalView
+{
+  "id":"myResource"
+  ,"simpleFields":{
+    "IDEAL_STATE_MODE":"AUTO"
+    ,"NUM_PARTITIONS":"2"
+    ,"REBALANCE_MODE":"SEMI_AUTO"
+    ,"REPLICAS":"2"
+    ,"STATE_MODEL_DEF_REF":"STANDBY"
+  }
+  ,"listFields":{
+    "myResource_0":["host1", "host2"]
+    ,"myResource_1":["host2", "host1"]
+  }
+  ,"mapFields":{
+    "myResource_0":{
+      "host1":"LEADER"
+      ,"host2":"OFFLINE"
+    }
+    ,"myResource_1":{
+      "host1":"STANDBY"
+      ,"host2":"LEADER"
+    }
+  }
+}
+</code></pre> 
+     </div> </li> 
+    <li> <p><b>“/clusters/{clusterName}/resources/{resourceName}/configs”</b></p> 
+     <ul> 
+      <li>Represents resource level of configs for resource with name {resourceName} in cluster {clusterName}. This is new endpoint in v2.0.</li> 
+      <li><b>GET</b> - get resource configs.</li> 
+     </ul> 
+     <div class="source"> 
+      <pre><code>$curl http://localhost:1234/admin/v2/clusters/myCluster/resources/myResource/configs
+{
+  "id":"myDB"
+  "UserDefinedProperty" : "property"
+}
+</code></pre> 
+     </div> </li> 
+   </ul> 
+  </section> 
+  <section> 
+   <h4 id="Helix_Instance_and_its_sub-resources">Helix Instance and its sub-resources</h4> 
+   <ul> 
+    <li> <p><b>“/clusters/{clusterName}/instances”</b></p> 
+     <ul> 
+      <li>Represents all instances in a cluster {clusterName}</li> 
+      <li><b>GET</b> - list all instances in this cluster.</li> 
+     </ul> 
+     <div class="source"> 
+      <pre><code>$curl http://localhost:1234/admin/v2/clusters/myCluster/instances
+{
+  "id" : "myCluster",
+  "instances" : [ "host1", "host2", "host3", "host4"],
+  "online" : ["host1", "host4"],
+  "disabled" : ["host2"]
+}
+</code></pre> 
+     </div> 
+     <ul> 
+      <li><b>POST</b> - enable/disable instances.</li> 
+     </ul> 
+     <div class="source"> 
+      <pre><code>$curl -X POST -H "Content-Type: application/json" http://localhost:1234/admin/v2/clusters/myCluster/instances/command=enable -d
+{
+  "instances" : [ "host1", "host3" ]
+}
+$curl -X POST -H "Content-Type: application/json" http://localhost:1234/admin/v2/clusters/myCluster/instances/command=disable -d
+{
+  "instances" : [ "host2", "host4" ]
+}
+</code></pre> 
+     </div> </li> 
+    <li> <p><b>“/clusters/{clusterName}/instances/{instanceName}”</b></p> 
+     <ul> 
+      <li>Represents a instance in cluster {clusterName} with name {instanceName}</li> 
+      <li><b>GET</b> - get instance information.</li> 
+     </ul> 
+     <div class="source"> 
+      <pre><code>$curl http://localhost:1234/admin/v2/clusters/myCluster/instances/host_1234
+{
+  "id" : "host_1234",
+  "configs" : {
+    "HELIX_ENABLED" : "true",
+    "HELIX_HOST" : "host",
+    "HELIX_PORT" : "1234",
+    "HELIX_DISABLED_PARTITION" : [ ]
+  }
+  "liveInstance" : {
+    "HELIX_VERSION":"0.6.6.3",
+    "LIVE_INSTANCE":"4526@host",
+    "SESSION_ID":"359619c2d7efc14"
+  }
+}
+</code></pre> 
+     </div> 
+     <ul> 
+      <li><b>PUT</b> - add a new instance with {instanceName}</li> 
+     </ul> 
+     <div class="source"> 
+      <pre><code>$curl -X PUT -H "Content-Type: application/json" http://localhost:1234/admin/v2/clusters/myCluster/instances/host_1234 -d '
+{
+  "id" : "host_1234",
+  "simpleFields" : {
+    "HELIX_ENABLED" : "true",
+    "HELIX_HOST" : "host",
+    "HELIX_PORT" : "1234",
+  }
+}'
+</code></pre> 
+     </div> <p>There's one important restriction for this operation: the {instanceName} should match exactly HELIX_HOST + “_” + HELIX_PORT. For example, if host is localhost, and port is 1234, the instance name should be localhost_1234. Otherwise, the response won't contain any error but the configurations are not able to be filled in.</p> 
+     <ul> 
+      <li> <p><b>DELETE</b> - delete the instance. Example: curl -X DELETE <a class="externalLink" href="http://localhost:1234/admin/v2/clusters/myCluster/instances/host_1234">http://localhost:1234/admin/v2/clusters/myCluster/instances/host_1234</a></p> </li> 
+      <li> <p><b>enable</b> - enable the instance. Example: curl -X POST <a class="externalLink" href="http://localhost:1234/admin/v2/clusters/myCluster/instances/host_1234?command=enable">http://localhost:1234/admin/v2/clusters/myCluster/instances/host_1234?command=enable</a></p> </li> 
+      <li> <p><b>disable</b> - disable the instance. Example: curl -X POST <a class="externalLink" href="http://localhost:1234/admin/v2/clusters/myCluster/instances/host_1234?command=disable">http://localhost:1234/admin/v2/clusters/myCluster/instances/host_1234?command=disable</a></p> </li> 
+      <li> <p><b>addInstanceTag</b> - add tags to this instance.</p> </li> 
+     </ul> 
+     <div class="source"> 
+      <pre><code>$curl -X POST -H "Content-Type: application/json" http://localhost:1234/admin/v2/clusters/myCluster/instances/host_1234?command=addInstanceTag -d '
+{
+  "id" : "host_1234",
+  "instanceTags" : [ "tag_1", "tag_2, "tag_3" ]
+}'
+</code></pre> 
+     </div> 
+     <ul> 
+      <li><b>removeInstanceTag</b> - remove a tag from this instance.</li> 
+     </ul> 
+     <div class="source"> 
+      <pre><code>$curl -X POST -H "Content-Type: application/json" http://localhost:1234/admin/v2/clusters/myCluster/instances/host_1234?command=removeInstanceTag -d '
+{
+  "id" : "host_1234",
+  "instanceTags" : [ "tag_1", "tag_2, "tag_3" ]
+}'
+</code></pre> 
+     </div> </li> 
+    <li> <p><b>“/clusters/{clusterName}/instances/{instanceName}/resources”</b></p> 
+     <ul> 
+      <li>Represents all resources and their partitions locating on the instance in cluster {clusterName} with name {instanceName}. This is new endpoint in v2.0.</li> 
+      <li><b>GET</b> - return all resources that have partitions in the instance.</li> 
+     </ul> 
+     <div class="source"> 
+      <pre><code>$curl http://localhost:1234/admin/v2/clusters/myCluster/instances/host_1234/resources
+{
+  "id" : "host_1234",
+  "resources" [ "myResource1", "myResource2", "myResource3"]
+}
+</code></pre> 
+     </div> </li> 
+    <li> <p><b>“/clusters/{clusterName}/instances/{instanceName}/resources/{resource}”</b></p> 
+     <ul> 
+      <li>Represents all partitions of the {resource} locating on the instance in cluster {clusterName} with name {instanceName}. This is new endpoint in v2.0.</li> 
+      <li><b>GET</b> - return all partitions of the resource in the instance.</li> 
+     </ul> 
+     <div class="source"> 
+      <pre><code>$curl http://localhost:1234/admin/v2/clusters/myCluster/instances/localhost_1234/resources/myResource1
+{
+  "id":"myResource1"
+  ,"simpleFields":{
+    "STATE_MODEL_DEF":"STANDBY"
+    ,"STATE_MODEL_FACTORY_NAME":"DEFAULT"
+    ,"BUCKET_SIZE":"0"
+    ,"SESSION_ID":"359619c2d7f109b"
+  }
+  ,"listFields":{
+  }
+  ,"mapFields":{
+    "myResource1_2":{
+      "CURRENT_STATE":"STANDBY"
+      ,"INFO":""
+    }
+    ,"myResource1_3":{
+      "CURRENT_STATE":"LEADER"
+      ,"INFO":""
+    }
+    ,"myResource1_0":{
+      "CURRENT_STATE":"LEADER"
+      ,"INFO":""
+    }
+    ,"myResource1_1":{
+      "CURRENT_STATE":"STANDBY"
+      ,"INFO":""
+    }
+  }
+}
+</code></pre> 
+     </div> </li> 
+    <li> <p><b>“/clusters/{clusterName}/instances/{instanceName}/configs”</b></p> 
+     <ul> 
+      <li>Represents instance configs in cluster {clusterName} with name {instanceName}. This is new endpoint in v2.0.</li> 
+      <li><b>GET</b> - return configs for the instance.</li> 
+     </ul> 
+     <div class="source"> 
+      <pre><code>$curl http://localhost:1234/admin/v2/clusters/myCluster/instances/host_1234/configs 
+{
+  "id":"host_1234"
+  "configs" : {
+    "HELIX_ENABLED" : "true",
+    "HELIX_HOST" : "host"
+    "HELIX_PORT" : "1234",
+    "HELIX_DISABLED_PARTITION" : [ ]
+}
+</code></pre> 
+     </div> 
+     <ul> 
+      <li><b>PUT</b> - PLEASE NOTE THAT THIS PUT IS FULLY OVERRIDE THE INSTANCE CONFIG</li> 
+     </ul> 
+     <div class="source"> 
+      <pre><code>$curl -X PUT -H "Content-Type: application/json" http://localhost:1234/admin/v2/clusters/myCluster/instances/host_1234/configs
+{
+  "id":"host_1234"
+  "configs" : {
+    "HELIX_ENABLED" : "true",
+    "HELIX_HOST" : "host"
+    "HELIX_PORT" : "1234",
+    "HELIX_DISABLED_PARTITION" : [ ]
+}
+</code></pre> 
+     </div> </li> 
+    <li> <p><b>“/clusters/{clusterName}/instances/{instanceName}/errors”</b></p> 
+     <ul> 
+      <li>List all the mapping of sessionId to partitions of resources. This is new endpoint in v2.0.</li> 
+      <li><b>GET</b> - get mapping</li> 
+     </ul> 
+     <div class="source"> 
+      <pre><code>$curl http://localhost:1234/admin/v2/clusters/myCluster/instances/host_1234/errors
+{
+   "id":"host_1234"
+   "errors":{
+        "35sfgewngwese":{
+            "resource1":["p1","p2","p5"],
+            "resource2":["p2","p7"]
+         }
+    }
+}
+</code></pre> 
+     </div> 
+     <ul> 
+      <li><b>DELETE</b> - clean up all error information from Helix.</li> 
+     </ul> </li> 
+    <li> <p><b>“/clusters/{clusterName}/instances/{instanceName}/errors/{sessionId}/{resourceName}/{partitionName}”</b></p> 
+     <ul> 
+      <li>Represents error information for the partition {partitionName} of the resource {resourceName} under session {sessionId} in instance with {instanceName} in cluster {clusterName}. This is new endpoint in v2.0.</li> 
+      <li><b>GET</b> - get all error information.</li> 
+     </ul> 
+     <div class="source"> 
+      <pre><code>$curl http://localhost:1234/admin/v2/clusters/myCluster/instances/host_1234/errors/35sfgewngwese/resource1/p1
+{
+  "id":"35sfgewngwese_resource1"
+  ,"simpleFields":{
+  }
+  ,"listFields":{
+  }
+  ,"mapFields":{
+    "HELIX_ERROR     20170521-070822.000561 STATE_TRANSITION b819a34d-41b5-4b42-b497-1577501eeecb":{
+      "AdditionalInfo":"Exception while executing a state transition task ..."
+      ,"MSG_ID":"4af79e51-5f83-4892-a271-cfadacb0906f"
+      ,"Message state":"READ"
+    }
+  }
+}
+</code></pre> 
+     </div> </li> 
+    <li> <p><b>“/clusters/{clusterName}/instances/{instanceName}/history”</b></p> 
+     <ul> 
+      <li>Represents instance session change history for the instance with {instanceName} in cluster {clusterName}. This is new endpoint in v2.0.</li> 
+      <li><b>GET</b> - get the instance change history.</li> 
+     </ul> 
+     <div class="source"> 
+      <pre><code>$curl http://localhost:1234/admin/v2/clusters/myCluster/instances/host_1234/history
+{
+  "id": "host_1234",
+  "LAST_OFFLINE_TIME": "183948792",
+  "HISTORY": [
+    "{DATE=2017-03-02T19:25:18:915, SESSION=459014c82ef3f5b, TIME=1488482718915}",
+    "{DATE=2017-03-10T22:24:53:246, SESSION=15982390e5d5c91, TIME=1489184693246}",
+    "{DATE=2017-03-11T02:03:52:776, SESSION=15982390e5d5d85, TIME=1489197832776}",
+    "{DATE=2017-03-13T18:15:00:778, SESSION=15982390e5d678d, TIME=1489428900778}",
+    "{DATE=2017-03-21T02:47:57:281, SESSION=459014c82effa82, TIME=1490064477281}",
+    "{DATE=2017-03-27T14:51:06:802, SESSION=459014c82f01a07, TIME=1490626266802}",
+    "{DATE=2017-03-30T00:05:08:321, SESSION=5590151804e2c78, TIME=1490832308321}",
+    "{DATE=2017-03-30T01:17:34:339, SESSION=2591d53b0421864, TIME=1490836654339}",
+    "{DATE=2017-03-30T17:31:09:880, SESSION=2591d53b0421b2a, TIME=1490895069880}",
+    "{DATE=2017-03-30T18:05:38:220, SESSION=359619c2d7f109b, TIME=1490897138220}"
+  ]
+}
+</code></pre> 
+     </div> </li> 
+    <li> <p><b>“/clusters/{clusterName}/instances/{instanceName}/messages”</b></p> 
+     <ul> 
+      <li>Represents all uncompleted messages currently received by the instance. This is new endpoint in v2.0.</li> 
+      <li><b>GET</b> - list all uncompleted messages received by the controller.</li> 
+     </ul> 
+     <div class="source"> 
+      <pre><code>$curl http://localhost:1234/admin/v2/clusters/myCluster/instances/host_1234/messages
+{
+  "id": "host_1234",
+  "new_messages": ["0b8df4f2-776c-4325-96e7-8fad07bd9048", "13a8c0af-b77e-4f5c-81a9-24fedb62cf58"],
+  "read_messages": ["19887b07-e9b8-4fa6-8369-64146226c454"]
+  "total_message_count" : 100,
+  "read_message_count" : 50
+}
+</code></pre> 
+     </div> </li> 
+    <li> <p><b>"/clusters/{clusterName}/instances/{instanceName}/messages/{messageId}</b></p> 
+     <ul> 
+      <li>Represents the messages currently received by by the instance with message given message id. This is new endpoint in v2.0.</li> 
+      <li><b>GET</b> - get the message content with {messageId} received by the instance.</li> 
+     </ul> 
+     <div class="source"> 
+      <pre><code>$curl http://localhost:1234/admin/v2/clusters/myCluster/instances/localhost_1234/messages/0b8df4f2-776c-4325-96e7-8fad07bd9048
+{
+  "id": "0b8df4f2-776c-4325-96e7-8fad07bd9048",
+  "CREATE_TIMESTAMP":"1489997469400",
+  "ClusterEventName":"messageChange",
+  "FROM_STATE":"OFFLINE",
+  "MSG_ID":"0b8df4f2-776c-4325-96e7-8fad07bd9048",
+  "MSG_STATE":"new",
+  "MSG_TYPE":"STATE_TRANSITION",
+  "PARTITION_NAME":"Resource1_243",
+  "RESOURCE_NAME":"Resource1",
+  "SRC_NAME":"controller_1234",
+  "SRC_SESSION_ID":"15982390e5d5a76",
+  "STATE_MODEL_DEF":"LeaderStandby",
+  "STATE_MODEL_FACTORY_NAME":"myFactory",
+  "TGT_NAME":"host_1234",
+  "TGT_SESSION_ID":"459014c82efed9b",
+  "TO_STATE":"DROPPED"
+}
+</code></pre> 
+     </div> 
+     <ul> 
+      <li><b>DELETE</b> - delete the message with {messageId}. Example: $curl -X DELETE <a class="externalLink" href="http://localhost:1234/admin/v2/clusters/myCluster/instances/host_1234/messages/0b8df4f2-776c-4325-96e7-8fad07bd9048">http://localhost:1234/admin/v2/clusters/myCluster/instances/host_1234/messages/0b8df4f2-776c-4325-96e7-8fad07bd9048</a></li> 
+     </ul> </li> 
+    <li> <p><b>“/clusters/{clusterName}/instances/{instanceName}/healthreports”</b></p> 
+     <ul> 
+      <li>Represents all health reports in the instance in cluster {clusterName} with name {instanceName}. This is new endpoint in v2.0.</li> 
+      <li><b>GET</b> - return the name of health reports collected from the instance.</li> 
+     </ul> 
+     <div class="source"> 
+      <pre><code>$curl http://localhost:1234/admin/v2/clusters/myCluster/instances/host_1234/healthreports
+{
+  "id" : "host_1234",
+  "healthreports" [ "report1", "report2", "report3" ]
+}
+</code></pre> 
+     </div> </li> 
+    <li> <p><b>“/clusters/{clusterName}/instances/{instanceName}/healthreports/{reportName}”</b></p> 
+     <ul> 
+      <li>Represents the health report with {reportName} in the instance in cluster {clusterName} with name {instanceName}. This is new endpoint in v2.0.</li> 
+      <li><b>GET</b> - return the content of health report collected from the instance.</li> 
+     </ul> 
+     <div class="source"> 
+      <pre><code>$curl http://localhost:1234/admin/v2/clusters/myCluster/instances/host_1234/healthreports/ClusterStateStats
+{
+  "id":"ClusterStateStats"
+  ,"simpleFields":{
+    "CREATE_TIMESTAMP":"1466753504476"
+    ,"TimeStamp":"1466753504476"
+  }
+  ,"listFields":{
+  }
+  ,"mapFields":{
+    "UserDefinedData":{
+      "Data1":"0"
+      ,"Data2":"0.0"
+    }
+  }
+}
+</code></pre> 
+     </div> </li> 
+   </ul> 
+  </section> 
+  <section> 
+   <h4 id="Helix_Workflow_and_its_sub-resources">Helix Workflow and its sub-resources</h4> 
+   <ul> 
+    <li> <p><b>“/clusters/{clusterName}/workflows”</b></p> 
+     <ul> 
+      <li>Represents all workflows in cluster {clusterName}</li> 
+      <li><b>GET</b> - list all workflows in this cluster. Example : curl <a class="externalLink" href="http://localhost:1234/admin/v2/clusters/TestCluster/workflows">http://localhost:1234/admin/v2/clusters/TestCluster/workflows</a></li> 
+     </ul> 
+     <div class="source"> 
+      <pre><code>{
+  "Workflows" : [ "Workflow1", "Workflow2" ]
+}
+</code></pre> 
+     </div> </li> 
+    <li> <p><b>“/clusters/{clusterName}/workflows/{workflowName}”</b></p> 
+     <ul> 
+      <li>Represents workflow with name {workflowName} in cluster {clusterName}</li> 
+      <li><b>GET</b> - return workflow information. Example : curl <a class="externalLink" href="http://localhost:1234/admin/v2/clusters/TestCluster/workflows/Workflow1">http://localhost:1234/admin/v2/clusters/TestCluster/workflows/Workflow1</a></li> 
+     </ul> 
+     <div class="source"> 
+      <pre><code>{
+   "id" : "Workflow1",
+   "WorkflowConfig" : {
+       "Expiry" : "43200000",
+       "FailureThreshold" : "0",
+       "IsJobQueue" : "true",
+       "LAST_PURGE_TIME" : "1490820801831",
+       "LAST_SCHEDULED_WORKFLOW" : "Workflow1_20170329T000000",
+       "ParallelJobs" : "1",
+       "RecurrenceInterval" : "1",
+       "RecurrenceUnit" : "DAYS",
+       "START_TIME" : "1482176880535",
+       "STATE" : "STOPPED",
+       "StartTime" : "12-19-2016 00:00:00",
+       "TargetState" : "START",
+       "Terminable" : "false",
+       "capacity" : "500"
+    },
+   "WorkflowContext" : {
+       "JOB_STATES": {
+         "Job1": "COMPLETED",
+         "Job2": "COMPLETED"
+       },
+       "StartTime": {
+         "Job1": "1490741582339",
+         "Job2": "1490741580204"
+       },
+       "FINISH_TIME": "1490741659135",
+       "START_TIME": "1490741580196",
+       "STATE": "COMPLETED"
+   },
+   "Jobs" : ["Job1","Job2","Job3"],
+   "ParentJobs" : {
+        "Job1":["Job2", "Job3"],
+        "Job2":["Job3"]
+   }
+}
+</code></pre> 
+     </div> 
+     <ul> 
+      <li><b>PUT</b> - create a workflow with {workflowName}. Example : curl -X PUT -H “Content-Type: application/json” -d <a href="./WorkflowExample.json">WorkflowExample.json</a> <a class="externalLink" href="http://localhost:1234/admin/v2/clusters/TestCluster/workflows/Workflow1">http://localhost:1234/admin/v2/clusters/TestCluster/workflows/Workflow1</a></li> 
+      <li><b>DELETE</b> - delete the workflow. Example : curl -X DELETE <a class="externalLink" href="http://localhost:1234/admin/v2/clusters/TestCluster/workflows/Workflow1">http://localhost:1234/admin/v2/clusters/TestCluster/workflows/Workflow1</a></li> 
+      <li><b>start</b> - start the workflow. Example : curl -X POST -H “Content-Type: application/json” <a class="externalLink" href="http://localhost:1234/admin/v2/clusters/TestCluster/workflows/Workflow1?command=start">http://localhost:1234/admin/v2/clusters/TestCluster/workflows/Workflow1?command=start</a></li> 
+      <li><b>stop</b> - pause the workflow. Example : curl -X POST -H “Content-Type: application/json” <a class="externalLink" href="http://localhost:1234/admin/v2/clusters/TestCluster/workflows/Workflow1?command=stop">http://localhost:1234/admin/v2/clusters/TestCluster/workflows/Workflow1?command=stop</a></li> 
+      <li><b>resume</b> - resume the workflow. Example : curl -X POST -H “Content-Type: application/json” <a class="externalLink" href="http://localhost:1234/admin/v2/clusters/TestCluster/workflows/Workflow1?command=resume">http://localhost:1234/admin/v2/clusters/TestCluster/workflows/Workflow1?command=resume</a></li> 
+      <li><b>cleanup</b> - cleanup all expired jobs in the workflow, this operation is only allowed if the workflow is a JobQueue. Example : curl -X POST -H “Content-Type: application/json” <a class="externalLink" href="http://localhost:1234/admin/v2/clusters/TestCluster/workflows/Workflow1?command=clean">http://localhost:1234/admin/v2/clusters/TestCluster/workflows/Workflow1?command=clean</a></li> 
+     </ul> </li> 
+    <li> <p><b>“/clusters/{clusterName}/workflows/{workflowName}/configs”</b></p> 
+     <ul> 
+      <li>Represents workflow config with name {workflowName} in cluster {clusterName}. This is new endpoint in v2.0.</li> 
+      <li><b>GET</b> - return workflow configs. Example : curl <a class="externalLink" href="http://localhost:1234/admin/v2/clusters/TestCluster/workflows/Workflow1/configs">http://localhost:1234/admin/v2/clusters/TestCluster/workflows/Workflow1/configs</a></li> 
+     </ul> 
+     <div class="source"> 
+      <pre><code>{
+    "id": "Workflow1",
+    "Expiry" : "43200000",
+    "FailureThreshold" : "0",
+    "IsJobQueue" : "true",
+    "START_TIME" : "1482176880535",
+    "StartTime" : "12-19-2016 00:00:00",
+    "TargetState" : "START",
+    "Terminable" : "false",
+    "capacity" : "500"
+}
+</code></pre> 
+     </div> </li> 
+    <li> <p><b>“/clusters/{clusterName}/workflows/{workflowName}/context”</b></p> 
+     <ul> 
+      <li>Represents workflow runtime information with name {workflowName} in cluster {clusterName}. This is new endpoint in v2.0.</li> 
+      <li><b>GET</b> - return workflow runtime information. Example : curl <a class="externalLink" href="http://localhost:1234/admin/v2/clusters/TestCluster/workflows/Workflow1/context">http://localhost:1234/admin/v2/clusters/TestCluster/workflows/Workflow1/context</a></li> 
+     </ul> 
+     <div class="source"> 
+      <pre><code>{
+    "id": "WorkflowContext",
+    "JOB_STATES": {
+         "Job1": "COMPLETED",
+         "Job2": "COMPLETED"
+     },
+     "StartTime": {
+         "Job1": "1490741582339",
+         "Job2": "1490741580204"
+     },
+     "FINISH_TIME": "1490741659135",
+     "START_TIME": "1490741580196",
+     "STATE": "COMPLETED"
+}
+</code></pre> 
+     </div> </li> 
+   </ul> 
+  </section> 
+  <section> 
+   <h4 id="Helix_Job_and_its_sub-resources">Helix Job and its sub-resources</h4> 
+   <ul> 
+    <li> <p><b>“/clusters/{clusterName}/workflows/{workflowName}/jobs”</b></p> 
+     <ul> 
+      <li>Represents all jobs in workflow {workflowName} in cluster {clusterName}</li> 
+      <li><b>GET</b> return all job names in this workflow. Example : curl <a class="externalLink" href="http://localhost:1234/admin/v2/clusters/TestCluster/workflows/Workflow1/jobs">http://localhost:1234/admin/v2/clusters/TestCluster/workflows/Workflow1/jobs</a></li> 
+     </ul> 
+     <div class="source"> 
+      <pre><code>{
+    "id":"Jobs"
+    "Jobs":["Job1","Job2","Job3"]
+}
+</code></pre> 
+     </div> </li> 
+    <li> <p><b>“/clusters/{clusterName}/workflows/{workflowName}/jobs/{jobName}”</b></p> 
+     <ul> 
+      <li>Represents job with {jobName} within {workflowName} in cluster {clusterName}</li> 
+      <li><b>GET</b> return job information. Example : curl <a class="externalLink" href="http://localhost:1234/admin/v2/clusters/TestCluster/workflows/Workflow1/jobs/Job1">http://localhost:1234/admin/v2/clusters/TestCluster/workflows/Workflow1/jobs/Job1</a></li> 
+     </ul> 
+     <div class="source"> 
+      <pre><code>{
+    "id":"Job1"
+    "JobConfig":{
+        "WorkflowID":"Workflow1",
+        "IgnoreDependentJobFailure":"false",
+        "MaxForcedReassignmentsPerTask":"3"
+    },
+    "JobContext":{
+	"START_TIME":"1491005863291",
+        "FINISH_TIME":"1491005902612",
+        "Tasks":[
+             {
+                 "id":"0",
+                 "ASSIGNED_PARTICIPANT":"P1",
+                 "FINISH_TIME":"1491005898905"
+                 "INFO":""
+                 "NUM_ATTEMPTS":"1"
+                 "START_TIME":"1491005863307"
+                 "STATE":"COMPLETED"
+                 "TARGET":"DB_0"
+             },
+             {
+                 "id":"1",
+                 "ASSIGNED_PARTICIPANT":"P5",
+                 "FINISH_TIME":"1491005895443"
+                 "INFO":""
+                 "NUM_ATTEMPTS":"1"
+                 "START_TIME":"1491005863307"
+                 "STATE":"COMPLETED"
+                 "TARGET":"DB_1"
+             }
+         ]
+     }
+}
+</code></pre> 
+     </div> 
+     <ul> 
+      <li><b>PUT</b> - insert a job with {jobName} into the workflow, this operation is only allowed if the workflow is a JobQueue.<br> Example : curl -X PUT -H “Content-Type: application/json” -d <a href="./JobExample.json">JobExample.json</a> <a class="externalLink" href="http://localhost:1234/admin/v2/clusters/TestCluster/workflows/Workflow1/jobs/Job1">http://localhost:1234/admin/v2/clusters/TestCluster/workflows/Workflow1/jobs/Job1</a></li> 
+      <li><b>DELETE</b> - delete the job from the workflow, this operation is only allowed if the workflow is a JobQueue.<br> Example : curl -X DELETE <a class="externalLink" href="http://localhost:1234/admin/v2/clusters/TestCluster/workflows/Workflow1/jobs/Job1">http://localhost:1234/admin/v2/clusters/TestCluster/workflows/Workflow1/jobs/Job1</a></li> 
+     </ul> </li> 
+    <li> <p><b>“/clusters/{clusterName}/workflows/{workflowName}/jobs/{jobName}/configs”</b></p> 
+     <ul> 
+      <li>Represents job config for {jobName} within workflow {workflowName} in cluster {clusterName}. This is new endpoint in v2.0.</li> 
+      <li><b>GET</b> - return job config. Example : curl <a class="externalLink" href="http://localhost:1234/admin/v2/clusters/TestCluster/workflows/Workflow1/jobs/Job1/configs">http://localhost:1234/admin/v2/clusters/TestCluster/workflows/Workflow1/jobs/Job1/configs</a></li> 
+     </ul> 
+     <div class="source"> 
+      <pre><code>{
+  "id":"JobConfig"
+  "WorkflowID":"Workflow1",
+  "IgnoreDependentJobFailure":"false",
+  "MaxForcedReassignmentsPerTask":"3"
+}
+</code></pre> 
+     </div> </li> 
+    <li> <p><b>“/clusters/{clusterName}/workflows/{workflowName}/jobs/{jobName}/context”</b></p> 
+     <ul> 
+      <li>Represents job runtime information with {jobName} in {workflowName} in cluster {clusterName}. This is new endpoint in v2.0.</li> 
+      <li><b>GET</b> - return job runtime information. Example : curl <a class="externalLink" href="http://localhost:1234/admin/v2/clusters/TestCluster/workflows/Workflow1/jobs/Job1/context">http://localhost:1234/admin/v2/clusters/TestCluster/workflows/Workflow1/jobs/Job1/context</a></li> 
+     </ul> 
+     <div class="source"> 
+      <pre><code>{
+   "id":"JobContext":
+   "START_TIME":"1491005863291",
+   "FINISH_TIME":"1491005902612",
+   "Tasks":[
+             {
+                 "id":"0",
+                 "ASSIGNED_PARTICIPANT":"P1",
+                 "FINISH_TIME":"1491005898905"
+                 "INFO":""
+                 "NUM_ATTEMPTS":"1"
+                 "START_TIME":"1491005863307"
+                 "STATE":"COMPLETED"
+                 "TARGET":"DB_0"
+             },
+             {
+                 "id":"1",
+                 "ASSIGNED_PARTICIPANT":"P5",
+                 "FINISH_TIME":"1491005895443"
+                 "INFO":""
+                 "NUM_ATTEMPTS":"1"
+                 "START_TIME":"1491005863307"
+                 "STATE":"COMPLETED"
+                 "TARGET":"DB_1"
+             }
+   ]
+}
+</code></pre> 
+     </div> </li> 
+   </ul> 
+  </section> 
+ </section> 
+</section>
+			</div>
+		</div>
+	</div>
+	</div>
+
+	</div><!-- /container -->
+
+	<!-- Footer
+	================================================== -->
+	<footer class="well">
+		<div class="container">
+			<div class="row">
+				<div class="span3 bottom-nav">
+					<ul class="nav nav-list">
+						<li class="nav-header">Get Helix</li>
+						<li >
+							<a href="download.html" title="Download">Download</a>
+						</li>
+						<li >
+							<a href="Building.html" title="Building">Building</a>
+						</li>
+						<li >
+							<a href="releasenotes/release-1.0.3.html" title="Release Notes">Release Notes</a>
+						</li>
+					</ul>
+				</div>
+				<div class="span3 bottom-nav">
+					<ul class="nav nav-list">
+						<li class="nav-header">Hands-On</li>
+						<li >
+							<a href="Quickstart.html" title="Quick Start">Quick Start</a>
+						</li>
+						<li >
+							<a href="Tutorial.html" title="Tutorial">Tutorial</a>
+						</li>
+						<li >
+							<a href="../javadocs/1.0.3" title="Javadocs">Javadocs</a>
+						</li>
+					</ul>
+				</div>
+				<div class="span3 bottom-nav">
+					<ul class="nav nav-list">
+						<li class="nav-header">Recipes</li>
+						<li >
+							<a href="recipes/lock_manager.html" title="Distributed lock manager">Distributed lock manager</a>
+						</li>
+						<li >
+							<a href="recipes/rabbitmq_consumer_group.html" title="Rabbit MQ consumer group">Rabbit MQ consumer group</a>
+						</li>
+						<li >
+							<a href="recipes/rsync_replicated_file_store.html" title="Rsync replicated file store">Rsync replicated file store</a>
+						</li>
+						<li >
+							<a href="recipes/service_discovery.html" title="Service discovery">Service discovery</a>
+						</li>
+						<li >
+							<a href="recipes/task_dag_execution.html" title="Distributed task DAG execution">Distributed task DAG execution</a>
+						</li>
+					</ul>
+				</div>
+			</div>
+		</div>
+	</footer>
+
+	<div class="container subfooter">
+		<div class="row">
+			<div class="span12">
+				<p class="pull-right"><a href="#">Back to top</a></p>
+				<p class="copyright">Copyright &copy;2022 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.</p>
+				<p><a href="https://github.com/olamy/reflow-maven-skin" title="Reflow Maven skin">Reflow Maven skin</a> maintained by <a href="https://twitter.com/olamy" target="_blank" title="Olivier Lamy">Olivier Lamy</a>.</p>
+		<div class="row span16"><div>Apache Helix, Apache, the Apache feather logo, and the Apache Helix project logos are trademarks of The Apache Software Foundation.
+        All other marks mentioned may be trademarks or registered trademarks of their respective owners.</div>
+        <a href="https://helix.apache.org/1.0.3-docs/privacy-policy.html">Privacy Policy</a>
+      </div>
+			</div>
+		</div>
+	</div>
+
+	<!-- Le javascript
+	================================================== -->
+	<!-- Placed at the end of the document so the pages load faster -->
+	<script src="./js/jquery.min.js"></script>
+
+	<script src="./js/bootstrap.min.js"></script>
+	<script src="./js/lightbox.min.js"></script>
+	<script src="./js/reflow-scroll.js"></script>
+
+	<script src="./js/reflow-skin.js"></script>
+
+	</body>
+</html>
\ No newline at end of file

Added: helix/site-content/1.0.3-docs/tutorial_spectator.html
URL: http://svn.apache.org/viewvc/helix/site-content/1.0.3-docs/tutorial_spectator.html?rev=1906412&view=auto
==============================================================================
--- helix/site-content/1.0.3-docs/tutorial_spectator.html (added)
+++ helix/site-content/1.0.3-docs/tutorial_spectator.html Thu Jan  5 19:48:20 2023
@@ -0,0 +1,200 @@
+
+<!DOCTYPE html>
+<!--
+ Generated by Apache Maven Doxia at 2022-04-15
+ Rendered using Maven Reflow Skin 1.0.0 (http://andriusvelykis.github.com/reflow-maven-skin)
+-->
+<html  xml:lang="en" lang="en">
+
+	<head>
+		<meta charset="UTF-8" />
+		<title>Apache Helix &#x2013; Tutorial - Spectator</title>
+		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
+		<meta name="description" content="" />
+		<meta http-equiv="content-language" content="en" />
+
+		<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/css/bootstrap.min.css" rel="stylesheet" />
+		<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/css/bootstrap-responsive.min.css" rel="stylesheet" />
+		<link href="./css/docs.css" rel="stylesheet" />
+		<link href="./css/reflow-skin.css" rel="stylesheet" />
+		
+		
+		<link href="./css/lightbox.css" rel="stylesheet" />
+		
+		<link href="./css/site.css" rel="stylesheet" />
+		<link href="./css/print.css" rel="stylesheet" media="print" />
+		
+		<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
+		<!--[if lt IE 9]>
+			<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
+		<![endif]-->
+		
+	</head>
+
+	<body class="page-$config.fileId project-$config.projectId" data-spy="scroll" data-offset="60" data-target="#toc-scroll-target">
+
+		<div class="navbar navbar-fixed-top">
+			<div class="navbar-inner">
+				<div class="container">
+					<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
+						<span class="icon-bar"></span>
+						<span class="icon-bar"></span>
+						<span class="icon-bar"></span>
+					</a>
+					<div class="nav-collapse">
+						<ul class="nav pull-right">
+							<li class="active"><a href="" title="Helix 1.0.3">Helix 1.0.3 </a></li>
+							<li class="dropdown active">
+								<a href="#" class="dropdown-toggle" data-toggle="dropdown">Get Helix <b class="caret"></b></a>
+								<ul class="dropdown-menu">
+									<li class="active"><a href="" title="Download">Download </a></li>
+									<li class="active"><a href="" title="Building">Building </a></li>
+									<li class="active"><a href="" title="Release Notes">Release Notes </a></li>
+								</ul>
+							</li>
+							<li class="dropdown active">
+								<a href="#" class="dropdown-toggle" data-toggle="dropdown">Hands-On <b class="caret"></b></a>
+								<ul class="dropdown-menu">
+									<li class="active"><a href="" title="Quick Start">Quick Start </a></li>
+									<li class="active"><a href="" title="Tutorial">Tutorial </a></li>
+									<li class="active"><a href="" title="Javadocs">Javadocs </a></li>
+								</ul>
+							</li>
+							<li class="dropdown active">
+								<a href="#" class="dropdown-toggle" data-toggle="dropdown">Recipes <b class="caret"></b></a>
+								<ul class="dropdown-menu">
+									<li class="active"><a href="" title="Distributed lock manager">Distributed lock manager </a></li>
+									<li class="active"><a href="" title="Rabbit MQ consumer group">Rabbit MQ consumer group </a></li>
+									<li class="active"><a href="" title="Rsync replicated file store">Rsync replicated file store </a></li>
+									<li class="active"><a href="" title="Service discovery">Service discovery </a></li>
+									<li class="active"><a href="" title="Distributed task DAG execution">Distributed task DAG execution </a></li>
+								</ul>
+							</li>
+						</ul>
+					</div><!--/.nav-collapse -->
+				</div>
+			</div>
+		</div>
+		
+	<div class="container">
+	
+	<!-- Masthead
+	================================================== -->
+	<header class="jumbotron subhead">
+		<div class="row" id="banner">
+			<div class="span12">
+				<div class="pull-left">
+					<a href="" id="bannerLeft"><img src="" alt='"''"' /></a>
+				</div>
+				<div class="pull-right">
+					<a href="http://www.apache.org/" id="bannerRight"><img src="" alt='"''"' /></a>
+				</div>
+			</div>
+		</div>
+		<div>
+			<ul class="breadcrumb">
+				<li><a href="" title="Apache Helix">Apache Helix </a></li>
+				<li class="divider">/</li>
+				<li><a href="" title="Release 1.0.3">Release 1.0.3 </a></li>
+				<li class="divider">/</li>
+				<li>Tutorial - Spectator</li>
+				<li class="publishDate version-date pull-right">Last Published: 2022-04-15</li>
+			</ul>
+		</div>
+	</header>
+
+	<div class="main-body">
+	<div class="row">
+		<div class="span12">
+			<div class="body-content">
+$bodyWithHeader
+			</div>
+		</div>
+	</div>
+	</div>
+
+	</div><!-- /container -->
+	
+	<!-- Footer
+	================================================== -->
+	<footer class="well">
+		<div class="container">
+			<div class="row">
+				<div class="span9 bottom-nav">
+					<ul class="nav nav-list">
+						<li class="nav-header">Get Helix</li>
+						<li class="active">
+							<a href="#" title="Download">Download </a>
+						</li>
+						<li class="active">
+							<a href="#" title="Building">Building </a>
+						</li>
+						<li class="active">
+							<a href="#" title="Release Notes">Release Notes </a>
+						</li>
+						<li class="nav-header">Hands-On</li>
+						<li class="active">
+							<a href="#" title="Quick Start">Quick Start </a>
+						</li>
+						<li class="active">
+							<a href="#" title="Tutorial">Tutorial </a>
+						</li>
+						<li class="active">
+							<a href="#" title="Javadocs">Javadocs </a>
+						</li>
+						<li class="nav-header">Recipes</li>
+						<li class="active">
+							<a href="#" title="Distributed lock manager">Distributed lock manager </a>
+						</li>
+						<li class="active">
+							<a href="#" title="Rabbit MQ consumer group">Rabbit MQ consumer group </a>
+						</li>
+						<li class="active">
+							<a href="#" title="Rsync replicated file store">Rsync replicated file store </a>
+						</li>
+						<li class="active">
+							<a href="#" title="Service discovery">Service discovery </a>
+						</li>
+						<li class="active">
+							<a href="#" title="Distributed task DAG execution">Distributed task DAG execution </a>
+						</li>
+					</ul>
+				</div>
+			</div>
+		</div>
+	</footer>
+		
+	<div class="container subfooter">
+		<div class="row">
+			<div class="span12">
+				<p class="pull-right"><a href="#">Back to top</a></p>
+				<p class="copyright">Copyright &copy;2022 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.</p>
+				<p><a href="http://github.com/andriusvelykis/reflow-maven-skin" title="Reflow Maven skin">Reflow Maven skin</a> by <a href="http://andrius.velykis.lt" target="_blank" title="Andrius Velykis">Andrius Velykis</a>.</p>
+					</div>
+		</div>
+	</div>
+
+	<!-- Le javascript
+	================================================== -->
+	<!-- Placed at the end of the document so the pages load faster -->
+
+	<!-- Fallback jQuery loading from Google CDN:
+	     http://stackoverflow.com/questions/1014203/best-way-to-use-googles-hosted-jquery-but-fall-back-to-my-hosted-library-on-go -->
+	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
+	<script type="text/javascript">
+		if (typeof jQuery == 'undefined')
+		{
+			document.write(unescape("%3Cscript src='./js/jquery-1.8.3.min.js' type='text/javascript'%3E%3C/script%3E"));
+		}
+	</script>
+	
+	<script src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/js/bootstrap.min.js"></script>
+	<script src="./js/lightbox.js"></script>
+	<script src="./js/jquery.smooth-scroll.min.js"></script>
+	<!-- back button support for smooth scroll -->
+	<script src="./js/jquery.ba-bbq.min.js"></script>
+
+	<script src="./js/reflow-skin.js"></script>
+	
+	</body>
+</html>
\ No newline at end of file

Added: helix/site-content/1.0.3-docs/tutorial_state.html
URL: http://svn.apache.org/viewvc/helix/site-content/1.0.3-docs/tutorial_state.html?rev=1906412&view=auto
==============================================================================
--- helix/site-content/1.0.3-docs/tutorial_state.html (added)
+++ helix/site-content/1.0.3-docs/tutorial_state.html Thu Jan  5 19:48:20 2023
@@ -0,0 +1,366 @@
+
+<!DOCTYPE html>
+
+
+
+
+
+
+<!--
+ Generated by Apache Maven Doxia at 2022-05-12  Rendered using Reflow Maven Skin 2.0.0 (https://olamy.github.io/reflow-maven-skin)
+-->
+<html  xml:lang="en" lang="en">
+
+	<head>
+		<meta charset="UTF-8" />
+		<title>Apache Helix &#x2013; Tutorial - State Machine Configuration</title>
+		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
+		<meta name="description" content="" />
+		<meta http-equiv="content-language" content="en" />
+
+		<link href="./css/bootstrap.min.css" rel="stylesheet" />
+		<link href="./css/bootstrap-responsive.min.css" rel="stylesheet" />
+		<link href="./css/docs.css" rel="stylesheet" />
+		<link href="./css/reflow-skin.css" rel="stylesheet" />
+
+
+		<link href="./css/lightbox.css" rel="stylesheet" />
+
+		<link href="./css/site.css" rel="stylesheet" />
+		<link href="./css/print.css" rel="stylesheet" media="print" />
+
+		<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
+		<!--[if lt IE 9]>
+			<script src="./js/html5.js"></script>
+		<![endif]-->
+
+
+
+
+
+    
+<!-- Matomo -->
+<script>
+    var _paq = window._paq = window._paq || [];
+                        _paq.push(['disableCookies']);
+                                    _paq.push(['trackPageView']);
+                                    _paq.push(['enableLinkTracking']);
+                    
+    (function() {
+        var u="https://analytics.apache.org";
+        _paq.push(['setTrackerUrl', u+'/matomo.php']);
+        _paq.push(['setSiteId', '15']);
+        var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
+        g.async=true; g.src=u+'/matomo.js'; s.parentNode.insertBefore(g,s);
+    })();
+</script>
+<!-- End Matomo Code -->
+    	</head>
+
+	<body class="page-tutorial_state project-103-docs" data-spy="scroll" data-offset="60" data-target="#toc-scroll-target">
+
+    
+		<div class="navbar navbar-fixed-top">
+			<div class="navbar-inner">
+				<div class="container">
+					<a class="btn btn-navbar" data-toggle="collapse" data-target="#top-nav-collapse">
+						<span class="icon-bar"></span>
+						<span class="icon-bar"></span>
+						<span class="icon-bar"></span>
+					</a>
+					<a class="brand" href="http://helix.apache.org">Apache Helix</a>
+					<div class="nav-collapse collapse" id="top-nav-collapse">
+						<ul class="nav pull-right">
+							<li ><a href="index.html" title="Helix 1.0.3">Helix 1.0.3</a></li>
+							<li class="dropdown">
+								<a href="#" class="dropdown-toggle" data-toggle="dropdown">Get Helix <b class="caret"></b></a>
+								<ul class="dropdown-menu">
+									<li ><a href="download.html" title="Download">Download</a></li>
+									<li ><a href="Building.html" title="Building">Building</a></li>
+									<li ><a href="releasenotes/release-1.0.3.html" title="Release Notes">Release Notes</a></li>
+								</ul>
+							</li>
+							<li class="dropdown">
+								<a href="#" class="dropdown-toggle" data-toggle="dropdown">Hands-On <b class="caret"></b></a>
+								<ul class="dropdown-menu">
+									<li ><a href="Quickstart.html" title="Quick Start">Quick Start</a></li>
+									<li ><a href="Tutorial.html" title="Tutorial">Tutorial</a></li>
+									<li ><a href="../javadocs/1.0.3" title="Javadocs">Javadocs</a></li>
+								</ul>
+							</li>
+							<li class="dropdown">
+								<a href="#" class="dropdown-toggle" data-toggle="dropdown">Recipes <b class="caret"></b></a>
+								<ul class="dropdown-menu">
+									<li ><a href="recipes/lock_manager.html" title="Distributed lock manager">Distributed lock manager</a></li>
+									<li ><a href="recipes/rabbitmq_consumer_group.html" title="Rabbit MQ consumer group">Rabbit MQ consumer group</a></li>
+									<li ><a href="recipes/rsync_replicated_file_store.html" title="Rsync replicated file store">Rsync replicated file store</a></li>
+									<li ><a href="recipes/service_discovery.html" title="Service discovery">Service discovery</a></li>
+									<li ><a href="recipes/task_dag_execution.html" title="Distributed task DAG execution">Distributed task DAG execution</a></li>
+								</ul>
+							</li>
+						</ul>
+					</div><!--/.nav-collapse -->
+				</div>
+			</div>
+		</div>
+
+	<div class="container">
+
+	<!-- Masthead
+	================================================== -->
+
+	<header>
+	<div class="jumbotron subhead">
+		<div class="row" id="banner">
+			<div class="span12">
+				<div class="pull-left">
+					<a href="http://helix.apache.org/" id="bannerLeft"><img src="../images/helix-logo.jpg" alt='"''"' /></a>
+					<p class="lead">A cluster management framework for partitioned and replicated distributed resources</p>
+				</div>
+				<div class="pull-right">
+					<a href="http://www.apache.org/" id="bannerRight"><img src="../images/feather_small.gif" alt='"''"' /></a>
+				</div>
+			</div>
+		</div>
+	</div>
+		<div>
+			<ul class="breadcrumb">
+				<li><a href="http://helix.apache.org/" title="Apache Helix" class="externalLink">Apache Helix</a></li>
+				<li class="divider">/</li>
+				<li><a href="../" title="Apache Helix">Apache Helix</a></li>
+				<li class="divider">/</li>
+				<li><a href="./" title="Release 1.0.3">Release 1.0.3</a></li>
+				<li class="divider">/</li>
+				<li>Tutorial - State Machine Configuration</li>
+				<li class="publishDate version-date pull-right">Last Published: 2022-05-12</li>
+			</ul>
+		</div>
+	</header>
+
+	<div class="main-body">
+	<div class="row">
+		<div class="span12">
+			<div class="body-content">
+<!--
+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.
+--> 
+<section> 
+ <div class="page-header">
+  <h2 id="Helix_Tutorial:_State_Machine_Configuration"><a href="./Tutorial.html">Helix Tutorial</a>: State Machine Configuration</h2>
+ </div> 
+ <p>In this chapter, we'll learn about the state models provided by Helix, and how to create your own custom state model.</p> 
+ <section> 
+  <h3 id="State_Models">State Models</h3> 
+  <p>Helix comes with 3 default state models that are commonly used. It is possible to have multiple state models in a cluster. Every resource that is added should be configured to use a state model that govern its <i>ideal state</i>.</p> 
+  <section> 
+   <h4 id="MASTER-SLAVE">MASTER-SLAVE</h4> 
+   <ul> 
+    <li>3 states: OFFLINE, SLAVE, MASTER</li> 
+    <li>Maximum number of masters: 1</li> 
+    <li>Slaves are based on the replication factor. The replication factor can be specified while adding the resource.</li> 
+   </ul> 
+  </section> 
+  <section> 
+   <h4 id="ONLINE-OFFLINE">ONLINE-OFFLINE</h4> 
+   <ul> 
+    <li>Has 2 states: OFFLINE and ONLINE. This simple state model is a good starting point for most applications.</li> 
+   </ul> 
+  </section> 
+  <section> 
+   <h4 id="LEADER-STANDBY">LEADER-STANDBY</h4> 
+   <ul> 
+    <li>1 Leader and multiple stand-bys. The idea is that exactly one leader accomplishes a designated task, the stand-bys are ready to take over if the leader fails.</li> 
+   </ul> 
+  </section> 
+ </section> 
+ <section> 
+  <h3 id="Constraints">Constraints</h3> 
+  <p>In addition to the state machine configuration, one can specify the constraints of states and transitions.</p> 
+  <p>For example, one can say:</p> 
+  <ul> 
+   <li> <p>LEADER:1 <br>Maximum number of replicas in LEADER state at any time is 1</p> </li> 
+   <li> <p>OFFLINE-STANDBY:5 <br>Maximum number of OFFLINE-STANDBY transitions that can happen concurrently in the system is 5 in this example.</p> </li> 
+  </ul> 
+  <section> 
+   <h4 id="Dynamic_State_Constraints">Dynamic State Constraints</h4> 
+   <p>We also support two dynamic upper bounds for the number of replicas in each state:</p> 
+   <ul> 
+    <li>N: The number of replicas in the state is at most the number of live participants in the cluster</li> 
+    <li>R: The number of replicas in the state is at most the specified replica count for the partition</li> 
+   </ul> 
+  </section> 
+  <section> 
+   <h4 id="State_Priority">State Priority</h4> 
+   <p>Helix uses a greedy approach to satisfy the state constraints. For example, if the state machine configuration says it needs 1 LEADER and 2 STANDBYS, but only 1 node is active, Helix must promote it to LEADER. This behavior is achieved by providing the state priority list as [LEADER, STANDBY].</p> 
+  </section> 
+  <section> 
+   <h4 id="State_Transition_Priority">State Transition Priority</h4> 
+   <p>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. You can control this by overriding the priority order.</p> 
+  </section> 
+ </section> 
+ <section> 
+  <h3 id="Special_States">Special States</h3> 
+  <p>There are a few Helix-defined states that are important to be aware of.</p> 
+  <section> 
+   <h4 id="DROPPED">DROPPED</h4> 
+   <p>The DROPPED state is used to signify a replica that was served by a given participant, but is no longer served. This allows Helix and its participants to effectively clean up. There are two requirements that every new state model should follow with respect to the DROPPED state:</p> 
+   <ul> 
+    <li>The DROPPED state must be defined</li> 
+    <li>There must be a path to DROPPED for every state in the model</li> 
+   </ul> 
+  </section> 
+  <section> 
+   <h4 id="ERROR">ERROR</h4> 
+   <p>The ERROR state is used whenever the participant serving a partition encountered an error and cannot continue to serve the partition. HelixAdmin has "reset" functionality to allow for participants to recover from the ERROR state.</p> 
+  </section> 
+ </section> 
+ <section> 
+  <h3 id="Annotated_Example">Annotated Example</h3> 
+  <p>Below is a complete definition of a Leader-Standby state model. Notice the fields marked REQUIRED; these are essential for any state model definition.</p> 
+  <div class="source"> 
+   <pre><code>StateModelDefinition stateModel = new StateModelDefinition.Builder("LeaderStandby")
+  // OFFLINE is the state that the system starts in (initial state is REQUIRED)
+  .initialState("OFFLINE")
+
+  // Lowest number here indicates highest priority, no value indicates lowest priority
+  .addState("LEADER", 1)
+  .addState("STANDBY", 2)
+  .addState("OFFLINE")
+
+  // Note the special inclusion of the DROPPED state (REQUIRED)
+  .addState(HelixDefinedState.DROPPED.toString())
+
+  // No more than one leader allowed
+  .upperBound("LEADER", 1)
+
+  // R indicates an upper bound of number of replicas for each partition
+  .dynamicUpperBound("STANDBY", "R")
+
+  // Add some high-priority transitions
+  .addTransition("STANDBY", "LEADER", 1)
+  .addTransition("OFFLINE", "STANDBY", 2)
+
+  // Using the same priority value indicates that these transitions can fire in any order
+  .addTransition("LEADER", "STANDBY", 3)
+  .addTransition("STANDBY", "OFFLINE", 3)
+
+  // Not specifying a value defaults to lowest priority
+  // Notice the inclusion of the OFFLINE to DROPPED transition
+  // Since every state has a path to OFFLINE, they each now have a path to DROPPED (REQUIRED)
+  .addTransition("OFFLINE", HelixDefinedState.DROPPED.toString())
+
+  // Create the StateModelDefinition instance
+  .build();
+
+  // Use the isValid() function to make sure the StateModelDefinition will work without issues
+  Assert.assertTrue(stateModel.isValid());
+</code></pre> 
+  </div> 
+ </section> 
+</section>
+			</div>
+		</div>
+	</div>
+	</div>
+
+	</div><!-- /container -->
+
+	<!-- Footer
+	================================================== -->
+	<footer class="well">
+		<div class="container">
+			<div class="row">
+				<div class="span3 bottom-nav">
+					<ul class="nav nav-list">
+						<li class="nav-header">Get Helix</li>
+						<li >
+							<a href="download.html" title="Download">Download</a>
+						</li>
+						<li >
+							<a href="Building.html" title="Building">Building</a>
+						</li>
+						<li >
+							<a href="releasenotes/release-1.0.3.html" title="Release Notes">Release Notes</a>
+						</li>
+					</ul>
+				</div>
+				<div class="span3 bottom-nav">
+					<ul class="nav nav-list">
+						<li class="nav-header">Hands-On</li>
+						<li >
+							<a href="Quickstart.html" title="Quick Start">Quick Start</a>
+						</li>
+						<li >
+							<a href="Tutorial.html" title="Tutorial">Tutorial</a>
+						</li>
+						<li >
+							<a href="../javadocs/1.0.3" title="Javadocs">Javadocs</a>
+						</li>
+					</ul>
+				</div>
+				<div class="span3 bottom-nav">
+					<ul class="nav nav-list">
+						<li class="nav-header">Recipes</li>
+						<li >
+							<a href="recipes/lock_manager.html" title="Distributed lock manager">Distributed lock manager</a>
+						</li>
+						<li >
+							<a href="recipes/rabbitmq_consumer_group.html" title="Rabbit MQ consumer group">Rabbit MQ consumer group</a>
+						</li>
+						<li >
+							<a href="recipes/rsync_replicated_file_store.html" title="Rsync replicated file store">Rsync replicated file store</a>
+						</li>
+						<li >
+							<a href="recipes/service_discovery.html" title="Service discovery">Service discovery</a>
+						</li>
+						<li >
+							<a href="recipes/task_dag_execution.html" title="Distributed task DAG execution">Distributed task DAG execution</a>
+						</li>
+					</ul>
+				</div>
+			</div>
+		</div>
+	</footer>
+
+	<div class="container subfooter">
+		<div class="row">
+			<div class="span12">
+				<p class="pull-right"><a href="#">Back to top</a></p>
+				<p class="copyright">Copyright &copy;2022 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.</p>
+				<p><a href="https://github.com/olamy/reflow-maven-skin" title="Reflow Maven skin">Reflow Maven skin</a> maintained by <a href="https://twitter.com/olamy" target="_blank" title="Olivier Lamy">Olivier Lamy</a>.</p>
+		<div class="row span16"><div>Apache Helix, Apache, the Apache feather logo, and the Apache Helix project logos are trademarks of The Apache Software Foundation.
+        All other marks mentioned may be trademarks or registered trademarks of their respective owners.</div>
+        <a href="https://helix.apache.org/1.0.3-docs/privacy-policy.html">Privacy Policy</a>
+      </div>
+			</div>
+		</div>
+	</div>
+
+	<!-- Le javascript
+	================================================== -->
+	<!-- Placed at the end of the document so the pages load faster -->
+	<script src="./js/jquery.min.js"></script>
+
+	<script src="./js/bootstrap.min.js"></script>
+	<script src="./js/lightbox.min.js"></script>
+	<script src="./js/reflow-scroll.js"></script>
+
+	<script src="./js/reflow-skin.js"></script>
+
+	</body>
+</html>
\ No newline at end of file

Added: helix/site-content/1.0.3-docs/tutorial_task_framework.html
URL: http://svn.apache.org/viewvc/helix/site-content/1.0.3-docs/tutorial_task_framework.html?rev=1906412&view=auto
==============================================================================
--- helix/site-content/1.0.3-docs/tutorial_task_framework.html (added)
+++ helix/site-content/1.0.3-docs/tutorial_task_framework.html Thu Jan  5 19:48:20 2023
@@ -0,0 +1,200 @@
+
+<!DOCTYPE html>
+<!--
+ Generated by Apache Maven Doxia at 2022-04-15
+ Rendered using Maven Reflow Skin 1.0.0 (http://andriusvelykis.github.com/reflow-maven-skin)
+-->
+<html  xml:lang="en" lang="en">
+
+	<head>
+		<meta charset="UTF-8" />
+		<title>Apache Helix &#x2013; Tutorial - Task Framework</title>
+		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
+		<meta name="description" content="" />
+		<meta http-equiv="content-language" content="en" />
+
+		<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/css/bootstrap.min.css" rel="stylesheet" />
+		<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/css/bootstrap-responsive.min.css" rel="stylesheet" />
+		<link href="./css/docs.css" rel="stylesheet" />
+		<link href="./css/reflow-skin.css" rel="stylesheet" />
+		
+		
+		<link href="./css/lightbox.css" rel="stylesheet" />
+		
+		<link href="./css/site.css" rel="stylesheet" />
+		<link href="./css/print.css" rel="stylesheet" media="print" />
+		
+		<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
+		<!--[if lt IE 9]>
+			<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
+		<![endif]-->
+		
+	</head>
+
+	<body class="page-$config.fileId project-$config.projectId" data-spy="scroll" data-offset="60" data-target="#toc-scroll-target">
+
+		<div class="navbar navbar-fixed-top">
+			<div class="navbar-inner">
+				<div class="container">
+					<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
+						<span class="icon-bar"></span>
+						<span class="icon-bar"></span>
+						<span class="icon-bar"></span>
+					</a>
+					<div class="nav-collapse">
+						<ul class="nav pull-right">
+							<li class="active"><a href="" title="Helix 1.0.3">Helix 1.0.3 </a></li>
+							<li class="dropdown active">
+								<a href="#" class="dropdown-toggle" data-toggle="dropdown">Get Helix <b class="caret"></b></a>
+								<ul class="dropdown-menu">
+									<li class="active"><a href="" title="Download">Download </a></li>
+									<li class="active"><a href="" title="Building">Building </a></li>
+									<li class="active"><a href="" title="Release Notes">Release Notes </a></li>
+								</ul>
+							</li>
+							<li class="dropdown active">
+								<a href="#" class="dropdown-toggle" data-toggle="dropdown">Hands-On <b class="caret"></b></a>
+								<ul class="dropdown-menu">
+									<li class="active"><a href="" title="Quick Start">Quick Start </a></li>
+									<li class="active"><a href="" title="Tutorial">Tutorial </a></li>
+									<li class="active"><a href="" title="Javadocs">Javadocs </a></li>
+								</ul>
+							</li>
+							<li class="dropdown active">
+								<a href="#" class="dropdown-toggle" data-toggle="dropdown">Recipes <b class="caret"></b></a>
+								<ul class="dropdown-menu">
+									<li class="active"><a href="" title="Distributed lock manager">Distributed lock manager </a></li>
+									<li class="active"><a href="" title="Rabbit MQ consumer group">Rabbit MQ consumer group </a></li>
+									<li class="active"><a href="" title="Rsync replicated file store">Rsync replicated file store </a></li>
+									<li class="active"><a href="" title="Service discovery">Service discovery </a></li>
+									<li class="active"><a href="" title="Distributed task DAG execution">Distributed task DAG execution </a></li>
+								</ul>
+							</li>
+						</ul>
+					</div><!--/.nav-collapse -->
+				</div>
+			</div>
+		</div>
+		
+	<div class="container">
+	
+	<!-- Masthead
+	================================================== -->
+	<header class="jumbotron subhead">
+		<div class="row" id="banner">
+			<div class="span12">
+				<div class="pull-left">
+					<a href="" id="bannerLeft"><img src="" alt='"''"' /></a>
+				</div>
+				<div class="pull-right">
+					<a href="http://www.apache.org/" id="bannerRight"><img src="" alt='"''"' /></a>
+				</div>
+			</div>
+		</div>
+		<div>
+			<ul class="breadcrumb">
+				<li><a href="" title="Apache Helix">Apache Helix </a></li>
+				<li class="divider">/</li>
+				<li><a href="" title="Release 1.0.3">Release 1.0.3 </a></li>
+				<li class="divider">/</li>
+				<li>Tutorial - Task Framework</li>
+				<li class="publishDate version-date pull-right">Last Published: 2022-04-15</li>
+			</ul>
+		</div>
+	</header>
+
+	<div class="main-body">
+	<div class="row">
+		<div class="span12">
+			<div class="body-content">
+$bodyWithHeader
+			</div>
+		</div>
+	</div>
+	</div>
+
+	</div><!-- /container -->
+	
+	<!-- Footer
+	================================================== -->
+	<footer class="well">
+		<div class="container">
+			<div class="row">
+				<div class="span9 bottom-nav">
+					<ul class="nav nav-list">
+						<li class="nav-header">Get Helix</li>
+						<li class="active">
+							<a href="#" title="Download">Download </a>
+						</li>
+						<li class="active">
+							<a href="#" title="Building">Building </a>
+						</li>
+						<li class="active">
+							<a href="#" title="Release Notes">Release Notes </a>
+						</li>
+						<li class="nav-header">Hands-On</li>
+						<li class="active">
+							<a href="#" title="Quick Start">Quick Start </a>
+						</li>
+						<li class="active">
+							<a href="#" title="Tutorial">Tutorial </a>
+						</li>
+						<li class="active">
+							<a href="#" title="Javadocs">Javadocs </a>
+						</li>
+						<li class="nav-header">Recipes</li>
+						<li class="active">
+							<a href="#" title="Distributed lock manager">Distributed lock manager </a>
+						</li>
+						<li class="active">
+							<a href="#" title="Rabbit MQ consumer group">Rabbit MQ consumer group </a>
+						</li>
+						<li class="active">
+							<a href="#" title="Rsync replicated file store">Rsync replicated file store </a>
+						</li>
+						<li class="active">
+							<a href="#" title="Service discovery">Service discovery </a>
+						</li>
+						<li class="active">
+							<a href="#" title="Distributed task DAG execution">Distributed task DAG execution </a>
+						</li>
+					</ul>
+				</div>
+			</div>
+		</div>
+	</footer>
+		
+	<div class="container subfooter">
+		<div class="row">
+			<div class="span12">
+				<p class="pull-right"><a href="#">Back to top</a></p>
+				<p class="copyright">Copyright &copy;2022 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.</p>
+				<p><a href="http://github.com/andriusvelykis/reflow-maven-skin" title="Reflow Maven skin">Reflow Maven skin</a> by <a href="http://andrius.velykis.lt" target="_blank" title="Andrius Velykis">Andrius Velykis</a>.</p>
+					</div>
+		</div>
+	</div>
+
+	<!-- Le javascript
+	================================================== -->
+	<!-- Placed at the end of the document so the pages load faster -->
+
+	<!-- Fallback jQuery loading from Google CDN:
+	     http://stackoverflow.com/questions/1014203/best-way-to-use-googles-hosted-jquery-but-fall-back-to-my-hosted-library-on-go -->
+	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
+	<script type="text/javascript">
+		if (typeof jQuery == 'undefined')
+		{
+			document.write(unescape("%3Cscript src='./js/jquery-1.8.3.min.js' type='text/javascript'%3E%3C/script%3E"));
+		}
+	</script>
+	
+	<script src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/js/bootstrap.min.js"></script>
+	<script src="./js/lightbox.js"></script>
+	<script src="./js/jquery.smooth-scroll.min.js"></script>
+	<!-- back button support for smooth scroll -->
+	<script src="./js/jquery.ba-bbq.min.js"></script>
+
+	<script src="./js/reflow-skin.js"></script>
+	
+	</body>
+</html>
\ No newline at end of file