Start with Requirements
- How much data now and in 1 to 3 years? (growth rate)
- Daily ingest volume and retention period
- Types of workloads: batch ETL, SQL, Spark, streaming, ML
- Availability target (HA needed? DR site?)
- Compliance and security needs
- Budget: on-premises hardware or cloud
Storage Capacity Formula
Worked example
Worker Node Sizing
| Resource | Typical production worker | Notes |
|---|---|---|
| CPU | 2 sockets, 16 to 48 cores | More cores for Spark and Hive heavy clusters |
| RAM | 128 to 512 GB | Spark and Hive are memory hungry. Leave 10% to 20% for the OS and daemons |
| Data disks | 12 to 24 x 4 to 16 TB SATA/SAS (JBOD) | More spindles = more parallel throughput |
| OS disk | 2 x SSD in RAID 1 | Separate from data |
| Network | 10 GbE (25 GbE for new builds), bonded | Shuffle and replication are network heavy |
Balance matters: a rough guide is 1 core per 1 or 2 data disks and 4 to 8 GB RAM per core for analytic workloads.
Master Node Sizing
| Role | CPU / RAM | Disks | Notes |
|---|---|---|---|
| NameNode (active and standby) | 16+ cores, 128 to 512 GB RAM | RAID 10 or SSD for metadata, separate journal disk | Memory scales with files and blocks |
| ResourceManager (active and standby) | 16 cores, 64 GB | RAID 1 | Can be shared with other masters on small clusters |
| JournalNodes (3) | Small | Fast dedicated disk | Low latency matters; can share with masters |
| ZooKeeper (3 or 5) | 4 cores, 8 to 16 GB | SSD for transaction log | Odd number of nodes |
| Hive metastore DB, Ranger DB | Depends | RAID | MySQL or PostgreSQL with HA/backup |
| Edge / gateway nodes | Moderate | Moderate | Where users run clients |
NameNode Memory
The NameNode keeps all metadata in memory. A common rule of thumb is about 1 GB of heap per 1 million blocks (plus extra headroom). Count blocks, not just files.
Network Design
- Each rack has a top-of-rack (ToR) switch connected to a spine layer
- Aim for oversubscription of 2:1 to 4:1 or better between racks
- Use bonded NICs (LACP) for redundancy and throughput
- Use separate VLANs or networks for management, data and (if needed) storage
- Place replicas across at least 2 racks (configure rack awareness)
- Plan for IP addresses, DNS records (forward and reverse) and firewall rules
Cluster Sizes
| Size | Nodes | Layout |
|---|---|---|
| Lab / dev | 1 to 3 | All services on few nodes, no HA |
| Small production | 6 to 12 | 2 masters (HA) + workers + edge |
| Medium | 20 to 100 | 3 to 5 masters, dedicated ZooKeeper and database |
| Large | 100 to 1000+ | Federation, multiple clusters, dedicated infrastructure |
Cloud Alternative
In the cloud you size compute and storage separately: object storage (S3, ADLS, GCS) for data and transient or auto-scaling clusters for processing. Capacity planning becomes cost planning (see the cloud lessons).
Planning Checklist
- Capacity worksheet saved with assumptions and growth
- HA for NameNode, ResourceManager, ZooKeeper, metastore DB
- Rack topology defined
- Procurement lead time and spares
- Monitoring, backup and DR budget
- Test cluster for upgrades
Conclusion
Size storage with replication, free space and growth, choose balanced workers (cores, RAM, JBOD disks, 10 GbE), give masters enough memory for metadata, and design racks and networks for redundancy.

