Architecture
A worked example: a production log database, built with Plural Telemetry and with Grafana Loki. Same data and same queries, very different amounts of machinery.
Every Plural Telemetry database has the same shape, so this guide uses Logs as the example. The Metrics and Traces architecture pages make the same comparison against Mimir and Tempo.
- 2
- component kinds
- 9
- pods
- 0
- replicated disks
- 0
- hash rings
More writers means more shards from the next hour on, and a reader group for each. Nothing is copied or rebalanced; each group scales on its own, and any reader merges every shard over gRPC.
- 9
- component kinds
- 57
- pods
- 18 PVCs
- replicated disks
- 4
- hash rings
New ingesters join the hash ring and take over token ranges; every write fans out to three of them. Scaling down means flushing and handing off in-memory chunks and WALs one ingester at a time.
Use the controls to switch between the write and read paths, and drag the ingest slider. On the left, scaling adds pods to two StatefulSets. On the right, it adds pods to nine kinds of component, most of which have their own ring membership, cache sizing and failure modes.
The Plural Telemetry shape
A sharded Logs deployment is a writer StatefulSet, one reader StatefulSet per shard, and a bucket:
- Writers each own one storage shard, which is a SlateDB database. A Kubernetes
Leaseguarantees one owner per shard. - Readers form one reader group per shard. Each group opens its shard read-only, and any reader can answer a query over all of them.
Durability comes from object storage, not replicas. If a writer dies, another pod takes its Lease and reopens the shard from the bucket.
Writes. An agent sends a batch to any writer. Each entry is hashed to a shard (epoch sharding), forwarded to its owner, and committed to SlateDB, which uploads to object storage. Readers see it within about 10 seconds.
Reads. Grafana sends LogQL to any reader. The reader runs the query on its own shard in process, and streams each other shard's partial result from that shard's group over gRPC. Every group prunes by labels and time and fetches only the blocks it needs through a RAM + NVMe cache. The receiving reader merges streams across shards.
The Loki shape
Loki's microservices mode, the one Grafana recommends above about 1 TB/day, splits the same job across many services:
| Component | Why it exists | What it costs you |
|---|---|---|
| distributor | Validates writes and hashes streams onto the ingester ring | Ring membership, rate-limit tuning |
| ingester | Buffers chunks in memory, replicated 3× | Persistent WAL volumes, careful rollouts, 3× write fan-out |
| query-frontend | Splits and caches queries | Results-cache sizing |
| query-scheduler | Queues work for queriers | Another ring, another deployment |
| querier | Executes LogQL against ingesters and storage | Scales with scan width |
| index-gateway | Serves TSDB index lookups | Stateful; needs disk |
| compactor | Compacts the index, applies retention | Singleton; must be healthy for deletes |
| ruler | Evaluates alert rules | Separate scaling |
| memcached ×3 | Chunk, results, and index caches | Three fleets to size |
None of these are bad decisions. They follow from Loki's design: recent data lives in replicated ingester memory, so durability, replication, ring coordination and query fan-out all have to be built into the cluster. Plural Telemetry moves those concerns into object storage and Kubernetes primitives instead.
How scaling works
Reads scale by adding readers, which are stateless views over the bucket. Each shard's group scales on its own, by hand or with a CPU-targeted HorizontalPodAutoscaler, and new groups appear as writers add shards.
With Loki, adding ingesters triggers a ring rebalance and changes which three replicas own each stream. Removing ingesters requires flushing their in-memory chunks first. Read capacity scales across several tiers: frontend, scheduler, queriers, index gateways, and caches.
Failure modes, compared
| Event | Plural Telemetry | Loki |
|---|---|---|
| Writer / ingester crash | Lease expires, another writer reopens the shard from S3. Unflushed applied writes in the delta are lost; use written or durable if that matters | Replicas keep serving; WAL replays on restart |
| Zone outage | Pods reschedule and reopen shards from the bucket | Survives if replicas are spread across zones |
| Object store slowdown | Write latency grows and backpressure returns 429 with Retry-After | Flushes back up and ingester memory grows |
| Bad rollout | One product CR to roll back; the operator rolls writer and reader StatefulSets | Up to nine components with version-skew rules |
Plural Telemetry trades in-cluster replication for object-store durability. That's the right trade for most observability data, and the cost estimates show what it's worth.