Skip to content

Commit

Permalink
feat(core): default configuration optimization (#1979)
Browse files Browse the repository at this point in the history
1. decrease default max stream number per sso config to 20k, corresponds to 15k streams per node as recommended upper limit
2. increase single batch record size limit to 50k for worst case to force split a sso with 20k streams

Signed-off-by: Shichao Nie <niesc@automq.com>
  • Loading branch information
SCNieh committed Sep 2, 2024
1 parent dcfef9c commit ad3c927
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/main/java/kafka/automq/AutoMQConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public class AutoMQConfig {

public static final String S3_MAX_STREAM_NUM_PER_STREAM_SET_OBJECT_CONFIG = "s3.max.stream.num.per.stream.set.object";
public static final String S3_MAX_STREAM_NUM_PER_STREAM_SET_OBJECT_DOC = "The maximum number of streams allowed in single stream set object";
public static final int S3_MAX_STREAM_NUM_PER_STREAM_SET_OBJECT = 100000;
public static final int S3_MAX_STREAM_NUM_PER_STREAM_SET_OBJECT = 20000;

public static final String S3_MAX_STREAM_OBJECT_NUM_PER_COMMIT_CONFIG = "s3.max.stream.object.num.per.commit";
public static final String S3_MAX_STREAM_OBJECT_NUM_PER_COMMIT_DOC = "The maximum number of stream objects in single commit request";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public final class QuorumController implements Controller {
/**
* The maximum records that the controller will write in a single batch.
*/
private final static int MAX_RECORDS_PER_BATCH = 25000;
private final static int MAX_RECORDS_PER_BATCH = 50000;

/**
* The maximum records any user-initiated operation is allowed to generate.
Expand Down

0 comments on commit ad3c927

Please sign in to comment.