From: Sage Weil Date: Wed, 19 Sep 2018 22:04:38 +0000 (-0500) Subject: mgr/DaemonServer: add option to bypass careful throttling for thrasher X-Git-Tag: v14.1.0~1136^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=70ec5bda233dae482aae1b7453990f2c01872651;p=ceph.git mgr/DaemonServer: add option to bypass careful throttling for thrasher Signed-off-by: Sage Weil --- diff --git a/qa/tasks/thrashosds.py b/qa/tasks/thrashosds.py index 7af32f0ff952f..4f8ed5b608c7a 100644 --- a/qa/tasks/thrashosds.py +++ b/qa/tasks/thrashosds.py @@ -127,6 +127,8 @@ def task(ctx, config): chance_thrash_pg_upmap: 1.0 chance_thrash_pg_upmap_items: 1.0 + aggressive_pg_num_changes: (true) whether we should bypass the careful throttling of pg_num and pgp_num changes in mgr's adjust_pgs() controller + example: tasks: @@ -153,6 +155,7 @@ def task(ctx, config): config['noscrub_toggle_delay'] = config.get('noscrub_toggle_delay', 2.0) # add default value for random_eio config['random_eio'] = config.get('random_eio', 0.0) + aggro = config.get('aggressive_pg_num_changes', True) log.info("config is {config}".format(config=str(config))) @@ -190,6 +193,12 @@ def task(ctx, config): if config.get(f): cluster_manager.config[f] = config.get(f) + if aggro: + cluster_manager.raw_cluster_cmd( + 'config', 'set', 'mgr', + 'mgr_debug_aggressive_pg_num_changes', + 'true') + log.info('Beginning thrashosds...') thrash_proc = ceph_manager.Thrasher( cluster_manager, @@ -204,3 +213,7 @@ def task(ctx, config): cluster_manager.wait_for_all_osds_up() cluster_manager.flush_all_pg_stats() cluster_manager.wait_for_recovery(config.get('timeout', 360)) + if aggro: + cluster_manager.raw_cluster_cmd( + 'config', 'rm', 'mgr', + 'mgr_debug_aggressive_pg_num_changes') diff --git a/src/common/options.cc b/src/common/options.cc index d7d892f802df2..b8643b8bcba87 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -4927,6 +4927,11 @@ std::vector