docs/sources/reference-pyroscope-v2-architecture/design-motivation/index.md
The v2 architecture addresses fundamental scalability and resilience limitations in v1 that cannot be resolved incrementally.
| Aspect | v1 | v2 |
|---|---|---|
| Write path | Distributor → Ingester → Object Storage | Distributor → Segment writer → Object storage + Metastore |
| Metadata | Per-tenant bucket index in object storage | Metastore (Raft-based, in-memory index) |
| Read path | Query frontend → Query scheduler → Querier → Ingester / Store-gateway | Query frontend → Metastore + Query backend |
| Compaction | Compactor (hash-ring sharded, per-tenant) | Compaction worker orchestrated by metastore |
| Replication | Write replication to N ingesters | No write replication; durability via object storage |
v2 addresses these issues by eliminating write replication in favor of object storage durability, centralizing metadata in the metastore for fast query planning and enabling stateless query backends that access object storage directly, and decoupling compaction into a more scalable job-based system orchestrated by the metastore.
For details on how the v2 architecture works, refer to About the Pyroscope v2 architecture.