compact
compact store-name max-time
Compacts the store files for the specified store. Compaction is available for stores of type file, but is not available for stores of type as or ftl.
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 the file_truncate parameter in the stores.conf file. See stores.conf for more information.
- We recommend compacting the store files only when the Used Space usage is 30% or less (see show store).
Copyright © 2021. Cloud Software Group, Inc. All Rights Reserved.