Reputation: 2166
The documentation for nodetool compact says:
This command starts the compaction process on tables that use the SizeTieredCompactionStrategy and DateTieredCompactionStrategy. You can specify a keyspace for compaction.
But what it does for DateTieredCompactionStrategy?
Side question: what is -s, --split-output
parameter? It is explained as: Use -s to not create a single big file
. I'm confused - isn't that the purpose of nodetool compact
?
Upvotes: 7
Views: 2269
Reputation: 7305
Nodetool compact with no flags will still create a big single file even with DTCS.
The -s, --split-output option is only there starting with c* 2.2 and beyond.
The news.txt states:
+ It is also possible to split output when doing a major compaction with
+ STCS - files will be split in sizes 50%, 25%, 12.5% etc of the total size.
+ This might be a bit better than old major compactions which created one big
+ file on disk.
On DTCS -s won't do anything special (will still create one large sstable)
Upvotes: 5