Ceph PG Calculator
Stop guessing at placement group counts. Enter your OSD topology and get mathematically correct pg_num and pgp_num values for every pool — with the exact CLI commands to create them.
Nova / OpenStack
Replicated + EC
CRUSH Aware
Multi-pool
Capacity Planning
Free · No Login
Cluster Topology
OSD Count // total in cluster
Planned Pools // total
Replication / Protection // default for pools
size=2
size=3
size=4
Erasure Code
Target PGs per OSD // Ceph recommends 100–200
Total Data (TB) // expected
OSD Capacity (TB) // each
CRUSH Failure Domain
host
rack
datacenter
osd
Pool Names & Weights // name · weight · type
PG Sizing Rules
Formula:(OSDs × target_pgs_osd) / rep_factor
Round:Always round UP to next power of 2
Per pool:Total PGs × pool_weight_fraction
Minimum:8 PGs min; 32 recommended per pool
pgp_num:Always set equal to pg_num
Sweet spot:100–200 PGs per OSD total
EC overhead:(k+m)/k × raw storage consumed
Memory:~10 MB RAM per OSD per 100 PGs
Documentation
-
Placement Groups — Official Guide ↗
Complete Ceph PG administration documentation
-
Managing Pools ↗
ceph osd pool create, set, ls detail
-
Erasure Code Profiles ↗
EC plugin configurations and overhead tables
-
CRUSH Maps ↗
Failure domain configuration and tuning
Calculation Results
configure your cluster topology on the left
and click CALCULATE PG COUNTS
to generate pool sizing and CLI commands
and click CALCULATE PG COUNTS
to generate pool sizing and CLI commands
Total PGs across all pools
—
—
Actual PGs/OSD
—
Raw Capacity
—
Usable Capacity
—
Storage Util.
—
Replication
—
EC Efficiency
—
| Pool name | Type | Weight | pg_num | pgp_num | PGs/OSD |
|---|
PG Distribution Heatmap
PGs / OSD
—
Storage utilization
—
CRUSH domain
—