Modified: helix/site-content/1.0.2-docs/recipes/rabbitmq_consumer_group.html
URL: 
http://svn.apache.org/viewvc/helix/site-content/1.0.2-docs/recipes/rabbitmq_consumer_group.html?rev=1906412&r1=1906411&r2=1906412&view=diff
==============================================================================
--- helix/site-content/1.0.2-docs/recipes/rabbitmq_consumer_group.html 
(original)
+++ helix/site-content/1.0.2-docs/recipes/rabbitmq_consumer_group.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-recipes-rabbitmq_consumer_group 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 
active">
                                                                <a href="#" 
class="dropdown-toggle" data-toggle="dropdown">Recipes <b class="caret"></b></a>
                                                                <ul 
class="dropdown-menu">
-                                                                       <li ><a 
href="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>
-                                                                       <li ><a 
href="rsync_replicated_file_store.html" title="Rsync replicated file 
store">Rsync replicated file store</a></li>
-                                                                       <li ><a 
href="service_discovery.html" title="Service discovery">Service 
discovery</a></li>
-                                                                       <li ><a 
href="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>RabbitMQ Consumer Group</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,289 +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.
---> 
-<section> 
- <div class="page-header">
-  <h2 id="RabbitMQ_Consumer_Group">RabbitMQ Consumer Group</h2>
- </div> 
- <p><a class="externalLink" href="http://www.rabbitmq.com/";>RabbitMQ</a> is 
well-known open source software the provides robust messaging for 
applications.</p> 
- <p>One of the commonly implemented recipes using this software is a work 
queue. <a class="externalLink" 
href="http://www.rabbitmq.com/tutorials/tutorial-four-java.html";>http://www.rabbitmq.com/tutorials/tutorial-four-java.html</a>
 describes the use case where</p> 
