From a4b32523949a75b9761122d22bbdc0514158ba2d Mon Sep 17 00:00:00 2001 From: Shraddha Agrawal Date: Tue, 16 Sep 2025 19:22:27 +0530 Subject: [PATCH] options/mon: disable availability tracking by default Signed-off-by: Shraddha Agrawal (cherry picked from commit ef7effaa33bd6b936d7433e668d36f80ed7bee65) --- PendingReleaseNotes | 4 ++-- qa/standalone/mon/availability.sh | 3 +++ src/common/options/mon.yaml.in | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/PendingReleaseNotes b/PendingReleaseNotes index a3b50e2984da9..4a1e66f3c7a01 100644 --- a/PendingReleaseNotes +++ b/PendingReleaseNotes @@ -162,8 +162,8 @@ unavailable if any PG in the pool is not in active state or if there are unfound objects. Otherwise the pool is considered available. The score is updated every one second by default. This interval can be changed using the new config option - ``pool_availability_update_interval.``. The feature is on by default. A new config option - ``enable_availability_tracking`` can be used to turn off the feature if required. + ``pool_availability_update_interval.``. The feature is off by default. A new config option + ``enable_availability_tracking`` can be used to turn on the feature if required. Another command is added to clear the availability status for a specific pool, ``ceph osd pool clear-availability-status ``. This feature is in tech preview. diff --git a/qa/standalone/mon/availability.sh b/qa/standalone/mon/availability.sh index 668dd3673356b..c12fa28fd1b1f 100755 --- a/qa/standalone/mon/availability.sh +++ b/qa/standalone/mon/availability.sh @@ -53,6 +53,9 @@ function TEST_availablity_score() { ceph -s ceph health | grep HEALTH_OK || return 1 + # enable feature + ceph config set mon enable_availability_tracking true + ceph osd pool availability-status AVAILABILITY_STATUS=$(ceph osd pool availability-status | grep -w "foo") SCORE=$(echo "$AVAILABILITY_STATUS" | awk '{print $7}') diff --git a/src/common/options/mon.yaml.in b/src/common/options/mon.yaml.in index 678ce5c2f7f2f..15922b4dbdb0a 100644 --- a/src/common/options/mon.yaml.in +++ b/src/common/options/mon.yaml.in @@ -1407,7 +1407,7 @@ options: level: advanced desc: Calculate and store availablity score for each pool in the cluster at regular intervals - default: true + default: false services : - mon flags: -- 2.39.5