Skip to content

Commit aee5f0e

Browse files
[DOCS] Edit cluster operation summaries (#3256) (#3259)
Co-authored-by: Marci W <[email protected]> (cherry picked from commit 0215517) Co-authored-by: Lisa Cawley <[email protected]>
1 parent 273d62c commit aee5f0e

File tree

24 files changed

+286
-131
lines changed

24 files changed

+286
-131
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 80 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/openapi/elasticsearch-serverless-openapi.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 60 additions & 56 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_doc_ids/table.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
add-nodes,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/add-elasticsearch-nodes.html
12
analysis-analyzers,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/analysis-analyzers.html
23
analysis-charfilters,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/analysis-charfilters.html
34
analysis-normalizers,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/analysis-normalizers.html

specification/_global/health_report/Request.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,24 @@ import { integer } from '@_types/Numeric'
2222
import { Duration } from '@_types/Time'
2323

2424
/**
25+
* Get the cluster health.
26+
* Get a report with the health status of an Elasticsearch cluster.
27+
* The report contains a list of indicators that compose Elasticsearch functionality.
28+
*
29+
* Each indicator has a health status of: green, unknown, yellow or red.
30+
* The indicator will provide an explanation and metadata describing the reason for its current health status.
31+
*
32+
* The cluster’s status is controlled by the worst indicator status.
33+
*
34+
* In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue.
35+
* Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system.
36+
*
37+
* Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system.
38+
* The root cause and remediation steps are encapsulated in a diagnosis.
39+
* A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem.
40+
*
41+
* NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently.
42+
* When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic.
2543
* @rest_spec_name health_report
2644
* @availability stack since=8.7.0 stability=stable
2745
* @availability serverless stability=stable visibility=private

specification/_global/ping/PingRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { RequestBase } from '@_types/Base'
2121

2222
/**
2323
* Ping the cluster.
24-
* Returns whether the cluster is running.
24+
* Get information about whether the cluster is running.
2525
* @rest_spec_name ping
2626
* @availability stack stability=stable
2727
* @availability serverless stability=stable visibility=public

specification/cluster/allocation_explain/ClusterAllocationExplainRequest.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ import { IndexName } from '@_types/common'
2222
import { integer } from '@_types/Numeric'
2323

2424
/**
25+
* Explain the shard allocations.
26+
* Get explanations for shard allocations in the cluster.
27+
* For unassigned shards, it provides an explanation for why the shard is unassigned.
28+
* For assigned shards, it provides an explanation for why the shard is remaining on its current node and has not moved or rebalanced to another node.
29+
* This API can be very useful when attempting to diagnose why a shard is unassigned or why a shard continues to remain on its current node when you might expect otherwise.
2530
* @rest_spec_name cluster.allocation_explain
2631
* @availability stack since=5.0.0 stability=stable
2732
* @availability serverless stability=stable visibility=private

specification/cluster/delete_voting_config_exclusions/ClusterDeleteVotingConfigExclusionsRequest.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,12 @@
2020
import { RequestBase } from '@_types/Base'
2121

2222
/**
23+
* Clear cluster voting config exclusions.
24+
* Remove master-eligible nodes from the voting configuration exclusion list.
2325
* @rest_spec_name cluster.delete_voting_config_exclusions
2426
* @availability stack since=7.0.0 stability=stable
2527
* @doc_id voting-config-exclusions
28+
* @ext_doc_id add-nodes
2629
*/
2730
export interface Request extends RequestBase {
2831
query_parameters: {

specification/cluster/get_settings/ClusterGetSettingsRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { RequestBase } from '@_types/Base'
2121
import { Duration } from '@_types/Time'
2222

2323
/**
24-
* Returns cluster-wide settings.
24+
* Get cluster-wide settings.
2525
* By default, it returns only settings that have been explicitly defined.
2626
* @rest_spec_name cluster.get_settings
2727
* @availability stack stability=stable

specification/cluster/health/ClusterHealthRequest.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,16 @@ import { integer } from '@_types/Numeric'
3030
import { Duration } from '@_types/Time'
3131

3232
/**
33-
* The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices.
34-
* The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status.
33+
* Get the cluster health status.
34+
* You can also use the API to get the health status of only specified data streams and indices.
35+
* For data streams, the API retrieves the health status of the stream’s backing indices.
36+
*
37+
* The cluster health status is: green, yellow or red.
38+
* On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated.
39+
* The index level status is controlled by the worst shard status.
40+
*
41+
* One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level.
42+
* The cluster status is controlled by the worst index status.
3543
* @rest_spec_name cluster.health
3644
* @availability stack since=1.3.0 stability=stable
3745
* @availability serverless stability=stable visibility=private

specification/cluster/pending_tasks/ClusterPendingTasksRequest.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ import { RequestBase } from '@_types/Base'
2121
import { Duration } from '@_types/Time'
2222

2323
/**
24-
* Returns cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet been executed.
24+
* Get the pending cluster tasks.
25+
* Get information about cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet taken effect.
26+
*
2527
* NOTE: This API returns a list of any pending updates to the cluster state.
26-
* These are distinct from the tasks reported by the Task Management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests.
28+
* These are distinct from the tasks reported by the task management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests.
2729
* However, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API.
2830
* @rest_spec_name cluster.pending_tasks
2931
* @availability stack stability=stable

specification/cluster/post_voting_config_exclusions/ClusterPostVotingConfigExclusionsRequest.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,28 @@ import { Ids, Names } from '@_types/common'
2222
import { Duration } from '@_types/Time'
2323

2424
/**
25+
* Update voting configuration exclusions.
26+
* Update the cluster voting config exclusions by node IDs or node names.
27+
* By default, if there are more than three master-eligible nodes in the cluster and you remove fewer than half of the master-eligible nodes in the cluster at once, the voting configuration automatically shrinks.
28+
* If you want to shrink the voting configuration to contain fewer than three nodes or to remove half or more of the master-eligible nodes in the cluster at once, use this API to remove departing nodes from the voting configuration manually.
29+
* The API adds an entry for each specified node to the cluster’s voting configuration exclusions list.
30+
* It then waits until the cluster has reconfigured its voting configuration to exclude the specified nodes.
31+
*
32+
* Clusters should have no voting configuration exclusions in normal operation.
33+
* Once the excluded nodes have stopped, clear the voting configuration exclusions with `DELETE /_cluster/voting_config_exclusions`.
34+
* This API waits for the nodes to be fully removed from the cluster before it returns.
35+
* 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.
36+
*
37+
* 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`.
38+
* 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.
39+
* In that case, you may safely retry the call.
40+
*
41+
* 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.
42+
* They are not required when removing master-ineligible nodes or when removing fewer than half of the master-eligible nodes.
2543
* @rest_spec_name cluster.post_voting_config_exclusions
2644
* @availability stack since=7.0.0 stability=stable
2745
* @doc_id voting-config-exclusions
46+
* @ext_doc_id add-nodes
2847
*/
2948
export interface Request extends RequestBase {
3049
query_parameters: {

specification/cluster/put_settings/ClusterPutSettingsRequest.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,24 @@ import { RequestBase } from '@_types/Base'
2323
import { Duration } from '@_types/Time'
2424

2525
/**
26+
* Update the cluster settings.
27+
* Configure and update dynamic settings on a running cluster.
28+
* You can also configure dynamic settings locally on an unstarted or shut down node in `elasticsearch.yml`.
29+
*
30+
* Updates made with this API can be persistent, which apply across cluster restarts, or transient, which reset after a cluster restart.
31+
* You can also reset transient or persistent settings by assigning them a null value.
32+
*
33+
* If you configure the same setting using multiple methods, Elasticsearch applies the settings in following order of precedence: 1) Transient setting; 2) Persistent setting; 3) `elasticsearch.yml` setting; 4) Default setting value.
34+
* For example, you can apply a transient setting to override a persistent setting or `elasticsearch.yml` setting.
35+
* However, a change to an `elasticsearch.yml` setting will not override a defined transient or persistent setting.
36+
*
37+
* TIP: In Elastic Cloud, use the user settings feature to configure all cluster settings. This method automatically rejects unsafe settings that could break your cluster.
38+
* If you run Elasticsearch on your own hardware, use this API to configure dynamic cluster settings.
39+
* Only use `elasticsearch.yml` for static cluster settings and node settings.
40+
* The API doesn’t require a restart and ensures a setting’s value is the same on all nodes.
41+
*
42+
* WARNING: Transient cluster settings are no longer recommended. Use persistent cluster settings instead.
43+
* If a cluster becomes unstable, transient settings can clear unexpectedly, resulting in a potentially undesired cluster configuration.
2644
* @rest_spec_name cluster.put_settings
2745
* @availability stack stability=stable
2846
* @availability serverless stability=stable visibility=private

specification/cluster/remote_info/ClusterRemoteInfoRequest.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
import { RequestBase } from '@_types/Base'
2121

2222
/**
23-
* The cluster remote info API allows you to retrieve all of the configured
24-
* remote cluster information. It returns connection and endpoint information
25-
* keyed by the configured remote cluster alias.
23+
* Get remote cluster information.
24+
* Get all of the configured remote cluster information.
25+
* This API returns connection and endpoint information keyed by the configured remote cluster alias.
2626
* @rest_spec_name cluster.remote_info
2727
* @availability stack since=6.1.0 stability=stable
2828
* @doc_id cluster-remote-info

specification/cluster/reroute/ClusterRerouteRequest.ts

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,20 @@ import { Duration } from '@_types/Time'
2323
import { Command } from './types'
2424

2525
/**
26+
* Reroute the cluster.
27+
* Manually change the allocation of individual shards in the cluster.
28+
* For example, a shard can be moved from one node to another explicitly, an allocation can be canceled, and an unassigned shard can be explicitly allocated to a specific node.
29+
*
30+
* It is important to note that after processing any reroute commands Elasticsearch will perform rebalancing as normal (respecting the values of settings such as `cluster.routing.rebalance.enable`) in order to remain in a balanced state.
31+
* For example, if the requested allocation includes moving a shard from node1 to node2 then this may cause a shard to be moved from node2 back to node1 to even things out.
32+
*
33+
* The cluster can be set to disable allocations using the `cluster.routing.allocation.enable` setting.
34+
* If allocations are disabled then the only allocations that will be performed are explicit ones given using the reroute command, and consequent allocations due to rebalancing.
35+
*
36+
* The cluster will attempt to allocate a shard a maximum of `index.allocation.max_retries` times in a row (defaults to `5`), before giving up and leaving the shard unallocated.
37+
* This scenario can be caused by structural problems such as having an analyzer which refers to a stopwords file which doesn’t exist on all nodes.
38+
*
39+
* Once the problem has been corrected, allocation can be manually retried by calling the reroute API with the `?retry_failed` URI query parameter, which will attempt a single retry round for these shards.
2640
* @rest_spec_name cluster.reroute
2741
* @availability stack since=5.0.0 stability=stable
2842
* @availability serverless stability=stable visibility=private
@@ -31,12 +45,13 @@ import { Command } from './types'
3145
export interface Request extends RequestBase {
3246
query_parameters: {
3347
/**
34-
* If true, then the request simulates the operation only and returns the resulting state.
48+
* If true, then the request simulates the operation.
49+
* It will calculate the result of applying the commands to the current cluster state and return the resulting cluster state after the commands (and rebalancing) have been applied; it will not actually perform the requested changes.
3550
* @server_default false
3651
*/
3752
dry_run?: boolean
3853
/**
39-
* If true, then the response contains an explanation of why the commands can or cannot be executed.
54+
* If true, then the response contains an explanation of why the commands can or cannot run.
4055
* @server_default false
4156
*/
4257
explain?: boolean

specification/cluster/state/ClusterStateRequest.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,25 @@ import {
2727
import { Duration } from '@_types/Time'
2828

2929
/**
30+
* Get the cluster state.
31+
* Get comprehensive information about the state of the cluster.
32+
*
33+
* The cluster state is an internal data structure which keeps track of a variety of information needed by every node, including the identity and attributes of the other nodes in the cluster; cluster-wide settings; index metadata, including the mapping and settings for each index; the location and status of every shard copy in the cluster.
34+
*
35+
* The elected master node ensures that every node in the cluster has a copy of the same cluster state.
36+
* This API lets you retrieve a representation of this internal state for debugging or diagnostic purposes.
37+
* You may need to consult the Elasticsearch source code to determine the precise meaning of the response.
38+
*
39+
* By default the API will route requests to the elected master node since this node is the authoritative source of cluster states.
40+
* You can also retrieve the cluster state held on the node handling the API request by adding the `?local=true` query parameter.
41+
*
42+
* Elasticsearch may need to expend significant effort to compute a response to this API in larger clusters, and the response may comprise a very large quantity of data.
43+
* If you use this API repeatedly, your cluster may become unstable.
44+
*
45+
* WARNING: The response is a representation of an internal data structure.
46+
* Its format is not subject to the same compatibility guarantees as other more stable APIs and may change from version to version.
47+
* Do not query this API using external monitoring tools.
48+
* Instead, obtain the information you require using other more stable cluster APIs.
3049
* @rest_spec_name cluster.state
3150
* @availability stack since=1.3.0 stability=stable
3251
* @availability serverless stability=stable visibility=private

specification/cluster/stats/ClusterStatsRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ import { NodeIds } from '@_types/common'
2222
import { Duration } from '@_types/Time'
2323

2424
/**
25-
* Returns cluster statistics.
26-
* It returns basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins).
25+
* Get cluster statistics.
26+
* Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins).
2727
* @rest_spec_name cluster.stats
2828
* @availability stack since=1.3.0 stability=stable
2929
* @availability serverless stability=stable visibility=private

specification/nodes/clear_repositories_metering_archive/ClearRepositoriesMeteringArchiveRequest.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ import { NodeIds } from '@_types/common'
2222
import { long } from '@_types/Numeric'
2323

2424
/**
25-
* You can use this API to clear the archived repositories metering information in the cluster.
25+
* Clear the archived repositories metering.
26+
* Clear the archived repositories metering information in the cluster.
2627
* @rest_spec_name nodes.clear_repositories_metering_archive
2728
* @availability stack since=7.16.0 stability=experimental
2829
* @availability serverless stability=experimental visibility=private

specification/nodes/get_repositories_metering_info/GetRepositoriesMeteringInfoRequest.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ import { RequestBase } from '@_types/Base'
2121
import { NodeIds } from '@_types/common'
2222

2323
/**
24-
* You can use the cluster repositories metering API to retrieve repositories metering information in a cluster.
25-
* This API exposes monotonically non-decreasing counters and it’s expected that clients would durably store the
26-
* information needed to compute aggregations over a period of time. Additionally, the information exposed by this
27-
* API is volatile, meaning that it won’t be present after node restarts.
24+
* Get cluster repositories metering.
25+
* Get repositories metering information for a cluster.
26+
* This API exposes monotonically non-decreasing counters and it is expected that clients would durably store the information needed to compute aggregations over a period of time.
27+
* Additionally, the information exposed by this API is volatile, meaning that it will not be present after node restarts.
2828
* @rest_spec_name nodes.get_repositories_metering_info
2929
* @availability stack since=7.16.0 stability=experimental
3030
* @availability serverless stability=experimental visibility=private

specification/nodes/hot_threads/NodesHotThreadsRequest.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ import { long } from '@_types/Numeric'
2323
import { Duration } from '@_types/Time'
2424

2525
/**
26-
* This API yields a breakdown of the hot threads on each selected node in the cluster.
27-
* The output is plain text with a breakdown of each node’s top hot threads.
26+
* Get the hot threads for nodes.
27+
* Get a breakdown of the hot threads on each selected node in the cluster.
28+
* The output is plain text with a breakdown of the top hot threads for each node.
2829
* @rest_spec_name nodes.hot_threads
2930
* @availability stack stability=stable
3031
* @availability serverless stability=stable visibility=private

specification/nodes/info/NodesInfoRequest.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ import { Metrics, NodeIds } from '@_types/common'
2222
import { Duration } from '@_types/Time'
2323

2424
/**
25-
* Returns cluster nodes information.
25+
* Get node information.
26+
* By default, the API returns all attributes and core settings for cluster nodes.
2627
* @rest_spec_name nodes.info
2728
* @availability stack since=1.3.0 stability=stable
2829
* @availability serverless stability=stable visibility=private

0 commit comments

Comments
 (0)