From b428d8cc48237099af648de12d18be78d54446eb Mon Sep 17 00:00:00 2001 From: Manikumar Reddy Date: Wed, 16 Jul 2014 08:13:06 -0700 Subject: [PATCH] kafka-1531; zookeeper.connection.timeout.ms is set to 10000000 in configuration file in Kafka tarball; patched by Manikumar Reddy; reviewed by Jun Rao --- config/consumer.properties | 2 +- config/server.properties | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/config/consumer.properties b/config/consumer.properties index 7343cbc28cf..83847de30d1 100644 --- a/config/consumer.properties +++ b/config/consumer.properties @@ -20,7 +20,7 @@ zookeeper.connect=127.0.0.1:2181 # timeout in ms for connecting to zookeeper -zookeeper.connection.timeout.ms=1000000 +zookeeper.connection.timeout.ms=6000 #consumer group id group.id=test-consumer-group diff --git a/config/server.properties b/config/server.properties index c9e923aed85..f16c84c920a 100644 --- a/config/server.properties +++ b/config/server.properties @@ -37,16 +37,16 @@ port=9092 #advertised.port= # The number of threads handling network requests -num.network.threads=2 +num.network.threads=3 # The number of threads doing disk I/O num.io.threads=8 # The send buffer (SO_SNDBUF) used by the socket server -socket.send.buffer.bytes=1048576 +socket.send.buffer.bytes=102400 # The receive buffer (SO_RCVBUF) used by the socket server -socket.receive.buffer.bytes=1048576 +socket.receive.buffer.bytes=65536 # The maximum size of a request that the socket server will accept (protection against OOM) socket.request.max.bytes=104857600 @@ -60,7 +60,7 @@ log.dirs=/tmp/kafka-logs # The default number of log partitions per topic. More partitions allow greater # parallelism for consumption, but this will also result in more files across # the brokers. -num.partitions=2 +num.partitions=1 ############################# Log Flush Policy ############################# @@ -94,11 +94,11 @@ log.retention.hours=168 #log.retention.bytes=1073741824 # The maximum size of a log segment file. When this size is reached a new log segment will be created. -log.segment.bytes=536870912 +log.segment.bytes=1073741824 # The interval at which log segments are checked to see if they can be deleted according # to the retention policies -log.retention.check.interval.ms=60000 +log.retention.check.interval.ms=300000 # By default the log cleaner is disabled and the log retention policy will default to just delete segments after their retention expires. # If log.cleaner.enable=true is set the cleaner will be enabled and individual logs can then be marked for log compaction. @@ -114,4 +114,4 @@ log.cleaner.enable=false zookeeper.connect=localhost:2181 # Timeout in ms for connecting to zookeeper -zookeeper.connection.timeout.ms=1000000 +zookeeper.connection.timeout.ms=6000