Setting up Apache Druid to serve petabytes of data is a significant infrastructure undertaking. Druid is a high-performance, column-oriented, distributed data store primarily used for real-time analytics on large datasets. It is designed for low-latency data ingestion and OLAP-style queries.
To recommend hardware, we should look at how Druid components work and then map them to an appropriate hardware architecture. Here's a guide for planning hardware infrastructure at petabyte-scale for Druid.
🔧 Druid Architecture Overview
A Druid cluster is composed of these main types of nodes:
- Historical nodes (serve queryable data segments)
- Middle Manager nodes (handle real-time ingestion & indexing)
- Broker nodes (query routing and federation)
- Coordinator nodes (manage data distribution, balancing)
- Overlord nodes (task management for data ingestion)
- Router nodes (API routing, optional)
- Metadata store (usually PostgreSQL/MySQL)
🖥️ Hardware Recommendations by Node Type
Assumptions:
- Your storage requirement is in the petabytes. Let's assume 1–5 PB to start.
- Your queries are OLAP-style (dashboards, aggregations, filters)
- You're okay with an initial investment in high-performance gear
🔹 1. Historical Nodes (most critical for petabyte-scale)
These nodes store and serve immutable data segments.
⚙️ Suggested Specs:
- CPU: 32–64 cores (e.g., AMD EPYC or Intel Xeon Scalable)
- RAM: 256–512 GB RAM (Druid uses off-heap memory for segment caching)
- Storage:
- 20–50 TB NVMe SSD locally per node (for segment performance)
- Use tiered storage: e.g., S3 or HDFS for long-term / rarely accessed data
- NIC: 10/25/40 Gbps
- # of nodes: Start with enough to store 3x replicated (optional), or tier replication
Tips:
- Consider using hot/warm/cold nodes. “Hot” nodes for recent data with SSDs, “cold” for archival with HDDs.
- Keep ~70% of heap off-heap cache for max performance.
🔹 2. Middle Manager Nodes
Responsible for streaming ingestion & batch indexing. CPU-heavy.
⚙️ Suggested Specs:
- CPU: 16–32 cores
- RAM: 64–128 GB
- Storage: 2–4 TB SSD, fast disk for intermediate segments
- # of nodes: Depending on ingestion rate (start with 3 to 5)
Consider Kubernetes autoscaling or provisioning extra MMs temporarily during heavy ingestion.
🔹 3. Broker Nodes
Load aggregations from historicals and return results.
⚙️ Suggested Specs:
- CPU: 16–32 cores
- RAM: 64–128 GB RAM (queries are memory-intensive)
- Storage: 1 TB SSD (mostly local caches)
- # of nodes: At least 3 (balances query load and redundancy)
🔹 4. Coordinator + Overlord+ Router
These can be co-located for small to medium clusters.
⚙️ Suggested Specs:
- CPU: 8 cores
- RAM: 32 GB
- Storage: 500 GB SSD
🔹 5. Metadata Store (PostgreSQL)
Holds metadata about segments, tasks. Needs IOPS and reliability.
- Storage: SSDs with redundancy or use AWS RDS / Aurora
- RAM: 64 GB
- Important: Backup regularly!
🛠️ Hardware Tiering Strategy (Optional but Recommended)
Use storage tiering to control cost:
| Tier | Use-case | Storage Type | Node Type |
|---|
| Hot | Recent months | NVMe SSD | Historical |
| Warm | Past year(s) | SATA SSD | Historical |
| Cold | Archive | HDFS/S3 | Deep Storage |
🤝 Cluster Sizing Formula (Rough Estimates)
A historical node can handle:
- ~2–4 TB of compressed usable data per 100 GB RAM
- ~1000–3000 QPS per node on average
For 1 PB (~1000 TB), assuming:
- 30 TB per historical node average → ~35 historical nodes
Add:
- Middle Managers: 5–10
- Brokers: 3–5
- Coordinator + Overlord: 2 (min)
- Metadata Store: 1 (high availability or managed preferred)
🧰 Other Tips
- Segment size: Keep ~500MB–1GB per segment for efficiency
- Segment granularity: Use hourly or daily
- Deep Storage: Use object-store backed (e.g., S3 with lifecycle policies)
💲 Rough Hardware Budget Planning
Assuming top-tier gear:
| Role | Cost per Server (USD) | Count | Total |
|---|
| Historical | 15,000–25,000 | 35 | ~$700k |
| Middle Mgr | 8,000–12,000 | 5 | ~$50k |
| Brokers | 8,000–12,000 | 3 | ~$30k |
| Coordinator/Overlord | 7,000 |
✅ Total Estimate: $800k+ on-prem (add network/SAN/etc.)
☁️ Should I Use Cloud Providers?
Depending on your team skills and cost model, consider:
- Amazon EMR + Druid + S3
- Apache Druid on Kubernetes (e.g., GKE, EKS, AKS)
- Imply Cloud (commercial Druid support from Imply, made by Druid creators)
✅ Summary
If you're serious about building a massive-scale Druid deployment, here’s what to focus on:
- Buy high-CPU, high-RAM servers with SSDs for Historical and Middle Managers
- Use tiered deep storage
- Architect for horizontal scaling
- Monitor with Prometheus + Grafana
Would you like me to generate a server BOM (bill of materials) or reference hardware SKUs from Supermicro, Dell, or HPE?