Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add index setting to rolled over indices with the time they were rolled over #30887

Closed
talevy opened this issue May 25, 2018 · 1 comment
Closed
Assignees
Labels
:Data Management/Indices APIs APIs to create and manage indices and templates >enhancement

Comments

@talevy
Copy link
Contributor

talevy commented May 25, 2018

Proposal

Add new index-level setting called index.rollover_date that will record the time an index was
rolled over.

Usage

  1. general index management. It would be nice to know
  2. it could be used by systems like Index-Lifecycle-Management to keep track of relative age of
    the documents within an index. For example, we would only want to move on to the warm phase after 7 days. Is this 7 days after the index was created, or rolled over? We believe that it should be
    relative to the rollover date. (see inherit [index.lifecycle.date] from rolled-over time #30853 (comment))

Implementation

Add an additional callback action to when the rollover aliases are appropriately swapped to also update index.rollover_date on the rolled over index, and then continue the active-shards check before returning the rollover response

@talevy talevy added >enhancement :Data Management/Indices APIs APIs to create and manage indices and templates labels May 25, 2018
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Data Management/Indices APIs APIs to create and manage indices and templates >enhancement
Projects
None yet
Development

No branches or pull requests

2 participants