diff options
Diffstat (limited to 'ctdb/config/ctdb.sysconfig')
-rw-r--r-- | ctdb/config/ctdb.sysconfig | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/ctdb/config/ctdb.sysconfig b/ctdb/config/ctdb.sysconfig index db5d16c3fe..bcc1184225 100644 --- a/ctdb/config/ctdb.sysconfig +++ b/ctdb/config/ctdb.sysconfig @@ -128,6 +128,43 @@ # CTDB_CAPABILITY_RECMASTER=yes # CTDB_CAPABILITY_LMASTER=yes +# NAT-GW configuration +# Some services running on nthe CTDB node may need to originate traffic to +# remote servers before the node is assigned any IP addresses, +# This is problematic since before the node has public addresses the node might +# not be able to route traffic to the public networks. +# One solution is to have static public addresses assigned with routing +# in addition to the public address interfaces, thus guaranteeing that +# a node always can route traffic to the external network. +# This is the most simple solution but it uses up a large number of +# additional ip addresses. +# +# A more complex solution is NAT-GW. +# In this mode we only need one additional ip address for the cluster from +# the exsternal public network. +# One of the nodes in the cluster is elected to be hosting this ip address +# so it can reach the external services. This node is also configured +# to use NAT MASQUERADING for all traffic from the internal private network +# to the external network. This node is the NAT-GW node. +# +# All other nodes are set up with policy routing so that all traffic with +# a source address of the private network and a destination outside of +# the private network are instead routed through the NAT-GW node. +# +# The effect of this is that only when a node does not have a public address +# or a route to the external network will the node use the private address +# as the source address and only then will it use the policy routing +# through the NAT-GW. +# As long as a node has a public address and can route to the external network +# the node will always pick the public address as the source address and NAT-GW +# routing will not be used. +#NATGW_PUBLIC_IP=10.0.0.227/24 +#NATGW_PUBLIC_IFACE=eth0 +#NATGW_DEFAULT_GATEWAY=10.0.0.1 +#NATGW_PRIVATE_IFACE=eth0 +#NATGW_PRIVATE_NETWORK=10.0.0.0/24 + + # where to log messages # the default is /var/log/log.ctdb # CTDB_LOGFILE=/var/log/log.ctdb |