Search...::Nodes(3pm)
β¨ Search...::Nodes β¨
okay bestie, gather round, because this is the 3pm manpage for Search::Elasticsearch::Client::7_0::Direct::Nodes and it's literally your backstage pass to everything node-level in your cluster π
πΈ VERSION πΈ
version 7.715 β yes, that's the one, don't @ me.
π DESCRIPTION π
This module is the plug for making node-level requests β think stuff like pulling node info and node stats. That's the whole vibe.
It does Search::Elasticsearch::Role::Client::Direct, iykyk π«Ά
π METHODS π
info()
$response = $e->nodes->info(
node_id => $node_id | \@node_ids # optional
metric => $metric | \@metrics # optional
);
The info() method hands you the static information about the nodes in your cluster β like the configured max number of file handles, the max configured heap size, or the threadpool settings. It's giving "tell me about yourself" but for nodes πΈ
Allowed metrics are:
httpjvmnetworkospluginprocesssettingsthread_pooltimeouttransport
Query string parameters:
error_traceflat_settingshuman
See the node_info docs at http://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-info.html for more info π
stats()
$response = $e->nodes->stats(
node_id => $node_id | \@node_ids # optional
metric => $metric | \@metrics # optional
index_metric => $ind_metric | \@ind_metrics # optional
);
The stats() method spills the statistics about the nodes in your cluster β how many file handles are currently open, the current heap memory usage, the current number of threads in use. The receipts, basically π§Ύβ¨
Stats can come back for all nodes, or you can limit it to particular nodes with the node_id parameter. By default all metrics are returned, but you can limit them to whatever you name in the metric parameter.
Allowed metrics are:
_allbreakerfshttpinclude_segment_file_sizesindicesjvmnetworkosprocessthread_pooltimeouttransport
If you specify the indices metric (or _all), then indices_stats information comes back on a per-node basis. Which indices stats get returned is controlled with the index_metric parameter:
$response = $e->nodes->stats(
node_id => 'node_1',
metric => ['indices','fs']
index_metric => ['docs','fielddata']
);
Allowed index metrics are:
_allcompletiondocsfielddatafilter_cacheflushgetid_cacheindexingmergepercolatequery_cacherefreshsearchsegmentsstorewarmer
Query string parameters:
completion_fieldserror_tracefielddata_fieldsfieldsgroupshumanleveltypes
See the stats docs at http://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-stats.html for more info π₯
hot_threads()
$response = $e->nodes->hot_threads(
node_id => $node_id | \@node_ids # optional
)
The hot_threads() method is the tool for diagnosing busy nodes. It takes a snapshot of which threads are eating the most CPU. Main character energy for your overloaded node, fr fr π€
Query string parameters:
error_tracehumanignore_idle_threadsintervalsnapshotsthreadstimeouttype
See the hot_threads docs at http://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-hot-threads.html for more info π
reload_secure_settings()
$response = $e->nodes->reload_secure_settings(
node_id => $node_id | \@node_ids # optional
);
The reload_secure_settings() API will reload the reloadable settings stored in the keystore on each node. Glow-up for your keystore, no restart required π
Query string parameters:
error_tracefilter_pathhumantimeout
See the reload-secure-settings docs at https://www.elastic.co/guide/en/elasticsearch/reference/current/secure-settings.html for more info π
usage()
$response = $e->nodes->usage(
node_id => $node_id | \@node_ids # optional
metric => $metric | \@metrics # optional
)
The usage() API retrieve sinformation on the usage of features for each node. (that's "retrieves information", bestie, the manpage just tripped over its own feet there π we're keeping it real)
Query string parameters:
error_tracehumantimeout
See the nodes_usage docs at https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-usage.html for more info π
π AUTHOR π
Enrico Zimuel <enrico.zimuel@elastic.co> β icon, legend, the moment π
π COPYRIGHT AND LICENSE π
This software is Copyright (c) 2021 by Elasticsearch BV.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
and that's the whole page, bestie β perl v5.32.1, dated 2021-10-23, brought to you by the good people at Search...::Nodes(3pm). go forth and query your nodes, slay π
β¨π¦
π¦ where this page comes from
- ubuntu jammy: libsearch-elasticsearch-perl 7.715-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms