Cluster Planning: Hardware Sizing, Capacity and Network Design

Big Data and Hadoop Administrator 17 min min read Updated: Nov 16, 2026 Intermediate
Cluster Planning: Hardware Sizing, Capacity and Network Design
Intermediate Topic 1 of 4

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

text Raw capacity needed = usable data x replication factor / (1 - temp/overhead space) x (1 + growth) Rules of thumb: - replication factor: 3 (or ~1.5 with erasure coding for cold data) - keep 25% to 30% free for temporary data, shuffle, compaction and node failures - never run disks above ~80% full

Worked example

text Data today: 200 TB Growth: 40% per year, plan 2 years -> 200 x 1.4 x 1.4 = 392 TB usable Replication 3 -> 392 x 3 = 1,176 TB raw Keep 25% free -> 1,176 / 0.75 = 1,568 TB raw Worker node: 12 disks x 8 TB = 96 TB raw Workers needed: 1,568 / 96 = 16.3 -> 17 nodes (add 1 to 2 spares -> ~19)

Worker Node Sizing

ResourceTypical production workerNotes
CPU2 sockets, 16 to 48 coresMore cores for Spark and Hive heavy clusters
RAM128 to 512 GBSpark and Hive are memory hungry. Leave 10% to 20% for the OS and daemons
Data disks12 to 24 x 4 to 16 TB SATA/SAS (JBOD)More spindles = more parallel throughput
OS disk2 x SSD in RAID 1Separate from data
Network10 GbE (25 GbE for new builds), bondedShuffle 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

RoleCPU / RAMDisksNotes
NameNode (active and standby)16+ cores, 128 to 512 GB RAMRAID 10 or SSD for metadata, separate journal diskMemory scales with files and blocks
ResourceManager (active and standby)16 cores, 64 GBRAID 1Can be shared with other masters on small clusters
JournalNodes (3)SmallFast dedicated diskLow latency matters; can share with masters
ZooKeeper (3 or 5)4 cores, 8 to 16 GBSSD for transaction logOdd number of nodes
Hive metastore DB, Ranger DBDependsRAIDMySQL or PostgreSQL with HA/backup
Edge / gateway nodesModerateModerateWhere 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.

text Example: 150 TB of data, average file 256 MB -> about 600,000 files, ~1.2 M blocks (block 128 MB) Heap needed ~ 1.2 GB x headroom 3x -> 4 GB minimum. Small file case: 100 million files of 1 MB -> 100 M files + 100 M blocks -> 60 to 100 GB of heap!
Small files are an admin problem too: Millions of tiny files can exhaust NameNode memory while the disks are nearly empty. Set quotas, educate users and run compaction jobs.

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
text [ Spine switch A ] [ Spine switch B ] | | | | [ ToR rack 1 ] [ ToR rack 2 ] master1 worker1..worker10 master2 worker11..worker20

Cluster Sizes

SizeNodesLayout
Lab / dev1 to 3All services on few nodes, no HA
Small production6 to 122 masters (HA) + workers + edge
Medium20 to 1003 to 5 masters, dedicated ZooKeeper and database
Large100 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
Plan for headroom and review quarterly: Track real growth with monitoring and revise the forecast. Buying hardware takes months, so start early.

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.

Quick Summary: raw = usable x 3 / 0.75 x growth; ~1 GB NameNode heap per million blocks.

Get Newsletter

Subscibe to our newsletter and we will notify you about the newest updates on Edugators