-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Remove the need for external tools for managing Elasticsearch #6283
Comments
I am working on it |
Hi @yurishkuro , for
Does it sound good? |
IndexDateSeparator - if the main storage doesn't need this argument, why does cleaner need it? Archive bool - archive storage is configured as separate storage in v2, so it can have its own cleaner if desired. Rollover bool - not clear. What's the alternative? DeleteBeforeThisDate time.Time - doesn't make sense, cleaner is a permanent periodic job, not something that takes an absolute time. We already have max span age parameter iirc, is it not sufficient to drive the behavior of the cleaner? |
I mostly took out the filters used in the current implementation.
Yes, I don't think so we need it. There is
Makes sense. Thanks
I was thinking maybe I can use the exact filter used for the rollover case, in the current implementation. But I probably have to read more about how this is being used here before commenting further. If you can provide me with some pointers, that would be really helpful? Thanks
Was mostly referring to the time calculated before which we should delete indices. This calculation should actually be done based on a Also, looks like rohan has already started working on it. |
Also, shouldn't this be added as an extension? |
it could be an extension but I think it's very closely coupled with the storage implementation that it makes more sense for it to be just an option in the config |
Just wanted to add this info. We won't need this config as well. Rollover indices can be treated as |
PR #5797 is a good example of eliminating the need for schema initialization script for Cassandra by moving the logic directly into Jaeger binary.
We have three standalone tools for managing ES that we can also merge into Jaeger binary directly. All of them are already implemented in Go, so are fairly straightforward to embed in the Jaeger binary (fewer binary artifacts to release).
cmd/es-index-cleaner/
is used as a cron job to delete old ES indices. The logic can instead be executed from the Jaeger binary on a timer.cmd/es-rollover/
- similar to cleaner but for rolling over indices.esmapping-generator/
- just prints the index mappings to stdout (probably for manual installation)Tasks
enabled
properties for each.es-mappings
to jaeger v2 binary to print es mappingsThe text was updated successfully, but these errors were encountered: