]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/: Override mClock profile to 'high_recovery_ops' for qa tests 49973/head
authorSridhar Seshasayee <sseshasa@redhat.com>
Sat, 29 Apr 2023 04:58:04 +0000 (10:28 +0530)
committerSridhar Seshasayee <sseshasa@redhat.com>
Mon, 8 May 2023 09:16:25 +0000 (14:46 +0530)
The qa tests are not client I/O centric and mostly focus on triggering
recovery/backfills and monitor them for completion within a finite amount
of time. The same holds true for scrub operations.

Therefore, an mClock profile that optimizes background operations is a
better fit for qa related tests. The osd_mclock_profile is therefore
globally overriden to 'high_recovery_ops' profile for the Rados suite as
it fits the requirement.

Also, many standalone tests expect recovery and scrub operations to
complete within a finite time. To ensure this, the osd_mclock_profile
options is set to 'high_recovery_ops' as part of the run_osd() function
in ceph-helpers.sh.

A subset of standalone tests explicitly used 'high_recovery_ops' profile.
Since the profile is now set as part of run_osd(), the earlier overrides
are redundant and therefore removed from the tests.

Signed-off-by: Sridhar Seshasayee <sseshasa@redhat.com>
qa/config/rados.yaml
qa/standalone/ceph-helpers.sh
qa/standalone/erasure-code/test-erasure-eio.sh
qa/standalone/osd-backfill/osd-backfill-space.sh
qa/standalone/osd-backfill/osd-backfill-stats.sh
qa/standalone/osd/osd-recovery-stats.sh
qa/standalone/osd/osd-rep-recov-eio.sh
qa/standalone/osd/repeer-on-acting-back.sh

index 1785089fb4b2e49b118b26cc6a440607b2049083..710847f594b8f2993d7e717588f505e3cde01055 100644 (file)
@@ -8,5 +8,6 @@ overrides:
         osd debug verify cached snaps: true
         bluestore zero block detection: true
         osd mclock override recovery settings: true
+        osd mclock profile: high_recovery_ops
       mon:
         mon scrub interval: 300
index 66a9dca54e041abcf69ec8f0e46b44538fd0657a..9f93be9233739272856946f3ef0cc8931849bc62 100755 (executable)
@@ -654,6 +654,7 @@ function run_osd() {
     ceph_args+=" --osd-max-object-name-len=460"
     ceph_args+=" --osd-max-object-namespace-len=64"
     ceph_args+=" --enable-experimental-unrecoverable-data-corrupting-features=*"
+    ceph_args+=" --osd-mclock-profile=high_recovery_ops"
     ceph_args+=" "
     ceph_args+="$@"
     mkdir -p $osd_data
@@ -864,6 +865,7 @@ function activate_osd() {
     ceph_args+=" --osd-max-object-name-len=460"
     ceph_args+=" --osd-max-object-namespace-len=64"
     ceph_args+=" --enable-experimental-unrecoverable-data-corrupting-features=*"
+    ceph_args+=" --osd-mclock-profile=high_recovery_ops"
     ceph_args+=" "
     ceph_args+="$@"
     mkdir -p $osd_data
index 85c2763307f5b50243baebac04925d45045f0aec..42c538eb9184e129f2eac63ea0a462cd3f60ef8a 100755 (executable)
@@ -26,7 +26,6 @@ function run() {
     export CEPH_ARGS
     CEPH_ARGS+="--fsid=$(uuidgen) --auth-supported=none "
     CEPH_ARGS+="--mon-host=$CEPH_MON "
-    CEPH_ARGS+="--osd-mclock-profile=high_recovery_ops "
     CEPH_ARGS+="--osd_mclock_override_recovery_settings=true "
 
     local funcs=${@:-$(set | sed -n -e 's/^\(TEST_[0-9a-z_]*\) .*/\1/p')}
index 671bcdee138fd22118e8f1b0bb97b4d32833d585..6a5c69412f45cece0986b2152d0ad08f87df9a20 100755 (executable)
@@ -28,7 +28,6 @@ function run() {
     CEPH_ARGS+="--osd_min_pg_log_entries=5 --osd_max_pg_log_entries=10 "
     CEPH_ARGS+="--fake_statfs_for_testing=3686400 "
     CEPH_ARGS+="--osd_max_backfills=10 "
-    CEPH_ARGS+="--osd_mclock_profile=high_recovery_ops "
     CEPH_ARGS+="--osd_mclock_override_recovery_settings=true "
     export objects=600
     export poolprefix=test
index f2e5f83dabff64dc0374b07b8794b04f4da97bff..21b42a4ce75b7fa83bcb5a0ade2857298cbaac1c 100755 (executable)
@@ -27,8 +27,6 @@ function run() {
     CEPH_ARGS+="--fsid=$(uuidgen) --auth-supported=none "
     CEPH_ARGS+="--mon-host=$CEPH_MON "
     CEPH_ARGS+="--osd_min_pg_log_entries=5 --osd_max_pg_log_entries=10 "
-    # Use "high_recovery_ops" profile if mclock_scheduler is enabled.
-    CEPH_ARGS+="--osd-mclock-profile=high_recovery_ops "
     export margin=10
     export objects=200
     export poolname=test
index 42347510f6aa2b3e344816cfa3308628d2b6c60f..ad6f810d77a3efe493bb7dcff563e93bff7d88fc 100755 (executable)
@@ -28,8 +28,6 @@ function run() {
     CEPH_ARGS+="--mon-host=$CEPH_MON "
     # so we will not force auth_log_shard to be acting_primary
     CEPH_ARGS+="--osd_force_auth_primary_missing_objects=1000000 "
-    # Use "high_recovery_ops" profile if mclock_scheduler is enabled.
-    CEPH_ARGS+="--osd-mclock-profile=high_recovery_ops "
     export margin=10
     export objects=200
     export poolname=test
index 6f871ef8fa8c8c303ec19a89837409dbbb57405b..c088f80a9d8bed0057507739a7844eb8c04e4daf 100755 (executable)
@@ -29,7 +29,6 @@ function run() {
     export CEPH_ARGS
     CEPH_ARGS+="--fsid=$(uuidgen) --auth-supported=none "
     CEPH_ARGS+="--mon-host=$CEPH_MON "
-    CEPH_ARGS+="--osd-mclock-profile=high_recovery_ops "
 
 
     local funcs=${@:-$(set | sed -n -e 's/^\(TEST_[0-9a-z_]*\) .*/\1/p')}
index 2a7e8a0ce4c8efb87b868a879e18b27d58eb2c26..af406ef926b28d5037f3763e843f38c7e4bbcb80 100755 (executable)
@@ -34,7 +34,6 @@ function run() {
     CEPH_ARGS+="--osd_force_auth_primary_missing_objects=1000000 "
     # use small pg_log settings, so we always do backfill instead of recovery
     CEPH_ARGS+="--osd_min_pg_log_entries=$loglen --osd_max_pg_log_entries=$loglen --osd_pg_log_trim_min=$trim "
-    CEPH_ARGS+="--osd_mclock_profile=high_recovery_ops "
 
     local funcs=${@:-$(set | sed -n -e 's/^\(TEST_[0-9a-z_]*\) .*/\1/p')}
     for func in $funcs ; do