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.

Fig. 2 · Plural Logs vs Grafana Loki
Query load
Plural Logs
writers and per-shard reader groups on SlateDB
AgentsAlloy · OTel · Fluent BitGrafanaquerieswriter1 shard / pod×3reader1 group / shard×6Kubernetes LeasesSlateDBone per shardObject storage
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.

Grafana Loki
microservices mode
AgentsPromtail · Alloy · OTelGrafanaqueriesdistributor×8ingesterRF=3 · WAL on PVC×18query-frontend×2scheduler×2querier×15index-gw×3memcached×3 pools×6memberlist rings: distributor · ingester · compactor · schedulercompactor×1ruler×2Object storagechunks + TSDB index
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.

Pod counts are illustrative sizing for comparison, derived from vendor capacity guides and our provisional writer envelope. They are not benchmark results.

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 Lease guarantees 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:

ComponentWhy it existsWhat it costs you
distributorValidates writes and hashes streams onto the ingester ringRing membership, rate-limit tuning
ingesterBuffers chunks in memory, replicated 3×Persistent WAL volumes, careful rollouts, 3× write fan-out
query-frontendSplits and caches queriesResults-cache sizing
query-schedulerQueues work for queriersAnother ring, another deployment
querierExecutes LogQL against ingesters and storageScales with scan width
index-gatewayServes TSDB index lookupsStateful; needs disk
compactorCompacts the index, applies retentionSingleton; must be healthy for deletes
rulerEvaluates alert rulesSeparate scaling
memcached ×3Chunk, results, and index cachesThree 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

EventPlural TelemetryLoki
Writer / ingester crashLease expires, another writer reopens the shard from S3. Unflushed applied writes in the delta are lost; use written or durable if that mattersReplicas keep serving; WAL replays on restart
Zone outagePods reschedule and reopen shards from the bucketSurvives if replicas are spread across zones
Object store slowdownWrite latency grows and backpressure returns 429 with Retry-AfterFlushes back up and ingester memory grows
Bad rolloutOne product CR to roll back; the operator rolls writer and reader StatefulSetsUp 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.