Modified: helix/site-content/1.0.2-docs/Metrics.html
URL: 
http://svn.apache.org/viewvc/helix/site-content/1.0.2-docs/Metrics.html?rev=1909461&r1=1909460&r2=1909461&view=diff
==============================================================================
--- helix/site-content/1.0.2-docs/Metrics.html (original)
+++ helix/site-content/1.0.2-docs/Metrics.html Thu Apr 27 23:08:36 2023
@@ -1,8 +1,13 @@
 
 <!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)
+ Generated by Apache Maven Doxia at 2022-10-19  Rendered using Reflow Maven 
Skin 2.0.0 (https://olamy.github.io/reflow-maven-skin)
 -->
 <html  xml:lang="en" lang="en">
 
@@ -13,61 +18,84 @@
                <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/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="http://html5shim.googlecode.com/svn/trunk/html5.js";></script>
+                       <script src="./js/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-metrics 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=".nav-collapse">
+                                       <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>
-                                       <div class="nav-collapse">
+                                       <a class="brand" href="..">Apache 
Helix</a>
+                                       <div class="nav-collapse collapse" 
id="top-nav-collapse">
                                                <ul class="nav pull-right">
-                                                       <li class="active"><a 
href="" title="Helix 1.0.2">Helix 1.0.2 </a></li>
-                                                       <li class="dropdown 
active">
+                                                       <li ><a 
href="index.html" title="Helix 1.0.2">Helix 1.0.2</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 
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 ><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>
                                                                </ul>
                                                        </li>
-                                                       <li class="dropdown 
active">
+                                                       <li class="dropdown">
                                                                <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>
+                                                                       <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>
                                                                </ul>
                                                        </li>
-                                                       <li class="dropdown 
active">
+                                                       <li class="dropdown">
                                                                <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>
+                                                                       <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>
@@ -75,30 +103,36 @@
                                </div>
                        </div>
                </div>
-               
+
        <div class="container">
-       
+
        <!-- Masthead
        ================================================== -->
-       <header class="jumbotron subhead">
+
+       <header>
+       <div class="jumbotron subhead">
                <div class="row" id="banner">
                        <div class="span12">
                                <div class="pull-left">
-                                       <a href="" id="bannerLeft"><img src="" 
alt='"''"' /></a>
+                                       <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>
                                </div>
                                <div class="pull-right">
-                                       <a href="http://www.apache.org/"; 
id="bannerRight"><img src="" alt='"''"' /></a>
+                                       <a href="https://www.apache.org/"; 
id="bannerRight"><img src="../images/feather_small.gif" alt='"''"' /></a>
                                </div>
                        </div>
                </div>
+       </div>
                <div>
                        <ul class="breadcrumb">
-                               <li><a href="" title="Apache Helix">Apache 
Helix </a></li>
+                               <li><a href="http://helix.apache.org/"; 
title="Apache Helix" class="externalLink">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="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 class="divider">/</li>
                                <li>Helix Monitoring Metrics</li>
-                               <li class="publishDate version-date 
pull-right">Last Published: 2022-04-15</li>
+                               <li class="publishDate version-date 
pull-right">Last Published: 2022-10-19</li>
                        </ul>
                </div>
        </header>
@@ -107,94 +141,717 @@
        <div class="row">
                <div class="span12">
                        <div class="body-content">
-$bodyWithHeader
+<!--
+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_Monitoring_Metrics">Helix Monitoring Metrics</h2>
+ </div> 
+ <p>Helix monitoring metrics are exposed as the MBeans attributes. The MBeans 
are registered based on instance role.</p> 
+ <p>The easiest way to see the available metrics is using jconsole and point 
it at a running Helix instance. This will allow browsing all metrics with 
JMX.</p> 
+ <p>Note that if not mentioned in the attribute name, all attributes are gauge 
by default.</p> 
+ <section> 
+  <h3 id="Metrics_on_Both_Controller_and_Participant">Metrics on Both 
Controller and Participant</h3> 
+  <section> 
+   <h4 id="MBean_ZkClientMonitor">MBean ZkClientMonitor</h4> 
+   <p>ObjectName: 
“HelixZkClient:type=[client-type],key=[specified-client-key],PATH=[zk-client-listening-path]”</p>
 
+   <table border="0" class="bodyTable table table-striped table-hover"> 
+    <thead> 
+     <tr class="a"> 
+      <th>Attributes</th> 
+      <th>Description</th> 
+     </tr> 
+    </thead> 
+    <tbody> 
+     <tr class="b"> 
+      <td align="left">ReadCounter</td> 
+      <td>Zk Read counter. Which could be used to identify unusually high/low 
ZK traffic</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">WriteCounter</td> 
+      <td>Same as above</td> 
+     </tr> 
+     <tr class="b"> 
+      <td align="left">ReadBytesCounter</td> 
+      <td>Same as above</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">WriteBytesCounter</td> 
+      <td>Same as above</td> 
+     </tr> 
+     <tr class="b"> 
+      <td align="left">StateChangeEventCounter</td> 
+      <td>Zk connection state change counter. Which could be used to identify 
ZkClient unstable connection</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">DataChangeEventCounter</td> 
+      <td>Zk node data change counter. which could be used to identify unusual 
high/low ZK events occurrence or slow event processing</td> 
+     </tr> 
+     <tr class="b"> 
+      <td align="left">PendingCallbackGauge</td> 
+      <td>Number of the pending Zk callbacks.</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">TotalCallbackCounter</td> 
+      <td>Number of total received Zk callbacks.</td> 
+     </tr> 
+     <tr class="b"> 
+      <td align="left">TotalCallbackHandledCounter</td> 
+      <td>Number of total handled Zk callbacks.</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">ReadTotalLatencyCounter</td> 
+      <td>Total read latency in ms.</td> 
+     </tr> 
+     <tr class="b"> 
+      <td align="left">WriteTotalLatencyCounter</td> 
+      <td>Total write latency in ms.</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">WriteFailureCounter</td> 
+      <td>Total write failures.</td> 
+     </tr> 
+     <tr class="b"> 
+      <td align="left">ReadFailureCounter</td> 
+      <td>Total read failures.</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">ReadLatencyGauge</td> 
+      <td>Histogram (with all statistic data) of read latency.</td> 
+     </tr> 
+     <tr class="b"> 
+      <td align="left">WriteLatencyGauge</td> 
+      <td>Histogram (with all statistic data) of write latency.</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">ReadBytesGauge</td> 
+      <td>Histogram (with all statistic data) of read bytes of single Zk 
access.</td> 
+     </tr> 
+     <tr class="b"> 
+      <td align="left">WriteBytesGauge</td> 
+      <td>Histogram (with all statistic data) of write bytes of single Zk 
access.</td> 
+     </tr> 
+    </tbody> 
+   </table> 
+  </section> 
+  <section> 
+   <h4 id="MBean_HelixCallbackMonitor">MBean HelixCallbackMonitor</h4> 
+   <p>ObjectName: 
“HelixCallback:Type=[callback-type],Key=[cluster-name].[instance-name],Change=[callback-change-type]”</p>
 
+   <table border="0" class="bodyTable table table-striped table-hover"> 
+    <thead> 
+     <tr class="a"> 
+      <th>Attributes</th> 
+      <th>Description</th> 
+     </tr> 
+    </thead> 
+    <tbody> 
+     <tr class="b"> 
+      <td align="left">Counter</td> 
+      <td>Zk Callback counter for each Helix callback type.</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">UnbatchedCounter</td> 
+      <td>Unbatched Zk Callback counter for each helix callback type.</td> 
+     </tr> 
+     <tr class="b"> 
+      <td align="left">LatencyCounter</td> 
+      <td>Callback handler latency counter in ms.</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">LatencyGauge</td> 
+      <td>Histogram (with all statistic data) of Callback handler 
latency.</td> 
+     </tr> 
+    </tbody> 
+   </table> 
+  </section> 
+  <section> 
+   <h4 id="MBean_MessageQueueMonitor">MBean MessageQueueMonitor</h4> 
+   <p>ObjectName: 
“ClusterStatus:cluster=[cluster-name],messageQueue=[instance-name]”</p> 
+   <table border="0" class="bodyTable table table-striped table-hover"> 
+    <thead> 
+     <tr class="a"> 
+      <th>Attributes</th> 
+      <th>Description</th> 
+     </tr> 
+    </thead> 
+    <tbody> 
+     <tr class="b"> 
+      <td align="left">MessageQueueBacklog</td> 
+      <td>Get the message queue size</td> 
+     </tr> 
+    </tbody> 
+   </table> 
+  </section> 
+ </section> 
+ <section> 
+  <h3 id="Metrics_on_Controller_only">Metrics on Controller only</h3> 
+  <section> 
+   <h4 id="MBean_ClusterStatusMonitor">MBean ClusterStatusMonitor</h4> 
+   <p>ObjectName: “ClusterStatus:cluster=[cluster-name]”</p> 
+   <table border="0" class="bodyTable table table-striped table-hover"> 
+    <thead> 
+     <tr class="a"> 
+      <th>Attributes</th> 
+      <th>Description</th> 
+     </tr> 
+    </thead> 
+    <tbody> 
+     <tr class="b"> 
+      <td align="left">DisabledInstancesGauge</td> 
+      <td>Current number of disabled instances</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">DisabledPartitionsGauge</td> 
+      <td>Current number of disabled partitions number</td> 
+     </tr> 
+     <tr class="b"> 
+      <td align="left">DownInstanceGauge</td> 
+      <td>Current down instances number</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">InstanceMessageQueueBacklog</td> 
+      <td>The sum of all message queue sizes for instances in this 
cluster</td> 
+     </tr> 
+     <tr class="b"> 
+      <td align="left">InstancesGauge</td> 
+      <td>Current live instances number</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">MaxMessageQueueSizeGauge</td> 
+      <td>The maximum message queue size across all instances including 
controller</td> 
+     </tr> 
+     <tr class="b"> 
+      <td align="left">RebalanceFailureGauge</td> 
+      <td>None 0 if previous rebalance failed unexpectedly. The Gauge will be 
set every time rebalance is done.</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">RebalanceFailureCounter</td> 
+      <td>The number of failures during rebalance pipeline.</td> 
+     </tr> 
+     <tr class="b"> 
+      <td align="left">Enabled</td> 
+      <td>1 if cluster is enabled, otherwise 0</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">Maintenance</td> 
+      <td>1 if cluster is in maintenance mode, otherwise 0</td> 
+     </tr> 
+     <tr class="b"> 
+      <td align="left">Paused</td> 
+      <td>1 if cluster is paused, otherwise 0</td> 
+     </tr> 
+    </tbody> 
+   </table> 
+  </section> 
+  <section> 
+   <h4 id="MBean_ClusterEventMonitor">MBean ClusterEventMonitor</h4> 
+   <p>ObjectName: 
“ClusterStatus:cluster=[cluster-name],eventName=ClusterEvent,phaseName=[event-handling-phase]”</p>
 
+   <table border="0" class="bodyTable table table-striped table-hover"> 
+    <thead> 
+     <tr class="a"> 
+      <th>Attributes</th> 
+      <th>Description</th> 
+     </tr> 
+    </thead> 
+    <tbody> 
+     <tr class="b"> 
+      <td align="left">TotalDurationCounter</td> 
+      <td>Total event process duration for each stage.</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">MaxSingleDurationGauge</td> 
+      <td>Max event process duration for each stage within the recent 
hour.</td> 
+     </tr> 
+     <tr class="b"> 
+      <td align="left">EventCounter</td> 
+      <td>The count of processed event in each stage.</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">DurationGauge</td> 
+      <td>Histogram (with all statistic data) of event process duration for 
each stage.</td> 
+     </tr> 
+    </tbody> 
+   </table> 
+  </section> 
+  <section> 
+   <h4 id="MBean_InstanceMonitor">MBean InstanceMonitor</h4> 
+   <p>ObjectName: 
“ClusterStatus:cluster=[cluster-name],instanceName=[instance-name]”</p> 
+   <table border="0" class="bodyTable table table-striped table-hover"> 
+    <thead> 
+     <tr class="a"> 
+      <th>Attributes</th> 
+      <th>Description</th> 
+     </tr> 
+    </thead> 
+    <tbody> 
+     <tr class="b"> 
+      <td align="left">Online</td> 
+      <td>This instance is Online (1) or Offline (0)</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">Enabled</td> 
+      <td>This instance is Enabled (1) or Disabled (0)</td> 
+     </tr> 
+     <tr class="b"> 
+      <td align="left">TotalMessageReceived</td> 
+      <td>Number of messages sent to this instance by controller</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">DisabledPartitions</td> 
+      <td>Get the total disabled partitions number for this instance</td> 
+     </tr> 
+    </tbody> 
+   </table> 
+  </section> 
+  <section> 
+   <h4 id="MBean_ResourceMonitor">MBean ResourceMonitor</h4> 
+   <p>ObjectName: 
“ClusterStatus:cluster=[cluster-name],resourceName=[resource-name]”</p> 
+   <table border="0" class="bodyTable table table-striped table-hover"> 
+    <thead> 
+     <tr class="a"> 
+      <th>Attributes</th> 
+      <th>Description</th> 
+     </tr> 
+    </thead> 
+    <tbody> 
+     <tr class="b"> 
+      <td align="left">PartitionGauge</td> 
+      <td>Get number of partitions of the resource in best possible ideal 
state for this resource</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">ErrorPartitionGauge</td> 
+      <td>Get the number of current partitions in ERORR state for this 
resource</td> 
+     </tr> 
+     <tr class="b"> 
+      <td align="left">DifferenceWithIdealStateGauge</td> 
+      <td>Get the number of how many replicas' current state are different 
from ideal state for this resource</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">MissingTopStatePartitionGauge</td> 
+      <td>Get the number of partitions do not have top state for this 
resource</td> 
+     </tr> 
+     <tr class="b"> 
+      <td align="left">ExternalViewPartitionGauge</td> 
+      <td>Get number of partitions in ExternalView for this resource</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">TotalMessageReceived</td> 
+      <td>Get number of messages sent to this resource by controller</td> 
+     </tr> 
+     <tr class="b"> 
+      <td align="left">LoadRebalanceThrottledPartitionGauge</td> 
+      <td>Get number of partitions that need load rebalance but were 
throttled.</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">RecoveryRebalanceThrottledPartitionGauge</td> 
+      <td>Get number of partitions that need recovery rebalance but were 
throttled.</td> 
+     </tr> 
+     <tr class="b"> 
+      <td align="left">PendingLoadRebalancePartitionGauge</td> 
+      <td>Get number of partitions that have pending load rebalance 
requests.</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">PendingRecoveryRebalancePartitionGauge</td> 
+      <td>Get number of partitions that have pending recovery rebalance 
requests.</td> 
+     </tr> 
+     <tr class="b"> 
+      <td align="left">MissingReplicaPartitionGauge</td> 
+      <td>Get number of partitions that have replica number smaller than 
expected.</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">MissingMinActiveReplicaPartitionGauge</td> 
+      <td>Get number of partitions that have replica number smaller than the 
minimum requirement.</td> 
+     </tr> 
+     <tr class="b"> 
+      <td align="left">MaxSinglePartitionTopStateHandoffDurationGauge</td> 
+      <td>Get the max duration recorded when the top state is missing in any 
single partition.</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">FailedTopStateHandoffCounter</td> 
+      <td>Get the number of total top state transition failure.</td> 
+     </tr> 
+     <tr class="b"> 
+      <td align="left">SucceededTopStateHandoffCounter</td> 
+      <td>Get the number of total top state transition done successfully.</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">SuccessfulTopStateHandoffDurationCounter</td> 
+      <td>Get the total duration of all top state transitions.</td> 
+     </tr> 
+     <tr class="b"> 
+      <td align="left">PartitionTopStateHandoffDurationGauge</td> 
+      <td>Histogram (with all statistic data) of top state transition 
duration.</td> 
+     </tr> 
+    </tbody> 
+   </table> 
+  </section> 
+  <section> 
+   <h4 id="MBean_PerInstanceResourceMonitor">MBean 
PerInstanceResourceMonitor</h4> 
+   <p>ObjectName: 
“ClusterStatus:cluster=[cluster-name],instanceName=[instance-name],resourceName=[resource-name]”</p>
 
+   <table border="0" class="bodyTable table table-striped table-hover"> 
+    <thead> 
+     <tr class="a"> 
+      <th>Attributes</th> 
+      <th>Description</th> 
+     </tr> 
+    </thead> 
+    <tbody> 
+     <tr class="b"> 
+      <td align="left">PartitionGauge</td> 
+      <td>Get number of partitions of the resource in best possible ideal 
state for this resource on specific instance</td> 
+     </tr> 
+    </tbody> 
+   </table> 
+  </section> 
+  <section> 
+   <h4 id="MBean_JobMonitor">MBean JobMonitor</h4> 
+   <p>ObjectName: 
“ClusterStatus:cluster=[cluster-name],jobType=[job-type]”</p> 
+   <table border="0" class="bodyTable table table-striped table-hover"> 
+    <thead> 
+     <tr class="a"> 
+      <th>Attributes</th> 
+      <th>Description</th> 
+     </tr> 
+    </thead> 
+    <tbody> 
+     <tr class="b"> 
+      <td align="left">SuccessfulJobCount</td> 
+      <td>Get number of the succeeded jobs</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">FailedJobCount</td> 
+      <td>Get number of failed jobs</td> 
+     </tr> 
+     <tr class="b"> 
+      <td align="left">AbortedJobCount</td> 
+      <td>Get number of the aborted jobs</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">ExistingJobGauge</td> 
+      <td>Get number of existing jobs registered</td> 
+     </tr> 
+     <tr class="b"> 
+      <td align="left">QueuedJobGauge</td> 
+      <td>Get numbers of queued jobs, which are not running jobs</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">RunningJobGauge</td> 
+      <td>Get numbers of running jobs</td> 
+     </tr> 
+     <tr class="b"> 
+      <td align="left">MaximumJobLatencyGauge</td> 
+      <td>Get maximum latency of jobs running time. It will be cleared every 
hour</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">JobLatencyCount</td> 
+      <td>Get total job latency counter.</td> 
+     </tr> 
+    </tbody> 
+   </table> 
+  </section> 
+  <section> 
+   <h4 id="MBean_WorkflowMonitor">MBean WorkflowMonitor</h4> 
+   <p>ObjectName: 
“ClusterStatus:cluster=[cluster-name],workflowType=[workflow-type]”</p> 
+   <table border="0" class="bodyTable table table-striped table-hover"> 
+    <thead> 
+     <tr class="a"> 
+      <th>Attributes</th> 
+      <th>Description</th> 
+     </tr> 
+    </thead> 
+    <tbody> 
+     <tr class="b"> 
+      <td align="left">SuccessfulWorkflowCount</td> 
+      <td>Get number of succeeded workflows</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">FailedWorkflowCount</td> 
+      <td>Get number of failed workflows</td> 
+     </tr> 
+     <tr class="b"> 
+      <td align="left">FailedWorkflowGauge</td> 
+      <td>Get number of current failed workflows</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">ExistingWorkflowGauge</td> 
+      <td>Get number of current existing workflows</td> 
+     </tr> 
+     <tr class="b"> 
+      <td align="left">QueuedWorkflowGauge</td> 
+      <td>Get number of queued but not started workflows</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">RunningWorkflowGauge</td> 
+      <td>Get number of running workflows</td> 
+     </tr> 
+     <tr class="b"> 
+      <td align="left">WorkflowLatencyCount</td> 
+      <td>Get workflow latency count</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">MaximumWorkflowLatencyGauge</td> 
+      <td>Get maximum workflow latency gauge. It will be reset in 1 hour.</td> 
+     </tr> 
+    </tbody> 
+   </table> 
+  </section> 
+ </section> 
+ <section> 
+  <h3 id="Metrics_on_Participant_only">Metrics on Participant only</h3> 
+  <section> 
+   <h4 id="MBean_StateTransitionStatMonitor">MBean 
StateTransitionStatMonitor</h4> 
+   <p>ObjectName: 
“CLMParticipantReport:Cluster=[cluster-name],Resource=[resource-name],Transition=[transaction-id]”</p>
 
+   <table border="0" class="bodyTable table table-striped table-hover"> 
+    <thead> 
+     <tr class="a"> 
+      <th>Attributes</th> 
+      <th>Description</th> 
+     </tr> 
+    </thead> 
+    <tbody> 
+     <tr class="b"> 
+      <td align="left">TotalStateTransitionGauge</td> 
+      <td>Get the number of total state transitions</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">TotalFailedTransitionGauge</td> 
+      <td>Get the number of total failed state transitions</td> 
+     </tr> 
+     <tr class="b"> 
+      <td align="left">TotalSuccessTransitionGauge</td> 
+      <td>Get the number of total succeeded state transitions</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">MeanTransitionLatency</td> 
+      <td>Get the average state transition latency (from message read to 
finish)</td> 
+     </tr> 
+     <tr class="b"> 
+      <td align="left">MaxTransitionLatency</td> 
+      <td>Get the maximum state transition latency</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">MinTransitionLatency</td> 
+      <td>Get the minimum state transition latency</td> 
+     </tr> 
+     <tr class="b"> 
+      <td align="left">PercentileTransitionLatency</td> 
+      <td>Get the percentile of state transitions latency</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">MeanTransitionExecuteLatency</td> 
+      <td>Get the average execution latency of state transition (from task 
started to finish)</td> 
+     </tr> 
+     <tr class="b"> 
+      <td align="left">MaxTransitionExecuteLatency</td> 
+      <td>Get the maximum execution latency of state transition</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">MinTransitionExecuteLatency</td> 
+      <td>Get the minimum execution latency of state transition</td> 
+     </tr> 
+     <tr class="b"> 
+      <td align="left">PercentileTransitionExecuteLatency</td> 
+      <td>Get the percentile of execution latency of state transitions</td> 
+     </tr> 
+    </tbody> 
+   </table> 
+  </section> 
+  <section> 
+   <h4 id="MBean_ThreadPoolExecutorMonitor">MBean 
ThreadPoolExecutorMonitor</h4> 
+   <p>ObjectName: “HelixThreadPoolExecutor:Type=[threadpool-type]” 
(threadpool-type in Message.MessageType, BatchMessageExecutor, Task)</p> 
+   <table border="0" class="bodyTable table table-striped table-hover"> 
+    <thead> 
+     <tr class="a"> 
+      <th>Attributes</th> 
+      <th>Description</th> 
+     </tr> 
+    </thead> 
+    <tbody> 
+     <tr class="b"> 
+      <td align="left">ThreadPoolCoreSizeGauge</td> 
+      <td>Thread pool size is as configured. Aggregate total thread pool size 
for the whole cluster.</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">ThreadPoolMaxSizeGauge</td> 
+      <td>Same as above</td> 
+     </tr> 
+     <tr class="b"> 
+      <td align="left">NumOfActiveThreadsGauge</td> 
+      <td>Number of running threads.</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">QueueSizeGauge</td> 
+      <td>Queue size. Could be used to identify if too many HelixTask blocked 
in participant.</td> 
+     </tr> 
+    </tbody> 
+   </table> 
+  </section> 
+  <section> 
+   <h4 id="MBean_MessageLatencyMonitor">MBean MessageLatencyMonitor</h4> 
+   <p>ObjectName: 
“CLMParticipantReport:ParticipantName=[instance-name],MonitorType=MessageLatencyMonitor”</p>
 
+   <table border="0" class="bodyTable table table-striped table-hover"> 
+    <thead> 
+     <tr class="a"> 
+      <th>Attributes</th> 
+      <th>Description</th> 
+     </tr> 
+    </thead> 
+    <tbody> 
+     <tr class="b"> 
+      <td align="left">TotalMessageCount</td> 
+      <td>Total message count</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">TotalMessageLatency</td> 
+      <td>Total message latency in ms</td> 
+     </tr> 
+     <tr class="b"> 
+      <td align="left">MessagelatencyGauge</td> 
+      <td>Histogram (with all statistic data) of message processing 
latency.</td> 
+     </tr> 
+    </tbody> 
+   </table> 
+  </section> 
+  <section> 
+   <h4 id="MBean_ParticipantMessageMonitor">MBean 
ParticipantMessageMonitor</h4> 
+   <p>ObjectName: 
“CLMParticipantReport:ParticipantName=[instance-name]”</p> 
+   <table border="0" class="bodyTable table table-striped table-hover"> 
+    <thead> 
+     <tr class="a"> 
+      <th>Attributes</th> 
+      <th>Description</th> 
+     </tr> 
+    </thead> 
+    <tbody> 
+     <tr class="b"> 
+      <td align="left">ReceivedMessages</td> 
+      <td>Number of received messages</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">DiscardedMessages</td> 
+      <td>Number of discarded messages</td> 
+     </tr> 
+     <tr class="b"> 
+      <td align="left">CompletedMessages</td> 
+      <td>Number of completed messages</td> 
+     </tr> 
+     <tr class="a"> 
+      <td align="left">FailedMessages</td> 
+      <td>Number of failed messages</td> 
+     </tr> 
+     <tr class="b"> 
+      <td align="left">PendingMessages</td> 
+      <td>Number of pending messages to be processed</td> 
+     </tr> 
+    </tbody> 
+   </table> 
+  </section> 
+ </section> 
+</section>
                        </div>
                </div>
        </div>
        </div>
 
        </div><!-- /container -->
-       
+
        <!-- Footer
        ================================================== -->
        <footer class="well">
                <div class="container">
                        <div class="row">
-                               <div class="span9 bottom-nav">
+                               <div class="span3 bottom-nav">
                                        <ul class="nav nav-list">
                                                <li class="nav-header">Get 
Helix</li>
-                                               <li class="active">
-                                                       <a href="#" 
title="Download">Download </a>
+                                               <li >
+                                                       <a href="download.html" 
title="Download">Download</a>
                                                </li>
-                                               <li class="active">
-                                                       <a href="#" 
title="Building">Building </a>
+                                               <li >
+                                                       <a href="Building.html" 
title="Building">Building</a>
                                                </li>
-                                               <li class="active">
-                                                       <a href="#" 
title="Release Notes">Release Notes </a>
+                                               <li >
+                                                       <a 
href="releasenotes/release-1.0.2.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 class="active">
-                                                       <a href="#" 
title="Quick Start">Quick Start </a>
+                                               <li >
+                                                       <a 
href="Quickstart.html" title="Quick Start">Quick Start</a>
                                                </li>
-                                               <li class="active">
-                                                       <a href="#" 
title="Tutorial">Tutorial </a>
+                                               <li >
+                                                       <a href="Tutorial.html" 
title="Tutorial">Tutorial</a>
                                                </li>
-                                               <li class="active">
-                                                       <a href="#" 
title="Javadocs">Javadocs </a>
+                                               <li >
+                                                       <a 
href="../javadocs/1.0.2" title="Javadocs">Javadocs</a>
                                                </li>
+                                       </ul>
+                               </div>
+                               <div class="span3 bottom-nav">
+                                       <ul class="nav nav-list">
                                                <li 
class="nav-header">Recipes</li>
-                                               <li class="active">
-                                                       <a href="#" 
title="Distributed lock manager">Distributed lock manager </a>
+                                               <li >
+                                                       <a 
href="recipes/lock_manager.html" 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 >
+                                                       <a 
href="recipes/rabbitmq_consumer_group.html" 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 >
+                                                       <a 
href="recipes/rsync_replicated_file_store.html" title="Rsync replicated file 
store">Rsync replicated file store</a>
                                                </li>
-                                               <li class="active">
-                                                       <a href="#" 
title="Service discovery">Service discovery </a>
+                                               <li >
+                                                       <a 
href="recipes/service_discovery.html" title="Service discovery">Service 
discovery</a>
                                                </li>
-                                               <li class="active">
-                                                       <a href="#" 
title="Distributed task DAG execution">Distributed task DAG execution </a>
+                                               <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="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>
+                               <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>
                </div>
        </div>
 
        <!-- Le javascript
        ================================================== -->
        <!-- Placed at the end of the document so the pages load faster -->
+       <script src="./js/jquery.min.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/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

Modified: helix/site-content/1.0.2-docs/Quickstart.html
URL: 
http://svn.apache.org/viewvc/helix/site-content/1.0.2-docs/Quickstart.html?rev=1909461&r1=1909460&r2=1909461&view=diff
==============================================================================
--- helix/site-content/1.0.2-docs/Quickstart.html (original)
+++ helix/site-content/1.0.2-docs/Quickstart.html Thu Apr 27 23:08:36 2023
@@ -1,8 +1,13 @@
 
 <!DOCTYPE html>
+
+
+
+
+
+
 <!--
- Generated by Apache Maven Doxia at 2022-04-22
- Rendered using Maven Reflow Skin 1.0.0 
(http://andriusvelykis.github.com/reflow-maven-skin)
+ Generated by Apache Maven Doxia at 2022-10-19  Rendered using Reflow Maven 
Skin 2.0.0 (https://olamy.github.io/reflow-maven-skin)
 -->
 <html  xml:lang="en" lang="en">
 
@@ -13,61 +18,84 @@
                <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/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="http://html5shim.googlecode.com/svn/trunk/html5.js";></script>
+                       <script src="./js/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-quickstart 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=".nav-collapse">
+                                       <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>
-                                       <div class="nav-collapse">
+                                       <a class="brand" href="..">Apache 
Helix</a>
+                                       <div class="nav-collapse collapse" 
id="top-nav-collapse">
                                                <ul class="nav pull-right">
-                                                       <li class="active"><a 
href="" title="Helix 1.0.2">Helix 1.0.2 </a></li>
-                                                       <li class="dropdown 
active">
+                                                       <li ><a 
href="index.html" title="Helix 1.0.2">Helix 1.0.2</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 
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 ><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>
                                                                </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>
+                                                                       <li 
class="active"><a href="" 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>
                                                                </ul>
                                                        </li>
-                                                       <li class="dropdown 
active">
+                                                       <li class="dropdown">
                                                                <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>
+                                                                       <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>
@@ -75,30 +103,36 @@
                                </div>
                        </div>
                </div>
-               
+
        <div class="container">
-       
+
        <!-- Masthead
        ================================================== -->
-       <header class="jumbotron subhead">
+
+       <header>
+       <div class="jumbotron subhead">
                <div class="row" id="banner">
                        <div class="span12">
                                <div class="pull-left">
-                                       <a href="" id="bannerLeft"><img src="" 
alt='"''"' /></a>
+                                       <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>
                                </div>
                                <div class="pull-right">
-                                       <a href="http://www.apache.org/"; 
id="bannerRight"><img src="" alt='"''"' /></a>
+                                       <a href="https://www.apache.org/"; 
id="bannerRight"><img src="../images/feather_small.gif" alt='"''"' /></a>
                                </div>
                        </div>
                </div>
+       </div>
                <div>
                        <ul class="breadcrumb">
-                               <li><a href="" title="Apache Helix">Apache 
Helix </a></li>
+                               <li><a href="http://helix.apache.org/"; 
title="Apache Helix" class="externalLink">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="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 class="divider">/</li>
                                <li>Quickstart</li>
-                               <li class="publishDate version-date 
pull-right">Last Published: 2022-04-22</li>
+                               <li class="publishDate version-date 
pull-right">Last Published: 2022-10-19</li>
                        </ul>
                </div>
        </header>
@@ -107,94 +141,731 @@
        <div class="row">
                <div class="span12">
                        <div class="body-content">
-$bodyWithHeader
+<!--
+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="Quickstart">Quickstart</h2>
+ </div> 
+</section> 
+<section> 
+ <h2 id="Get_Helix">Get Helix</h2> 
+ <p>First, let's get Helix. Either build it, or download it.</p> 
+ <section> 
+  <h3 id="Build">Build</h3> 
+  <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.2
+mvn install package -DskipTests
+cd helix-core/target/helix-core-pkg/bin # This folder contains all the scripts 
used in following sections
+chmod +x *
+</code></pre> 
+  </div> 
+ </section> 
+ <section> 
+  <h3 id="Download">Download</h3> 
+  <p>Download the 1.0.2 release package <a href="./download.html">here</a></p> 
+ </section> 
+</section> 
+<section> 
+ <h2 id="Overview">Overview</h2> 
+ <p>In this Quickstart, we'll set up a leader-standby replicated, partitioned 
system. Then we'll demonstrate how to add a node, rebalance the partitions, and 
show how Helix manages failover.</p> 
+</section> 
+<section> 
+ <h2 id="Let.27s_Do_It">Let's Do It</h2> 
+ <p>Helix provides command line interfaces to set up the cluster and view the 
cluster state. The best way to understand how Helix views a cluster is to build 
a cluster.</p> 
+ <section> 
+  <h3 id="Get_to_the_Tools_Directory">Get to the Tools Directory</h3> 
+  <p>If you built the code:</p> 
+  <div class="source"> 
+   <pre><code>cd helix/helix/helix-core/target/helix-core-pkg/bin
+</code></pre> 
+  </div> 
+  <p>If you downloaded the release package, extract it.</p> 
+ </section> 
+</section> 
+<section> 
+ <h2 id="Short_Version">Short Version</h2> 
+ <p>You can observe the components working together in this demo, which does 
the following:</p> 
+ <ul> 
+  <li>Create a cluster</li> 
+  <li>Add 2 nodes (participants) to the cluster</li> 
+  <li>Set up a resource with 6 partitions and 2 replicas: 1 Leader, and 1 
Standby per partition</li> 
+  <li>Show the cluster state after Helix balances the partitions</li> 
+  <li>Add a third node</li> 
+  <li>Show the cluster state. Note that the third node has taken leadership of 
2 partitions.</li> 
+  <li>Kill the third node (Helix takes care of failover)</li> 
+  <li>Show the cluster state. Note that the two surviving nodes take over 
leadership of the partitions from the failed node</li> 
+ </ul> 
+ <section> 
+  <h3 id="Run_the_Demo">Run the Demo</h3> 
+  <div class="source"> 
+   <pre><code>cd helix/helix/helix-core/target/helix-core-pkg/bin
+./quickstart.sh
+</code></pre> 
+  </div> 
+  <section> 
+   <h4 id="The_Initial_Setup">The Initial Setup</h4> 
+   <p>2 nodes are set up and the partitions are rebalanced.</p> 
+   <p>The cluster state is as follows:</p> 
+   <div class="source"> 
+    <pre><code>CLUSTER STATE: After starting 2 nodes
+                localhost_12000    localhost_12001
+MyResource_0           L                  S
+MyResource_1           S                  L
+MyResource_2           L                  S
+MyResource_3           L                  S
+MyResource_4           S                  L
+MyResource_5           S                  L
+</code></pre> 
+   </div> 
+   <p>Note there is one leader and one standby per partition.</p> 
+  </section> 
+  <section> 
+   <h4 id="Add_a_Node">Add a Node</h4> 
+   <p>A third node is added and the cluster is rebalanced.</p> 
+   <p>The cluster state changes to:</p> 
+   <div class="source"> 
+    <pre><code>CLUSTER STATE: After adding a third node
+               localhost_12000    localhost_12001    localhost_12002
+MyResource_0          S                  L                  S
+MyResource_1          S                  S                  L
+MyResource_2          L                  S                  S
+MyResource_3          S                  S                  L
+MyResource_4          L                  S                  S
+MyResource_5          S                  L                  S
+</code></pre> 
+   </div> 
+   <p>Note there is one leader and <i>two</i> standbys per partition. This is 
expected because there are three nodes.</p> 
+  </section> 
+  <section> 
+   <h4 id="Kill_a_Node">Kill a Node</h4> 
+   <p>Finally, a node is killed to simulate a failure</p> 
+   <p>Helix makes sure each partition has a leader. The cluster state changes 
to:</p> 
+   <div class="source"> 
+    <pre><code>CLUSTER STATE: After the 3rd node stops/crashes
+               localhost_12000    localhost_12001    localhost_12002
+MyResource_0          S                  L                  -
+MyResource_1          S                  L                  -
+MyResource_2          L                  S                  -
+MyResource_3          L                  S                  -
+MyResource_4          L                  S                  -
+MyResource_5          S                  L                  -
+</code></pre> 
+   </div> 
+  </section> 
+ </section> 
+</section> 
+<section> 
+ <h2 id="Long_Version">Long Version</h2> 
+ <p>Now you can run the same steps by hand. In this detailed version, we'll do 
the following:</p> 
+ <ul> 
+  <li>Define a cluster</li> 
+  <li>Add two nodes to the cluster</li> 
+  <li>Add a 6-partition resource with 1 leader and 2 standby replicas per 
partition</li> 
+  <li>Verify that the cluster is healthy and inspect the Helix view</li> 
+  <li>Expand the cluster: add a few nodes and rebalance the partitions</li> 
+  <li>Failover: stop a node and verify the leadership transfer</li> 
+ </ul> 
+ <section> 
+  <h3 id="Install_and_Start_ZooKeeper">Install and Start ZooKeeper</h3> 
+  <p>Zookeeper can be started in standalone mode or replicated mode.</p> 
+  <p>More information is available at</p> 
+  <ul> 
+   <li><a class="externalLink" 
href="http://zookeeper.apache.org/doc/r3.3.3/zookeeperStarted.html";>http://zookeeper.apache.org/doc/r3.3.3/zookeeperStarted.html</a></li>
 
+   <li><a class="externalLink" 
href="http://zookeeper.apache.org/doc/trunk/zookeeperAdmin.html#sc_zkMulitServerSetup";>http://zookeeper.apache.org/doc/trunk/zookeeperAdmin.html#sc_zkMulitServerSetup</a></li>
 
+  </ul> 
+  <p>In this example, let's start zookeeper in local mode.</p> 
+  <section> 
+   <h4 id="Start_ZooKeeper_Locally_on_Port_2199">Start ZooKeeper Locally on 
Port 2199</h4> 
+   <div class="source"> 
+    <pre><code>./start-standalone-zookeeper.sh 2199 &amp;
+</code></pre> 
+   </div> 
+  </section> 
+ </section> 
+ <section> 
+  <h3 id="Define_the_Cluster">Define the Cluster</h3> 
+  <p>The helix-admin tool is used for cluster administration tasks. In the 
Quickstart, we'll use the command line interface. Helix supports a REST 
interface as well.</p> 
+  <p>zookeeper_address is of the format host:port e.g localhost:2199 for 
standalone or host1:port,host2:port for multi-node.</p> 
+  <p>Next, we'll set up a cluster MYCLUSTER cluster with these attributes:</p> 
+  <ul> 
+   <li>3 instances running on localhost at ports 12913,12914,12915</li> 
+   <li>One database named myDB with 6 partitions</li> 
+   <li>Each partition will have 3 replicas with 1 leader, 2 standbys</li> 
+   <li>ZooKeeper running locally at localhost:2199</li> 
+  </ul> 
+  <section> 
+   <h4 id="Create_the_Cluster_MYCLUSTER">Create the Cluster MYCLUSTER</h4> 
+   <div class="source"> 
+    <pre><code># ./helix-admin.sh --zkSvr &lt;zk_address&gt; --addCluster 
&lt;clustername&gt;
+./helix-admin.sh --zkSvr localhost:2199 --addCluster MYCLUSTER
+</code></pre> 
+   </div> 
+  </section> 
+ </section> 
+ <section> 
+  <h3 id="Add_Nodes_to_the_Cluster">Add Nodes to the Cluster</h3> 
+  <p>In this case we'll add three nodes: localhost:12913, localhost:12914, 
localhost:12915</p> 
+  <div class="source"> 
+   <pre><code># helix-admin.sh --zkSvr &lt;zk_address&gt;  --addNode 
&lt;clustername&gt; &lt;host:port&gt;
+./helix-admin.sh --zkSvr localhost:2199  --addNode MYCLUSTER localhost:12913
+./helix-admin.sh --zkSvr localhost:2199  --addNode MYCLUSTER localhost:12914
+./helix-admin.sh --zkSvr localhost:2199  --addNode MYCLUSTER localhost:12915
+</code></pre> 
+  </div> 
+ </section> 
+ <section> 
+  <h3 id="Define_the_Resource_and_Partitioning">Define the Resource and 
Partitioning</h3> 
+  <p>In this example, the resource is a database, partitioned 6 ways. Note 
that in a production system, it's common to over-partition for better load 
balancing. Helix has been used in production to manage hundreds of databases 
each with 10s or 100s of partitions running on 10s of physical nodes.</p> 
+  <section> 
+   <h4 
id="Create_a_Database_with_6_Partitions_using_the_LeaderStandby_State_Model">Create
 a Database with 6 Partitions using the LeaderStandby State Model</h4> 
+   <p>Helix ensures there will be exactly one leader for each partition.</p> 
+   <div class="source"> 
+    <pre><code># helix-admin.sh --zkSvr &lt;zk_address&gt; --addResource 
&lt;clustername&gt; &lt;resourceName&gt; &lt;numPartitions&gt; 
&lt;StateModelName&gt;
+./helix-admin.sh --zkSvr localhost:2199 --addResource MYCLUSTER myDB 6 
LeaderStandby
+</code></pre> 
+   </div> 
+  </section> 
+  <section> 
+   <h4 id="Let_Helix_Assign_Partitions_to_Nodes">Let Helix Assign Partitions 
to Nodes</h4> 
+   <p>This command will distribute the partitions amongst all the nodes in the 
cluster. In this example, each partition has 3 replicas.</p> 
+   <div class="source"> 
+    <pre><code># helix-admin.sh --zkSvr &lt;zk_address&gt; --rebalance 
&lt;clustername&gt; &lt;resourceName&gt; &lt;replication factor&gt;
+./helix-admin.sh --zkSvr localhost:2199 --rebalance MYCLUSTER myDB 3
+</code></pre> 
+   </div> 
+   <p>Now the cluster is defined in ZooKeeper. The nodes (localhost:12913, 
localhost:12914, localhost:12915) and resource (myDB, with 6 partitions using 
the LeaderStandby model) are all properly configured. And the <i>IdealState</i> 
has been calculated, assuming a replication factor of 3.</p> 
+  </section> 
+ </section> 
+ <section> 
+  <h3 id="Start_the_Helix_Controller">Start the Helix Controller</h3> 
+  <p>Now that the cluster is defined in ZooKeeper, the Helix controller can 
manage the cluster.</p> 
+  <div class="source"> 
+   <pre><code># Start the cluster manager, which will manage MYCLUSTER
+./run-helix-controller.sh --zkSvr localhost:2199 --cluster MYCLUSTER 
2&gt;&amp;1 &gt; /tmp/controller.log &amp;
+</code></pre> 
+  </div> 
+ </section> 
+ <section> 
+  <h3 id="Start_up_the_Cluster_to_be_Managed">Start up the Cluster to be 
Managed</h3> 
+  <p>We've started up ZooKeeper, defined the cluster, the resources, the 
partitioning, and started up the Helix controller. Next, we'll start up the 
nodes of the system to be managed. Each node is a Participant, which is an 
instance of the system component to be managed. Helix assigns work to 
Participants, keeps track of their roles and health, and takes action when a 
node fails.</p> 
+  <div class="source"> 
+   <pre><code># start up each instance.  These are mock implementations that 
are actively managed by Helix
+./start-helix-participant.sh --zkSvr localhost:2199 --cluster MYCLUSTER --host 
localhost --port 12913 --stateModelType LeaderStandby 2&gt;&amp;1 &gt; 
/tmp/participant_12913.log
+./start-helix-participant.sh --zkSvr localhost:2199 --cluster MYCLUSTER --host 
localhost --port 12914 --stateModelType LeaderStandby 2&gt;&amp;1 &gt; 
/tmp/participant_12914.log
+./start-helix-participant.sh --zkSvr localhost:2199 --cluster MYCLUSTER --host 
localhost --port 12915 --stateModelType LeaderStandby 2&gt;&amp;1 &gt; 
/tmp/participant_12915.log
+</code></pre> 
+  </div> 
+ </section> 
+ <section> 
+  <h3 id="Inspect_the_Cluster">Inspect the Cluster</h3> 
+  <p>Now, let's see the Helix view of our cluster. We'll work our way down as 
follows:</p> 
+  <div class="source"> 
+   <pre><code>Clusters -&gt; MYCLUSTER -&gt; instances -&gt; instance detail
+                      -&gt; resources -&gt; resource detail
+                      -&gt; partitions
+</code></pre> 
+  </div> 
+  <p>A single Helix controller can manage multiple clusters, though so far, 
we've only defined one cluster. Let's see:</p> 
+  <div class="source"> 
+   <pre><code># List existing clusters
+./helix-admin.sh --zkSvr localhost:2199 --listClusters
+
+Existing clusters:
+MYCLUSTER
+</code></pre> 
+  </div> 
+  <p>Now, let's see the Helix view of MYCLUSTER:</p> 
+  <div class="source"> 
+   <pre><code># helix-admin.sh --zkSvr &lt;zk_address&gt; --listClusterInfo 
&lt;clusterName&gt;
+./helix-admin.sh --zkSvr localhost:2199 --listClusterInfo MYCLUSTER
+
+Existing resources in cluster MYCLUSTER:
+myDB
+Instances in cluster MYCLUSTER:
+localhost_12915
+localhost_12914
+localhost_12913
+</code></pre> 
+  </div> 
+  <p>Let's look at the details of an instance:</p> 
+  <div class="source"> 
+   <pre><code># ./helix-admin.sh --zkSvr &lt;zk_address&gt; --listInstanceInfo 
&lt;clusterName&gt; &lt;InstanceName&gt;
+./helix-admin.sh --zkSvr localhost:2199 --listInstanceInfo MYCLUSTER 
localhost_12913
+
+InstanceConfig: {
+  "id" : "localhost_12913",
+  "mapFields" : {
+  },
+  "listFields" : {
+  },
+  "simpleFields" : {
+    "HELIX_ENABLED" : "true",
+    "HELIX_HOST" : "localhost",
+    "HELIX_PORT" : "12913"
+  }
+}
+</code></pre> 
+  </div> 
+  <section> 
+   <h4 id="Query_Information_about_a_Resource">Query Information about a 
Resource</h4> 
+   <div class="source"> 
+    <pre><code># helix-admin.sh --zkSvr &lt;zk_address&gt; --listResourceInfo 
&lt;clusterName&gt; &lt;resourceName&gt;
+./helix-admin.sh --zkSvr localhost:2199 --listResourceInfo MYCLUSTER myDB
+
+IdealState for myDB:
+{
+  "id" : "myDB",
+  "mapFields" : {
+    "myDB_0" : {
+      "localhost_12913" : "STANDBY",
+      "localhost_12914" : "LEADER",
+      "localhost_12915" : "STANDBY"
+    },
+    "myDB_1" : {
+      "localhost_12913" : "STANDBY",
+      "localhost_12914" : "STANDBY",
+      "localhost_12915" : "LEADER"
+    },
+    "myDB_2" : {
+      "localhost_12913" : "LEADER",
+      "localhost_12914" : "STANDBY",
+      "localhost_12915" : "STANDBY"
+    },
+    "myDB_3" : {
+      "localhost_12913" : "STANDBY",
+      "localhost_12914" : "STANDBY",
+      "localhost_12915" : "LEADER"
+    },
+    "myDB_4" : {
+      "localhost_12913" : "LEADER",
+      "localhost_12914" : "STANDBY",
+      "localhost_12915" : "STANDBY"
+    },
+    "myDB_5" : {
+      "localhost_12913" : "STANDBY",
+      "localhost_12914" : "LEADER",
+      "localhost_12915" : "STANDBY"
+    }
+  },
+  "listFields" : {
+    "myDB_0" : [ "localhost_12914", "localhost_12913", "localhost_12915" ],
+    "myDB_1" : [ "localhost_12915", "localhost_12913", "localhost_12914" ],
+    "myDB_2" : [ "localhost_12913", "localhost_12915", "localhost_12914" ],
+    "myDB_3" : [ "localhost_12915", "localhost_12913", "localhost_12914" ],
+    "myDB_4" : [ "localhost_12913", "localhost_12914", "localhost_12915" ],
+    "myDB_5" : [ "localhost_12914", "localhost_12915", "localhost_12913" ]
+  },
+  "simpleFields" : {
+    "IDEAL_STATE_MODE" : "AUTO",
+    "REBALANCE_MODE" : "SEMI_AUTO",
+    "NUM_PARTITIONS" : "6",
+    "REPLICAS" : "3",
+    "STATE_MODEL_DEF_REF" : "LeaderStandby",
+    "STATE_MODEL_FACTORY_NAME" : "DEFAULT"
+  }
+}
+
+ExternalView for myDB:
+{
+  "id" : "myDB",
+  "mapFields" : {
+    "myDB_0" : {
+      "localhost_12913" : "STANDBY",
+      "localhost_12914" : "LEADER",
+      "localhost_12915" : "STANDBY"
+    },
+    "myDB_1" : {
+      "localhost_12913" : "STANDBY",
+      "localhost_12914" : "STANDBY",
+      "localhost_12915" : "LEADER"
+    },
+    "myDB_2" : {
+      "localhost_12913" : "LEADER",
+      "localhost_12914" : "STANDBY",
+      "localhost_12915" : "STANDBY"
+    },
+    "myDB_3" : {
+      "localhost_12913" : "STANDBY",
+      "localhost_12914" : "STANDBY",
+      "localhost_12915" : "LEADER"
+    },
+    "myDB_4" : {
+      "localhost_12913" : "LEADER",
+      "localhost_12914" : "STANDBY",
+      "localhost_12915" : "STANDBY"
+    },
+    "myDB_5" : {
+      "localhost_12913" : "STANDBY",
+      "localhost_12914" : "LEADER",
+      "localhost_12915" : "STANDBY"
+    }
+  },
+  "listFields" : {
+  },
+  "simpleFields" : {
+    "BUCKET_SIZE" : "0"
+  }
+}
+</code></pre> 
+   </div> 
+   <p>Now, let's look at one of the partitions:</p> 
+   <div class="source"> 
+    <pre><code># helix-admin.sh --zkSvr &lt;zk_address&gt; --listResourceInfo 
&lt;clusterName&gt; &lt;partition&gt;
+./helix-admin.sh --zkSvr localhost:2199 --listResourceInfo mycluster myDB_0
+</code></pre> 
+   </div> 
+  </section> 
+ </section> 
+ <section> 
+  <h3 id="Expand_the_Cluster">Expand the Cluster</h3> 
+  <p>Next, we'll show how Helix does the work that you'd otherwise have to 
build into your system. When you add capacity to your cluster, you want the 
work to be evenly distributed. In this example, we started with 3 nodes, with 6 
partitions. The partitions were evenly balanced, 2 leaders and 4 standbys per 
node. Let's add 3 more nodes: localhost:12916, localhost:12917, 
localhost:12918</p> 
+  <div class="source"> 
+   <pre><code>./helix-admin.sh --zkSvr localhost:2199  --addNode MYCLUSTER 
localhost:12916
+./helix-admin.sh --zkSvr localhost:2199  --addNode MYCLUSTER localhost:12917
+./helix-admin.sh --zkSvr localhost:2199  --addNode MYCLUSTER localhost:12918
+</code></pre> 
+  </div> 
+  <p>And start up these instances:</p> 
+  <div class="source"> 
+   <pre><code># start up each instance.  These are mock implementations that 
are actively managed by Helix
+./start-helix-participant.sh --zkSvr localhost:2199 --cluster MYCLUSTER --host 
localhost --port 12916 --stateModelType LeaderStandby 2&gt;&amp;1 &gt; 
/tmp/participant_12916.log
+./start-helix-participant.sh --zkSvr localhost:2199 --cluster MYCLUSTER --host 
localhost --port 12917 --stateModelType LeaderStandby 2&gt;&amp;1 &gt; 
/tmp/participant_12917.log
+./start-helix-participant.sh --zkSvr localhost:2199 --cluster MYCLUSTER --host 
localhost --port 12918 --stateModelType LeaderStandby 2&gt;&amp;1 &gt; 
/tmp/participant_12918.log
+</code></pre> 
+  </div> 
+  <p>And now, let Helix do the work for you. To shift the work, simply 
rebalance. After the rebalance, each node will have one leader and two 
standbys.</p> 
+  <div class="source"> 
+   <pre><code>./helix-admin.sh --zkSvr localhost:2199 --rebalance MYCLUSTER 
myDB 3
+</code></pre> 
+  </div> 
+ </section> 
+ <section> 
+  <h3 id="View_the_Cluster">View the Cluster</h3> 
+  <p>OK, let's see how it looks:</p> 
+  <div class="source"> 
+   <pre><code>./helix-admin.sh --zkSvr localhost:2199 --listResourceInfo 
MYCLUSTER myDB
+
+IdealState for myDB:
+{
+  "id" : "myDB",
+  "mapFields" : {
+    "myDB_0" : {
+      "localhost_12913" : "STANDBY",
+      "localhost_12914" : "STANDBY",
+      "localhost_12917" : "LEADER"
+    },
+    "myDB_1" : {
+      "localhost_12916" : "STANDBY",
+      "localhost_12917" : "STANDBY",
+      "localhost_12918" : "LEADER"
+    },
+    "myDB_2" : {
+      "localhost_12913" : "LEADER",
+      "localhost_12917" : "STANDBY",
+      "localhost_12918" : "STANDBY"
+    },
+    "myDB_3" : {
+      "localhost_12915" : "LEADER",
+      "localhost_12917" : "STANDBY",
+      "localhost_12918" : "STANDBY"
+    },
+    "myDB_4" : {
+      "localhost_12916" : "LEADER",
+      "localhost_12917" : "STANDBY",
+      "localhost_12918" : "STANDBY"
+    },
+    "myDB_5" : {
+      "localhost_12913" : "STANDBY",
+      "localhost_12914" : "LEADER",
+      "localhost_12915" : "STANDBY"
+    }
+  },
+  "listFields" : {
+    "myDB_0" : [ "localhost_12917", "localhost_12913", "localhost_12914" ],
+    "myDB_1" : [ "localhost_12918", "localhost_12917", "localhost_12916" ],
+    "myDB_2" : [ "localhost_12913", "localhost_12917", "localhost_12918" ],
+    "myDB_3" : [ "localhost_12915", "localhost_12917", "localhost_12918" ],
+    "myDB_4" : [ "localhost_12916", "localhost_12917", "localhost_12918" ],
+    "myDB_5" : [ "localhost_12914", "localhost_12915", "localhost_12913" ]
+  },
+  "simpleFields" : {
+    "IDEAL_STATE_MODE" : "AUTO",
+    "REBALANCE_MODE" : "SEMI_AUTO",
+    "NUM_PARTITIONS" : "6",
+    "REPLICAS" : "3",
+    "STATE_MODEL_DEF_REF" : "LeaderStandby",
+    "STATE_MODEL_FACTORY_NAME" : "DEFAULT"
+  }
+}
+
+ExternalView for myDB:
+{
+  "id" : "myDB",
+  "mapFields" : {
+    "myDB_0" : {
+      "localhost_12913" : "STANDBY",
+      "localhost_12914" : "STANDBY",
+      "localhost_12917" : "LEADER"
+    },
+    "myDB_1" : {
+      "localhost_12916" : "STANDBY",
+      "localhost_12917" : "STANDBY",
+      "localhost_12918" : "LEADER"
+    },
+    "myDB_2" : {
+      "localhost_12913" : "LEADER",
+      "localhost_12917" : "STANDBY",
+      "localhost_12918" : "STANDBY"
+    },
+    "myDB_3" : {
+      "localhost_12915" : "LEADER",
+      "localhost_12917" : "STANDBY",
+      "localhost_12918" : "STANDBY"
+    },
+    "myDB_4" : {
+      "localhost_12916" : "LEADER",
+      "localhost_12917" : "STANDBY",
+      "localhost_12918" : "STANDBY"
+    },
+    "myDB_5" : {
+      "localhost_12913" : "STANDBY",
+      "localhost_12914" : "LEADER",
+      "localhost_12915" : "STANDBY"
+    }
+  },
+  "listFields" : {
+  },
+  "simpleFields" : {
+    "BUCKET_SIZE" : "0"
+  }
+}
+</code></pre> 
+  </div> 
+  <p>Mission accomplished. The partitions are nicely balanced.</p> 
+ </section> 
+ <section> 
+  <h3 id="How_about_Failover.3F">How about Failover?</h3> 
+  <p>Building a fault tolerant system isn't trivial, but with Helix, it's 
easy. Helix detects a failed instance, and triggers leadership transfer 
automatically.</p> 
+  <p>First, let's fail an instance. In this example, we'll kill 
localhost:12918 to simulate a failure.</p> 
+  <p>We lost localhost:12918, so myDB_1 lost its LEADER. Helix can fix that, 
it will transfer leadership to a healthy node that is currently a STANDBY, say 
localhost:12197. Helix balances the load as best as it can, given there are 6 
partitions on 5 nodes. Let's see:</p> 
+  <div class="source"> 
+   <pre><code>./helix-admin.sh --zkSvr localhost:2199 --listResourceInfo 
MYCLUSTER myDB
+
+IdealState for myDB:
+{
+  "id" : "myDB",
+  "mapFields" : {
+    "myDB_0" : {
+      "localhost_12913" : "STANDBY",
+      "localhost_12914" : "STANDBY",
+      "localhost_12917" : "LEADER"
+    },
+    "myDB_1" : {
+      "localhost_12916" : "STANDBY",
+      "localhost_12917" : "STANDBY",
+      "localhost_12918" : "LEADER"
+    },
+    "myDB_2" : {
+      "localhost_12913" : "LEADER",
+      "localhost_12917" : "STANDBY",
+      "localhost_12918" : "STANDBY"
+    },
+    "myDB_3" : {
+      "localhost_12915" : "LEADER",
+      "localhost_12917" : "STANDBY",
+      "localhost_12918" : "STANDBY"
+    },
+    "myDB_4" : {
+      "localhost_12916" : "LEADER",
+      "localhost_12917" : "STANDBY",
+      "localhost_12918" : "STANDBY"
+    },
+    "myDB_5" : {
+      "localhost_12913" : "STANDBY",
+      "localhost_12914" : "LEADER",
+      "localhost_12915" : "STANDBY"
+    }
+  },
+  "listFields" : {
+    "myDB_0" : [ "localhost_12917", "localhost_12913", "localhost_12914" ],
+    "myDB_1" : [ "localhost_12918", "localhost_12917", "localhost_12916" ],
+    "myDB_2" : [ "localhost_12913", "localhost_12918", "localhost_12917" ],
+    "myDB_3" : [ "localhost_12915", "localhost_12918", "localhost_12917" ],
+    "myDB_4" : [ "localhost_12916", "localhost_12917", "localhost_12918" ],
+    "myDB_5" : [ "localhost_12914", "localhost_12915", "localhost_12913" ]
+  },
+  "simpleFields" : {
+    "IDEAL_STATE_MODE" : "AUTO",
+    "REBALANCE_MODE" : "SEMI_AUTO",
+    "NUM_PARTITIONS" : "6",
+    "REPLICAS" : "3",
+    "STATE_MODEL_DEF_REF" : "LeaderStandby",
+    "STATE_MODEL_FACTORY_NAME" : "DEFAULT"
+  }
+}
+
+ExternalView for myDB:
+{
+  "id" : "myDB",
+  "mapFields" : {
+    "myDB_0" : {
+      "localhost_12913" : "STANDBY",
+      "localhost_12914" : "STANDBY",
+      "localhost_12917" : "LEADER"
+    },
+    "myDB_1" : {
+      "localhost_12916" : "STANDBY",
+      "localhost_12917" : "LEADER"
+    },
+    "myDB_2" : {
+      "localhost_12913" : "LEADER",
+      "localhost_12917" : "STANDBY"
+    },
+    "myDB_3" : {
+      "localhost_12915" : "LEADER",
+      "localhost_12917" : "STANDBY"
+    },
+    "myDB_4" : {
+      "localhost_12916" : "LEADER",
+      "localhost_12917" : "STANDBY"
+    },
+    "myDB_5" : {
+      "localhost_12913" : "STANDBY",
+      "localhost_12914" : "LEADER",
+      "localhost_12915" : "STANDBY"
+    }
+  },
+  "listFields" : {
+  },
+  "simpleFields" : {
+    "BUCKET_SIZE" : "0"
+  }
+}
+</code></pre> 
+  </div> 
+  <p>As we've seen in this Quickstart, Helix takes care of partitioning, load 
balancing, elasticity, failure detection and recovery.</p> 
+ </section> 
+ <section> 
+  <h3 id="ZooInspector">ZooInspector</h3> 
+  <p>You can view all of the underlying data by going direct to zookeeper. Use 
ZooInspector that comes with zookeeper to browse the data. This is a java 
applet (make sure you have X windows)</p> 
+  <p>To start zooinspector run the following command from 
&lt;zk_install_directory&gt;/contrib/ZooInspector</p> 
+  <div class="source"> 
+   <pre><code>java -cp 
zookeeper-3.3.3-ZooInspector.jar:lib/jtoaster-1.0.4.jar:../../lib/log4j-1.2.15.jar:../../zookeeper-3.3.3.jar
 org.apache.zookeeper.inspector.ZooInspector
+</code></pre> 
+  </div> 
+ </section> 
+ <section> 
+  <h3 id="Next">Next</h3> 
+  <p>Now that you understand the idea of Helix, read the <a 
href="./Tutorial.html">tutorial</a> to learn how to choose the right state 
model and constraints for your system, and how to implement it. In many cases, 
the built-in features meet your requirements. And best of all, Helix is a 
customizable framework, so you can plug in your own behavior, while retaining 
the automation provided by Helix.</p> 
+ </section> 
+</section>
                        </div>
                </div>
        </div>
        </div>
 
        </div><!-- /container -->
-       
+
        <!-- Footer
        ================================================== -->
        <footer class="well">
                <div class="container">
                        <div class="row">
-                               <div class="span9 bottom-nav">
+                               <div class="span3 bottom-nav">
                                        <ul class="nav nav-list">
                                                <li class="nav-header">Get 
Helix</li>
-                                               <li class="active">
-                                                       <a href="#" 
title="Download">Download </a>
+                                               <li >
+                                                       <a href="download.html" 
title="Download">Download</a>
                                                </li>
-                                               <li class="active">
-                                                       <a href="#" 
title="Building">Building </a>
+                                               <li >
+                                                       <a href="Building.html" 
title="Building">Building</a>
                                                </li>
-                                               <li class="active">
-                                                       <a href="#" 
title="Release Notes">Release Notes </a>
+                                               <li >
+                                                       <a 
href="releasenotes/release-1.0.2.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 class="active">
-                                                       <a href="#" 
title="Quick Start">Quick Start </a>
+                                                       <a href="#" 
title="Quick Start">Quick Start</a>
                                                </li>
-                                               <li class="active">
-                                                       <a href="#" 
title="Tutorial">Tutorial </a>
+                                               <li >
+                                                       <a href="Tutorial.html" 
title="Tutorial">Tutorial</a>
                                                </li>
-                                               <li class="active">
-                                                       <a href="#" 
title="Javadocs">Javadocs </a>
+                                               <li >
+                                                       <a 
href="../javadocs/1.0.2" title="Javadocs">Javadocs</a>
                                                </li>
+                                       </ul>
+                               </div>
+                               <div class="span3 bottom-nav">
+                                       <ul class="nav nav-list">
                                                <li 
class="nav-header">Recipes</li>
-                                               <li class="active">
-                                                       <a href="#" 
title="Distributed lock manager">Distributed lock manager </a>
+                                               <li >
+                                                       <a 
href="recipes/lock_manager.html" 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 >
+                                                       <a 
href="recipes/rabbitmq_consumer_group.html" 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 >
+                                                       <a 
href="recipes/rsync_replicated_file_store.html" title="Rsync replicated file 
store">Rsync replicated file store</a>
                                                </li>
-                                               <li class="active">
-                                                       <a href="#" 
title="Service discovery">Service discovery </a>
+                                               <li >
+                                                       <a 
href="recipes/service_discovery.html" title="Service discovery">Service 
discovery</a>
                                                </li>
-                                               <li class="active">
-                                                       <a href="#" 
title="Distributed task DAG execution">Distributed task DAG execution </a>
+                                               <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="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>
+                               <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>
                </div>
        </div>
 
        <!-- Le javascript
        ================================================== -->
        <!-- Placed at the end of the document so the pages load faster -->
+       <script src="./js/jquery.min.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/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


Reply via email to