You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jb...@apache.org on 2015/09/29 07:38:11 UTC

svn commit: r1705801 [1/2] - in /karaf/site/production/manual/cellar/latest-4: ./ architecture-guide/ images/ user-guide/

Author: jbonofre
Date: Tue Sep 29 05:38:10 2015
New Revision: 1705801

URL: http://svn.apache.org/viewvc?rev=1705801&view=rev
Log:
[scm-publish] Updating main site with Karaf Cellar manual

Added:
    karaf/site/production/manual/cellar/latest-4/architecture-guide/
    karaf/site/production/manual/cellar/latest-4/architecture-guide/broadcasting_commands.html
    karaf/site/production/manual/cellar/latest-4/architecture-guide/design.html
    karaf/site/production/manual/cellar/latest-4/architecture-guide/hazelcast.html
    karaf/site/production/manual/cellar/latest-4/architecture-guide/index.html
    karaf/site/production/manual/cellar/latest-4/architecture-guide/overview.html
    karaf/site/production/manual/cellar/latest-4/architecture-guide/supported_events.html
    karaf/site/production/manual/cellar/latest-4/images/
    karaf/site/production/manual/cellar/latest-4/images/architecture.jpg   (with props)
    karaf/site/production/manual/cellar/latest-4/images/cross_topology.jpg   (with props)
    karaf/site/production/manual/cellar/latest-4/images/event_flow.jpg   (with props)
    karaf/site/production/manual/cellar/latest-4/images/shared_architecture.jpg   (with props)
    karaf/site/production/manual/cellar/latest-4/images/star_topology.jpg   (with props)
    karaf/site/production/manual/cellar/latest-4/index.html
    karaf/site/production/manual/cellar/latest-4/overview.html
    karaf/site/production/manual/cellar/latest-4/user-guide/
    karaf/site/production/manual/cellar/latest-4/user-guide/cloud.html
    karaf/site/production/manual/cellar/latest-4/user-guide/deploy.html
    karaf/site/production/manual/cellar/latest-4/user-guide/event.html
    karaf/site/production/manual/cellar/latest-4/user-guide/groups.html
    karaf/site/production/manual/cellar/latest-4/user-guide/hazelcast.html
    karaf/site/production/manual/cellar/latest-4/user-guide/http-balancer.html
    karaf/site/production/manual/cellar/latest-4/user-guide/http-session.html
    karaf/site/production/manual/cellar/latest-4/user-guide/index.html
    karaf/site/production/manual/cellar/latest-4/user-guide/installation.html
    karaf/site/production/manual/cellar/latest-4/user-guide/introduction.html
    karaf/site/production/manual/cellar/latest-4/user-guide/nodes.html
    karaf/site/production/manual/cellar/latest-4/user-guide/obr.html
    karaf/site/production/manual/cellar/latest-4/user-guide/services_registries.html
    karaf/site/production/manual/cellar/latest-4/user-guide/transport.html

Added: karaf/site/production/manual/cellar/latest-4/architecture-guide/broadcasting_commands.html
URL: http://svn.apache.org/viewvc/karaf/site/production/manual/cellar/latest-4/architecture-guide/broadcasting_commands.html?rev=1705801&view=auto
==============================================================================
--- karaf/site/production/manual/cellar/latest-4/architecture-guide/broadcasting_commands.html (added)
+++ karaf/site/production/manual/cellar/latest-4/architecture-guide/broadcasting_commands.html Tue Sep 29 05:38:10 2015
@@ -0,0 +1,56 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd"> 
+<html lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+    <meta name="description" content="description goes here"/>
+    <meta name="keywords" content="keywords,goes,here"/>
+    <meta name="author" content="The Apache Karaf Team"/>
+    <link href="../css/style.css" rel="stylesheet" type="text/css"/>
+    <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/>
+    <title>
+      Apache Karaf Cellar 4.0.1-SNAPSHOT Guides
+    </title>
+  </head>
+  <body>
+    <table width="100%" cellpadding="0" cellspacing="0">
+      <tr width="100%">
+        <td id="cell-0-0" colspan="2">
+          &nbsp;
+        </td>
+        <td id="cell-0-1">
+          &nbsp;
+        </td>
+        <td id="cell-0-2" colspan="2">
+          &nbsp;
+        </td>
+      </tr>
+      <tr width="100%">
+        <td id="cell-1-0">
+          &nbsp;
+        </td>
+        <td id="cell-1-1">
+          &nbsp;
+        </td>
+        <td id="cell-1-2">
+          <div style="padding: 5px;">
+            <div id="banner">
+              <h1 id="Broadcastingcommands">Broadcasting commands</h1><p>Commands are a special kind of event. They imply that when they are handled, a Result event will be fired<br/>containing the outcome of the command. For each command, we have one result per recipient. Each command<br/>contains an unique id (unique for all cluster nodes, created from Hazelcast). This id is used to correlate<br/>the request with the result. For each result successfully correlated the result is added to list of results<br/>on the command object. If the list gets full of if 10 seconds from the command execution have elapsed, the list<br/>is moved to a blocking queue from which the result can be retrieved.</p><p>The following code snippet shows what happens when a command is sent for execution:</p><pre>
+public Map&lt;node,result> execute(Command command) throws Exception {  
+   if (command == null) {  
+      throw new Exception("Command store not found");  
+   } else {  
+      //store the command to correlate it with the result.  
+      commandStore.getPending().put(command.getId(), command);  
+      //I create a timeout task and schedule it  
+      TimeoutTask timeoutTask = new TimeoutTask(command, commandStore);  
+      ScheduledFuture timeoutFuture = timeoutScheduler.schedule(timeoutTask, command.getTimeout(), TimeUnit.MILLISECONDS);  
+   }  
+   if (producer != null) {  
+      //send the command to the topic  
+      producer.produce(command);  
+      //retrieve the result list from the blocking queue.  
+      return command.getResult();  
+   }  
+   throw new Exception("Command producer not found");  
+}  
+</pre>
\ No newline at end of file

Added: karaf/site/production/manual/cellar/latest-4/architecture-guide/design.html
URL: http://svn.apache.org/viewvc/karaf/site/production/manual/cellar/latest-4/architecture-guide/design.html?rev=1705801&view=auto
==============================================================================
--- karaf/site/production/manual/cellar/latest-4/architecture-guide/design.html (added)
+++ karaf/site/production/manual/cellar/latest-4/architecture-guide/design.html Tue Sep 29 05:38:10 2015
@@ -0,0 +1,37 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd"> 
+<html lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+    <meta name="description" content="description goes here"/>
+    <meta name="keywords" content="keywords,goes,here"/>
+    <meta name="author" content="The Apache Karaf Team"/>
+    <link href="../css/style.css" rel="stylesheet" type="text/css"/>
+    <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/>
+    <title>
+      Apache Karaf Cellar 4.0.1-SNAPSHOT Guides
+    </title>
+  </head>
+  <body>
+    <table width="100%" cellpadding="0" cellspacing="0">
+      <tr width="100%">
+        <td id="cell-0-0" colspan="2">
+          &nbsp;
+        </td>
+        <td id="cell-0-1">
+          &nbsp;
+        </td>
+        <td id="cell-0-2" colspan="2">
+          &nbsp;
+        </td>
+      </tr>
+      <tr width="100%">
+        <td id="cell-1-0">
+          &nbsp;
+        </td>
+        <td id="cell-1-1">
+          &nbsp;
+        </td>
+        <td id="cell-1-2">
+          <div style="padding: 5px;">
+            <div id="banner">
+              <h1 id="Design">Design</h1><p>The design works with the following entities:</p><ul><li><strong>OSGi Listener</strong> An interface which implements a listener for specific OSGi events (e.g. ConfigurationListener).</li><li><strong>Event</strong> The object that contains all the required information required to describe the event (e.g. PID changed).</li><li><strong>Event Topic</strong> The distributed topic used to broadcast events. It is common for all event types.</li><li><strong>Shared Map</strong> The distributed collection that serves as shared resource. We use one per event type.</li><li><strong>Event Handler</strong> The processor which processes remote events received through the topic.</li><li><strong>Event Dispatcher</strong> The unit which decides which event should be processed by which event handlers.</li><li><strong>Command</strong> A special type of event that is linked to a list of events that represent the outcome of the command.</li><li><strong>Result</
 strong> A special type of event that represents the outcome of a command. Commands and results are correlated.</li></ul><p><img border="0" src="../images/event_flow.jpg"/></p><p>The OSGi specification uses the Events and Listener paradigm in many situations (e.g. ConfigurationChangeEvent<br/>and ConfigurationListener). By implementing such a Listener and exposing it as an OSGi service to the Service<br/>Registry, we can be sure that we are "listening" for the events that we are interested in.</p><p>When the listener is notified of an event, it forwards the Event object to a Hazelcazst distributed topic. To<br/>keep things as simple as possible, we keep a single topic for all event types. Each node has a listener<br/>registered on that topic and gets/sends all events to the event dispatcher.</p><p>When the Event Dispatcher receives an event, it looks up an internal registry (in our case the OSGi Service Registry)<br/>to find an Event Handler that can handle the received Event. The ha
 ndler found receives the event and processes it.</p>
\ No newline at end of file

