Bird
0
0

How can tuning num.io.threads and log.segment.bytes together improve Kafka's disk I/O under heavy load?

hard📝 Application Q9 of 15
Kafka - Performance Tuning
How can tuning num.io.threads and log.segment.bytes together improve Kafka's disk I/O under heavy load?
AMore io threads handle multiple segments; optimal segment size reduces flush overhead
BFewer io threads with large segments reduce CPU usage
CMore io threads with tiny segments increase disk fragmentation
DSetting both to zero disables disk I/O for faster processing
Step-by-Step Solution
Solution:
  1. Step 1: Understand interaction of io threads and segment size

    More io threads allow concurrent handling of multiple segments, improving throughput.
  2. Step 2: Effect of optimal segment size

    Choosing a balanced segment size reduces overhead from frequent flushes and rollovers.
  3. Final Answer:

    More io threads handle multiple segments; optimal segment size reduces flush overhead -> Option A
  4. Quick Check:

    Tuning io threads + segment size improves disk I/O efficiency [OK]
Quick Trick: Tune threads and segment size together for best disk I/O [OK]
Common Mistakes:
  • Assuming fewer threads always better
  • Ignoring segment size impact on flush frequency
  • Thinking zero disables disk I/O safely

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes