OpenSearch Configuration

Shard, replica, and resource settings for HA and non-HA OpenSearch deployments.

3 min read Updated SS

The OpenSearch configurations for HA and non-HA are as follows:

1. Before starting the data collection, ensure the following configurations are completed.

Note: The HEAL 2.3.2 installer automatically applies the following changes. If manual configuration is required, ensure the steps below are implemented respectively.

2. Non-HA,

a. Update the OpenSearch HEAL template configuration file to set the following parameters:

Number of Shards: 1
Number of Replicas: 0

b. Disk space requirement: 15 GB of disk space will be required per day. Hence, a single node = 15 GB.

c. CPU and Memory Utilization.

3. HA,

a. If OS has 3 nodes, update the OpenSearch HEAL template configuration file to set the following parameters:

i. Ensure the shards value is 3 and the replication value is 1.

Number of Shards: 3
Number of Replicas: 1

Information: The data is applicable for one set of OpenSearch nodes (ex: KPI). Apply the same for all the sets of OpenSearch nodes, like transaction, JIM, misc, and coordinator.

For Example:

Disk space utilization: If your collected data is 30 GB of disk space (per day). Then, 3 nodes = 10 GB each CPU and Memory Utilization: Allocate the value according to your requirements. For each node, the CPU has 3 cores, and 7 GB of memory is allocated. When one node is down, ensure the following conditions for the other 2 nodes:

  • 5 GB of additional disk space should be available.
  • The CPU should have an additional 1.5 cores.
  • Since memory can’t be changed during runtime, provide a total of 10.5 GB (7 GB + 3.5 GB) while setting the HA setup.

Note: Only one node should be down at a time. If greater than 1 node is down, there will be data breakage.

ii. Ensure the shards value is 3 and the replication value is 1.

Number of Shards: 3
Number of Replicas: 2

Information:

  • The data is applicable for one set of OpenSearch nodes (ex: KPI).
  • Apply the same for all the sets of OpenSearch nodes like transaction, JIM, misc, and coordinator.

For Example:

  • Disk space utilization: If your collected data is 45 GB of disk space (per day). Then, 3 nodes = 15 GB each
  • CPU and Memory Utilization: Allocate the value as per your requirements.
  • For each node, the CPU has 3 cores, and 7 GB of memory is allocated.
  • When two nodes are down, ensure the following conditions are met for the other node:

Note:

  • Only two nodes should be down at a time.
  • If greater than 2 node is down, there will be data breakage.
  • 30 GB of additional disk space should be available.
  • The CPU should have an additional 6 cores.
  • Since memory can’t be changed during runtime, provide a total of 21 GB while setting the HA setup.

Note:

  • HEAL recommends the number of replications as 0 (non-HA) and 1 (HA).
  • The number of replications = 2 in above section is for example.

b. If OS has 5 nodes, update the OpenSearch HEAL template configuration file to set the following parameters:

i. Ensure the shards value is 5 and the replication value is 1.

Number of Shards: 5
Number of Replicas: 1
  • Disk space utilization: If your collected data is 30 GB of disk space (per day). Then, 5 nodes = 6 GB each.

c. If OS has 7 nodes, update the OpenSearch HEAL template configuration file to set the following parameters:

i. Ensure the shards value is 7 and the replication value is 1.

Number of Shards: 7
Number of Replicas: 1
  • Disk space utilization: 30 GB of disk space will be required per day. Hence, 7 nodes = 4.5 GB each.