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달 전225회 조회
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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