]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
erasure-code: ec-cache-agent in firefly-x/stress-split-erasure-code
authorLoic Dachary <ldachary@redhat.com>
Tue, 24 Mar 2015 19:14:45 +0000 (20:14 +0100)
committerLoic Dachary <ldachary@redhat.com>
Fri, 3 Apr 2015 09:10:26 +0000 (11:10 +0200)
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 <loic@dachary.org>
suites/upgrade/firefly-x/stress-split-erasure-code/2-workload/ec-cache-create.yaml [new file with mode: 0644]
suites/upgrade/firefly-x/stress-split-erasure-code/6-workload/ec-cache-agent.yaml [new file with mode: 0644]

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 (file)
index 0000000..a593c06
--- /dev/null
@@ -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 (file)
index 0000000..f7d9377
--- /dev/null
@@ -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)"