tikv/tikv

Enable rate-bytes-per-sec option by default

Open

#6,484 创建于 2020年1月17日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)Rust (15,922 star) (2,189 fork)batch import
component/rocksdbcomponent/titandifficulty/mediumhelp wantedsig/engine

描述

Enabling rate-bytes-per-sec would keep rocksdb background compaction steadily runs, smoothing both IO and CPU usage. However few of our users are using the option. Since ansible runs fio test by default, we can use the result to set an initial default value for rate-bytes-per-sec, if user didn't set it.

To be more specific, we can run fio write only with threads = default max-background-jobs, and use the throughput as upper bound. Then we can maybe set rate-bytes-per-sec to 90% of the upper bound. Other suggestions are welcome.

Currently only kvdb respect rate-bytes-per-sec. We should also make raftdb respect it too.

Task breakdown:

  • Make raftdb respect rate-bytes-per-sec
  • Update ansible to set default value for rate-bytes-per-sec
  • benchmark to show what would be a good default rate-bytes-per-sec

贡献者指南

Enable rate-bytes-per-sec option by default · tikv/tikv#6484 | Good First Issue