Why Langfuse high availability needs more than extra replicas
Running more Langfuse containers does not make a self-hosted deployment highly available on its own. A self-hosted Langfuse deployment is a set of stateful systems, not a single application: it runs Langfuse Web (UI and APIs), Langfuse Worker (asynchronous event processing), PostgreSQL, ClickHouse, Redis or Valkey, and S3-compatible blob storage. Langfuse documents Docker Compose on a single VM as a path for testing without high availability, and it documents Kubernetes deployments with Helm or Terraform on AWS, Azure and GCP for production. Production availability is therefore a design decision across every one of these components, and the Kubernetes layout is only the starting point.
The difficulty is that each component fails differently. PostgreSQL holds configuration, prompts and project metadata, so its failover behavior affects the UI and the API. ClickHouse holds the trace data, so a stall there can leave the UI looking healthy while data is not queryable. Redis or Valkey and blob storage sit in the ingestion path, so losing either can delay or drop events before they reach ClickHouse. Most importantly, tracing can keep ingesting while the UI is down, or the UI can answer while ingestion is falling behind. Those are different incidents with different owners, so your monitoring and runbooks must treat them separately.
Before you choose an availability target, confirm three things with your platform team: which component can be unavailable for how long without losing traces your applications depend on, whether your applications buffer or retry when Langfuse is unreachable, and who on your side owns each stateful service. Ask your database and storage providers for their documented failover and backup behavior, and confirm with Langfuse which parts of the reference architecture you would deploy redundantly. Those answers determine how much of the design in the rest of this page you need.
Which components carry availability and what each one holds
A self-hosted Langfuse deployment is a chain of six parts, and tracing stops when any link in the ingestion or UI path fails. Each part below has a distinct role, a researched minimum resource baseline from the scaling guide, and a clear failure mode to plan for before you choose replica counts.
Langfuse Web
Langfuse Web serves the UI and the APIs, including the ingestion endpoints that SDKs and OpenTelemetry exporters call. Its minimum baseline is 2 CPU and 4 GiB. If every web replica is unavailable, applications cannot send new traces and users cannot open the interface. Check that at least two replicas sit behind a load balancer with health checks, and confirm how ingestion load compares with UI load before deciding whether to split them.
- Minimum baseline
- 2 CPU, 4 GiB
Langfuse Worker
The worker processes events asynchronously after ingestion, moving trace data into the stores that back the UI and evaluations. Its minimum baseline matches the web container at 2 CPU and 4 GiB. If workers stop, events queue up and the UI shows traces late even though the API still accepts them. Scale workers on CPU load, as the scaling guide recommends, and alert on backlog age rather than only on container health.
- Minimum baseline
- 2 CPU, 4 GiB
PostgreSQL
PostgreSQL holds transactional metadata such as projects, users, prompts and configuration. It is a single point of failure for writes to that metadata, so a failover that drops connections will stall both the UI and the worker. Confirm your managed or self-run replication, failover time and connection pooling before go-live, and confirm the minimum version your Langfuse release requires.
- Minimum baseline
- 2 CPU, 4 GiB
ClickHouse
ClickHouse stores the trace and observation data that powers querying, dashboards and evaluations at volume. Its baseline is 2 CPU and 8 GiB, with at least 16 GiB of memory for larger deployments. Losing ClickHouse stops reads and makes new data hard to persist, so treat its replication, disk headroom and backups as the highest-priority availability decision in the stack.
Redis or Valkey
Redis or Valkey coordinates queues between web and worker, so ingestion events are buffered before the worker processes them. Its baseline is 1 CPU and 1.5 GiB. If the cache or queue is lost, in-flight events may be dropped or delayed, depending on your configuration. Ask whether your deployment uses a managed service with persistence and failover, and confirm the Redis version your Langfuse release requires.
- Minimum baseline
- 1 CPU, 1.5 GiB
S3-compatible blob storage
Blob storage holds raw event payloads and uploaded media that Langfuse writes before processing and keeps for reference. Its durability sets how much data survives a loss of the compute tier, so confirm the storage class, replication across failure domains and bucket versioning with your storage team. Backups of ClickHouse and PostgreSQL only restore a full picture if the matching blob objects are retained too.
Choosing the HA topology: single node, split deployments and managed data stores
This table compares the main topology choices for a self-hosted Langfuse deployment, from a single VM to split web deployments and external data stores. Read each row as a decision: when the option fits and what operational work it adds for your team, including backups, upgrades and on-call scope.
| Decision | When it fits | Operational cost it adds | What to confirm |
|---|---|---|---|
| Single VM with Docker Compose | Evaluation, testing and low-stakes internal use where downtime is acceptable | Fast to start, but Langfuse documents it as non-high-availability, so no redundancy for web, worker or data stores | Whether any tracing outage is acceptable to the business and to downstream teams |
| Kubernetes with Helm or Terraform | Production deployments that need multiple web and worker replicas | Cluster operations, chart and values management, and scaling configuration owned by your platform team | Which Helm chart version and cloud target your platform team supports |
| One langfuse-web deployment for UI and ingestion | Lower trace volume where UI use and SDK ingestion share capacity without contention | Simplest to run and upgrade, but heavy ingestion can slow the UI and API responses | Trace volume and whether UI latency stays acceptable under peak ingestion |
| Split ingestion and UI web deployments | Heavy ingestion that competes with dashboard and API traffic, which Langfuse recommends considering | Two deployments to configure, monitor and roll out, plus routing for ingestion endpoints | Whether your load balancer can route ingestion and UI traffic to separate services |
| Self-run PostgreSQL, Redis or Valkey, and ClickHouse | Teams with database operations skills and a clear backup and restore process | Your team owns backups, patching, failover tests, version requirements and on-call for each store | Whether your data platform team can own ClickHouse and PostgreSQL restores on a schedule |
| Managed or external PostgreSQL and Redis or Valkey | Organizations that already run managed database services with tested failover | Lower patching load, but connection, network policy and version alignment still need configuration | Version support for PostgreSQL 15 or later and Redis 7.0 or later, as required by the v4 guide |
| Bundled data stores in the Helm chart | Fast initial rollout for test or small production use with a single platform team | Stores run inside the cluster, so backup and upgrade responsibility stays with you. Helm users with bundled stores must upgrade the chart from v1 to v2 before moving to Langfuse v4 | Whether the chart version in use is v1 and how the v2 chart step fits your upgrade window |
| ClickHouse as a self-run cluster or managed service | High trace volume where ClickHouse memory, disk and backups need dedicated ownership | Version tracking, disk headroom planning and backup verification sit with the operator, and v4 backfills need extra disk | Support for ClickHouse 25.12 or later (26.4 recommended) and who owns backfill capacity planning |
How ingestion and UI traffic reach the data stores
Traffic starts at SDKs and OTLP clients outside the client network and crosses a load balancer into the trust boundary. Ingestion traffic and UI traffic land on separate langfuse-web deployments, and both depend on the same pool of Langfuse Worker replicas for asynchronous event processing. The data tier holds PostgreSQL, ClickHouse, Redis or Valkey and S3-compatible storage. Check that every path into the data tier passes through the boundary and that the worker pool can reach all four stores.
Ingestion and UI traffic split at the load balancer and share one worker pool and data tier.
How to build an HA Langfuse deployment in sequence
This sequence takes a self-hosted Langfuse instance from a chosen Kubernetes platform to a deployment that keeps accepting and storing traces when individual web, worker or data store components fail. Each step ends with a check you can run before moving on.
Choose the Kubernetes platform and deployment method
Langfuse documents Kubernetes with Helm or Terraform-based deployments on AWS, Azure and GCP for production, and Docker Compose on a single VM only for testing because it is not highly available. Decide which cloud or data center Kubernetes environment your team will run, and whether you will use the Helm chart or Terraform modules. Confirm with your platform team that the cluster spans multiple nodes or zones and has the ingress controller, secrets handling and storage classes you need. Done means a cluster with at least two schedulable nodes, a chosen deployment method written into your design record, and a test namespace where a default Langfuse install starts and answers its health endpoint.
Provision redundant data stores and blob storage
Langfuse needs PostgreSQL, ClickHouse, Redis or Valkey, and S3-compatible blob storage. Use managed or operator-run services that offer replication and automated failover in your environment, and ask the provider to confirm what redundancy each tier provides. Check the minimum sizing in the Langfuse scaling guide: 2 CPU and 4 GiB for 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. Confirm the PostgreSQL version meets the 15 or later requirement and Redis is 7.0 or later if you plan to upgrade to v4 later. Done means each store is reachable from the Langfuse namespace, has a tested replica or failover target, and its endpoints and credentials are stored as Kubernetes secrets.
Deploy web and worker with replica counts
Install Langfuse Web (UI and APIs) and Langfuse Worker (asynchronous event processing) with more than one replica each, so a single pod restart does not stop trace ingestion. Point both at the same PostgreSQL, ClickHouse, Redis or Valkey and blob storage endpoints, and let the chart run database migrations at startup. Set resource requests at or above the documented minimums and spread replicas across nodes with anti-affinity rules where your cluster supports them. Done means both deployments report all replicas ready and a trace sent through the public API appears in the UI and in ClickHouse.
Split ingestion from UI traffic under heavy load
Langfuse recommends splitting langfuse-web into separate ingestion and user interface deployments when ingestion load is heavy. Only do this when your load measurements show the UI and trace ingestion compete for the same pods, because the split adds a second deployment to operate. Route trace ingestion endpoints to the ingestion deployment and dashboard and API reads to the UI deployment through separate ingress paths or services. Done means each deployment has its own replica count and monitoring, and a heavy ingestion test does not slow the UI past your agreed threshold.
Configure ingress, TLS and health checks
Place an ingress or load balancer in front of the web service with TLS, and configure liveness and readiness probes so Kubernetes removes unhealthy pods from rotation before clients see errors. Confirm the probe paths against the Langfuse self-hosting documentation for your chart version, and set timeouts long enough for large trace payloads. Make sure SDK clients retry on connection errors, because a pod replacement can briefly drop in-flight requests. Done means probes pass on all replicas, the ingress distributes requests across pods, and a failed pod is removed from the endpoint list automatically.
Scale workers on CPU load
Configure a horizontal pod autoscaler on the Langfuse Worker deployment using CPU utilization, which is the scaling signal the Langfuse scaling guide recommends. Set minimum and maximum replica counts that your data store capacity can absorb, since more workers write more to ClickHouse and PostgreSQL. Watch the queue of pending events during a sustained load test to confirm workers scale up and the backlog drains afterwards. Done means a load test shows the backlog returning to its normal level after the peak, with no sustained growth in pending events and no data store saturation.
Run a failover test and record the results
Test each failure mode before go-live: delete a web pod, delete a worker pod, fail over the PostgreSQL primary, restart a Redis or Valkey node, and take one ClickHouse node out of service, all while a steady stream of test traces is sent. Confirm with the vendor or operator of each data store what failover looks like in your environment and how long clients see errors. Record which traces were accepted, delayed or lost, and whether any write needed a retry. Done means every test has a written result, traces sent during each failure are present in the UI after recovery, and the team has agreed the remaining gaps and their owners before production traffic is switched on.
How HA differs across single VM, Kubernetes and managed cloud data stores
Docker Compose on a single virtual machine is the path Langfuse documents for testing, and it does not provide high availability. Langfuse Web, Langfuse Worker, PostgreSQL, ClickHouse, Redis or Valkey and S3-compatible storage all share one host, so a failure of that host, its disk or its network stops tracing and the UI together. Use this model to evaluate features, validate SDK instrumentation and rehearse configuration, not to receive production traces.
- Single failure domain: Every component depends on one VM, so host reboots, disk faults and kernel problems interrupt ingestion and reads at once.
- No replica scaling: You cannot run several web or worker containers behind a load balancer, so there is no way to absorb a container crash or a rolling change without downtime.
- Local data only: Backups of ClickHouse and PostgreSQL volumes are your responsibility, and restoring them onto a replacement host is a manual rebuild.
- Upgrade downtime: Stopping containers to apply a new version interrupts tracing for the duration of the change.
Before relying on this model for anything beyond testing, confirm with your platform team which production topology you will move to and how much data loss and downtime your applications can tolerate.
Kubernetes with Helm or Terraform is the production path Langfuse documents, and it lets you run multiple Langfuse Web and Worker replicas. Availability still depends on the data stores. If you run PostgreSQL, Redis or Valkey, and ClickHouse inside the cluster or on your own VMs, your team owns their replication, failover, storage classes, upgrades and recovery, and those components are often the weakest link in the design.
- Replicated application tier: Multiple web and worker replicas survive a pod or node loss, and worker replicas can be scaled on CPU load as the scaling guide recommends.
- Self-operated stateful services: PostgreSQL failover, Redis or Valkey persistence and ClickHouse replication or backup each need their own design and runbook.
- Ingestion and UI separation: Splitting
langfuse-webinto ingestion and user interface deployments is a configuration and capacity decision you must plan and test. - Storage and backup ownership: Persistent volume classes, snapshot schedules and restore drills belong to your team.
- Version coordination: Data store versions must meet the requirements of the Langfuse release you run, including ClickHouse 25.12 or later and PostgreSQL 15 or later for v4.
Confirm with your cluster and storage teams who will be paged when a stateful component fails, and whether the restore procedure has been tested end to end.
Using cloud-managed PostgreSQL, Redis or Valkey, and object storage moves much of the data-tier failover and durability work to the provider. Langfuse Web and Worker still run as your own Kubernetes workloads, and ClickHouse may remain self-managed unless you use a managed offering that Langfuse supports for your version. Managed services change the failure modes you must plan for: regional outages, service quotas, maintenance windows and configuration of multi-zone or replica options are still decisions you make.
- Provider-managed failover: Confirm which managed PostgreSQL and Redis or Valkey options support multi-zone or standby replicas and what the provider's recovery targets are in writing.
- Durable blob storage: S3-compatible storage holds events and exports, so confirm versioning, replication and lifecycle rules with your storage owner.
- Connectivity and secrets: Private networking, connection limits and rotated credentials become cross-team dependencies.
- Remaining self-run ClickHouse: If ClickHouse stays in your cluster, it keeps the availability and backup burden described in the self-managed tab.
- Upgrade and maintenance coordination: Provider maintenance windows must be aligned with Langfuse upgrade steps and database migrations.
Before committing, ask each provider for their documented availability and recovery terms, then test a failover and a restore in a non-production environment.
What drives effort for a resilient Langfuse setup
This table lists the factors that change how much design, build and testing work a highly available Langfuse deployment needs. Read each row as a question to answer before scoping, with the effort driver on the left and the usual way to keep it under control on the right. The main takeaway is that trace volume, ClickHouse sizing and identity requirements usually decide the scope more than the number of replicas.
| Driver | How it raises effort | How to keep it down |
|---|---|---|
| Trace volume and ingestion spikes | Higher, bursty ingestion pushes worker CPU and ClickHouse writes, so you need load tests, autoscaling rules and a split between ingestion and UI traffic. | Measure steady and peak trace rates early, scale workers on CPU load as the scaling guide recommends, and split langfuse-web only when ingestion pressure justifies it. |
| ClickHouse memory and disk sizing | Memory and disk needs grow with retained data and query load, and a major upgrade may need extra disk for backfill, which adds planning and testing time. | Start from the documented minimums, confirm headroom with your own data volumes, and agree sizing targets in the written scope. |
| PostgreSQL and Redis or Valkey failover | Each stateful service needs its own replication, failover and connection planning, and failover behavior must be tested rather than assumed. | Prefer managed or already-supported HA services in your cloud, and confirm which components are bundled versus external in your chosen deployment. |
| Number of environments | Separate production, staging and test stacks each need their own replicas, backups and upgrade rehearsals, so effort scales with the count. | Keep non-production environments smaller, reuse the same Helm or Terraform definitions, and limit HA testing to production-like stacks. |
| Multi-zone and data residency requirements | Spreading replicas across zones, or keeping data in a specific region or air-gapped network, adds network design, storage replication and approval steps. | Confirm residency rules and zone availability before design, and document which data stores may cross boundaries. |
| SSO and identity integration | Enforcing SSO for web access, email-domain rules and any SCIM or project-role needs add configuration, testing and Enterprise license decisions. | Agree the identity provider and the required login rules early, and confirm which features need an Enterprise license key. |
| Backup retention and restore testing | Longer retention, cross-region copies and regular restore drills increase storage cost and the number of recovery procedures to build and rehearse. | Set retention periods from your compliance and recovery requirements, automate backups for all stateful stores, and schedule restore tests. |
Protecting HA components without weakening access control
Redundant Langfuse components add entry points, credentials and copies of trace data, so each one needs the same controls as the primary. The cards below cover the ingestion endpoint, the credentials that connect web and worker to shared stores, the encryption of replicas and backups, and the features that need an Enterprise key.
Network exposure of the ingestion endpoint
Separating ingestion from UI traffic usually means a second route to langfuse-web that application workloads call. Decide which networks can reach the ingestion path, keep the admin UI on a separate route if your policy requires it, and confirm that load balancers and ingress rules do not expose the database or Redis ports. Test each path from outside your application network before go-live.
Scaling guideCredentials for shared data stores
Web and worker replicas each connect to PostgreSQL, ClickHouse, Redis or Valkey and S3-compatible storage, so every additional replica multiplies the places a credential can leak. Store these values in your secrets manager, scope each credential to one database or bucket, and plan rotation without downtime by rolling replicas one at a time. Record who can read the secret store.
Encryption of replicas and backups
Failover copies and backups of trace data often hold prompts, completions and user identifiers, and they are frequently less protected than the primary. Confirm that encryption at rest covers ClickHouse volumes, PostgreSQL replicas, blob storage and backup targets, and that encryption in transit is enforced between Langfuse containers and each store. Ask your database and storage vendors which of these options they support in your environment.
Backup access and restore permissions
A backup is only as protected as the account that can restore it. Limit restore rights to a small operator group, log restore operations, and keep backup credentials separate from the runtime credentials Langfuse uses. Test that a restored instance cannot silently accept traffic under the production hostname before you bring it online.
Enterprise features for access control
Project-level RBAC roles, audit logs and data retention policies need a Self-Hosted Enterprise license key, and the open source edition does not include them. High availability does not change that requirement. If your regulated team needs these controls, confirm the edition and key before you design the access model, and ask the vendor which controls the key unlocks in your version.
License key docsHow to test that tracing survives a failure
Before go-live, run a short set of controlled failures against the staging deployment and record what happens to incoming traces at each step. The goal is to learn which failures degrade the UI, which stop ingestion, and which can lose data. Start with the ingestion path, because that is where a lost trace is permanent. Kill one langfuse-web pod and one langfuse-worker pod under a steady synthetic load from a test application. Confirm that the remaining replicas keep accepting traces, that the killed pods are replaced, and that the worker backlog drains once they return. Then restart PostgreSQL and Redis or Valkey one at a time, since both sit in the write and queue path. Note how long ingestion returns to normal after each restart.
The ClickHouse test carries the most risk. Pause writes to ClickHouse for a defined window, keep sending traces, and then resume. Expect the UI and query paths to show errors or stale data while the database is unavailable. What matters is whether the worker queues events and retries them, or whether the request is rejected at the SDK. Confirm this on your own setup, because the buffering and retry behavior of each SDK version and of your OpenTelemetry exporter determines whether a failed send is retried, dropped after a limit, or lost when the application process exits. Then verify recovery by comparing a count of traces sent by your test harness, using unique trace IDs, with the count visible in Langfuse after the backlog drains. Any gap is a finding to investigate before go-live, and this check should be repeated after each major upgrade.
What to monitor, back up and upgrade after go-live
Tracing keeps working during failures only if someone watches the signals that show it is falling behind. The cards below cover what to monitor, what to back up and rehearse restoring, and what an upgrade to Langfuse v4 requires from the data stores.
Worker backlog and ingestion lag
Langfuse Worker processes events asynchronously, so a growing backlog can mean traces are arriving but not yet visible in the UI or APIs. Alert on queue depth and the delay between an event being sent and it appearing. Scale worker containers on CPU load as the scaling guide recommends, and check whether langfuse-web needs separate ingestion and user interface deployments once ingestion volume grows.
Scaling guidePostgreSQL and ClickHouse health
PostgreSQL holds application metadata and ClickHouse holds the trace data, so each needs its own health alerts for availability, replication state, disk use and query latency. Watch ClickHouse disk and memory closely, since the scaling guide sets a floor of 8 GiB for ClickHouse and at least 16 GiB of memory for larger deployments. Confirm your alerting covers both stores, not only the Langfuse containers.
Redis availability and blob access
Redis or Valkey queues work between the web and worker containers, so an outage stalls ingestion even when the application looks healthy. Monitor its availability and memory. Blob storage holds event uploads, so check that the Langfuse service accounts can still read and write the bucket, and alert on access errors and failed credential rotations.
Backup and restore drills
Back up PostgreSQL, ClickHouse and the object storage bucket on separate schedules, and keep them consistent enough to restore together. A backup that has never been restored is unproven, so run timed restore drills into a non-production environment and record how long each store takes to return. Ask your team who owns each restore step and where the encryption keys are kept.
Minor updates and automatic migrations
Updates within a major version are non-disruptive, and database migrations run automatically at startup. Still, take a backup before each update, roll out to a staging copy first, and watch the web and worker logs for migration errors. Confirm the change log for each release on the GitHub releases page before you apply it to production.
Upgrade guidePlanning the v3 to v4 upgrade
Moving from v3 to v4 changes the ClickHouse data model and needs a backfill of historic data, so plan it as a project rather than a patch. Confirm ClickHouse 25.12 or later (26.4 recommended), PostgreSQL 15 or later and Redis 7.0 or later. Provision about 3x ClickHouse disk headroom during the backfill, and if you run the Helm chart with bundled data stores, upgrade the chart from v1 to v2 first.
v3 to v4 guideQuestions teams ask before building Langfuse high availability
Is a single VM enough for production Langfuse?
No, not for a production system that must keep tracing during failures. Langfuse documents Docker Compose on a single VM for testing only, and it does not provide high availability. A production setup runs Langfuse Web and Langfuse Worker as separate replicated workloads, with PostgreSQL, ClickHouse, Redis or Valkey and S3-compatible blob storage each made resilient in its own right. Langfuse's production guidance points to Kubernetes with Helm or Terraform on AWS, Azure or GCP. Confirm with your own team which failure modes you must survive, such as a node loss, a zone outage or a database failover, because those answers set the architecture.
Does high availability require the Enterprise license key?
No. The high availability building blocks for the core stack, including multiple web and worker replicas, separate ingestion and UI deployments, and the external data stores, are part of the MIT-licensed open source version. Langfuse states that core features and APIs are available there without limits. The Enterprise key covers features such as project-level RBAC roles, data retention policies, audit logs, server-side data masking and SCIM provisioning. Those matter for compliance, so decide early whether your controls depend on them, and confirm the current feature list against Langfuse's license key documentation.
How long does a high availability build take, and what drives the duration?
No supplied figure covers this, so treat any number you hear as a question to answer with your own environment. The main drivers are the target platform (an existing Kubernetes cluster or one that must be built), whether you use managed or self-run PostgreSQL, Redis or Valkey, and ClickHouse, the expected trace volume, the number of regions or zones, and how many backup and restore paths you need to prove. Ask any partner for a written scope with phases and deliverables before work starts, and ask which items are assumed to already exist in your environment.
What must our team provide before the work starts?
Plan to provide the target environment and the people who will own it. That usually means a Kubernetes cluster or approval to create one, cloud accounts or data center access, network paths and DNS, a blob storage bucket or equivalent, identity provider access for SSO if you use it, and secrets management. You also need named owners for on-call, change approval and data classification. Ask the partner to list every dependency in the written scope, because gaps in these inputs are a common reason timelines slip.
Can our own team build high availability Langfuse without a partner?
Yes, if your team already runs Kubernetes, managed databases and object storage in production. Langfuse publishes self-hosting, scaling and upgrade documentation, and the core stack uses the same codebase as Langfuse Cloud. The harder parts are sizing ClickHouse, PostgreSQL and Redis or Valkey for your trace volume, designing backups and restore tests, planning major version upgrades and running on-call for the data stores. Assess those skills honestly against your staff, and be ready to write runbooks for the failure cases you chose to cover.
What does an implementation partner add beyond the build?
A partner's value is in a fixed written scope, a tested architecture and evidence your teams can review. DeployOpen plans, implements, hardens, backs up, documents and supports self-hosted open-source platforms inside your own infrastructure, and most engagements are fixed-scope with deliverables and timelines agreed in writing before work starts. Ongoing support, upgrades and continuous testing are available as retainers. DeployOpen does not publish a price list, so a quote follows from the scope. Ask for named deliverables, how failover and restore were tested, and who operates the system after handover.
How do we verify that backups actually work?
A backup is only proven when a restore has been performed and the result checked. Back up PostgreSQL, ClickHouse and blob storage on their own schedules, because each store holds different data, and restore them into a separate environment on a regular cadence. Record the restore time and confirm that traces, prompts and scores are readable after the restore. Before any major upgrade, take a fresh backup, since Langfuse's v3 to v4 guide advises about 3x ClickHouse disk headroom when backfilling historic data. Confirm your backup tooling and retention targets with your data store vendors and your compliance team.
Official Langfuse sources for HA planning
Before you size replicas, data stores or backups, read the Langfuse scaling guide first. It lists the minimum resources Langfuse documents for the web, worker and PostgreSQL containers, Redis or Valkey, and ClickHouse, and it explains when to scale worker containers on CPU load and when to split langfuse-web into separate ingestion and user interface deployments. Those two recommendations set the shape of the high availability design in this topic, so treat the guide as the baseline your architecture review checks against. Read the Langfuse scaling guide alongside your own trace volume estimates, because the guide describes minimums and patterns rather than a sizing for your workload.
The Langfuse self-hosting overview explains the component set that any high availability plan has to cover: Langfuse Web, Langfuse Worker, PostgreSQL, ClickHouse, Redis or Valkey and S3-compatible blob storage. Use it to confirm which deployment methods Langfuse documents for production and which it documents only for testing, since the single VM Docker Compose path is not a high availability target. Ask your platform team to map each component to a failure domain in your environment before you commit to a topology.
Plan upgrades into the availability design from day one. The Langfuse upgrade guide covers non-disruptive updates within a major version and the automatic database migrations that run at startup, which affects how you schedule rolling restarts across replicas. For the v3 to v4 path, the Langfuse v3 to v4 upgrade guide lists the ClickHouse, PostgreSQL and Redis versions it requires and the disk headroom it advises for backfilling historic data. Confirm those version and capacity requirements with Langfuse and your data store vendors before you choose the failover targets.
How DeployOpen scopes, builds and hands over Langfuse HA
DeployOpen plans, implements, hardens, documents and supports self-hosted Langfuse inside your own cloud accounts, data centers or air-gapped networks. For high availability, we start from a written scope that names the failure modes you need to survive, then build and test the replicated topology against them.
How we scope
- Confirm which Langfuse Web and Worker replicas, and whether ingestion and UI traffic are split, match your trace volume and uptime needs
- Map PostgreSQL, Redis or Valkey, ClickHouse and S3-compatible storage to the redundancy each one needs in your environment
- Agree in writing which failures are in scope, such as node loss, zone outage or database failover, and which backup and restore targets apply
How we build
- Deploy replicated Langfuse components on your Kubernetes or chosen platform, following the documented production patterns for your cloud
- Configure managed or self-run PostgreSQL, Redis or Valkey, and ClickHouse with replication, backups and resource limits sized to the scope
- Test failover, pod restarts and restore procedures against the agreed failure list, and record the results as evidence
How we hand over
- Deliver architecture diagrams, runbooks for failover and restore, and configuration documentation for your platform and security teams
- Walk your operations engineers through alerting on ingestion lag, queue backlog and data store health before go-live
- Document the upgrade path, including data store version requirements, so future major upgrades can be planned by your own team
How we support
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts
- Ongoing support, upgrades and continuous testing of the HA setup are available as a retainer
- Ask any quote to state which components, environments and failure scenarios are included, and which remain with your team