- <ul> 
-  <li>A producer sends a message with a routing key</li> 
-  <li>The message is routed to the queue whose binding key exactly matches the 
routing key of the message</li> 
-  <li>There are multiple consumers and each consumer is interested in 
processing only a subset of the messages by binding to the interested keys</li> 
- </ul> 
- <p>The example provided <a class="externalLink" 
href="http://www.rabbitmq.com/tutorials/tutorial-four-java.html";>here</a> 
describes how multiple consumers can be started to process all the 
messages.</p> 
- <p>While this works, in production systems one needs the following:</p> 
- <ul> 
-  <li>Ability to handle failures: when a consumer fails, another consumer must 
be started or the other consumers must start processing these messages that 
should have been processed by the failed consumer</li> 
-  <li>When the existing consumers cannot keep up with the task generation 
rate, new consumers will be added. The tasks must be redistributed among all 
the consumers</li> 
- </ul> 
- <p>In this recipe, we demonstrate handling of consumer failures and new 
consumer additions using Helix.</p> 
- <p>Mapping this usecase to Helix is pretty easy as the binding key/routing 
key is equivalent to a partition.</p> 
- <p>Let's take an example. Lets say the queue has 6 partitions, and we have 2 
consumers to process all the queues. What we want is all 6 queues to be evenly 
divided among 2 consumers. Eventually when the system scales, we add more 
consumers to keep up. This will make each consumer process tasks from 2 queues. 
Now let's say that a consumer failed, reducing the number of active consumers 
to 2. This means each consumer must process 3 queues.</p> 
- <p>We showcase how such a dynamic application can be developed using Helix. 
Even though we use RabbitMQ as the pub/sub system one can extend this solution 
to other pub/sub systems.</p> 
- <section> 
-  <h3 id="Try_It">Try It</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 clean install package -DskipTests
-cd recipes/rabbitmq-consumer-group/bin
-chmod +x *
-export HELIX_PKG_ROOT=`pwd`/helix-core/target/helix-core-pkg
-export HELIX_RABBITMQ_ROOT=`pwd`/recipes/rabbitmq-consumer-group/
-chmod +x $HELIX_PKG_ROOT/bin/*
-chmod +x $HELIX_RABBITMQ_ROOT/bin/*
-</code></pre> 
-  </div> 
-  <section> 
-   <h4 id="Install_RabbitMQ">Install RabbitMQ</h4> 
-   <p>Setting up RabbitMQ on a local box is straightforward. You can find the 
instructions here <a class="externalLink" 
href="http://www.rabbitmq.com/download.html";>http://www.rabbitmq.com/download.html</a></p>
 
-  </section> 
-  <section> 
-   <h4 id="Start_ZK">Start ZK</h4> 
-   <p>Start ZooKeeper at port 2199</p> 
-   <div class="source"> 
-    <pre><code>$HELIX_PKG_ROOT/bin/start-standalone-zookeeper 2199
-</code></pre> 
-   </div> 
-  </section> 
-  <section> 
-   <h4 id="Setup_the_Consumer_Group_Cluster">Setup the Consumer Group 
Cluster</h4> 
-   <p>This will setup the cluster by creating a “rabbitmq-consumer-group” 
cluster and adds a “topic” with “6” queues.</p> 
-   <div class="source"> 
-    <pre><code>$HELIX_RABBITMQ_ROOT/bin/setup-cluster.sh localhost:2199
-</code></pre> 
-   </div> 
-  </section> 
-  <section> 
-   <h4 id="Add_Consumers">Add Consumers</h4> 
-   <p>Start 2 consumers in 2 different terminals. Each consumer is given a 
unique ID.</p> 
-   <div class="source"> 
-    <pre><code>//start-consumer.sh zookeeperAddress (e.g. localhost:2181) 
consumerId , rabbitmqServer (e.g. localhost)
-$HELIX_RABBITMQ_ROOT/bin/start-consumer.sh localhost:2199 0 localhost
-$HELIX_RABBITMQ_ROOT/bin/start-consumer.sh localhost:2199 1 localhost
-
-</code></pre> 
-   </div> 
-  </section> 
-  <section> 
-   <h4 id="Start_the_Helix_Controller">Start the Helix Controller</h4> 
-   <p>Now start a Helix controller that starts managing the 
“rabbitmq-consumer-group” cluster.</p> 
-   <div class="source"> 
-    <pre><code>$HELIX_RABBITMQ_ROOT/bin/start-cluster-manager.sh localhost:2199
-</code></pre> 
-   </div> 
-  </section> 
-  <section> 
-   <h4 id="Send_Messages_to_the_Topic">Send Messages to the Topic</h4> 
-   <p>Start sending messages to the topic. This script randomly selects a 
routing key (1-6) and sends the message to topic. Based on the key, messages 
gets routed to the appropriate queue.</p> 
-   <div class="source"> 
-    <pre><code>$HELIX_RABBITMQ_ROOT/bin/send-message.sh localhost 20
-</code></pre> 
-   </div> 
-   <p>After running this, you should see all 20 messages being processed by 2 
consumers.</p> 
-  </section> 
-  <section> 
-   <h4 id="Add_Another_Consumer">Add Another Consumer</h4> 
-   <p>Once a new consumer is started, Helix detects it. In order to balance 
the load between 3 consumers, it deallocates 1 partition from the existing 
consumers and allocates it to the new consumer. We see that each consumer is 
now processing only 2 queues. Helix makes sure that old nodes are asked to stop 
consuming before the new consumer is asked to start consuming for a given 
partition. But the transitions for each partition can happen in parallel.</p> 
-   <div class="source"> 
-    <pre><code>$HELIX_RABBITMQ_ROOT/bin/start-consumer.sh localhost:2199 2 
localhost
-</code></pre> 
-   </div> 
-   <p>Send messages again to the topic</p> 
-   <div class="source"> 
-    <pre><code>$HELIX_RABBITMQ_ROOT/bin/send-message.sh localhost 100
-</code></pre> 
-   </div> 
-   <p>You should see that messages are now received by all 3 consumers.</p> 
-  </section> 
-  <section> 
-   <h4 id="Stop_a_Consumer">Stop a Consumer</h4> 
-   <p>In any terminal press CTRL^C and notice that Helix detects the consumer 
failure and distributes the 2 partitions that were processed by failed consumer 
to the remaining 2 active consumers.</p> 
-  </section> 
- </section> 
- <section> 
-  <h3 id="How_does_this_work.3F">How does this work?</h3> 
-  <p>Find the entire code <a class="externalLink" 
href="https://git-wip-us.apache.org/repos/asf?p=helix.git;a=tree;f=recipes/rabbitmq-consumer-group/src/main/java/org/apache/helix/recipes/rabbitmq";>here</a>.</p>
 
-  <section> 
-   <h4 id="Cluster_Setup">Cluster Setup</h4> 
-   <p>This step creates ZNode on ZooKeeper for the cluster and adds the state 
model. We use online offline state model since there is no need for other 
states. The consumer is either processing a queue or it is not.</p> 
-   <p>It creates a resource called “rabbitmq-consumer-group” with 6 
partitions. The execution mode is set to AUTO_REBALANCE. This means that the 
Helix controls the assignment of partition to consumers and automatically 
distributes the partitions evenly among the active consumers. When a consumer 
is added or removed, it ensures that a minimum number of partitions are 
shuffled.</p> 
-   <div class="source"> 
-    <pre><code>zkclient = new ZkClient(zkAddr, 
ZkClient.DEFAULT_SESSION_TIMEOUT,
-    ZkClient.DEFAULT_CONNECTION_TIMEOUT, new ZNRecordSerializer());
-ZKHelixAdmin admin = new ZKHelixAdmin(zkclient);
-
-// add cluster
-admin.addCluster(clusterName, true);
-
-// add state model definition
-StateModelConfigGenerator generator = new StateModelConfigGenerator();
-admin.addStateModelDef(clusterName, "OnlineOffline",
-    new StateModelDefinition(generator.generateConfigForOnlineOffline()));
-
-// add resource "topic" which has 6 partitions
-String resourceName = "rabbitmq-consumer-group";
-admin.addResource(clusterName, resourceName, 6, "OnlineOffline", 
"AUTO_REBALANCE");
-</code></pre> 
-   </div> 
-  </section> 
- </section> 
- <section> 
-  <h3 id="Starting_the_Consumers">Starting the Consumers</h3> 
-  <p>The only thing consumers need to know is the ZooKeeper address, cluster 
name and consumer ID. It does not need to know anything else.</p> 
-  <div class="source"> 
-   <pre><code>_manager = HelixManagerFactory.getZKHelixManager(_clusterName,
-                                                 _consumerId,
-                                                 InstanceType.PARTICIPANT,
-                                                 _zkAddr);
-
-StateMachineEngine stateMach = _manager.getStateMachineEngine();
-ConsumerStateModelFactory modelFactory =
-    new ConsumerStateModelFactory(_consumerId, _mqServer);
-stateMach.registerStateModelFactory("OnlineOffline", modelFactory);
-
-_manager.connect();
-</code></pre> 
-  </div> 
-  <p>Once the consumer has registered the state model and the controller is 
started, the consumer starts getting callbacks (onBecomeOnlineFromOffline) for 
the partition it needs to host. All it needs to do as part of the callback is 
to start consuming messages from the appropriate queue. Similarly, when the 
controller deallocates a partitions from a consumer, it fires 
onBecomeOfflineFromOnline for the same partition. As a part of this transition, 
the consumer will stop consuming from a that queue.</p> 
-  <div class="source"> 
-   <pre><code>@Transition(to = "ONLINE", from = "OFFLINE")
-public void onBecomeOnlineFromOffline(Message message, NotificationContext 
context) {
-  LOG.debug(_consumerId + " becomes ONLINE from OFFLINE for " + _partition);
-  if (_thread == null) {
-    LOG.debug("Starting ConsumerThread for " + _partition + "...");
-    _thread = new ConsumerThread(_partition, _mqServer, _consumerId);
-    _thread.start();
-    LOG.debug("Starting ConsumerThread for " + _partition + " done");
-
-  }
-}
-
-@Transition(to = "OFFLINE", from = "ONLINE")
-public void onBecomeOfflineFromOnline(Message message, NotificationContext 
context)
-    throws InterruptedException {
-  LOG.debug(_consumerId + " becomes OFFLINE from ONLINE for " + _partition);
-  if (_thread != null) {
-    LOG.debug("Stopping " + _consumerId + " for " + _partition + "...");
-    _thread.interrupt();
-    _thread.join(2000);
-    _thread = null;
-    LOG.debug("Stopping " +  _consumerId + " for " + _partition + " done");
-  }
-}
-</code></pre> 
-  </div> 
- </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="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 class="active">
-                                                       <a href="#" 
title="Rabbit MQ consumer group">Rabbit MQ consumer group</a>
+                                                       <a href="#" 
title="Rabbit MQ consumer group">Rabbit MQ consumer group </a>
                                                </li>
-                                               <li >
-                                                       <a 
href="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="service_discovery.html" title="Service discovery">Service discovery</a>
+                                               <li class="active">
+                                                       <a href="#" 
title="Service discovery">Service discovery </a>
                                                </li>
-                                               <li >
-                                                       <a 
href="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/recipes/rsync_replicated_file_store.html
URL: 
http://svn.apache.org/viewvc/helix/site-content/1.0.2-docs/recipes/rsync_replicated_file_store.html?rev=1906412&r1=1906411&r2=1906412&view=diff
==============================================================================
--- helix/site-content/1.0.2-docs/recipes/rsync_replicated_file_store.html 
(original)
+++ helix/site-content/1.0.2-docs/recipes/rsync_replicated_file_store.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-recipes-rsync_replicated_file_store 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 
active">
                                                                <a href="#" 
class="dropdown-toggle" data-toggle="dropdown">Recipes <b class="caret"></b></a>
                                                                <ul 
class="dropdown-menu">
-                                                                       <li ><a 
href="lock_manager.html" title="Distributed lock manager">Distributed lock 
manager</a></li>
-                                                                       <li ><a 
href="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>
-                                                                       <li ><a 
href="service_discovery.html" title="Service discovery">Service 
discovery</a></li>
-                                                                       <li ><a 
href="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>Near-Realtime Rsync Replicated File 
System</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,231 +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.
---> 
-<section> 
- <div class="page-header">
-  <h2 id="Near-Realtime_Rsync_Replicated_File_System">Near-Realtime Rsync 
Replicated File System</h2>
- </div> 
- <section> 
-  <h3 id="Quick_Demo">Quick Demo</h3> 
-  <ul> 
-   <li>This demo starts 3 instances with id's as <code>localhost_12001, 
localhost_12002, localhost_12003</code></li> 
-   <li>Each instance stores its files under 
<code>/tmp/&lt;id&gt;/filestore</code></li> 
-   <li><code>localhost_12001</code> is designated as the master, and 
<code>localhost_12002</code> and <code>localhost_12003</code> are the 
slaves</li> 
-   <li>Files written to the master are replicated to the slaves automatically. 
In this demo, a.txt and b.txt are written to 
<code>/tmp/localhost_12001/filestore</code> and they get replicated to other 
folders.</li> 
-   <li>When the master is stopped, <code>localhost_12002</code> is promoted to 
master.</li> 
-   <li>The other slave <code>localhost_12003</code> stops replicating from 
<code>localhost_12001</code> and starts replicating from new master 
<code>localhost_12002</code></li> 
-   <li>Files written to new master <code>localhost_12002</code> are replicated 
to <code>localhost_12003</code></li> 
-   <li>In the end state of this quick demo, <code>localhost_12002</code> is 
the master and <code>localhost_12003</code> is the slave. Manually create files 
under <code>/tmp/localhost_12002/filestore</code> and see that appear in 
<code>/tmp/localhost_12003/filestore</code></li> 
-   <li>Ignore the interrupted exceptions on the console :-)</li> 
-  </ul> 
-  <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
-cd recipes/rsync-replicated-file-system/
-mvn clean install package -DskipTests
-cd target/rsync-replicated-file-system-pkg/bin
-chmod +x *
-./quickdemo
-
-</code></pre> 
-  </div> 
- </section> 
- <section> 
-  <h3 id="Overview">Overview</h3> 
-  <p>There are many applications that require storage for storing large number 
of relatively small data files. Examples include media stores to store small 
videos, images, mail attachments etc. Each of these objects is typically 
kilobytes, often no larger than a few megabytes. An additional distinguishing 
feature of these use cases is that files are typically only added or deleted, 
rarely updated. When there are updates, they do not have any concurrency 
requirements.</p> 
-  <p>These are much simpler requirements than what general purpose distributed 
file system have to satisfy; these would include concurrent access to files, 
random access for reads and updates, posix compliance, and others. To satisfy 
those requirements, general DFSs are also pretty complex that are expensive to 
build and maintain.</p> 
-  <p>A different implementation of a distributed file system includes HDFS 
which is inspired by Google's GFS. This is one of the most widely used 
distributed file system that forms the main data storage platform for Hadoop. 
HDFS is primary aimed at processing very large data sets and distributes files 
across a cluster of commodity servers by splitting up files in fixed size 
chunks. HDFS is not particularly well suited for storing a very large number of 
relatively tiny files.</p> 
- </section> 
- <section> 
-  <h3 id="File_Store">File Store</h3> 
-  <p>It's possible to build a vastly simpler system for the class of 
applications that have simpler requirements as we have pointed out.</p> 
-  <ul> 
-   <li>Large number of files but each file is relatively small</li> 
-   <li>Access is limited to create, delete and get entire files</li> 
-   <li>No updates to files that are already created (or it's feasible to 
delete the old file and create a new one)</li> 
-  </ul> 
-  <p>We call this system a Partitioned File Store (PFS) to distinguish it from 
other distributed file systems. This system needs to provide the following 
features:</p> 
-  <ul> 
-   <li>CRD access to large number of small files</li> 
-   <li>Scalability: Files should be distributed across a large number of 
commodity servers based on the storage requirement</li> 
-   <li>Fault-tolerance: Each file should be replicated on multiple servers so 
that individual server failures do not reduce availability</li> 
-   <li>Elasticity: It should be possible to add capacity to the cluster 
easily</li> 
-  </ul> 
-  <p>Apache Helix is a generic cluster management framework that makes it very 
easy to provide scalability, fault-tolerance and elasticity features. rsync can 
be easily used as a replication channel between servers so that each file gets 
replicated on multiple servers.</p> 
- </section> 
- <section> 
-  <h3 id="Design">Design</h3> 
-  <section> 
-   <h4 id="High_Level">High Level</h4> 
-   <ul> 
-    <li>Partition the file system based on the file name</li> 
-    <li>At any time a single writer can write, we call this a master</li> 
-    <li>For redundancy, we need to have additional replicas called slave. 
Slaves can optionally serve reads</li> 
-    <li>Slave replicates data from the master</li> 
-    <li>When a master fails, a slave gets promoted to master</li> 
-   </ul> 
-  </section> 
-  <section> 
-   <h4 id="Transaction_Log">Transaction Log</h4> 
-   <p>Every write on the master will result in creation/deletion of one or 
more files. In order to maintain timeline consistency slaves need to apply the 
changes in the same order To facilitate this, the master logs each transaction 
in a file and each transaction is associated with an 64 bit ID in which the 32 
LSB represents a sequence number and MSB represents the generation number The 
sequence number gets incremented on every transaction and the generation is 
incremented when a new master is elected</p> 
-  </section> 
-  <section> 
-   <h4 id="Replication">Replication</h4> 
-   <p>Replication is required for slaves to keep up with changes on the 
master. Every time the slave applies a change it checkpoints the last applied 
transaction ID. During restarts, this allows the slave to pull changes from the 
last checkpointed ID. Similar to master, the slave logs each transaction to the 
transaction logs but instead of generating new transaction ID, it uses the same 
ID generated by the master.</p> 
-  </section> 
-  <section> 
-   <h4 id="Failover">Failover</h4> 
-   <p>When a master fails, a new slave will be promoted to master. If the 
previous master node is reachable, then the new master will flush all the 
changes from previous the master before taking up mastership. The new master 
will record the end transaction ID of the current generation and then start a 
new generation with sequence starting from 1. After this the master will begin 
accepting writes.</p> 
-   <p><img src="../images/PFS-Generic.png" alt="Partitioned File Store"></p> 
-  </section> 
- </section> 
- <section> 
-  <h3 id="Rsync-based_Solution">Rsync-based Solution</h3> 
-  <p><img src="../images/RSYNC_BASED_PFS.png" alt="Rsync based File 
Store"></p> 
-  <p>This application demonstrates a file store that uses rsync as the 
replication mechanism. One can envision a similar system where instead of using 
rsync, one can implement a custom solution to notify the slave of the changes 
and also provide an api to pull the change files.</p> 
-  <section> 
-   <h4 id="Concepts">Concepts</h4> 
-   <ul> 
-    <li>file_store_dir: Root directory for the actual data files</li> 
-    <li>change_log_dir: The transaction logs are generated under this 
folder</li> 
-    <li>check_point_dir: The slave stores the check points ( last processed 
transaction) here</li> 
-   </ul> 
-  </section> 
-  <section> 
-   <h4 id="Master">Master</h4> 
-   <ul> 
-    <li>File server: This component supports file uploads and downloads and 
writes the files to <code>file_store_dir</code>. This is not included in this 
application. The idea is that most applications have different ways of 
implementing this component and have some associated business logic. It is not 
hard to come up with such a component if needed.</li> 
-    <li>File store watcher: This component watches the 
<code>file_store_dir</code> directory on the local file system for any changes 
and notifies the registered listeners of the changes</li> 
-    <li>Change log generator: This registers as a listener of the file store 
watcher and on each notification logs the changes into a file under 
<code>change_log_dir</code></li> 
-   </ul> 
-  </section> 
-  <section> 
-   <h4 id="Slave">Slave</h4> 
-   <ul> 
-    <li>File server: This component on the slave will only support reads</li> 
-    <li>Cluster state observer: Slave observes the cluster state and is able 
to know who is the current master</li> 
-    <li>Replicator: This has two subcomponents 
-     <ul> 
-      <li>Periodic rsync of change log: This is a background process that 
periodically rsyncs the <code>change_log_dir</code> of the master to its local 
directory</li> 
-      <li>Change Log Watcher: This watches the <code>change_log_dir</code> for 
changes and notifies the registered listeners of the change</li> 
-      <li>On demand rsync invoker: This is registered as a listener to change 
log watcher and on every change invokes rsync to sync only the changed 
file</li> 
-     </ul> </li> 
-   </ul> 
-  </section> 
-  <section> 
-   <h4 id="Coordination">Coordination</h4> 
-   <p>The coordination between nodes is done by Helix. Helix does the 
partition management and assigns the partition to multiple nodes based on the 
replication factor. It elects one the nodes as master and designates others as 
slaves. It provides notifications to each node in the form of state transitions 
(Offline to Slave, Slave to Master). It also provides notifications when there 
is change is cluster state. This allows the slave to stop replicating from 
current master and start replicating from new master.</p> 
-   <p>In this application, we have only one partition but its very easy to 
extend it to support multiple partitions. By partitioning the file store, one 
can add new nodes and Helix will automatically re-distribute partitions among 
the nodes. To summarize, Helix provides partition management, fault tolerance 
and facilitates automated cluster expansion.</p> 
-  </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="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="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 class="active">
-                                                       <a href="#" 
title="Rsync replicated file store">Rsync replicated file store</a>
+                                                       <a href="#" 
title="Rsync replicated file store">Rsync replicated file store </a>
                                                </li>
-                                               <li >
-                                                       <a 
href="service_discovery.html" title="Service discovery">Service discovery</a>
+                                               <li class="active">
+                                                       <a href="#" 
title="Service discovery">Service discovery </a>
                                                </li>
-                                               <li >
-                                                       <a 
href="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/recipes/service_discovery.html
URL: 
http://svn.apache.org/viewvc/helix/site-content/1.0.2-docs/recipes/service_discovery.html?rev=1906412&r1=1906411&r2=1906412&view=diff
==============================================================================
--- helix/site-content/1.0.2-docs/recipes/service_discovery.html (original)
+++ helix/site-content/1.0.2-docs/recipes/service_discovery.html Thu Jan  5 
19:48:20 2023
@@ -1,101 +1,73 @@
 
 <!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">
 
        <head>
                <meta charset="UTF-8" />
-               <title>Apache Helix &#x2013; Service Discovery</title>
+               <title>Apache Helix &#x2013; </title>
                <meta name="viewport" content="width=device-width, 
initial-scale=1.0" />
                <meta name="description" content="" />
                <meta http-equiv="content-language" content="en" />
 
-               <link href="../css/bootstrap.min.css" rel="stylesheet" />
-               <link href="../css/bootstrap-responsive.min.css" 
rel="stylesheet" />
+               <link 
href="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-recipes-service_discovery 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 
active">
                                                                <a href="#" 
class="dropdown-toggle" data-toggle="dropdown">Recipes <b class="caret"></b></a>
                                                                <ul 
class="dropdown-menu">
-                                                                       <li ><a 
href="lock_manager.html" title="Distributed lock manager">Distributed lock 
manager</a></li>
-                                                                       <li ><a 
href="rabbitmq_consumer_group.html" title="Rabbit MQ consumer group">Rabbit MQ 
consumer group</a></li>
-                                                                       <li ><a 
href="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>
-                                                                       <li ><a 
href="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><a href="" title="Release 1.0.2">Release 
1.0.2 </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>Service Discovery</li>
-                               <li class="publishDate version-date 
pull-right">Last Published: 2022-10-19</li>
+                               <li></li>
+                               <li class="publishDate version-date 
pull-right">Last Published: 2022-04-15</li>
                        </ul>
                </div>
        </header>
@@ -141,276 +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.
---> 
-<section> 
- <div class="page-header">
-  <h2 id="Service_Discovery">Service Discovery</h2>
- </div> 
- <p>One of the common usage of ZooKeeper is to enable service discovery. The 
basic idea is that when a server starts up it advertises its 
configuration/metadata such as its hostname and port on ZooKeeper. This allows 
clients to dynamically discover the servers that are currently active. One can 
think of this like a service registry to which a server registers when it 
starts and is automatically deregistered when it shutdowns or crashes. In many 
cases it serves as an alternative to VIPs.</p> 
- <p>The core idea behind this is to use ZooKeeper ephemeral nodes. The 
ephemeral nodes are created when the server registers and all its metadata is 
put into a ZNode. When the server shutdowns, ZooKeeper automatically removes 
this ZNode.</p> 
- <p>There are two ways the clients can dynamically discover the active 
servers:</p> 
- <section> 
-  <h3 id="ZooKeeper_Watch">ZooKeeper Watch</h3> 
-  <p>Clients can set a child watch under specific path on ZooKeeper. When a 
new service is registered/deregistered, ZooKeeper notifies the client via a 
watch event and the client can read the list of services. Even though this 
looks trivial, there are lot of things one needs to keep in mind like ensuring 
that you first set the watch back on ZooKeeper before reading data.</p> 
- </section> 
- <section> 
-  <h3 id="Poll">Poll</h3> 
-  <p>Another approach is for the client to periodically read the ZooKeeper 
path and get the list of services.</p> 
-  <p>Both approaches have pros and cons, for example setting a watch might 
trigger herd effect if there are large number of clients. This is problematic, 
especially when servers are starting up. But the advantage to setting watches 
is that clients are immediately notified of a change which is not true in case 
of polling. In some cases, having both watches and polls makes sense; watch 
allows one to get notifications as soon as possible while poll provides a 
safety net if a watch event is missed because of code bug or ZooKeeper fails to 
notify.</p> 
- </section> 
- <section> 
-  <h3 id="Other_Developer_Considerations">Other Developer Considerations</h3> 
-  <ul> 
-   <li>What happens when the ZooKeeper session expires? All the watches and 
ephemeral nodes previously added or created by this server are lost. One needs 
to add the watches again, recreate the ephemeral nodes, and so on.</li> 
-   <li>Due to network issues or Java GC pauses session expiry might happen 
again and again; this phenomenon is known as flapping. It's important for the 
server to detect this and deregister itself.</li> 
-  </ul> 
- </section> 
- <section> 
-  <h3 id="Other_Operational_Considerations">Other Operational 
Considerations</h3> 
-  <ul> 
-   <li>What if the node is behaving badly? One might kill the server, but it 
will lose the ability to debug. It would be nice to have the ability to mark a 
server as disabled and clients know that a node is disabled and will not 
contact that node.</li> 
-  </ul> 
- </section> 
- <section> 
-  <h3 id="Configuration_Ownership">Configuration Ownership</h3> 
-  <p>This is an important aspect that is often ignored in the initial stages 
of your development. Typically, the service discovery pattern means that 
servers start up with some configuration which it simply puts into ZooKeeper. 
While this works well in the beginning, configuration management becomes very 
difficult since the servers themselves are statically configured. Any change in 
server configuration implies restarting the server. Ideally, it will be nice to 
have the ability to change configuration dynamically without having to restart 
a server.</p> 
-  <p>Ideally you want a hybrid solution, a node starts with minimal 
configuration and gets the rest of configuration from ZooKeeper.</p> 
- </section> 
- <section> 
-  <h3 id="Using_Helix_for_Service_Discovery">Using Helix for Service 
Discovery</h3> 
-  <p>Even though Helix has a higher-level abstraction in terms of state 
machines, constraints and objectives, service discovery is one of things has 
been a prevalent use case from the start. The controller uses the exact 
mechanism we described above to discover when new servers join the cluster. We 
create these ZNodes under /CLUSTERNAME/LIVEINSTANCES. Since at any time there 
is only one controller, we use a ZK watch to track the liveness of a 
server.</p> 
-  <p>This recipe simply demonstrates how one can re-use that part for 
implementing service discovery. This demonstrates multiple modes of service 
discovery:</p> 
-  <ul> 
-   <li>POLL: The client reads from zookeeper at regular intervals 30 seconds. 
Use this if you have 100's of clients</li> 
-   <li>WATCH: The client sets up watcher and gets notified of the changes. Use 
this if you have 10's of clients</li> 
-   <li>NONE: This does neither of the above, but reads directly from zookeeper 
when ever needed</li> 
-  </ul> 
-  <p>Helix provides these additional features compared to other 
implementations available elsewhere:</p> 
-  <ul> 
-   <li>It has the concept of disabling a node which means that a badly 
behaving node can be disabled using the Helix admin API</li> 
-   <li>It automatically detects if a node connects/disconnects from zookeeper 
repeatedly and disables the node</li> 
-   <li>Configuration management 
-    <ul> 
-     <li>Allows one to set configuration via the admin API at various 
granulaties like cluster, instance, resource, partition</li> 
-     <li>Configurations can be dynamically changed</li> 
-     <li>The server is notified when configurations change</li> 
-    </ul> </li> 
-  </ul> 
- </section> 
- <section> 
-  <h3 id="Checkout_and_Build">Checkout and 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 clean install package -DskipTests
-cd recipes/service-discovery/target/service-discovery-pkg/bin
-chmod +x *
-</code></pre> 
-  </div> 
- </section> 
- <section> 
-  <h3 id="Start_ZooKeeper">Start ZooKeeper</h3> 
-  <div class="source"> 
-   <pre><code>./start-standalone-zookeeper 2199
-</code></pre> 
-  </div> 
- </section> 
- <section> 
-  <h3 id="Run_the_Demo">Run the Demo</h3> 
-  <div class="source"> 
-   <pre><code>./service-discovery-demo.sh
-</code></pre> 
-  </div> 
- </section> 
- <section> 
-  <h3 id="Output">Output</h3> 
-  <div class="source"> 
-   <pre><code>START:Service discovery demo mode:WATCH
-       Registering service
-               host.x.y.z_12000
-               host.x.y.z_12001
-               host.x.y.z_12002
-               host.x.y.z_12003
-               host.x.y.z_12004
-       SERVICES AVAILABLE
-               SERVICENAME     HOST                    PORT
-               myServiceName   host.x.y.z              12000
-               myServiceName   host.x.y.z              12001
-               myServiceName   host.x.y.z              12002
-               myServiceName   host.x.y.z              12003
-               myServiceName   host.x.y.z              12004
-       Deregistering service:
-               host.x.y.z_12002
-       SERVICES AVAILABLE
-               SERVICENAME     HOST                    PORT
-               myServiceName   host.x.y.z              12000
-               myServiceName   host.x.y.z              12001
-               myServiceName   host.x.y.z              12003
-               myServiceName   host.x.y.z              12004
-       Registering service:host.x.y.z_12002
-END:Service discovery demo mode:WATCH
-=============================================
-START:Service discovery demo mode:POLL
-       Registering service
-               host.x.y.z_12000
-               host.x.y.z_12001
-               host.x.y.z_12002
-               host.x.y.z_12003
-               host.x.y.z_12004
-       SERVICES AVAILABLE
-               SERVICENAME     HOST                    PORT
-               myServiceName   host.x.y.z              12000
-               myServiceName   host.x.y.z              12001
-               myServiceName   host.x.y.z              12002
-               myServiceName   host.x.y.z              12003
-               myServiceName   host.x.y.z              12004
-       Deregistering service:
-               host.x.y.z_12002
-       Sleeping for poll interval:30000
-       SERVICES AVAILABLE
-               SERVICENAME     HOST                    PORT
-               myServiceName   host.x.y.z              12000
-               myServiceName   host.x.y.z              12001
-               myServiceName   host.x.y.z              12003
-               myServiceName   host.x.y.z              12004
-       Registering service:host.x.y.z_12002
-END:Service discovery demo mode:POLL
-=============================================
-START:Service discovery demo mode:NONE
-       Registering service
-               host.x.y.z_12000
-               host.x.y.z_12001
-               host.x.y.z_12002
-               host.x.y.z_12003
-               host.x.y.z_12004
-       SERVICES AVAILABLE
-               SERVICENAME     HOST                    PORT
-               myServiceName   host.x.y.z              12000
-               myServiceName   host.x.y.z              12001
-               myServiceName   host.x.y.z              12002
-               myServiceName   host.x.y.z              12003
-               myServiceName   host.x.y.z              12004
-       Deregistering service:
-               host.x.y.z_12000
-       SERVICES AVAILABLE
-               SERVICENAME     HOST                    PORT
-               myServiceName   host.x.y.z              12001
-               myServiceName   host.x.y.z              12002
-               myServiceName   host.x.y.z              12003
-               myServiceName   host.x.y.z              12004
-       Registering service:host.x.y.z_12000
-END:Service discovery demo mode:NONE
-=============================================
-</code></pre> 
-  </div> 
- </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="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="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="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 class="active">
-                                                       <a href="#" 
title="Service discovery">Service discovery</a>
+                                                       <a href="#" 
title="Service discovery">Service discovery </a>
                                                </li>
-                                               <li >
-                                                       <a 
href="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


Reply via email to