aboutsummaryrefslogtreecommitdiffstats
path: root/config-model
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-01-19 10:30:39 +0100
committerGitHub <noreply@github.com>2022-01-19 10:30:39 +0100
commitae46cfd90ff514d08d69410a86d117854f6da58b (patch)
treede8a86a20d83ac9fff97a2f3e3921bc37429d7b1 /config-model
parent48f6b04cf863ae98879f3416c72b0981cfd7827f (diff)
parentc6e53914584359256e7651d106972eebb5dc49b5 (diff)
Merge pull request #20864 from vespa-engine/balder/reduce-default-splitt-size-from-32M-to-16M
Reduce default split size from 32M to 16M.
Diffstat (limited to 'config-model')
-rw-r--r--config-model/src/main/java/com/yahoo/vespa/model/content/BucketSplitting.java6
-rw-r--r--config-model/src/test/java/com/yahoo/vespa/model/content/DistributorTest.java4
2 files changed, 5 insertions, 5 deletions
diff --git a/config-model/src/main/java/com/yahoo/vespa/model/content/BucketSplitting.java b/config-model/src/main/java/com/yahoo/vespa/model/content/BucketSplitting.java
index 628987d5930..e15c531aa32 100644
--- a/config-model/src/main/java/com/yahoo/vespa/model/content/BucketSplitting.java
+++ b/config-model/src/main/java/com/yahoo/vespa/model/content/BucketSplitting.java
@@ -8,9 +8,9 @@ import com.yahoo.vespa.model.builder.xml.dom.ModelElement;
* Represents configuration for bucket splitting.
*/
public class BucketSplitting implements StorDistributormanagerConfig.Producer {
- Integer maxDocuments;
- Integer splitSize;
- Integer minSplitCount;
+ private final Integer maxDocuments;
+ private final Integer splitSize;
+ private final Integer minSplitCount;
public static class Builder {
public BucketSplitting build(ModelElement clusterElem) {
diff --git a/config-model/src/test/java/com/yahoo/vespa/model/content/DistributorTest.java b/config-model/src/test/java/com/yahoo/vespa/model/content/DistributorTest.java
index 90e3aff0c45..d23dca65dd1 100644
--- a/config-model/src/test/java/com/yahoo/vespa/model/content/DistributorTest.java
+++ b/config-model/src/test/java/com/yahoo/vespa/model/content/DistributorTest.java
@@ -107,7 +107,7 @@ public class DistributorTest {
assertEquals(1024, conf.splitcount());
assertEquals(512, conf.joincount());
- assertEquals(33544432, conf.splitsize());
+ assertEquals(16772216, conf.splitsize());
assertEquals(16000000, conf.joinsize());
assertEquals(8, conf.minsplitcount());
assertTrue(conf.inlinebucketsplitting());
@@ -138,7 +138,7 @@ public class DistributorTest {
assertEquals(1024, conf.splitcount());
assertEquals(512, conf.joincount());
- assertEquals(33544432, conf.splitsize());
+ assertEquals(16772216, conf.splitsize());
assertEquals(16000000, conf.joinsize());
assertEquals(14, conf.minsplitcount());
assertTrue(conf.inlinebucketsplitting());