change the NATGW_ example in sysconfig to make it more realistic
[sahlberg/ctdb.git] / config / ctdb.sysconfig
1 # Options to ctdbd. This is read by /etc/init.d/ctdb
2
3 # you must specify the location of a shared lock file across all the
4 # nodes. This must be on shared storage
5 # there is no default
6 # CTDB_RECOVERY_LOCK="/some/place/on/shared/storage"
7
8 # when doing IP takeover you also may specify what network interface
9 # to use by default for the public addresses. Otherwise you must
10 # specify an interface on each line of the public addresses file
11 # there is no default
12 # CTDB_PUBLIC_INTERFACE=eth0
13
14 # Should ctdb do IP takeover? If it should, then specify a file
15 # containing the list of public IP addresses that ctdb will manage
16 # Note that these IPs must be different from those in $NODES above
17 # there is no default.
18 # The syntax is one line per public address of the form :
19 #   <ipaddress>/<netmask> <interface>
20 # Example: 10.1.1.1/24 eth0
21 #
22 # CTDB_PUBLIC_ADDRESSES=/etc/ctdb/public_addresses
23
24 # Should CTDB present the cluster using a single public ip address to clients
25 # and multiplex clients across all CONNECTED nodes ?
26 # This is based on LVS 
27 # When this is enabled, the entire cluster will present one single ip address
28 # which clients will connect to.
29 # CTDB_LVS_PUBLIC_IP=10.1.1.1
30
31
32 # IPMUX : OBSOLETE use LVS instead
33 # Should ctdb implement a single public ip address across the entire cluster
34 # and multiplex incoming connections across the connected nodes
35 # When using a single public ip you must also specify the public interface!
36 # This makes all incoming traffic go through a single ctdb node which
37 # will then forward the packets out acros the other nodes. This will 
38 # impact performance.
39 # CTDB_SINGLE_PUBLIC_IP=10.1.1.1
40
41 # should ctdb manage starting/stopping the Samba service for you?
42 # default is to not manage Samba
43 # CTDB_MANAGES_SAMBA=yes
44
45 # If there are very many shares it may not be feasible to check that all
46 # of them are available during each monitoring interval.
47 # In that case this check can be disabled
48 # CTDB_SAMBA_SKIP_SHARE_CHECK=yes
49 # CTDB_NFS_SKIP_SHARE_CHECK=yes
50
51 # specify which ports we should check that there is a daemon listening to
52 # by default we use testparm and look in smb.conf to figure out.
53 # CTDB_SAMBA_CHECK_PORTS="445"
54
55 # should ctdb manage starting/stopping Winbind service?
56 # if left comented out then it will be autodetected based on smb.conf
57 # CTDB_MANAGES_WINBIND=yes
58
59 # should ctdb manage starting/stopping the VSFTPD service
60 # CTDB_MANAGES_VSFTPD=yes
61
62 # should ctdb manage starting/stopping the ISCSI service
63 # CTDB_MANAGES_ISCSI=yes
64
65 # should ctdb manage starting/stopping the NFS service
66 # CTDB_MANAGES_NFS=yes
67
68
69 # you may wish to raise the file descriptor limit for ctdb
70 # use a ulimit command here. ctdb needs one file descriptor per
71 # connected client (ie. one per connected client in Samba)
72 #  ulimit -n 10000
73
74 # the NODES file must be specified or ctdb won't start
75 # it should contain a list of IPs that ctdb will use
76 # it must be exactly the same on all cluster nodes
77 # defaults to /etc/ctdb/nodes
78 # CTDB_NODES=/etc/ctdb/nodes
79
80 # the directory to put the local ctdb database files in
81 # defaults to /var/ctdb
82 # CTDB_DBDIR=/var/ctdb
83
84 # the directory to put the local persistent ctdb database files in
85 # defaults to /var/ctdb/persistent
86 # CTDB_DBDIR_PERSISTENT=/var/ctdb/persistent
87
88 # the directory where service specific event scripts are stored
89 # defaults to /etc/ctdb/events.d
90 # CTDB_EVENT_SCRIPT_DIR=/etc/ctdb/events.d
91
92 # the location of the local ctdb socket
93 # defaults to /tmp/ctdb.socket
94 # CTDB_SOCKET=/tmp/ctdb.socket
95
96 # what transport to use. Only tcp is currently supported
97 # defaults to tcp
98 # CTDB_TRANSPORT="tcp"
99
100 # When set, this variable makes ctdb monitor the amount of free memory
101 # in the system (the second number in the buffers/cache output from free -m).
102 # If the amount of free memory drops below this treshold the node will become
103 # unhealthy and ctdb and all managed services will be shutdown.
104 # Once this occurs, the administrator needs to find the reason for the OOM
105 # situation, rectify it and restart ctdb with "service ctdb start"
106 # The unit is MByte
107 # CTDB_MONITOR_FREE_MEMORY=100
108
109 # When set to yes, the CTDB node will start in DISABLED mode and not host
110 # any public ip addresses. The administrator needs to explicitely enable
111 # the node with "ctdb enable"
112 # CTDB_START_AS_DISABLED="yes"
113
114 # LMASTER and RECMASTER capabilities.
115 # By default all nodes are capable of both being LMASTER for records and
116 # also for taking the RECMASTER role and perform recovery.
117 # These parameters can be used to disable these two roles on a node.
118 # Note: If there are NO available nodes left in a cluster that can perform
119 # the RECMASTER role, the cluster will not be able to recover from a failure
120 # and will remain in RECOVERY mode until an RECMASTER capable node becomes
121 # available. Same for LMASTER.
122 # These parametersd are useful for scenarios where you have one "remote" node
123 # in a cluster and you do not want the remote node to be fully participating
124 # in the cluster and slow things down.
125 # For that case, set both roles to "no" for the remote node on the remote site
126 # but leave the roles default to "yes" on the primary nodes in the central
127 # datacentre.
128 # CTDB_CAPABILITY_RECMASTER=yes
129 # CTDB_CAPABILITY_LMASTER=yes
130
131 # NAT-GW configuration
132 # Some services running on nthe CTDB node may need to originate traffic to
133 # remote servers before the node is assigned any IP addresses,
134 # This is problematic since before the node has public addresses the node might
135 # not be able to route traffic to the public networks.
136 # One solution is to have static public addresses assigned with routing
137 # in addition to the public address interfaces, thus guaranteeing that
138 # a node always can route traffic to the external network.
139 # This is the most simple solution but it uses up a large number of 
140 # additional ip addresses.
141 #
142 # A more complex solution is NAT-GW.
143 # In this mode we only need one additional ip address for the cluster from
144 # the exsternal public network.
145 # One of the nodes in the cluster is elected to be hosting this ip address
146 # so it can reach the external services. This node is also configured
147 # to use NAT MASQUERADING for all traffic from the internal private network
148 # to the external network. This node is the NAT-GW node.
149 #
150 # All other nodes are set up with policy routing so that all traffic with
151 # a source address of the private network and a destination outside of
152 # the private network are instead routed through the NAT-GW node.
153
154 # The effect of this is that only when a node does not have a public address
155 # or a route to the external network will the node use the private address
156 # as the source address and only then will it use the policy routing
157 # through the NAT-GW.
158 # As long as a node has a public address and can route to the external network
159 # the node will always pick the public address as the source address and NAT-GW
160 # routing will not be used.
161 #NATGW_PUBLIC_IP=10.0.0.227/24
162 #NATGW_PUBLIC_IFACE=eth0
163 #NATGW_DEFAULT_GATEWAY=10.0.0.1
164 #NATGW_PRIVATE_IFACE=eth1
165 #NATGW_PRIVATE_NETWORK=10.1.1.0/24
166
167
168 # where to log messages
169 # the default is /var/log/log.ctdb
170 # CTDB_LOGFILE=/var/log/log.ctdb
171
172 # what debug level to run at. Higher means more verbose
173 # the default is 2
174 CTDB_DEBUGLEVEL=2
175
176 # set any default tuning options for ctdb
177 # use CTDB_SET_XXXX=value where XXXX is the name of the tuning
178 # variable
179 # for example
180 #    CTDB_SET_TRAVERSETIMEOUT=60
181 # you can get a list of variables using "ctdb listvars"
182
183
184 # any other options you might want. Run ctdbd --help for a list
185 # CTDB_OPTIONS=
186