Skip to content

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

Open
@koitsu

Description

@koitsu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions