-
Notifications
You must be signed in to change notification settings - Fork 24.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update docs for cluster API #30468
Merged
Merged
Update docs for cluster API #30468
Changes from 1 commit
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
165eaf8
Update docs for cluster API
PnPie 5b4c070
Update according to comments
PnPie 4344a88
small format change
PnPie 1ebb53e
still some changes
PnPie ff337e9
Merge branch 'master' into 2018-06-08-node-filter-docs
DaveCTurner 86c08f0
Some rewording, and add a note about filters in cluster stats
DaveCTurner 4a63d4a
Merge branch 'master' into update_cluster_api_docs
DaveCTurner e02ec75
Clarify that both attribute names and values can be patterns
DaveCTurner 19c6cb6
Merge branch 'master' into update_cluster_api_docs
DaveCTurner dc180f9
Fix regression introduced in merge
DaveCTurner 779e281
Fix regression introduced in merge
DaveCTurner c11a1ba
Merge branch 'master' into update_cluster_api_docs
DaveCTurner ae3b2ed
Spell out that wildcards are optional
DaveCTurner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,23 +6,30 @@ | |
["float",id="cluster-nodes"] | ||
== Node specification | ||
|
||
Most cluster level APIs allow to specify which nodes to execute on (for | ||
example, getting the node stats for a node). Nodes can be identified in | ||
the APIs either using their internal node id, the node name, address, | ||
custom attributes, or just the `_local` node receiving the request. For | ||
example, here are some sample executions of nodes info: | ||
Most cluster level APIs allow to specify nodes (for example, getting | ||
the node stats for a certain node). Nodes can be identified in | ||
the APIs either using their internal node id, node name, address, | ||
built-in/custom attributes, or `_local`, `_master`, `_all` for the relevant nodes. | ||
Here are examples of using nodes info API for each case: | ||
|
||
[source,js] | ||
-------------------------------------------------- | ||
# Local | ||
# Local node | ||
GET /_nodes/_local | ||
# Address | ||
# Master node | ||
GET /_nodes/_master | ||
# All nodes | ||
GET /_nodes/_all | ||
# Using address | ||
GET /_nodes/10.0.0.3,10.0.0.4 | ||
GET /_nodes/10.0.0.* | ||
# Names | ||
# Using node name | ||
GET /_nodes/node_name_goes_here | ||
GET /_nodes/node_name_goes_* | ||
# Attributes (set something like node.attr.rack: 2 in the config) | ||
# Using built-in attributes (master, data, ingest or coordinating_only) | ||
GET /_nodes/master:false,data:false,ingest:true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is equivalent to the simpler |
||
GET /_nodes/coordinating_only:true | ||
# Using custom attributes (You need to set something like `node.attr.rack: 2` in the config) | ||
GET /_nodes/rack:2 | ||
GET /_nodes/ra*:2 | ||
GET /_nodes/ra*:2* | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add something to sentence to explain that specifying nodes limits the results to those nodes? At least, I think that is what specifying the node does here, but I'm no expect.