Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Some doubts regarding kafka config parameters

$
0
0
hi,

I have the following doubts regarding some kafka config parameters:

For example if I have a Throughput topic with replication factor 1 and a
single partition 0,then i will see the following files under
/tmp/kafka-logs/Throughput_0:

00000000000000000000.index
00000000000000000000.log

00000000000070117826.index
00000000000070117826.log

1) *log.delete.delay.ms <http://log.delete.delay.ms>:*

The period of time we hold log files around after they are removed from the

In the above description, does “*index*” refer to the in-memory
segment-list and not the 00000****.index file(in example above)?

As per documentation, kafka maintains an in-memory segment list:

To enable read operations, kafka maintains an in-memory range(segment

2) *socket.request.max.bytes: *The maximum request size the server will
allow.

how is this different from message.max.bytes (The maximum size of a message
that the server can receive.)

3) *fetch.wait.max.ms <http://fetch.wait.max.ms>: *

Does the server above refer to kafka consumer, which will block for
fetch.wait.max.ms? How is fetch.wait.max.ms different from *consumer.timeout.ms
<http://consumer.timeout.ms>* ?

4) Is there any correlation between a producer's
*queue.buffering.max.messages* and *send.buffer.bytes? *

5) Will batching not happen in case producer.type=async and
request.required.acks=1 or -1 ? Since next message will only be sent after
an ack is received from leader/all ISR replicas?

6) *topic.metadata.refresh.interval.ms
<http://topic.metadata.refresh.interval.ms>: *
After every 10 mins I see the following on my producer side:

1200483 [main] INFO kafka.client.ClientUtils$ - Fetching metadata from
broker id:0,host:localhost,port:9092 with correlation id 15078270 for 1
topic(s) Set(Throughput)

1200484 [main] INFO kafka.producer.SyncProducer - Connected to
localhost:9092 for producing

1200486 [main] INFO kafka.producer.SyncProducer - Disconnecting from
localhost:9092

1200486 [main] INFO kafka.producer.SyncProducer - Disconnecting from
sdp08:9092

1200487 [main] INFO kafka.producer.SyncProducer - Connected to sdp08:9092
for producing

Why is there a disconnection and re-connection happening on each metadata
refresh even though the leader is alive? I have noticed that I loose some
messages when this happens(with request.required.acks=0) ?

thank you,
shweta

Viewing all articles
Browse latest Browse all 5648

Trending Articles