mirror of
https://github.com/ceph/ceph
synced 2024-12-18 17:37:38 +00:00
Merge pull request #14872 from tchaikov/wip-19770
qa/erasure-code: override min_size to 2 Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
commit
6b34e18e34
@ -4,6 +4,7 @@ tasks:
|
||||
ops: 4000
|
||||
objects: 50
|
||||
ec_pool: true
|
||||
min_size: 2
|
||||
write_append_excl: false
|
||||
erasure_code_profile:
|
||||
name: isaprofile
|
||||
|
@ -29,6 +29,8 @@ def task(ctx, config):
|
||||
runs: <number of times to run> - the pool is remade between runs
|
||||
ec_pool: use an ec pool
|
||||
erasure_code_profile: profile to use with the erasure coded pool
|
||||
fast_read: enable ec_pool's fast_read
|
||||
min_size: set the min_size of created pool
|
||||
pool_snaps: use pool snapshots instead of selfmanaged snapshots
|
||||
write_fadvise_dontneed: write behavior like with LIBRADOS_OP_FLAG_FADVISE_DONTNEED.
|
||||
This mean data don't access in the near future.
|
||||
@ -233,6 +235,10 @@ def task(ctx, config):
|
||||
if config.get('fast_read', False):
|
||||
manager.raw_cluster_cmd(
|
||||
'osd', 'pool', 'set', pool, 'fast_read', 'true')
|
||||
min_size = config.get('min_size', None);
|
||||
if min_size is not None:
|
||||
manager.raw_cluster_cmd(
|
||||
'osd', 'pool', 'set', pool, 'min_size', str(min_size))
|
||||
|
||||
(remote,) = ctx.cluster.only(role).remotes.iterkeys()
|
||||
proc = remote.run(
|
||||
|
Loading…
Reference in New Issue
Block a user