Skip to content

Commit 5c14ca1

Browse files
Adjust CWL Sink Threshold to allow minimal 10 second flush interval (#6242)
**What?** This commit updates CWL sink minimal allowed flush interval from 60s to 10s. **Why?** CWL is a high TPS dataplane service with small batch of events. It is reasonable to allow shorter flush interval to improve the ingestion latency Signed-off-by: Wenjie Yao <wjyao@amazon.com> Co-authored-by: Wenjie Yao <wjyao@amazon.com>
1 parent c4c7fcf commit 5c14ca1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • data-prepper-plugins/cloudwatch-logs/src/main/java/org/opensearch/dataprepper/plugins/sink/cloudwatch_logs/config

data-prepper-plugins/cloudwatch-logs/src/main/java/org/opensearch/dataprepper/plugins/sink/cloudwatch_logs/config/ThresholdConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public class ThresholdConfig {
4444
private ByteCount maxRequestSize = DEFAULT_MAX_REQUEST_SIZE;
4545

4646
@JsonProperty("flush_interval")
47-
@DurationMin(seconds = 60)
47+
@DurationMin(seconds = 10)
4848
@DurationMax(seconds = 3600)
4949
private Duration flushInterval = Duration.ofSeconds(DEFAULT_FLUSH_INTERVAL);
5050

0 commit comments

Comments
 (0)