]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: add dedup-io-mixed test
authormyoungwon oh <ohmyoungwon@gmail.com>
Mon, 8 Feb 2021 02:57:14 +0000 (11:57 +0900)
committermyoungwon oh <ohmyoungwon@gmail.com>
Mon, 29 Mar 2021 08:09:49 +0000 (17:09 +0900)
Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
qa/suites/rados/thrash/workloads/dedup-io-mixed.yaml [new file with mode: 0644]
qa/tasks/rados.py

diff --git a/qa/suites/rados/thrash/workloads/dedup-io-mixed.yaml b/qa/suites/rados/thrash/workloads/dedup-io-mixed.yaml
new file mode 100644 (file)
index 0000000..24a41c3
--- /dev/null
@@ -0,0 +1,20 @@
+tasks:
+- exec:
+    client.0:
+      - sudo ceph osd pool create low_tier 4
+- rados:
+    clients: [client.0]
+    low_tier_pool: 'low_tier'
+    ops: 1500
+    objects: 50
+    set_chunk: true
+    enable_dedup: true
+    dedup_chunk_size: '131072'
+    dedup_chunk_algo: 'fastcdc'
+    op_weights:
+      read: 100
+      write: 50
+      set_chunk: 30
+      tier_promote: 10
+      tier_flush: 5
+      tier_evict: 10
index 349f46efcc9501019f494f0c0c494f5a35b2818e..473b0b6c2bb0b93dc640fb6ccb80b6016135c8ca 100644 (file)
@@ -152,6 +152,10 @@ def task(ctx, config):
         args.extend(['--enable_dedup'])
     if config.get('low_tier_pool', None):
         args.extend(['--low_tier_pool', config.get('low_tier_pool', None)])
+    if config.get('dedup_chunk_size', False):
+        args.extend(['--dedup_chunk_size'])
+    if config.get('dedup_chunk_algo', False):
+        args.extend(['--dedup_chunk_algo'])
     if config.get('pool_snaps', False):
         args.extend(['--pool-snaps'])
     if config.get('balance_reads', False):