From 1414ca9291ada785c9eafc1bca694fc9b6e9bc30 Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Tue, 24 Mar 2015 20:14:45 +0100 Subject: [PATCH] erasure-code: ec-cache-agent in firefly-x/stress-split-erasure-code Immediately after the Firefly installation, create an erasure code pool behind a replicated cache pool. Run deep-scrub on all OSD while a rados task runs. After upgrading half of the cluster (MON and OSD), run a rados task again also deep-scrub in parallel. http://tracker.ceph.com/issues/11054 Fixes: #11054 Signed-off-by: Loic Dachary --- .../2-workload/ec-cache-create.yaml | 33 +++++++++++++++++++ .../6-workload/ec-cache-agent.yaml | 16 +++++++++ 2 files changed, 49 insertions(+) create mode 100644 suites/upgrade/firefly-x/stress-split-erasure-code/2-workload/ec-cache-create.yaml create mode 100644 suites/upgrade/firefly-x/stress-split-erasure-code/6-workload/ec-cache-agent.yaml diff --git a/suites/upgrade/firefly-x/stress-split-erasure-code/2-workload/ec-cache-create.yaml b/suites/upgrade/firefly-x/stress-split-erasure-code/2-workload/ec-cache-create.yaml new file mode 100644 index 0000000000000..a593c06117c82 --- /dev/null +++ b/suites/upgrade/firefly-x/stress-split-erasure-code/2-workload/ec-cache-create.yaml @@ -0,0 +1,33 @@ +overrides: + ceph: + crush_tunables: firefly + log-whitelist: + - must scrub before tier agent can activate +tasks: +- exec: + client.0: + - ceph osd erasure-code-profile set teuthologyprofile ruleset-failure-domain=osd k=2 m=1 + - ceph osd pool create ecbase 4 4 erasure teuthologyprofile + - ceph osd pool create eccache 4 + - ceph osd tier add ecbase eccache + - ceph osd tier cache-mode eccache writeback + - ceph osd tier set-overlay ecbase eccache + - ceph osd pool set eccache hit_set_type bloom + - ceph osd pool set eccache hit_set_count 8 + - ceph osd pool set eccache hit_set_period 60 + - ceph osd pool set eccache target_max_objects 250 +- exec: + client.0: + - ceph osd deep-scrub '*' +- sequential: + - rados: + clients: [client.0] + pools: [ecbase] + ops: 4000 + objects: 500 + op_weights: + read: 100 + write: 100 + delete: 50 + copy_from: 50 +- print: "**** done rados ec-cache-agent (part 1)" diff --git a/suites/upgrade/firefly-x/stress-split-erasure-code/6-workload/ec-cache-agent.yaml b/suites/upgrade/firefly-x/stress-split-erasure-code/6-workload/ec-cache-agent.yaml new file mode 100644 index 0000000000000..f7d9377718e3a --- /dev/null +++ b/suites/upgrade/firefly-x/stress-split-erasure-code/6-workload/ec-cache-agent.yaml @@ -0,0 +1,16 @@ +tasks: +- exec: + client.0: + - ceph osd deep-scrub '*' +- sequential: + - rados: + clients: [client.0] + pools: [ecbase] + ops: 4000 + objects: 500 + op_weights: + read: 100 + write: 100 + delete: 50 + copy_from: 50 +- print: "**** done rados ec-cache-agent (part 2)" -- 2.39.5