How do I make my Amazon OpenSearch Service domain more fault tolerant?
4 minute read
I want to protect Amazon OpenSearch Service resources against accidental deletion, application or hardware failures, or outages. What are some best practices for improving fault tolerance or restoring snapshots?
To improve the fault tolerance of an OpenSearch Service domain, consider the following best practices:
Take regular index snapshots.
Use Amazon CloudWatch metrics to monitor OpenSearch Service resources.
Don't use T2 instances in production environments.
Take regular index snapshots
All OpenSearch Service domains take automated snapshots. Take manual index snapshots to create point-in-time backups of the data in an OpenSearch Service domain. Store the snapshots in an Amazon Simple Storage Service (Amazon S3) bucket. You can also use manual index snapshots to migrate data between OpenSearch Service domains or to restore data to another OpenSearch Service domain.
Monitor Amazon CloudWatch metrics
Use the Cluster health and Instance health tabs in the OpenSearch Service console to monitor the Amazon CloudWatch metrics for your clusters.
Dedicated master nodes help prevent problems that are caused by overloaded nodes. Use dedicated master nodes when:
Your domain is used in production environments.
Your domain has five or more nodes.
Your index mapping is complex, with many fields defined across types and indices.
Use at least three nodes
To avoid an unintentionally partitioned network (split brain), use at least three nodes. To avoid potential data loss, be sure that you have at least one replica for each index. (By default, each index has one replica.)
Note: For a setup of three Availability Zones, use two replicas of your index. If there is a single zone failure, the two replicas afford 100% data redundancy.
Don't use T2 instances in production environments
For production environments, use M-class or larger Amazon Elastic Compute Cloud (Amazon EC2) instances. If you use T2 instance types, be sure to monitor the CPU credits, CPU usage, memory usage, and stability of your instances. Scale up or out when necessary.
Additionally, note the following limitations for T2 instances:
T2 instances have a payload limit of 10 MB. Make sure that your request payload doesn't exceed the payload limit. For more information about OpenSearch Service network limits, see Network limits.
T2 instance types can be used only if your OpenSearch Service instance count is ten or fewer. For more information about the supported OpenSearch Service instance types, see Supported instance types.
T2 instance types must not be used as data nodes or dedicated master nodes. T2 instance types can become unstable under sustained heavy load. For more information, see OpenSearch Service best practices.