This is an automated email from the ASF dual-hosted git repository.

williamsong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ratis.git


The following commit(s) were added to refs/heads/master by this push:
     new 94aa1ab45 RATIS-1924. Increase the default of 
raft.server.log.segment.size.max. (#957)
94aa1ab45 is described below

commit 94aa1ab454e3688ff87e8ebc5df6fb9fd88c8cb2
Author: Tsz-Wo Nicholas Sze <[email protected]>
AuthorDate: Tue Oct 31 09:01:28 2023 -0700

    RATIS-1924. Increase the default of raft.server.log.segment.size.max. (#957)
---
 ratis-docs/src/site/markdown/configurations.md                          | 2 +-
 .../src/main/java/org/apache/ratis/server/RaftServerConfigKeys.java     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ratis-docs/src/site/markdown/configurations.md 
b/ratis-docs/src/site/markdown/configurations.md
index 51c8d65f6..4fc3c5caa 100644
--- a/ratis-docs/src/site/markdown/configurations.md
+++ b/ratis-docs/src/site/markdown/configurations.md
@@ -318,7 +318,7 @@ Ratis will temporarily stall the new IO Tasks.
 |:----------------|:--------------------------------------------|
 | **Description** | max file size for a single Raft Log Segment |
 | **Type**        | SizeInBytes                                 |
-| **Default**     | 8MB                                         |
+| **Default**     | 32MB                                        |
 
 | **Property**    | `raft.server.log.segment.cache.num.max`                    
                 |
 
|:----------------|:----------------------------------------------------------------------------|
diff --git 
a/ratis-server-api/src/main/java/org/apache/ratis/server/RaftServerConfigKeys.java
 
b/ratis-server-api/src/main/java/org/apache/ratis/server/RaftServerConfigKeys.java
index 2d777cf7d..9eba05c87 100644
--- 
a/ratis-server-api/src/main/java/org/apache/ratis/server/RaftServerConfigKeys.java
+++ 
b/ratis-server-api/src/main/java/org/apache/ratis/server/RaftServerConfigKeys.java
@@ -381,7 +381,7 @@ public interface RaftServerConfigKeys {
     }
 
     String SEGMENT_SIZE_MAX_KEY = PREFIX + ".segment.size.max";
-    SizeInBytes SEGMENT_SIZE_MAX_DEFAULT = SizeInBytes.valueOf("8MB");
+    SizeInBytes SEGMENT_SIZE_MAX_DEFAULT = SizeInBytes.valueOf("32MB");
     static SizeInBytes segmentSizeMax(RaftProperties properties) {
       return getSizeInBytes(properties::getSizeInBytes,
           SEGMENT_SIZE_MAX_KEY, SEGMENT_SIZE_MAX_DEFAULT, getDefaultLog());

Reply via email to