# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. package Search::Elasticsearch::Client::7_0::Direct::Nodes; $Search::Elasticsearch::Client::7_0::Direct::Nodes::VERSION = '7.717'; use Moo; with 'Search::Elasticsearch::Client::7_0::Role::API'; with 'Search::Elasticsearch::Role::Client::Direct'; __PACKAGE__->_install_api('nodes'); 1; =pod =encoding UTF-8 =head1 NAME Search::Elasticsearch::Client::7_0::Direct::Nodes - A client for running node-level requests =head1 VERSION version 7.717 =head1 DESCRIPTION This module provides methods to make node-level requests, such as retrieving node info and stats. It does L. =head1 METHODS =head2 C $response = $e->nodes->info( node_id => $node_id | \@node_ids # optional metric => $metric | \@metrics # optional ); The C method returns static information about the nodes in the cluster, such as the configured maximum number of file handles, the maximum configured heap size or the threadpool settings. Allowed metrics are: C, C, C, C, C, C, C, C, C, C Query string parameters: C, C, C See the L for more information. =head2 C $response = $e->nodes->stats( node_id => $node_id | \@node_ids # optional metric => $metric | \@metrics # optional index_metric => $ind_metric | \@ind_metrics # optional ); The C method returns statistics about the nodes in the cluster, such as the number of currently open file handles, the current heap memory usage or the current number of threads in use. Stats can be returned for all nodes, or limited to particular nodes with the C parameter. By default all metrics are returned, but these can be limited to those specified in the C parameter. Allowed metrics are: C<_all>, C, C, C, C, C, C, C, C, C, C, C, C If the C metric (or C<_all>) is specified, then L information is returned on a per-node basis. Which indices stats are returned can be controlled with the C parameter: $response = $e->nodes->stats( node_id => 'node_1', metric => ['indices','fs'] index_metric => ['docs','fielddata'] ); Allowed index metrics are: C<_all>, C C, C, C, C, C, C, C, C, C, C, C, C, C, C, C Query string parameters: C, C, C, C, C, C, C, C See the L for more information. =head2 C $response = $e->nodes->hot_threads( node_id => $node_id | \@node_ids # optional ) The C method is a useful tool for diagnosing busy nodes. It takes a snapshot of which threads are consuming the most CPU. Query string parameters: C, C, C, C, C, C, C, C See the L for more information. =head2 C $response = $e->nodes->reload_secure_settings( node_id => $node_id | \@node_ids # optional ); The C API will reload the reloadable settings stored in the keystore on each node. Query string parameters: C, C, C, C See the L for more information. =head2 C $response = $e->nodes->usage( node_id => $node_id | \@node_ids # optional metric => $metric | \@metrics # optional ) The C API retrieve sinformation on the usage of features for each node. Query string parameters: C, C, C See the L for more information. =head1 AUTHOR Enrico Zimuel =head1 COPYRIGHT AND LICENSE This software is Copyright (c) 2022 by Elasticsearch BV. This is free software, licensed under: The Apache License, Version 2.0, January 2004 =cut __END__ # ABSTRACT: A client for running node-level requests