mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
mgr/module: adjust osd_weight min step to .005
That should be ~1 PG or less on average; no real sense it taking a step smaller than that! Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
70b503495a
commit
297e2d65ab
@ -705,7 +705,7 @@ class Module(MgrModule):
|
||||
next_ws[osd] = new_weight
|
||||
if ow < 1.0:
|
||||
new_ow = min(1.0, max(step + (1.0 - step) * ow,
|
||||
ow + .002))
|
||||
ow + .005))
|
||||
self.log.debug('Reweight osd.%d reweight %f -> %f',
|
||||
osd, ow, new_ow)
|
||||
next_ow[osd] = new_ow
|
||||
|
Loading…
Reference in New Issue
Block a user