|
|
21ab4e |
From 2b1e552c29b2412d935e3da3650d08bc5de3374a Mon Sep 17 00:00:00 2001
|
|
|
21ab4e |
From: Krutika Dhananjay <kdhananj@redhat.com>
|
|
|
21ab4e |
Date: Fri, 8 Sep 2017 18:04:50 +0530
|
|
|
21ab4e |
Subject: [PATCH 617/620] features/shard: Change default shard-block-size to
|
|
|
21ab4e |
64MB
|
|
|
21ab4e |
|
|
|
21ab4e |
Backport of: https://review.gluster.org/18243
|
|
|
21ab4e |
|
|
|
21ab4e |
Change-Id: If64122b160bec77030ca910b1425ccd0d1eb30f1
|
|
|
21ab4e |
BUG: 1468969
|
|
|
21ab4e |
Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com>
|
|
|
21ab4e |
Reviewed-on: https://code.engineering.redhat.com/gerrit/118074
|
|
|
21ab4e |
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
|
|
|
21ab4e |
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
|
|
|
21ab4e |
---
|
|
|
21ab4e |
tests/bugs/replicate/bug-1408712.t | 1 +
|
|
|
21ab4e |
tests/bugs/shard/bug-1248887.t | 1 +
|
|
|
21ab4e |
tests/bugs/shard/bug-1251824.t | 1 +
|
|
|
21ab4e |
tests/bugs/shard/bug-shard-discard.t | 1 +
|
|
|
21ab4e |
tests/bugs/shard/bug-shard-zerofill.t | 1 +
|
|
|
21ab4e |
tests/bugs/shard/unlinks-and-renames.t | 2 ++
|
|
|
21ab4e |
xlators/features/shard/src/shard.c | 2 +-
|
|
|
21ab4e |
7 files changed, 8 insertions(+), 1 deletion(-)
|
|
|
21ab4e |
|
|
|
21ab4e |
diff --git a/tests/bugs/replicate/bug-1408712.t b/tests/bugs/replicate/bug-1408712.t
|
|
|
21ab4e |
index b26e8a0..18376b6 100644
|
|
|
21ab4e |
--- a/tests/bugs/replicate/bug-1408712.t
|
|
|
21ab4e |
+++ b/tests/bugs/replicate/bug-1408712.t
|
|
|
21ab4e |
@@ -14,6 +14,7 @@ TEST pidof glusterd
|
|
|
21ab4e |
TEST $CLI volume create $V0 replica 3 $H0:$B0/${V0}{0,1,2}
|
|
|
21ab4e |
TEST $CLI volume start $V0
|
|
|
21ab4e |
TEST $CLI volume set $V0 features.shard on
|
|
|
21ab4e |
+TEST $CLI volume set $V0 features.shard-block-size 4MB
|
|
|
21ab4e |
TEST $CLI volume heal $V0 granular-entry-heal enable
|
|
|
21ab4e |
TEST $CLI volume set $V0 cluster.data-self-heal off
|
|
|
21ab4e |
TEST $CLI volume set $V0 cluster.metadata-self-heal off
|
|
|
21ab4e |
diff --git a/tests/bugs/shard/bug-1248887.t b/tests/bugs/shard/bug-1248887.t
|
|
|
21ab4e |
index 4528e9b..2c51f7c 100644
|
|
|
21ab4e |
--- a/tests/bugs/shard/bug-1248887.t
|
|
|
21ab4e |
+++ b/tests/bugs/shard/bug-1248887.t
|
|
|
21ab4e |
@@ -9,6 +9,7 @@ TEST glusterd
|
|
|
21ab4e |
TEST pidof glusterd
|
|
|
21ab4e |
TEST $CLI volume create $V0 replica 2 $H0:$B0/${V0}{0,1}
|
|
|
21ab4e |
TEST $CLI volume set $V0 features.shard on
|
|
|
21ab4e |
+TEST $CLI volume set $V0 features.shard-block-size 4MB
|
|
|
21ab4e |
TEST $CLI volume start $V0
|
|
|
21ab4e |
|
|
|
21ab4e |
TEST $GFS --volfile-id=$V0 --volfile-server=$H0 $M0
|
|
|
21ab4e |
diff --git a/tests/bugs/shard/bug-1251824.t b/tests/bugs/shard/bug-1251824.t
|
|
|
21ab4e |
index 85f0638..d81685d 100644
|
|
|
21ab4e |
--- a/tests/bugs/shard/bug-1251824.t
|
|
|
21ab4e |
+++ b/tests/bugs/shard/bug-1251824.t
|
|
|
21ab4e |
@@ -10,6 +10,7 @@ TEST glusterd
|
|
|
21ab4e |
TEST pidof glusterd
|
|
|
21ab4e |
TEST $CLI volume create $V0 replica 2 $H0:$B0/${V0}{0,1,2,3}
|
|
|
21ab4e |
TEST $CLI volume set $V0 features.shard on
|
|
|
21ab4e |
+TEST $CLI volume set $V0 features.shard-block-size 4MB
|
|
|
21ab4e |
TEST $CLI volume start $V0
|
|
|
21ab4e |
|
|
|
21ab4e |
TEST glusterfs --volfile-id=$V0 --volfile-server=$H0 $M0
|
|
|
21ab4e |
diff --git a/tests/bugs/shard/bug-shard-discard.t b/tests/bugs/shard/bug-shard-discard.t
|
|
|
21ab4e |
index 4c4e941..ac17cb1 100644
|
|
|
21ab4e |
--- a/tests/bugs/shard/bug-shard-discard.t
|
|
|
21ab4e |
+++ b/tests/bugs/shard/bug-shard-discard.t
|
|
|
21ab4e |
@@ -9,6 +9,7 @@ TEST glusterd
|
|
|
21ab4e |
TEST pidof glusterd
|
|
|
21ab4e |
TEST $CLI volume create $V0 replica 2 $H0:$B0/${V0}{0..3}
|
|
|
21ab4e |
TEST $CLI volume set $V0 features.shard on
|
|
|
21ab4e |
+TEST $CLI volume set $V0 features.shard-block-size 4MB
|
|
|
21ab4e |
TEST $CLI volume start $V0
|
|
|
21ab4e |
|
|
|
21ab4e |
TEST $GFS --volfile-id=$V0 --volfile-server=$H0 $M0
|
|
|
21ab4e |
diff --git a/tests/bugs/shard/bug-shard-zerofill.t b/tests/bugs/shard/bug-shard-zerofill.t
|
|
|
21ab4e |
index ad508c8..8ea400d 100644
|
|
|
21ab4e |
--- a/tests/bugs/shard/bug-shard-zerofill.t
|
|
|
21ab4e |
+++ b/tests/bugs/shard/bug-shard-zerofill.t
|
|
|
21ab4e |
@@ -9,6 +9,7 @@ TEST glusterd
|
|
|
21ab4e |
TEST pidof glusterd
|
|
|
21ab4e |
TEST $CLI volume create $V0 replica 2 $H0:$B0/${V0}{0..3}
|
|
|
21ab4e |
TEST $CLI volume set $V0 features.shard on
|
|
|
21ab4e |
+TEST $CLI volume set $V0 features.shard-block-size 4MB
|
|
|
21ab4e |
TEST $CLI volume start $V0
|
|
|
21ab4e |
|
|
|
21ab4e |
TEST $GFS --volfile-id=$V0 --volfile-server=$H0 $M0
|
|
|
21ab4e |
diff --git a/tests/bugs/shard/unlinks-and-renames.t b/tests/bugs/shard/unlinks-and-renames.t
|
|
|
21ab4e |
index 751874c..a8f188b 100644
|
|
|
21ab4e |
--- a/tests/bugs/shard/unlinks-and-renames.t
|
|
|
21ab4e |
+++ b/tests/bugs/shard/unlinks-and-renames.t
|
|
|
21ab4e |
@@ -17,6 +17,7 @@ TEST glusterd
|
|
|
21ab4e |
TEST pidof glusterd
|
|
|
21ab4e |
TEST $CLI volume create $V0 replica 2 $H0:$B0/${V0}{0,1}
|
|
|
21ab4e |
TEST $CLI volume set $V0 features.shard on
|
|
|
21ab4e |
+TEST $CLI volume set $V0 features.shard-block-size 4MB
|
|
|
21ab4e |
TEST $CLI volume start $V0
|
|
|
21ab4e |
TEST glusterfs --volfile-id=$V0 --volfile-server=$H0 $M0
|
|
|
21ab4e |
|
|
|
21ab4e |
@@ -127,6 +128,7 @@ TEST glusterd
|
|
|
21ab4e |
TEST pidof glusterd
|
|
|
21ab4e |
TEST $CLI volume create $V0 replica 2 $H0:$B0/${V0}{0,1}
|
|
|
21ab4e |
TEST $CLI volume set $V0 features.shard on
|
|
|
21ab4e |
+TEST $CLI volume set $V0 features.shard-block-size 4MB
|
|
|
21ab4e |
TEST $CLI volume start $V0
|
|
|
21ab4e |
TEST glusterfs --volfile-id=$V0 --volfile-server=$H0 $M0
|
|
|
21ab4e |
|
|
|
21ab4e |
diff --git a/xlators/features/shard/src/shard.c b/xlators/features/shard/src/shard.c
|
|
|
21ab4e |
index 2dca929..4311f74 100644
|
|
|
21ab4e |
--- a/xlators/features/shard/src/shard.c
|
|
|
21ab4e |
+++ b/xlators/features/shard/src/shard.c
|
|
|
21ab4e |
@@ -5169,7 +5169,7 @@ struct xlator_dumpops dumpops = {
|
|
|
21ab4e |
struct volume_options options[] = {
|
|
|
21ab4e |
{ .key = {"shard-block-size"},
|
|
|
21ab4e |
.type = GF_OPTION_TYPE_SIZET,
|
|
|
21ab4e |
- .default_value = "4MB",
|
|
|
21ab4e |
+ .default_value = "64MB",
|
|
|
21ab4e |
.min = SHARD_MIN_BLOCK_SIZE,
|
|
|
21ab4e |
.max = SHARD_MAX_BLOCK_SIZE,
|
|
|
21ab4e |
.description = "The size unit used to break a file into multiple "
|
|
|
21ab4e |
--
|
|
|
21ab4e |
1.8.3.1
|
|
|
21ab4e |
|