From 50aab73a7e97fafa2c57b0cb04c0f0a79eb163a1 Mon Sep 17 00:00:00 2001 From: David Zafman Date: Tue, 5 Feb 2019 17:05:18 -0800 Subject: [PATCH] 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 --- doc/rados/configuration/osd-config-ref.rst | 13 +++++-- .../configuration/pool-pg-config-ref.rst | 14 ++++++++ doc/rados/operations/pools.rst | 35 +++++++++++++++++++ src/common/options.cc | 10 +++--- 4 files changed, 66 insertions(+), 6 deletions(-) diff --git a/doc/rados/configuration/osd-config-ref.rst b/doc/rados/configuration/osd-config-ref.rst index 89ee57566d0..bcab82dd9c9 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 2b438313598..f49bac40bad 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 80fafabc0af..838221d1f01 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 cb6b17ad1ef..cdb1c1e702d 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -1958,11 +1958,12 @@ std::vector