summaryrefslogtreecommitdiff
path: root/ctdb/doc/ctdbd.1.xml
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronniesahlberg@gmail.com>2011-12-14 14:23:53 +1100
committerRonnie Sahlberg <ronniesahlberg@gmail.com>2011-12-14 14:23:53 +1100
commita05dd123790536d569bcde2c91f73bd5c57e2796 (patch)
tree94495035e4990157d0497e056193182c4c28fc50 /ctdb/doc/ctdbd.1.xml
parentf253f69063145271d6b057afdae03e9b2484a3db (diff)
downloadsamba-a05dd123790536d569bcde2c91f73bd5c57e2796.tar.gz
DOC: Update the manpage to describe all relevant tunables
(This used to be ctdb commit 3f471da605b9c43d5e1206452f238c2a91dc02f7)
Diffstat (limited to 'ctdb/doc/ctdbd.1.xml')
-rw-r--r--ctdb/doc/ctdbd.1.xml320
1 files changed, 296 insertions, 24 deletions
diff --git a/ctdb/doc/ctdbd.1.xml b/ctdb/doc/ctdbd.1.xml
index c884c017cd3..589a8247f0d 100644
--- a/ctdb/doc/ctdbd.1.xml
+++ b/ctdb/doc/ctdbd.1.xml
@@ -579,25 +579,121 @@
These are the public tuneables that can be used to control how ctdb behaves.
</para>
+ <refsect2><title>MaxRedirectCount</title>
+ <para>Default: 3</para>
+ <para>
+ If we are not the DMASTER and need to fetch a record across the network
+ we first send the request to the LMASTER after which the record
+ is passed onto the current DMASTER. If the DMASTER changes before
+ the request has reached that node, the request will be passed onto the
+ "next" DMASTER. For very hot records that migrate rapidly across the
+ cluster this can cause a request to "chase" the record for many hops
+ before it catches up with the record.
+
+ this is how many hops we allow trying to chase the DMASTER before we
+ switch back to the LMASTER again to ask for new directions.
+ </para>
+ <para>
+ When chasing a record, this is how many hops we will chase the record
+ for before going back to the LMASTER to ask for new guidance.
+ </para>
+ </refsect2>
+
+ <refsect2><title>SeqnumInterval</title>
+ <para>Default: 1000</para>
+ <para>
+ Some databases have seqnum tracking enabled, so that samba will be able
+ to detect asynchronously when there has been updates to the database.
+ Everytime a database is updated its sequence number is increased.
+ </para>
+ <para>
+ This tunable is used to specify in 'ms' how frequently ctdb will
+ send out updates to remote nodes to inform them that the sequence
+ number is increased.
+ </para>
+ </refsect2>
+
+ <refsect2><title>ControlTimeout</title>
+ <para>Default: 60</para>
+ <para>
+ This is the default
+ setting for timeout for when sending a control message to either the
+ local or a remote ctdb daemon.
+ </para>
+ </refsect2>
+
+ <refsect2><title>TraverseTimeout</title>
+ <para>Default: 20</para>
+ <para>
+ This setting controls how long we allow a traverse process to run.
+ After this timeout triggers, the main ctdb daemon will abort the
+ traverse if it has not yet finished.
+ </para>
+ </refsect2>
+
<refsect2><title>KeepaliveInterval</title>
- <para>Default: 1</para>
+ <para>Default: 5</para>
<para>
- How often should the nodes send keepalives to eachother.
+ How often in seconds should the nodes send keepalives to eachother.
</para>
</refsect2>
+
<refsect2><title>KeepaliveLimit</title>
<para>Default: 5</para>
<para>
After how many keepalive intervals without any traffic should a node
wait until marking the peer as DISCONNECTED.
</para>
+ <para>
+ If a node has hung, it can thus take KeepaliveInterval*(KeepaliveLimit+1)
+ seconds before we determine that the node is DISCONNECTED and that we
+ require a recovery. This limitshould not be set too high since we want
+ a hung node to be detectec, and expunged from the cluster well before
+ common CIFS timeouts (45-90 seconds) kick in.
+ </para>
+ </refsect2>
+
+ <refsect2><title>RecoverTimeout</title>
+ <para>Default: 20</para>
+ <para>
+ This is the default setting for timeouts for controls when sent from the
+ recovery daemon. We allow longer control timeouts from the recovery daemon
+ than from normal use since the recovery dameon often use controls that
+ can take a lot longer than normal controls.
+ </para>
</refsect2>
+
+ <refsect2><title>RecoverInterval</title>
+ <para>Default: 1</para>
+ <para>
+ How frequently in seconds should the recovery daemon perform the
+ consistency checks that determine if we need to perform a recovery or not.
+ </para>
+ </refsect2>
+
+ <refsect2><title>ElectionTimeout</title>
+ <para>Default: 3</para>
+ <para>
+ When electing a new recovery master, this is how many seconds we allow
+ the election to take before we either deem the election finished
+ or we fail the election and start a new one.
+ </para>
+ </refsect2>
+
+ <refsect2><title>TakeoverTimeout</title>
+ <para>Default: 9</para>
+ <para>
+ This is how many seconds we allow controls to take for IP failover events.
+ </para>
+ </refsect2>
+
<refsect2><title>MonitorInterval</title>
<para>Default: 15</para>
<para>
How often should ctdb run the event scripts to check for a nodes health.
</para>
</refsect2>
+
<refsect2><title>TickleUpdateInterval</title>
<para>Default: 20</para>
<para>
@@ -605,6 +701,7 @@
kickstart stalled tcp connections after a recovery.
</para>
</refsect2>
+
<refsect2><title>EventScriptTimeout</title>
<para>Default: 20</para>
<para>
@@ -612,6 +709,34 @@
marking the node unhealthy.
</para>
</refsect2>
+
+ <refsect2><title>EventScriptTimeoutCount</title>
+ <para>Default: 1</para>
+ <para>
+ How many events in a row needs to timeout before we flag the node UNHEALTHY.
+ This setting is useful if your scripts can not be written so that they
+ do not hang for benign reasons.
+ </para>
+ </refsect2>
+
+ <refsect2><title>EventScriptUnhealthyOnTimeout</title>
+ <para>Default: 0</para>
+ <para>
+ This setting can be be used to make ctdb never become UNHEALTHY if your
+ eventscripts keep hanging/timing out.
+ </para>
+ </refsect2>
+
+ <refsect2><title>RecoveryGracePeriod</title>
+ <para>Default: 120</para>
+ <para>
+ During recoveries, if a node has not caused recovery failures during the
+ last grace period, any records of transgressions that the node has caused
+ recovery failures will be forgiven. This resets the ban-counter back to
+ zero for that node.
+ </para>
+ </refsect2>
+
<refsect2><title>RecoveryBanPeriod</title>
<para>Default: 300</para>
<para>
@@ -623,71 +748,218 @@
to real problems with the node.
</para>
</refsect2>
+
<refsect2><title>DatabaseHashSize</title>
- <para>Default: 100000</para>
+ <para>Default: 100001</para>
<para>
Size of the hash chains for the local store of the tdbs that ctdb manages.
</para>
</refsect2>
+
+ <refsect2><title>DatabaseMaxDead</title>
+ <para>Default: 5</para>
+ <para>
+ How many dead records per hashchain in the TDB database do we allow before
+ the freelist needs to be processed.
+ </para>
+ </refsect2>
+
<refsect2><title>RerecoveryTimeout</title>
<para>Default: 10</para>
<para>
- Once a recovery has completed, no additional recoveries are permitted until this timeout has expired.
+ Once a recovery has completed, no additional recoveries are permitted
+ until this timeout has expired.
</para>
</refsect2>
+
<refsect2><title>EnableBans</title>
<para>Default: 1</para>
<para>
- When set to 0, this disables BANNING completely in the cluster and thus nodes can not get banned, even it they break. Don't set to 0.
+ When set to 0, this disables BANNING completely in the cluster and thus
+ nodes can not get banned, even it they break. Don't set to 0 unless you
+ know what you are doing.
</para>
</refsect2>
+
<refsect2><title>DeterministicIPs</title>
- <para>Default: 1</para>
+ <para>Default: 0</para>
<para>
- When enabled, this tunable makes ctdb try to keep public IP addresses locked to specific nodes as far as possible. This makes it easier for debugging since you can know that as long as all nodes are healthy public IP X will always be hosted by node Y.
+ When enabled, this tunable makes ctdb try to keep public IP addresses
+ locked to specific nodes as far as possible. This makes it easier for
+ debugging since you can know that as long as all nodes are healthy
+ public IP X will always be hosted by node Y.
</para>
<para>
- The cost of using deterministic IP address assignment is that it disables part of the logic where ctdb tries to reduce the number of public IP assignment changes in the cluster. This tunable may increase the number of IP failover/failbacks that are performed on the cluster by a small margin.
+ The cost of using deterministic IP address assignment is that it
+ disables part of the logic where ctdb tries to reduce the number of
+ public IP assignment changes in the cluster. This tunable may increase
+ the number of IP failover/failbacks that are performed on the cluster
+ by a small margin.
</para>
+
</refsect2>
- <refsect2><title>DisableWhenUnhealthy</title>
- <para>Default: 0</para>
+ <refsect2><title>LCP2PublicIPs</title>
+ <para>Default: 1</para>
<para>
- When set, As soon as a node becomes unhealthy, that node will also automatically become permanently DISABLED. Once a node is DISABLED, the only way to make it participate in the cluster again and host services is by manually enabling the node again using 'ctdb enable'.
+ When enabled this switches ctdb to use the LCP2 ip allocation
+ algorithm.
</para>
+ </refsect2>
+
+ <refsect2><title>ReclockPingPeriod</title>
+ <para>Default: x</para>
<para>
- This disables parts of the resilience and robustness of the cluster and should ONLY be used when the system administrator is actively monitoring the cluster, so that nodes can be enabled again.
+ Obsolete
</para>
</refsect2>
<refsect2><title>NoIPFailback</title>
<para>Default: 0</para>
<para>
- When set to 1, ctdb will not perform failback of IP addresses when a node becomes healthy. Ctdb WILL perform failover of public IP addresses when a node becomes UNHEALTHY, but when the node becomes HEALTHY again, ctdb will not fail the addresses back.
+ When set to 1, ctdb will not perform failback of IP addresses when a node
+ becomes healthy. Ctdb WILL perform failover of public IP addresses when a
+ node becomes UNHEALTHY, but when the node becomes HEALTHY again, ctdb
+ will not fail the addresses back.
</para>
<para>
Use with caution! Normally when a node becomes available to the cluster
-ctdb will try to reassign public IP addresses onto the new node as a way to distribute the workload evenly across the clusternode. Ctdb tries to make sure that all running nodes have approximately the same number of public addresses it hosts.
+ ctdb will try to reassign public IP addresses onto the new node as a way
+ to distribute the workload evenly across the clusternode. Ctdb tries to
+ make sure that all running nodes have approximately the same number of
+ public addresses it hosts.
+ </para>
+ <para>
+ When you enable this tunable, CTDB will no longer attempt to rebalance
+ the cluster by failing IP addresses back to the new nodes. An unbalanced
+ cluster will therefore remain unbalanced until there is manual
+ intervention from the administrator. When this parameter is set, you can
+ manually fail public IP addresses over to the new node(s) using the
+ 'ctdb moveip' command.
+ </para>
+ </refsect2>
+
+ <refsect2><title>DisableIPFailover</title>
+ <para>Default: 0</para>
+ <para>
+ When enabled, ctdb weill not perform failover or failback. Even if a
+ node fails while holding public IPs, ctdb will not recover the IPs or
+ assign them to another node.
+ </para>
+ <para>
+ When you enable this tunable, CTDB will no longer attempt to recover
+ the cluster by failing IP addresses over to other nodes. This leads to
+ a service outage until the administrator has manually performed failover
+ to replacement nodes using the 'ctdb moveip' command.
+ </para>
+ </refsect2>
+
+ <refsect2><title>VerboseMemoryNames</title>
+ <para>Default: 0</para>
+ <para>
+ This feature consumes additional memory. when used the talloc library
+ will create more verbose names for all talloc allocated objects.
</para>
+ </refsect2>
+
+ <refsect2><title>RecdPingTimeout</title>
+ <para>Default: 60</para>
+ <para>
+ If the main dameon has not heard a "ping" from the recovery dameon for
+ this many seconds, the main dameon will log a message that the recovery
+ daemon is potentially hung.
+ </para>
+ </refsect2>
+
+ <refsect2><title>RecdFailCount</title>
+ <para>Default: 10</para>
+ <para>
+ If the recovery daemon has failed to ping the main dameon for this many
+ consecutive intervals, the main daemon will consider the recovery daemon
+ as hung and will try to restart it to recover.
+ </para>
+ </refsect2>
+
+ <refsect2><title>LogLatencyMs</title>
+ <para>Default: 0</para>
+ <para>
+ When set to non-zero, this will make the main daemon log any operation that
+ took longer than this value, in 'ms', to complete.
+ These include "how long time a lockwait child process needed",
+ "how long time to write to a persistent database" but also
+ "how long did it take to get a response to a CALL from a remote node".
+ </para>
+ </refsect2>
+
+ <refsect2><title>RecLockLatencyMs</title>
+ <para>Default: 1000</para>
+ <para>
+ When using a reclock file for split brain prevention, if set to non-zero
+ this tunable will make the recovery dameon log a message if the fcntl()
+ call to lock/testlock the recovery file takes longer than this number of
+ ms.
+ </para>
+ </refsect2>
+
+ <refsect2><title>RecoveryDropAllIPs</title>
+ <para>Default: 120</para>
+ <para>
+ If we have been stuck in recovery, or stopped, or banned, mode for
+ this many seconds we will force drop all held public addresses.
+ </para>
+ </refsect2>
+
+ <refsect2><title>verifyRecoveryLock</title>
+ <para>Default: 1</para>
+ <para>
+ Should we take a fcntl() lock on the reclock file to verify that we are the
+ sole recovery master node on the cluster or not.
+ </para>
+ </refsect2>
+
+ <refsect2><title>DeferredAttachTO</title>
+ <para>Default: 120</para>
+ <para>
+ When databases are frozen we do not allow clients to attach to the
+ databases. Instead of returning an error immediately to the application
+ the attach request from the client is deferred until the database
+ becomes available again at which stage we respond to the client.
+ </para>
+ <para>
+ This timeout controls how long we will defer the request from the client
+ before timing it out and returning an error to the client.
+ </para>
+ </refsect2>
+
+ <refsect2><title>StatHistoryInterval</title>
+ <para>Default: 1</para>
+ <para>
+ Granularity of the statistics collected in the statistics history.
+ </para>
+ </refsect2>
+
+ <refsect2><title>AllowClientDBAttach</title>
+ <para>Default: 1</para>
<para>
- When you enable this tunable, CTDB will no longer attempt to rebalance the cluster by failing IP addresses back to the new nodes. An unbalanced cluster will therefore remain unbalanced until there is manual intervention from the administrator. When this parameter is set, you can manually fail public IP addresses over to the new node(s) using the 'ctdb moveip' command.
+ When set to 0, clients are not allowed to attach to any databases.
+ This can be used to temporarily block any new processes from attaching
+ to and accessing the databases.
</para>
</refsect2>
<refsect2><title>RecoverPDBBySeqNum</title>
<para>Default: 0</para>
<para>
- When set to non-zero, this will change how the recovery process for persistent
- databases ar performed.
- By default, when performing a database recovery, for normal as for persistent
- databases, recovery is record-by-record and recovery process simply collects
- the most recent version of every individual record.
+ When set to non-zero, this will change how the recovery process for
+ persistent databases ar performed. By default, when performing a database
+ recovery, for normal as for persistent databases, recovery is
+ record-by-record and recovery process simply collects the most recent
+ version of every individual record.
</para>
<para>
- When set to non-zero, persistent databases will instead be recovered
- as a whole db and not by individual records. The node that contains the highest
- value stored in the record "__db_sequence_number__" is selected and the copy of
- that nodes database is used as the recovered database.
+ When set to non-zero, persistent databases will instead be recovered as
+ a whole db and not by individual records. The node that contains the
+ highest value stored in the record "__db_sequence_number__" is selected
+ and the copy of that nodes database is used as the recovered database.
</para>
</refsect2>