From d691faf98cb573c4e92748d95d5c8afc492db806 Mon Sep 17 00:00:00 2001
From: Jason Gustafson
Date: Fri, 25 Mar 2016 12:51:54 -0700
Subject: [PATCH] KAFKA-3463: change default receive buffer size for consumer
to 64K
Author: Jason Gustafson
Reviewers: Gwen Shapira
Closes #1140 from hachikuji/KAFKA-3463
---
.../org/apache/kafka/clients/consumer/ConsumerConfig.java | 2 +-
docs/upgrade.html | 8 +++++++-
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/clients/src/main/java/org/apache/kafka/clients/consumer/ConsumerConfig.java b/clients/src/main/java/org/apache/kafka/clients/consumer/ConsumerConfig.java
index c97c8fb4702..69c4a362092 100644
--- a/clients/src/main/java/org/apache/kafka/clients/consumer/ConsumerConfig.java
+++ b/clients/src/main/java/org/apache/kafka/clients/consumer/ConsumerConfig.java
@@ -243,7 +243,7 @@ public class ConsumerConfig extends AbstractConfig {
CommonClientConfigs.SEND_BUFFER_DOC)
.define(RECEIVE_BUFFER_CONFIG,
Type.INT,
- 32 * 1024,
+ 64 * 1024,
atLeast(0),
Importance.MEDIUM,
CommonClientConfigs.RECEIVE_BUFFER_DOC)
diff --git a/docs/upgrade.html b/docs/upgrade.html
index f1e1e40e05e..060c3deb33d 100644
--- a/docs/upgrade.html
+++ b/docs/upgrade.html
@@ -64,7 +64,7 @@ work with 0.10.0.x brokers. Therefore, 0.9.0.0 clients should be upgraded to 0.9
is set to 0.10.0, one should not change it back to an earlier format as it may break consumers on versions before 0.10.0.0.
-
+
- Starting from Kafka 0.10.0.0, the message format version in Kafka is represented as the Kafka version. For example, message format 0.9.0 refers to the highest message version supported by Kafka 0.9.0.
- Message format 0.10.0 has been introduced and it is used by default. It includes a timestamp field in the messages and relative offsets are used for compressed messages.
@@ -81,6 +81,12 @@ work with 0.10.0.x brokers. Therefore, 0.9.0.0 clients should be upgraded to 0.9
- The 0.7 KafkaMigrationTool is no longer packaged with Kafka. If you need to migrate from 0.7 to 0.10.0, please migrate to 0.8 first and then follow the documented upgrade process to upgrade from 0.8 to 0.10.0.
+
+
+
+ - The default value of the configuration parameter
receive.buffer.bytes
is now 64K for the new consumer
+
+
0.9.0.0 has potential breaking changes (please review before upgrading) and an inter-broker protocol change from previous versions. This means that upgraded brokers and clients may not be compatible with older versions. It is important that you upgrade your Kafka cluster before upgrading your clients. If you are using MirrorMaker downstream clusters should be upgraded first as well.