|
| 1 | +[[modules-discovery-settings]] |
| 2 | +=== Discovery and cluster formation settings |
| 3 | + |
| 4 | +Discovery and cluster formation are affected by the following settings: |
| 5 | + |
| 6 | +[[master-election-settings]]`cluster.election.back_off_time`:: |
| 7 | + |
| 8 | + Sets the amount to increase the upper bound on the wait before an election |
| 9 | + on each election failure. Note that this is _linear_ backoff. This defaults |
| 10 | + to `100ms` |
| 11 | + |
| 12 | +`cluster.election.duration`:: |
| 13 | + |
| 14 | + Sets how long each election is allowed to take before a node considers it to |
| 15 | + have failed and schedules a retry. This defaults to `500ms`. |
| 16 | + |
| 17 | +`cluster.election.initial_timeout`:: |
| 18 | + |
| 19 | + Sets the upper bound on how long a node will wait initially, or after the |
| 20 | + elected master fails, before attempting its first election. This defaults |
| 21 | + to `100ms`. |
| 22 | + |
| 23 | + |
| 24 | +`cluster.election.max_timeout`:: |
| 25 | + |
| 26 | + Sets the maximum upper bound on how long a node will wait before attempting |
| 27 | + an first election, so that an network partition that lasts for a long time |
| 28 | + does not result in excessively sparse elections. This defaults to `10s` |
| 29 | + |
| 30 | +[[fault-detection-settings]]`cluster.fault_detection.follower_check.interval`:: |
| 31 | + |
| 32 | + Sets how long the elected master waits between follower checks to each |
| 33 | + other node in the cluster. Defaults to `1s`. |
| 34 | + |
| 35 | +`cluster.fault_detection.follower_check.timeout`:: |
| 36 | + |
| 37 | + Sets how long the elected master waits for a response to a follower check |
| 38 | + before considering it to have failed. Defaults to `30s`. |
| 39 | + |
| 40 | +`cluster.fault_detection.follower_check.retry_count`:: |
| 41 | + |
| 42 | + Sets how many consecutive follower check failures must occur to each node |
| 43 | + before the elected master considers that node to be faulty and removes it |
| 44 | + from the cluster. Defaults to `3`. |
| 45 | + |
| 46 | +`cluster.fault_detection.leader_check.interval`:: |
| 47 | + |
| 48 | + Sets how long each node waits between checks of the elected master. |
| 49 | + Defaults to `1s`. |
| 50 | + |
| 51 | +`cluster.fault_detection.leader_check.timeout`:: |
| 52 | + |
| 53 | + Sets how long each node waits for a response to a leader check from the |
| 54 | + elected master before considering it to have failed. Defaults to `30s`. |
| 55 | + |
| 56 | +`cluster.fault_detection.leader_check.retry_count`:: |
| 57 | + |
| 58 | + Sets how many consecutive leader check failures must occur before a node |
| 59 | + considers the elected master to be faulty and attempts to find or elect a |
| 60 | + new master. Defaults to `3`. |
| 61 | + |
| 62 | +`cluster.follower_lag.timeout`:: |
| 63 | + |
| 64 | + Sets how long the master node waits to receive acknowledgements for cluster |
| 65 | + state updates from lagging nodes. The default value is `90s`. If a node does |
| 66 | + not successfully apply the cluster state update within this period of time, |
| 67 | + it is considered to have failed and is removed from the cluster. See |
| 68 | + <<cluster-state-publishing>>. |
| 69 | + |
| 70 | +`cluster.initial_master_nodes`:: |
| 71 | + |
| 72 | + Sets a list of the <<node.name,node names>> or transport addresses of the |
| 73 | + initial set of master-eligible nodes in a brand-new cluster. By default |
| 74 | + this list is empty, meaning that this node expects to join a cluster that |
| 75 | + has already been bootstrapped. See <<initial_master_nodes>>. |
| 76 | + |
| 77 | +`cluster.join.timeout`:: |
| 78 | + |
| 79 | + Sets how long a node will wait after sending a request to join a cluster |
| 80 | + before it considers the request to have failed and retries. Defaults to |
| 81 | + `60s`. |
| 82 | + |
| 83 | +`cluster.max_voting_config_exclusions`:: |
| 84 | + |
| 85 | + Sets a limit on the number of voting configuration exclusions at any one |
| 86 | + time. The default value is `10`. See |
| 87 | + <<modules-discovery-adding-removing-nodes>>. |
| 88 | + |
| 89 | +`cluster.publish.timeout`:: |
| 90 | + |
| 91 | + Sets how long the master node waits for each cluster state update to be |
| 92 | + completely published to all nodes. The default value is `30s`. If this |
| 93 | + period of time elapses, the cluster state change is rejected. See |
| 94 | + <<cluster-state-publishing>>. |
| 95 | + |
| 96 | +`discovery.cluster_formation_warning_timeout`:: |
| 97 | + |
| 98 | + Sets how long a node will try to form a cluster before logging a warning |
| 99 | + that the cluster did not form. Defaults to `10s`. If a cluster has not |
| 100 | + formed after `discovery.cluster_formation_warning_timeout` has elapsed then |
| 101 | + the node will log a warning message that starts with the phrase `master not discovered` which describes the current state of the discovery process. |
| 102 | + |
| 103 | +`discovery.find_peers_interval`:: |
| 104 | + |
| 105 | + Sets how long a node will wait before attempting another discovery round. |
| 106 | + Defaults to `1s`. |
| 107 | + |
| 108 | +`discovery.probe.connect_timeout`:: |
| 109 | + |
| 110 | + Sets how long to wait when attempting to connect to each address. Defaults |
| 111 | + to `3s`. |
| 112 | + |
| 113 | +`discovery.probe.handshake_timeout`:: |
| 114 | + |
| 115 | + Sets how long to wait when attempting to identify the remote node via a |
| 116 | + handshake. Defaults to `1s`. |
| 117 | + |
| 118 | +`discovery.request_peers_timeout`:: |
| 119 | + Sets how long a node will wait after asking its peers again before |
| 120 | + considering the request to have failed. Defaults to `3s`. |
| 121 | + |
| 122 | +`discovery.zen.hosts_provider`:: |
| 123 | + Specifies which type of <<built-in-hosts-providers,hosts provider>> provides |
| 124 | + the list of seed nodes. By default, it is the |
| 125 | + <<settings-based-hosts-provider,settings-based hosts provider>>. |
| 126 | + |
| 127 | +[[no-master-block]]`discovery.zen.no_master_block`:: |
| 128 | +Specifies which operations are rejected when there is no active master in a |
| 129 | +cluster. This setting has two valid values: |
| 130 | ++ |
| 131 | +-- |
| 132 | +`all`::: All operations on the node (both read and write operations) are rejected. |
| 133 | +This also applies for API cluster state read or write operations, like the get |
| 134 | +index settings, put mapping and cluster state API. |
| 135 | + |
| 136 | +`write`::: (default) Write operations are rejected. Read operations succeed, |
| 137 | +based on the last known cluster configuration. This situation may result in |
| 138 | +partial reads of stale data as this node may be isolated from the rest of the |
| 139 | +cluster. |
| 140 | + |
| 141 | +[NOTE] |
| 142 | +=============================== |
| 143 | +* The `discovery.zen.no_master_block` setting doesn't apply to nodes-based APIs |
| 144 | +(for example, cluster stats, node info, and node stats APIs). Requests to these |
| 145 | +APIs are not be blocked and can run on any available node. |
| 146 | + |
| 147 | +* For the cluster to be fully operational, it must have an active master. |
| 148 | +=============================== |
| 149 | +-- |
| 150 | + |
| 151 | +`discovery.zen.ping.unicast.hosts`:: |
| 152 | + |
| 153 | + Provides a list of master-eligible nodes in the cluster. The list contains |
| 154 | + either an array of hosts or a comma-delimited string. Each value has the |
| 155 | + format `host:port` or `host`, where `port` defaults to the setting `transport.profiles.default.port`. Note that IPv6 hosts must be bracketed. |
| 156 | + The default value is `127.0.0.1, [::1]`. See <<unicast.hosts>>. |
| 157 | + |
| 158 | +`discovery.zen.ping.unicast.hosts.resolve_timeout`:: |
| 159 | + |
| 160 | + Sets the amount of time to wait for DNS lookups on each round of discovery. This is specified as a <<time-units, time unit>> and defaults to `5s`. |
0 commit comments