Search-Elasticsearch-Client-0_90
view release on metacpan or search on metacpan
lib/Search/Elasticsearch/Client/0_90/Direct/Cluster.pm view on Meta::CPAN
package Search::Elasticsearch::Client::0_90::Direct::Cluster;
$Search::Elasticsearch::Client::0_90::Direct::Cluster::VERSION = '6.81';
use Moo;
with 'Search::Elasticsearch::Client::0_90::Role::API';
with 'Search::Elasticsearch::Role::Client::Direct';
__PACKAGE__->_install_api('cluster');
1;
=pod
=encoding UTF-8
=head1 NAME
Search::Elasticsearch::Client::0_90::Direct::Cluster - A client for running cluster-level requests
=head1 VERSION
version 6.81
=head1 DESCRIPTION
This module provides methods to make cluster-level requests, such as
getting and setting cluster-level settings, manually rerouting shards,
and retrieving for monitoring purposes.
It does L<Search::Elasticsearch::Role::Client::Direct>.
=head1 METHODS
=head2 C<health()>
$response = $e->cluster->health( %qs_params )
The C<health()> method is used to retrieve information about the cluster
health, returning C<red>, C<yellow> or C<green> to indicate the state
of the cluster, indices or shards.
Query string parameters:
C<level>,
C<local>,
C<master_timeout>,
C<timeout>,
C<wait_for_active_shards>,
C<wait_for_nodes>,
C<wait_for_relocating_shards>,
C<wait_for_status>
See the L<cluster health docs|http://www.elastic.co/guide/en/elasticsearch/reference/0.90/cluster-health.html>
for more information.
=head2 C<pending_tasks()>
$response = $e->cluster->pending_tasks();
Returns a list of cluster-level tasks still pending on the master node.
Query string parameters:
C<local>,
C<master_timeout>
See the L<pending tasks docs|http://www.elastic.co/guide/en/elasticsearch/reference/0.90/cluster-pending.html>
for more information.
=head2 C<node_info()>
$response = $e->cluster->node_info(
node_id => $node_id | \@node_ids # optional
);
The C<node_info()> 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.
Query string parameters:
C<all>,
C<clear>,
C<http>,
C<jvm>,
C<network>,
C<os>,
C<plugin>,
C<process>,
C<settings>,
C<thread_pool>,
C<timeout>,
C<transport>
See the L<node_info docs|http://www.elastic.co/guide/en/elasticsearch/reference/0.90/cluster-nodes-info.html>
for more information.
=head2 C<node_stats()>
$response = $e->cluster->node_stats(
node_id => $node_id | \@node_ids # optional
);
The C<node_stats()> 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<node_id> parameter.
The L<indices_stats|Search::Elasticsearch::Client::0_90::Direct::Indices/indices_stats()>
information can also be retrieved on a per-node basis with the C<node_stats()>
method:
( run in 1.758 second using v1.01-cache-2.11-cpan-5511b514fd6 )