Bird
0
0

A consumer is experiencing low throughput despite high max.poll.records. Which configuration might cause this?

medium📝 Debug Q7 of 15
Kafka - Performance Tuning
A consumer is experiencing low throughput despite high max.poll.records. Which configuration might cause this?
Aauto.commit.interval.ms set to a high value.
Bfetch.max.bytes set too low, limiting batch size.
Cenable.auto.commit set to false.
Dsession.timeout.ms set too high.
Step-by-Step Solution
Solution:
  1. Step 1: Analyze max.poll.records and fetch.max.bytes relation

    max.poll.records limits records per poll, but fetch.max.bytes limits total data size fetched.
  2. Step 2: Effect of low fetch.max.bytes

    If fetch.max.bytes is too low, consumer cannot fetch large batches even if max.poll.records is high, reducing throughput.
  3. Final Answer:

    fetch.max.bytes set too low, limiting batch size. -> Option B
  4. Quick Check:

    fetch.max.bytes limits data size per fetch [OK]
Quick Trick: Low fetch.max.bytes blocks large batch fetches [OK]
Common Mistakes:
MISTAKES
  • Confusing auto commit settings with throughput
  • Assuming session timeout affects fetch size
  • Ignoring fetch.max.bytes impact on batch size

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes