Resource Limits & Sizing

Right-size your Raphtory deployment

Calculate CPU, memory, and storage requirements for your workload.

Quick Reference

Graph SizeCPU CoresMemoryStorageUse Case
<1M edges28GB20GBDevelopment, testing
1-10M edges416GB50GBSmall production
10-50M edges832GB200GBMedium production
50-100M edges1664GB500GBLarge production
100M+ edges32+128GB+1TB+Enterprise scale

Memory Calculation

Base Graph Memory

Formula: memory = edges × 100 bytes

Example: 10M edges ≈ 1GB base memory

Algorithm Overhead

Algorithms need additional memory:

AlgorithmOverhead
PageRank2× graph size
Louvain2× graph size
Betweenness3× graph size
FastRP embeddingsdimension × nodes × 4 bytes

Total memory needed: base + (2-3× base) = 3-4× graph size

Example Calculation

Graph: 10M edges
Base: 1GB
Algorithm overhead: 2-3GB
Recommended: 8-16GB

Add 20% buffer → 10-20GB total

CPU Sizing

Parallelization

Most algorithms parallelize well:

  • PageRank: Scales to 16+ cores
  • Louvain: Scales to 8-16 cores
  • Component algorithms: Scales linearly

Recommendations

  • Development: 2-4 cores
  • Production batch: 8-16 cores
  • Real-time: 4-8 cores with fast single-thread performance

Storage

Graph Data

  • In-memory only: Minimal (logs only)
  • Persistent graphs: 2× graph size for working space
  • Historical snapshots: Size × number of snapshots

Logs & Metrics

  • Application logs: ~1GB/day
  • Metrics (Prometheus): ~100MB/day

Total storage: Graph + logs + buffer (30% overhead)

Kubernetes Resource Configuration

Monitoring Resource Usage

Capacity Planning Calculator

JVM/Runtime Tuning

For JVM-based deployments:

For Rust (Raphtory default):

See Also