Permalink
Browse files

Add protocol SWIFT_PING

Add SWIFT_PING protocol id
  • Loading branch information...
Thomas SEGISMONT authored and tsegismont committed Jun 8, 2012
1 parent a25b709 commit 649a3f3bb1f02b69a3c8a10385e94876e2d3d37e
Showing with 756 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +1 −0 conf/jg-protocol-ids.xml
  3. +30 −0 doc/manual/en/modules/protocols.xml
  4. +724 −0 src/org/jgroups/protocols/SWIFT_PING.java
View
@@ -4,6 +4,7 @@
*.iml
.project
.classpath
+.settings/
.idea/
.idea
classes/
View
@@ -55,6 +55,7 @@
<class id="56" name="org.jgroups.protocols.RACKSPACE_PING"/>
<class id="57" name="org.jgroups.protocols.pbcast.NAKACK2"/>
<class id="58" name="org.jgroups.protocols.tom.TOA"/>
+ <class id="59" name="org.jgroups.protocols.SWIFT_PING"/>
<!-- IDs reserved for building blocks -->
<class id="200" name="org.jgroups.blocks.RequestCorrelator"/> <!-- ID should be the same as Global.BLOCKS_START_ID -->
@@ -410,6 +410,36 @@
${S3_PING}
</section>
+
+ <section>
+ <title>SWIFT_PING</title>
+
+ <para>
+ SWIFT_PING uses Openstack Swift to discover initial members. Each node writes a small
+ object in a shared container. New joiners read all addresses from the container and ping each
+ of the elements of the resulting set of members. When a member leaves, it deletes its corresponding object.
+ </para>
+
+ <para>
+ These objects are stored under a container called 'jgroups' (by default), and each node will write an object name after
+ the cluster name, plus a "/" followed by the address, thus simulating a hierarchical structure.
+ </para>
+
+ <para>
+ Currently only Openstack Keystone authentication is supported. Here is a sample configuration block:
+ </para>
+ <programlisting language="XML">
+&lt;SWIFT_PING timeout="2000"
+ num_initial_members="3"
+ auth_type="keystone_v_2_0"
+ auth_url="http://localhost:5000/v2.0/tokens"
+ username="demo"
+ password="password"
+ tenant="demo" /&gt;
+ </programlisting>
+
+ ${SWIFT_PING}
+ </section>
</section>
<section>
Oops, something went wrong.

0 comments on commit 649a3f3

Please sign in to comment.