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 support for closed indices to ILM #39524

Closed
dakrone opened this issue Feb 28, 2019 · 5 comments
Closed

Add support for closed indices to ILM #39524

dakrone opened this issue Feb 28, 2019 · 5 comments
Labels
:Data Management/ILM+SLM Index and Snapshot lifecycle management >enhancement team-discuss

Comments

@dakrone
Copy link
Member

dakrone commented Feb 28, 2019

Now that closed indices are replicated (see: #39499 / #33888). We should add support
for these indices to ILM.

This means that in a policy, a user should be able to specify that an index be
closed, and then still be able to perform some subset of operations on the
index (allocation routing, likely?).

The closed index should be allowed to be deleted in the delete phase of ILM as
well.

@dakrone dakrone added >enhancement :Data Management/ILM+SLM Index and Snapshot lifecycle management v8.0.0 v7.2.0 labels Feb 28, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features

@jakelandis
Copy link
Contributor

I think there are two areas of support here:

a user should be able to specify that an index be closed

It seems that now the we have frozen indices the reasons one would want to close an index are diminishing. By offering close AND frozen as options are we asking the user to make a nuanced decision ? I suspect the most users would pick close since it seems obvious what it does, and thus we may steer people away from frozen and it's benifits. (Users can always close the index themselves, but does it make sense to do so automated ?)

The closed index should be allowed to be deleted in the delete phase

Same argument as above, given that we have frozen, does close belong in an automated workflow ?

@eskibars - thoughts ?

@dakrone
Copy link
Member Author

dakrone commented Feb 28, 2019

Same argument as above, given that we have frozen, does close belong in an automated workflow ?

My personal opinion here is yes, for instance, I can imagine that it would be nice to freeze older indices while still having them be searchable, and then, close them the day before the indices are deleted. This would allow anyone consuming the data to notice the data was missing (say, in a Kibana dashboard), and then take steps to save the data prior to it being deleted for good.

Definitely good to discuss it though.

@eskibars
Copy link
Contributor

eskibars commented Mar 5, 2019

By offering close AND frozen as options are we asking the user to make a nuanced decision ? I suspect the most users would pick close since it seems obvious what it does, and thus we may steer people away from frozen and it's benifits.

This is my concern as well.

I can imagine that it would be nice to freeze older indices while still having them be searchable, and then, close them the day before the indices are deleted. This would allow anyone consuming the data to notice the data was missing (say, in a Kibana dashboard), and then take steps to save the data prior to it being deleted for good.

I suspect it'd be a mix with users. For smaller orgs/projects, the consumers of the data may also be the cluster administrators (or very close to them anyway) and recognize data's gone missing before they hoped. In larger orgs/projects, you'd have to have pretty long times between the close and the delete for someone to notice, figure out why the data was gone or if it was a security configuration or someone changing index patterns in Kibana, and then doing the right thing to stop deletion (e.g. not just reopening the index, but also disabling the policy for the index). I suspect in most cases where there are larger projects, the cluster administrator would just want to ensure that a snapshot had occurred on the index before deletion.

@jakelandis jakelandis added v7.3.0 and removed v7.2.0 labels Jun 17, 2019
@dakrone
Copy link
Member Author

dakrone commented Jun 27, 2019

Closing this as we don't think there's enough interest in this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Data Management/ILM+SLM Index and Snapshot lifecycle management >enhancement team-discuss
Projects
None yet
Development

No branches or pull requests

6 participants
@dakrone @jpountz @jakelandis @eskibars @elasticmachine and others