Moving Langfuse from bundled to managed data stores

Replacing the Helm chart's bundled data stores with managed or separately operated services is a planned sequence of data copies, connection changes and restore tests. This page explains the order, the constraints and what drives the effort.

On this page

Moving Langfuse from bundled to managed data stores: what the move involves

If you run Langfuse on the Helm chart with its bundled PostgreSQL, Redis, ClickHouse and SeaweedFS, moving to managed or separately operated services is a staged, reversible data move, not a single switch. You repoint one store at a time, copy its data, verify it, and keep the old store intact until the new one has proven itself. Effort scales mainly with the volume of ClickHouse trace data and blob objects you carry over, and with how many target services you change at once. Ask your team to measure current ClickHouse and blob storage sizes before scoping, because those numbers, not the number of components, drive copy time and disk headroom.

Two other changes interact with this move and should be sequenced with it. First, Langfuse notes that Helm users with bundled data stores must upgrade the Helm chart from v1 to v2 before upgrading Langfuse to v4, and the v3 to v4 guide requires ClickHouse 25.12 or later, PostgreSQL 15 or later and Redis 7.0 or later. Second, that guide advises about 3x ClickHouse disk headroom when backfilling historic data. Decide whether you are changing data stores, upgrading to v4, or both, because the safest path is usually to settle the store topology on the current version first and then upgrade, rather than moving everything in one window. Confirm the exact chart and application versions you run against the Langfuse upgrade v3 to v4 guide before you fix the order.

Before any data moves, confirm each target's version against the supported lists: PostgreSQL 15 or 16 for Langfuse v4 (the upgrade guide recommends 16), and a ClickHouse line listed as supported in the ClickHouse security policy. For blob storage, Langfuse recommends a managed service such as Amazon S3, Google Cloud Storage or Azure Blob Storage over the bundled SeaweedFS for production. Plan a rollback point for each store: keep the bundled volume, take a backup, and record the last known-good configuration so you can point Langfuse back at it if verification fails.

Which bundled components map to which managed services

This table pairs each component in the Helm chart's bundled stack with the managed or separately operated service you would move it to, along with the version and licensing points that change the move. Read each row as a decision: check the minimum version Langfuse v4 needs, then the migration note that applies to that data store.

Bundled componentTarget serviceMigration note
PostgreSQLAmazon RDS, Azure Database for PostgreSQL, Cloud SQL, Amazon Aurora PostgreSQL or ClickHouse Managed PostgresLangfuse v4 requires PostgreSQL 15 or later and recommends 16. Confirm the target's supported major versions before you pick one.
RedisManaged Redis or Valkey service, or a separately operated instanceLangfuse v4 requires Redis 7.0 or later. Redis 8 and later are offered under RSALv2, SSPLv1 or AGPLv3 at your choice, so confirm the license terms your legal team accepts.
ClickHouseClickHouse Cloud, ClickHouse BYOC, or a separately operated ClickHouse OSS clusterClickHouse data is not a simple dump. Plan the copy method, pause ingestion, and check disk headroom, which the v4 guide puts at about 3x during backfill.
SeaweedFSAmazon S3, Google Cloud Storage or Azure Blob StorageLangfuse recommends a managed blob service for production over the bundled SeaweedFS. Copy objects, then point the S3 settings at the new bucket and verify reads.
Helm chart versionChart upgraded before Langfuse v4 when bundled data stores are usedHelm users with bundled data stores must upgrade the chart from v1 to v2 before Langfuse v4. Confirm the chart version before you change any data store.

Documented copy paths for each data store

Each bundled store needs its own copy path, and the paths differ in tooling, downtime and verification. The cards below set out the documented options for PostgreSQL, ClickHouse, blob storage and Redis, so you can match each store to a method before you schedule any cutover. Confirm every path against the current Langfuse self-hosting docs for your chart and Langfuse version.

PostgreSQL logical replication

Logical replication works between different PostgreSQL major versions, so a bundled PostgreSQL can feed a managed or separately operated server while the source keeps serving traffic. The PostgreSQL documentation describes this route as allowing major upgrades with only several seconds of downtime, which is the main reason to choose it over a dump. Check that the target runs PostgreSQL 15 or later if you plan to move to Langfuse v4, and confirm that Langfuse's own migrations and the replication setup agree on the schema before you switch the connection string.

Documented switchover downtime
Several seconds
PostgreSQL upgrading docs

PostgreSQL dump and restore or pg_upgrade

