Add cluster_port parameter for Multiple clusters

This commit is contained in:
fendo 2017-05-27 00:09:19 +02:00
parent 7034e6a018
commit 0f20bfda6a
9 changed files with 55 additions and 6 deletions

View file

@ -345,6 +345,11 @@ Multicast cluster address (default: 239.192.13.13). See the section
on <A HREF="#Clustering">Clustering</A> for more information.
</LI>
<LI><B>cluster_port</B> (int udp port)<BR>
UDP cluster port (default: 32792). See the section on
<A HREF="#Clustering">Clustering</A> for more information.
</LI>
<LI><B>cluster_interface</B> (string)<BR>
Interface for cluster packets (default: eth0).
</LI>
@ -1150,6 +1155,13 @@ A master, when determining that it has at least one up-to-date slave
will drop all routes (raising them again if all slaves disappear) and
subsequently handle only packets forwarded to it by the slaves.<P>
*Configurable with <B>cluster_master_min_adv</B><P>
Multiple clusters can be run on the same network by just using different
multicast <B>cluster_address</B>. However, for a given host to be part
of multiple clusters without mixing the clusters,
<B>cluster_port</B> must be different for each cluster.<B>
<H2 ID="Routing">Routing</H2>
If you are running a single instance, you may simply statically route
the IP pools to the <B>bind_address</B> (l2tpns will send a gratuitous

View file

@ -592,6 +592,16 @@ set boolean true
</listitem>
</varlistentry>
<varlistentry>
<term><literal>cluster_port</literal> (udp port)</term>
<listitem>
<para>
UDP cluster port (default: 32792).
See <xref linkend="clustering"/> for more information.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>cluster_interface</literal> (string)</term>
<listitem>
@ -2089,7 +2099,8 @@ iptables -t nat -L garden -nvx
<para>
An <command>l2tpns</command> cluster consists of one* or more
servers configured with the same configuration, notably the
multicast <literal>cluster_address</literal>.
multicast <literal>cluster_address</literal> and the
<literal>cluster_port</literal>
</para>
<para>*A stand-alone server is simply a degraded cluster.</para>
@ -2098,7 +2109,8 @@ iptables -t nat -L garden -nvx
Initially servers come up as cluster slaves, and periodically
(every <literal>cluster_hb_interval</literal>/10 seconds) send
out ping packets containing the start time of the process to the
multicast <literal>cluster_address</literal>.
multicast <literal>cluster_address</literal> on
<literal>cluster_port</literal>.
</para>
<para>
@ -2140,6 +2152,13 @@ iptables -t nat -L garden -nvx
</para>
<para>*Configurable with <literal>cluster_master_min_adv</literal></para>
<para>
Multiple clusters can be run on the same network by just using different
multicast <literal>cluster_address</literal>. However, for a given host to
be part of multiple clusters without mixing the clusters,
<literal>cluster_port</literal> must be different for each cluster.
</para>
</sect1>
<sect1 id="routing">

View file

@ -133,7 +133,7 @@
.\" ========================================================================
.\"
.IX Title "STARTUP-CONFIG.5 1"
.TH STARTUP-CONFIG.5 1 "2015-09-22" "perl v5.20.2" "User Contributed Perl Documentation"
.TH STARTUP-CONFIG.5 1 "2017-05-26" "perl v5.20.2" "User Contributed Perl Documentation"
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l
@ -199,6 +199,9 @@ example of use with 2 address:
.IP "\fBcluster_address\fR (ip address)" 4
.IX Item "cluster_address (ip address)"
Multicast cluster address (default: 239.192.13.13). See the section on Clustering for more information.
.IP "\fBBcluster_port\fR (int)" 4
.IX Item "Bcluster_port (int)"
\&\s-1UDP\s0 cluster port (default: 32792). See the section on Clustering for more information.
.IP "\fBcluster_interface\fR (string)" 4
.IX Item "cluster_interface (string)"
Interface for cluster packets (default: eth0).

View file

@ -80,6 +80,10 @@ B<set> I<bind_multi_address> "64.14.13.41, 64.14.13.42"
Multicast cluster address (default: 239.192.13.13). See the section on Clustering for more information.
=item B<Bcluster_port> (int)
UDP cluster port (default: 32792). See the section on Clustering for more information.
=item B<cluster_interface> (string)
Interface for cluster packets (default: eth0).