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: v12.2.13~154^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=42957a7924cef8b45f3232985b7ea1c006283d3a;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 (cherry picked from commit 50aab73a7e97fafa2c57b0cb04c0f0a79eb163a1) --- diff --git a/doc/rados/configuration/osd-config-ref.rst b/doc/rados/configuration/osd-config-ref.rst index 1f6eabb64e2..e9794d4e3f6 100644 --- a/doc/rados/configuration/osd-config-ref.rst +++ b/doc/rados/configuration/osd-config-ref.rst @@ -410,8 +410,7 @@ recovery operations to ensure optimal performance during recovery. ``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`` @@ -939,6 +938,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 082955b8d8e..74bb3934299 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 ae569f92a91..05dbd436bba 100644 --- a/doc/rados/operations/pools.rst +++ b/doc/rados/operations/pools.rst @@ -603,6 +603,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 =============== @@ -757,6 +778,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 3dadd76bb6f..94a70c6c62a 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -1652,11 +1652,12 @@ std::vector