Dump and restore with pg_dumpall, or an in-place upgrade with pg_upgrade, is the simpler path when a short outage is acceptable and the database is small enough to dump within your window. Restore into the target and run row counts or checksums on the largest tables before pointing Langfuse Web and Worker at it. For PostgreSQL 18 targets, pg_upgrade retains planner statistics and offers parallel jobs, which shortens the post-upgrade period when queries run with stale statistics.

Upgrading a PostgreSQL cluster

ClickHouse BACKUP and RESTORE

ClickHouse BACKUP and RESTORE write tables, partitions or whole databases to local disk, S3-compatible storage or Azure Blob Storage, and support incremental backups. Use this path to move traces, observations and scores from the bundled ClickHouse into a separately operated cluster, then compare row counts per table before resuming ingestion. The ClickHouse documentation warns that a backup never test-restored will probably not restore properly, so schedule a restore onto a spare cluster as part of the move, not after it.

ClickHouse backup docs

ClickHouse supported copy methods

For moves to ClickHouse Cloud or BYOC, the Langfuse Cloud-to-cluster guidance names two supported copy methods for keeping historic traces, observations and scores. Pausing ingestion is part of both, so plan the window and the trace backlog before you start. Confirm the current method names, prerequisites and any Langfuse version requirements in the Langfuse self-hosting docs, since the choice of method changes the target ClickHouse version and the disk headroom you need.

Blob object copy

Blob storage holds uploaded media and event payloads that Langfuse references by key, so the copy must keep object keys identical or the references break. Object-level copy tools for S3-compatible or cloud storage can move the bucket contents, and Langfuse recommends a managed blob service over bundled SeaweedFS for production. Compare object counts and total size between source and target, and confirm the bucket name and credentials in the chart or environment settings before cutover.

Redis usually holds nothing to migrate

Redis or Valkey in a Langfuse deployment generally serves as a cache and queue for asynchronous processing, so most deployments have no durable state to copy. Do not plan a data copy until you have checked this against your own deployment, including any queued jobs that a cutover could strand. Drain the worker queue during a quiet window, confirm it is empty, then point the connection settings at the new service and verify that Langfuse Worker picks up new ingestion.

The order of moves: blob storage, PostgreSQL, ClickHouse, then cutover

The sequence moves the stateful stores one at a time, keeps each copy verifiable, and leaves the bundled components in place until restores have been proven.

  1. Inventory versions, sizes and connection settings

    Your platform team records the Langfuse release, Helm chart version, and the PostgreSQL, ClickHouse, Redis or Valkey and SeaweedFS versions in use, plus current data volumes in each store and every environment variable that points at them. Confirm the target versions you plan to run against the Langfuse self-hosting and upgrade documentation, and note whether any Enterprise license features are in use. The output is a written inventory that both the platform and security teams sign off on before any provisioning starts.

  2. Provision and size target services

    Provision the managed or separately operated PostgreSQL, Redis or Valkey, ClickHouse and S3-compatible blob storage in the same network zone as the application, then size them against the minimums in the Langfuse scaling guide: 2 CPU and 4 GiB for web, worker and PostgreSQL, 1 CPU and 1.5 GiB for Redis or Valkey, and 2 CPU and 8 GiB for ClickHouse, with at least 16 GiB of ClickHouse memory for larger deployments. Your team confirms ClickHouse disk headroom against the data inventory. The output is a provisioned target environment with network paths tested from the Langfuse workloads.

  3. Copy blob storage first

    Copy the existing SeaweedFS buckets to the managed object store, which the Langfuse Helm documentation recommends for production over the bundled instance. Compare object counts and total bytes per bucket between source and target, and keep the source read-only until the cutover. Blob data is copied first because it is the least coupled to the other stores, so any problem found here is isolated. The output is matching object counts and sizes per bucket, recorded in the change log.

  4. Move PostgreSQL with replication or dump and restore

    Move the PostgreSQL database either by logical replication from the bundled instance to the managed one, or by a dump and restore during a short write window. Logical replication works across PostgreSQL major versions and can keep downtime to seconds, but the target must run PostgreSQL 15 or later, and the Langfuse v4 path recommends 16. Check row counts on the largest tables and compare the schema version recorded in the database. The output is a target database that is caught up with the source and passes table-level comparisons.

  5. Copy ClickHouse during a paused ingestion window

    Pause ingestion from Langfuse Web and Worker, drain any queued events, and then copy ClickHouse tables to the target using the method your ClickHouse version supports, with the target running a version listed as supported in the ClickHouse security policy. Compare row counts and key aggregates for traces, observations and scores between source and target before resuming. Keep ingestion paused until the comparison matches or the differences are explained. The output is a ClickHouse target with reconciled counts and a documented drain point.

  6. Switch connection settings in a controlled change

    Update the database, Redis or Valkey, ClickHouse and blob storage connection settings in the Helm values or environment configuration in one change window, then restart the web and worker workloads. Confirm that the new settings are applied in every replica and that migrations, if any, complete at startup without errors. Do not combine this change with a Langfuse major version upgrade, because two changes at once make a failure hard to attribute. The output is a running deployment that reads and writes only the managed stores.

  7. Run a parallel verification period

    Keep the bundled stores running in read-only mode for a verification period, and test traces, prompts, datasets, scores and exports against the managed stores. Check ingestion, the UI, API reads and blob-backed attachments, and watch PostgreSQL and ClickHouse resource use under normal load. Record any mismatch and fix it before proceeding. The output is a signed verification record listing each check and its result.

  8. Decommission bundled components after restore tests

    Only after backups of the managed stores are in place and a restore test has succeeded on a spare environment, remove the bundled PostgreSQL, Redis or Valkey, ClickHouse and SeaweedFS workloads and retain their final snapshots for the period your retention policy requires. The ClickHouse backup documentation warns that a backup never test-restored will probably not restore properly, so this restore test is a gate, not an option. The output is a decommissioning record with the restore test result and the location of the retained snapshots.

How traffic and data flow during the staged move

Traffic starts at Langfuse Web and Langfuse Worker, which still write to the bundled stores. During the parallel period, the bundled PostgreSQL, ClickHouse and SeaweedFS keep serving live traffic while a copy path fills the managed endpoints. Before cutover, check that both sides hold the same data, that DATABASE_URL and the ClickHouse and blob settings point where you expect, and that a backup of the source exists in its own target.

Application traffic, copy paths between bundled and managed stores, and the backup target.

Connection settings and how to verify the new stores

Point every container at the new endpoints before you verify anything. The Langfuse Web and Worker containers each read the PostgreSQL, Redis or Valkey, ClickHouse and S3-compatible connection values, and both must be changed together so they never write to different stores. Confirm the exact environment variable names and Helm values keys against your chart version in the Langfuse Kubernetes (Helm) guide, because these names change between releases. For each store, check three things: the TLS mode and CA bundle the client must trust, the credential the application uses (ideally a dedicated database user with only the rights Langfuse needs), and the network path, meaning security group or firewall rules, private DNS and any connection pooler between the pods and the database. Test each path from a pod in the same namespace before changing the release, since a blocked port typically surfaces later as a failing migration or a silent ingestion backlog.

For the database and object stores, compare counts before and after the cutover. Compare row counts per table in PostgreSQL between the bundled and managed instances, and compare object counts and total bytes per bucket prefix in the blob store. ClickHouse comparisons should use row counts for the trace and observation tables, grouped by project and day, so a gap points to a specific window. Mismatches inside the write window that you paused are expected only if you planned a delta copy; anything else needs investigation before you retire the old store.

Next, verify behavior from the outside. Open several traces that you know existed before the move in the Langfuse UI, then read the same traces through the public API with a project key, and confirm that attached scores, prompt versions and media attachments load. Watch the worker queue until it drains after you send a set of test traces, because a worker that cannot reach Redis or ClickHouse will accept events and never finish them. Finally, restore a ClickHouse backup to a spare cluster. The ClickHouse backup documentation warns that a backup never test-restored will probably not restore properly when needed, so treat that restore, with a row count check against production, as the acceptance test for the ClickHouse store.

What drives the cost and duration of the move

This table compares the factors that set the cost and duration of moving a self-hosted Langfuse off its bundled data stores, with who pays and whether each item is one-time or recurring. Read each row as a question to answer before requesting a quote, since most line items grow with data volume, version gaps and the number of environments.

DriverWhy it changes cost or effortOne-time or recurring
ClickHouse data volumeLarger trace history takes longer to copy, and the v4 guide advises about 3x ClickHouse disk headroom when backfilling historic data.One-time copy effort, plus recurring storage
Blob storage volumeMedia and event objects must be copied to managed S3-compatible or cloud storage, and bucket size drives transfer time and storage fees.One-time transfer, recurring storage
Langfuse and Helm chart versionsHelm users with bundled data stores must move the chart from v1 to v2 before Langfuse v4, which adds a chart upgrade step to the move.One-time
Need for a v4 upgrade firstCombining the move with a major upgrade widens the change window; confirm whether the v4 path is required before the data move starts.One-time
PostgreSQL major version gapLangfuse v4 requires PostgreSQL 15 or later, so an older bundled version adds an upgrade or logical replication step.One-time
Number of environmentsEach environment (development, staging, production) needs its own copy, connection settings and verification pass.One-time, multiplied per environment
Chosen managed servicesProvider pricing, instance sizing, backup retention and cross-region options set the managed service fees, which recur monthly or annually.Recurring
Enterprise features in useRetention policies, audit logs and other features that need an Enterprise license key must be re-verified against the new data stores.One-time verification
Ingestion windows and restore testsIngestion pauses limit the copy window, and each planned restore test on a spare cluster adds effort and temporary infrastructure.One-time per test, plus recurring test schedule

Questions teams ask before moving Langfuse off bundled data stores

Does moving Langfuse off bundled data stores require downtime?

Usually yes for at least the cutover step, and the window depends on which store moves and how you copy it. Moving PostgreSQL is the most sensitive step because Langfuse writes configuration, users, API keys and prompts there while traces flow into ClickHouse and blob storage. Teams often pause ingestion or drain the workers before the final copy so that no writes land in the old store after the snapshot. PostgreSQL logical replication can shorten the final switch to several seconds for major version changes, according to the PostgreSQL upgrading documentation, but Langfuse-level write freezes still need to be planned. Confirm the exact sequence and the expected pause in writing with your DeployOpen scope before any change window is booked.

How long does the move take, and what drives the duration?

Duration is driven mostly by data volume, not by the number of steps. The size of the ClickHouse tables, the size of blob storage, the chosen copy method and how many rehearsals your team requires all change the schedule. Network throughput between the old and new hosts matters, and so does whether the target is a managed service that needs provisioning, networking and access approvals first. Teams also underestimate verification time, which includes row counts, sample trace checks and a restore test. Ask for a timeline that separates provisioning, a rehearsal on a copy of production data, the cutover window and post-cutover checks, and ask which of those depend on your procurement or change board.

Can our own team do this move without a partner?

A team with working knowledge of Kubernetes or Docker, PostgreSQL administration and ClickHouse operations can plan and run it, provided someone owns the rehearsal and the rollback plan. The skills gap is usually in ClickHouse, where replication, Keeper nodes and backup behavior differ from PostgreSQL. ClickHouse documentation warns that replication alone does not protect against human error, and that a backup never test-restored will probably not restore when needed. Ask yourselves whether you have someone who can run a restore test on a spare cluster and read the Langfuse upgrade guide for the version you run. If those skills are thin, an implementation partner can take on the runbook, the copy and the verification while your team keeps ownership of the target services.

What do we need to provide from our side?

The work depends on access, approvals and people who own the data. You will need administrative access to the current Langfuse deployment, the target cloud account or data center, and the managed service accounts for PostgreSQL, ClickHouse and blob storage. You also need a change window that covers ingestion pauses, a named data owner who can sign off on verification results, and a decision on who can approve a rollback. Security teams usually want network paths, secrets handling and encryption settings reviewed before the target goes live. Ask your partner for a written list of required inputs and owners before the rehearsal begins, so that waiting on access does not stretch the cutover.

Should we combine a move to managed ClickHouse with a Langfuse upgrade?

In most cases, keep them separate. The Langfuse v3 to v4 guide requires ClickHouse 25.12 or later, moves to an observations-first data model and advises about 3x ClickHouse disk headroom when backfilling historic data. If the data store move and the major upgrade happen together, a failed step is hard to attribute to one cause, and rollback becomes harder. Confirm the versions your current deployment runs, the ClickHouse version the target service supports and the disk headroom you can actually provision. The sequence that is easiest to verify is usually to move the data stores on the current version first, confirm the deployment is stable, then plan the upgrade as its own project.

What does the Enterprise license change, and what stays the same?

Moving data stores does not require an Enterprise license. Langfuse states that core features and APIs are available in the MIT-licensed open source version without limits, and self-hosted deployments use the same codebase as Langfuse Cloud. The Enterprise license key unlocks specific features, such as project-level RBAC roles, protected prompt labels, data retention policies, audit logs, server-side data masking, UI customization and the SCIM and instance management APIs. The Self-Hosted Enterprise plan also adds a named support engineer and a support SLA, which are commercial terms rather than technical changes to the move. Confirm which of these features you already use, because any of them must still work after the data stores change, and confirm with Langfuse how the license key is validated in your environment.

Which Langfuse data stores are safe to move first?

Blob storage is usually the lowest-risk move because Langfuse stores event payloads there, and you can copy and verify objects before the cutover without changing the live database. Langfuse recommends a managed blob service such as Amazon S3, Google Cloud Storage or Azure Blob Storage over the bundled SeaweedFS for production. Redis or Valkey holds short-lived queue and cache state, so it can often be replaced during a short pause without copying history. PostgreSQL and ClickHouse hold the durable records and need the most careful copy and verification. Confirm the order with your team, because the right sequence depends on which features you use and how much history must survive the move.

What usually goes wrong when bundled stores are replaced

Replacing the bundled PostgreSQL, Redis, ClickHouse and SeaweedFS is mostly a sequence of copies and cutovers, and each step has a predictable failure. The risks below cover capacity, versions, data protection, configuration, live writes and object storage, with a prevention step for each.

ClickHouse runs out of disk during copy

Copying historic traces into a new ClickHouse cluster can need far more free disk than the live data occupies, because the source and target hold data at the same time. Langfuse's v4 guide advises about 3x ClickHouse disk headroom when backfilling historic data. Before the copy, measure the current on-disk size of the source tables, multiply it, and confirm the target volume and any backup storage can hold it with room to spare.

v4 upgrade guide

PostgreSQL below the v4 minimum

A managed or separately operated PostgreSQL that is older than the version Langfuse v4 requires will block the upgrade after the data has already moved. Langfuse v4 requires PostgreSQL 15 or later and recommends 16. Check the engine version of the target service before provisioning, and confirm it is still inside PostgreSQL's support window, since 14 ends in November 2026.

Langfuse PostgreSQL docs

Backups that were never restored

Teams often assume the new managed service's automatic backups protect the data, but nobody has tried restoring a ClickHouse or PostgreSQL backup into a clean environment. ClickHouse documentation warns that a backup never test-restored will probably not restore properly when needed. Before cutover, restore the latest PostgreSQL and ClickHouse backups to a spare environment, start Langfuse against it, and record how long the restore took.

ClickHouse backup docs

Connection strings still point at old services

After cutover, some pods or environment variables may keep the bundled service hostnames, or a secret mounted from an older release may override the new values. The result can be a split write path where some traces land in the old store and others in the new one. Review every database and Redis or Valkey host value in the Helm values and in any external secrets, then confirm the web and worker pods resolve the new endpoints.

Ingestion keeps writing during the copy

If trace ingestion continues while PostgreSQL or ClickHouse data is being copied, the target misses the newest rows and the final state is inconsistent. A copy taken at one moment will not include events that arrive afterward. Plan a documented ingestion pause or a short maintenance window, stop the web and worker deployments or block ingress, run the final sync with no writes, and only then reopen traffic.

Blob paths and bucket permissions missing

Media, exports and other objects stored in SeaweedFS can be unreachable after cutover if the bucket name, endpoint, path prefix or access policy differs on the new S3-compatible storage. Langfuse recommends a managed blob service such as Amazon S3, Google Cloud Storage or Azure Blob Storage for production. Copy the objects with their key structure intact, grant the Langfuse service identity read and write access, and test an upload and a download through the UI after cutover.

When it is safe to decommission the bundled services

Do not delete the bundled PostgreSQL, Redis, ClickHouse or SeaweedFS pods and volumes until the new services have passed every check in this section. Removing them is the last step, not the cutover step. Before that, the reader should be able to show four things: row and object counts match between the old and new stores, a restore from a backup of the new stores has been tested, the new services have run without incident for a period the team has agreed in advance, and a complete backup of each old store is kept somewhere outside the cluster being cleaned up.

Verified counts are the first gate. For PostgreSQL, compare table row counts and the most recent record timestamps for the metadata that Langfuse writes. For ClickHouse, compare trace and observation counts over the same time windows, and for blob storage, compare object counts and sizes per bucket. Record the figures in the cutover log so the comparison can be repeated later. Confirm the exact checks with your Langfuse version, because the v4 data model is observations-first and counts are not directly comparable across that boundary.

A restore test is the gate teams most often skip. ClickHouse's backup documentation warns that a backup never test-restored will probably not restore properly when needed, and recommends regular restore tests on spare clusters. Apply the same standard to the PostgreSQL dumps and the blob bucket copies. Keep the old stores' backups until the restore test has succeeded and the stable period has ended, and confirm that those backups are readable by the tools you will use during an incident.

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.