Compact a series file offline
This page documents an earlier version of InfluxDB. InfluxDB v2.6 is the latest stable version.
Use the Series File Compaction tool to compact your series file and reduce its size on disk. This is useful for series files that grow quickly, for example, when series are frequently created and deleted.
To compact a series file:
Run the following command, including your data directory and WAL directory:
# Syntax influx_inspect buildtsi -compact-series-file -datadir <data_dir> -waldir <wal_dir> # Example influx_inspect buildtsi -compact-series-file -datadir /data -waldir /wal
(InfluxDB Enterprise only) On each data node:
- Complete steps 1-3.
- Wait for the hinted handoff queue (HHQ) to write all missed data to the node.
- Continue to the next data node.
Was this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for InfluxDB and this documentation. To find support, use the following resources:
InfluxDB Cloud and InfluxDB Enterprise customers can contact InfluxData Support.