mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-24 02:20:37 +00:00
Currently, when TWCS reshape finds a bucket containing more than 32 files, it will blindly resize that bucket to 32. That's very bad because it doesn't take into consideration that compaction efficiency depends on relative sizes of files being compacted together, meaning that a huge file can be compacted with a tiny one, producing lots of write amplification. To solve this problem, STCS reshape logic will now be reused in each time bucket. So only similar-sized files are compacted together and the time bucket will be considered reshaped once its size tiers are properly compacted, according to the reshape mode. Fixes #9938. Signed-off-by: Raphael S. Carvalho <raphaelsc@scylladb.com> Message-Id: <20220117205000.121614-1-raphaelsc@scylladb.com>