]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: Add 'read_ratio' pool parameterr
authorJosh Salomon <41079547+JoshSalomon@users.noreply.github.com>
Tue, 26 Dec 2023 08:41:18 +0000 (10:41 +0200)
committerLaura Flores <lflores@ibm.com>
Tue, 30 Jan 2024 19:24:43 +0000 (19:24 +0000)
commit8d7eb9f7e07bc91d0e887ffa3baefafa71bccd10
tree8207a0974080865b8511f14d4cd2c9ec8f744134
parentfaef8d54d89510bb9870d66374fa66b342eddd4d
osd: Add 'read_ratio' pool parameterr

This parameter is used for better read balancing with non identical
devices.
- This parameter is controlled using the commands 'ceph osd pool set/get'
- This parameter is applicable only for replicated pools
- Valid values are integers in the range [0..100] and represent the
  percentage of read IOs out of all IOs in the pool
  - Value of 0 unsets this parameter and the value will be the default
    value (this is the generic behavior of the command 'ceph osd pool
    set'
  - default value can be set by config parameter
    `osd_pool_default_read_ratio`

Signed-off-by: Josh Salomon <41079547+JoshSalomon@users.noreply.github.com>
src/common/options/global.yaml.in
src/mon/MonCommands.h
src/mon/OSDMonitor.cc
src/osd/osd_types.cc
src/osd/osd_types.h