This is an automated email from the ASF dual-hosted git repository.
tanxinyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new f65514eea5 [IOTDB-3584] Snapshot unstable due to segment size (#6370)
f65514eea5 is described below
commit f65514eea5d331cb8389e83bcf0ffe096439c2f2
Author: William Song <[email protected]>
AuthorDate: Wed Jun 22 00:11:46 2022 +0800
[IOTDB-3584] Snapshot unstable due to segment size (#6370)
---
.../src/main/java/org/apache/iotdb/consensus/config/RatisConfig.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/consensus/src/main/java/org/apache/iotdb/consensus/config/RatisConfig.java
b/consensus/src/main/java/org/apache/iotdb/consensus/config/RatisConfig.java
index 45a8fb3ee7..f956043b79 100644
--- a/consensus/src/main/java/org/apache/iotdb/consensus/config/RatisConfig.java
+++ b/consensus/src/main/java/org/apache/iotdb/consensus/config/RatisConfig.java
@@ -519,8 +519,8 @@ public class RatisConfig {
private SizeInBytes queueByteLimit = SizeInBytes.valueOf("64MB");
private int purgeGap = 1024;
private boolean purgeUptoSnapshotIndex = false;
- private SizeInBytes segmentSizeMax = SizeInBytes.valueOf("8MB");
- private int segmentCacheNumMax = 6;
+ private SizeInBytes segmentSizeMax = SizeInBytes.valueOf("128MB");
+ private int segmentCacheNumMax = 2;
private SizeInBytes segmentCacheSizeMax = SizeInBytes.valueOf("200MB");
private SizeInBytes preallocatedSize = SizeInBytes.valueOf("4MB");
private SizeInBytes writeBufferSize = SizeInBytes.valueOf("64KB");