jaeger: es-index-cleaner:latest is not working as expected
We use jaeger installed in kubernetes cluster with elasticsearch backend with rollover and now - old indexes not removed. Helm chart use jaegertracing/jaeger-es-index-cleaner:latest image for removing old indexes - and this not working as expected
Expected behavior Old indexes must be removed as described in documentation
Version (please complete the following information):
- OS: Linux
- Jaeger version: 1.22.0
- Deployment: Kubernetes
Additional context
As hotfix - downgrade to image jaegertracing/jaeger-es-index-cleaner:1
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 24 (12 by maintainers)
@ichasco-heytrade here is my reproducer for https://github.com/jaegertracing/jaeger/issues/3228#issuecomment-918217814 to remove
jaeger-jaeger-dependencies-2021-09-10. The test passes so it means that the index will be deleted.PR https://github.com/jaegertracing/jaeger/pull/3264
To remove the
jaeger-jaeger-dependencies-2021-09-10try running:Do not enable rollover bc the index is not managed by the rollover.
It seems that image
jaegertracing/jaeger-es-index-cleaner:116 days ago wasjaegertracing/jaeger-es-index-cleaner@sha256:5e0adb0e8623dd334709943999a6b9d3e283090efcc05a7f90c34804a7e71758and it was with python implementation - it save us that moment.I check pod with image
jaeger-es-index-cleaner:1today - and now this image is in go implemetationtodays logs of
jaeger-es-index-cleanerpod isNo indices to delete@pavolloffay I think the problem in environment
it should be
But I do not understand how it can work in python implementation early…
Today I try to run it with
result
with go implementation, with this environment -
No indices to delete@pavolloffay Sorry for this noise, it seems some elasticsearch specific… It’s not a bug for go implementation
Sure. As I mension before - we use jaeger installation in kubernetes with elasticsearch backend and rollover - we install jaeger with helm chart with enabled esIndexCleaner to clear old indexes in our elasticsearch backend to reduce disk usage
It’s create CronJob with this specification
It’s successfuly works until today - we notice that our disk usage significantly increased - we realize that old jaeger indexes not removing - cronjob logs
I think that the problem in es-index-cleaner golang implementation (#3192) this implementation do not use environment variables that was used in old python implementation - we clear old indexes only with dowgrading to python implementation
jaegertracing/jaeger-es-index-cleaner:1