Loki scaling and performance

Keeping a growing Loki cluster fast and stable: caches, query scheduling, autoscaling, zone-aware rollouts and the limits that protect it.

Loki caching with Memcached

Configuring chunk, results and index caches for Loki: Memcached in the Helm chart, Redis and embedded alternatives, why only one backend per cache, and when memcached-extstore pays off.

Autoscaling Loki queriers with KEDA

Scaling queriers with demand through the day using KEDA and the query-scheduler's in-flight request metric, the prerequisites, and avoiding scale-down during long queries.

Zone-aware ingesters for faster Loki rollouts

Replicating each stream to one ingester per zone so a whole zone can restart at once: the default three random ingesters, rollout speed for large clusters, and Kubernetes zone placement.

Tuning Loki ingestion rate limits

Setting ingestion_rate_mb, burst sizes, per-stream limits and maximum line size globally or per tenant, reading rejection reasons from discarded sample metrics, and fixing senders instead of raising limits.

Running a separate Loki query scheduler

Moving the query-frontend's queue into a query-scheduler so several frontends can run, the configuration on frontends and queriers, and how it underpins querier autoscaling and query fairness.

Load testing Loki with k6 and xk6-loki

Simulating realistic push and query load on a Loki cluster with Grafana k6 and the xk6-loki extension before go-live or after scaling changes, and what to measure.

Kafka as a durable write buffer for Loki

When adding Kafka between Loki distributors and ingesters helps, how ingesters consume partitions, the experimental status and the operational load of running Kafka alongside Loki.

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.