Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ceph/ceph
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: cooboos/ceph
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 15 files changed
  • 1 contributor

Commits on Jul 26, 2019

  1. cephfs: implement cephfs qos base on tokenbucket algorighm.

    The basic idea is as follows:
    all clients use the same QoS setting, just as the implementation
    in this PR. Maybe there are multiple mount points, if we limit the
    total IO, the number of total mount points is also limited.
    So in my implementation, the total IO & BPS is not limited.
    
    Set QoS info as one of the dir's xattrs;
    All clients that can access the same dirs with the same QoS setting.
    Follow the Quota's config flow. when the MDS receives the QoS setting, it'll also broadcast the message to all clients.
    We can change the limit online.
    [support]:
    limit && burst config
    
    [usage]:
    setfattr -n ceph.qos.limit.iops -v 200 /mnt/cephfs/testdirs/
    setfattr -n ceph.qos.burst.read_bps -v 200 /mnt/cephfs/testdirs/
    getfattr -n ceph.qos.limit.iops /mnt/cephfs/testdirs/
    getfattr -n ceph.qos /mnt/cephfs/testdirs/
    
    [problems]:
    Because there is no queue in CephFS IO path, If the bps is lower than
    the request's block size, the whole Client will be blocked until it gets
    enough token.
    
    Signed-off-by: Wang Songbo <[email protected]>
    wangsongbo committed Jul 26, 2019
    Configuration menu
    Copy the full SHA
    b2fae29 View commit details
    Browse the repository at this point in the history
Loading