How Kafka uses each resource
| Resource | What Kafka does with it | Usual bottleneck? |
|---|---|---|
| Disk | Appends every message to log segments; replicas write the same data again | Very often |
| RAM (page cache) | Recent data stays in the OS cache, so consumers read from memory instead of disk | Often, when consumers fall behind |
| Network | Producer traffic in, consumer and replication traffic out | Often at high throughput |
| CPU | Compression, TLS encryption, request handling | Rarely, unless TLS or heavy compression |
| JVM heap | Broker metadata and request handling, not message storage | Rarely |
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.

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_countfor 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 rate | Retention | Replication | Raw data | With headroom (cluster total) |
|---|---|---|---|---|
| 1 MB/s | 3 days | 3 | ~0.78 TB | ~1 TB |
| 5 MB/s | 7 days | 3 | ~9 TB | ~12 TB |
| 20 MB/s | 3 days | 3 | ~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
| Use | Shape | Notes |
|---|---|---|
| Development and testing | One server, single broker in combined mode | Replication factor 1; no fault tolerance |
| Small production | Three brokers (combined or with three small controllers) | Replication factor 3, min.insync.replicas 2 |
| Larger production | Three or more brokers plus three or five dedicated controllers | Spread 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=100000or higher in the systemd unit). - Increase
vm.max_map_countif you run thousands of partitions. - Use XFS or ext4 for log directories and mount them with
noatime. - Keep
vm.swappinesslow 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?
Does Kafka need a lot of CPU?
How do I calculate Kafka disk space?
Is NVMe necessary for Kafka?
How many brokers do I need for production?
Does Kafka still need ZooKeeper?
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.
| Plan | Cores / Threads | RAM | Storage | Network | Price | Good for | Buy |
|---|---|---|---|---|---|---|---|
| Business 2× Intel Xeon E5-2699 v4 (Mumbai / Delhi) | 44 / 88 (2.2 GHz base, 3.6 GHz turbo) | 128 GB DDR4 ECC | 1 TB NVMe SSD | 1 Gbps | ₹17,999/month | Business websites, stores, databases, ERP and many client sites | Order |
| Enterprise 2× Intel Xeon Platinum 8269CY (Mumbai / Delhi) | 52 / 104 (2.5 GHz base, 3.8 GHz turbo) | 128 GB DDR4 ECC | 1 TB NVMe SSD | 1 Gbps | ₹19,999/month | Virtualization hosts, large databases, SaaS and container platforms | Order |
| Custom | More RAM or storage, a second server for failover, or several servers for a cluster: quoted by the team. | Clusters, failover pairs, unusual specs | Ask | ||||
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.