Skip to content

Commit 6948f8f

Browse files
committed
Change ShardFollowTask defaults (#34793)
Per #31717 this commit changes the defaults to the following: Batch size of 5120 ops. Maximum of 12 concurrent read requests. Maximum of 9 concurrent write requests. This is not necessarily our final values but it's good to have these as defaults for the purposes of initial testing.
1 parent fa9f0b4 commit 6948f8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/action/TransportResumeFollowAction.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ public class TransportResumeFollowAction extends HandledTransportAction<ResumeFo
5454

5555
static final ByteSizeValue DEFAULT_MAX_BATCH_SIZE = new ByteSizeValue(Long.MAX_VALUE, ByteSizeUnit.BYTES);
5656
private static final TimeValue DEFAULT_MAX_RETRY_DELAY = new TimeValue(500);
57-
private static final int DEFAULT_MAX_CONCURRENT_WRITE_BATCHES = 1;
57+
private static final int DEFAULT_MAX_CONCURRENT_WRITE_BATCHES = 9;
5858
private static final int DEFAULT_MAX_WRITE_BUFFER_SIZE = 10240;
59-
private static final int DEFAULT_MAX_BATCH_OPERATION_COUNT = 1024;
60-
private static final int DEFAULT_MAX_CONCURRENT_READ_BATCHES = 1;
59+
private static final int DEFAULT_MAX_BATCH_OPERATION_COUNT = 5120;
60+
private static final int DEFAULT_MAX_CONCURRENT_READ_BATCHES = 12;
6161
static final TimeValue DEFAULT_POLL_TIMEOUT = TimeValue.timeValueMinutes(1);
6262

6363
private final Client client;

0 commit comments

Comments
 (0)