]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/OSDMonitor: prepare_new_pool() starts out with 1 pg 40921/head
authorKamoltat <ksirivad@redhat.com>
Mon, 19 Apr 2021 19:29:30 +0000 (19:29 +0000)
committerKamoltat <ksirivad@redhat.com>
Fri, 23 Apr 2021 14:39:42 +0000 (14:39 +0000)
commit2bdc220dfb66a4743c2c1d451d03df5d7aa990cc
tree501c42dedbb0223b00523ae347e20ab33cf6f9a7
parent06d18bc36a665ee25611181d6c4b9fe574a67760
mon/OSDMonitor: prepare_new_pool() starts out with 1 pg

Starts a new pool with 1 pg if the autoscale mode is `on`.
If user didn't explicitly specify autoscale mode to be `on`,
we look at the default_autoscale_mode value that is set globally,
if that is `on` then we also start new pool with 1 pg. Else,
just use the default pg value.

Updated `common/options/global.yaml.in` to document the change.

Fixes: https://tracker.ceph.com/issues/49364
Signed-off-by: Kamoltat <ksirivad@redhat.com>
src/common/options/global.yaml.in
src/mon/OSDMonitor.cc