rocksdb SST层包括L0吗?

SST 又分为多层(默认至多 6 层) 这里的6层包括L0吗?

我个人理解这里的6层不包含L0,L0到L1的compaction条件是文件数达到最大值,不是容量。
TiKV 配置文件描述 | PingCAP Docs
在配置文件里面,这个层数最大是 7,这里的7应该包括L0。

1 个赞

是的

刚捋了一下 rocksdb是 num-levels层(包括L0), SST层除L0 之外的其他层 我这么理解对吗?

嗯,我是这么理解的

感谢老师答疑解惑:+1::handshake:

引用 num_levels – It is safe for num_levels to be bigger than expected number of levels in the database. Some higher levels may be empty, but this will not impact performance in any way. Only change this option if you expect your number of levels will be greater than 7 (default).