Bird
0
0

You want to improve Kafka producer throughput for a high-volume system. Which combination of tuning changes is best?

hard📝 Application Q15 of 15
Kafka - Performance Tuning
You want to improve Kafka producer throughput for a high-volume system. Which combination of tuning changes is best?
AIncrease batch.size, increase linger.ms, and increase num.io.threads
BDecrease batch.size, decrease linger.ms, and decrease num.io.threads
CIncrease batch.size, decrease linger.ms, and decrease num.io.threads
DDecrease batch.size, increase linger.ms, and increase num.io.threads
Step-by-Step Solution
Solution:
  1. Step 1: Understand batch.size and linger.ms effects

    Larger batch.size and higher linger.ms allow Kafka to batch more messages, improving throughput.
  2. Step 2: Consider num.io.threads impact

    Increasing num.io.threads allows more parallel I/O operations, helping handle higher load.
  3. Step 3: Evaluate options

    Increase batch.size, increase linger.ms, and increase num.io.threads increases all three to improve throughput; others reduce some settings, which lowers throughput.
  4. Final Answer:

    Increase batch.size, increase linger.ms, and increase num.io.threads -> Option A
  5. Quick Check:

    Increase batch, linger, and I/O threads = A [OK]
Quick Trick: Increase batch size, linger time, and I/O threads for throughput [OK]
Common Mistakes:
  • Reducing batch size or linger.ms when throughput is needed
  • Decreasing I/O threads limits parallelism
  • Mixing increase and decrease incorrectly

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes