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 [12/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...

Modified: helix/site-content/1.0.2-docs/Tutorial.html
URL: http://svn.apache.org/viewvc/helix/site-content/1.0.2-docs/Tutorial.html?rev=1906412&r1=1906411&r2=1906412&view=diff
==============================================================================
--- helix/site-content/1.0.2-docs/Tutorial.html (original)
+++ helix/site-content/1.0.2-docs/Tutorial.html Thu Jan  5 19:48:20 2023
@@ -1,13 +1,8 @@
 
 <!DOCTYPE html>
-
-
-
-
-
-
 <!--
- Generated by Apache Maven Doxia at 2022-10-19  Rendered using Reflow Maven Skin 2.0.0 (https://olamy.github.io/reflow-maven-skin)
+ Generated by Apache Maven Doxia at 2022-04-22
+ Rendered using Maven Reflow Skin 1.0.0 (http://andriusvelykis.github.com/reflow-maven-skin)
 -->
 <html  xml:lang="en" lang="en">
 
@@ -18,84 +13,61 @@
 		<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="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="./js/html5.js"></script>
+			<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">
 
-
-
-
-    
-<!-- 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 project-102-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">
+					<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>
-					<a class="brand" href="..">Apache Helix</a>
-					<div class="nav-collapse collapse" id="top-nav-collapse">
+					<div class="nav-collapse">
 						<ul class="nav pull-right">
-							<li ><a href="index.html" title="Helix 1.0.2">Helix 1.0.2</a></li>
-							<li class="dropdown">
+							<li class="active"><a href="" title="Helix 1.0.2">Helix 1.0.2 </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 ><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.2.html" title="Release Notes">Release Notes</a></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>
 								</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 ><a href="Quickstart.html" title="Quick Start">Quick Start</a></li>
-									<li class="active"><a href="" title="Tutorial">Tutorial</a></li>
-									<li ><a href="../javadocs/1.0.2" title="Javadocs">Javadocs</a></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>
 								</ul>
 							</li>
-							<li class="dropdown">
+							<li class="dropdown active">
 								<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>
+									<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>
@@ -103,36 +75,30 @@
 				</div>
 			</div>
 		</div>
-
+		
 	<div class="container">
-
+	
 	<!-- Masthead
 	================================================== -->
-
-	<header>
-	<div class="jumbotron subhead">
+	<header class="jumbotron subhead">
 		<div class="row" id="banner">
 			<div class="span12">
 				<div class="pull-left">
-					<a href="../" id="bannerLeft"><img src="../images/helix-logo.jpg" alt='"''"' /></a>
-					<p class="lead">A cluster management framework for partitioned and replicated distributed resources</p>
+					<a href="" id="bannerLeft"><img src="" alt='"''"' /></a>
 				</div>
 				<div class="pull-right">
-					<a href="https://www.apache.org/" id="bannerRight"><img src="../images/feather_small.gif" alt='"''"' /></a>
+					<a href="http://www.apache.org/" id="bannerRight"><img src="" 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><a href="" title="Apache Helix">Apache Helix </a></li>
 				<li class="divider">/</li>
-				<li><a href="./" title="Release 1.0.2">Release 1.0.2</a></li>
+				<li><a href="" title="Release 1.0.2">Release 1.0.2 </a></li>
 				<li class="divider">/</li>
 				<li>Tutorial</li>
-				<li class="publishDate version-date pull-right">Last Published: 2022-10-19</li>
+				<li class="publishDate version-date pull-right">Last Published: 2022-04-22</li>
 			</ul>
 		</div>
 	</header>
@@ -141,304 +107,94 @@
 	<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.
---> 
-<div class="page-header">
- <h1>Helix Tutorial</h1>
-</div> 
-<p>In this tutorial, we will cover the roles of a Helix-managed cluster, and show the code you need to write to integrate with it. In many cases, there is a simple default behavior that is often appropriate, but you can also customize the behavior.</p> 
-<p>Convention: we first cover the <i>basic</i> approach, which is the easiest to implement. Then, we'll describe <i>advanced</i> options, which give you more control over the system behavior, but require you to write more code.</p> 
-<section> 
- <section> 
-  <h3 id="Prerequisites">Prerequisites</h3> 
-  <ol style="list-style-type: decimal"> 
-   <li>Read <a href="../Concepts.html">Concepts/Terminology</a> and <a href="../Architecture.html">Architecture</a></li> 
-   <li>Read the <a href="./Quickstart.html">Quickstart guide</a> to learn how Helix models and manages a cluster</li> 
-   <li>Install Helix source. See: <a href="./Quickstart.html">Quickstart</a> for the steps.</li> 
-  </ol> 
- </section> 
- <section> 
-  <h3 id="Tutorial_Outline">Tutorial Outline</h3> 
-  <ol style="list-style-type: decimal"> 
-   <li><a href="./tutorial_participant.html">Participant</a></li> 
-   <li><a href="./tutorial_spectator.html">Spectator</a></li> 
-   <li><a href="./tutorial_controller.html">Controller</a></li> 
-   <li><a href="./tutorial_rebalance.html">Rebalancing Algorithms</a></li> 
-   <li><a href="./tutorial_user_def_rebalancer.html">User-Defined Rebalancing</a></li> 
-   <li><a href="./tutorial_state.html">State Machines</a></li> 
-   <li><a href="./tutorial_messaging.html">Messaging</a></li> 
-   <li><a href="./tutorial_health.html">Customized health check</a></li> 
-   <li><a href="./tutorial_throttling.html">Throttling</a></li> 
-   <li><a href="./tutorial_propstore.html">Application Property Store</a></li> 
-   <li><a href="./tutorial_admin.html">Admin Interface</a></li> 
-   <li><a href="./tutorial_yaml.html">YAML Cluster Setup</a></li> 
-   <li><a href="./tutorial_agent.html">Helix Agent (for non-JVM systems)</a></li> 
-   <li><a href="./tutorial_task_framework.html">Task Framework</a> 
-    <ol style="list-style-type: decimal"> 
-     <li><a href="./tutorial_user_content_store.html">Task with User Defined Content Store</a></li> 
-     <li><a href="./tutorial_task_throttling.html">Task Throttling</a></li> 
-     <li><a href="./quota_scheduling.html">Quota-based Scheduling</a></li> 
-    </ol> </li> 
-   <li><a href="./tutorial_rest_service.html">Helix REST Service 2.0</a></li> 
-   <li><a href="./tutorial_ui.html">Helix UI Setup</a></li> 
-   <li><a href="./tutorial_customized_view.html">Helix Customized View</a></li> 
-   <li><a href="./tutorial_cloud_support.html">Helix Cloud Support</a></li> 
-   <li><a href="./tutorial_distributed_lock.html">Helix Distributed Lock</a></li> 
-  </ol> 
- </section> 
- <section> 
-  <h3 id="Preliminaries">Preliminaries</h3> 
-  <p>First, we need to set up the system. Let's walk through the steps in building a distributed system using Helix.</p> 
-  <section> 
-   <h4 id="Start_ZooKeeper">Start ZooKeeper</h4> 
-   <p>This starts a zookeeper in standalone mode. For production deployment, see <a class="externalLink" href="http://zookeeper.apache.org">Apache ZooKeeper</a> for instructions.</p> 
-   <div class="source"> 
-    <pre><code>./start-standalone-zookeeper.sh 2199 &amp;
-</code></pre> 
-   </div> 
-  </section> 
-  <section> 
-   <h4 id="Create_a_Cluster">Create a Cluster</h4> 
-   <p>Creating a cluster will define the cluster in appropriate znodes on ZooKeeper.</p> 
-   <p>Using the Java API:</p> 
-   <div class="source"> 
-    <pre><code>// Create setup tool instance
-// Note: ZK_ADDRESS is the host:port of Zookeeper
-String ZK_ADDRESS = "localhost:2199";
-admin = new ZKHelixAdmin(ZK_ADDRESS);
-
-String CLUSTER_NAME = "helix-demo";
-//Create cluster namespace in zookeeper
-admin.addCluster(CLUSTER_NAME);
-</code></pre> 
-   </div> 
-   <p>OR</p> 
-   <p>Using the command-line interface:</p> 
-   <div class="source"> 
-    <pre><code>./helix-admin.sh --zkSvr localhost:2199 --addCluster helix-demo
-</code></pre> 
-   </div> 
-  </section> 
-  <section> 
-   <h4 id="Configure_the_Nodes_of_the_Cluster">Configure the Nodes of the Cluster</h4> 
-   <p>First we'll add new nodes to the cluster, then configure the nodes in the cluster. Each node in the cluster must be uniquely identifiable. The most commonly used convention is hostname:port.</p> 
-   <div class="source"> 
-    <pre><code>String CLUSTER_NAME = "helix-demo";
-int NUM_NODES = 2;
-String hosts[] = new String[]{"localhost","localhost"};
-String ports[] = new String[]{"7000","7001"};
-for (int i = 0; i &lt; NUM_NODES; i++)
-{
-  InstanceConfig instanceConfig = new InstanceConfig(hosts[i]+ "_" + ports[i]);
-  instanceConfig.setHostName(hosts[i]);
-  instanceConfig.setPort(ports[i]);
-  instanceConfig.setInstanceEnabled(true);
-
-  //Add additional system specific configuration if needed. These can be accessed during the node start up.
-  instanceConfig.getRecord().setSimpleField("key", "value");
-  admin.addInstance(CLUSTER_NAME, instanceConfig);
-}
-</code></pre> 
-   </div> 
-  </section> 
-  <section> 
-   <h4 id="Configure_the_Resource">Configure the Resource</h4> 
-   <p>A <b>resource</b> represents the actual task performed by the nodes. It can be a database, index, topic, queue or any other processing entity. A resource can be divided into many sub-parts known as <b>partitions</b>.</p> 
-   <section> 
-    <h5 id="Define_the_State_Model_and_Constraints">Define the State Model and Constraints</h5> 
-    <p>For scalability and fault tolerance, each partition can have one or more replicas. The <b>state model</b> allows one to declare the system behavior by first enumerating the various STATES, and the TRANSITIONS between them. A simple model is ONLINE-OFFLINE where ONLINE means the task is active and OFFLINE means it's not active. You can also specify how many replicas must be in each state, these are known as <b>constraints</b>. For example, in a search system, one might need more than one node serving the same index to handle the load.</p> 
-    <p>The allowed states:</p> 
-    <ul> 
-     <li>LEADER</li> 
-     <li>STANDBY</li> 
-     <li>OFFLINE</li> 
-    </ul> 
-    <p>The allowed transitions:</p> 
-    <ul> 
-     <li>OFFLINE to STANDBY</li> 
-     <li>STANDBY to OFFLINE</li> 
-     <li>STANDBY to LEADER</li> 
-     <li>LEADER to STANDBY</li> 
-    </ul> 
-    <p>The constraints:</p> 
-    <ul> 
-     <li>no more than 1 LEADER per partition</li> 
-     <li>the rest of the replicas should be STANDBYs</li> 
-    </ul> 
-    <p>The following snippet shows how to declare the state model and constraints for the LEADER-STANDBY model.</p> 
-    <div class="source"> 
-     <pre><code>String STATE_MODEL_NAME = "LeaderStandby";
-StateModelDefinition.Builder builder = new StateModelDefinition.Builder(STATE_MODEL_NAME);
-// Define your own states: those are opaque strings to Helix
-// Only the topology of the state machine (initial state, transitions, priorities, final DROPPED state) is meaningful to Helix
-String LEADER = "LEADER";
-String STANDBY = "STANDBY";
-String OFFLINE = "OFFLINE";
-
-// Add states and their rank to indicate priority. A lower rank corresponds to a higher priority
-builder.addState(LEADER, 1);
-builder.addState(STANDBY, 2);
-builder.addState(OFFLINE);
-// Note the special inclusion of the DROPPED state (REQUIRED)
-builder.addState(HelixDefinedState.DROPPED.name());
-
-// Set the initial state when the node starts
-builder.initialState(OFFLINE);
-
-// Add transitions between the states.
-builder.addTransition(OFFLINE, STANDBY);
-builder.addTransition(STANDBY, OFFLINE);
-builder.addTransition(STANDBY, LEADER);
-builder.addTransition(LEADER, STANDBY);
-
-// There must be a path to DROPPED from each state (REQUIRED)
-builder.addTransition(OFFLINE, HelixDefinedState.DROPPED.name());
-
-// set constraints on states
-
-// static constraint: upper bound of 1 LEADER
-builder.upperBound(LEADER, 1);
-
-// dynamic constraint: R means it should be derived based on the replication factor for the cluster
-// this allows a different replication factor for each resource without
-// having to define a new state model
-
-builder.dynamicUpperBound(STANDBY, "R");
-
-StateModelDefinition myStateModel = builder.build();
-admin.addStateModelDef(CLUSTER_NAME, STATE_MODEL_NAME, myStateModel);
-</code></pre> 
-    </div> 
-   </section> 
-   <section> 
-    <h5 id="Assigning_Partitions_to_Nodes">Assigning Partitions to Nodes</h5> 
-    <p>The final goal of Helix is to ensure that the constraints on the state model are satisfied. Helix does this by assigning a <b>state</b> to a partition (such as LEADER, STANDBY), and placing it on a particular node.</p> 
-    <p>There are 3 assignment modes Helix can operate in:</p> 
-    <ul> 
-     <li>FULL_AUTO: Helix decides the placement and state of a partition.</li> 
-     <li>SEMI_AUTO: Application decides the placement but Helix decides the state of a partition.</li> 
-     <li>CUSTOMIZED: Application controls the placement and state of a partition.</li> 
-    </ul> 
-    <p>For more information on the assignment modes, see the <a href="./tutorial_rebalance.html">Rebalancing Algorithms</a> section of this tutorial.</p> 
-    <div class="source"> 
-     <pre><code>String RESOURCE_NAME = "MyDB";
-int NUM_PARTITIONS = 6;
-String STATE_MODEL_NAME = "LeaderStandby";
-String MODE = "SEMI_AUTO";
-int NUM_REPLICAS = 2;
-
-admin.addResource(CLUSTER_NAME, RESOURCE_NAME, NUM_PARTITIONS, STATE_MODEL_NAME, MODE);
-admin.rebalance(CLUSTER_NAME, RESOURCE_NAME, NUM_REPLICAS);
-</code></pre> 
-    </div> 
-   </section> 
-  </section> 
- </section> 
-</section>
+$bodyWithHeader
 			</div>
 		</div>
 	</div>
 	</div>
 
 	</div><!-- /container -->
-
+	
 	<!-- Footer
 	================================================== -->
 	<footer class="well">
 		<div class="container">
 			<div class="row">
-				<div class="span3 bottom-nav">
+				<div class="span9 bottom-nav">
 					<ul class="nav nav-list">
 						<li class="nav-header">Get Helix</li>
-						<li >
-							<a href="download.html" title="Download">Download</a>
+						<li class="active">
+							<a href="#" title="Download">Download </a>
 						</li>
-						<li >
-							<a href="Building.html" title="Building">Building</a>
+						<li class="active">
+							<a href="#" title="Building">Building </a>
 						</li>
-						<li >
-							<a href="releasenotes/release-1.0.2.html" title="Release Notes">Release Notes</a>
+						<li class="active">
+							<a href="#" 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 class="active">
+							<a href="#" title="Quick Start">Quick Start </a>
 						</li>
 						<li class="active">
-							<a href="#" title="Tutorial">Tutorial</a>
+							<a href="#" title="Tutorial">Tutorial </a>
 						</li>
-						<li >
-							<a href="../javadocs/1.0.2" title="Javadocs">Javadocs</a>
+						<li class="active">
+							<a href="#" 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 class="active">
+							<a href="#" 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 class="active">
+							<a href="#" 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 class="active">
+							<a href="#" 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 class="active">
+							<a href="#" 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 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="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.2-docs/privacy-policy.html">Privacy Policy</a>
-      </div>
-			</div>
+				<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 -->
-	<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>
+	<!-- 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

Modified: helix/site-content/1.0.2-docs/auto_exit_maintenance.html
URL: http://svn.apache.org/viewvc/helix/site-content/1.0.2-docs/auto_exit_maintenance.html?rev=1906412&r1=1906411&r2=1906412&view=diff
==============================================================================
--- helix/site-content/1.0.2-docs/auto_exit_maintenance.html (original)
+++ helix/site-content/1.0.2-docs/auto_exit_maintenance.html Thu Jan  5 19:48:20 2023
@@ -1,13 +1,8 @@
 
 <!DOCTYPE html>
-
-
-
-
-
-
 <!--
- Generated by Apache Maven Doxia at 2022-10-19  Rendered using Reflow Maven Skin 2.0.0 (https://olamy.github.io/reflow-maven-skin)
+ 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">
 
@@ -18,84 +13,61 @@
 		<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="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="./js/html5.js"></script>
+			<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">
 
-
-
-
-    
-<!-- 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-auto_exit_maintenance project-102-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">
+					<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>
-					<a class="brand" href="..">Apache Helix</a>
-					<div class="nav-collapse collapse" id="top-nav-collapse">
+					<div class="nav-collapse">
 						<ul class="nav pull-right">
-							<li ><a href="index.html" title="Helix 1.0.2">Helix 1.0.2</a></li>
-							<li class="dropdown">
+							<li class="active"><a href="" title="Helix 1.0.2">Helix 1.0.2 </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 ><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.2.html" title="Release Notes">Release Notes</a></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>
 								</ul>
 							</li>
-							<li class="dropdown">
+							<li class="dropdown active">
 								<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.2" title="Javadocs">Javadocs</a></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>
 								</ul>
 							</li>
-							<li class="dropdown">
+							<li class="dropdown active">
 								<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>
+									<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>
@@ -103,36 +75,30 @@
 				</div>
 			</div>
 		</div>
-
+		
 	<div class="container">
-
+	
 	<!-- Masthead
 	================================================== -->
-
-	<header>
-	<div class="jumbotron subhead">
+	<header class="jumbotron subhead">
 		<div class="row" id="banner">
 			<div class="span12">
 				<div class="pull-left">
-					<a href="../" id="bannerLeft"><img src="../images/helix-logo.jpg" alt='"''"' /></a>
-					<p class="lead">A cluster management framework for partitioned and replicated distributed resources</p>
+					<a href="" id="bannerLeft"><img src="" alt='"''"' /></a>
 				</div>
 				<div class="pull-right">
-					<a href="https://www.apache.org/" id="bannerRight"><img src="../images/feather_small.gif" alt='"''"' /></a>
+					<a href="http://www.apache.org/" id="bannerRight"><img src="" 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><a href="" title="Apache Helix">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.2">Release 1.0.2</a></li>
+				<li><a href="" title="Release 1.0.2">Release 1.0.2 </a></li>
 				<li class="divider">/</li>
 				<li>Auto-exit of Maintenance Mode</li>
-				<li class="publishDate version-date pull-right">Last Published: 2022-10-19</li>
+				<li class="publishDate version-date pull-right">Last Published: 2022-04-15</li>
 			</ul>
 		</div>
 	</header>
@@ -141,260 +107,94 @@
 	<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.
---> 
-<div class="page-header">
- <h1>Auto-exit of Maintenance Mode</h1>
-</div> 
-<section> 
- <h2 id="Introduction">Introduction</h2> 
- <p>Auto-exit of maintenance mode is a feature addition to Helix. It concerns a feature that allows clusters to switch out of maintenance mode automatically to save operational costs and to improve availability.</p> 
-</section> 
-<section> 
- <h2 id="Background">Background</h2> 
- <section> 
-  <h3 id="Maintenance_Mode">Maintenance Mode</h3> 
-  <p>The maintenance mode in Helix refers to a Helix cluster state where the Helix Controller will not trigger any type of rebalance. In short, if a cluster is in maintenance, the Controller will not bootstrap any new partitions. However, this does not mean that there won't be any (upward) state transitions. For example, partitions missing a top-state (e.g. <b>MASTER/LEADER</b>) replica will get a state transition in order to fill in the void for a top-state replica.</p> 
-  <section> 
-   <h4 id="Possible_Scenarios">Possible Scenarios</h4> 
-   <p>There are two possible conditions under which a cluster will go into maintenance mode automatically.</p> 
-   <ol style="list-style-type: decimal"> 
-    <li>There are more offline/disabled instances than ClusterConfig's <b>MAX_OFFLINE_INSTANCES_ALLOWED</b>.</li> 
-    <li>There exist instances that have more partitions than ClusterConfig's <b>MAX_PARTITIONS_PER_INSTANCE</b>.</li> 
-   </ol> 
-   <p>Difficulty in Manually Exiting Maintenance Mode</p> 
-   <p>Although maintenance mode has been designed to prevent a large-scale reshuffling of replicas when there are intermittent, transient Participant connection issues. When in maintenance, no new partitions will be bootstrapped, which will block many native operations such as creation of stores/DBs. Currently, in order to unblock, an operator must manually disable maintenance mode via Helix REST API. Since it's difficult to predict when temporary disconnects will happen, it has been a challenge to address them in a prompt manner.</p> 
-  </section> 
- </section> 
-</section> 
-<section> 
- <h2 id="Problem_Statement">Problem Statement</h2> 
- <p>Currently, once clusters enter maintenance mode automatically, exiting must be done manually. This is an added human effort. We want a feature to automate this to reduce downtime and increase availability.</p> 
-</section> 
-<section> 
- <h2 id="Architecture.2FImplementation">Architecture/Implementation</h2> 
- <section> 
-  <h3 id="Maintenance_Recovery_Threshold">Maintenance Recovery Threshold</h3> 
-  <p>Recall that there are two cases in which a cluster may enter maintenance mode automatically:</p> 
-  <blockquote> 
-   <ol style="list-style-type: decimal"> 
-    <li>There are more offline/disabled instances than ClusterConfig's MAX_OFFLINE_INSTANCES_ALLOWED.</li> 
-    <li>There exist instances that have more partitions than ClusterConfig's MAX_PARTITIONS_PER_INSTANCE.</li> 
-   </ol> 
-  </blockquote> 
-  <p>It is important to note that we are mainly concerned with Case 1. Case 2 is meant to be a sanity check against Helix's CRUSH-ed rebalance algorithm, and this has little to do with the original motivation behind cluster maintenance mode. So, although we will <i>still</i> check against Case 2 when determining whether it is safe to exit maintenance mode, we will only address Case 1 in this section.</p> 
-  <p>With that said, it is not hard to imagine a cluster in production experiencing a flip-flop behavior around the exact value of <b>ClusterConfig's MAX_OFFLINE_INSTANCES_ALLOWED</b> field. Such behavior is undesirable and may defeat the purpose of using this feature. To mitigate it in design is to have a separate, <i>more strict</i> threshold for recovering out of maintenance mode. We therefore propose to add a new field, <b>MAINTENANCE_RECOVERY_THRESHOLD</b>. <b>MAINTENANCE_RECOVERY_THRESHOLD</b> will be defined by the user and hold a more conservative value than <b>MAX_OFFLINE_INSTANCES_ALLOWED</b> to allow for some wiggle room in deciding what value is enough to call a cluster “<i>sufficiently recovered</i>”. Additionally, we will also give users the flexibility to <i>“opt-out”</i> of the auto-exit feature by treating a <b>MAINTENANCE_RECOVERY_THRESHOLD</b> value of -1 as a disable signal.</p> 
-  <p>In short,</p> 
-  <ul> 
-   <li>If NumOfflineDisabledInstances &lt; NUM_OFFLINE_INSTANCES_FOR_AUTO_EXIT, exit maintenance mode</li> 
-   <li>NUM_OFFLINE_INSTANCES_FOR_AUTO_EXIT &lt;= MAX_OFFLINE_INSTANCES_ALLOWED</li> 
-   <li>NUM_OFFLINE_INSTANCES_FOR_AUTO_EXIT &lt; 0 or not set → Opt-out of auto-exiting of maintenance mode</li> 
-  </ul> 
- </section> 
- <section> 
-  <h3 id="Additional_Fields_in_MaintenanceSignal">Additional Fields in MaintenanceSignal</h3> 
-  <p>Currently, Helix stores the maintenance signal in /{CLUSTER_NAME}/CONTROLLER/MAINTENANCE. A sample maintenance signal ZNode will look like the following:</p> 
-  <div class="source"> 
-   <pre><code class="language-json">{
-  "id" : "maintenance",
-  "simpleFields" : {
-    "REASON" : "Offline Instances count 5 greater than allowed count 4. Stop rebalance and put the cluster CLUSTER_TestClusterInMaintenanceModeWhenReachingOfflineInstancesLimit into maintenance mode.",
-    "TRIGGERED_BY" : "CONTROLLER",
-    "TIMESTAMP" : "12312838831***",
-    // The following are sample user-defined fields from the REST call payload //
-    "id" : "hulee",
-    "jira" : "HELIX-123",
-    "cluster" : "testCluster"
-  },
-  "listFields" : {
-  },
-  "mapFields" : {
-  }
-}
-</code></pre> 
-  </div> 
-  <p>A simpleField will be newly added (notice the “<b>TRIGGERED_BY</b>” field) to denote whether the current maintenance signal has been generated automatically by the Controller. There will initially be <b>two</b> possible entries for this field:</p> 
-  <ul> 
-   <li><b>CONTROLLER</b></li> 
-   <li><b>USER</b></li> 
-  </ul> 
-  <p>Also, the TIMESTAMP field will be added so that the value could be retrieved via REST.</p> 
-  <p>In addition, we will allow addition of custom fields in simpleFields. See the example above. Users will be able to add these fields by using the REST endpoints that will be provided when <b>enabling</b> the maintenance mode. Note that when disabling maintenance mode, these fields will no longer be available because disabling maintenance mode will remove the maintenance signal altogether.</p> 
- </section> 
- <section> 
-  <h3 id="Recording_Maintenance_History">Recording Maintenance History</h3> 
-  <p>Currently, Helix maintains the controller history in the /{clusterName}/CONTROLLER/HISTORY ZNode. We plan to add a history for maintenance mode. This way, users will be able to access the history in ZooKeeper directly, or utilize the REST endpoint for viewing. The format will be in a human-readable format like the following (this is how Helix maintains the Controller leader history):</p> 
-  <div class="source"> 
-   <pre><code class="language-java">long currentTime = System.currentTimeMillis();
-DateFormat df = new SimpleDateFormat("yyyy-MM-dd-HH:mm:ss");
-df.setTimeZone(TimeZone.getTimeZone("UTC"));
-String dateTime = df.format(new Date(currentTime));
-</code></pre> 
-  </div> 
-  <p>Note that Helix only records <i>10 most recent</i> changes in the HISTORY ZNode. We will follow a similar protocol for persisting maintenance mode-related history. Note that <b>all changes around maintenance mode will be recorded</b> (both entering and exiting of the mode).</p> 
- </section> 
- <section> 
-  <h3 id="Backward_Compatibility">Backward Compatibility</h3> 
-  <p>Old versions of Helix Controllers will not refer to the newly-added fields, in which case they will simply lack the auto-exit functionality.</p> 
- </section> 
- <section> 
-  <h3 id="Asynchronous_Processing">Asynchronous Processing</h3> 
-  <p>Note that in order for a cluster to exit maintenance mode, the Controller must check against <i>all conditions</i> that are outlined above. That is, it needs to make sure <b>1) the total count of offline/disabled instances is less than the threshold and that 2) there are no instances with more partitions than the threshold</b>. Checking against Condition 2 requires traversing all resources' states, which could be costly in clusters of large scale. From this, we potentially risk adding a significant latency to the pipeline, which is undesirable because it could cause problems regarding availability (for example, longer pipeline runs may exacerbate the rate at which ZooKeeper Event Callbacks accumulate. Helix currently deals with a large number of ZK Event Callbacks by re-booting the Controller, which could nick Helix's as well as applications' availability numbers).</p> 
-  <p>For this reason, we will make the checks happen asynchronously. Additional tweak may be required to ensure that the maintenance signal is cached appropriately through each run of the pipeline to avoid the race condition.</p> 
- </section> 
- <section> 
-  <h3 id="Periodic_Check_on_Cluster_Recovery_Status">Periodic Check on Cluster Recovery Status</h3> 
-  <p>Auto-exit is inherently triggered as part of Helix's rebalance pipeline; that is, if there is no rebalance triggered, there wouldn't be any auto-exits triggered either. In theory, this is a non-issue because whether a cluster goes into or recovers out of maintenance mode is determined by changes around LiveInstances, and a LiveInstance change is an event that triggers Helix's rebalance pipeline.</p> 
-  <p>Regardless, there has been anecdotal reports where such events seemed to have been “swallowed” or “disappeared” - if that is true for any reason (mostly a ZK callback queue issue), one way to mitigate it is to enable periodically-triggered rebalances. Note that this is actually a feature <i>already supported</i> by Helix.</p> 
- </section> 
-</section> 
-<section> 
- <h2 id="How_to_Use_the_Auto-Exit_Feature">How to Use the Auto-Exit Feature</h2> 
- <section> 
-  <h3 id="Why_Use_Auto-Exit">Why Use Auto-Exit</h3> 
-  <p>Helix is used to manage resources in distributed clusters; therefore, it inevitably gets to have hundreds of instances. With so many clusters and traffic to the ZooKeeper, Helix's metadata store, there are cases in which some Participants in the cluster experience transient connection failure, which may cause Helix to respond to each little change that happens to the cluster. For users of stateful systems, this may be undesirable, so they opt to set a config for entering maintenance mode automatically. Maintenance mode is a temporary mode that the cluster can enter in order to ensure that there are no bootstrapping state transitions on instances.</p> 
-  <p>However, no bootstrapping state transitions could mean that some operations such as addition of resources would be halted, which causes periods of unavailability. It was the cluster operator's responsibility to determine whether the given cluster has sufficiently recovered enough to exit maintenance mode. The auto-exit feature removes such overhead.</p> 
- </section> 
- <section> 
-  <h3 id="Guide">Guide</h3> 
-  <p>First, we encourage all users of this feature to understand Helix's workflow below:</p> 
-  <p><img src="./images/auto-exit-maintenance.jpg" alt="Intro"></p> 
-  <p>In order to use this feature, you'd need to set the following config parameters in your cluster's ClusterConfig.</p> 
-  <section> 
-   <h4 id="Auto-enter_maintenance_mode">Auto-enter maintenance mode</h4> 
-   <p><b>MAX_OFFLINE_INSTANCES_ALLOWED</b>: the number of offline and disabled instances allowed before the cluster automatically enters maintenance mode.</p> 
-   <p><b>MAX_PARTITIONS_PER_INSTANCE</b>: the number of partitions on any given instance, where, if any instance in the cluster happens to have more partitions than this number, the cluster automatically enters maintenance mode</p> 
-  </section> 
-  <section> 
-   <h4 id="Auto-exit_maintenance_mode">Auto-exit maintenance mode</h4> 
-   <p><b>NUM_OFFLINE_INSTANCES_FOR_AUTO_EXIT</b>: set this value to allow your cluster to auto-exit when the number of offline and disabled instances are at this value. Note that this value must be less than MAX_OFFLINE_INSTANCES_ALLOWED (Read the design above on why). Note that the appropriate value for this is dependent on the characteristics of the cluster. In general, start with 1, meaning that the cluster will only auto-exit maintenance mode when it is down to 1 offline or disable instance, and increase the value as you increase tolerance.</p> 
-   <p>Note that the cluster will auto-exit only if it has <i>automatically</i> entered maintenance mode previously.</p> 
-  </section> 
- </section> 
-</section> 
-<section> 
- <h2 id="FAQ">FAQ</h2> 
- <section> 
-  <section> 
-   <h4 id="How_is_this_related_to_DelayedAutoRebalancer.3F">How is this related to <b>DelayedAutoRebalancer</b>?</h4> 
-   <ul> 
-    <li>If you are using DelayedAutoRebalancer for your clusters, this auto-exit feature would still work as expected. Fundamentally, DelayedAutoRebalancer and maintenance mode are mutually independent. That is, under maintenance mode, Helix uses a different rebalancing strategy. Once the cluster auto-exits maintenance mode, it will go back to whichever rebalancing mode it was on previously.</li> 
-    <li>Delayed Partition Movement is a feature in Helix's FULL-AUTO rebalancer.</li> 
-    <li>The rebalance delay will work at the instance level and entering/exiting maintenance mode will not affect the time at which the delay-counting started.</li> 
-   </ul> 
-  </section> 
-  <section> 
-   <h4 id="How_do_I_know_what_the_appropriate_value_is_for_MAINTENANCE_RECOVERY_THRESHOLD.3F">How do I know what the appropriate value is for <b><b>MAINTENANCE_RECOVERY_THRESHOLD</b></b>?</h4> 
-   <ul> 
-    <li>As a framework, we cannot provide the right value for this threshold. It should depend on the nature of the application and the risk tolerance thereof. Familiarize yourself with the rules outlined above and start with a low value (for example, 0) and increase your tolerance.</li> 
-   </ul> 
-  </section> 
- </section> 
-</section>
+$bodyWithHeader
 			</div>
 		</div>
 	</div>
 	</div>
 
 	</div><!-- /container -->
-
+	
 	<!-- Footer
 	================================================== -->
 	<footer class="well">
 		<div class="container">
 			<div class="row">
-				<div class="span3 bottom-nav">
+				<div class="span9 bottom-nav">
 					<ul class="nav nav-list">
 						<li class="nav-header">Get Helix</li>
-						<li >
-							<a href="download.html" title="Download">Download</a>
+						<li class="active">
+							<a href="#" title="Download">Download </a>
 						</li>
-						<li >
-							<a href="Building.html" title="Building">Building</a>
+						<li class="active">
+							<a href="#" title="Building">Building </a>
 						</li>
-						<li >
-							<a href="releasenotes/release-1.0.2.html" title="Release Notes">Release Notes</a>
+						<li class="active">
+							<a href="#" 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 class="active">
+							<a href="#" title="Quick Start">Quick Start </a>
 						</li>
-						<li >
-							<a href="Tutorial.html" title="Tutorial">Tutorial</a>
+						<li class="active">
+							<a href="#" title="Tutorial">Tutorial </a>
 						</li>
-						<li >
-							<a href="../javadocs/1.0.2" title="Javadocs">Javadocs</a>
+						<li class="active">
+							<a href="#" 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 class="active">
+							<a href="#" 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 class="active">
+							<a href="#" 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 class="active">
+							<a href="#" 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 class="active">
+							<a href="#" 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 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="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.2-docs/privacy-policy.html">Privacy Policy</a>
-      </div>
-			</div>
+				<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 -->
-	<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>
+	<!-- 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

Modified: helix/site-content/1.0.2-docs/css/lightbox.css
URL: http://svn.apache.org/viewvc/helix/site-content/1.0.2-docs/css/lightbox.css?rev=1906412&r1=1906411&r2=1906412&view=diff
==============================================================================
--- helix/site-content/1.0.2-docs/css/lightbox.css (original)
+++ helix/site-content/1.0.2-docs/css/lightbox.css Thu Jan  5 19:48:20 2023
@@ -1,45 +1,37 @@
-/* Preload images */
-body:after {
-  content: url(../img/close.png) url(../img/loading.gif) url(../img/prev.png) url(../img/next.png);
-  display: none;
-}
-
-.lightboxOverlay {
+/* line 6, ../sass/lightbox.sass */
+#lightboxOverlay {
   position: absolute;
   top: 0;
   left: 0;
   z-index: 9999;
   background-color: black;
-  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80);
-  opacity: 0.8;
+  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=85);
+  opacity: 0.85;
   display: none;
 }
 
-.lightbox {
+/* line 15, ../sass/lightbox.sass */
+#lightbox {
   position: absolute;
   left: 0;
   width: 100%;
   z-index: 10000;
   text-align: center;
   line-height: 0;
+  font-family: "lucida grande", tahoma, verdana, arial, sans-serif;
   font-weight: normal;
 }
-
-.lightbox .lb-image {
-  display: block;
+/* line 24, ../sass/lightbox.sass */
+#lightbox img {
+  width: auto;
   height: auto;
-  max-width: inherit;
-  -webkit-border-radius: 3px;
-  -moz-border-radius: 3px;
-  -ms-border-radius: 3px;
-  -o-border-radius: 3px;
-  border-radius: 3px;
 }
-
-.lightbox a img {
+/* line 27, ../sass/lightbox.sass */
+#lightbox a img {
   border: none;
 }
 
+/* line 30, ../sass/lightbox.sass */
 .lb-outerContainer {
   position: relative;
   background-color: white;
@@ -53,35 +45,30 @@ body:after {
   -o-border-radius: 4px;
   border-radius: 4px;
 }
-
+/* line 38, ../../../../.rvm/gems/ruby-1.9.2-p290/gems/compass-0.12.1/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss */
 .lb-outerContainer:after {
   content: "";
   display: table;
   clear: both;
 }
 
+/* line 39, ../sass/lightbox.sass */
 .lb-container {
-  padding: 4px;
+  padding: 10px;
 }
 
+/* line 42, ../sass/lightbox.sass */
 .lb-loader {
   position: absolute;
-  top: 43%;
-  left: 0;
+  top: 40%;
+  left: 0%;
   height: 25%;
   width: 100%;
   text-align: center;
   line-height: 0;
 }
 
-.lb-cancel {
-  display: block;
-  width: 32px;
-  height: 32px;
-  margin: 0 auto;
-  background: url(../img/loading.gif) no-repeat;
-}
-
+/* line 51, ../sass/lightbox.sass */
 .lb-nav {
   position: absolute;
   top: 0;
@@ -91,57 +78,48 @@ body:after {
   z-index: 10;
 }
 
+/* line 59, ../sass/lightbox.sass */
 .lb-container > .nav {
   left: 0;
 }
 
+/* line 62, ../sass/lightbox.sass */
 .lb-nav a {
   outline: none;
-  background-image: url('data:image/gif;base64,R0lGODlhAQABAPAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==');
 }
 
+/* line 65, ../sass/lightbox.sass */
 .lb-prev, .lb-next {
+  width: 49%;
   height: 100%;
-  cursor: pointer;
+  background-image: url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");
+  /* Trick IE into showing hover */
   display: block;
 }
 
-.lb-nav a.lb-prev {
-  width: 34%;
+/* line 72, ../sass/lightbox.sass */
+.lb-prev {
   left: 0;
   float: left;
-  background: url(../img/prev.png) left 48% no-repeat;
-  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
-  opacity: 0;
-  -webkit-transition: opacity 0.6s;
-  -moz-transition: opacity 0.6s;
-  -o-transition: opacity 0.6s;
-  transition: opacity 0.6s;
-}
-
-.lb-nav a.lb-prev:hover {
-  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
-  opacity: 1;
 }
 
-.lb-nav a.lb-next {
-  width: 64%;
+/* line 76, ../sass/lightbox.sass */
+.lb-next {
   right: 0;
   float: right;
-  background: url(../img/next.png) right 48% no-repeat;
-  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
-  opacity: 0;
-  -webkit-transition: opacity 0.6s;
-  -moz-transition: opacity 0.6s;
-  -o-transition: opacity 0.6s;
-  transition: opacity 0.6s;
 }
 
-.lb-nav a.lb-next:hover {
-  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
-  opacity: 1;
+/* line 81, ../sass/lightbox.sass */
+.lb-prev:hover {
+  background: url(../images/prev.png) left 48% no-repeat;
+}
+
+/* line 85, ../sass/lightbox.sass */
+.lb-next:hover {
+  background: url(../images/next.png) right 48% no-repeat;
 }
 
+/* line 88, ../sass/lightbox.sass */
 .lb-dataContainer {
   margin: 0 auto;
   padding-top: 5px;
@@ -149,62 +127,55 @@ body:after {
   width: 100%;
   -moz-border-radius-bottomleft: 4px;
   -webkit-border-bottom-left-radius: 4px;
+  -ms-border-bottom-left-radius: 4px;
+  -o-border-bottom-left-radius: 4px;
   border-bottom-left-radius: 4px;
   -moz-border-radius-bottomright: 4px;
   -webkit-border-bottom-right-radius: 4px;
+  -ms-border-bottom-right-radius: 4px;
+  -o-border-bottom-right-radius: 4px;
   border-bottom-right-radius: 4px;
 }
-
+/* line 38, ../../../../.rvm/gems/ruby-1.9.2-p290/gems/compass-0.12.1/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss */
 .lb-dataContainer:after {
   content: "";
   display: table;
   clear: both;
 }
 
+/* line 95, ../sass/lightbox.sass */
 .lb-data {
-  padding: 0 4px;
-  color: #ccc;
+  padding: 0 10px;
+  color: #bbbbbb;
 }
-
+/* line 98, ../sass/lightbox.sass */
 .lb-data .lb-details {
   width: 85%;
   float: left;
   text-align: left;
   line-height: 1.1em;
 }
-
+/* line 103, ../sass/lightbox.sass */
 .lb-data .lb-caption {
   font-size: 13px;
   font-weight: bold;
   line-height: 1em;
 }
-
+/* line 107, ../sass/lightbox.sass */
 .lb-data .lb-number {
   display: block;
   clear: left;
   padding-bottom: 1em;
-  font-size: 12px;
-  color: #999999;
+  font-size: 11px;
 }
-
+/* line 112, ../sass/lightbox.sass */
 .lb-data .lb-close {
-  display: block;
+  width: 35px;
   float: right;
-  width: 30px;
-  height: 30px;
-  background: url(../img/close.png) top right no-repeat;
-  text-align: right;
+  padding-bottom: 0.7em;
   outline: none;
-  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=70);
-  opacity: 0.7;
-  -webkit-transition: opacity 0.2s;
-  -moz-transition: opacity 0.2s;
-  -o-transition: opacity 0.2s;
-  transition: opacity 0.2s;
 }
-
+/* line 117, ../sass/lightbox.sass */
 .lb-data .lb-close:hover {
   cursor: pointer;
-  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
-  opacity: 1;
 }
\ No newline at end of file

Modified: helix/site-content/1.0.2-docs/css/reflow-skin.css
URL: http://svn.apache.org/viewvc/helix/site-content/1.0.2-docs/css/reflow-skin.css?rev=1906412&r1=1906411&r2=1906412&view=diff
==============================================================================
--- helix/site-content/1.0.2-docs/css/reflow-skin.css (original)
+++ helix/site-content/1.0.2-docs/css/reflow-skin.css Thu Jan  5 19:48:20 2023
@@ -1,6 +1,6 @@
 /* Jumps to in-page links (e.g. page.html#foo) do not honor fixed navbar.
    Use pseudo element to move them down.
-   Taken from https://nicolasgallagher.com/jump-links-and-viewport-positioning/demo/#method-B
+   Taken from http://nicolasgallagher.com/jump-links-and-viewport-positioning/demo/#method-B
  */
 h1[id]:before,
 h2[id]:before,
@@ -52,20 +52,25 @@ a[name]:before {
     width: 1170px;
   }
 }
-
+@media (min-width: 768px) and (max-width: 979px) {
+  .navbar.affix .container {
+    width: 724px;
+  }
+}
+@media (max-width: 767px) {
+  .navbar.affix {
+    margin-right: -20px;
+    margin-left: -20px;
+  }
+}
 @media (max-width: 979px) {
   .navbar.affix {
     position: static;
-  }
-
-  /* Give a positive z-index to ToC bar, otherwise the pseudo elements before may overlap and
-     make the button unclickable. */
-  #toc-bar {
-    position: relative;
-    z-index:1020;
     margin-bottom: 20px;
   }
-
+  .navbar.affix .navbar-inner {
+    padding: 5px;
+  }
 }
 
 /* Fix for header links - do not color/underline them */

Modified: helix/site-content/1.0.2-docs/dependencies.html
URL: http://svn.apache.org/viewvc/helix/site-content/1.0.2-docs/dependencies.html?rev=1906412&r1=1906411&r2=1906412&view=diff
==============================================================================
--- helix/site-content/1.0.2-docs/dependencies.html (original)
+++ helix/site-content/1.0.2-docs/dependencies.html Thu Jan  5 19:48:20 2023
@@ -7,7 +7,7 @@
 
 
 <!--
- Generated by Apache Maven Doxia at 2022-10-19  Rendered using Reflow Maven Skin 2.0.0 (https://olamy.github.io/reflow-maven-skin)
+ 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">
 
@@ -132,7 +132,7 @@
 				<li><a href="./" title="Release 1.0.2">Release 1.0.2</a></li>
 				<li class="divider">/</li>
 				<li>Project Dependencies</li>
-				<li class="publishDate version-date pull-right">Last Published: 2022-10-19</li>
+				<li class="publishDate version-date pull-right">Last Published: 2022-05-12</li>
 			</ul>
 		</div>
 	</header>
@@ -500,14 +500,14 @@
     <td align="left"><a class="externalLink" href="https://maven.restlet.talend.com">https://maven.restlet.talend.com</a></td> 
     <td align="center">Yes</td> 
     <td align="center">No</td> 
-    <td align="center">No</td> 
+    <td align="center">Yes</td> 
    </tr> 
    <tr class="b"> 
     <td align="left">sonatype-nexus-snapshots</td> 
     <td align="left"><a class="externalLink" href="http://oss.sonatype.org/content/repositories/snapshots">http://oss.sonatype.org/content/repositories/snapshots</a></td> 
     <td align="center">No</td> 
     <td align="center">Yes</td> 
-    <td align="center">Yes</td> 
+    <td align="center">No</td> 
    </tr> 
    <tr class="a"> 
     <td align="left">apache.snapshots</td> 
@@ -524,7 +524,7 @@
    <tr class="a"> 
     <th>Artifact</th> 
     <th>central</th> 
-    <th>restlet.talend.com</th> 
+    <th>sonatype-nexus-snapshots</th> 
     <th>apache.snapshots</th> 
    </tr> 
    <tr class="b"> 
@@ -596,7 +596,7 @@
    <tr class="b"> 
     <th>Total</th> 
     <th>central</th> 
-    <th>restlet.talend.com</th> 
+    <th>sonatype-nexus-snapshots</th> 
     <th>apache.snapshots</th> 
    </tr> 
    <tr class="a"> 

Modified: helix/site-content/1.0.2-docs/dependency-info.html
URL: http://svn.apache.org/viewvc/helix/site-content/1.0.2-docs/dependency-info.html?rev=1906412&r1=1906411&r2=1906412&view=diff
==============================================================================
--- helix/site-content/1.0.2-docs/dependency-info.html (original)
+++ helix/site-content/1.0.2-docs/dependency-info.html Thu Jan  5 19:48:20 2023
@@ -7,7 +7,7 @@
 
 
 <!--
- Generated by Apache Maven Doxia at 2022-10-19  Rendered using Reflow Maven Skin 2.0.0 (https://olamy.github.io/reflow-maven-skin)
+ 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">
 
@@ -132,7 +132,7 @@
 				<li><a href="./" title="Release 1.0.2">Release 1.0.2</a></li>
 				<li class="divider">/</li>
 				<li>Dependency Information</li>
-				<li class="publishDate version-date pull-right">Last Published: 2022-10-19</li>
+				<li class="publishDate version-date pull-right">Last Published: 2022-05-12</li>
 			</ul>
 		</div>
 	</header>

Modified: helix/site-content/1.0.2-docs/dependency-management.html
URL: http://svn.apache.org/viewvc/helix/site-content/1.0.2-docs/dependency-management.html?rev=1906412&r1=1906411&r2=1906412&view=diff
==============================================================================
--- helix/site-content/1.0.2-docs/dependency-management.html (original)
+++ helix/site-content/1.0.2-docs/dependency-management.html Thu Jan  5 19:48:20 2023
@@ -7,7 +7,7 @@
 
 
 <!--
- Generated by Apache Maven Doxia at 2022-10-19  Rendered using Reflow Maven Skin 2.0.0 (https://olamy.github.io/reflow-maven-skin)
+ 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">
 
@@ -132,7 +132,7 @@
 				<li><a href="./" title="Release 1.0.2">Release 1.0.2</a></li>
 				<li class="divider">/</li>
 				<li>Project Dependency Management</li>
-				<li class="publishDate version-date pull-right">Last Published: 2022-10-19</li>
+				<li class="publishDate version-date pull-right">Last Published: 2022-05-12</li>
 			</ul>
 		</div>
 	</header>
@@ -159,17 +159,17 @@
     </tr> 
     <tr class="b"> 
      <td align="left">org.apache.helix</td> 
-     <td><a class="externalLink" href="http://helix.apache.org/helix-core">helix-core</a></td> 
+     <td>helix-core</td> 
      <td>1.0.5-SNAPSHOT</td> 
      <td>jar</td> 
-     <td><a class="externalLink" href="https://www.apache.org/licenses/LICENSE-2.0.txt">Apache License, Version 2.0</a></td> 
+     <td>-</td> 
     </tr> 
     <tr class="a"> 
      <td align="left">org.apache.helix</td> 
-     <td><a class="externalLink" href="http://helix.apache.org/helix-core">helix-core</a></td> 
+     <td>helix-core</td> 
      <td>1.0.5-SNAPSHOT</td> 
      <td>test-jar</td> 
-     <td><a class="externalLink" href="https://www.apache.org/licenses/LICENSE-2.0.txt">Apache License, Version 2.0</a></td> 
+     <td>-</td> 
     </tr> 
     <tr class="b"> 
      <td align="left">org.apache.logging.log4j</td>