-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Rollover improvement #26092
Comments
Hi @consulthys, thanks for the feedback. I'm not too familiar with the cost of rolling over and index, but it could potentially affect other index/search operations on the cluster so my guess is its a better option to not make this an automatic thing. I will mark this feature suggestion as a discussion topic so others can chime in. |
Thanks for your feedback @cbuescher. If there is some overhead, it would of course be a "performance vs simplicity" tradeoff that the user can decide to accept or not. If no |
@consulthys the main issue here is not performance but rather the missing back-channel. What do you do if there is an error? How do you communicate this to the user? We can continuously log stuff to disk but there is quite some stuff involved when we are rolling over an index. Having a request response model is quite appealing for testing and error reporting. I spent quite some time thinking about this an I wonder if we can improve that down the road with support for response headers that tell you that you need to call the |
Thanks for your insights @s1monw, much appreciated! I understand the challenge now. So the problem would basically boil down to a rollover not happening (even though it should based on the rollover conditions) because of some underlying issue that needs to be communicated to the client. Response headers, as you suggest, could be an idea, but how about adding another The presence of the
|
yeah so from an API perspective I think it would be nice to not mix the two together. But I have no good answer for this. I think there is room for improvement and I wonder what @clintongormley thinks about this. I will mull on that a bit longer.. |
+1 to have a configurable regular rollover builtin ES, so one does not rely on such a feature on the logging solution (like graylog) |
We have effectively implemented this functionality in the form of Index Lifecycle Management (ILM) so I'm going to close this issue - please comment here if there's some functionality described in this issue that I've missed that isn't available in ILM. |
The addition of the Rollover API has greatly simplified the management of time-based indices. Yet, the
_rollover
endpoint still needs to be called in a recurring manner, either manually or via cron-based tool such as Curator.However, it would be much simpler if the rollover process was implicit and managed internally. The idea would be to specify the rollover conditions in the alias at index creation time (or equivalently in an index template), basically like this:
Then when indexing new documents through the
logs_write
alias (provided that alias only points to a single index, of course), it would know whether a new index needs to be created or not based on themax_age
andmax_docs
conditions. There wouldn't be any need to call_rollover
explicitly.Would there be any downside to the proposed improvement? Unless there is too much overhead work involved in the rollover process in order to determine whether or not a new index needs to be created, of course.
The text was updated successfully, but these errors were encountered: