]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rados: add test for ec fast_read
authorSamuel Just <sjust@redhat.com>
Thu, 19 Nov 2015 22:44:45 +0000 (14:44 -0800)
committerSamuel Just <sjust@redhat.com>
Thu, 19 Nov 2015 22:44:45 +0000 (14:44 -0800)
Signed-off-by: Samuel Just <sjust@redhat.com>
suites/rados/thrash-erasure-code/workloads/ec-small-objects-fast-read.yaml [new file with mode: 0644]
tasks/rados.py

diff --git a/suites/rados/thrash-erasure-code/workloads/ec-small-objects-fast-read.yaml b/suites/rados/thrash-erasure-code/workloads/ec-small-objects-fast-read.yaml
new file mode 100644 (file)
index 0000000..e732ec6
--- /dev/null
@@ -0,0 +1,21 @@
+tasks:
+- rados:
+    clients: [client.0]
+    ops: 400000
+    max_seconds: 600
+    max_in_flight: 64
+    objects: 1024
+    size: 16384
+    ec_pool: true
+    fast_read: true
+    op_weights:
+      read: 100
+      write: 0
+      append: 100
+      delete: 50
+      snap_create: 50
+      snap_remove: 50
+      rollback: 50
+      copy_from: 50
+      setattr: 25
+      rmattr: 25
index 6bf8a533751543cc456bfba221330bd5579f5437..d518895225831427d15ca7b34bb8e64ff51aed9e 100644 (file)
@@ -222,6 +222,9 @@ def task(ctx, config):
                 else:
                     pool = ctx.manager.create_pool_with_unique_name(erasure_code_profile_name=profile_name)
                     created_pools.append(pool)
+                    if config.get('fast_read', False):
+                        ctx.manager.raw_cluster_cmd(
+                            'osd', 'pool', 'set', pool, 'fast_read', 'true')
 
                 (remote,) = ctx.cluster.only(role).remotes.iterkeys()
                 proc = remote.run(