]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: exercise metadata replication in workloads
authorPatrick Donnelly <pdonnell@redhat.com>
Wed, 23 Jun 2021 16:29:08 +0000 (09:29 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Sun, 12 Jun 2022 00:17:41 +0000 (20:17 -0400)
Fixes: https://tracker.ceph.com/issues/51332
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
qa/suites/fs/workload/ranks/3.yaml [deleted file]
qa/suites/fs/workload/ranks/5.yaml [deleted file]
qa/suites/fs/workload/ranks/multi/% [new file with mode: 0644]
qa/suites/fs/workload/ranks/multi/n/3.yaml [new file with mode: 0644]
qa/suites/fs/workload/ranks/multi/n/5.yaml [new file with mode: 0644]
qa/suites/fs/workload/ranks/multi/replication/always.yaml [new file with mode: 0644]
qa/suites/fs/workload/ranks/multi/replication/default.yaml [new file with mode: 0644]

diff --git a/qa/suites/fs/workload/ranks/3.yaml b/qa/suites/fs/workload/ranks/3.yaml
deleted file mode 100644 (file)
index 9ed043c..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-overrides:
-  ceph:
-    cephfs:
-      max_mds: 3
-  check-counter:
-    counters:
-      mds:
-        - mds.exported
-        - mds.imported
diff --git a/qa/suites/fs/workload/ranks/5.yaml b/qa/suites/fs/workload/ranks/5.yaml
deleted file mode 100644 (file)
index ed89cef..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-overrides:
-  ceph:
-    cephfs:
-      max_mds: 5
-  check-counter:
-    counters:
-      mds:
-        - mds.exported
-        - mds.imported
diff --git a/qa/suites/fs/workload/ranks/multi/% b/qa/suites/fs/workload/ranks/multi/%
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/qa/suites/fs/workload/ranks/multi/n/3.yaml b/qa/suites/fs/workload/ranks/multi/n/3.yaml
new file mode 100644 (file)
index 0000000..9ed043c
--- /dev/null
@@ -0,0 +1,9 @@
+overrides:
+  ceph:
+    cephfs:
+      max_mds: 3
+  check-counter:
+    counters:
+      mds:
+        - mds.exported
+        - mds.imported
diff --git a/qa/suites/fs/workload/ranks/multi/n/5.yaml b/qa/suites/fs/workload/ranks/multi/n/5.yaml
new file mode 100644 (file)
index 0000000..ed89cef
--- /dev/null
@@ -0,0 +1,9 @@
+overrides:
+  ceph:
+    cephfs:
+      max_mds: 5
+  check-counter:
+    counters:
+      mds:
+        - mds.exported
+        - mds.imported
diff --git a/qa/suites/fs/workload/ranks/multi/replication/always.yaml b/qa/suites/fs/workload/ranks/multi/replication/always.yaml
new file mode 100644 (file)
index 0000000..099ced6
--- /dev/null
@@ -0,0 +1,18 @@
+# To exercise lock/witness code paths more regularly, try to get all
+# directories replicated.
+overrides:
+  ceph:
+    conf:
+      mds:
+        mds_bal_replicate_threshold: 1
+# Note: dir_update is only sent by an MDS trying to replicate a dir.
+# dir_update is always sent for root, so the count should be more than 2
+  check-counter:
+    counters:
+      mds:
+        -
+          name: mds_cache.dir_update
+          min: 3
+        -
+          name: mds_cache.dir_update_receipt
+          min: 3
diff --git a/qa/suites/fs/workload/ranks/multi/replication/default.yaml b/qa/suites/fs/workload/ranks/multi/replication/default.yaml
new file mode 100644 (file)
index 0000000..2729779
--- /dev/null
@@ -0,0 +1 @@
+# Use default (8000)