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

influxdb: how to rebuild TSI indexes when using Docker? #759

Open
koitsu opened this issue Jul 11, 2024 · 0 comments
Open

influxdb: how to rebuild TSI indexes when using Docker? #759

koitsu opened this issue Jul 11, 2024 · 0 comments

Comments

@koitsu
Copy link

koitsu commented Jul 11, 2024

How does one go about achieving https://docs.influxdata.com/influxdb/v2/admin/internals/tsi/rebuild-index/ when one is using the official InfluxDB Docker image (i.e. influxdb:latest) ?

Step 1 involves stopping influxd itself, which as I understand it, would cause the Docker container to exit. Steps 2, 3, and 4 could be done on the host itself (i.e. outside of Docker), which is fine. But step 5 seems impossible given what step 1 did.

I've reviewed /entrypoint.sh and it almost seems like something would need to be added here to achieve this (but it's nearly 20KBytes of shell), but I'm not entirely sure. One would think docker exec -it container-name /bin/bash and then doing influxd ... commands would be sufficient, but that would require the container be running in the first place.

Thanks for any insights on how to achieve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant