Setup & Tech Guides8 min read•Last updated: •By SkyRain Cloud Team

Kafka Hardware Requirements: Sizing CPU, RAM, Disk and Network for Brokers

Apache Kafka is often described as "light on hardware", and in one sense it is: brokers rarely max out their CPUs. But Kafka is extremely sensitive to disk throughput, memory for the operating system's page cache, and network capacity, and getting those wrong produces lag, under-replicated partitions and outages under load. Understanding Kafka hardware requirements before you buy servers saves expensive surprises.

This guide explains what each resource does in a Kafka broker, summarises the published recommendations, shows how to calculate disk and network needs from your own traffic, and covers what changes now that Kafka runs without ZooKeeper.

Quick answer

Kafka brokers need fast disks with high sequential throughput (NVMe, or several disks, often in RAID 10), plenty of RAM for the OS page cache (32–64 GB is common, while the JVM heap itself rarely needs more than about 6 GB), moderate CPU (more cores beat faster cores, and TLS adds load), and enough network bandwidth for producer traffic plus replication. Size disk from throughput × retention × replication factor. Production clusters use at least three brokers and, in KRaft mode, three or five small controller nodes.

How Kafka uses each resource

ResourceWhat Kafka does with itUsual bottleneck?
DiskAppends every message to log segments; replicas write the same data againVery often
RAM (page cache)Recent data stays in the OS cache, so consumers read from memory instead of diskOften, when consumers fall behind
NetworkProducer traffic in, consumer and replication traffic outOften at high throughput
CPUCompression, TLS encryption, request handlingRarely, unless TLS or heavy compression
JVM heapBroker metadata and request handling, not message storageRarely

The key insight is that Kafka stores data in files and relies on Linux to cache them. Most of a broker's memory should be left free for the page cache, not given to Java.

Kafka hardware requirements – SkyRain Cloud bare metal servers in India

Published Kafka hardware requirements and recommendations

Confluent's guide to running Kafka in production offers a starting point for a typical broker, and Apache Kafka's own operations documentation covers OS tuning. In summary:

  • Memory: 64 GB is a common choice and 32 GB machines are not unusual. Size the page cache to hold roughly 30 seconds of writes at minimum; more lets lagging consumers read from memory.
  • JVM heap: Kafka rarely needs a heap larger than about 6 GB.
  • CPU: more cores are better than faster cores. Enabling TLS can raise CPU use considerably.
  • Disks: multiple disks or fast NVMe; RAID 10 is described as the safest general choice. Keep the operating system on separate storage from Kafka data.
  • Consistency: use identical hardware for every broker.
  • OS limits: allow at least 100,000 open file descriptors for the broker and raise vm.max_map_count for clusters with many partitions.

Kafka disk sizing: the retention maths

Disk capacity follows directly from your traffic:

storage = write throughput × retention period × replication factor × 1.3 (headroom)
Write rateRetentionReplicationRaw dataWith headroom (cluster total)
1 MB/s3 days3~0.78 TB~1 TB
5 MB/s7 days3~9 TB~12 TB
20 MB/s3 days3~15.5 TB~20 TB

Divide the total by the number of brokers to get disk per broker. Compression on the producer side (lz4 or zstd) often reduces these figures substantially for text and JSON payloads. Throughput matters as much as capacity: each broker must sustain its share of writes plus replica writes plus any reads that miss the cache. NVMe handles this easily; spinning disks need several spindles per broker.

Memory and network sizing

Memory

A practical rule: heap of 4–6 GB, a few GB for the operating system, and the rest for page cache. On a 64 GB broker that leaves roughly 50 GB of cache. If consumers usually read within minutes of data being written, the cache serves nearly all reads and disks only handle writes. If consumers replay hours or days of history, reads hit disk and disk throughput becomes the limit.

Network

A 1 Gbps port carries about 110–120 MB/s in practice. Remember that a broker's outbound traffic includes every consumer group and replication to other brokers. With replication factor 3 and two consumer groups, each megabyte produced can become several megabytes of traffic. Plan to stay below about 60–70% of the port at peak.

KRaft: Kafka without ZooKeeper

Kafka 4.0 removed ZooKeeper; clusters now use KRaft, where a small set of controller nodes manages metadata. Controllers need little: Confluent's starting point is around 4 cores, 4 GB of RAM and a modest SSD each, in a group of three or five. In small clusters the controller role can run on the brokers ("combined mode"), but separate controllers are recommended for production.

Cluster shapes that make sense

UseShapeNotes
Development and testingOne server, single broker in combined modeReplication factor 1; no fault tolerance
Small productionThree brokers (combined or with three small controllers)Replication factor 3, min.insync.replicas 2
Larger productionThree or more brokers plus three or five dedicated controllersSpread across racks or locations if possible

Running three broker VMs on one physical server is fine for testing, but it is not high availability: if the server fails, all three brokers go with it. On a dual-socket machine, pin each broker VM to one NUMA node; see our NUMA guide.

Test with your own traffic before you buy

Published numbers are starting points. Before committing to hardware, run Kafka's bundled load tools against a test broker with message sizes and compression similar to production: kafka-producer-perf-test.sh measures how fast a broker accepts writes, and kafka-consumer-perf-test.sh measures read throughput. Watch disk utilisation with iostat -x 1 and network with sar -n DEV 1 while the tests run. Whichever resource reaches its limit first tells you what to buy more of, and the results give you real numbers to put into the retention and network calculations above.

Operating system settings worth checking

  • Raise open-file limits for the Kafka service (LimitNOFILE=100000 or higher in the systemd unit).
  • Increase vm.max_map_count if you run thousands of partitions.
  • Use XFS or ext4 for log directories and mount them with noatime.
  • Keep vm.swappiness low so the broker is not swapped out.
  • Monitor under-replicated partitions, request latency, disk usage and consumer lag; these show hardware limits early.

Memory generation matters less than capacity and channels for Kafka; see DDR4 vs DDR5 for servers. For storage redundancy choices, see RAID levels explained.

Why businesses choose SkyRain Cloud dedicated servers

If you are planning Kafka on bare metal in India, SkyRain Cloud dedicated servers provide:

  • Indian data centers, Indian latency. Intel Xeon dedicated servers are hosted in Mumbai and Delhi, close to customers across India.
  • The whole machine is yours. 100% unshared hardware: no other tenants competing for CPU, memory or disk.
  • DDoS protection included on the network, so a flood aimed at your IP does not have to become your problem alone.
  • Full control. Root or Administrator access plus iLO/IPMI out-of-band management to reboot, reinstall or mount your own ISO.
  • Real support channels. 24/7 support tickets, WhatsApp and a Discord community, plus a public status page.
  • Simple billing. Monthly billing in rupees with UPI, net banking and cards.

Frequently Asked Questions

How much RAM does a Kafka broker need?
32–64 GB is common. Keep the JVM heap around 4–6 GB and leave most memory to the operating system's page cache, which Kafka relies on for fast reads.
Does Kafka need a lot of CPU?
Usually not. More cores help more than faster cores, and TLS encryption or heavy compression increases CPU use.
How do I calculate Kafka disk space?
Multiply write throughput by retention time and replication factor, then add about 30% headroom. Divide by the number of brokers for per-broker storage.
Is NVMe necessary for Kafka?
Not strictly, but disk throughput is often Kafka's bottleneck. NVMe or multiple disks in RAID 10 give the headroom most production clusters need.
How many brokers do I need for production?
At least three, so you can use replication factor 3 and keep producing when one broker is down.
Does Kafka still need ZooKeeper?
No. Kafka 4.0 removed ZooKeeper; clusters use KRaft controller nodes, which need only modest hardware.

Conclusion

Kafka hardware requirements come down to disks, memory for the page cache and network, with CPU a distant fourth unless you use heavy TLS or compression. Size disks from throughput × retention × replication, keep the JVM heap small and leave the rest of RAM to Linux, keep network use well below the port's limit, and run at least three brokers for production. Start from published guidance, then measure your own traffic.

To run Kafka on dedicated hardware in India, see our dedicated servers.

SkyRain Cloud Dedicated Server Plans

Unshared Intel Xeon bare-metal servers in Mumbai and Delhi data centers with 1 Gbps connectivity. Every plan includes iLO / IPMI out-of-band management, DDoS protection, Full root / Administrator access, Additional IPv4 addresses available and Billed monthly.

PlanCores / ThreadsRAMStorageNetworkPriceGood forBuy
Business
2× Intel Xeon E5-2699 v4 (Mumbai / Delhi)
44 / 88 (2.2 GHz base, 3.6 GHz turbo)128 GB DDR4 ECC1 TB NVMe SSD1 Gbps₹17,999/monthBusiness websites, stores, databases, ERP and many client sitesOrder
Enterprise
2× Intel Xeon Platinum 8269CY (Mumbai / Delhi)
52 / 104 (2.5 GHz base, 3.8 GHz turbo)128 GB DDR4 ECC1 TB NVMe SSD1 Gbps₹19,999/monthVirtualization hosts, large databases, SaaS and container platformsOrder
CustomMore RAM or storage, a second server for failover, or several servers for a cluster: quoted by the team.Clusters, failover pairs, unusual specsAsk

Prices are monthly in INR as listed on the SkyRain Cloud store (verified 2026-11-23). Live stock and final price are shown at checkout.

Instant UPI • ₹649/mo
Fast KVM Cloud Provisioning