Skip to content

Commit f17eea5

Browse files
committed
update log kafka appender to use ZSTD
Signed-off-by: neo <[email protected]>
1 parent e0b7d2b commit f17eea5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core-ng/src/main/java/core/framework/internal/log/appender/KafkaAppender.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ KafkaProducer<byte[], byte[]> createProducer(KafkaURI uri) {
9090
config.put(ProducerConfig.ACKS_CONFIG, "0"); // no acknowledge to maximize performance
9191
config.put(ProducerConfig.ENABLE_IDEMPOTENCE_CONFIG, Boolean.FALSE); // since kafka 3.0.0, "enable.idempotence" is true by default, and it overrides "acks" to all
9292
config.put(ProducerConfig.CLIENT_ID_CONFIG, "log-forwarder"); // if not specify, kafka uses producer-${seq} name, also impact jmx naming
93-
config.put(ProducerConfig.COMPRESSION_TYPE_CONFIG, CompressionType.SNAPPY.name);
93+
config.put(ProducerConfig.COMPRESSION_TYPE_CONFIG, CompressionType.ZSTD.name);
9494
config.put(ProducerConfig.DELIVERY_TIMEOUT_MS_CONFIG, 60_000); // 60s, type is INT
9595
config.put(ProducerConfig.LINGER_MS_CONFIG, 50L);
9696
config.put(ProducerConfig.RECONNECT_BACKOFF_MS_CONFIG, 500L); // longer backoff to reduce cpu usage when kafka is not available

0 commit comments

Comments
 (0)