Skip to main content

domain_healths

Creates, updates, deletes, gets or lists a domain_healths resource.

Overview

Namedomain_healths
TypeResource
Idaws.opensearch.domain_healths

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
active_availability_zone_countstringThe number of active Availability Zones configured for the domain. If the service is unable to fetch this information, it will return NotAvailable. (pattern: <code>^((\d+)|(NotAvailable))$</code>)
availability_zone_countstringThe number of Availability Zones configured for the domain. If the service is unable to fetch this information, it will return NotAvailable. (pattern: <code>^((\d+)|(NotAvailable))$</code>)
cluster_healthstringThe current health status of your cluster. Red - At least one primary shard is not allocated to any node. Yellow - All primary shards are allocated to nodes, but some replicas aren’t. Green - All primary shards and their replicas are allocated to nodes. NotAvailable - Unable to retrieve cluster health. (Red, Yellow, Green, NotAvailable)
data_node_countstringThe number of data nodes configured for the domain. If the service is unable to fetch this information, it will return NotAvailable. (pattern: <code>^((\d+)|(NotAvailable))$</code>)
dedicated_masterbooleanA boolean that indicates if dedicated master nodes are activated for the domain.
domain_statestringThe current state of the domain. Processing - The domain has updates in progress. Active - Requested changes have been processed and deployed to the domain. (Active, Processing, NotAvailable)
environment_informationarrayA list of EnvironmentInfo for the domain.
master_eligible_node_countstringThe number of nodes that can be elected as a master node. If dedicated master nodes is turned on, this value is the number of dedicated master nodes configured for the domain. If the service is unable to fetch this information, it will return NotAvailable. (pattern: <code>^((\d+)|(NotAvailable))$</code>)
master_nodestringIndicates whether the domain has an elected master node. Available - The domain has an elected master node. UnAvailable - The master node hasn't yet been elected, and a quorum to elect a new master node hasn't been reached. (Available, UnAvailable)
stand_by_availability_zone_countstringThe number of standby Availability Zones configured for the domain. If the service is unable to fetch this information, it will return NotAvailable. (pattern: <code>^((\d+)|(NotAvailable))$</code>)
total_shardsstringThe total number of primary and replica shards for the domain. (pattern: <code>^((\d+)|(NotAvailable))$</code>)
total_un_assigned_shardsstringThe total number of primary and replica shards not allocated to any of the nodes for the cluster. (pattern: <code>^((\d+)|(NotAvailable))$</code>)
warm_node_countstringThe number of warm nodes configured for the domain. (pattern: <code>^((\d+)|(NotAvailable))$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_domain_healthselectdomain_name, regionReturns information about domain and node health, the standby Availability Zone, number of nodes per Availability Zone, and shard count per node.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
domain_namestringThe name of the domain.
regionstringAWS region (default: us-east-1)

SELECT examples

Returns information about domain and node health, the standby Availability Zone, number of nodes per Availability Zone, and shard count per node.

SELECT
active_availability_zone_count,
availability_zone_count,
cluster_health,
data_node_count,
dedicated_master,
domain_state,
environment_information,
master_eligible_node_count,
master_node,
stand_by_availability_zone_count,
total_shards,
total_un_assigned_shards,
warm_node_count
FROM aws.opensearch.domain_healths
WHERE domain_name = '{{ domain_name }}' -- required
AND region = '{{ region }}' -- required
;