Skip to content

Commit 5eb9d82

Browse files
committed
[D&M] Refines start and stop services.
1 parent b9ecbc6 commit 5eb9d82

File tree

7 files changed

+76
-122
lines changed

7 files changed

+76
-122
lines changed

deploy-manage/maintenance/add-and-remove-elasticsearch-nodes.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ When you add more nodes to a cluster, it automatically allocates replica shards.
2121
:alt: A cluster with three nodes
2222
:::
2323

24-
2524
## Enroll nodes in an existing cluster [_enroll_nodes_in_an_existing_cluster_5]
2625

2726
You can enroll additional nodes on your local machine to experiment with how an {{es}} cluster with multiple nodes behaves.
@@ -31,7 +30,6 @@ To add a node to a cluster running on multiple machines, you must also set [`dis
3130

3231
::::
3332

34-
3533
When {{es}} starts for the first time, the security auto-configuration process binds the HTTP layer to `0.0.0.0`, but only binds the transport layer to localhost. This intended behavior ensures that you can start a single-node cluster with security enabled by default without any additional configuration.
3634

3735
Before enrolling a new node, additional actions such as binding to an address other than `localhost` or satisfying bootstrap checks are typically necessary in production clusters. During that time, an auto-generated enrollment token could expire, which is why enrollment tokens aren’t generated automatically.
@@ -64,21 +62,18 @@ To enroll new nodes in your cluster, create an enrollment token with the `elasti
6462

6563
For more information about discovery and shard allocation, refer to [*Discovery and cluster formation*](../distributed-architecture/discovery-cluster-formation.md) and [Cluster-level shard allocation and routing settings](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-cluster.html).
6664

67-
6865
## Master-eligible nodes [add-elasticsearch-nodes-master-eligible]
6966

7067
As nodes are added or removed Elasticsearch maintains an optimal level of fault tolerance by automatically updating the cluster’s *voting configuration*, which is the set of [master-eligible nodes](../distributed-architecture/clusters-nodes-shards/node-roles.md#master-node-role) whose responses are counted when making decisions such as electing a new master or committing a new cluster state.
7168

7269
It is recommended to have a small and fixed number of master-eligible nodes in a cluster, and to scale the cluster up and down by adding and removing master-ineligible nodes only. However there are situations in which it may be desirable to add or remove some master-eligible nodes to or from a cluster.
7370

74-
7571
### Adding master-eligible nodes [modules-discovery-adding-nodes]
7672

7773
If you wish to add some nodes to your cluster, simply configure the new nodes to find the existing cluster and start them up. Elasticsearch adds the new nodes to the voting configuration if it is appropriate to do so.
7874

7975
During master election or when joining an existing formed cluster, a node sends a join request to the master in order to be officially added to the cluster.
8076

81-
8277
### Removing master-eligible nodes [modules-discovery-removing-nodes]
8378

8479
When removing master-eligible nodes, it is important not to remove too many all at the same time. For instance, if there are currently seven master-eligible nodes and you wish to reduce this to three, it is not possible simply to stop four of the nodes at once: to do so would leave only three nodes remaining, which is less than half of the voting configuration, which means the cluster cannot take any further actions.
@@ -129,4 +124,3 @@ DELETE /_cluster/voting_config_exclusions
129124
# to return to the voting configuration in the future.
130125
DELETE /_cluster/voting_config_exclusions?wait_for_removal=false
131126
```
132-

0 commit comments

Comments
 (0)