mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-12 19:02:12 +00:00
This patch enables offstrategy compaction for all classic streaming based node ops. We can use this method because tables are streamed one after another. As long as there is still streamed data for a given table, we update the automatic trigger timer. When all the streaming has finished, the trigger timer will timeout and fire the offstrategy compaction for the given table. I checked with this patch, rebuild is 3X faster. There was no compaction in the middle of the streaming. The streamed sstables are compacted together after streaming is done. Time Before: INFO 2022-11-25 10:06:08,213 [shard 0] range_streamer - Rebuild succeeded, took 67 seconds, nr_ranges_remaining=0 Time After: INFO 2022-11-25 09:42:50,943 [shard 0] range_streamer - Rebuild succeeded, took 23 seconds, nr_ranges_remaining=0 Compaciton Before: 88 sstables were written -> 88 sstables were added into main set Compaction After: 88 sstables written -> after offstretegy 2 sstables were added into main seet Closes #11848