1.1 KiB
1.1 KiB
title | description | menu | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
Compact a series file offline | Use the `influx_inspect buildtsi -compact-series-file` command to compact your series file and reduce its size on disk. |
|
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:
-
Stop the
influxd
process. -
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
-
Restart the
influxd
process. -
(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.