这两天在测试Tikv的Compaction方式时,发现用GO-YCSB压测50GB的数据,使用FIFO的压缩策略会周期性的删除数据,如下图
通过查阅得知每当过了一个数据的生命周期,该压缩方式就会删除旧数据,这样导致我在和leveled与tiered做性能对比时它总是处于压倒性的优势,我想问一下该如何修改数据的生命周期呢,是修改TTL吗,我修改了TTL后总是没法启动集群,查询日志是下面错误
[“Recovering raft logs takes 195.957µs”] [thread_id=1]
[2024/06/28 20:31:37.100 +08:00] [ERROR] [engine_factory.rs:197] [“failed to create kv engine”] [err=“Engine(Status { code: IoError, sub_code: None, sev: NoError, state: "Not implemented: TTL is only supported in Block-Based Table format. " })”] [path=/tidb-data/tikv-20160] [thread_id=1]