1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

ctdb-daemon: Mark NoIPHostOnAllDisabled tunable as obsolete

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2018-06-18 16:05:44 +10:00 committed by Amitay Isaacs
parent d0739b2ea8
commit 070469beb8
5 changed files with 5 additions and 21 deletions

View File

@ -141,7 +141,7 @@ static struct {
offsetof(struct ctdb_tunable_list, db_size_warn) },
{ "PullDBPreallocation", 10*1024*1024, false,
offsetof(struct ctdb_tunable_list, pulldb_preallocation_size) },
{ "NoIPHostOnAllDisabled", 1, false,
{ "NoIPHostOnAllDisabled", 1, true,
offsetof(struct ctdb_tunable_list, no_ip_host_on_all_disabled) },
{ "Samba3AvoidDeadlocks", 0, true,
offsetof(struct ctdb_tunable_list, samba3_hack) },

View File

@ -442,29 +442,15 @@ MonitorInterval=20
</para>
</refsect2>
<refsect2>
<title>NoIPHostOnAllDisabled</title>
<para>Default: 0</para>
<para>
If no nodes are HEALTHY then by default ctdb will happily host
public IPs on disabled (unhealthy or administratively disabled)
nodes. This can cause problems, for example if the underlying
cluster filesystem is not mounted. When set to 1 and a node
is disabled, any IPs hosted by this node will be released and
the node will not takeover any IPs until it is no longer disabled.
</para>
</refsect2>
<refsect2>
<title>NoIPTakeover</title>
<para>Default: 0</para>
<para>
When set to 1, ctdb will not allow IP addresses to be failed
over to other nodes. Any IP addresses already hosted on
healthy nodes will remain. Usually IP addresses hosted on
unhealthy nodes will also remain, if NoIPHostOnAllDisabled is
0. However, if NoIPHostOnAllDisabled is 1 then IP addresses
will be released by unhealthy nodes and will become un-hosted.
healthy nodes will remain. Any IP addresses hosted on
unhealthy nodes will be released by unhealthy nodes and will
become un-hosted.
</para>
</refsect2>

View File

@ -827,7 +827,6 @@ DBRecordCountWarn = 100000
DBRecordSizeWarn = 10000000
DBSizeWarn = 100000000
PullDBPreallocation = 10485760
NoIPHostOnAllDisabled = 0
TDBMutexEnabled = 1
LockProcessesPerDB = 200
RecBufferSizeLimit = 1000000

View File

@ -672,7 +672,7 @@ static bool ipreallocated_recv(struct tevent_req *req, int *perr)
* - Get nodemap
* - Initialise IP allocation state. Pass:
* + algorithm to be used;
* + various tunables (NoIPTakeover, NoIPFailback, NoIPHostOnAllDisabled)
* + various tunables (NoIPTakeover, NoIPFailback)
* + list of nodes to force rebalance (internal structure, currently
* no way to fetch, only used by LCP2 for nodes that have had new
* IP addresses added).

View File

@ -58,7 +58,6 @@ DBRecordCountWarn = 100000
DBRecordSizeWarn = 10000000
DBSizeWarn = 100000000
PullDBPreallocation = 10485760
NoIPHostOnAllDisabled = 1
TDBMutexEnabled = 1
LockProcessesPerDB = 200
RecBufferSizeLimit = 1000000