All Questions
Kafka hard

Why is it strictly recommended to leave at least 50-70% of a Kafka Broker's system RAM free for the Operating System, even if the JVM Heap is small?

  1. A Because Kafka performs its own internal memory compression using the CPU's L3 cache.
  2. B To accommodate the Operating System's 'Page Cache', which buffers topic data from disk. Kafka's 'Zero-Copy' performance depends on these files staying in RAM to avoid actual physical disk reads.
  3. C To prevent the JVM from entering a 'Safepoint' pause during heavy metadata updates.
  4. D Because the Linux Kernel requires 32GB of RAM just to maintain the TCP stack for a Kafka cluster.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions