Tencent / Tendis

Tendis is a high-performance distributed storage system fully compatible with the Redis protocol.
http://tendis.cn
Other
2.87k stars 317 forks source link

want to make the rocksdb keep_log_file_num configurable #219

Closed mozz85 closed 1 year ago

mozz85 commented 1 year ago

Description

the default keep_log_file_num is 1000 and the most of these old log files are useless to me. It will be helpful to make it configurable in the tendis configure file.

my fix up

I just added "options.keep_log_file_num = 1;" in rocksdb::Options RocksKVStore::options(). but it's very inconvenient to change the value.