diff options
| author | Dan Lambright <dlambrig@redhat.com> | 2015-11-14 14:35:26 -0500 |
|---|---|---|
| committer | Dan Lambright <dlambrig@redhat.com> | 2015-11-19 08:48:33 -0800 |
| commit | e24fb2278bc0b0da88ec8c7b2d873c3e4a864d9d (patch) | |
| tree | ec77b9838af9b9e043c21a2bf25232025d3e306c /tests/basic/tier/fops-during-migration-pause.t | |
| parent | 2810954798cebb20e87dcea592a55e20067c6d41 (diff) | |
cluster/tier make cache mode default for tiered volumes
The default mode for tiered volumes must be cache. The current
test mode was for engineering and should ordinarily not be used
by customers.
This is a back port of 12581
> Change-Id: I20583f54a9269ce75daade645be18ab8575b0b9b
> BUG: 1282076
> Signed-off-by: Dan Lambright <dlambrig@redhat.com>
> Reviewed-on: http://review.gluster.org/12581
> Tested-by: Gluster Build System <jenkins@build.gluster.com>
> Reviewed-by: mohammed rafi kc <rkavunga@redhat.com>
Signed-off-by: Dan Lambright <dlambrig@redhat.com>
Change-Id: Ib2629d6d3e9b9374fddb5bc21cf068a1bcd96b9d
BUG: 1283288
Reviewed-on: http://review.gluster.org/12647
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Dan Lambright <dlambrig@redhat.com>
Tested-by: Dan Lambright <dlambrig@redhat.com>
Diffstat (limited to 'tests/basic/tier/fops-during-migration-pause.t')
| -rwxr-xr-x | tests/basic/tier/fops-during-migration-pause.t | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/basic/tier/fops-during-migration-pause.t b/tests/basic/tier/fops-during-migration-pause.t index 332e4bb1c03..f50d666ef27 100755 --- a/tests/basic/tier/fops-during-migration-pause.t +++ b/tests/basic/tier/fops-during-migration-pause.t @@ -2,11 +2,11 @@ . $(dirname $0)/../../include.rc . $(dirname $0)/../../volume.rc - +. $(dirname $0)/../../tier.rc NUM_BRICKS=3 -DEMOTE_FREQ=5 -PROMOTE_FREQ=5 +DEMOTE_FREQ=10 +PROMOTE_FREQ=10 TEST_STR="Testing write and truncate fops on tier migration" @@ -37,6 +37,7 @@ function create_dist_tier_vol () { TEST $CLI volume set $V0 cluster.tier-promote-frequency $PROMOTE_FREQ TEST $CLI volume set $V0 cluster.read-freq-threshold 0 TEST $CLI volume set $V0 cluster.write-freq-threshold 0 + TEST $CLI volume set $V0 cluster.tier-mode test } @@ -58,7 +59,7 @@ TEST mkdir $M0/dir1 # Create a large file (800MB), so that rebalance takes time # The file will be created on the hot tier - +sleep_until_mid_cycle $DEMOTE_FREQ dd if=/dev/zero of=$M0/dir1/FILE1 bs=256k count=5120 # Get the path of the file on the hot tier |
