diff options
author | Dan Lambright <dlambrig@redhat.com> | 2016-03-01 15:03:54 -0500 |
---|---|---|
committer | Dan Lambright <dlambrig@redhat.com> | 2016-03-16 23:12:04 -0700 |
commit | adbce4e9b7dadc226d3de326d98007ed10913919 (patch) | |
tree | b45232da1fc176e3ceef08c6cf0f015a2c237bbb /tests/basic | |
parent | 8fda324df01b6de9c58a1395263ce9755465b26d (diff) |
cluster/tier: add tunable to migrate files based on size
This fix adds a paramater "tier-max_promote_size" to control wether
a file is migrated or not based on its size. By default the value
is 0, meaning all files are migrated. If set to a non-zero
value, files larger than the parameter won't be moved
in tiered volumes.
Change-Id: Ia6b88e9b2508935bef500d956f9192e59670fe00
BUG: 1313495
Signed-off-by: Dan Lambright <dlambrig@redhat.com>
Reviewed-on: http://review.gluster.org/13570
Smoke: Gluster Build System <jenkins@build.gluster.com>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Joseph Fernandes
Diffstat (limited to 'tests/basic')
-rwxr-xr-x | tests/basic/tier/tier.t | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/basic/tier/tier.t b/tests/basic/tier/tier.t index 5874a9b6e83..deff2e299ef 100755 --- a/tests/basic/tier/tier.t +++ b/tests/basic/tier/tier.t @@ -112,6 +112,7 @@ TEST $CLI volume set $V0 cluster.watermark-hi 85 TEST $CLI volume set $V0 cluster.watermark-low 75 TEST $CLI volume set $V0 cluster.tier-max-mb 1000 TEST $CLI volume set $V0 cluster.tier-max-files 1000 +TEST $CLI volume set $V0 cluster.tier-max-promote-file-size 1000 TEST ! $CLI volume set $V0 cluster.tier-max-files -3 TEST ! $CLI volume set $V0 cluster.watermark-low 90 TEST ! $CLI volume set $V0 cluster.read-freq-threshold -12 |