From f8282df84d5ce760653ff1d3a9d8ea4e1391fba0 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 30 Jun 2014 13:34:21 -0700 Subject: [PATCH] rados/singleton/all/thrash_cache_writeback_forward_none: thrash cache pool drain Enable/disable cache pool against a running workload. Backport: firefly Signed-off-by: Sage Weil --- .../thrash_cache_writeback_forward_none.yaml | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 suites/rados/singleton/all/thrash_cache_writeback_forward_none.yaml diff --git a/suites/rados/singleton/all/thrash_cache_writeback_forward_none.yaml b/suites/rados/singleton/all/thrash_cache_writeback_forward_none.yaml new file mode 100644 index 0000000000000..0c971e034bc21 --- /dev/null +++ b/suites/rados/singleton/all/thrash_cache_writeback_forward_none.yaml @@ -0,0 +1,61 @@ +roles: +- - mon.a + - mds.0 + - osd.0 + - osd.1 + - osd.2 +- - osd.3 + - osd.4 + - osd.5 + - client.0 +tasks: +- install: +- ceph: + log-whitelist: + - wrongly marked me down + - slow request +- exec: + client.0: + - ceph osd pool create base 4 + - ceph osd pool create cache 4 + - ceph osd tier add base cache + - ceph osd tier cache-mode cache writeback + - ceph osd tier set-overlay base cache + - ceph osd pool set cache hit_set_type bloom + - ceph osd pool set cache hit_set_count 8 + - ceph osd pool set cache hit_set_period 60 + - ceph osd pool set cache target_max_objects 500 +- background_exec: + mon.a: + - while true + - do sleep 30 + - echo forward + - ceph osd tier cache-mode cache forward + - sleep 10 + - ceph osd pool set cache cache_target_full_ratio .001 + - echo cache-try-flush-evict-all + - rados -p cache cache-try-flush-evict-all + - sleep 5 + - echo cache-flush-evict-all + - rados -p cache cache-flush-evict-all + - sleep 5 + - echo remove overlay + - ceph osd tier remove-overlay base + - sleep 20 + - echo add writeback overlay + - ceph osd tier cache-mode cache writeback + - ceph osd pool set cache cache_target_full_ratio .8 + - ceph osd tier set-overlay base cache + - done +- rados: + clients: [client.0] + pools: [base] + max_seconds: 600 + ops: 400000 + objects: 10000 + size: 1024 + op_weights: + read: 100 + write: 100 + delete: 50 + copy_from: 50 -- 2.39.5