summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/dht/src/tier.c
diff options
context:
space:
mode:
authorJoseph Fernandes <josferna@redhat.com>2016-01-20 22:27:33 +0530
committerDan Lambright <dlambrig@redhat.com>2016-01-26 09:16:05 -0800
commitce2c58d0fab517320059af7cea2e36e5cd246b6e (patch)
tree75f92b4d8dc5bb2672eb1fbf315bda899c96c922 /xlators/cluster/dht/src/tier.c
parent9ce86c63e349eaafbd923b0b541d75e929ecbae7 (diff)
tier/dht : Default value for demote-freq, max files and mb
Default value for tier-demote-frequency is 3600 sec to avoid frequent demotions. Default value for tier-max-mb is 4000 mb Default value for tier-max-files is 10000 files Change-Id: Ie60951c478a7462c425059699ab82511aa13fa0a BUG: 1300412 Signed-off-by: Joseph Fernandes <josferna@redhat.com> Reviewed-on: http://review.gluster.org/13270 Smoke: Gluster Build System <jenkins@build.gluster.com> Tested-by: Dan Lambright <dlambrig@redhat.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Dan Lambright <dlambrig@redhat.com>
Diffstat (limited to 'xlators/cluster/dht/src/tier.c')
-rw-r--r--xlators/cluster/dht/src/tier.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/xlators/cluster/dht/src/tier.c b/xlators/cluster/dht/src/tier.c
index 2e0a7c78af4..522ac547e6e 100644
--- a/xlators/cluster/dht/src/tier.c
+++ b/xlators/cluster/dht/src/tier.c
@@ -1841,7 +1841,7 @@ tier_init (xlator_t *this)
freq = DEFAULT_TIER_MAX_MIGRATE_MB;
}
- defrag->tier_conf.max_migrate_bytes = freq * 1024 * 1024;
+ defrag->tier_conf.max_migrate_bytes = (uint64_t) freq * 1024 * 1024;
ret = dict_get_int32 (this->options,
"tier-max-files", &freq);
@@ -2018,7 +2018,8 @@ tier_reconfigure (xlator_t *this, dict_t *options)
GF_OPTION_RECONF ("tier-max-mb",
migrate_mb, options,
int32, out);
- defrag->tier_conf.max_migrate_bytes = migrate_mb*1024*1024;
+ defrag->tier_conf.max_migrate_bytes = (uint64_t) migrate_mb *
+ 1024 * 1024;
GF_OPTION_RECONF ("tier-max-files",
defrag->tier_conf.max_migrate_files, options,