summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavi Hernandez <xhernandez@users.noreply.github.com>2021-02-06 01:53:28 +0100
committerXavi Hernandez <xhernandez@users.noreply.github.com>2021-02-11 17:02:32 +0100
commit5ed9ab30676eb1dbdb233f0a066fe7c4b93d21a2 (patch)
tree6c47799d609d5ee0ba9c03acb73e4c524c401cf4
parent0742885610ef0159826d0310eca06ef162ba3422 (diff)
downloadglusterfs-5ed9ab30676eb1dbdb233f0a066fe7c4b93d21a2.tar.gz
glusterfs-5ed9ab30676eb1dbdb233f0a066fe7c4b93d21a2.tar.xz
glusterfs-5ed9ab30676eb1dbdb233f0a066fe7c4b93d21a2.zip
cluster/ec: Change self-heal-window-size to 4MiB by default (#2071)
The current block size used for self-heal by default is 128 KiB. This requires a significant amount of management requests for a very small portion of data healed. With this patch the block size is increased to 4 MiB. For a standard EC volume configuration of 4+2, this means that each healed block of a file will update 1 MiB on each brick. Change-Id: Ifeec4a2d54988017d038085720513c121b03445b Updates: #2067 Signed-off-by: Xavi Hernandez <xhernandez@redhat.com>
-rw-r--r--xlators/cluster/ec/src/ec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/ec/src/ec.c b/xlators/cluster/ec/src/ec.c
index ee11535cfe..c4c9e17eff 100644
--- a/xlators/cluster/ec/src/ec.c
+++ b/xlators/cluster/ec/src/ec.c
@@ -1794,7 +1794,7 @@ struct volume_options options[] = {
.type = GF_OPTION_TYPE_INT,
.min = 1,
.max = 1024,
- .default_value = "1",
+ .default_value = "32",
.op_version = {GD_OP_VERSION_3_11_0},
.flags = OPT_FLAG_SETTABLE | OPT_FLAG_CLIENT_OPT | OPT_FLAG_DOC,
.tags = {"disperse"},