mirror of
https://github.com/ceph/ceph
synced 2025-02-23 11:07:35 +00:00
Merge pull request #25746 from tchaikov/wip-pg-autoscale-mode
osd/OSDMap: set pg_autoscale_mode with setting from conf Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
commit
00865b89de
@ -3868,6 +3868,9 @@ int OSDMap::build_simple_optioned(CephContext *cct, epoch_t e, uuid_d &fsid,
|
||||
pools[pool].last_change = epoch;
|
||||
pools[pool].application_metadata.insert(
|
||||
{pg_pool_t::APPLICATION_NAME_RBD, {}});
|
||||
auto m = pg_pool_t::get_pg_autoscale_mode_by_name(
|
||||
cct->_conf.get_val<string>("osd_pool_default_pg_autoscale_mode"));
|
||||
pools[pool].pg_autoscale_mode = m >= 0 ? m : 0;
|
||||
pool_name[pool] = plname;
|
||||
name_pool[plname] = pool;
|
||||
}
|
||||
|
@ -25,7 +25,7 @@
|
||||
nearfull_ratio 0
|
||||
min_compat_client jewel
|
||||
|
||||
pool 1 'rbd' replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 192 pgp_num 192 last_change 0 flags hashpspool stripe_width 0 application rbd
|
||||
pool 1 'rbd' replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 192 pgp_num 192 autoscale_mode warn last_change 0 flags hashpspool stripe_width 0 application rbd
|
||||
|
||||
max_osd 3
|
||||
|
||||
@ -51,7 +51,7 @@
|
||||
nearfull_ratio 0
|
||||
min_compat_client jewel
|
||||
|
||||
pool 1 'rbd' replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 64 pgp_num 64 last_change 0 flags hashpspool stripe_width 0 application rbd
|
||||
pool 1 'rbd' replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 64 pgp_num 64 autoscale_mode warn last_change 0 flags hashpspool stripe_width 0 application rbd
|
||||
|
||||
max_osd 1
|
||||
|
||||
|
@ -84,7 +84,7 @@
|
||||
nearfull_ratio 0
|
||||
min_compat_client jewel
|
||||
|
||||
pool 1 'rbd' replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 192 pgp_num 192 last_change 0 flags hashpspool stripe_width 0 application rbd
|
||||
pool 1 'rbd' replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 192 pgp_num 192 autoscale_mode warn last_change 0 flags hashpspool stripe_width 0 application rbd
|
||||
|
||||
max_osd 3
|
||||
|
||||
@ -93,5 +93,5 @@
|
||||
osdmaptool: writing epoch 1 to myosdmap
|
||||
$ osdmaptool --print myosdmap | grep 'pool 1'
|
||||
osdmaptool: osdmap file 'myosdmap'
|
||||
pool 1 'rbd' replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 192 pgp_num 192 last_change 0 flags hashpspool stripe_width 0 application rbd
|
||||
pool 1 'rbd' replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 192 pgp_num 192 autoscale_mode warn last_change 0 flags hashpspool stripe_width 0 application rbd
|
||||
$ rm -f myosdmap
|
||||
|
@ -796,7 +796,7 @@
|
||||
nearfull_ratio 0
|
||||
min_compat_client jewel
|
||||
|
||||
pool 1 'rbd' replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 15296 pgp_num 15296 last_change 0 flags hashpspool stripe_width 0 application rbd
|
||||
pool 1 'rbd' replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 15296 pgp_num 15296 autoscale_mode warn last_change 0 flags hashpspool stripe_width 0 application rbd
|
||||
|
||||
max_osd 239
|
||||
|
||||
@ -806,5 +806,5 @@
|
||||
osdmaptool: writing epoch 1 to om
|
||||
$ osdmaptool --print om | grep 'pool 1'
|
||||
osdmaptool: osdmap file 'om'
|
||||
pool 1 'rbd' replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 15296 pgp_num 15296 last_change 0 flags hashpspool stripe_width 0 application rbd
|
||||
pool 1 'rbd' replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 15296 pgp_num 15296 autoscale_mode warn last_change 0 flags hashpspool stripe_width 0 application rbd
|
||||
$ rm -f om
|
||||
|
Loading…
Reference in New Issue
Block a user