compact
compact store-namemax-time
Compacts the store files for the specified store. Compaction is available for stores of type
file
.
Since compaction can be a lengthy operation and it blocks other operations, max-time specifies a time limit (in seconds) for the operation. Note that max-time must be a number greater than zero.
For stores of type
file
:
- If truncation is not enabled for the store file, the
compact
command does not reduce the file size. Enable truncation using thefile_truncate
parameter in the stores.conf file. Seestores.conf
for more information. - We recommend compacting the store files only when the
Used Space
usage is 30% or less (seeshow store
).