]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd: support duration controllable continuous burst
authorWencong Wan <wanwc@chinatelecom.cn>
Tue, 19 May 2020 18:23:01 +0000 (02:23 +0800)
committerJason Dillaman <dillaman@redhat.com>
Fri, 29 May 2020 19:44:33 +0000 (15:44 -0400)
commit86b082bd947799f6d4dbf0f88f1e64d993d5a488
tree73eb79804c4cf85aa78d9be479978c685f39b6f3
parentdd541124ef973d73c510e5ec761d52eb0fcf9739
librbd: support duration controllable continuous burst

Modify the design of token bucket to save more tokens than burst value,
so as to support continuous burst. The desired burst duration can be
controlled by rbd_qos_XYZ_burst_seconds.

Fixes: https://tracker.ceph.com/issues/45313
Signed-off-by: wencong wan <wanwc@chinatelecom.cn>
12 files changed:
doc/rbd/rbd-config-ref.rst
src/common/Throttle.cc
src/common/Throttle.h
src/common/options.cc
src/librbd/ImageCtx.cc
src/librbd/io/ImageDispatcher.cc
src/librbd/io/ImageDispatcher.h
src/librbd/io/ImageDispatcherInterface.h
src/librbd/io/QosImageDispatch.cc
src/librbd/io/QosImageDispatch.h
src/test/librbd/io/test_mock_QosImageDispatch.cc
src/test/librbd/mock/io/MockImageDispatcher.h