Bird
0
0

You want to optimize Kafka disk I/O for a high-throughput topic with many partitions. Which combination of settings is best?

hard📝 Application Q8 of 15
Kafka - Performance Tuning
You want to optimize Kafka disk I/O for a high-throughput topic with many partitions. Which combination of settings is best?
ASet num.io.threads to 1 and large log.segment.bytes
BDisable log segment rolling and use default io threads
CDecrease num.io.threads and small log.segment.bytes
DIncrease num.io.threads and set moderate log.segment.bytes
Step-by-Step Solution
Solution:
  1. Step 1: Consider high-throughput needs

    High throughput with many partitions requires parallel disk I/O and manageable segment sizes.
  2. Step 2: Choose settings for parallelism and segment size

    Increasing num.io.threads allows parallel disk access; moderate log.segment.bytes balances file size and rollover frequency.
  3. Final Answer:

    Increase num.io.threads and set moderate log.segment.bytes -> Option D
  4. Quick Check:

    More io threads + moderate segment size = optimized disk I/O [OK]
Quick Trick: Balance io threads and segment size for throughput [OK]
Common Mistakes:
  • Using too few io threads limits parallelism
  • Too large segments slow recovery
  • Disabling segment rolling causes huge files

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes