From 9e8601ddf546729930b53a69c6068383a3b93bca Mon Sep 17 00:00:00 2001 From: myoungwon oh Date: Mon, 8 Feb 2021 11:57:14 +0900 Subject: [PATCH] qa: add dedup-io-mixed test Signed-off-by: Myoungwon Oh --- .../thrash/workloads/dedup-io-mixed.yaml | 20 +++++++++++++++++++ qa/tasks/rados.py | 4 ++++ 2 files changed, 24 insertions(+) create mode 100644 qa/suites/rados/thrash/workloads/dedup-io-mixed.yaml 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 index 00000000000..24a41c31ffb --- /dev/null +++ b/qa/suites/rados/thrash/workloads/dedup-io-mixed.yaml @@ -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 diff --git a/qa/tasks/rados.py b/qa/tasks/rados.py index 349f46efcc9..473b0b6c2bb 100644 --- a/qa/tasks/rados.py +++ b/qa/tasks/rados.py @@ -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): -- 2.39.5