Search...::Nodes(3pm)
π Search...::Nodes β the client for node-level requests, bestie
okay so this is Search::Elasticsearch::Client::2_0::Direct::Nodes, a page from the User Contributed Perl Documentation (yes, the 3pm crowd), and it's literally the module that lets you poke at individual nodes in your Elasticsearch cluster. node gossip. node stats. node drama. we love her. π
β¨ VERSION β¨
version 6.81 β that's the one, no cap.
πΈ DESCRIPTION πΈ
This module hands you the methods for making node-level requests, like grabbing node info and node stats. it's giving "let me check on my nodes real quick." π
It does Search::Elasticsearch::Role::Client::Direct β iykyk, that's the role behind the curtain doing the heavy lifting. π§
π₯ METHODS π₯
π« info()
$response = $e->nodes->info(
node_id => $node_id | \@node_ids # optional
metric => $metric | \@metrics # optional
);
The info() method returns static information about the nodes in the cluster β like the configured max number of file handles, the max configured heap size, or the threadpool settings. it's the "tell me about yourself" icebreaker of node requests. π«Ά
Allowed metrics are:
httpjvmnetworkospluginprocesssettingsthread_pooltimeouttransport
Query string parameters:
flat_settingshuman
See the node_info docs <http://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-info.html> for more information. β
π« 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 returns statistics about the nodes in the cluster β how many file handles are currently open, current heap memory usage, current number of threads in use. the whole vibe check. π
Stats can be returned for all nodes, or you can limit them to particular nodes with the node_id parameter. By default all metrics come back, but you can limit them to whatever you name in the metric parameter. you're the main character, you decide.
Allowed metrics are:
_allbreakerfshttpindicesjvmnetworkosprocessthread_pooltimeouttransport
If the indices metric (or _all) is specified, then indices_stats information is returned on a per-node basis. Which indices stats come back can be controlled with the index_metric parameter:
$response = $e->cluster->node_stats(
node_id => 'node_1',
metric => ['indices','fs']
index_metric => ['docs','fielddata']
);
Allowed index metrics are:
_allcompletiondocsfielddatafilter_cacheflushgetid_cacheindexingmergepercolatequery_cacherefreshsearchsegmentsstorewarmer
Query string parameters:
completion_fieldsfielddata_fieldsfieldsgroupshumanleveltypes
See the node_stats docs <http://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-stats.html> for more information. π
π« hot_threads()
$response = $e->nodes->hot_threads(
node_id => $node_id | \@node_ids # optional
)
The hot_threads() method is a genuinely useful tool for diagnosing busy nodes β it takes a snapshot of which threads are consuming the most CPU. obsessed with how it just tells you who's being loud. ππ₯
Query string parameters:
ignore_idle_threadsintervalsnapshotsthreadstimeouttype
See the hot_threads docs <http://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-hot-threads.html> for more information. π
π AUTHOR π
Enrico Zimuel <enrico.zimuel@elastic.co> β icon, legend, the moment. π
π COPYRIGHT AND LICENSE π
This software is Copyright (c) 2020 by Elasticsearch BV.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
and that's the whole page, bestie π¦ this was written for perl v5.32.0, dated 2020-11-25, and yeah β it's the Search...::Nodes(3pm) page. slay, go check your nodes. β¨π
π¦ where this page comes from
- debian bookworm: libsearch-elasticsearch-client-2-0-perl 6.81-1 Β· Apache-2.0
- debian trixie: libsearch-elasticsearch-client-2-0-perl 6.81-1 Β· Apache-2.0
- ubuntu jammy: libsearch-elasticsearch-client-2-0-perl 6.81-1 Β· Apache-2.0
- ubuntu noble: libsearch-elasticsearch-client-2-0-perl 6.81-1 Β· Apache-2.0
- ubuntu resolute: libsearch-elasticsearch-client-2-0-perl 6.81-1 Β· Apache-2.0
- ubuntu stonking: libsearch-elasticsearch-client-2-0-perl 6.81-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms