Migrating Loki from simple scalable to microservices mode

Simple scalable Loki is being removed in Loki 4.0, so SSD clusters must move to microservices or HA monolithic mode. This page covers the documented path, the capacity it needs and the cutover risks.

On this page

Why a simple scalable Loki cluster has to move before 4.0

If your Loki cluster runs in simple scalable (SSD) mode, it has to move to microservices or HA monolithic mode before Loki 4.0, because 4.0 cannot run in SSD mode at all. Loki's documentation states that simple scalable deployment is being deprecated and will be removed with the 4.0 release, so this is a dated constraint on your roadmap rather than an optional upgrade. This page covers the path to distributed microservices mode, which keeps the same object storage, assumes a Helm-based deployment and starts the distributed pods before it stops the SSD pods. Your SSD read, write and backend targets stay in service while the new components take traffic, which is what makes a staged cutover possible.

The effort is mostly capacity planning, Helm values and cutover verification, not data migration. Because the storage layer does not change, your existing chunks and index remain where they are, and the work centers on running two sets of components on the same cluster for a period, sizing Kubernetes nodes to hold both, and confirming that queries, ingestion and retention behave the same before the SSD pods are removed. Ask your team to confirm the current Loki version, the Helm chart version and the object store in use, and to inventory every client that writes to or reads from the cluster, since those endpoints must keep working through the cutover. The exact duration depends on your cluster size and node headroom, so ask for it to be scoped against your own environment.

Which SSD components map to distributed components

This table pairs each simple scalable target with the distributed components that take over its work, so you can see which pods to scale and which settings to carry across. Read it as a planning map: the exact component list and configuration keys for your Loki version should be confirmed against the current migration guide before you write Helm values.

SSD targetDistributed counterpartsWhat changesConfirm before cutover
Read target (query path)Query frontend, querier, query scheduler and index gatewayQuery traffic moves from the read pods to separate components that you size and scale independently.Confirm the query scheduler and index gateway settings for your version and whether any are optional.
Write target (ingest path)Distributor and ingesterDistributors accept pushes and ingesters hold recent chunks, so ingester failure behavior and replication settings become your main durability concern.Confirm replication factor and ring settings match what your current write pods use.
Backend target (background work)Compactor, index gateway and rulerCompaction, index serving and rule evaluation split apart, and each can be scaled or restarted without touching the others.Confirm where the ruler runs and whether rules are reloaded from the same storage location.
Gateway in front of the targetsGateway routing to the new query and push servicesClients keep one entry point, but the gateway's routes must point at the distributed service names instead of the SSD services.Confirm the routing rules in the current chart, and test the X-Scope-OrgID header is still forwarded.
Shared object storage and schemaSame bucket, index and period configurationStorage does not change for this migration path, so existing chunks stay readable in place.Confirm the schema_config and storage_config blocks are copied unchanged in the new values file.
Memberlist ringMemberlist ring spanning distributed componentsComponents still coordinate through a ring, but the set of members grows and each component type joins it.Confirm memberlist join addresses resolve across old and new pods during the overlap period.
Retention settingsCompactor retention configurationRetention runs in the compactor, so the compactor must be the only component that deletes data after the move.Confirm retention_enabled and per-tenant rules are carried over and that old SSD backend pods no longer run compaction.
Failure behavior and scalingIndependent scaling per componentA failed query pod no longer affects ingest, but each component needs its own replica count and resource requests.Plan Kubernetes capacity for both sets of pods during the overlap, since both run before SSD pods shut down.

Documented tools and paths for this migration

The documented path for this move is the Loki SSD to distributed guide, applied through the Helm chart and checked against the configuration, storage and retention references. Each card below is one item you will open or run during planning and cutover, in roughly the order you need them.

Loki SSD to distributed guide

This is the primary procedure. It states that the move needs no change to the underlying data storage, assumes a Helm deployment and starts distributed pods before the SSD pods are shut down. Read it end to end before sizing, then write your cutover runbook around its ordering. Confirm each step against the Loki version you run today and the version you plan to reach.

SSD removal release
4.0
Migration guide

Distributed mode Helm values

The Helm values file defines the read, write and backend components that replace SSD targets. Review replica counts, resource requests, persistence and the storage block line by line against your current values. Keep the existing storage settings unchanged so the new pods read the same chunks and index. Diff the rendered manifests with helm template before any apply.

Loki configuration reference

The configuration reference defines the keys your Loki config must carry into distributed mode, including auth_enabled, schema configuration and common storage settings. Check every key that differs between SSD and distributed charts, and confirm which settings the chart sets for you. Record the final rendered config as the artifact you review during change control.

Storage and retention checks

Because the data layer does not change, confirm that your schema_config periods and object store settings remain identical in the new config. Check that retention_enabled and any per-stream rules are set the same way in the compactor, so deletion does not change behavior at cutover. Note the compactor runs as a single component that must not be duplicated during the overlap.

Minimum stream rule
24 hours

Cluster tools for verification

Use kubectl to confirm pod readiness, rollout status and that SSD and distributed pods both serve the expected ring membership during the overlap. Use helm to track release revisions so you can roll back. Confirm the gateway or service selector sends traffic only to the intended components before you remove any SSD pod.

Loki query and ingestion metrics

Loki exposes metrics for ingestion rates, failed pushes, query latency and ring health. Build a dashboard from these before the migration and compare it during the overlap. Watch for dropped or duplicated log lines by comparing counts for a known test stream in Grafana. Treat any sustained rise in push errors as a stop condition.

How the parallel run and cutover run in order

This sequence keeps simple scalable Loki serving logs while distributed components come up beside it, so each stage can be verified before traffic moves and before any SSD pods are removed.

  1. Inventory the current SSD configuration

    The platform engineer records the live SSD deployment: Helm chart and values, the storage backend and bucket layout, the schema and period_config entries, retention settings, the compactor configuration, auth_enabled and any per-tenant limits, and the gateway routing. This inventory is the reference every later check compares against. It is done when the team holds a versioned copy of the values and config in Git and can name each tenant and each retention rule that applies to it. Because the migration keeps data storage unchanged, this inventory also confirms which settings must remain identical in the new deployment.

  2. Size Kubernetes capacity for both pod sets

    The platform team calculates the CPU, memory, persistent volume and node capacity needed to run the SSD pods and the full distributed pod set at the same time, plus headroom for rollout surges. It also checks namespace resource quotas, pod disruption budgets and storage class limits. The output is a capacity worksheet approved by the platform owner, with node pools confirmed to have room. Confirm the sizing with your own query and ingest rates, since the documentation does not give a fixed figure for this overlap.

  3. Deploy distributed pods beside SSD

    Engineers install the distributed Helm release using values that point at the same object storage and schema as the SSD release, and start its components while SSD continues to take writes and serve reads. The documented guide starts distributed pods before any SSD pods are shut down, so this step is the first live change. It is done when every distributed component reports ready and the ring membership shows all expected members. Keep the SSD release untouched during this step.

  4. Verify ingestion and queries on both sets

    The team sends a known test stream through the write path and confirms it is queryable from both the SSD read path and the distributed read path, using LogQL queries that return the same results. They also check tenant isolation with the X-Scope-OrgID header for each tenant, and confirm that compactor and retention logs show no new errors on the distributed side. Record the query results and latencies for the test set. The step is done when both paths return matching results for every tenant under test.

  5. Shift the gateway to distributed

    The gateway or write path is switched to the distributed components in a controlled change, usually one tenant or one ingest source at a time where the setup allows it. Agents that send logs keep their endpoint, so the change is made at the routing layer and not on every host. The team watches ingestion errors, query errors and dashboard panels during the change window. It is done when all traffic flows through the distributed path and the SSD pods receive no new requests.

  6. Scale down SSD and confirm background jobs

    Once traffic has been stable on the distributed path, the SSD replicas are scaled down and then removed through the Helm release. Before the SSD release is deleted, the team confirms that the compactor runs on the distributed deployment, that retention deletes expected data, and that no component still depends on SSD-only services. The step is done when the compactor reports successful runs, retention behaves as configured in the inventory, and the SSD release no longer appears in the cluster.

The Kubernetes capacity you need during the overlap

During the SSD to microservices move, the distributed pods start before the SSD pods shut down, so for a period both component sets consume cluster resources at the same time. The guide assumes a Helm deployment and says the underlying data storage does not change, which means the overlap is mostly a compute and scheduling question rather than a data one. Before the cutover, add up the requests and limits of the SSD read, write and backend pods, then add the distributed component pods you plan to run, and confirm the sum still fits on the nodes you have. Ask your platform team to check CPU and memory requests, not only limits, because the scheduler places pods based on requests.

Persistent volumes deserve the same attention. Confirm which distributed components will hold a persistent volume for caches or ingester write-ahead logs in your values file, and whether your storage class can provision those volumes while the SSD volumes still exist. Pod counts also matter: each component usually runs more than one replica for availability, so the overlap can double the number of Loki pods for a while. Check that your cluster has a pod ceiling and IP address space that cover both sets, and that pod disruption budgets and anti-affinity rules do not block the rolling shutdown of the old pods.

Control plane and node headroom decide whether the overlap schedules at all. Use a Kubernetes minor version that is still maintained. As of September 2026, the project maintains 1.37 (end of life October 28, 2027), 1.36 (June 28, 2027) and 1.35 (February 28, 2027), according to the Kubernetes releases page. If your cluster runs an older minor version, plan that upgrade as a separate, earlier change. During any upgrade, the version skew policy requires the kube-apiserver to move one minor version at a time, before the kube-controller-manager, kube-scheduler and kubelets, and kubelets may run up to three minor versions behind the API server. Do not start the Loki cutover on nodes that are mid-upgrade, and confirm with your cluster provider which versions its managed control plane supports.

What drives the effort and cost of the cutover

This table lists the factors that change how much work the move from simple scalable to Distributed mode involves, and what each one means for a quote. Read each row as a question to answer about your own cluster before asking a partner for scope. The main takeaway is that log volume, tenancy and spare Kubernetes capacity shape the work more than the Helm change itself.

DriverEffect on workWhat to ask a partner to quote
Daily log volume and cluster sizeRaises work. More ingest and query traffic means longer side-by-side soak time and larger write and read pools to size before cutover.Sizing assumptions for each component, the traffic level used for load tests, and whether the quote includes a sizing review.
Number of tenants and per-tenant limitsRaises work. Each tenant's limits, overrides and query paths must be checked against the new read and write targets.Whether tenant limit files are migrated and tested, and how many tenant query paths are verified after cutover.
Retention rules and stream selectorsRaises work when rules are per tenant or per stream. Compactor and retention behavior must be verified so old data is not removed early or kept unexpectedly.How retention settings will be carried over, who signs off on the compactor configuration, and what evidence is delivered.
Custom ring or memberlist settingsRaises work. Custom ring settings may need changes or explicit carry-over so distributed components join one memberlist cluster.Whether ring and memberlist settings are reviewed against the current cluster, and how ring health is checked during the transition.
Grafana and Alloy clients behind the gatewayRaises work with the number of clients. Each Grafana data source and each Alloy push endpoint must keep working through the gateway during cutover.An inventory of clients and endpoints, the test plan for each, and whether client configuration changes are included in scope.
Authentication in front of the gatewayRaises work when an authenticating reverse proxy or X-Scope-OrgID handling is custom. Routing changes must keep identity checks in place.Confirmation that the proxy routes and tenant header handling are tested against the new deployment, and who owns the proxy config.
Spare node and Kubernetes capacityRaises work when spare capacity is limited. Distributed pods run alongside SSD pods, so the cluster needs room for both during the overlap.Capacity calculations for the overlap window, whether node additions are in scope, and who provisions them.
Kubernetes upgrade neededRaises work substantially. A cluster on a Kubernetes version nearing end of life adds a separate upgrade stream with its own skew checks.Whether a cluster upgrade is quoted separately, the version skew steps planned, and the rollback approach for each stage.
Depth of pre-production testingRaises work with each added test layer. Staging with production-like data, failover tests and rollback drills add time but reduce cutover risk.The test matrix, which tests are run in staging versus production, and the criteria that allow cutover to proceed.

What usually goes wrong during the move and how to prevent it

Most problems in a simple scalable to microservices move come from running two deployments at once. The cards below cover the failure points that appear during the overlap window, and each one ends with a check to run before the cutover.

Duplicate or missing ingestion

During the overlap, both the SSD write path and the distributed write path can receive the same log streams, so the same entries may be stored twice. If the agents are repointed in the wrong order, some streams can also go unshipped for a period. Before the cutover, confirm which write endpoint each agent or Alloy pipeline uses, and compare stream counts between old and new ingesters over a sample window.

SSD to distributed guide

Retention running on the wrong component

Retention is applied by the compactor and is disabled by default, so a compactor that is missing from the distributed values or left running in the SSD release can leave data kept indefinitely or delete it from the wrong place. Confirm that exactly one compactor is active, that retention_enabled is set in the configuration both releases read, and that the old compactor is scaled to zero before the new one starts applying deletions.

Retention default
Disabled
Loki retention docs

Pending pods from insufficient capacity

Distributed mode starts its pods before the SSD pods stop, so the cluster must hold both sets at once. When nodes lack CPU, memory or volume capacity, the new ingesters and queriers stay Pending and the cutover stalls with both sides half-running. Before starting, calculate the requests of the full distributed release plus the SSD release, check node pool headroom and autoscaler limits, and confirm persistent volume claims can bind.

Gateway routing to the wrong target

The gateway or ingress that clients use must switch from the SSD read and write services to the distributed distributor and query-frontend services in one step. If a path such as push or query still points at the old backend, writes or queries fail or quietly hit an empty cluster. Test each route with a push and a LogQL query carrying the tenant header, and keep the previous route ready for a fast rollback.

Dashboards pointing at old endpoints

Grafana data sources, alert rules and saved queries often reference the SSD read service name or a hostname that the cutover retires. Panels then show empty results, and nobody notices until an incident. List every data source, ruler reference and dashboard variable that targets Loki, update them to the gateway address, and run a set of known queries against both old and new endpoints before retiring the SSD service.

Kubernetes upgrade colliding with cutover

A cluster upgrade scheduled in the same window as the Loki change doubles the number of variables during rollout. Kubernetes version skew rules require the API server to move one minor version at a time and let kubelets trail by up to three minor versions, but node drains during an upgrade can evict ingesters or queriers mid-handoff. Freeze one change at a time, confirm the Loki chart supports the target Kubernetes version, and set pod disruption budgets before draining any node.

Kubernetes version skew policy

Questions teams ask before moving Loki to microservices

How much work and cost should we expect for this migration?

The work is mostly planning, Helm values changes, a side-by-side rollout and a cutover, so the cost follows the size of your cluster, the number of tenants and how many environments you run. Effort rises with the amount of tuning you need for read and write paths, the number of Helm releases to reconcile and the quantity of dashboards and alerts that point at the SSD read and write endpoints. The one-time cost covers planning, configuration and cutover testing. Recurring cost is the extra Kubernetes capacity that runs while both deployments are live and the longer-term operation of more components. Ask any quote to itemize discovery, the Helm and values work, staged testing, cutover support and handover, and to state which items are fixed and which depend on your findings.

How long does the cutover take, and what sets the timeline?

The timeline depends on how many distributed pods you must bring up, how long they take to become healthy and how much testing you need before traffic moves. The documented approach starts the distributed pods first, then shuts down the SSD pods, so you need enough spare cluster capacity for both sets to run together. Other drivers include your change approval process, the availability of a maintenance window, the number of tenants that must be verified and whether you run several clusters. Confirm the sequence with your team against the Loki SSD to distributed guide and agree the rollback point before setting a date.

What must our team provide before the migration starts?

