You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by kf...@apache.org on 2018/07/31 08:23:36 UTC
svn commit: r1837124 - in /tomcat/trunk/webapps/docs: changelog.xml
config/cluster-membership.xml config/cluster.xml
Author: kfujino
Date: Tue Jul 31 08:23:36 2018
New Revision: 1837124
URL: http://svn.apache.org/viewvc?rev=1837124&view=rev
Log:
Add documents for Static Membership service.
Modified:
tomcat/trunk/webapps/docs/changelog.xml
tomcat/trunk/webapps/docs/config/cluster-membership.xml
tomcat/trunk/webapps/docs/config/cluster.xml
Modified: tomcat/trunk/webapps/docs/changelog.xml
URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/changelog.xml?rev=1837124&r1=1837123&r2=1837124&view=diff
==============================================================================
--- tomcat/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/trunk/webapps/docs/changelog.xml Tue Jul 31 08:23:36 2018
@@ -132,6 +132,9 @@
<bug>62558</bug>: Add Russian translations for the Manager and Host
Manager web applications. Based on a patch by Ivan Krasnov. (markt)
</add>
+ <add>
+ Add documents for Static Membership service. (kfujino)
+ </add>
</changelog>
</subsection>
<subsection name="Tribes">
Modified: tomcat/trunk/webapps/docs/config/cluster-membership.xml
URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/config/cluster-membership.xml?rev=1837124&r1=1837123&r2=1837124&view=diff
==============================================================================
--- tomcat/trunk/webapps/docs/config/cluster-membership.xml (original)
+++ tomcat/trunk/webapps/docs/config/cluster-membership.xml Tue Jul 31 08:23:36 2018
@@ -37,6 +37,12 @@
<p>
The membership component in the Apache Tribes <a href="cluster-channel.html">Channel</a> is responsible
for dynamic discovery of other members(nodes) in the cluster.
+ There are currently two different membership service, the <code>org.apache.catalina.tribes.membership.McastService</code>
+ and the <code>org.apache.catalina.tribes.membership.StaticMembershipService</code>.
+ The <code>McastService</code> builds a multicast based membership service
+ that sends UDP packets to multicast IP addresses.
+ The <code>StaticMembershipService</code> builds a unicast based membership
+ service that sends TCP packets to predefined member address.
</p>
</section>
@@ -55,15 +61,24 @@
<section name="Attributes">
-
+ <subsection name="Common Attributes">
+ <attributes>
+ <attribute name="className" required="true">
+ <p>
+ The implementation of the membership component.
+ Two implementations available, <code>org.apache.catalina.tribes.membership.McastService</code>
+ and <code>org.apache.catalina.tribes.membership.StaticMembershipService</code>.
+ </p>
+ </attribute>
+ </attributes>
+ </subsection>
<subsection name="Multicast Attributes">
<attributes>
<attribute name="className" required="true">
<p>
- The default value is <code>org.apache.catalina.tribes.membership.McastService</code>
- and is currently the only implementation.
+ The value is <code>org.apache.catalina.tribes.membership.McastService</code>.
This implementation uses multicast heartbeats for member discovery.
</p>
</attribute>
@@ -159,15 +174,129 @@
</p>
</attribute>
-
</attributes>
-
</subsection>
+ <subsection name="Static Membership Attributes">
+ <attributes>
+ <attribute name="className" required="true">
+ <p>
+ The value is <code>org.apache.catalina.tribes.membership.StaticMembershipService</code>.
+ </p>
+ </attribute>
+ <attribute name="connectTimeout" required="false">
+ <p>
+ Timeout for attempting a TCP connection to address of predefined static member.
+ Default is <code>500</code> ms.
+ </p>
+ </attribute>
+ <attribute name="expirationTime" required="false">
+ <p>
+ If members have failed to update their alive time within the given time,
+ this membership will notify the memberDisappeared event to cluster.
+ Default is <code>5000</code> ms.
+ </p>
+ </attribute>
+ <attribute name="rpcTimeout" required="false">
+ <p>
+ Timeout for messages that used for member notification to/from othee nodes.
+ Default is <code>3000</code> ms.
+ </p>
+ </attribute>
+ <attribute name="useThread" required="false">
+ <p>
+ If set to true, this membership service will start a local thread for
+ sending a ping message. if set to <code>false</code>, channel heartbeat
+ will send a ping message. Default is <code>false</code>.
+ </p>
+ </attribute>
+ <attribute name="pingInterval" required="false">
+ <p>
+ If <code>useThread</code> == <code>true</code>, defines the interval of
+ sending a ping message. Default is <code>1000</code> ms.
+ </p>
+ </attribute>
+ </attributes>
+ </subsection>
</section>
+<section name="Nested Components">
+ <p>
+ Static Membership Service allows nesting of a <strong><LocalMember></strong>
+ and <strong><Member></strong>element.
+ </p>
+ <subsection name="StaticMember Attributes">
+ <p><b>LocalMember:</b> <br/>
+ Static member that is the local member of the static cluster group.
+ </p>
+ <attributes>
+ <attribute name="className" required="true">
+ Only one implementation available:<code>org.apache.catalina.tribes.membership.StaticMember</code>
+ </attribute>
+ <attribute name="port" required="false">
+ There is no need to set.
+ The value of this attribute inherits from the cluster receiver setting.
+ </attribute>
+ <attribute name="securePort" required="false">
+ There is no need to set.
+ The value of this attribute inherits from the cluster receiver setting.
+ </attribute>
+ <attribute name="host" required="false">
+ There is no need to set.
+ The value of this attribute inherits from the cluster receiver setting.
+ </attribute>
+ <attribute name="domain" required="false">
+ The logical cluster domain for that this static member listens for cluster messages.
+ Two different type of values are possible:<br/>
+ 1. Regular string values like "staging-domain" or "tomcat-cluster" will be converted into bytes
+ using ISO-8859-1 encoding.
+ 2. byte array in string form, for example {216,123,12,3}<br/>
+ </attribute>
+ <attribute name="uniqueId" required="true">
+ A universally uniqueId for this static member.
+ The values must be 16 bytes in the following form:<br/>
+ 1. byte array in string form, for example {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15}<br/>
+ </attribute>
+ </attributes>
+
+ <p><b>Member:</b> <br/>
+ Static member that add to the static cluster group.
+ </p>
+ <attributes>
+ <attribute name="className" required="true">
+ Only one implementation available:<code>org.apache.catalina.tribes.membership.StaticMember</code>
+ </attribute>
+ <attribute name="port" required="true">
+ The port that this static member listens to for cluster messages
+ </attribute>
+ <attribute name="securePort" required="false">
+ The secure port this static member listens to for encrypted cluster messages
+ default value is <code>-1</code>, this value means the member is not listening on a secure port
+ </attribute>
+ <attribute name="host" required="true">
+ The host (or network interface) that this static member listens for cluster messages.
+ Three different type of values are possible:<br/>
+ 1. IP address in the form of "216.123.1.23"<br/>
+ 2. Hostnames like "tomcat01.mydomain.com" or "tomcat01" as long as they resolve correctly<br/>
+ 3. byte array in string form, for example {216,123,12,3}<br/>
+ </attribute>
+ <attribute name="domain" required="false">
+ The logical cluster domain for that this static member listens for cluster messages.
+ Two different type of values are possible:<br/>
+ 1. Regular string values like "staging-domain" or "tomcat-cluster" will be converted into bytes
+ using ISO-8859-1 encoding.<br/>
+ 2. byte array in string form, for example {216,123,12,3}<br/>
+ </attribute>
+ <attribute name="uniqueId" required="true">
+ A universally uniqueId for this static member.
+ The values must be 16 bytes in the following form:<br/>
+ 1. byte array in string form, for example {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15}<br/>
+ </attribute>
+ </attributes>
+ </subsection>
+</section>
</body>
Modified: tomcat/trunk/webapps/docs/config/cluster.xml
URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/config/cluster.xml?rev=1837124&r1=1837123&r2=1837124&view=diff
==============================================================================
--- tomcat/trunk/webapps/docs/config/cluster.xml (original)
+++ tomcat/trunk/webapps/docs/config/cluster.xml Tue Jul 31 08:23:36 2018
@@ -155,15 +155,12 @@ Tomcat cluster. These include:</p>
<attribute name="channelStartOptions" required="false">
<p>Sets the start and stop flags for the <Channel> object used by the cluster.
The default is <code>Channel.DEFAULT</code> which starts all the channel services, such as
- sender, receiver, multicast sender and multicast receiver.
+ sender, receiver, membership sender and membership receiver.
The following flags are available today:</p>
<source>Channel.DEFAULT = Channel.SND_RX_SEQ (1) |
Channel.SND_TX_SEQ (2) |
Channel.MBR_RX_SEQ (4) |
Channel.MBR_TX_SEQ (8);</source>
- <p>To start a channel without multicasting, you would want to use the value <code>Channel.SND_RX_SEQ | Channel.SND_TX_SEQ</code>
- that equals to <code>3</code>.
- </p>
</attribute>
<attribute name="heartbeatBackgroundEnabled" required="false">
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org