influxdata / influxdata/influxdata-docker
influxdb: how to rebuild TSI indexes when using Docker?
- Dominant language
- Shell
- Stars
- 364
- Forks
- 255
- Avg merge
- 3h 18m
- Merged PRs (30d)
- 7
Description
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.
Contributor guide
No contributing guide indexed for this repository
Research direction
Read the linked TSI rebuild-index procedure and inspect /entrypoint.sh to understand how its five steps apply to the official influxdb:latest image. Done is a documented, reproducible Docker procedure that covers stopping influxd and completing the rebuild commands.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, shell
- Domain
- devops, documentation
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100