Added: karaf/site/production/manual/cellar/latest-4/architecture-guide/hazelcast.html
URL: http://svn.apache.org/viewvc/karaf/site/production/manual/cellar/latest-4/architecture-guide/hazelcast.html?rev=1705801&view=auto
==============================================================================
--- karaf/site/production/manual/cellar/latest-4/architecture-guide/hazelcast.html (added)
+++ karaf/site/production/manual/cellar/latest-4/architecture-guide/hazelcast.html Tue Sep 29 05:38:10 2015
@@ -0,0 +1,37 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd"> 
+<html lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+    <meta name="description" content="description goes here"/>
+    <meta name="keywords" content="keywords,goes,here"/>
+    <meta name="author" content="The Apache Karaf Team"/>
+    <link href="../css/style.css" rel="stylesheet" type="text/css"/>
+    <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/>
+    <title>
+      Apache Karaf Cellar 4.0.1-SNAPSHOT Guides
+    </title>
+  </head>
+  <body>
+    <table width="100%" cellpadding="0" cellspacing="0">
+      <tr width="100%">
+        <td id="cell-0-0" colspan="2">
+          &nbsp;
+        </td>
+        <td id="cell-0-1">
+          &nbsp;
+        </td>
+        <td id="cell-0-2" colspan="2">
+          &nbsp;
+        </td>
+      </tr>
+      <tr width="100%">
+        <td id="cell-1-0">
+          &nbsp;
+        </td>
+        <td id="cell-1-1">
+          &nbsp;
+        </td>
+        <td id="cell-1-2">
+          <div style="padding: 5px;">
+            <div id="banner">
+              <h1 id="TheroleofHazelcast">The role of Hazelcast</h1><p>The idea behind the clustering engine is that for each unit that we want to replicate, we create an event,<br/>broadcast the event to the cluster and hold the unit state to a shared resource, so that the rest of the<br/>nodes can look up and retrieve the changes.</p><p><img border="0" src="../images/shared_architecture.jpg"/></p><p>For instance, we want all nodes in our cluster to share configuration for PIDs a.b.c and x.y.z. On node<br/>"Karaf A" a change occurs on a.b.c. "Karaf A" updated the shared repository data for a.b.c and then notifies<br/>the rest of the nodes that a.b.c has changed. Each node looks up the shared repository and retrieves changes.</p><p>The architecture as described so far could be implemented using a database/shared filesystem as a shared<br/>resource and polling instead of multicasting events. So why use Hazelcast ?</p><p>Hazelcast fits in perfectly because it offers:</p><ul><li>Auto d
 iscovery<ul><li>Cluster nodes can discover each other automatically.</li><li>No configuration is required.</li></ul></li><li>No single point of failure<ul><li>No server or master is required for clustering</li><li>The shared resource is distributed, hence we introduce no single point of failure.</li></ul></li><li>Provides distributed topics<ul><li>Using in memory distributed topics allows us to broadcast events/commands which are valuable for management and monitoring.</li></ul></li></ul><p>In other words, Hazelcast allows us to setup a cluster with zero configuration and no dependency to external<br/>systems such as a database or a shared file system.</p><p>See the Hazelcast documentation at http://www.hazelcast.com/documentation.jsp for more information.</p>
\ No newline at end of file

Added: karaf/site/production/manual/cellar/latest-4/architecture-guide/index.html
URL: http://svn.apache.org/viewvc/karaf/site/production/manual/cellar/latest-4/architecture-guide/index.html?rev=1705801&view=auto
==============================================================================
--- karaf/site/production/manual/cellar/latest-4/architecture-guide/index.html (added)
+++ karaf/site/production/manual/cellar/latest-4/architecture-guide/index.html Tue Sep 29 05:38:10 2015
@@ -0,0 +1,37 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd"> 
+<html lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+    <meta name="description" content="description goes here"/>
+    <meta name="keywords" content="keywords,goes,here"/>
+    <meta name="author" content="The Apache Karaf Team"/>
+    <link href="../css/style.css" rel="stylesheet" type="text/css"/>
+    <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/>
+    <title>
+      Apache Karaf Cellar 4.0.1-SNAPSHOT Guides
+    </title>
+  </head>
+  <body>
+    <table width="100%" cellpadding="0" cellspacing="0">
+      <tr width="100%">
+        <td id="cell-0-0" colspan="2">
+          &nbsp;
+        </td>
+        <td id="cell-0-1">
+          &nbsp;
+        </td>
+        <td id="cell-0-2" colspan="2">
+          &nbsp;
+        </td>
+      </tr>
+      <tr width="100%">
+        <td id="cell-1-0">
+          &nbsp;
+        </td>
+        <td id="cell-1-1">
+          &nbsp;
+        </td>
+        <td id="cell-1-2">
+          <div style="padding: 5px;">
+            <div id="banner">
+              <h1 id="KarafCellarArchitectureGuide">Karaf Cellar Architecture Guide</h1><ul><li><a href="overview.html">Overview</a></li><li><a href="supported_events.html">Supported Events</a></li><li><a href="hazelcast.html">Why Hazelcast ?</a></li><li><a href="design.html">Cellar Design</a></li><li><a href="broadcasting_commands.html">Broadcasting Commands</a></li></ul>
\ No newline at end of file

Added: karaf/site/production/manual/cellar/latest-4/architecture-guide/overview.html
URL: http://svn.apache.org/viewvc/karaf/site/production/manual/cellar/latest-4/architecture-guide/overview.html?rev=1705801&view=auto
==============================================================================
--- karaf/site/production/manual/cellar/latest-4/architecture-guide/overview.html (added)
+++ karaf/site/production/manual/cellar/latest-4/architecture-guide/overview.html Tue Sep 29 05:38:10 2015
@@ -0,0 +1,37 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd"> 
+<html lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+    <meta name="description" content="description goes here"/>
+    <meta name="keywords" content="keywords,goes,here"/>
+    <meta name="author" content="The Apache Karaf Team"/>
+    <link href="../css/style.css" rel="stylesheet" type="text/css"/>
+    <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/>
+    <title>
+      Apache Karaf Cellar 4.0.1-SNAPSHOT Guides
+    </title>
+  </head>
+  <body>
+    <table width="100%" cellpadding="0" cellspacing="0">
+      <tr width="100%">
+        <td id="cell-0-0" colspan="2">
+          &nbsp;
+        </td>
+        <td id="cell-0-1">
+          &nbsp;
+        </td>
+        <td id="cell-0-2" colspan="2">
+          &nbsp;
+        </td>
+      </tr>
+      <tr width="100%">
+        <td id="cell-1-0">
+          &nbsp;
+        </td>
+        <td id="cell-1-1">
+          &nbsp;
+        </td>
+        <td id="cell-1-2">
+          <div style="padding: 5px;">
+            <div id="banner">
+              <h1 id="ArchitectureOverview">Architecture Overview</h1><p>The core concept behind Karaf Cellar is that each node can be a part of one or more groups that<br/>provide the node distributed memory for keeping data (e.g. configuration, features information, other)<br/>and a topic which is used to exchange events with the rest of the group nodes.</p><p><img border="0" src="../images/architecture.png"/></p><p>Each group comes with a configuration, which defines which events are to be broadcasted and which are<br/>not. Whenever a local change occurs to a node, the node will read the setup information of all the<br/>groups that it belongs to and broadcasts the event to the groups that are whitelisted to the specific event.</p><p>The broadcast operation happens via a distributed topic provided by the group. For the groups<br/>that the broadcast reaches, the distributed configuration data will be updated so that nodes<br/>that join in the future can pickup the change.</p>
\ No newline at end of file

Added: karaf/site/production/manual/cellar/latest-4/architecture-guide/supported_events.html
URL: http://svn.apache.org/viewvc/karaf/site/production/manual/cellar/latest-4/architecture-guide/supported_events.html?rev=1705801&view=auto
==============================================================================
--- karaf/site/production/manual/cellar/latest-4/architecture-guide/supported_events.html (added)
+++ karaf/site/production/manual/cellar/latest-4/architecture-guide/supported_events.html Tue Sep 29 05:38:10 2015
@@ -0,0 +1,37 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd"> 
+<html lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+    <meta name="description" content="description goes here"/>
+    <meta name="keywords" content="keywords,goes,here"/>
+    <meta name="author" content="The Apache Karaf Team"/>
+    <link href="../css/style.css" rel="stylesheet" type="text/css"/>
+    <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/>
+    <title>
+      Apache Karaf Cellar 4.0.1-SNAPSHOT Guides
+    </title>
+  </head>
+  <body>
+    <table width="100%" cellpadding="0" cellspacing="0">
+      <tr width="100%">
+        <td id="cell-0-0" colspan="2">
+          &nbsp;
+        </td>
+        <td id="cell-0-1">
+          &nbsp;
+        </td>
+        <td id="cell-0-2" colspan="2">
+          &nbsp;
+        </td>
+      </tr>
+      <tr width="100%">
+        <td id="cell-1-0">
+          &nbsp;
+        </td>
+        <td id="cell-1-1">
+          &nbsp;
+        </td>
+        <td id="cell-1-2">
+          <div style="padding: 5px;">
+            <div id="banner">
+              <h1 id="SupportedEvents">Supported Events</h1><p>There are 3 types of events:</p><ul><li>Configuration change event.</li><li>Features repository added/removed event.</li><li>Features installed/uninstalled event.</li></ul><p>Optionally (by installing the corresponding features), Cellar supports the following additional events:</p><ul><li>EventAdmin</li><li>OBR</li></ul><p>For each of the event types above a group may be configured to enabled synchronization, and to provide<br/>a whitelist/blacklist of specific event IDs.</p><p>For instance, the default group is configured to allow synchronization of configuration. This means that<br/>whenever a change occurs via the config admin to a specific PID, the change will pass to the distributed<br/>memory of the default group and will also be broadcasted to all other default group nodes using the topic.</p><p>This happens for all PIDs but not for org.apache.karaf.cellar.node which is marked as blacklisted<br/>and will never be 
 written or read from the distributed memory, nor will be broadcasted via the topic.</p><p>The user can add/remove any PID he wishes to the whitelist/blacklist.</p>
\ No newline at end of file

Added: karaf/site/production/manual/cellar/latest-4/images/architecture.jpg
URL: http://svn.apache.org/viewvc/karaf/site/production/manual/cellar/latest-4/images/architecture.jpg?rev=1705801&view=auto
==============================================================================
Binary file - no diff available.

Propchange: karaf/site/production/manual/cellar/latest-4/images/architecture.jpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: karaf/site/production/manual/cellar/latest-4/images/cross_topology.jpg
URL: http://svn.apache.org/viewvc/karaf/site/production/manual/cellar/latest-4/images/cross_topology.jpg?rev=1705801&view=auto
==============================================================================
Binary file - no diff available.

Propchange: karaf/site/production/manual/cellar/latest-4/images/cross_topology.jpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: karaf/site/production/manual/cellar/latest-4/images/event_flow.jpg
URL: http://svn.apache.org/viewvc/karaf/site/production/manual/cellar/latest-4/images/event_flow.jpg?rev=1705801&view=auto
==============================================================================
Binary file - no diff available.

Propchange: karaf/site/production/manual/cellar/latest-4/images/event_flow.jpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: karaf/site/production/manual/cellar/latest-4/images/shared_architecture.jpg
URL: http://svn.apache.org/viewvc/karaf/site/production/manual/cellar/latest-4/images/shared_architecture.jpg?rev=1705801&view=auto
==============================================================================
Binary file - no diff available.

Propchange: karaf/site/production/manual/cellar/latest-4/images/shared_architecture.jpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: karaf/site/production/manual/cellar/latest-4/images/star_topology.jpg
URL: http://svn.apache.org/viewvc/karaf/site/production/manual/cellar/latest-4/images/star_topology.jpg?rev=1705801&view=auto
==============================================================================
Binary file - no diff available.

Propchange: karaf/site/production/manual/cellar/latest-4/images/star_topology.jpg
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: karaf/site/production/manual/cellar/latest-4/index.html
URL: http://svn.apache.org/viewvc/karaf/site/production/manual/cellar/latest-4/index.html?rev=1705801&view=auto
==============================================================================
--- karaf/site/production/manual/cellar/latest-4/index.html (added)
+++ karaf/site/production/manual/cellar/latest-4/index.html Tue Sep 29 05:38:10 2015
@@ -0,0 +1,37 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd"> 
+<html lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+    <meta name="description" content="description goes here"/>
+    <meta name="keywords" content="keywords,goes,here"/>
+    <meta name="author" content="The Apache Karaf Team"/>
+    <link href="css/style.css" rel="stylesheet" type="text/css"/>
+    <link href="css/pygmentize.css" rel="stylesheet" type="text/css"/>
+    <title>
+      Apache Karaf Cellar 4.0.1-SNAPSHOT Guides
+    </title>
+  </head>
+  <body>
+    <table width="100%" cellpadding="0" cellspacing="0">
+      <tr width="100%">
+        <td id="cell-0-0" colspan="2">
+          &nbsp;
+        </td>
+        <td id="cell-0-1">
+          &nbsp;
+        </td>
+        <td id="cell-0-2" colspan="2">
+          &nbsp;
+        </td>
+      </tr>
+      <tr width="100%">
+        <td id="cell-1-0">
+          &nbsp;
+        </td>
+        <td id="cell-1-1">
+          &nbsp;
+        </td>
+        <td id="cell-1-2">
+          <div style="padding: 5px;">
+            <div id="banner">
+              <h1 id="ApacheKarafCellar">Apache Karaf Cellar</h1><p>This project contains documentation about Apache Karaf Cellar.</p><ul><li><a href="architecture-guide/overview.html">Overview</a></li><li><a href="user-guide/index.html">User Guide</a></li><li><a href="architecture-guide/index.html">Architecture Guide</a></li></ul>
\ No newline at end of file

