]> git.samba.org - sahlberg/ctdb.git/blob - config/ctdb.sysconfig
ctdb.sysconfig: add a comment section about CTDB_RUN_TIMEOUT_MONITOR
[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 for split brain prevention to work.
5 # This must be on shared storage.
6 # CTDB can operate without a reclock file, but this means that there is no
7 # protection against a split brain.
8 # It is strongly suggested to NOT run ctdb without a reclock file.
9 CTDB_RECOVERY_LOCK="/some/place/on/shared/storage"
10
11 # when doing IP takeover you also may specify what network interface
12 # to use by default for the public addresses. Otherwise you must
13 # specify an interface on each line of the public addresses file
14 # there is no default
15 # CTDB_PUBLIC_INTERFACE=eth0
16
17 # Should ctdb do IP takeover? If it should, then specify a file
18 # containing the list of public IP addresses that ctdb will manage
19 # Note that these IPs must be different from those in $NODES above
20 # there is no default.
21 # The syntax is one line per public address of the form :
22 #   <ipaddress>/<netmask> <interface>
23 # Example: 10.1.1.1/24 eth0
24 #
25 # CTDB_PUBLIC_ADDRESSES=/etc/ctdb/public_addresses
26
27 # Should CTDB present the cluster using a single public ip address to clients
28 # and multiplex clients across all CONNECTED nodes ?
29 # This is based on LVS 
30 # When this is enabled, the entire cluster will present one single ip address
31 # which clients will connect to.
32 # CTDB_LVS_PUBLIC_IP=10.1.1.1
33
34
35 # should ctdb manage starting/stopping the Samba service for you?
36 # default is to not manage Samba
37 # CTDB_MANAGES_SAMBA=yes
38
39 # If there are very many shares it may not be feasible to check that all
40 # of them are available during each monitoring interval.
41 # In that case this check can be disabled
42 # CTDB_SAMBA_SKIP_SHARE_CHECK=yes
43 # CTDB_NFS_SKIP_SHARE_CHECK=yes
44
45 # specify which ports we should check that there is a daemon listening to
46 # by default we use testparm and look in smb.conf to figure out.
47 # CTDB_SAMBA_CHECK_PORTS="445"
48
49 # should ctdb manage starting/stopping Winbind service?
50 # if left comented out then it will be autodetected based on smb.conf
51 # CTDB_MANAGES_WINBIND=yes
52
53 # should ctdb manage starting/stopping the VSFTPD service
54 # CTDB_MANAGES_VSFTPD=yes
55
56 # should ctdb manage starting/stopping the ISCSI service
57 # CTDB_MANAGES_ISCSI=yes
58
59 # should ctdb manage starting/stopping the NFS service
60 # CTDB_MANAGES_NFS=yes
61
62 # should ctdb manage starting/stopping the Apache web server httpd?
63 # CTDB_MANAGES_HTTPD
64
65 # The init style (redhat/suse/debian...) is usually auto-detected.
66 # The names of init scripts of services managed by CTDB are set
67 # based on the detected init style. You can override the init style
68 # auto-detection here to explicitly use a scheme. This might be
69 # useful when you have installed a packages (for instance samba
70 # packages) with a different init script layout.
71 # There is no default.
72 # CTDB_INIT_STYLE=redhat
73
74 # The following are specific Samba init scripts / services that you
75 # can override from auto-detection.
76 # There are no defaults.
77 # CTDB_SERVICE_SMB=smb
78 # CTDB_SERVICE_NMB=nmb
79 # CTDB_SERVICE_WINBIND=winbind
80
81 # you may wish to raise the file descriptor limit for ctdb
82 # use a ulimit command here. ctdb needs one file descriptor per
83 # connected client (ie. one per connected client in Samba)
84 #  ulimit -n 10000
85
86 # the NODES file must be specified or ctdb won't start
87 # it should contain a list of IPs that ctdb will use
88 # it must be exactly the same on all cluster nodes
89 # defaults to /etc/ctdb/nodes
90 # CTDB_NODES=/etc/ctdb/nodes
91
92 # a script to run when node health changes
93 # CTDB_NOTIFY_SCRIPT=/etc/ctdb/notify.sh
94
95 # the directory to put the local ctdb database files in
96 # defaults to /var/ctdb
97 # CTDB_DBDIR=/var/ctdb
98
99 # the directory to put the local persistent ctdb database files in
100 # defaults to /var/ctdb/persistent
101 # CTDB_DBDIR_PERSISTENT=/var/ctdb/persistent
102
103 # the directory where service specific event scripts are stored
104 # defaults to /etc/ctdb/events.d
105 # CTDB_EVENT_SCRIPT_DIR=/etc/ctdb/events.d
106
107 # the location of the local ctdb socket
108 # defaults to /tmp/ctdb.socket
109 # CTDB_SOCKET=/tmp/ctdb.socket
110
111 # what transport to use. Only tcp is currently supported
112 # defaults to tcp
113 # CTDB_TRANSPORT="tcp"
114
115 # When set, this variable makes ctdb monitor the amount of free memory
116 # in the system (the second number in the buffers/cache output from free -m).
117 # If the amount of free memory drops below this treshold the node will become
118 # unhealthy and ctdb and all managed services will be shutdown.
119 # Once this occurs, the administrator needs to find the reason for the OOM
120 # situation, rectify it and restart ctdb with "service ctdb start"
121 # The unit is MByte
122 # CTDB_MONITOR_FREE_MEMORY=100
123
124 # When set to yes, the CTDB node will start in DISABLED mode and not host
125 # any public ip addresses. The administrator needs to explicitely enable
126 # the node with "ctdb enable"
127 # CTDB_START_AS_DISABLED="yes"
128
129 # LMASTER and RECMASTER capabilities.
130 # By default all nodes are capable of both being LMASTER for records and
131 # also for taking the RECMASTER role and perform recovery.
132 # These parameters can be used to disable these two roles on a node.
133 # Note: If there are NO available nodes left in a cluster that can perform
134 # the RECMASTER role, the cluster will not be able to recover from a failure
135 # and will remain in RECOVERY mode until an RECMASTER capable node becomes
136 # available. Same for LMASTER.
137 # These parametersd are useful for scenarios where you have one "remote" node
138 # in a cluster and you do not want the remote node to be fully participating
139 # in the cluster and slow things down.
140 # For that case, set both roles to "no" for the remote node on the remote site
141 # but leave the roles default to "yes" on the primary nodes in the central
142 # datacentre.
143 # CTDB_CAPABILITY_RECMASTER=yes
144 # CTDB_CAPABILITY_LMASTER=yes
145
146 # NAT-GW configuration
147 # Some services running on nthe CTDB node may need to originate traffic to
148 # remote servers before the node is assigned any IP addresses,
149 # This is problematic since before the node has public addresses the node might
150 # not be able to route traffic to the public networks.
151 # One solution is to have static public addresses assigned with routing
152 # in addition to the public address interfaces, thus guaranteeing that
153 # a node always can route traffic to the external network.
154 # This is the most simple solution but it uses up a large number of 
155 # additional ip addresses.
156 #
157 # A more complex solution is NAT-GW.
158 # In this mode we only need one additional ip address for the cluster from
159 # the exsternal public network.
160 # One of the nodes in the cluster is elected to be hosting this ip address
161 # so it can reach the external services. This node is also configured
162 # to use NAT MASQUERADING for all traffic from the internal private network
163 # to the external network. This node is the NAT-GW node.
164 #
165 # All other nodes are set up with a default rote with a metric of 10 to point
166 # to the nat-gw node.
167
168 # The effect of this is that only when a node does not have a public address
169 # and thus no proper routes to the external world it will instead
170 # route all packets through the nat-gw node.
171 #
172 # CTDB_NATGW_NODES is the list of nodes that belong to this natgw group.
173 # You can have multiple natgw groups in one cluster but each node
174 # can only belong to one single natgw group.
175 #
176 # CTDB_NATGW_PUBLIC_IP=10.0.0.227/24
177 # CTDB_NATGW_PUBLIC_IFACE=eth0
178 # CTDB_NATGW_DEFAULT_GATEWAY=10.0.0.1
179 # CTDB_NATGW_PRIVATE_NETWORK=10.1.1.0/24
180 # CTDB_NATGW_NODES=/etc/ctdb/natgw_nodes
181
182 # where to log messages
183 # the default is /var/log/log.ctdb
184 # CTDB_LOGFILE=/var/log/log.ctdb
185
186 # what debug level to run at. Higher means more verbose
187 # the default is ERR
188 CTDB_DEBUGLEVEL=ERR
189
190 # whether to suppress core files.  Default is no.
191 # CTDB_SUPPRESS_COREFILE=yes
192
193 # Write debug messages to syslog instead of logfile?
194 # The default is not to use syslog.
195 # CTDB_SYSLOG=no
196
197 # Should the 99.timeout monitor event script be run?
198 # This event script just sleeps long enough to trigger the
199 # event script timeout. Might be useful for debugging.
200 # The default is "no".
201 # CTDB_RUN_TIMEOUT_MONITOR=no
202
203 # set any default tuning options for ctdb
204 # use CTDB_SET_XXXX=value where XXXX is the name of the tuning
205 # variable
206 # for example
207 #    CTDB_SET_TRAVERSETIMEOUT=60
208 # you can get a list of variables using "ctdb listvars"
209
210 # any other options you might want. Run ctdbd --help for a list
211 # CTDB_OPTIONS=
212