Bird
0
0

You notice your Kafka producer throughput is low despite setting a large batch.size. Which of these could be a cause?

medium📝 Debug Q6 of 15
Kafka - Performance Tuning
You notice your Kafka producer throughput is low despite setting a large batch.size. Which of these could be a cause?
Aacks is set to 0, causing slow acknowledgments
Blinger.ms is set to 0, causing immediate sends
Ccompression.type is set to none, causing CPU overload
Dbuffer.memory is set too high, causing memory errors
Step-by-Step Solution
Solution:
  1. Step 1: Analyze linger.ms impact on batching

    If linger.ms is 0, producer sends batches immediately, preventing batch size from filling and reducing throughput.
  2. Step 2: Evaluate other options

    acks=0 reduces acknowledgment wait, compression.type=none reduces CPU, and high buffer.memory usually doesn't cause errors immediately.
  3. Final Answer:

    linger.ms is set to 0, causing immediate sends -> Option B
  4. Quick Check:

    linger.ms=0 limits batch size, lowers throughput [OK]
Quick Trick: linger.ms=0 stops batching, lowers throughput [OK]
Common Mistakes:
  • Confusing acks=0 with slow acknowledgments
  • Assuming no compression causes CPU overload
  • Thinking high buffer.memory causes errors immediately

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes