From: Sage Weil Date: Sun, 5 Nov 2017 16:53:17 +0000 (-0600) Subject: osd: move peering events into primary work queue X-Git-Tag: v13.0.2~840^2~10 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fffcc8a50e684c9b67643ec002869a8b7024b01c;p=ceph.git osd: move peering events into primary work queue For the moment we leave the old infratructure in place too; that will be cleaned up next. Two key differences: - each pg event is processed in isolation, which means MOSDPGNotify etc messages won't be batched. This will mean more messages for small clusters and no change for large clusters. - the map processing for PGs will be done in completion by a single event. There is now a wait in handle_osd_map to ensure that all PGs are processing maps that overlap with the map cache. Signed-off-by: Sage Weil --- diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index 3476122f431f8..6a89f82a290e1 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -874,6 +874,7 @@ OPTION(mon_rocksdb_options, OPT_STR) */ OPTION(osd_client_op_priority, OPT_U32) OPTION(osd_recovery_op_priority, OPT_U32) +OPTION(osd_peering_op_priority, OPT_U32) OPTION(osd_snap_trim_priority, OPT_U32) OPTION(osd_snap_trim_cost, OPT_U32) // set default cost equal to 1MB io diff --git a/src/common/options.cc b/src/common/options.cc index 0064af6652312..1db1763e3ae17 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -3000,6 +3000,10 @@ std::vector