]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: Read balancer for OSDs with different sizes
authorJosh Salomon <41079547+JoshSalomon@users.noreply.github.com>
Tue, 16 Jan 2024 18:33:47 +0000 (20:33 +0200)
committerLaura Flores <lflores@ibm.com>
Tue, 30 Jan 2024 19:24:43 +0000 (19:24 +0000)
commit2953db8b58535605882dff2e1d4ff36e6075e122
treec5d05aebfd4bfbb935d2029732349ad86d7ad8a7
parent8d7eb9f7e07bc91d0e887ffa3baefafa71bccd10
osd: Read balancer for OSDs with different sizes

This commit adds calculation for desired primary distribution which
takes into account the osd size. This way smaller OSDs can take more
read operations (by adding more primaries) and the larger OSDs take less
primaries and the load of the cluater can increase. (This feature offset
a bit the weakest link in the chain effect under some conditions). In
order to calculate the loads correctly there is a need to know the
read/write ratio for the pool, and this commit assumes the read_ratio
parameter is available for the pool.

Signed-off-by: Josh Salomon <41079547+JoshSalomon@users.noreply.github.com>
src/osd/OSDMap.cc
src/osd/OSDMap.h