diff options
author | Samuel Just <sjust@redhat.com> | 2020-03-13 23:58:44 +0100 |
---|---|---|
committer | xie xingguo <xie.xingguo@zte.com.cn> | 2020-03-19 01:15:02 +0100 |
commit | ceb8e457e7c3bd1ce1c14833c091f517a024d6d5 (patch) | |
tree | 98053ab8b785f50b0c9884c0ec23cf1cff3cb540 /qa/tasks/radosbench.py | |
parent | PrimaryLogPG: add assert that we aren't trimming past last_update_ondisk (diff) | |
download | ceph-ceb8e457e7c3bd1ce1c14833c091f517a024d6d5.tar.xz ceph-ceb8e457e7c3bd1ce1c14833c091f517a024d6d5.zip |
suites/rados/thrash: add rados-high-concurrency
Signed-off-by: Samuel Just <sjust@redhat.com>
Diffstat (limited to 'qa/tasks/radosbench.py')
-rw-r--r-- | qa/tasks/radosbench.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qa/tasks/radosbench.py b/qa/tasks/radosbench.py index f840e646dd6..90b21a5d88b 100644 --- a/qa/tasks/radosbench.py +++ b/qa/tasks/radosbench.py @@ -23,6 +23,7 @@ def task(ctx, config): time: <seconds to run> pool: <pool to use> size: write size to use + concurrency: max number of outstanding writes (16) objectsize: object size to use unique_pool: use a unique pool, defaults to False ec_pool: create an ec pool, defaults to False @@ -83,6 +84,7 @@ def task(ctx, config): pool = manager.create_pool_with_unique_name(erasure_code_profile_name=profile_name) size = config.get('size', 65536) + concurrency = config.get('concurrency', 16) osize = config.get('objectsize', 65536) sizeargs = ['-b', str(size)] if osize != 0 and osize != size: @@ -102,6 +104,7 @@ def task(ctx, config): '--no-log-to-stderr', '--name', role] + sizeargs + + ['-t', str(concurrency)] + ['-p' , pool, 'bench', str(60), "write", "--no-cleanup" ]).format(tdir=testdir), |