You need to provide working access to the Kubernetes cluster and the Loki namespace, the Helm release and values files currently in use, and the object storage configuration with its credentials handling. Also prepare an inventory of tenants, their retention rules and any per-stream retention selectors, because these must carry over unchanged. Name a maintenance window owner who can approve the cutover and make the rollback call. Finally, provide the Grafana data source settings and the reverse proxy or gateway configuration that sends X-Scope-OrgID headers, so query paths can be verified end to end.

Can our in-house team run this migration without a partner?

Yes, if your team already operates Loki on Kubernetes, understands Helm releases and can read the Loki configuration reference. The work requires comfort with rolling updates, ring membership, object storage access and rollback testing. A partner adds most value when the team has limited Loki operations time, when multiple clusters or tenants must be cut over in one program, or when auditors expect documented evidence of the change. Decide based on who will hold the pager during and after the cutover, and whether that person has run a similar change before.

Should we choose HA monolithic mode instead of microservices?

HA monolithic mode is the other documented path for teams leaving simple scalable deployment, and it runs every instance with the same all target. It suits smaller footprints and simpler operations, while microservices mode fits very large clusters that need independent scaling of read and write components. Choose based on your current daily log volume, query load, growth forecast and how many engineers can operate distributed components. Loki's deployment modes documentation gives the overall sizing guidance, and your own ingestion and query metrics should decide the matter.

What happens to our log data during the move?

The documented SSD to distributed migration needs no change to the underlying data storage, so chunks and the index stay where they are and remain readable by the new components. Both deployments read the same object storage while they overlap, which is why you must check that storage configuration matches on every component. Retention settings and tenant IDs must be carried over exactly, otherwise data may age out or become invisible to queries. Before the cutover, back up your Helm values and configuration, confirm that test queries return the same results from both paths, and keep the SSD release available until you have verified the new one.

What breaks most often during an SSD to microservices move?

The most common problems are mismatched storage or schema configuration between the old and new releases, incomplete ring membership that leaves some reads or writes failing, and gateway routes that still point at the SSD read or write service after cutover. Teams also hit resource limits when both deployments run together and the cluster cannot schedule every pod. Alerts and dashboards that reference SSD-specific names can stop firing without an obvious error. Test each of these in a staging copy, check that tenant queries return results after the cutover and keep a tested rollback path ready.

How traffic and pods move during the cutover

The cutover starts with an inventory and a capacity check, then deploys the distributed pods beside the SSD pods while both paths read and write the same object storage. Reads and writes are verified on each path before the gateway is switched to the distributed components. Only after that switch are the SSD pods scaled down, followed by a check that compaction and retention still run against the shared store.

Phased cutover where both deployment paths use the same object storage.

How DeployOpen scopes and delivers this migration

The migration is scoped in writing before any work starts. DeployOpen is a Chainscore Labs company that plans, implements, hardens, backs up and documents self-hosted open-source platforms inside the client's own infrastructure, including the Kubernetes clusters and object storage that run Loki. For this move, the written scope should name the current SSD deployment, the target (distributed microservices mode or HA monolithic mode, chosen with the client), the Kubernetes clusters involved, the object store and its bucket layout, the gateway in front of Loki, and the dashboards, alerts and log shippers that depend on the read and write endpoints. The scope also states who owns each cutover decision and which artifacts the client receives at the end.

The first working phase is an inventory of the existing SSD setup. The team records the Helm release and chart version, the loadBalancing, replication_factor and schema_config values, the storage settings that the SSD to distributed guide says should not change, and the retention configuration. That inventory drives the Helm values for distributed mode, which are built and reviewed with the client's operators, and it defines the capacity the cluster needs while distributed pods run beside the SSD pods. Confirm the spare CPU, memory and node capacity with your platform team before the schedule is fixed, because the parallel run is the phase that temporarily doubles the footprint.

The parallel run and cutover are carried out with your operators, not handed over. DeployOpen's team and your engineers watch ingestion, query latency and storage writes on both sets of pods, shift the gateway traffic in a controlled order, and only then scale the SSD components down. Rollback steps and the criteria for each step are written into the runbook before the cutover window. After the migration, ongoing support, upgrades and continuous checks can be run under a retainer, and the terms of that retainer are agreed separately in writing.

Sources and further reading

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.