Added: karaf/site/production/manual/cellar/latest-4/overview.html
URL: http://svn.apache.org/viewvc/karaf/site/production/manual/cellar/latest-4/overview.html?rev=1705801&view=auto
==============================================================================
--- karaf/site/production/manual/cellar/latest-4/overview.html (added)
+++ karaf/site/production/manual/cellar/latest-4/overview.html Tue Sep 29 05:38:10 2015
@@ -0,0 +1,37 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd"> 
+<html lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+    <meta name="description" content="description goes here"/>
+    <meta name="keywords" content="keywords,goes,here"/>
+    <meta name="author" content="The Apache Karaf Team"/>
+    <link href="css/style.css" rel="stylesheet" type="text/css"/>
+    <link href="css/pygmentize.css" rel="stylesheet" type="text/css"/>
+    <title>
+      Apache Karaf Cellar 4.0.1-SNAPSHOT Guides
+    </title>
+  </head>
+  <body>
+    <table width="100%" cellpadding="0" cellspacing="0">
+      <tr width="100%">
+        <td id="cell-0-0" colspan="2">
+          &nbsp;
+        </td>
+        <td id="cell-0-1">
+          &nbsp;
+        </td>
+        <td id="cell-0-2" colspan="2">
+          &nbsp;
+        </td>
+      </tr>
+      <tr width="100%">
+        <td id="cell-1-0">
+          &nbsp;
+        </td>
+        <td id="cell-1-1">
+          &nbsp;
+        </td>
+        <td id="cell-1-2">
+          <div style="padding: 5px;">
+            <div id="banner">
+              <h1 id="KarafCellarOverview">Karaf Cellar Overview</h1><p>Apache Karaf Cellar is a Apache Karaf sub-project which provides clustering support between multiple Karaf instances.</p><p>Cellar allows you to manage a cluster of several Karaf instances, providing synchronization between instances.<br/>Here is a short list of Cellar features:</p><ul><li><strong>Discovery</strong>: when you install Cellar into a Karaf instance, it automatically tries to join the cluster of other Cellar -running Karaf instances it discovers. There is no configuration required to join the cluster, the discovery is made behind the scenes, with multicast or unicast used for discovery.</li><li><strong>Cluster Group</strong>: a Karaf node can be part of one or more cluster groups. In Cellar, you can define cluster groups per your requirements. Resources will be sync'ed between nodes of the same group.</li><li><strong>Distributed Configuration Admin</strong>: Cellar distributes configuration data, bo
 th of Cellar-specific and Karaf etc/*.cfg configuration files. The distribution is event driven and filtered by group. You can tune the configuration replication using blacklists/whitelists on the configuration ID (PID).</li><li><strong>Distributed Features Service</strong>: Cellar distributes features and features respository information, also an event-driven process.</li><li><strong>Provisioning</strong>: Cellar provides shell commands for basic provisioning. It can also use an OBR backend or another provisioning tool such as Apache ACE.</li></ul>
\ No newline at end of file

Added: karaf/site/production/manual/cellar/latest-4/user-guide/cloud.html
URL: http://svn.apache.org/viewvc/karaf/site/production/manual/cellar/latest-4/user-guide/cloud.html?rev=1705801&view=auto
==============================================================================
--- karaf/site/production/manual/cellar/latest-4/user-guide/cloud.html (added)
+++ karaf/site/production/manual/cellar/latest-4/user-guide/cloud.html Tue Sep 29 05:38:10 2015
@@ -0,0 +1,58 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd"> 
+<html lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+    <meta name="description" content="description goes here"/>
+    <meta name="keywords" content="keywords,goes,here"/>
+    <meta name="author" content="The Apache Karaf Team"/>
+    <link href="../css/style.css" rel="stylesheet" type="text/css"/>
+    <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/>
+    <title>
+      Apache Karaf Cellar 4.0.1-SNAPSHOT Guides
+    </title>
+  </head>
+  <body>
+    <table width="100%" cellpadding="0" cellspacing="0">
+      <tr width="100%">
+        <td id="cell-0-0" colspan="2">
+          &nbsp;
+        </td>
+        <td id="cell-0-1">
+          &nbsp;
+        </td>
+        <td id="cell-0-2" colspan="2">
+          &nbsp;
+        </td>
+      </tr>
+      <tr width="100%">
+        <td id="cell-1-0">
+          &nbsp;
+        </td>
+        <td id="cell-1-1">
+          &nbsp;
+        </td>
+        <td id="cell-1-2">
+          <div style="padding: 5px;">
+            <div id="banner">
+              <h1 id="DiscoveryServices">Discovery Services</h1><p>The Discovery Services allow you to use third party libraries to discover the nodes member of the Cellar cluster.</p><h2 id="jClouds">jClouds</h2><p>Cellar relies on Hazelcast (http://www.hazelcast.com) in order to discover cluster nodes. This can happen either by using unicast, multicast  or specifying the ip address of each node.<br/>See the <a href="../architecture-guide/hazelcast.html">Core Configuration</a> section for details.</p><p>Unfortunately multicast is not allowed in most IaaS providers and the alternative of specifying all IP addresses creates maintenance difficulties, especially since in most cases the addresses are not known in advance.</p><p>Cellar solves this problem using a cloud discovery service powered by jclouds (http://jclouds.apache.org).</p><h3 id="Clouddiscoveryservice">Cloud discovery service</h3><p>Most cloud providers provide cloud storage among other services. Cellar uses the cloud stor
 age via jclouds, in order to determine the IP addresses of each node so that Hazelcast can find them.</p><p>This approach is also called blackboard and refers to the process where each node registers itself in a common storage are so that other nodes know its existence.</p><h3 id="InstallingCellarclouddiscoveryservice">Installing Cellar cloud discovery service</h3><p>To install the cloud discovery service simply install the appropriate jclouds provider and then install cellar-cloud feature.<br/>Amazon S3 is being used here for this example, but the below applies to any provider supported by jclouds.</p><pre>
+karaf@root()> feature:install jclouds-aws-s3
+karaf@root()> feature:install cellar-cloud
+</pre><p>Once the feature is installed, you're required to create a configuration that contains credentials and the type of the cloud storage (aka blobstore).<br/>To do that add a configuration file under the etc folder with the name org.apache.karaf.cellar.cloud-&lt;provider>.cfg and place the following information there:</p><p>provider=aws-s3 (this varies according to the blobstore provider)<br/>identity=&lt;the identity of the blobstore account><br/>credential=&lt;the credential/password of the blobstore account)<br/>container=&lt;the name of the bucket><br/>validity=&lt;the amount of time an entry is considered valid, after that time the entry is removed></p><p>For instance, you can create <em>etc/org.apache.karaf.cellar.cloud-mycloud.cfg</em> containing:</p><pre>
+provider=aws-s3
+identity=username
+credential=password
+container=cellar
+validity=360000
+</pre><p>NB: you can find the cloud providers supported by jclouds here http://repo1.maven.org/maven2/org/apache/jclouds/provider/.<br/>You have to install the corresponding jclouds feature for the provider.</p><p>After creating the file the service will check for new nodes. If new nodes are found the Hazelcast instance configuration will be updated and the instance restarted.</p><h2 id="Kubernetesdocker.io">Kubernetes &amp; docker.io</h2><p><a href="http://kubernetes.io">Kubernetes</a> is an open source orchestration system for docker.io containers.<br/>It handles scheduling onto nodes in a compute cluster and actively manages workloads to ensure that their state matches<br/>the users declared intentions.<br/>Using the concepts of "labels", "pods", "replicationControllers" and "services", it groups the containers which make up<br/>an application into logical units for easy management and discovery.<br/>Following the aforementioned concept will most likely change how you package and
  provision your Karaf based applications.<br/>For instance, you will eventually have to provide a Docker image with a pre-configured Karaf, KAR files in deployment<br/>folder, etc. so that your Kubernetes container may bootstrap everything on boot.</p><p>The Cellar Kubernetes discovery service is a great complement to the Karaf docker.io feature (allowing you to easily<br/>create and manage docker.io images in and for Karaf).</p><h3 id="Kubernetesdiscoveryservice">Kubernetes discovery service</h3><p>In order to determine the IP address of each node, so that Hazelcast can connect to them, the Kubernetes discovery service queries<br/>the Kubernetes API for containers labeled with the <em>pod.label.key</em> and <em>pod.label.key</em> specified in <em>etc/org.apache.karaf.cellar.kubernetes-name.cfg</em>.<br/>The name in <em>etc/org.apache.karaf.cellar.kubernetes-name.cfg</em> is a name of the choice. It allows you to create multiple Kubernetes discovery services.<br/>Thanks to that, the
  Cellar nodes can be discovered on different Kubernetes.</p><p>So, you <strong>must be sure</strong> to label your containers (pods) accordingly.</p><p>After a Cellar node starts up, Kubernetes discovery service will configure Hazelcast with currently running Cellar nodes.<br/>Since Hazelcast follows a peer-to-peer all-shared topology, whenever nodes come up and down, the cluster will remain up-to-date.</p><h3 id="InstallingKubernetesdiscoveryservice">Installing Kubernetes discovery service</h3><p>To install the Kubernetes discovery service, simply install cellar-kubernetes feature.</p><pre>
+karaf@root()> feature:install cellar-kubernetes
+</pre><p>Once the cellar-kubernetes feature is installed, you have to create the Kubernetes provider configuration file.<br/>If you have multiple Kubernetes instances, you create one configuration file per instance.</p><p>For instance, you can create <em>etc/org.apache.karaf.cellar.kubernetes-myfirstcluster.cfg</em> containing:</p><pre>
+host=localhost
+port=8080
+pod.label.key=name
+pod.label.value=cellar
+</pre><p>and another one <em>etc/org.apache.karaf.cellar.kubernetes-mysecondcluster.cfg</em> containing:</p><pre>
+host=192.168.134.2
+port=8080
+pod.label.key=name
+pod.label.value=cellar
+</pre><p>In case you change the file, the discovery service will check again for new nodes. If new nodes are found, Hazelcast configuration will be<br/>updated and the instance restarted.</p>
\ No newline at end of file

Added: karaf/site/production/manual/cellar/latest-4/user-guide/deploy.html
URL: http://svn.apache.org/viewvc/karaf/site/production/manual/cellar/latest-4/user-guide/deploy.html?rev=1705801&view=auto
==============================================================================
--- karaf/site/production/manual/cellar/latest-4/user-guide/deploy.html (added)
+++ karaf/site/production/manual/cellar/latest-4/user-guide/deploy.html Tue Sep 29 05:38:10 2015
@@ -0,0 +1,76 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd"> 
+<html lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+    <meta name="description" content="description goes here"/>
+    <meta name="keywords" content="keywords,goes,here"/>
+    <meta name="author" content="The Apache Karaf Team"/>
+    <link href="../css/style.css" rel="stylesheet" type="text/css"/>
+    <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/>
+    <title>
+      Apache Karaf Cellar 4.0.1-SNAPSHOT Guides
+    </title>
+  </head>
+  <body>
+    <table width="100%" cellpadding="0" cellspacing="0">
+      <tr width="100%">
+        <td id="cell-0-0" colspan="2">
+          &nbsp;
+        </td>
+        <td id="cell-0-1">
+          &nbsp;
+        </td>
+        <td id="cell-0-2" colspan="2">
+          &nbsp;
+        </td>
+      </tr>
+      <tr width="100%">
+        <td id="cell-1-0">
+          &nbsp;
+        </td>
+        <td id="cell-1-1">
+          &nbsp;
+        </td>
+        <td id="cell-1-2">
+          <div style="padding: 5px;">
+            <div id="banner">
+              <h1 id="DeployCellar">Deploy Cellar</h1><p>This chapter describes how to deploy and start Cellar into a running Apache Karaf instance. This chapter<br/>assumes that you already know Apache Karaf basics, especially the notion of features and shell usage.</p><h2 id="RegisteringCellarfeatures">Registering Cellar features</h2><p>Karaf Cellar is provided as a Karaf features XML descriptor.</p><p>Simply register the Cellar feature URL in your Karaf instance:</p><pre>
+karaf@root()> feature:repo-add mvn:org.apache.karaf.cellar/apache-karaf-cellar/3.0.1/xml/features
+Adding feature url mvn:org.apache.karaf.cellar/apache-karaf-cellar/3.0.1/xml/features
+</pre><p>Now you have Cellar features available in your Karaf instance:</p><pre>
+karaf@root()> feature:list |grep -i cellar
+cellar-core                   | 3.0.1   |           | karaf-cellar-3.0.1 | Karaf clustering core
+hazelcast                     | 3.2.3   |           | karaf-cellar-3.0.1 | In memory data grid
+cellar-hazelcast              | 3.0.1   |           | karaf-cellar-3.0.1 | Cellar implementation based on Hazelcast
+cellar-config                 | 3.0.1   |           | karaf-cellar-3.0.1 | ConfigAdmin cluster support
+cellar-features               | 3.0.1   |           | karaf-cellar-3.0.1 | Karaf features cluster support
+cellar-bundle                 | 3.0.1   |           | karaf-cellar-3.0.1 | Bundle cluster support
+cellar-shell                  | 3.0.1   |           | karaf-cellar-3.0.1 | Cellar shell support
+cellar                        | 3.0.1   |           | karaf-cellar-3.0.1 | Karaf clustering
+cellar-dosgi                  | 3.0.1   |           | karaf-cellar-3.0.1 | DOSGi support
+cellar-obr                    | 3.0.1   |           | karaf-cellar-3.0.1 | OBR cluster support
+cellar-eventadmin             | 3.0.1   |           | karaf-cellar-3.0.1 | OSGi events broadcasting in clusters
+cellar-cloud                  | 3.0.1   |           | karaf-cellar-3.0.1 | Cloud blobstore support in clusters
+cellar-webconsole             | 3.0.1   |           | karaf-cellar-3.0.1 | Cellar plugin for Karaf WebConsole
+</pre><h2 id="StartingCellar">Starting Cellar</h2><p>To start Cellar in your Karaf instance, you only need to install the Cellar feature:</p><pre>
+karaf@root()> feature:install cellar
+</pre><p>You can now see the Cellar components (bundles) installed:</p><pre>
+karaf@root()> la|grep -i cellar
+80 | Active   |  30 | 3.0.1        | Apache Karaf :: Cellar :: Core
+81 | Active   |  31 | 3.0.1        | Apache Karaf :: Cellar :: Utils
+82 | Active   |  33 | 3.0.1        | Apache Karaf :: Cellar :: Hazelcast
+83 | Active   |  40 | 3.0.1        | Apache Karaf :: Cellar :: Shell
+84 | Active   |  40 | 3.0.1        | Apache Karaf :: Cellar :: Config
+85 | Active   |  40 | 3.0.1        | Apache Karaf :: Cellar :: Bundle
+86 | Active   |  40 | 3.0.1        | Apache Karaf :: Cellar :: Features
+</pre><p>And Cellar cluster commands are now available:</p><pre>
+karaf@root()> cluster:&lt;TAB>
+</pre><h2 id="Optionalfeatures">Optional features</h2><p>Optionally, you can install additional features.</p><p>The cellar-event feature adds support of OSGi EventAdmin on the cluster:</p><pre>
+karaf@root()> feature:install cellar-event
+</pre><p>The cellar-obr feature adds support of OBR sync on the cluster:</p><pre>
+karaf@root()> feature:install cellar-obr
+</pre><p>The cellar-dosgi feature adds support of DOSGi (Distributed OSGi):</p><pre>
+karaf@root()> feature:install cellar-dosgi
+</pre><p>The cellar-cloud feature adds support of cloud blobstore, allowing to use instances located on a cloud provider:</p><pre>
+karaf@root()> feature:install cellar-cloud
+</pre><p>Please, see the sections dedicated to these features for details.</p>
\ No newline at end of file

Added: karaf/site/production/manual/cellar/latest-4/user-guide/event.html
URL: http://svn.apache.org/viewvc/karaf/site/production/manual/cellar/latest-4/user-guide/event.html?rev=1705801&view=auto
==============================================================================
--- karaf/site/production/manual/cellar/latest-4/user-guide/event.html (added)
+++ karaf/site/production/manual/cellar/latest-4/user-guide/event.html Tue Sep 29 05:38:10 2015
@@ -0,0 +1,39 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd"> 
+<html lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+    <meta name="description" content="description goes here"/>
+    <meta name="keywords" content="keywords,goes,here"/>
+    <meta name="author" content="The Apache Karaf Team"/>
+    <link href="../css/style.css" rel="stylesheet" type="text/css"/>
+    <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/>
+    <title>
+      Apache Karaf Cellar 4.0.1-SNAPSHOT Guides
+    </title>
+  </head>
+  <body>
+    <table width="100%" cellpadding="0" cellspacing="0">
+      <tr width="100%">
+        <td id="cell-0-0" colspan="2">
+          &nbsp;
+        </td>
+        <td id="cell-0-1">
+          &nbsp;
+        </td>
+        <td id="cell-0-2" colspan="2">
+          &nbsp;
+        </td>
+      </tr>
+      <tr width="100%">
+        <td id="cell-1-0">
+          &nbsp;
+        </td>
+        <td id="cell-1-1">
+          &nbsp;
+        </td>
+        <td id="cell-1-2">
+          <div style="padding: 5px;">
+            <div id="banner">
+              <h1 id="OSGiEventBroadcastingsupporteventadmin">OSGi Event Broadcasting support (eventadmin)</h1><p>Apache Karaf Cellar is able to listen all OSGi events on the cluster nodes, and broadcast each events to other nodes.</p><h2 id="EnableOSGiEventBroadcastingsupport">Enable OSGi Event Broadcasting support</h2><p>OSGi Event Broadcasting is an optional feature. To enable it, you have to install the cellar-eventadmin feature:</p><pre>
+karaf@root()> feature:install cellar-eventadmin
+</pre><h2 id="OSGiEventBroadcastinaction">OSGi Event Broadcast in action</h2><p>As soon as the cellar-eventadmin feature is installed (on all nodes that should use the clustered eventadmin),<br/>Cellar listens all OSGi events, and broadcast these events to all nodes of the same cluster group.</p>
\ No newline at end of file

Added: karaf/site/production/manual/cellar/latest-4/user-guide/groups.html
URL: http://svn.apache.org/viewvc/karaf/site/production/manual/cellar/latest-4/user-guide/groups.html?rev=1705801&view=auto
==============================================================================
--- karaf/site/production/manual/cellar/latest-4/user-guide/groups.html (added)
+++ karaf/site/production/manual/cellar/latest-4/user-guide/groups.html Tue Sep 29 05:38:10 2015
@@ -0,0 +1,166 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd"> 
+<html lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+    <meta name="description" content="description goes here"/>
+    <meta name="keywords" content="keywords,goes,here"/>
+    <meta name="author" content="The Apache Karaf Team"/>
+    <link href="../css/style.css" rel="stylesheet" type="text/css"/>
+    <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/>
+    <title>
+      Apache Karaf Cellar 4.0.1-SNAPSHOT Guides
+    </title>
+  </head>
+  <body>
+    <table width="100%" cellpadding="0" cellspacing="0">
+      <tr width="100%">
+        <td id="cell-0-0" colspan="2">
+          &nbsp;
+        </td>
+        <td id="cell-0-1">
+          &nbsp;
+        </td>
+        <td id="cell-0-2" colspan="2">
+          &nbsp;
+        </td>
+      </tr>
+      <tr width="100%">
+        <td id="cell-1-0">
+          &nbsp;
+        </td>
+        <td id="cell-1-1">
+          &nbsp;
+        </td>
+        <td id="cell-1-2">
+          <div style="padding: 5px;">
+            <div id="banner">
+              <h1 id="Cellargroups">Cellar groups</h1><p>You can define groups in Cellar. A group allows you to define specific nodes and resources that are to be<br/>working together. This permits some nodes (those outside the group) not to need to sync'ed with changes of<br/>a node within a group.</p><p>By default, the Cellar nodes go into the default group:</p><pre>
+karaf@root()> cluster:group-list
+  | Group   | Members
+-----------------------------------------------
+x | default | node2:5702 node1:5701(x)
+</pre><p>The 'x' indicates a local group. A local group is a group containing the local node (where we are connected).</p><h2 id="Newgroup">New group</h2><p>You can create a new group using the group-create command:</p><pre>
+karaf@root()> cluster:group-create test
+</pre><p>For now, the test group hasn't any nodes:</p><pre>
+karaf@node1()> cluster:group-list
+  | Group   | Members
+-----------------------------------------------
+x | default | node2:5702 node1:5701(x)
+  | test    |
+</pre><h2 id="ClusteredResourcesandClusterGroups">Clustered Resources and Cluster Groups</h2><h3 id="Features">Features</h3><p>Cellar can manipulate features and features repositories on cluster groups.</p><p>You can use cluster:feature-* commands or the corresponding MBean for that.</p><p>You can list the features repositories on a given cluster group:</p><pre>
+karaf@node1()> cluster:feature-repo-list default
+Repository                  |    Located    | URL
+-------------------------------------------------------------------------------------------------------------------------
+jclouds-1.8.1               | cluster/local | mvn:org.apache.jclouds.karaf/jclouds-karaf/1.8.1/xml/features
+karaf-cellar-3.0.1-SNAPSHOT | cluster/local | mvn:org.apache.karaf.cellar/apache-karaf-cellar/3.0.1-SNAPSHOT/xml/features
+org.ops4j.pax.cdi-0.8.0     | cluster/local | mvn:org.ops4j.pax.cdi/pax-cdi-features/0.8.0/xml/features
+spring-3.0.2                | cluster/local | mvn:org.apache.karaf.features/spring/3.0.2/xml/features
+standard-3.0.2              | cluster/local | mvn:org.apache.karaf.features/standard/3.0.2/xml/features
+enterprise-3.0.2            | cluster/local | mvn:org.apache.karaf.features/enterprise/3.0.2/xml/features
+org.ops4j.pax.web-3.1.2     | cluster/local | mvn:org.ops4j.pax.web/pax-web-features/3.1.2/xml/features
+</pre><p>You have the name of the repository, and the URL, like in the feature:repo-list command. However, the cluster:feature-repo-list command<br/>provides the location of the features repository:</p><ul><li>cluster means that the repository is defined only on the cluster group</li><li>local means that the repository is defined only on the local node (not on the cluster)</li><li>cluster/local means that the repository is defined both on the local node, but also on the cluster group</li></ul><p>You can add a repository on a cluster group using the cluster:feature-repo-add command:</p><pre>
+karaf@node1()> cluster:feature-repo-add default mvn:org.apache.activemq/activemq-karaf/5.10.0/xml/features
+</pre><p>You can remove a repository from a cluster group using the cluster:feature-repo-remove command:</p><pre>
+karaf@node1()> cluster:feature-repo-remove default mvn:org.apache.activemq/activemq-karaf/5.10.0/xml/features
+</pre><p>You can list the features on a given cluster group:</p><pre>
+karaf@node1()> cluster:feature-list default |more
+Name                                    | Version          | Installed | Located       | Blocked
+------------------------------------------------------------------------------------------------
+gemini-blueprint                        | 1.0.0.RELEASE    |           | cluster/local |
+package                                 | 3.0.2            | x         | cluster/local |
+jclouds-api-route53                     | 1.8.1            |           | cluster/local |
+jclouds-rackspace-clouddns-uk           | 1.8.1            |           | cluster/local |
+cellar-cloud                            | 3.0.1-SNAPSHOT   |           | local         | in/out
+webconsole                              | 3.0.2            |           | cluster/local |
+cellar-shell                            | 3.0.1-SNAPSHOT   | x         | local         | in/out
+jclouds-glesys                          | 1.8.1            |           | cluster/local |
+...
+</pre><p>Like for the features repositories, you can note there the "Located" column containing where the feature is located (local<br/>to the node, or on the cluster group).<br/>You can also see the "Blocked" column indicating if the feature is blocked inbound or outbound (see the blocking policy).</p><p>You can install a feature on a cluster group using the cluster:feature-install command:</p><pre>
+karaf@node1()> cluster:feature-install default eventadmin
+</pre><p>You can uninstall a feature from a cluster group, using the cluster:feature-uninstall command:</p><pre>
+karaf@node1()> cluster:feature-uninstall default eventadmin
+</pre><p>Cellar also provides a feature listener, disabled by default as you can see in etc/org.apache.karaf.cellar.node.cfg configuration<br/>file:</p><pre>
+feature.listener = false
+</pre><p>The listener listens for the following local feature changes:</p><ul><li>add features repository</li><li>remove features repository</li><li>install feature</li><li>uninstall feature</li></ul><h3 id="Bundles">Bundles</h3><p>Cellar can manipulate bundles on cluster groups.</p><p>You can use cluster:bundle-* commands or the corresponding MBean for that.</p><p>You can list the bundles in a cluster group using the cluster:bundle-list command:</p><pre>
+karaf@node1()> cluster:bundle-list default |more
+Bundles in cluster group default
+ID | State    | Located       | Blocked | Version         | Name
+--------------------------------------------------------------------------------------------------------------------
+ 0 | Active   | cluster/local |         | 2.2.0           | OPS4J Pax Url - aether:
+ 1 | Active   | cluster/local |         | 3.0.2           | Apache Karaf :: Deployer :: Blueprint
+ 2 | Active   | cluster/local |         | 2.2.0           | OPS4J Pax Url - wrap:
+ 3 | Active   | cluster/local |         | 1.8.0           | Apache Felix Configuration Admin Service
+ 4 | Active   | cluster/local |         | 3.0.2           | Apache Karaf :: Region :: Core
+ ...
+</pre><p>Like for the features, you can see the "Located" and "Blocked" columns.</p><p>You can install a bundle on a cluster group using the cluster:bundle-install command:</p><pre>
+karaf@node1()> cluster:bundle-install default mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-lang/2.4_6
+</pre><p>You can start a bundle in a cluster group using the cluster:bundle-start command:</p><pre>
+karaf@node1()> cluster:bundle-start default commons-lang
+</pre><p>You can stop a bundle in a cluster group using the cluster:bundle-stop command:</p><pre>
+karaf@node1()> cluster:bundle-stop default commons-lang
+</pre><p>You can uninstall a bundle from a cluster group using the cluster:bundle-uninstall command:</p><pre>
+karaf@node1()> cluster:bundle-uninstall default commons-lang
+</pre><p>Like for the feature, Cellar provides a bundle listener disabled by default in etc/org.apache.karaf.cellar.nodes.cfg:</p><pre>
+bundle.listener = false
+</pre><p>The bundle listener listens the following local bundle changes:</p><ul><li>install bundle</li><li>start bundle</li><li>stop bundle</li><li>uninstall bundle</li></ul><h3 id="Configurations">Configurations</h3><p>Cellar can manipulate configurations on cluster groups.</p><p>You can use cluster:config-* commands or the corresponding MBean for that.</p><p>You can list the configurations on a cluster group using the cluster:config-list command:</p><pre>
+karaf@node1()> cluster:config-list default |more
+----------------------------------------------------------------
+Pid:            org.apache.karaf.command.acl.jaas
+Located:        cluster/local
+Blocked:
+Properties:
+   update = admin
+   service.pid = org.apache.karaf.command.acl.jaas
+----------------------------------------------------------------
+...
+</pre><p>You can note the "Blocked" and "Located" attributes, like for features and bundles.</p><p>YOu can list properties in a config using the cluster:config-property-list command:</p><pre>
+karaf@node1()> cluster:config-property-list default org.apache.karaf.jaas
+Property list for configuration PID org.apache.karaf.jaas for cluster group default
+   encryption.prefix = {CRYPT}
+   encryption.name =
+   encryption.enabled = false
+   encryption.suffix = {CRYPT}
+   encryption.encoding = hexadecimal
+   service.pid = org.apache.karaf.jaas
+   encryption.algorithm = MD5
+</pre><p>You can set or append a value to a config property using the cluster:config-property-set or cluster:config-property-append command:</p><pre>
+karaf@node1()> cluster:config-property-set default my.config my.property my.value
+</pre><p>You can delete a property in a config using the cluster:config-property-delete command:</p><pre>
+karaf@node1()> cluster:config-property-delete default my.config my.property
+</pre><p>You can delete the whole config using the cluster:config-delete command:</p><pre>
+karaf@node1()> cluster:config-delete default my.config
+</pre><p>Like for feature and bundle, Cellar provides a config listener disabled by default in etc/org.apache.karaf.cellar.nodes.cfg:</p><pre>
+config.listener = false
+</pre><p>The config listener listens the following local config changes:</p><ul><li>create a config</li><li>add/delete/change a property</li><li>delete a config</li></ul><p>As some properties may be local to a node, Cellar excludes some property by default.<br/>You can see the current excluded properties using the cluster:config-property-excluded command:</p><pre>
+karaf@node1()> cluster:config-property-excluded
+service.factoryPid, felix.fileinstall.filename, felix.fileinstall.dir, felix.fileinstall.tmpdir, org.ops4j.pax.url.mvn.defaultRepositories
+</pre><p>You can modify this list using the same command, or by editing the etc/org.apache.karaf.cellar.node.cfg configuration file:</p><pre>
+#
+# Excluded config properties from the sync
+#&#xa0;Some config properties can be considered as local to a node, and should not be sync on the cluster.
+#
+config.excluded.properties = service.factoryPid, felix.fileinstall.filename, felix.fileinstall.dir, felix.fileinstall.tmpdir, org.ops4j.pax.url.mvn.defaultRepositories
+</pre><h3 id="OBRoptional">OBR (optional)</h3><p>See the <a href="obr.html">OBR section</a> for details.</p><h3 id="EventAdminoptiona">EventAdmin (optiona)</h3><p>See the <a href="event.html">EventAdmin section</a> for details.</p><h2 id="Blockingpolicy">Blocking policy</h2><p>You can define a policy to filter the cluster events exchanges by the nodes (inbound or outbound).</p><p>It allows you to block or allow some resources on the cluster.</p><p>By adding a resource id in a blacklist, you block the resource.<br/>By adding a resource id in a whitelist, you allow the resource.</p><p>For instance, for feature, you can use the cluster:feature-block command to display or modify the current blocking policy for features:</p><pre>
+karaf@node1()> cluster:feature-block default
+INBOUND:
+        whitelist: [*]
+        blacklist: [config, cellar*, hazelcast, management]
+OUTBOUND:
+        whitelist: [*]
+        blacklist: [config, cellar*, hazelcast, management]
+</pre><p>NB: * is a wildcard.</p><p>You have the equivalent command for bundle and config:</p><pre>
+karaf@node1()> cluster:bundle-block default
+INBOUND:
+        whitelist: [*]
+        blacklist: [*.xml]
+OUTBOUND:
+        whitelist: [*]
+        blacklist: [*.xml]
+karaf@node1()> cluster:config-block default
+INBOUND:
+        whitelist: [*]
+        blacklist: [org.apache.karaf.cellar*, org.apache.karaf.shell, org.ops4j.pax.logging, org.ops4j.pax.web, org.apache.felix.fileinstall*, org.apache.karaf.management, org.apache.aries.transaction]
+OUTBOUND:
+        whitelist: [*]
+        blacklist: [org.apache.karaf.cellar*, org.apache.karaf.shell, org.ops4j.pax.logging, org.ops4j.pax.web, org.apache.felix.fileinstall*, org.apache.karaf.management, org.apache.aries.transaction]
+</pre><p>Using those commands, you can also update the blacklist and whitelist for inbound or outbound cluster events.</p>
\ No newline at end of file

Added: karaf/site/production/manual/cellar/latest-4/user-guide/hazelcast.html
URL: http://svn.apache.org/viewvc/karaf/site/production/manual/cellar/latest-4/user-guide/hazelcast.html?rev=1705801&view=auto
==============================================================================
--- karaf/site/production/manual/cellar/latest-4/user-guide/hazelcast.html (added)
+++ karaf/site/production/manual/cellar/latest-4/user-guide/hazelcast.html Tue Sep 29 05:38:10 2015
@@ -0,0 +1,107 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd"> 
+<html lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+    <meta name="description" content="description goes here"/>
+    <meta name="keywords" content="keywords,goes,here"/>
+    <meta name="author" content="The Apache Karaf Team"/>
+    <link href="../css/style.css" rel="stylesheet" type="text/css"/>
+    <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/>
+    <title>
+      Apache Karaf Cellar 4.0.1-SNAPSHOT Guides
+    </title>
+  </head>
+  <body>
+    <table width="100%" cellpadding="0" cellspacing="0">
+      <tr width="100%">
+        <td id="cell-0-0" colspan="2">
+          &nbsp;
+        </td>
+        <td id="cell-0-1">
+          &nbsp;
+        </td>
+        <td id="cell-0-2" colspan="2">
+          &nbsp;
+        </td>
+      </tr>
+      <tr width="100%">
+        <td id="cell-1-0">
+          &nbsp;
+        </td>
+        <td id="cell-1-1">
+          &nbsp;
+        </td>
+        <td id="cell-1-2">
+          <div style="padding: 5px;">
+            <div id="banner">
+              <h1 id="CoreruntimeandHazelcast">Core runtime and Hazelcast</h1><p>Cellar uses Hazelcast as cluster engine.</p><p>When you install the cellar feature, a hazelcast feature is automatically installed, providing the etc/hazelcast.xml<br/>configuration file.</p><p>The etc/hazelcast.xml configuration file contains all the core configuration, especially:</p><ul><li>the Hazelcast cluster identifiers (group name and password)</li><li>network discovery and security configuration</li></ul><h2 id="Hazelcastclusteridentification">Hazelcast cluster identification</h2><p>The &lt;group/> element in the etc/hazelcast.xml defines the identification of the Hazelcast cluster:</p><pre>
+    &lt;group>
+        &lt;name>cellar&lt;/name>
+        &lt;password>pass&lt;/password>
+    &lt;/group>
+</pre><p>All Cellar nodes have to use the same name and password (to be part of the same Hazelcast cluster).</p><h2 id="Network">Network</h2><p>The &lt;network/> element in the etc/hazelcast.xml contains all the network configuration.</p><p>First, it defines the port numbers used by Hazelcast:</p><pre>
+        &lt;port auto-increment="true" port-count="100">5701&lt;/port>
+        &lt;outbound-ports>
+            &lt;!--
+                Allowed port range when connecting to other nodes.
+                0 or * means use system provided port.
+            -->
+            &lt;ports>0&lt;/ports>
+        &lt;/outbound-ports>
+</pre><p>Second, it defines the mechanism used to discover the Cellar nodes: it's the &lt;join/> element.</p><p>By default, Hazelcast uses unicast.</p><p>You can also use multicast (enabled by default in Cellar):</p><pre>
+            &lt;multicast enabled="true">
+                &lt;multicast-group>224.2.2.3&lt;/multicast-group>
+                &lt;multicast-port>54327&lt;/multicast-port>
+            &lt;/multicast>
+            &lt;tcp-ip enabled="false"/>
+            &lt;aws enabled="false"/>
+</pre><p>Instead of using multicast, you can also explicitly define the host names (or IP addresses) of the different<br/>Cellar nodes:</p><pre>
+            &lt;multicast enabled="false"/>
+            &lt;tcp-ip enabled="true"/>
+            &lt;aws enabled="false"/>
+</pre><p>By default, it will bind to all interfaces on the node machine. It's possible to specify a interface:</p><pre>
+            &lt;multicast enabled="false"/>
+            &lt;tcp-ip enabled="true">
+                &lt;interface>127.0.0.1&lt;/interface>
+            &lt;/tcp-ip>
+            &lt;aws enabled="false"/>
+</pre><p>NB: in previous Hazelcast versions (especially the one used by Cellar 2.3.x), it was possible to have multicast and tcp-ip enabled in the same time.<br/>In Hazelcast 3.3.x (the version currently used by Cellar 3.0.x), only one discover mechanism can be enabled at a time. Cellar uses multicast by default (tcp-ip is disabled).<br/>If your network or network interface don't support multicast, you have to enable tcp-ip and disable multicast.</p><p>You can also discover nodes located on a Amazon instance:</p><pre>
+            &lt;multicast enabled="false"/>
+            &lt;tcp-ip enabled="false"/>
+            &lt;aws enabled="true">
+                &lt;access-key>my-access-key&lt;/access-key>
+                &lt;secret-key>my-secret-key&lt;/secret-key>
+                &lt;!--optional, default is us-east-1 -->
+                &lt;region>us-west-1&lt;/region>
+                &lt;!--optional, default is ec2.amazonaws.com. If set, region shouldn't be set as it will override this property -->
+                &lt;host-header>ec2.amazonaws.com&lt;/host-header>
+                &lt;!-- optional, only instances belonging to this group will be discovered, default will try all running instances -->
+                &lt;security-group-name>hazelcast-sg&lt;/security-group-name>
+                &lt;tag-key>type&lt;/tag-key>
+                &lt;tag-value>hz-nodes&lt;/tag-value>
+            &lt;/aws>
+</pre><p>Third, you can specific on which network interface the cluster is running (whatever the discovery mechanism used). By default, Hazelcast listens on all interfaces (0.0.0.0).<br/>But you can specify an interface:</p><pre>
+        &lt;interfaces enabled="true">
+            &lt;interface>10.10.1.*&lt;/interface>
+        &lt;/interfaces>
+</pre><p>Finally, you can also enable security transport on the cluster.<br/>Two modes are supported:</p><ul><li>SSL:<pre>
+        &lt;ssl enabled="true"/>
+</pre></li><li>Symmetric Encryption:<pre>
+        &lt;symmetric-encryption enabled="true">
+            &lt;!--
+               encryption algorithm such as
+               DES/ECB/PKCS5Padding,
+               PBEWithMD5AndDES,
+               AES/CBC/PKCS5Padding,
+               Blowfish,
+               DESede
+            -->
+            &lt;algorithm>PBEWithMD5AndDES&lt;/algorithm>
+            &lt;!-- salt value to use when generating the secret key -->
+            &lt;salt>thesalt&lt;/salt>
+            &lt;!-- pass phrase to use when generating the secret key -->
+            &lt;password>thepass&lt;/password>
+            &lt;!-- iteration count to use when generating the secret key -->
+            &lt;iteration-count>19&lt;/iteration-count>
+        &lt;/symmetric-encryption>
+</pre></li></ul><p>Cellar provides additional discovery mechanisms, See <a href="cloud.html">Discovery Service (jclouds and kubernetes)</a> section for details.</p>
\ No newline at end of file

Added: karaf/site/production/manual/cellar/latest-4/user-guide/http-balancer.html
URL: http://svn.apache.org/viewvc/karaf/site/production/manual/cellar/latest-4/user-guide/http-balancer.html?rev=1705801&view=auto
==============================================================================
--- karaf/site/production/manual/cellar/latest-4/user-guide/http-balancer.html (added)
+++ karaf/site/production/manual/cellar/latest-4/user-guide/http-balancer.html Tue Sep 29 05:38:10 2015
@@ -0,0 +1,96 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd"> 
+<html lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+    <meta name="description" content="description goes here"/>
+    <meta name="keywords" content="keywords,goes,here"/>
+    <meta name="author" content="The Apache Karaf Team"/>
+    <link href="../css/style.css" rel="stylesheet" type="text/css"/>
+    <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/>
+    <title>
+      Apache Karaf Cellar 4.0.1-SNAPSHOT Guides
+    </title>
+  </head>
+  <body>
+    <table width="100%" cellpadding="0" cellspacing="0">
+      <tr width="100%">
+        <td id="cell-0-0" colspan="2">
+          &nbsp;
+        </td>
+        <td id="cell-0-1">
+          &nbsp;
+        </td>
+        <td id="cell-0-2" colspan="2">
+          &nbsp;
+        </td>
+      </tr>
+      <tr width="100%">
+        <td id="cell-1-0">
+          &nbsp;
+        </td>
+        <td id="cell-1-1">
+          &nbsp;
+        </td>
+        <td id="cell-1-2">
+          <div style="padding: 5px;">
+            <div id="banner">
+              <h1 id="HTTPBalancer">HTTP Balancer</h1><p>Apache Karaf Cellar is able to expose servlets local to a node on the cluster.<br/>It means that a client (browser) can use any node in the cluster, proxying the requests to the node actually<br/>hosting the servlets.</p><h2 id="EnableHTTPBalancer">Enable HTTP Balancer</h2><p>To enable Cellar HTTP Balancer, you have to first install the http and http-whiteboard features:</p><pre>
+karaf@root()> feature:install http
+karaf@root()> feature:install http-whiteboard
+</pre><p>Now, we install the cellar-http-balancer feature, actually providing the balancer:</p><pre>
+karaf@root()> feature:install cellar-http-balancer
+</pre><p>Of course, you can use Cellar to spread the installation of the cellar-http-balancer feature on all nodes in the<br/>cluster group:</p><pre>
+karaf@root()> cluster:feature-install default cellar-http-balancer
+</pre><p>It's done: the Cellar HTTP Balancer is now enabled. It will expose proxy servlets on nodes.</p><h2 id="Balancerinaction">Balancer in action</h2><p>To illustrate Cellar HTTP Balancer in action, you need at least a cluster with two nodes.</p><p>On node1, we enable the Cellar HTTP Balancer:</p><pre>
+karaf@node1()> feature:install http
+karaf@node1()> feature:install http-whiteboard
+karaf@node1()> feature:repo-add cellar 4.0.0
+karaf@node1()> feature:install cellar
+karaf@node1()> cluster:feature-install default cellar-http-balancer
+</pre><p>Now, we install the webconsole on node1:</p><pre>
+karaf@node1()> feature:install webconsole
+</pre><p>We can see the "local" servlets provided by the webconsole feature using the http:list command:</p><pre>
+karaf@node1()> http:list
+ID  | Servlet          | Servlet-Name    | State       | Alias               | Url
+------------------------------------------------------------------------------------------------------
+101 | KarafOsgiManager | ServletModel-2  | Undeployed  | /system/console     | [/system/console/*]
+103 | GogoPlugin       | ServletModel-7  | Deployed    | /gogo               | [/gogo/*]
+102 | FeaturesPlugin   | ServletModel-6  | Deployed    | /features           | [/features/*]
+101 | ResourceServlet  | /res            | Deployed    | /system/console/res | [/system/console/res/*]
+101 | KarafOsgiManager | ServletModel-11 | Deployed    | /system/console     | [/system/console/*]
+105 | InstancePlugin   | ServletModel-9  | Deployed    | /instance           | [/instance/*]
+</pre><p>You can access to the webconsole using a browser on http://localhost:8181/system/console.</p><p>We can see that Cellar HTTP Balancer exposed the servlets to the cluster, using the cluster:http-list command:</p><pre>
+karaf@node1()> cluster:http-list default
+Alias               | Locations
+-----------------------------------------------------------------
+/system/console/res | http://172.17.42.1:8181/system/console/res
+/gogo               | http://172.17.42.1:8181/gogo
+/instance           | http://172.17.42.1:8181/instance
+/system/console     | http://172.17.42.1:8181/system/console
+/features           | http://172.17.42.1:8181/features
+</pre><p>On another node (node2), we install http, http-whiteboard and cellar features:</p><pre>
+karaf@node1()> feature:install http
+karaf@node1()> feature:install http-whiteboard
+karaf@node1()> feature:repo-add cellar 4.0.0
+karaf@node1()> feature:install cellar
+</pre><p>WARNING: if you run the nodes on a single machine, you have to provision etc/org.ops4j.pax.web.cfg configuration file<br/>containing the org.osgi.service.http.port property with a port number different to 8181.<br/>For this example, I use the following etc/org.ops4j.pax.web.cfg file:</p><pre>
+org.osgi.service.http.port=8041
+</pre><p>On node1, as we installed the cellar-http-balancer using cluster:feature-install command, it's automatically installed<br/>when node2 joins the default cluster group.</p><p>We can see the HTTP endpoints available on the cluster using the cluster:http-list command:</p><pre>
+karaf@node2()> cluster:http-list default
+Alias               | Locations
+-----------------------------------------------------------------
+/system/console/res | http://172.17.42.1:8181/system/console/res
+/gogo               | http://172.17.42.1:8181/gogo
+/instance           | http://172.17.42.1:8181/instance
+/system/console     | http://172.17.42.1:8181/system/console
+/features           | http://172.17.42.1:8181/features
+</pre><p>If we take a look on the HTTP endpoints locally available on node2 (using http:list command), we can see the proxies<br/>created by Cellar HTTP Balancer:</p><pre>
+karaf@node2()> http:list
+ID  | Servlet                    | Servlet-Name   | State       | Alias               | Url
+---------------------------------------------------------------------------------------------------------------
+100 | CellarBalancerProxyServlet | ServletModel-3 | Deployed    | /gogo               | [/gogo/*]
+100 | CellarBalancerProxyServlet | ServletModel-2 | Deployed    | /system/console/res | [/system/console/res/*]
+100 | CellarBalancerProxyServlet | ServletModel-6 | Deployed    | /features           | [/features/*]
+100 | CellarBalancerProxyServlet | ServletModel-5 | Deployed    | /system/console     | [/system/console/*]
+100 | CellarBalancerProxyServlet | ServletModel-4 | Deployed    | /instance           | [/instance/*]
+</pre><p>You can use a browser on http://localhost:8041/system/console: you will actually use the webconsole from node1, as<br/>Cellar HTTP Balancer proxies from node2 to node1.</p><p>Cellar HTTP Balancer randomly chooses one endpoint providing the HTTP endpoint.</p>
\ No newline at end of file

Added: karaf/site/production/manual/cellar/latest-4/user-guide/http-session.html
URL: http://svn.apache.org/viewvc/karaf/site/production/manual/cellar/latest-4/user-guide/http-session.html?rev=1705801&view=auto
==============================================================================
--- karaf/site/production/manual/cellar/latest-4/user-guide/http-session.html (added)
+++ karaf/site/production/manual/cellar/latest-4/user-guide/http-session.html Tue Sep 29 05:38:10 2015
@@ -0,0 +1,89 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd"> 
+<html lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+    <meta name="description" content="description goes here"/>
+    <meta name="keywords" content="keywords,goes,here"/>
+    <meta name="author" content="The Apache Karaf Team"/>
+    <link href="../css/style.css" rel="stylesheet" type="text/css"/>
+    <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/>
+    <title>
+      Apache Karaf Cellar 4.0.1-SNAPSHOT Guides
+    </title>
+  </head>
+  <body>
+    <table width="100%" cellpadding="0" cellspacing="0">
+      <tr width="100%">
+        <td id="cell-0-0" colspan="2">
+          &nbsp;
+        </td>
+        <td id="cell-0-1">
+          &nbsp;
+        </td>
+        <td id="cell-0-2" colspan="2">
+          &nbsp;
+        </td>
+      </tr>
+      <tr width="100%">
+        <td id="cell-1-0">
+          &nbsp;
+        </td>
+        <td id="cell-1-1">
+          &nbsp;
+        </td>
+        <td id="cell-1-2">
+          <div style="padding: 5px;">
+            <div id="banner">
+              <h1 id="HTTPSessionReplication">HTTP Session Replication</h1><p>Apache Karaf Cellar supports replication of the HTTP sessions on the cluster.</p><p>It means that the same web application deployed on multiple nodes in the cluster will share the same HTTP sessions<br/>pool, allowing clients to transparently connect to any node, without loosing any session state.</p><h2 id="EnableClusterHTTPSessionReplication">Enable Cluster HTTP Session Replication</h2><p>In order to be able to be stored on the cluster, all HTTP Sessions used in your web application have to implement<br/>Serializable interface. Any non-serializable attribute has to be flagged as transient.</p><p>You have to enable a specific filter in your application to enable the replication. See next chapter for details.</p><p>At runtime level, you just have to install http, http-whiteboard, and cellar features:</p><pre>
+karaf@root()> feature:install http
+karaf@root()> feature:install http-whiteboard
+karaf@root()> feature:repo-add cellar 4.0.0
+karaf@root()> feature:install cellar
+</pre><h2 id="WebApplicationSessionReplication">Web Application Session Replication</h2><p>In order to use HTTP session replication on the cluster, you just have to add a filter in your web application.</p><p>Basically, the WEB-INF/web.xml file of your web application should look like this:</p><pre>
+&lt;?xml version="1.0" encoding="UTF-8"?>
+&lt;web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
+	version="3.0">
+
+	&lt;filter>
+		&lt;filter-name>hazelcast-filter&lt;/filter-name>
+		&lt;filter-class>com.hazelcast.web.WebFilter&lt;/filter-class>
+	    &lt;!--
+	        Name of the distributed map storing
+	        your web session objects
+	    -->
+		&lt;init-param>
+			&lt;param-name>map-name&lt;/param-name>
+			&lt;param-value>my-sessions&lt;/param-value>
+		&lt;/init-param>
+	    &lt;!-- How is your load-balancer configured? stick-session means all requests of
+	    	a session is routed to the node where the session is first created. This is
+	    	excellent for performance. If sticky-session is set to false, when a session
+	    	 is updated on a node, entry for this session on all other nodes is invalidated.
+	    	 You have to know how your load-balancer is configured before setting this
+	    	 parameter. Default is true. -->
+		&lt;init-param>
+			&lt;param-name>sticky-session&lt;/param-name>
+			&lt;param-value>false&lt;/param-value>
+		&lt;/init-param>
+	    &lt;!--
+	        Are you debugging? Default is false.
+	    -->
+		&lt;init-param>
+			&lt;param-name>debug&lt;/param-name>
+			&lt;param-value>false&lt;/param-value>
+		&lt;/init-param>
+	&lt;/filter>
+	&lt;filter-mapping>
+		&lt;filter-name>hazelcast-filter&lt;/filter-name>
+		&lt;url-pattern>/*&lt;/url-pattern>
+		&lt;dispatcher>FORWARD&lt;/dispatcher>
+		&lt;dispatcher>INCLUDE&lt;/dispatcher>
+		&lt;dispatcher>REQUEST&lt;/dispatcher>
+	&lt;/filter-mapping>
+	&lt;listener>
+		&lt;listener-class>com.hazelcast.web.SessionListener&lt;/listener-class>
+	&lt;/listener>
+
+&lt;/web-app>
+</pre>
\ No newline at end of file

Added: karaf/site/production/manual/cellar/latest-4/user-guide/index.html
URL: http://svn.apache.org/viewvc/karaf/site/production/manual/cellar/latest-4/user-guide/index.html?rev=1705801&view=auto
==============================================================================
--- karaf/site/production/manual/cellar/latest-4/user-guide/index.html (added)
+++ karaf/site/production/manual/cellar/latest-4/user-guide/index.html Tue Sep 29 05:38:10 2015
@@ -0,0 +1,37 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd"> 
+<html lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+    <meta name="description" content="description goes here"/>
+    <meta name="keywords" content="keywords,goes,here"/>
+    <meta name="author" content="The Apache Karaf Team"/>
+    <link href="../css/style.css" rel="stylesheet" type="text/css"/>
+    <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/>
+    <title>
+      Apache Karaf Cellar 4.0.1-SNAPSHOT Guides
+    </title>
+  </head>
+  <body>
+    <table width="100%" cellpadding="0" cellspacing="0">
+      <tr width="100%">
+        <td id="cell-0-0" colspan="2">
+          &nbsp;
+        </td>
+        <td id="cell-0-1">
+          &nbsp;
+        </td>
+        <td id="cell-0-2" colspan="2">
+          &nbsp;
+        </td>
+      </tr>
+      <tr width="100%">
+        <td id="cell-1-0">
+          &nbsp;
+        </td>
+        <td id="cell-1-1">
+          &nbsp;
+        </td>
+        <td id="cell-1-2">
+          <div style="padding: 5px;">
+            <div id="banner">
+              <h1 id="KarafCellarUserGuide">Karaf Cellar User Guide</h1><ul><li><a href="introduction.html">Karaf Cellar Introduction</a></li><li><a href="installation.html">Installing Karaf Cellar</a></li><li><a href="deploy.html">Start Karaf Cellar</a></li><li><a href="hazelcast.html">Core configuration</a></li><li><a href="nodes.html">Nodes in Karaf Cellar</a></li><li><a href="groups.html">Groups in Karaf Cellar</a></li><li><a href="obr.html">OBR in Karaf Cellar</a></li><li><a href="event.html">OSGi Event broadcast with Karaf Cellar</a></li><li><a href="http-balancer.html">HTTP Balancer</a></li><li><a href="http-session.html">HTTP Session Replication</a></li><li><a href="transport.html">DOSGi and Transport</a></li><li><a href="cloud.html">Discovery Services</a></li></ul>
\ No newline at end of file

Added: karaf/site/production/manual/cellar/latest-4/user-guide/installation.html
URL: http://svn.apache.org/viewvc/karaf/site/production/manual/cellar/latest-4/user-guide/installation.html?rev=1705801&view=auto
==============================================================================
--- karaf/site/production/manual/cellar/latest-4/user-guide/installation.html (added)
+++ karaf/site/production/manual/cellar/latest-4/user-guide/installation.html Tue Sep 29 05:38:10 2015
@@ -0,0 +1,48 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd"> 
+<html lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+    <meta name="description" content="description goes here"/>
+    <meta name="keywords" content="keywords,goes,here"/>
+    <meta name="author" content="The Apache Karaf Team"/>
+    <link href="../css/style.css" rel="stylesheet" type="text/css"/>
+    <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/>
+    <title>
+      Apache Karaf Cellar 4.0.1-SNAPSHOT Guides
+    </title>
+  </head>
+  <body>
+    <table width="100%" cellpadding="0" cellspacing="0">
+      <tr width="100%">
+        <td id="cell-0-0" colspan="2">
+          &nbsp;
+        </td>
+        <td id="cell-0-1">
+          &nbsp;
+        </td>
+        <td id="cell-0-2" colspan="2">
+          &nbsp;
+        </td>
+      </tr>
+      <tr width="100%">
+        <td id="cell-1-0">
+          &nbsp;
+        </td>
+        <td id="cell-1-1">
+          &nbsp;
+        </td>
+        <td id="cell-1-2">
+          <div style="padding: 5px;">
+            <div id="banner">
+              <h1 id="Installation">Installation</h1><p>This chapter describes how to install Apache Karaf Cellar into your existing Karaf based installation.</p><h2 id="PreInstallationRequirements">Pre-Installation Requirements</h2><p>Cellar is installed on running Karaf instances.</p><p>Cellar is provided as a Karaf features descriptor. The easiest way to install is just to<br/>have an internet connection from the Karaf running instance.</p><p>See <a href="deploy.html">deploy</a> to how to install and start Cellar.</p><h2 id="BuildingfromSources">Building from Sources</h2><p>If you intend to build Karaf Cellar from the sources, the requirements are:</p><p><strong>Hardware:</strong></p><ul><li>100MB of free disk space for the Apache Karaf Cellar x.y source distributions or SVN checkout, the Maven build and the dependencies that Maven downloads.</li></ul><p><strong>Environment:</strong></p><ul><li>Java SE Development Kit 1.7.x or greater (<a href="http://www.oracle.com/technetwork/j
 ava/javase/">http://www.oracle.com/technetwork/java/javase/</a>).</li><li>Apache Maven 3.0.3 (<a href="http://maven.apache.org/download.html">http://maven.apache.org/download.html</a>).</li></ul><p><strong>Note:</strong> Karaf Cellar requires Java 7 to compile, build and run.</p><h3 id="BuildingonWindows">Building on Windows</h3><p>This procedure explains how to download and install the source distribution on a Windows system.</p><ol><li>From a browser, navigate to <a href="http://karaf.apache.org/sub-projects/cellar/download.html">http://karaf.apache.org/sub-projects/cellar/download.html</a>.</li><li>Select the desired distribution.<p>For a source distribution, the filename will be similar to: <tt>apache-karaf-cellar-x.y-src.zip</tt>.</p></li><li>Extract Karaf Cellar from the ZIP file into a directory of your choice. Please remember the restrictions concerning illegal characters in Java paths, e.g. !, % etc.</li><li><span id="WindowsSourceInstallation"></span> Build Karaf Cellar us
 ing Maven 3.0.3 or greater and Java 6.<p>The recommended method of building Karaf Cellar is the following:</p><pre>
+cd [cellar_install_dir]\src
+</pre><p>where <tt>[cellar_install_dir]</tt> is the directory in which Karaf Cellar was uncompressed.</p><pre>
+mvn
+</pre></li><li>Proceed to the <a href="deploy#Deploy Cellar.html">Deploy Cellar</a> chapter.</li></ol><h3 id="BuildingonUnix">Building on Unix</h3><p>This procedure explains how to download and install the source distribution on an Unix system.</p><ol><li>From a browser, navigate to <a href="http://karaf.apache.org/sub-projects/cellar/download.html">http://karaf.apache.org/sub-projects/cellar/download.html</a>.</li><li>Select the desired distribution.<p>For a source distribution, the filename will be similar to: <tt>apache-karaf-cellar-x.y-src.tar.gz</tt>.</p></li><li>Extract the files from the tarball file into a directory of your choice. For example:<pre>
+gunzip apache-karaf-cellar-x.y-src.tar.gz
+tar xvf apache-karaf-cellar-x.y-src.tar
+</pre><p>Please remember the restrictions concerning illegal characters in Java paths, e.g. !, % etc.</p></li><li>Build Karaf using Maven:<p>The preferred method of building Karaf is the following:</p><pre>
+cd [karaf_install_dir]/src
+</pre><p>where [karaf_install_dir] is the directory in which Karaf Cellar was uncompressed.</p><pre>
+mvn
+</pre></li><li>Proceed to the <a href="deploy#Deploy Cellar.html">Deploy Cellar</a> chapter.</li></ol>
\ No newline at end of file

Added: karaf/site/production/manual/cellar/latest-4/user-guide/introduction.html
URL: http://svn.apache.org/viewvc/karaf/site/production/manual/cellar/latest-4/user-guide/introduction.html?rev=1705801&view=auto
==============================================================================
--- karaf/site/production/manual/cellar/latest-4/user-guide/introduction.html (added)
+++ karaf/site/production/manual/cellar/latest-4/user-guide/introduction.html Tue Sep 29 05:38:10 2015
@@ -0,0 +1,37 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd"> 
+<html lang="en">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+    <meta name="description" content="description goes here"/>
+    <meta name="keywords" content="keywords,goes,here"/>
+    <meta name="author" content="The Apache Karaf Team"/>
+    <link href="../css/style.css" rel="stylesheet" type="text/css"/>
+    <link href="../css/pygmentize.css" rel="stylesheet" type="text/css"/>
+    <title>
+      Apache Karaf Cellar 4.0.1-SNAPSHOT Guides
+    </title>
+  </head>
+  <body>
+    <table width="100%" cellpadding="0" cellspacing="0">
+      <tr width="100%">
+        <td id="cell-0-0" colspan="2">
+          &nbsp;
+        </td>
+        <td id="cell-0-1">
+          &nbsp;
+        </td>
+        <td id="cell-0-2" colspan="2">
+          &nbsp;
+        </td>
+      </tr>
+      <tr width="100%">
+        <td id="cell-1-0">
+          &nbsp;
+        </td>
+        <td id="cell-1-1">
+          &nbsp;
+        </td>
+        <td id="cell-1-2">
+          <div style="padding: 5px;">
+            <div id="banner">
+              <h1 id="Introduction">Introduction</h1><h2 id="KarafCellarusecases">Karaf Cellar use cases</h2><p>The first purpose of Cellar is to synchronize the state of several Karaf instances (named nodes).</p><p>Cellar provides dedicated shell commands and MBeans to administrate the cluster, and manipulate the resources on the cluster.</p><p>It's also possible to enable local resources listeners: these listeners broadcast local resource changes as cluster events.<br/>Please note that this behavior is disabled by default as it can have side effects (especially when a node is stopped).<br/>Enabling listeners is at your own risk.</p><p>The nodes list could be discovered (using unicast or multicast), or "staticly" defined (using a couple hostname or IP<br/>and port list).</p><p>Cellar is able to synchronize:</p><ul style="list-style: square"><li>bundles (remote, local, or from an OBR)</li><li>config</li><li>features</li><li>eventadmin</li></ul><p>Optionally, Cellar also support sync
 hronization of OSGi EventAdmin, OBR (URLs and bundles).</p><p>The second purpose is to provide a Distributed OSGi runtime. It means that using Cellar, you are able to call an OSGi<br/>service located on a remote instance. See the <a href="Transport and DOSGi.html">Transport and DOSGi</a> section of the user guide.</p><p>Finally, Cellar also provides "runtime clustering" by providing dedicated feature like:</p><ul style="list-style: square"><li>HTTP load balancing</li><li>HTTP sessions replication</li><li>log centralization<p>Please, see the sections dedicated to those features.</p><h2 id="Crosstopology">Cross topology</h2><p><img border="0" src="../images/cross_topology.jpg"/></p><p>This is the default Cellar topology. Cellar is installed on every nodes, each node has the same function.</p><p>It means that you can perform actions on any node, it will be broadcasted to all others nodes.</p><h2 id="Startopology">Star topology</h2><p><img border="0" src="../images/star_topology.jpg"/><
 /p><p>In this topology, if Cellar is installed on all nodes, you perform actions only on one specific node (the "manager").</p><p>To do that, the "manager" is a standard Cellar node, and the event producing is disable on all others nodes<br/>(cluster:producer-stop on all "managed" nodes).</p><p>Like this, only the "manager" will send event to the nodes (which are able to consumer and handle), but no event can<br/>be produced on the nodes.</p></li></ul>
\ No newline at end of file