Why Open WebUI high availability takes more than a second container
A second Open WebUI container does not make a highly available deployment. Running more than one instance behind a load balancer requires that every replica shares the same database, shared state and file storage, and the Open WebUI scaling guide sets those requirements explicitly. The default SQLite database has to be replaced with PostgreSQL for any multi-instance deployment, because SQLite does not handle concurrent writes from multiple processes well. Teams that start from a single-container install often assume the database is the only change, which is why the rest of this section matters as much as the database move. The scaling guide is the document to read before any replica is added.
Replicas also need Redis as a shared store for sessions, websocket connections and application state, along with shared file storage so that uploads and knowledge bases are reachable from every replica. Without Redis, signing out does not revoke tokens: they stay valid until they expire, which is 4 weeks by default. A user who signs out of one replica may still hold a working session, and a security team reviewing offboarding will see that gap quickly. Confirm the token lifetime and revocation behavior in your own environment during testing, not only from the documentation.
The vector store is the component most likely to fail under load. The scaling guide warns that the default ChromaDB will crash in multi-process setups, so an external vector database such as PGVector, Qdrant or Milvus is required once several workers or replicas run. Plan the choice early, because it affects retrieval behavior, backup scope and who operates the service. Ask your team to test a failover of one replica during a document upload and a retrieval query, and confirm that sessions, uploads and knowledge stay intact before going live.
Which components make up a highly available Open WebUI deployment
A highly available Open WebUI deployment runs several identical replicas behind one entry point, and every piece of state must live outside any single replica. The cards below cover the components that carry that shared state, and what to confirm about each one before go-live.
Open WebUI replicas
Each replica is an identical Open WebUI application process that serves users and calls model providers. Because any replica may handle any request, none can hold session data, uploads or knowledge in its own local disk or memory. Confirm that every replica is configured with the same settings and points at the same database, Redis instance, file storage and vector database, so a user gets the same experience whichever replica answers.
Scaling guideLoad balancer in front
The load balancer distributes incoming user traffic across the replicas and must handle websocket connections, which Open WebUI uses for live interaction. Check that it keeps websocket upgrades working and that health checks remove a failed replica from rotation. Confirm with your own tests how it behaves when a replica restarts during an active chat, because the scaling guide does not describe a fixed failover behavior.
PostgreSQL as the database
The scaling guide requires PostgreSQL for multi-instance deployments, because SQLite does not handle concurrent writes from multiple processes well. All replicas write user accounts, chats and settings to this single database, so its own availability, backups and connection limits become part of your high availability design. Ask your database team who operates it and how failover is handled.
Scaling guideRedis for shared state
Redis holds sessions, websocket connection state and application state so that every replica sees the same information. The scaling guide notes that without Redis, signing out does not revoke tokens, which then stay valid until they expire, by default after 4 weeks. Treat Redis as a required component, confirm it is reachable from every replica, and decide how it is made highly available in your environment.
Shared file storage
Uploaded files and knowledge collections must stay reachable from every replica, so they cannot sit on local disk inside one container. Shared storage has to be mounted consistently across all replicas with the same paths and permissions. Ask how storage is backed up and restored, since uploads and knowledge are part of what users expect to survive a replica or node failure.
External vector database
The scaling guide warns that the default ChromaDB will crash in multi-process setups, so running several workers or replicas requires an external vector database. Open WebUI supports 13 vector databases, including PGVector, Qdrant, Milvus and Elasticsearch, so choose one your team can operate and back up. Confirm that retrieval works from every replica after a failover test.
Open WebUI featuresHow requests, state and files flow across replicas
Requests start at the load balancer, which spreads them across several Open WebUI replicas inside the internal network. Each replica reads and writes user, chat and configuration data in PostgreSQL, keeps session and websocket state in Redis, and sends retrieval queries to an external vector database rather than a local ChromaDB. Uploads and knowledge files sit on shared storage so every replica can reach them. Check that no replica holds state only in its own container, and that Redis is present before you rely on sign-out to revoke tokens.
Replicas share state through Redis, PostgreSQL, a vector database and shared files.
Which database, vector store and storage options fit your team
This table compares the database, vector store and file storage choices for a single Open WebUI instance against a multi-replica deployment. Read each row for the point where the option stops being acceptable, then check the operational work it leaves with your team.
| Component | Option | When it fits | Operational cost to plan for |
|---|---|---|---|
| Database | SQLite on locally attached SSD or NVMe | A single replica, evaluation or a small team. The scaling guide accepts it only when the file sits on local fast storage, not network storage. | Backups of the database file, a restore procedure, and a clear limit that a second replica is not supported on this design. |
| Database | PostgreSQL | Required for any multi-instance deployment, because SQLite does not handle concurrent writes from several processes well. | A managed or self-run PostgreSQL service, its backups, upgrades, connection limits and failover design, which your team or a partner must own. |
| Shared state | Redis | Needed once you run multiple replicas, for sessions, websocket connections and application state. | A highly available Redis topology, memory monitoring, and a plan for session behavior during a Redis outage. |
| Vector store | Default ChromaDB | Adequate only for a single process. The scaling guide warns it will crash in multi-process setups. | Little extra work, but it cannot serve a replicated deployment, so retrieval must move before you scale out. |
| Vector store | External database such as PGVector, Qdrant, Milvus or Elasticsearch | Required when running several workers or replicas. Open WebUI lists 13 supported vector databases, so confirm which ones your version supports. | A separate service to deploy, back up, patch and monitor, plus re-indexing when you change embedding models or move data. |
| File storage | Locally attached disk on one host | Single-replica use only, since uploads and knowledge must stay reachable from every replica once you scale out. | Limited to one machine, so a host failure takes uploads offline unless you add a shared layer. |
| File storage | Shared network or object-backed storage | Needed so uploads and knowledge are reachable from every replica. Confirm the exact storage type and mount behavior with the Open WebUI version you deploy. | Storage licensing or capacity, access latency testing, permission mapping, and backup coverage across the shared volume. |
How to build the HA setup in order
The sequence moves state out of each replica first, so that any instance can serve any user, and only then adds the load balancer that spreads traffic across them. Each step closes with a check you can run before moving on.
Provision PostgreSQL and migrate off SQLite
Your platform or database team provisions a PostgreSQL instance that every replica can reach over the private network, then points Open WebUI at it through its database connection settings before any second replica exists. The scaling guide requires PostgreSQL for multi-instance deployments because SQLite does not handle concurrent writes from multiple processes well. The migration of existing data from SQLite is covered on the migration topic. Done means a fresh Open WebUI instance starts against PostgreSQL, creates its tables, and an admin account can sign in and create a test chat that persists after a restart.
Add Redis as the shared state store
Provision Redis and configure every replica to use it for sessions, websocket connections and application state. The scaling guide lists these as the state that multiple replicas must share. Without Redis, signing out does not revoke tokens, which remain valid until they expire, by default after 4 weeks. Confirm the setting names and Redis deployment options against the current scaling documentation for your release. Done means a test user signed in to one instance can keep a session across a restart of that instance, and the Redis connection shows as healthy in the logs of each process.
Set up shared file storage
Configure a storage location that all replicas mount or access in the same way, so uploads and knowledge files are reachable from every instance. Choose the storage type with your infrastructure team, since network file systems, object storage options and their latency and locking behavior differ, and the guide does not treat any single option as the default. Confirm which storage backends your release supports. Done means a file uploaded through one instance can be opened and used in a knowledge base from a second instance that is pointed at the same storage.
Deploy an external vector database
Replace the default ChromaDB with an external vector database such as PGVector, Qdrant, Milvus or Elasticsearch, which the retrieval features support. The scaling guide warns that the default ChromaDB will crash in multi-process setups, so this step is required once you run several workers or replicas. Choose the store with your retrieval design in mind, and confirm the configuration keys for your chosen version. Done means a document added to a knowledge base on one replica returns in search results from another replica, and no replica logs crashes from the vector store under concurrent queries.
Start several replicas against the shared services
Run two or more Open WebUI containers or pods with identical configuration, all pointing at the same PostgreSQL, Redis, shared storage and vector database. Keep the secret key and any encryption settings identical across replicas so that each instance can read data and tokens written by the others. Confirm this in the install method you chose, whether Docker Compose, Helm or a process-level install. Done means each replica starts cleanly, reports the same version, and a user session created on replica A is accepted by replica B.
Verify token revocation across replicas
Sign a test user in through one replica, then sign out through a different replica and attempt to reuse the old token against the first replica. The token should be rejected. Repeat with an API key and with a session that expires, and confirm that restarting a single replica does not log users out of the others. Your security team should own this test and record the results. Done means revocation works in every direction between replicas, and the results are saved as evidence for your review.
Place the load balancer in front
Add a load balancer in front of the replicas, configured with health checks against the Open WebUI endpoint and TLS termination according to your standards. Confirm that websocket connections are forwarded correctly, since real-time chat depends on them, and test whether your balancer needs session affinity or can route each request to any replica. Done means users reach the application only through the balancer, a stopped replica is removed from rotation by its health check, and an active chat continues to stream when a replica is taken down for maintenance.
How the HA design changes by deployment model
Docker Compose is the most direct way to run several Open WebUI replicas on one host or a small set of hosts. Compose does not provide a load balancer or shared storage by default, so the design has to add them. The single-container quick start usually keeps SQLite and vector data inside the container or a local volume, and those defaults must be replaced before a second replica starts.
- Database: Replace the default SQLite file with a PostgreSQL service that every replica connects to. SQLite is only acceptable for a single replica on locally attached SSD or NVMe storage.
- Redis service: Add Redis as the shared store for sessions, websocket connections and application state, so sign-out revokes tokens across replicas.
- Vector store: Move off the default ChromaDB to an external vector database before running several workers or replicas.
- Shared uploads: Mount one shared file location into every replica so uploads and knowledge stay reachable from each one. A per-container volume cannot do this.
- Front end: Place a reverse proxy or external load balancer in front of the replicas and confirm it supports websocket connections.
Confirm each service name and setting against the official Docker install instructions for your release, and check the scaling guide before assuming a sample Compose file is ready for replicas.
Helm expresses replica count, shared services and storage as cluster objects, so the HA design maps onto standard platform primitives. The chart still needs review, because a chart can deploy a database or cache for evaluation without making it suitable for production replicas. Ingress behavior, session handling and websocket timeouts are decided at the cluster edge, and they affect users directly.
- Replica count: Raise the replica count only after PostgreSQL, Redis, the vector store and shared storage are external to the deployment. Scaling first recreates the SQLite problem.
- Shared storage access: Choose a storage class that supports the access mode several pods need to read and write the same uploads. A mode limited to one pod will not serve multiple replicas.
- Bundled dependencies: Check whether the chart deploys its own PostgreSQL, Redis or vector database. Bundled instances often need separate backup, sizing and upgrade ownership.
- Ingress and websockets: Confirm the ingress controller keeps websocket connections open and that its timeouts suit real-time chat.
- Probes and rollouts: Define readiness probes and a rolling update strategy so replicas are replaced in stages during upgrades.
Review the chart's values file for the external connection settings and the chart release notes, and confirm both against the official Kubernetes install documentation before you rely on any default.
The pip method runs Open WebUI as a Python process started with the open-webui serve command. It is the least isolated option, with no container boundary, no bundled services and no orchestrator to restart a failed process or schedule a replica. Running several replicas means running several instances on separate hosts or service units, each pointing at the same shared services. The scaling guide's warnings about SQLite and ChromaDB apply directly, because concurrent processes are the failure case it describes.
- Process supervision: Run each instance under a service manager that restarts it after a failure. A pip install does not restart itself.
- Version consistency: Pin the same Python environment and Open WebUI version on every host, because instances on different versions can disagree on the database schema.
- Shared configuration: Give every instance the same database, Redis, vector store and storage settings. Confirm in the official documentation which secrets must match across instances so tokens issued by one replica verify on another.
- Local data paths: Default data directories sit on the host. Point uploads and knowledge storage at shared storage so every instance sees the same files.
- Worker processes: Multiple worker processes on one host raise the same concurrency concerns as multiple replicas, so the PostgreSQL, Redis and external vector database requirements apply to them as well.
Check the pip install instructions for the exact serve options and environment variables in your release, and confirm the scaling requirements before treating a single-host pip deployment as a replica set.
What drives effort and cost in an Open WebUI HA build
This table lists the factors that change the size of a high availability Open WebUI build and how to keep each one manageable. Read it as a checklist for scoping: each driver shows what to fix early and what to request explicitly in a quote, since no fixed durations or prices are implied.
| Driver | Why it changes effort or cost | How to keep it down |
|---|---|---|
| User count and concurrent sessions | More replicas, larger PostgreSQL and Redis capacity and more load testing before go-live. Concurrency drives how many replicas are needed. | Confirm peak concurrent users, not just seat count. Size replicas from measured load in a staging environment before production. |
| Number of model providers | Each Ollama, OpenAI, Anthropic or OpenAI-compatible connection adds configuration, credential handling and failure testing across replicas. | Start with the providers users need now. Keep provider keys in the platform's secret handling, not in end-user settings. |
| Knowledge base size and vector database | The default ChromaDB will crash in multi-process setups, so an external vector database and shared storage must be designed and migrated. Larger corpora increase indexing time and storage. | Pick one supported external vector database early. Ask the partner to size storage from document volume and reindexing needs. |
| Identity integration | OIDC or LDAP, SCIM 2.0 provisioning, group-to-role mapping and MFA each need directory access, test accounts and sign-in verification. | Settle the identity provider and group model before build. Limit the first release to one identity source. |
| Session revocation and Redis design | Without Redis, signing out does not revoke tokens, which affects security review and the testing scope for logout and session handling. | Deploy Redis as part of the first build rather than adding it later. Confirm the token lifetime policy with your security team. |
| Environments and change control | Separate development, staging and production environments, plus DR copies of PostgreSQL and shared storage, multiply configuration and test effort. | Use one infrastructure definition across environments. Ask whether the quote covers staging and how promotion between them is tested. |
| Compliance evidence | Assessors may ask for access reviews, configuration baselines, backup restore tests and logging. Each item is extra documentation and control work. | Agree the evidence list before scope is fixed. DeployOpen prepares evidence, but independent auditors issue any attestation. |
| Upgrade cadence | Frequent releases mean repeated testing of database migrations across replicas and rollback planning for each version. | Ask for an upgrade test plan and whether ongoing support or a retainer covers it, and what is included per release. |
Failure modes the scaling guide warns about
The Open WebUI scaling guide names several failure modes that appear only once an installation moves beyond a single process. Each one traces back to the same root issue: state, storage and identity have to be shared across replicas and workers, and defaults that work on one machine do not.
Default ChromaDB crashes under multiple processes
Symptom: the vector store fails or crashes once several workers or replicas run at the same time. Cause: the scaling guide warns that the default ChromaDB is not suited to multi-process setups, so retrieval breaks under concurrent use. Mitigation: plan an external vector database from the start, chosen from the supported options, and test retrieval with several workers active before go-live. Confirm the version and connection settings with the vector database vendor and your Open WebUI release.
Scaling guideSQLite fails under concurrent writes
Symptom: writes conflict or fail as more users and processes hit the application at once. Cause: SQLite does not handle concurrent writes from multiple processes well, so a multi-instance install cannot share one database file safely. Mitigation: move to PostgreSQL before adding a second replica, and treat the SQLite to PostgreSQL move as part of the rollout plan, not a later cleanup. Load test the write path with realistic concurrency in a staging copy.
Scaling guideSign-out does not revoke tokens without Redis
Symptom: a user signs out, but a token captured earlier still works against the application. Cause: without Redis as shared state, sign-out does not revoke tokens, so they remain valid until they expire. Mitigation: deploy Redis for every multi-replica install, then test revocation by signing out on one replica and confirming the old token is rejected on another. Review how long tokens remain valid and document the expiry behavior for your security team.
- Default token lifetime
- 4 weeks
Network storage risks for SQLite files
Symptom: a single-replica install on a network share shows slow responses, locking errors or data that appears stale. Cause: the scaling guide accepts SQLite only when the database file sits on locally attached SSD or NVMe storage, not on network storage. Mitigation: keep any SQLite file on local SSD or NVMe, limit it to single-replica, evaluation or small-team use, and move to PostgreSQL for shared or growing deployments. Check the storage type on each host during build review.
How to test that the cluster works and fails safely
Test the cluster before users depend on it, and write down what each test proves. Start with replica failover: with users connected through the load balancer, stop one Open WebUI replica while a chat response is streaming, then confirm that new requests land on the remaining replicas and that the affected user can sign back in or resend the message without losing their conversation history. Repeat the test for each replica so you know the balancer routes around every instance, not just the first one. Record the time from failure to the first successful request on a surviving replica, the error users see during that window, and whether any websocket session dropped and reconnected cleanly.
Next, confirm that shared state is actually shared. Upload a file and create a knowledge base entry through one replica, then query it through each of the others and confirm the file is readable and retrieval returns the same chunks. Restart a replica and repeat the retrieval check, because a replica that loses its local copy of uploads or its vector index connection will fail quietly until a user asks a question. For the vector store, confirm that the external database is the one being queried and that no replica falls back to the default ChromaDB. Verify token revocation the same way: sign out on one replica, then present the old token to a different replica and confirm it is rejected. This check only means something when Redis is in place, since without it tokens stay valid until they expire, by default after 4 weeks.
The most important tests are the dependency failures, because the safe outcome is different for each one. Stop Redis and confirm that the application refuses or degrades predictably rather than accepting sign-outs it cannot record, and that no user sees another user's data. Stop PostgreSQL and confirm that requests fail with clear errors, that no replica writes partial state to local storage, and that service resumes without manual cleanup when the database returns. Each test should end with a short evidence record: the exact versions tested, the commands or outage method used, timestamps, log excerpts from the balancer and each replica, and the pass or fail result against an expected behavior you wrote beforehand. Ask your DeployOpen or in-house team to confirm the expected behavior for your deployment before testing, since the scaling guide describes requirements but not every failure response.
What to monitor, back up and document after go-live
A multi-replica Open WebUI deployment has more moving parts than a single container, and each one can fail independently. The items below cover what to watch, what to back up, how to coordinate upgrades, and what the runbook must record so that on-call staff can act without the original builders present.
Replica health and session behavior
Track each Open WebUI replica separately, not only the load balancer's view of the pool. Watch for replicas that stop answering health checks, uneven request distribution, and users who are repeatedly bounced between replicas during a chat. Confirm how the load balancer handles websocket upgrades and how long it keeps a connection open, since those settings determine whether streaming responses survive a replica restart.
Scaling guidePostgreSQL capacity and connections
PostgreSQL is the shared record of users, chats and configuration, so every replica depends on it. Monitor connection counts against the limit you set, lock waits, replication lag if you run replicas, and storage growth. Confirm the connection pool settings each replica uses, because adding replicas multiplies connections to the same database.
Redis availability and token revocation
Redis holds sessions, websocket state and application state for all replicas. Monitor its memory use, eviction behavior, and failover status. Confirm the consequence of a Redis outage in your environment: without Redis, sign-out does not revoke tokens, and tokens remain valid until they expire, by default after 4 weeks. Include Redis in the same alerting path as the database.
Vector database and shared file storage
Monitor the external vector database for query latency, index size and failed writes, because the default ChromaDB is not suitable for multi-process setups. Track shared file storage for free space, latency and mount health, since uploads and knowledge must stay reachable from every replica. Confirm how a storage outage surfaces to users so support can recognize it quickly.
Backups across database, files and vectors
A restore needs all three stores taken at a consistent point: the PostgreSQL database, the shared file storage, and the vector data. Confirm whether your vector database can be rebuilt from source files or must be backed up directly. Test a full restore into a separate environment, and record how long it took and which user-visible features depended on each store.
Upgrade coordination and runbook
Open WebUI ships releases often, and every replica must run the same version when a database migration is involved. Plan rolling upgrades with a rollback path, check the release notes before each change, and test against a copy of production data. Document the runbook covering replica count, secrets, configuration keys, backup schedule, restore steps, on-call contacts and the upgrade procedure. Confirm that the runbook is reviewed after every release that changes the deployment.
- Latest release at writing
- v0.12.3
Questions teams ask before building Open WebUI HA
Is a single Open WebUI replica enough for our team?
A single replica is enough for evaluation, small teams and single-instance use, and the scaling guide treats SQLite as acceptable there only when the database file sits on locally attached SSD or NVMe storage rather than network storage. You need high availability when a restart or node failure would stop work for users who depend on the interface, or when you need rolling upgrades without downtime. Moving beyond one replica is a change to the database, session store, vector store and file storage, not just a second container. Confirm your user count, uptime expectations and recovery targets before deciding.
What drives the cost and effort of an Open WebUI HA build?
The main drivers are how many components you must run and how many of them your team already operates:
- PostgreSQL in place of SQLite, with backups and failover
- Redis for shared sessions, websocket connections and application state
- An external vector database, since the scaling guide warns that the default ChromaDB will crash in multi-process setups
- Shared file storage so uploads and knowledge stay reachable from every replica
- Load balancer, identity integration and monitoring
An existing platform team that already runs these services reduces effort. Ask any quote to itemize each component and separate one-time build work from recurring operations.
How long does an Open WebUI high availability project take?
Duration depends on scope, the number of components being introduced and how many environments need to be built and tested. A single-site build with existing PostgreSQL, Redis and shared storage takes less time than a build that introduces all of them for the first time, adds SSO and needs a staged upgrade path. No duration is fixed in this page. Ask for a timeline that lists each milestone, the environments covered, the test steps and the points where your team must provide access or approvals.
What must our team provide before the work starts?
Expect to supply the infrastructure and access the build depends on:
- Compute and network in your cloud accounts, data centers or air-gapped network
- PostgreSQL, Redis, shared storage and a chosen external vector database, or approval to provision them
- Load balancer and DNS, plus TLS certificates
- An identity provider configured for OIDC or LDAP, with admin access to register the application
- Named owners for on-call, backups and change approval
Confirm each item in the written scope so that delays in access do not become unplanned work.
Can our own engineers build Open WebUI HA in-house?
Yes, if your team has experience operating PostgreSQL, Redis, shared file storage and a load balancer, and can read the scaling guide closely. The hard parts are less about installing Open WebUI and more about session handling, token revocation, consistent file access across replicas and rolling upgrades. Without Redis, signing out does not revoke tokens, which remain valid until they expire, by default after 4 weeks. Assess whether your team can test failover, restore from backup and roll back a release before committing to an in-house build.
When should we bring in a partner for Open WebUI HA?
Bring in a partner when the build crosses several platforms at once, when deadlines are fixed, or when your team lacks capacity to test failover and upgrades. DeployOpen plans, implements, hardens, backs up, upgrades and documents self-hosted open-source platforms inside your own infrastructure, and most engagements are fixed-scope with scope, deliverables and timelines agreed in writing before work starts. Ongoing support and upgrades are available as retainers. Ask any partner to show how they will test replica failure and session revocation.
Does the Open WebUI license affect a multi-replica deployment?
Licensing is separate from the architecture, but it matters at scale. Since v0.6.6, Open WebUI code is distributed under the Open WebUI License, which forbids altering or removing branding in deployments that exceed 50 users in any rolling 30-day period, unless the operator holds an enterprise license or written contributor permission. Enterprise licenses are quoted after contacting sales with an expected seat count. Confirm your user count and branding requirements with the project before finalizing the design.
How DeployOpen works on this
DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside the client's own infrastructure, so an Open WebUI high availability setup runs in your cloud account, data center or air-gapped network. Each engagement starts with a written scope that names the replicas, shared services and failure tests included.
How we scope
- Confirm which Open WebUI replicas, load balancer and shared services your environment will run, and where each one is hosted
- Document the PostgreSQL, Redis, external vector database and shared file storage choices with their owners before build starts
- Agree in writing the failure scenarios to test, such as a replica restart, a Redis outage and a storage failover
How we build
- Deploy Open WebUI replicas with PostgreSQL, Redis, an external vector database and shared storage wired together as the scaling guide describes
- Replace the default ChromaDB with an external vector database before running multiple workers or replicas
- Test sign-out token revocation, websocket sessions and uploaded files across every replica before go-live
How we hand over
- Provide architecture notes, configuration records and runbooks covering scaling, failover and backup steps for your operations team
- Walk your engineers through failure test results and the known limits of the design, including what Redis and storage outages do
- Deliver the fixed-scope documentation set so your compliance and security teams can review the setup
How we support
- Cover ongoing support, upgrades and continuous testing for the HA setup through a retainer, where your needs call for one
- Retest the failover paths after each Open WebUI version upgrade, since release changes can affect shared-state behavior
- Confirm with your team which support tasks sit with DeployOpen and which stay with your own platform engineers

