- Newest
- Most votes
- Most comments
Hello,
If your complete data is getting deleted, then it might be that you have single node cluster which is experiencing node drop hence causing data loss. As in case of a single node cluster only primary shards are allocated and there are no replica shards available for recovering data after node drop.
If this is the case you can check, SearchableDocuments
metric (Maximum statistics with 1 min period) and compare it with Nodes
metric (minimum statistics with 1 min period) in CloudWatch console. Keep both the metrics on different axis and see if the drop in SearchableDocuments
metric is aligning with drop/missing data points in Nodes
metric. This should help you confirm if node drop is the cause of data loss.
If above discussed scenario is not your issue and only few of your indices are getting deleted then I will suggest to check internally if DELETE
requests are being sent from your end.
If you are not able troubleshoot the issue and require further assistance, please reach out to support engineering to check your domain and assist you further with the cause of data loss.
Relevant content
- Accepted Answerasked 4 years ago
- Accepted Answerasked a year ago
- Accepted Answerasked 10 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 6 months ago
Thanks a lot @Rajat for your answer. This is exactly the reason why we faced a drop in indices. What should I do to create a replica node?
Hello Mohamed, Thank you for writing back - I am glad to hear that above information was helpful.
In order to create a replica node, Please follow below steps:
If you have cost constraints, having at-least two data nodes should be helpful for replica shards.
[+] Sizing Amazon OpenSearch Service domains - Step 1: Make an initial estimate - https://docs.aws.amazon.com/opensearch-service/latest/developerguide/sizing-domains.html#initial-estimate
If replica shards are not enabled, update the index level setting of each index to enable replica shards.
You can also consider using Index template for new indices which are created, but for already available index you have to manually update the index settings (if replica shards are not enabled).
[+] https://opensearch.org/docs/latest/im-plugin/index-templates/