OpenSearch Serverless Data Lifecycle Policy

0
[
  {
    "Resource": [
      "index/demo-collection/demo-index"
    ],
    "ResourceType": "index",
    "MinIndexRetention": "30d"
  }
]

I wanted to understand the MinIndexRetention field in the Data Lifecycle Policy . Does it retain the entire index for a minimum of 30 days from the index creation date regardless of when data is inserted in that index?

質問済み 6ヶ月前235ビュー
1回答
0
承認された回答

The MinIndexRetention field specifies the minimum amount of time that an entire index must be retained before the lifecycle policy can perform actions like deleting or archiving the index. This ensures important data is not accidentally removed too soon.

The retention period is calculated from the index creation date, not the individual document ingestion times. So even if some documents in the index are newer, the entire index will be retained for at least the configured MinIndexRetention period.

For example, setting MinIndexRetention to "30 days" in your case means the lifecycle policy won't take any action on the index until it is at least 30 days old. This helps prevent accidental deletion of recent data, while still allowing long-term index management.

The MinIndexRetention value and unit (days, weeks, months, years) can be configured based on the user's data retention requirements and policies. After the minimum retention period elapses, the policy will then evaluate the index for further actions like deletion or archiving based on other configured criteria.

profile pictureAWS
エキスパート
回答済み 6ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