Sizing a Loki cluster for your daily log volume starts with a tier, not a guess
Loki's sizing guide maps daily ingestion into tiers and gives starting CPU, memory and replica counts for each component, so you begin from a documented baseline rather than a guess. Those starting numbers are only a floor until you check them against your query load, because the same ingestion volume can need very different querier capacity depending on how people search. Start by measuring your real daily volume in gigabytes or terabytes, then use that figure to choose a deployment mode before you pick any resource values.
Loki documents three deployment modes. Monolithic mode runs everything in a single binary and fits clusters up to about 20 GB of logs per day, which covers most proofs of concept and small teams. Simple scalable mode separates read, write and backend targets and is documented for volumes approaching 1 TB per day, but the Loki documentation states it is being deprecated and will be removed with the Loki 4.0 release, so a new cluster built on it will need a migration plan. Microservices mode is the path for very large clusters, and it is the mode the sizing tiers are written for. Confirm the current mode boundaries and deprecation timing in the Loki deployment modes docs before you commit, since the reviewed release was v3.7.8 and documentation changes between releases.
When you have chosen a mode, record the version you plan to deploy and check the release notes for that version, because component names, configuration keys and recommended resources can change. Ask your platform team which query patterns are expected, such as dashboards that run constantly or ad hoc investigations over long time ranges, since those patterns drive querier demand more than ingestion does. Treat the tier table as the starting point for a sizing review, not the final answer.
Which deployment mode fits your ingestion volume
Monolithic mode runs Loki as a single binary that handles write, read and backend work in one process. Loki's deployment modes documentation places it at up to about 20 GB of logs per day, which makes it the simplest option for small teams, evaluations and single-site services. Because every component shares one process, there is little to tune and few moving parts to troubleshoot.
- Components: one Loki binary covers ingestion, querying, the compactor and storage access.
- Volume range: up to about 20 GB of logs per day according to the deployment modes documentation.
- Trade-off: a single process is a single point of failure unless you run several instances against shared object storage.
- Scaling limit: you cannot scale the read and write paths independently, so growth eventually forces a move to another mode.
- Operations: upgrades and restarts are straightforward, but a bad configuration affects the whole cluster at once.
Before choosing this mode, confirm your daily volume with a measured sample rather than a guess, and check whether you need high availability, which is covered by running multiple monolithic instances.
Simple scalable mode splits Loki into separate read, write and backend targets so each path can be scaled on its own. The deployment modes documentation places it at volumes approaching 1 TB per day. It was a common middle step between a single binary and full microservices, but the Loki documentation states that this mode is being deprecated and will be removed with the Loki 4.0 release.
- Components: read, write and backend targets run as separate groups of pods or processes.
- Volume range: approaching 1 TB per day according to the deployment modes documentation.
- Trade-off: the read and write split helps with uneven load, but the mode is on a removal path.
- Deprecation: the documentation says simple scalable mode will be removed with Loki 4.0, so it is not a stable long-term target.
- Migration: existing simple scalable clusters will need a planned move to microservices or monolithic HA before the removal.
If you already run this mode, ask your team to confirm the Loki version you target and the migration date for your upgrade path. For new builds, plan for microservices or monolithic high availability instead.
Microservices mode runs each Loki component as its own deployment, such as distributors, ingesters, queriers and the compactor. The deployment modes documentation positions it for very large clusters, and Loki's sizing guide groups microservices clusters into tiers that run from less than 3 TB per day up to about 30 TB per day. This is the mode most production planning should start from when volume is well above the monolithic range.
- Components: distributors, ingesters, queriers, query frontend, compactor and supporting services each scale separately.
- Volume range: very large clusters, with sizing tiers that begin below 3 TB per day.
- Trade-off: more components mean more configuration, more monitoring and more network traffic between them.
- Independent scaling: ingesters, queriers and the compactor can be sized to their own bottlenecks.
- Operations: you need a team that can run Kubernetes or an equivalent orchestrator and read ring health.
When you request an estimate, ask the implementer which sizing tier they used and how it maps to your measured daily volume and query load.
The right mode depends on measured daily ingestion, the number of teams querying logs and your tolerance for operating more components. Because simple scalable is deprecated, the realistic choice for most new builds sits between monolithic high availability for smaller volumes and microservices for larger ones. The decision should be made before storage and retention are designed, since those choices depend on the layout.
- Start with measurement: collect daily ingestion from your current log pipeline over a representative period.
- Match the volume range: use monolithic up to about 20 GB per day, and microservices for larger volumes.
- Plan for the deprecation: do not build new simple scalable clusters that will need a rebuild before Loki 4.0.
- Weigh operating skill: more components need more monitoring, upgrades and ring health checks.
- Confirm the Loki version: check the current release on the Loki releases page before fixing the layout.
Before you commit, confirm with your team which mode and Loki version your upgrade plan targets, and ask for a written sizing that names the mode, the tier and the assumptions behind them.
Sizing options by daily ingestion tier
This table compares Loki's three microservices sizing tiers by daily ingestion, the components each tier drives and the starting resources the sizing guide gives for the smallest tier. Read each row as a starting point, then confirm the larger tiers against the sizing guide directly before you request a quote.
| Daily ingestion tier | Components most affected | Suggested starting resources | When to pick this tier |
|---|---|---|---|
| Less than 3 TB per day | Ingesters, queriers, compactor | 6 ingesters at 2 CPU and 4 Gi each; 10 queriers at 1 CPU and 1 Gi each; 1 compactor at 2 CPU and 10 Gi | Your ingestion is below 3 TB per day and you expect query load to stay moderate; start small and add queriers as query demand grows |
| 3 to 30 TB per day | Ingesters, distributors, queriers, compactor, caching | Read the sizing guide for this tier directly; confirm replica counts and cache sizing for your volume | Your daily volume falls in the middle range and query patterns or retention length are driving the design more than raw ingestion |
| About 30 TB per day | Ingesters, distributors, queriers, compactor, caching | Read the sizing guide for this tier directly; confirm the memcached-extstore decision against the guide's threshold | Your volume is at the top of the range and you need the largest-scale layout, with caching and query tuning planned from the start |
| Query-heavy workloads (any tier) | Queriers, query frontend, caches | Sizing guide advises running as small and as many queriers as possible; unoptimized queries can need about 10 times the suggested querier resources | Dashboards or alerts scan wide time ranges or broad label sets; optimize queries before adding resources |
| Retention length (any tier) | Compactor, object storage | Compactor sized for retention work; confirm storage growth with your retention settings | You keep logs for long periods or need deletion by stream; confirm compactor capacity for your retention rules |
What each component's resources actually drive
Loki's write path, read path and maintenance jobs each consume resources for different reasons, so a single cluster-wide number hides the real constraints. The four cards below separate what each component is sized against, which inputs push it up, and what to check before you commit to replica counts.
Distributors
Distributors receive incoming push requests, validate them against tenant limits and forward streams to the right ingesters by hashing labels. Their load follows ingestion rate in bytes and lines per second, plus the number of streams in each batch, since parsing and validation cost grows with both. Check your peak ingestion rate, not the daily average, and confirm how your collectors batch and retry pushes, because bursty clients drive distributor CPU far more than steady ones.
Loki sizing guideIngesters
Ingesters hold recent log data in memory as chunks before flushing them to object storage, so their memory tracks active stream count and how long chunks stay open. High label cardinality multiplies the number of open chunks, and each chunk flush creates object storage writes. Ask for the number of active streams your label design will produce, and confirm the flush settings you plan to keep, because ingesters are the component most likely to run out of memory first.
Loki storage docsQueriers
Queriers execute LogQL queries against recent data in ingesters and older data in object storage, so their CPU and memory follow query concurrency and the amount of data each query scans. A few broad regex queries over long time ranges can consume more resources than the whole write path. The sizing guide says to run as many small queriers as possible and warns that unoptimized queries can need far more resources than suggested, so measure real dashboard and alert query patterns before you size the read tier.
Compactor
The compactor merges and deduplicates index files and, when retention is enabled, applies deletion rules that remove expired data. Its load grows with how much index and chunk data exists and how many retention rules you define, so longer retention periods and more per-tenant or per-stream rules mean more compaction work. Retention is disabled by default, so confirm with your data owners whether it is enabled in your configuration, because a compactor that is never configured to delete will keep growing storage indefinitely.
Loki retention docsHow query patterns and caching change the cluster size
The sizing guide's tier figures assume a read load that most teams have not measured yet, so query patterns can change the answer more than ingestion does. The guide advises running as many queriers as practical, each kept as small as possible, and it warns that unoptimized queries can need up to 10 times the suggested querier resources. A cluster sized from the ingestion tier alone can therefore look correct on paper and still fall behind when engineers start running broad searches in Grafana.
Three query characteristics move the querier count most. Broad label selectors, such as a selector that matches most streams in a tenant, force the queriers to read many more chunks than the query needs. Long time ranges multiply that work, because every additional hour of data is another set of chunks to fetch from object storage and decompress. Heavy LogQL aggregations, such as rate() or count_over_time() across wide ranges, add CPU work on top of the reads. Before you fix a querier count, pull the query history for the last few weeks from your Grafana or query logs, and note which selectors, ranges and aggregations dominate.
Caching changes the arithmetic in the other direction. The guide does not recommend memcached-extstore below 30 TB per day, so for most clusters in the smaller tiers, the reduction in object storage reads should come from fewer, narrower queries rather than from an extstore cache. If you plan to add caching, confirm the cache type, memory budget and eviction behavior against the Loki sizing guide for your ingestion tier before you purchase or allocate memory, and then measure the hit rate after go-live. Treat the tier table as a starting point, then adjust querier replicas from measured query latency and load.
How to size and validate a Loki cluster step by step
This sequence turns your measured log volume into a deployment mode, starting resources and retention settings, then proves with real queries that the cluster holds up before you commit to replica counts.
Measure ingestion volume and stream count
Your platform or observability team measures current or projected ingestion in GB per day, along with the number of active streams and the label sets that create them. Use your existing log shipper metrics or a sample of hosts and containers, and scale to the full estate. The step is done when you have a daily volume figure, a peak-to-average ratio, and a stream count written down with the date and source of each number. Ask any partner to show the measurement method, since projected volumes often miss bursty services.
Choose the deployment mode and sizing tier
Using the daily volume, select a deployment mode from Loki's documented options: monolithic for small volumes, simple scalable where it is still supported, or microservices for very large clusters. Note that simple scalable is being deprecated and will be removed with Loki 4.0, so new clusters should plan a path that avoids depending on it. Place the microservices cluster in its sizing tier. The step is done when you have a written mode decision, a tier, and the reasons, reviewed by the team that will run the cluster.
Set starting resources from the sizing guide
Take the starting resource values for the chosen tier from Loki's sizing guide and translate them into Helm or Tanka values for ingesters, distributors, queriers, query frontend and the compactor. For the smallest microservices tier, the guide suggests 6 ingesters at 2 CPU and 4 Gi, 10 queriers at 1 CPU and 1 Gi, and one compactor at 2 CPU and 10 Gi. Treat these as a baseline, not a finished design. The step is done when every component has explicit requests and limits in version control and a reviewer has confirmed the values match the guide for your tier.
Configure object storage, retention and the compactor
Point chunks and the index at a supported object store, such as Amazon S3, Google Cloud Storage or Azure Blob Storage, using the index schema your Loki version requires. Enable retention by setting retention_enabled on the compactor and define retention periods globally, per tenant, or per stream selector, keeping each rule at least 24 hours. Retention is disabled by default, so logs accumulate forever until you change it. The check is to confirm retention_enabled is set on the compactor, that the compactor is running, and that a test stream older than its retention period is removed after a compaction cycle.
Run a representative query load
Build a set of queries that match how your teams really search: a few broad time-range scans, dashboard panels that refresh, label filters on high-traffic services, and a handful of heavy aggregations. Run them against the cluster at the concurrency your Grafana dashboards and alert rules will produce. Loki's sizing guidance warns that unoptimized queries can need up to 10 times the suggested querier resources, so record query text alongside the timings. The step is done when you have latency results for each query class and a list of queries that need rewriting before they are resized.
Check utilization and adjust replicas
Review CPU, memory and restart metrics for ingesters, queriers and the compactor under the query load and at peak ingestion. Confirm that query latency meets the response times your teams agreed to, and that ingesters are not near their memory limits. Adjust replica counts first, then resource requests, and keep the sizing guide as a reference rather than a ceiling. Retest after each change. The step is done when utilization stays within headroom at peak, latency meets the agreed targets, and the final values, test queries and results are saved with the cluster configuration.
Record the baseline and schedule revalidation
Write down the validated configuration, the measured volume, the stream count, the query results and the retention settings as the sizing baseline for this cluster. Set alerts on ingestion rate, ingester memory and query latency so that growth is caught before it becomes an incident. Repeat the measurement whenever volume, stream count or query patterns change materially, and before any Loki version upgrade. The step is done when the baseline sits in your runbook and the alerts fire in a test.
How ingestion flows through the components being sized
The diagram starts at log sources, where Grafana Alloy ships logs to the distributors. Distributors hand streams to the ingesters, which write compressed chunks and index data to object storage. Queriers read recent data from the ingesters and older data from storage, while the compactor works directly on object storage to merge index files and apply retention. Check each hand-off separately, because the ingesters, queriers and compactor have different CPU, memory and replica needs.
Write path and read path through the Loki components covered by sizing.
Security and operational points that affect sizing
Capacity numbers are only part of the sizing decision. The proxy in front of Loki, the tenancy model, the object store and the retention setting all add load, change throughput or decide how fast storage grows. Check each one before you fix replica counts, because each changes what the tiers in the sizing guide mean for your cluster.
Authentication proxy adds load
Loki has no built-in authentication layer, so the documentation requires an authenticating reverse proxy such as nginx, HAProxy, OAuth2 Proxy or Pomerium in front of it. That proxy terminates TLS, checks identity and forwards every push and query, so it consumes its own CPU and adds latency to each request. Size it alongside the distributors and queriers, and load test it with your real push rate and query mix. Confirm where the proxy runs relative to your collectors and Grafana.
Loki authentication docsTenancy multiplies per-tenant load
With auth_enabled set to true, Loki treats each request as belonging to a tenant identified by the X-Scope-OrgID header. Per-tenant limits, streams and query concurrency then apply separately to each team or customer, so one noisy tenant can dominate ingesters and queriers. Decide early whether tenants share one cluster and how their limits are set. Ask your collectors and proxy to set the header consistently, because a missing header is a sizing and access problem at once.
Loki multi-tenancy docsObject store shapes throughput
Loki keeps compressed chunks and its index in object storage, so the store's request rate and bandwidth set how quickly flushed data can be written and read back. Amazon S3, Google Cloud Storage and Azure Blob Storage are the recommended production choices. S3-compatible systems such as MinIO and the local filesystem are supported but not typically recommended for production. If you run an on-premises store, benchmark its throughput against your daily volume before you commit to a tier.
Loki storage docsRetention is off by default
Retention is disabled by default, so the compactor keeps logs indefinitely until retention_enabled is set. Storage then grows every day at your ingestion rate, which changes object store capacity and cost long after the ingesters are sized. Set retention globally, per tenant or per stream selector, remembering each stream rule runs for at least 24 hours. Agree the retention periods with your compliance owners before go-live, and size the compactor for the deletion and compaction work they create.
Loki retention docsQuestions teams ask before sizing Loki
What drives the cost of a self-hosted Loki cluster?
Most of the recurring cost is compute for ingesters, distributors, queriers and the compactor, plus object storage for compressed chunks and the index. Compute scales with daily ingestion and with how heavy your queries are, and storage scales with how long you keep logs. The design work, including sizing, deployment path selection, retention rules and access controls, is a one-time cost. Ask any partner to split a quote into one-time design and build work, recurring infrastructure you pay your cloud or data center provider for, and optional retainers for upgrades and support, so you can see which costs continue after handover.
How long does Loki cluster sizing take, and what does it need from our team?
The duration depends on how well your log volume is documented and how many environments are in scope, so there is no fixed timeline that applies to every cluster. Sizing goes faster when your team can provide daily ingestion figures over a representative period, a sample of the queries people run most often with their time ranges, the target object store and network layout, and read access to the environment or a staging copy where load can be measured. Without measured query data, the sizing will rest on assumptions, and that is the most common reason the plan needs revisiting later.
Can our own team size a Loki cluster without a consultant?
Yes, if your team has the capacity and can measure the system. Loki's sizing guide gives starting resource figures for its tiers, and a team that already runs Kubernetes and object storage can apply them and then test with real traffic. A consultant is more useful when your daily volume is near the top of the documented range, when you run microservices mode for the first time, or when query load is unknown and you cannot yet predict the cost of heavy dashboards. In those cases the value is in the load testing and the written rationale, not in the initial arithmetic.
Why might the sizing guide's resource figures not fit our queries?
The guide's figures assume a particular mix of ingestion and query load, and your dashboards, alerts and ad hoc searches may differ from that mix. The guide notes that unoptimized queries can need about 10 times the suggested querier resources, and it recommends running as many small queriers as possible. Queries that use broad label selectors, long time ranges or heavy regular expressions cost far more than simple stream lookups. Measure query latency and querier memory with your own workload, then tune labels and query patterns before adding hardware, since a cluster sized only from ingestion volume will often be under-provisioned for analysts.
How do caching and retention change the cluster size?
Caching changes how much querier and object storage work each query generates, so it can reduce the compute you need for repeated dashboard queries. Retention changes storage size directly, because compactor-managed deletion only runs when retention is enabled, and logs are otherwise kept indefinitely. The sizing guide does not recommend memcached-extstore below 30 TB per day, so below that volume you should choose cache types on the basis of measured query repetition. Confirm retention periods, per-tenant rules and cache choices with the team that owns the data before you set compactor and storage capacity.
Which deployment mode should we pick for our daily log volume?
Loki documents three modes: monolithic for a single binary up to about 20 GB of logs per day, simple scalable for volumes approaching 1 TB per day, and microservices for very large clusters. The sizing tiers in the guide are for microservices clusters, grouped below 3 TB per day, between 3 and 30 TB per day, and about 30 TB per day. Simple scalable mode is being deprecated and will be removed with Loki 4.0, so teams starting now should plan for microservices or monolithic mode and confirm the current deprecation timeline in the Loki documentation before committing.
What should a quote for Loki sizing and deployment include?
A useful quote names each deliverable and the environment it applies to, including the sizing report with stated assumptions, the chosen deployment mode, the object storage and index configuration, retention and access settings, and the load test plan. It should list which items are one-time and which recur, state what you must provide, such as volume data, query samples and environment access, and say how changes in volume or scope are handled. Ask for the assumptions behind any resource figure, and for an explicit statement of what is excluded, such as ongoing operation, upgrades and the reverse proxy that Loki requires for authentication.
How DeployOpen scopes Loki sizing work
DeployOpen plans, implements and supports self-hosted Loki inside your own infrastructure, whether that is your cloud accounts, your data centers or an air-gapped network. Sizing is the first deliverable in most of our Loki work because the answer decides which deployment path, which node pools and which object storage layout the rest of the project depends on. Before any capacity figures are agreed, we need your measured daily ingestion, the number of streams and tenants you expect, how long you must keep logs, and which teams will query them and how. Those inputs are what turn Loki's sizing tiers into ingester, distributor, querier and compactor counts for your environment.
Most engagements are fixed-scope. We agree the scope, the deliverables and the timelines in writing before work starts, and a quote follows from that written scope rather than from a fixed price list. A sizing scope usually states which environment is in view, which measurements we will review, what the sizing report will contain, and what is out of scope, such as the rollout itself or query tuning. Ask for the scope document to name the assumptions behind each replica count, so you can revisit them when volume grows. Where your query patterns are unclear, we recommend confirming them with the teams who will use Loki before the scope is signed, because unoptimized queries can change the resource answer substantially.
Ongoing support is available as a retainer for teams that want help after the first deployment. A retainer can cover re-sizing when ingestion changes, Loki version upgrades, monitoring reviews and capacity checks against your growth forecast. Whether you need that support, and at what level, is a decision to make with your written scope in hand. Confirm with us which parts of the sizing work recur and which are one-time, so your budget reflects both.

