Class PostVotingConfigExclusionsRequest
Clusters should have no voting configuration exclusions in normal operation.
Once the excluded nodes have stopped, clear the voting configuration
exclusions with DELETE /_cluster/voting_config_exclusions
. This
API waits for the nodes to be fully removed from the cluster before it
returns. If your cluster has voting configuration exclusions for nodes that
you no longer intend to remove, use
DELETE /_cluster/voting_config_exclusions?wait_for_removal=false
to clear the voting configuration exclusions without waiting for the nodes to
leave the cluster.
A response to POST /_cluster/voting_config_exclusions
with an
HTTP status code of 200 OK guarantees that the node has been removed from the
voting configuration and will not be reinstated until the voting
configuration exclusions are cleared by calling
DELETE /_cluster/voting_config_exclusions
. If the call to
POST /_cluster/voting_config_exclusions
fails or returns a
response with an HTTP status code other than 200 OK then the node may not
have been removed from the voting configuration. In that case, you may safely
retry the call.
NOTE: Voting exclusions are required only when you remove at least half of the master-eligible nodes from a cluster in a short time period. They are not required when removing master-ineligible nodes or when removing fewer than half of the master-eligible nodes.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionEndpoint "cluster.post_voting_config_exclusions
". -
Method Summary
Modifier and TypeMethodDescriptionfinal Time
Period to wait for a connection to the master node.nodeIds()
A comma-separated list of the persistent ids of the nodes to exclude from the voting configuration.A comma-separated list of the names of the nodes to exclude from the voting configuration.of
(Function<PostVotingConfigExclusionsRequest.Builder, ObjectBuilder<PostVotingConfigExclusionsRequest>> fn) final Time
timeout()
When adding a voting configuration exclusion, the API waits for the specified nodes to be excluded from the voting configuration before returning.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_ENDPOINT
public static final Endpoint<PostVotingConfigExclusionsRequest,BooleanResponse, _ENDPOINTErrorResponse> Endpoint "cluster.post_voting_config_exclusions
".
-
-
Method Details
-
of
-
masterTimeout
Period to wait for a connection to the master node.API name:
master_timeout
-
nodeIds
A comma-separated list of the persistent ids of the nodes to exclude from the voting configuration. If specified, you may not also specify node_names.API name:
node_ids
-
nodeNames
A comma-separated list of the names of the nodes to exclude from the voting configuration. If specified, you may not also specify node_ids.API name:
node_names
-
timeout
When adding a voting configuration exclusion, the API waits for the specified nodes to be excluded from the voting configuration before returning. If the timeout expires before the appropriate condition is satisfied, the request fails and returns an error.API name:
timeout
-