NAME

OpenSearch::Cluster - OpenSearch Cluster API Endpoints

SYNOPSIS

use OpenSearch;

my $os = OpenSearch->new(...);
my $cluster = $os->cluster;

$cluster->put_settings(
  persistent => {
    'indices.recovery.max_bytes_per_sec' => '50mb'
  },
  transient => {
    'cluster.routing.allocation.enable' => 'all'
  }
  timeout => '30s'
);

my $health = $cluster->health(...);

DESCRIPTION

This module provides an interface to the OpenSearch Cluster API endpoints.

METHODS

get_settings

$cluster->get_settings;

update_settings

$cluster->put_settings(
  persistent => {
    'indices.recovery.max_bytes_per_sec' => '50mb'
  },
  transient => {
    'cluster.routing.allocation.enable' => 'all'
  }
  timeout => '30s'
);

health

$cluster->health(...);

stats

$cluster->stats(...);

allocation_explain

$cluster->allocation_explain(...);

get_decommission_awareness [UNTESTED]

$cluster->get_decommission_awareness(...);

set_decommission_awareness [UNTESTED]

$cluster->set_decommission_awareness(...);

del_decommission_awareness [UNTESTED]

$cluster->del_decommission_awareness(...);

get_routing_awareness [UNTESTED]

$cluster->get_routing_awareness(...);

del_routing_awareness [UNTESTED]

$cluster->del_routing_awareness(...);

set_routing_awareness [UNTESTED]

$cluster->set_routing_awareness(...);

AUTHOR

OpenSearch was written by Sebastian Grenz, <git at fail.ninja>