Verifies that Elasticsearch domains are configured with at least three data nodes to ensure high availability and fault tolerance.
Rule | Elasticsearch domains should have at least three data nodes |
Framework | AWS Foundational Security Best Practices |
Severity | ✔ Medium |
Rule Description:
Elasticsearch domains should have a minimum of three data nodes for AWS Foundational Security Best Practices. This ensures high availability and fault tolerance for the Elasticsearch cluster.
Troubleshooting Steps:
If the Elasticsearch domain does not have at least three data nodes, follow these steps to remediate:
Necessary Codes:
If you need to update the configuration settings to add more data nodes, you can use the following code snippet:
PUT /_cluster/settings
{
"persistent": {
"discovery.zen.minimum_master_nodes": 2
}
}
Step-by-Step Guide for Remediation:
By ensuring that Elasticsearch domains have at least three data nodes, you adhere to AWS Foundational Security Best Practices and enhance the reliability of your Elasticsearch cluster.