diff options
author | Poornima G <pgurusid@redhat.com> | 2016-12-08 16:48:55 +0530 |
---|---|---|
committer | Pranith Kumar Karampuri <pkarampu@redhat.com> | 2017-01-17 20:05:11 -0800 |
commit | 2c03c753fe77dfadb7660ecb39fe0bbb6bad026f (patch) | |
tree | 1300d52cbdef689cfd9c75cff9e792ca7b06a1f6 /xlators/mgmt/glusterd/src/glusterd-volume-set.c | |
parent | c822e354e16646adf18bbc5123798663faa543b2 (diff) |
glusterd: Change the volfile to have readdir-ahead as a child
of dht
As mentioned in feature page http://review.gluster.org/#/c/16090/
readdir-ahead will be optionally placed below dht.
There are two options:
1. performance.readdir-ahead
2. performance.parallel-readdir
If only option is enabled, then readdir ahead is placed at its
original place as an ancestor of dht. If both the options 1 and 2
are enabled then readdir ahead is placed as a child of dht.
Also changes have been made to retain the rebalance, quotad,
snapd vol files to remain unchanged.
Change-Id: I0adf0b476fcbf91251f5a2fee2241786a3d8255a
BUG: 1401812
Signed-off-by: Poornima G <pgurusid@redhat.com>
Reviewed-on: http://review.gluster.org/16072
Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
Smoke: Gluster Build System <jenkins@build.gluster.org>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-volume-set.c')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-volume-set.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-set.c b/xlators/mgmt/glusterd/src/glusterd-volume-set.c index a75770220b3..ae569c66a23 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volume-set.c +++ b/xlators/mgmt/glusterd/src/glusterd-volume-set.c @@ -1867,12 +1867,11 @@ struct volopt_map_entry glusterd_volopt_map[] = { { .key = "performance.readdir-ahead", .voltype = "performance/readdir-ahead", .option = "!perf", - .value = "off", + .value = "on", .op_version = 3, .description = "enable/disable readdir-ahead translator in the volume.", .flags = OPT_FLAG_CLIENT_OPT | OPT_FLAG_XLATOR_OPT }, - { .key = "performance.io-cache", .voltype = "performance/io-cache", .option = "!perf", @@ -3092,6 +3091,17 @@ struct volopt_map_entry glusterd_volopt_map[] = { .op_version = GD_OP_VERSION_3_8_4, .flags = OPT_FLAG_CLIENT_OPT }, + { .key = "performance.parallel-readdir", + .voltype = "performance/readdir-ahead", + .option = "parallel-readdir", + .value = "off", + .type = DOC, + .op_version = GD_OP_VERSION_3_10_0, + .description = "If this option is enabled, the readdir operation is " + "performed parallely on all the bricks, thus improving" + " the performance of readdir. Note that the performance" + "improvement is higher in large clusters" + }, { .key = "performance.rda-request-size", .voltype = "performance/readdir-ahead", .option = "rda-request-size", |