From: David Zafman Date: Wed, 6 Feb 2019 01:05:18 +0000 (-0800) Subject: common, doc: Improve docs osd_recovery_priority, osd_recovery_op_priority and related X-Git-Tag: v13.2.6~85^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F26901%2Fhead;p=ceph.git common, doc: Improve docs osd_recovery_priority, osd_recovery_op_priority and related Add option desciptions for osd_recovery_priority and osd_recovery_op_priority Fixes: https://tracker.ceph.com/issues/23999 Signed-off-by: David Zafman (cherry picked from commit f7bec341da4bf9bcee5404ba588cc819fc14eb69) Conflicts: src/common/options.cc : Resolved for osd_max_backfills and osd_min_recovery_priority --- diff --git a/doc/rados/configuration/osd-config-ref.rst b/doc/rados/configuration/osd-config-ref.rst index 89ee57566d06..bcab82dd9c9a 100644 --- a/doc/rados/configuration/osd-config-ref.rst +++ b/doc/rados/configuration/osd-config-ref.rst @@ -399,8 +399,7 @@ Operations ``osd recovery op priority`` -:Description: The priority set for recovery operations. It is relative to - ``osd client op priority``. +:Description: The priority set for recovery operations, if not specified by the pool's ``recovery_op_priority``. :Type: 32-bit Integer :Default: ``3`` @@ -928,6 +927,16 @@ perform well in a degraded state. :Type: Float :Default: ``0.025`` + +``osd recovery priority`` + +:Description: The default priority set for recovery work queue. Not + related to a pool's ``recovery_priority``. + +:Type: 32-bit Integer +:Default: ``5`` + + Tiering ======= diff --git a/doc/rados/configuration/pool-pg-config-ref.rst b/doc/rados/configuration/pool-pg-config-ref.rst index 2b438313598a..f49bac40bad8 100644 --- a/doc/rados/configuration/pool-pg-config-ref.rst +++ b/doc/rados/configuration/pool-pg-config-ref.rst @@ -264,6 +264,20 @@ Ceph configuration file. :Type: Float :Default: ``2`` +``osd recovery priority`` + +:Description: Priority of recovery in the work queue. + +:Type: Integer +:Default: ``5`` + +``osd recovery op priority`` + +:Description: Default priority used for recovery operations if pool doesn't override. + +:Type: Integer +:Default: ``3`` + .. _pool: ../../operations/pools .. _Monitoring OSDs and PGs: ../../operations/monitoring-osd-pg#peering .. _Weighting Bucket Items: ../../operations/crush-map#weightingbucketitems diff --git a/doc/rados/operations/pools.rst b/doc/rados/operations/pools.rst index 80fafabc0aff..838221d1f010 100644 --- a/doc/rados/operations/pools.rst +++ b/doc/rados/operations/pools.rst @@ -604,6 +604,27 @@ You may set values for the following keys: :Default: ``0`` +.. _recovery_priority: + +``recovery_priority`` + +:Description: When a value is set it will boost the computed reservation priority + by this amount. This value should be less than 30. + +:Type: Integer +:Default: ``0`` + + +.. _recovery_op_priority: + +``recovery_op_priority`` + +:Description: Specify the recovery operation priority for this pool instead of ``osd_recovery_op_priority``. + +:Type: Integer +:Default: ``0`` + + Get Pool Values =============== @@ -758,6 +779,20 @@ You may get values for the following keys: :Type: Boolean +``recovery_priority`` + +:Description: see recovery_priority_ + +:Type: Integer + + +``recovery_op_priority`` + +:Description: see recovery_op_priority_ + +:Type: Integer + + Set the Number of Object Replicas ================================= diff --git a/src/common/options.cc b/src/common/options.cc index cb6b17ad1ef6..cdb1c1e702d3 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -1958,11 +1958,12 @@ std::vector