]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/suites/rados/thrash: add redirect test cases
authormyoungwon oh <omwmw@sk.com>
Tue, 16 May 2017 18:43:51 +0000 (03:43 +0900)
committermyoungwon oh <omwmw@sk.com>
Tue, 16 May 2017 20:47:12 +0000 (05:47 +0900)
Signed-off-by: Myoungwon Oh omwmw@sk.com
qa/suites/rados/thrash/workloads/redirect.yaml [new file with mode: 0644]
qa/suites/rados/thrash/workloads/redirect_set_object.yaml [new file with mode: 0644]
qa/tasks/rados.py

diff --git a/qa/suites/rados/thrash/workloads/redirect.yaml b/qa/suites/rados/thrash/workloads/redirect.yaml
new file mode 100644 (file)
index 0000000..50bd812
--- /dev/null
@@ -0,0 +1,11 @@
+tasks:
+- rados:
+    clients: [client.0]
+    ops: 4000
+    objects: 500
+    set_redirect: true
+    op_weights:
+      read: 100
+      write: 100
+      delete: 50
+      copy_from: 50
diff --git a/qa/suites/rados/thrash/workloads/redirect_set_object.yaml b/qa/suites/rados/thrash/workloads/redirect_set_object.yaml
new file mode 100644 (file)
index 0000000..74595e2
--- /dev/null
@@ -0,0 +1,9 @@
+tasks:
+- rados:
+    clients: [client.0]
+    ops: 4000
+    objects: 500
+    set_redirect: true
+    op_weights:
+      set_redirect: 100
+      copy_from: 100
index eceff90381c5674d7ba9e62af29129aeb1d46654..0732c0705ec2a8d42d3bfa388ffeee53ff3855d0 100644 (file)
@@ -143,6 +143,8 @@ def task(ctx, config):
             args.extend(['--ec-pool'])
     if config.get('write_fadvise_dontneed', False):
         args.extend(['--write-fadvise-dontneed'])
+    if config.get('set_redirect', False):
+        args.extend(['--set_redirect'])
     if config.get('pool_snaps', False):
         args.extend(['--pool-snaps'])
     args.extend([