2013-08-28 19:24:34 -04:00
|
|
|
[[cluster-nodes-info]]
|
2019-10-22 13:27:31 -04:00
|
|
|
=== Nodes info API
|
|
|
|
++++
|
|
|
|
<titleabbrev>Nodes info</titleabbrev>
|
|
|
|
++++
|
2013-08-28 19:24:34 -04:00
|
|
|
|
2019-08-13 07:26:57 -04:00
|
|
|
Returns cluster nodes information.
|
2013-08-28 19:24:34 -04:00
|
|
|
|
|
|
|
|
2019-08-13 07:26:57 -04:00
|
|
|
[[cluster-nodes-info-api-request]]
|
|
|
|
==== {api-request-title}
|
|
|
|
|
|
|
|
`GET /_nodes` +
|
|
|
|
|
2019-08-23 10:57:20 -04:00
|
|
|
`GET /_nodes/<node_id>` +
|
2019-08-13 07:26:57 -04:00
|
|
|
|
2019-08-23 10:57:20 -04:00
|
|
|
`GET /_nodes/<metric>` +
|
2019-08-13 07:26:57 -04:00
|
|
|
|
2019-08-23 10:57:20 -04:00
|
|
|
`GET /_nodes/<node_id>/<metric>`
|
2019-08-13 07:26:57 -04:00
|
|
|
|
|
|
|
|
|
|
|
[[cluster-nodes-info-api-desc]]
|
|
|
|
==== {api-description-title}
|
|
|
|
|
|
|
|
The cluster nodes info API allows to retrieve one or more (or all) of
|
|
|
|
the cluster nodes information. All the nodes selective options are explained
|
2013-08-28 19:24:34 -04:00
|
|
|
<<cluster-nodes,here>>.
|
|
|
|
|
2019-08-13 07:26:57 -04:00
|
|
|
By default, it returns all attributes and core settings for a node.
|
2016-06-16 04:39:34 -04:00
|
|
|
|
|
|
|
|
2019-08-13 07:26:57 -04:00
|
|
|
[[cluster-nodes-info-api-path-params]]
|
|
|
|
==== {api-path-parms-title}
|
2016-06-16 04:39:34 -04:00
|
|
|
|
2019-08-23 10:57:20 -04:00
|
|
|
`<metric>`::
|
2020-04-10 08:38:00 -04:00
|
|
|
(Optional, string) Limits the information returned to the specific metrics.
|
2019-08-13 07:26:57 -04:00
|
|
|
A comma-separated list of the following options:
|
|
|
|
+
|
|
|
|
--
|
2016-06-16 04:39:34 -04:00
|
|
|
|
|
|
|
|
2019-08-13 07:26:57 -04:00
|
|
|
`http`::
|
|
|
|
HTTP connection information.
|
2016-06-16 04:39:34 -04:00
|
|
|
|
2019-08-13 07:26:57 -04:00
|
|
|
`ingest`::
|
|
|
|
Statistics about ingest preprocessing.
|
2016-06-16 04:39:34 -04:00
|
|
|
|
2019-08-13 07:26:57 -04:00
|
|
|
`jvm`::
|
2020-04-10 08:38:00 -04:00
|
|
|
JVM stats, memory pool information, garbage collection, buffer pools, number
|
2019-08-13 07:26:57 -04:00
|
|
|
of loaded/unloaded classes.
|
2016-06-16 04:39:34 -04:00
|
|
|
|
2019-08-13 07:26:57 -04:00
|
|
|
`os`::
|
|
|
|
Operating system stats, load average, mem, swap.
|
2020-04-10 08:38:00 -04:00
|
|
|
|
2019-08-13 07:26:57 -04:00
|
|
|
`plugins`::
|
2020-04-10 08:38:00 -04:00
|
|
|
Details about the installed plugins and modules per node. The following
|
2019-08-13 07:26:57 -04:00
|
|
|
information are available for each plugin and module:
|
|
|
|
+
|
|
|
|
---
|
|
|
|
* `name`: plugin name
|
|
|
|
* `version`: version of Elasticsearch the plugin was built for
|
|
|
|
* `description`: short description of the plugin's purpose
|
|
|
|
* `classname`: fully-qualified class name of the plugin's entry point
|
2020-04-10 08:38:00 -04:00
|
|
|
* `has_native_controller`: whether or not the plugin has a native controller
|
2019-08-13 07:26:57 -04:00
|
|
|
process
|
|
|
|
---
|
2020-04-10 08:38:00 -04:00
|
|
|
|
2019-08-13 07:26:57 -04:00
|
|
|
`process`::
|
|
|
|
Process statistics, memory consumption, cpu usage, open file descriptors.
|
2016-06-16 04:39:34 -04:00
|
|
|
|
2019-08-13 07:26:57 -04:00
|
|
|
`settings`::
|
2020-04-10 08:38:00 -04:00
|
|
|
|
2016-06-16 04:39:34 -04:00
|
|
|
|
2019-08-13 07:26:57 -04:00
|
|
|
`thread_pool`::
|
2020-04-10 08:38:00 -04:00
|
|
|
Statistics about each thread pool, including current size, queue and
|
2019-08-13 07:26:57 -04:00
|
|
|
rejected tasks
|
2020-04-10 08:38:00 -04:00
|
|
|
|
2019-08-13 07:26:57 -04:00
|
|
|
`transport`::
|
|
|
|
Transport statistics about sent and received bytes in cluster communication.
|
|
|
|
--
|
2013-08-28 19:24:34 -04:00
|
|
|
|
2017-08-28 05:23:09 -04:00
|
|
|
|
2019-08-13 07:26:57 -04:00
|
|
|
include::{docdir}/rest-api/common-parms.asciidoc[tag=node-id]
|
2017-08-28 05:23:09 -04:00
|
|
|
|
|
|
|
|
2019-08-13 07:26:57 -04:00
|
|
|
[[cluster-nodes-info-api-response-body]]
|
|
|
|
==== {api-response-body-title}
|
2014-01-06 03:07:55 -05:00
|
|
|
|
2019-08-13 07:26:57 -04:00
|
|
|
`build_hash`::
|
|
|
|
Short hash of the last git commit in this release.
|
|
|
|
|
|
|
|
`host`::
|
|
|
|
The node's host name.
|
|
|
|
|
|
|
|
`ip`::
|
|
|
|
The node's IP address.
|
2013-08-28 19:24:34 -04:00
|
|
|
|
2019-08-13 07:26:57 -04:00
|
|
|
`name`::
|
|
|
|
The node's name.
|
|
|
|
|
|
|
|
`total_indexing_buffer`::
|
|
|
|
Total heap allowed to be used to hold recently indexed
|
|
|
|
documents before they must be written to disk. This size is
|
|
|
|
a shared pool across all shards on this node, and is
|
|
|
|
controlled by <<indexing-buffer,Indexing Buffer settings>>.
|
|
|
|
|
|
|
|
`total_indexing_buffer_in_bytes`::
|
|
|
|
Same as `total_indexing_buffer`, but expressed in bytes.
|
2013-08-28 19:24:34 -04:00
|
|
|
|
2019-08-13 07:26:57 -04:00
|
|
|
`transport_address`::
|
|
|
|
Host and port where transport HTTP connections are accepted.
|
|
|
|
|
|
|
|
`version`::
|
|
|
|
{es} version running on this node.
|
2015-07-06 08:22:01 -04:00
|
|
|
|
2020-04-10 08:38:00 -04:00
|
|
|
The `os` flag can be set to retrieve information that concern the operating
|
2019-08-13 07:26:57 -04:00
|
|
|
system:
|
2015-07-06 08:22:01 -04:00
|
|
|
|
|
|
|
`os.refresh_interval_in_millis`::
|
2019-08-13 07:26:57 -04:00
|
|
|
Refresh interval for the OS statistics
|
2015-07-06 08:22:01 -04:00
|
|
|
|
|
|
|
`os.name`::
|
2019-08-13 07:26:57 -04:00
|
|
|
Name of the operating system (ex: Linux, Windows, Mac OS X)
|
2015-07-06 08:22:01 -04:00
|
|
|
|
|
|
|
`os.arch`::
|
2019-08-13 07:26:57 -04:00
|
|
|
Name of the JVM architecture (ex: amd64, x86)
|
2015-07-06 08:22:01 -04:00
|
|
|
|
|
|
|
`os.version`::
|
2019-08-13 07:26:57 -04:00
|
|
|
Version of the operating system
|
2015-07-06 08:22:01 -04:00
|
|
|
|
|
|
|
`os.available_processors`::
|
2019-08-13 07:26:57 -04:00
|
|
|
Number of processors available to the Java virtual machine
|
2015-07-06 03:37:11 -04:00
|
|
|
|
2015-10-28 20:47:35 -04:00
|
|
|
`os.allocated_processors`::
|
2020-04-10 08:38:00 -04:00
|
|
|
The number of processors actually used to calculate thread pool size. This
|
|
|
|
number can be set with the <<node.processors, `node.processors`>>
|
|
|
|
setting of a node and defaults to the number of processors reported by
|
|
|
|
the OS.
|
2015-10-28 20:47:35 -04:00
|
|
|
|
2020-04-10 08:38:00 -04:00
|
|
|
The `process` flag can be set to retrieve information that concern the current
|
2019-08-13 07:26:57 -04:00
|
|
|
running process:
|
2015-07-06 03:37:11 -04:00
|
|
|
|
|
|
|
`process.refresh_interval_in_millis`::
|
2019-08-13 07:26:57 -04:00
|
|
|
Refresh interval for the process statistics
|
2015-07-06 03:37:11 -04:00
|
|
|
|
|
|
|
`process.id`::
|
2019-08-13 07:26:57 -04:00
|
|
|
Process identifier (PID)
|
2015-07-06 03:37:11 -04:00
|
|
|
|
|
|
|
`process.mlockall`::
|
2019-08-13 07:26:57 -04:00
|
|
|
Indicates if the process address space has been successfully locked in memory
|
|
|
|
|
|
|
|
|
|
|
|
[[cluster-nodes-info-api-query-params]]
|
|
|
|
==== {api-query-parms-title}
|
|
|
|
|
|
|
|
include::{docdir}/rest-api/common-parms.asciidoc[tag=flat-settings]
|
|
|
|
|
|
|
|
include::{docdir}/rest-api/common-parms.asciidoc[tag=timeoutparms]
|
|
|
|
|
|
|
|
|
|
|
|
[[cluster-nodes-info-api-example]]
|
|
|
|
==== {api-examples-title}
|
|
|
|
|
2019-09-09 13:38:14 -04:00
|
|
|
[source,console]
|
2019-08-13 07:26:57 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
# return just process
|
|
|
|
GET /_nodes/process
|
2015-07-06 03:37:11 -04:00
|
|
|
|
2019-08-13 07:26:57 -04:00
|
|
|
# same as above
|
|
|
|
GET /_nodes/_all/process
|
|
|
|
|
|
|
|
# return just jvm and process of only nodeId1 and nodeId2
|
|
|
|
GET /_nodes/nodeId1,nodeId2/jvm,process
|
|
|
|
|
|
|
|
# same as above
|
|
|
|
GET /_nodes/nodeId1,nodeId2/info/jvm,process
|
|
|
|
|
|
|
|
# return all the information of only nodeId1 and nodeId2
|
|
|
|
GET /_nodes/nodeId1,nodeId2/_all
|
|
|
|
--------------------------------------------------
|
2015-07-06 03:37:11 -04:00
|
|
|
|
2019-08-13 07:26:57 -04:00
|
|
|
The `_all` flag can be set to return all the information - or you can omit it.
|
|
|
|
|
2019-08-13 07:53:43 -04:00
|
|
|
|
|
|
|
[[cluster-nodes-info-api-example-plugins]]
|
|
|
|
===== Example for plugins metric
|
|
|
|
|
2020-04-10 08:38:00 -04:00
|
|
|
If `plugins` is specified, the result will contain details about the installed
|
2019-08-13 07:26:57 -04:00
|
|
|
plugins and modules:
|
2013-08-28 19:24:34 -04:00
|
|
|
|
2019-09-09 13:38:14 -04:00
|
|
|
[source,console]
|
2017-08-28 05:23:09 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
GET /_nodes/plugins
|
|
|
|
--------------------------------------------------
|
|
|
|
// TEST[setup:node]
|
2013-08-28 19:24:34 -04:00
|
|
|
|
2019-08-13 07:26:57 -04:00
|
|
|
The API returns the following response:
|
2013-08-28 19:24:34 -04:00
|
|
|
|
2019-09-06 16:09:09 -04:00
|
|
|
[source,console-result]
|
2013-08-28 19:24:34 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
{
|
2017-08-28 05:23:09 -04:00
|
|
|
"_nodes": ...
|
2017-07-28 05:27:54 -04:00
|
|
|
"cluster_name": "elasticsearch",
|
|
|
|
"nodes": {
|
2017-08-28 05:23:09 -04:00
|
|
|
"USpTGYaBSIKbgSUJR2Z9lg": {
|
|
|
|
"name": "node-0",
|
|
|
|
"transport_address": "192.168.17:9300",
|
|
|
|
"host": "node-0.elastic.co",
|
|
|
|
"ip": "192.168.17",
|
|
|
|
"version": "{version}",
|
2018-06-18 12:06:42 -04:00
|
|
|
"build_flavor": "{build_flavor}",
|
2019-02-25 14:39:34 -05:00
|
|
|
"build_type": "{build_type}",
|
2017-08-28 05:23:09 -04:00
|
|
|
"build_hash": "587409e",
|
|
|
|
"roles": [
|
|
|
|
"master",
|
|
|
|
"data",
|
|
|
|
"ingest"
|
|
|
|
],
|
|
|
|
"attributes": {},
|
2017-07-28 05:27:54 -04:00
|
|
|
"plugins": [
|
|
|
|
{
|
|
|
|
"name": "analysis-icu",
|
|
|
|
"version": "{version}",
|
|
|
|
"description": "The ICU Analysis plugin integrates Lucene ICU module into elasticsearch, adding ICU relates analysis components.",
|
|
|
|
"classname": "org.elasticsearch.plugin.analysis.icu.AnalysisICUPlugin",
|
|
|
|
"has_native_controller": false
|
|
|
|
}
|
2017-08-28 05:23:09 -04:00
|
|
|
],
|
|
|
|
"modules": [
|
|
|
|
{
|
|
|
|
"name": "lang-painless",
|
|
|
|
"version": "{version}",
|
|
|
|
"description": "An easy, safe and fast scripting language for Elasticsearch",
|
|
|
|
"classname": "org.elasticsearch.painless.PainlessPlugin",
|
|
|
|
"has_native_controller": false
|
|
|
|
}
|
2017-07-28 05:27:54 -04:00
|
|
|
]
|
2013-08-28 19:24:34 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
--------------------------------------------------
|
2017-08-28 05:23:09 -04:00
|
|
|
// TESTRESPONSE[s/"_nodes": \.\.\./"_nodes": $body.$_path,/]
|
|
|
|
// TESTRESPONSE[s/"elasticsearch"/$body.cluster_name/]
|
|
|
|
// TESTRESPONSE[s/"USpTGYaBSIKbgSUJR2Z9lg"/\$node_name/]
|
|
|
|
// TESTRESPONSE[s/"name": "node-0"/"name": $body.$_path/]
|
|
|
|
// TESTRESPONSE[s/"transport_address": "192.168.17:9300"/"transport_address": $body.$_path/]
|
|
|
|
// TESTRESPONSE[s/"host": "node-0.elastic.co"/"host": $body.$_path/]
|
|
|
|
// TESTRESPONSE[s/"ip": "192.168.17"/"ip": $body.$_path/]
|
|
|
|
// TESTRESPONSE[s/"build_hash": "587409e"/"build_hash": $body.$_path/]
|
|
|
|
// TESTRESPONSE[s/"roles": \[[^\]]*\]/"roles": $body.$_path/]
|
|
|
|
// TESTRESPONSE[s/"attributes": \{[^\}]*\}/"attributes": $body.$_path/]
|
|
|
|
// TESTRESPONSE[s/"plugins": \[[^\]]*\]/"plugins": $body.$_path/]
|
|
|
|
// TESTRESPONSE[s/"modules": \[[^\]]*\]/"modules": $body.$_path/]
|
|
|
|
|
2019-08-13 07:53:43 -04:00
|
|
|
|
|
|
|
[[cluster-nodes-info-api-example-ingest]]
|
|
|
|
===== Example for ingest metric
|
|
|
|
|
2020-04-10 08:38:00 -04:00
|
|
|
If `ingest` is specified, the response contains details about the available
|
2016-02-29 11:41:54 -05:00
|
|
|
processors per node:
|
|
|
|
|
2019-09-09 13:38:14 -04:00
|
|
|
[source,console]
|
2017-08-28 05:23:09 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
GET /_nodes/ingest
|
|
|
|
--------------------------------------------------
|
|
|
|
// TEST[setup:node]
|
2016-02-29 11:41:54 -05:00
|
|
|
|
2019-08-13 07:26:57 -04:00
|
|
|
The API returns the following response:
|
2016-02-29 11:41:54 -05:00
|
|
|
|
2019-09-06 16:09:09 -04:00
|
|
|
[source,console-result]
|
2016-02-29 11:41:54 -05:00
|
|
|
--------------------------------------------------
|
|
|
|
{
|
2017-08-28 05:23:09 -04:00
|
|
|
"_nodes": ...
|
2016-02-29 11:41:54 -05:00
|
|
|
"cluster_name": "elasticsearch",
|
|
|
|
"nodes": {
|
2017-08-28 05:23:09 -04:00
|
|
|
"USpTGYaBSIKbgSUJR2Z9lg": {
|
|
|
|
"name": "node-0",
|
|
|
|
"transport_address": "192.168.17:9300",
|
|
|
|
"host": "node-0.elastic.co",
|
|
|
|
"ip": "192.168.17",
|
|
|
|
"version": "{version}",
|
2018-06-18 12:06:42 -04:00
|
|
|
"build_flavor": "{build_flavor}",
|
2019-02-25 14:39:34 -05:00
|
|
|
"build_type": "{build_type}",
|
2017-08-28 05:23:09 -04:00
|
|
|
"build_hash": "587409e",
|
|
|
|
"roles": [],
|
|
|
|
"attributes": {},
|
2016-02-29 11:41:54 -05:00
|
|
|
"ingest": {
|
|
|
|
"processors": [
|
|
|
|
{
|
|
|
|
"type": "date"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "uppercase"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "set"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "lowercase"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "gsub"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "convert"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "remove"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "fail"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "foreach"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "split"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "trim"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "rename"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "join"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "append"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-08-28 05:23:09 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
// TESTRESPONSE[s/"_nodes": \.\.\./"_nodes": $body.$_path,/]
|
|
|
|
// TESTRESPONSE[s/"elasticsearch"/$body.cluster_name/]
|
|
|
|
// TESTRESPONSE[s/"USpTGYaBSIKbgSUJR2Z9lg"/\$node_name/]
|
|
|
|
// TESTRESPONSE[s/"name": "node-0"/"name": $body.$_path/]
|
|
|
|
// TESTRESPONSE[s/"transport_address": "192.168.17:9300"/"transport_address": $body.$_path/]
|
|
|
|
// TESTRESPONSE[s/"host": "node-0.elastic.co"/"host": $body.$_path/]
|
|
|
|
// TESTRESPONSE[s/"ip": "192.168.17"/"ip": $body.$_path/]
|
|
|
|
// TESTRESPONSE[s/"build_hash": "587409e"/"build_hash": $body.$_path/]
|
|
|
|
// TESTRESPONSE[s/"roles": \[[^\]]*\]/"roles": $body.$_path/]
|
|
|
|
// TESTRESPONSE[s/"attributes": \{[^\}]*\}/"attributes": $body.$_path/]
|
2020-04-10 08:38:00 -04:00
|
|
|
// TESTRESPONSE[s/"processors": \[[^\]]*\]/"processors": $body.$_path/]
|