How many Open WebUI replicas do concurrent users actually need?
A team planning a shared Open WebUI deployment usually starts with headcount, but replica count follows concurrent activity and model latency, not the number of people with accounts. Ten thousand licensed users who open the interface a few times a week may need fewer replicas than fifty analysts uploading large documents and running long, slow model responses at the same time. Before you pick a number, count peak simultaneous chats, streaming responses still open, document extraction and embedding jobs running, and how long your model backend takes to answer under load.
The scaling guide sets a precondition that comes before any sizing exercise. For multiple replicas, Open WebUI needs PostgreSQL instead of SQLite, because SQLite does not handle concurrent writes from several processes well. Redis must hold shared state for sessions, WebSocket connections and application state, and file storage must be shared so uploads and knowledge stay reachable from every replica. The default ChromaDB will crash in multi-process setups, so an external vector database is required once you run several workers or replicas. Confirm each of these in your environment first, because a replica count without them will fail in ways that look like load problems.
A single replica remains acceptable for evaluation, small teams or a single-instance production service. The scaling guide allows SQLite in that case only when the database file sits on locally attached SSD or NVMe storage rather than network storage. Check that condition on the actual host, not the intended one, and confirm with your platform team whether the volume is local after any node rescheduling or storage class change. Write down the trigger that would move you off a single replica, such as sustained peak concurrency, slow responses during document ingestion or a recovery target that one instance cannot meet, and review the configuration against the Scaling Open WebUI guide before you add the second replica.
How requests and shared state flow across replicas
The diagram starts with users reaching a load balancer inside the client's network, which fans requests out to several Open WebUI replicas. Each replica reads and writes the same PostgreSQL database and uses Redis for sessions and websocket coordination, so any replica can serve any user. Retrieval goes to an external vector database and uploads sit in shared file storage, both reachable from every replica. Model calls leave the network boundary toward upstream providers, which is where data governance and egress review should focus.
Shared state and the trust boundary to external model providers in a multi-replica setup.
Sizing inputs and when each one changes the replica count
This table compares the five inputs that most often change how many Open WebUI replicas you need, and what each one affects. Read each row against your own usage pattern, then measure the input before adding replicas. The main takeaway is that concurrent work, not headcount, sets the replica count.
| Sizing input | What it affects | When it changes the replica count |
|---|---|---|
| Concurrent streaming chats | Open connections, websocket sessions and request handling inside each container | When many users hold long streaming responses open at the same moment, especially during peak business hours |
| Document uploads and knowledge base processing | CPU and memory for extraction, embedding and indexing, which can compete with chat requests | When bulk uploads or large knowledge base refreshes run during working hours, or when extraction is handled inside the app container |
| Upstream model latency | How long each chat request holds a worker and connection open | When the model server is slow or queued, because slower responses keep more sessions active for the same user count |
| Worker count per container | How many request-handling processes run inside one replica and how much memory each one uses | When you raise workers per container instead of adding replicas, since extra workers still need shared Redis, PostgreSQL and an external vector database to run safely |
| Database connection budget | How many PostgreSQL connections all replicas together can open, set by pool size and overflow per replica | When adding replicas multiplies connections past what PostgreSQL max_connections allows, causing pool timeout errors even though CPU is idle |
| Shared Redis and storage latency | Session validation, websocket coordination and file reads across replicas | When Redis or shared file storage responds slowly, requests queue in every replica, so adding replicas may not help |
Sizing sequence: from baseline to replica count
This sequence moves from shared dependencies to a measured single-replica baseline, then to resource requests and a replica count that has been checked for sign-in, sessions and file access across instances. The output is a sizing decision backed by observed load rather than headcount.
Confirm the shared dependencies before sizing
Before measuring anything, confirm that PostgreSQL, Redis, an external vector database and shared file storage are in place, because the scaling guide requires them for multiple replicas. PostgreSQL replaces SQLite for multi-instance deployments, Redis holds sessions and websocket state, and the default ChromaDB will crash once several workers or replicas run. Your platform team should confirm each service's capacity and connection limits with its owner. The step is done when each dependency is reachable from a test pod or container and its limits are written down.
Start with one representative replica
Deploy a single Open WebUI replica that uses the same database, Redis, vector store and storage as production will use, and connect it to the model services your users will reach. Build the workload from real usage patterns: typical chat length, the share of users who upload documents, and the models they select. Confirm the baseline works with your identity provider before any load is applied. The step is done when one replica serves test users end to end with the production dependency set.
Measure concurrent chats and model latency
Run a load test that reproduces the expected number of simultaneous chat sessions, with streamed responses, and record concurrent connections, response time to first token, total request duration and error rates. Measure separately for each model backend, since slow inference shifts time away from the app and holds connections open longer. Ask the model team for their own latency and concurrency limits so the results can be compared with what the backend can absorb. The step is done when you have a table of concurrency against latency and error rate for the replica.
Measure document extraction and embedding load
Upload a representative set of documents and run the extraction and embedding jobs that knowledge bases trigger, recording CPU and memory peaks, job duration and how long the queue takes to clear. Extraction and embedding are usually the most resource-intensive work in a replica, so size them separately from chat traffic. Check whether extraction runs in the app process or on a separate service, since this changes what the replica must reserve. The step is done when you can state peak memory and CPU for a document batch and how many batches a replica handles before queueing becomes visible to users.
Set resource requests from observed peaks
Use the measured peaks from the chat and extraction tests to set CPU and memory requests and limits for each replica, leaving headroom for bursts rather than sizing to averages. Record the figures in the deployment manifest or Helm values so the same numbers survive upgrades. Confirm with your Kubernetes or container platform team how requests affect scheduling and autoscaling on your cluster. The step is done when the requests appear in version-controlled configuration and a repeat load test stays within the recorded headroom.
Add replicas and calculate the count
Increase the replica count step by step, repeating the concurrent chat test at each level and watching where latency, error rates or database connection use begin to rise. Divide the target concurrent session load by the per-replica capacity you measured, then add a spare replica so a single failure does not drop peak capacity. Check PostgreSQL connection totals across all replicas against the database limit before scaling further. The step is done when the replica count meets the target load with a spare and the shared database stays within its connection budget.
Verify sign-in, sessions and file access across replicas
Test the multi-replica behavior directly: sign in on one replica, route the next request to another, and confirm the session persists and no login loop occurs. Sign out and confirm tokens are revoked, which depends on Redis being in place, since without it tokens stay valid until they expire, by default after 4 weeks. Upload a file on one replica and open it from another, and confirm knowledge base queries return results from each replica. The step is done when these checks pass on every replica and the results are recorded for the operations team.
What to measure before and after adding replicas
Replica counts should follow measured load, not headcount. The six signals below move independently, so a team that watches only one of them will add replicas to fix a problem that lives in the database, the model server or the shared state layer. Capture them together before the change and again after it.
Concurrent active chats
Count chats with a streaming response in progress at peak, not registered users or daily logins. A team of several hundred can produce a small number of simultaneous streams, while a single batch of uploads can hold many more. Record the peak per five-minute window across a normal working day and a known busy period. This number is the input that the other measurements explain.
CPU and memory per replica
Watch each replica during streaming and during document extraction and embedding, which are separate peaks. High CPU during extraction with flat memory usually points to document processing that belongs on separate workers, while memory that climbs and does not fall back after a peak suggests a leak or large in-memory caches. Set requests from observed p95 values rather than idle averages.
Upstream model response time
Measure time to first token and total generation time as seen by Open WebUI, and compare them with the timings the model server reports. If the model server queues requests while Open WebUI sits idle, adding Open WebUI replicas will not shorten responses and may increase the number of requests waiting on the same model. Confirm the timing source with your model provider or serving stack.
PostgreSQL connection use
Track active and idle connections, and pool wait events, on the database side. Each replica holds its own pool, so the total grows with replica count. Compare the total against the server's connection limit. Pool exhaustion appears as slow requests and timeout errors, and it is a database sizing problem even when the application CPU looks low.
Redis and websocket health
Monitor Redis latency, memory, connected clients and eviction events, and count websocket reconnects per replica. Redis carries sessions, websocket coordination and application state across replicas. Reconnect storms after a replica restart or a Redis failover show coordination trouble, not a shortage of compute, and they can look like random chat drops to users.
Login and file access error rates
Record 401 responses on login and session refresh, and failed reads of uploaded files or knowledge documents, broken down by replica. Errors that appear only on some replicas point to inconsistent shared state or storage that is not reachable from every instance. Compare the rates before and after scaling, because a replica count change that raises them is a configuration fault, not a capacity result.
Setting starting resource requests for each replica
Set each replica's CPU and memory requests from measured usage, not from a guess about what a container image should need. No default request or limit values for Open WebUI are supplied here, so the starting numbers must come from your own environment. Deploy one replica, put it under a representative load (concurrent streaming chats, a document upload and embedding batch, and a model backend with realistic latency), and record CPU and memory per container over several hours. Use the observed steady-state figures plus headroom for bursts as the first requests, and set memory limits with room above the observed peak, because a container that exceeds its memory limit is killed and restarted rather than slowed down. Confirm the container's resource guidance in the deployment documentation for the exact version you run, including the release notes for v0.12.3 published on the Open WebUI releases page, since defaults and background work change between releases.
Measure the components that drive the load separately so you can tell which workload is responsible. Chat streaming and proxying mostly consume CPU in the app process and hold open connections, while document extraction and embedding can spike memory and CPU for minutes at a time. Run the upload and knowledge-base ingestion tests on their own and compare the peaks with a chat-only run. If extraction or embeddings dominate, the decision may be to move that work off the web replicas instead of raising every replica's requests. Also watch the pod restart count and the OOMKilled reason in container status, since a memory limit set too low usually shows up there before it shows up as user complaints. Keep the test data and the model backend fixed between runs so the numbers are comparable.
Operational risks when replicas multiply
Adding replicas does not just add capacity. It exposes state that a single container could hide, such as sessions, vector indexes, database files and uploads. The cards below connect each risk to the scaling guide requirement that prevents it, so you can check each one before you size the cluster.
Tokens outlive sign-out
Without Redis, signing out of Open WebUI does not revoke the token. It stays valid until it expires, which is 4 weeks by default. In a multi-replica setup, a user who signs out on one replica can still act through another. Check that Redis is deployed and shared by every replica before go-live, then test sign-out on one replica and confirm the old token is rejected on another. Shorten the token lifetime if your policy requires it.
Scaling guideVector store crashes with workers
The default ChromaDB crashes in multi-process setups, so running several workers or replicas needs an external vector database. Each replica that loads its own embedded index can fail under concurrent retrieval, which shows up as errors during document chat, not at login. Before sizing, pick a shared vector store, point every replica at it, and run a retrieval load test with the number of users you expect to chat with documents at once.
Scaling guideSQLite on network storage
SQLite does not handle concurrent writes from multiple processes well, so the scaling guide requires PostgreSQL for multi-instance deployments. SQLite can still serve a single replica, but only when its database file sits on locally attached SSD or NVMe storage. A database file on network storage slows every write and can corrupt data under load. Confirm the storage class for the database volume and move to PostgreSQL before adding a second replica.
Scaling guideLogin loops and missing files
Replicas that do not share a secret key, session state or file storage produce symptoms that look like application bugs: users bounce back to the login page, or an upload works on one request and returns not found on the next. The scaling guide calls for Redis for shared state and shared file storage reachable from every replica. Verify both with a test that uploads a file, signs in again and opens the file through each replica.
Scaling guideConnection exhaustion across replicas
Each replica opens its own pool of PostgreSQL connections, so the total grows with replica count. Pools sized for one container can exhaust the database's connection limit once you scale out, and users then see timeouts from the pool. Calculate the worst-case total as replicas multiplied by pool size plus overflow, compare it with the database's max_connections setting, and add a connection pooler if the margin is thin.
Questions buyers ask about sizing Open WebUI replicas
How many Open WebUI replicas do we need for our headcount?
Headcount is a poor guide. Replica count follows concurrent chats, how many of those chats stream long responses, document uploads and extraction running at the same time, and how long your model servers take to respond. Two organizations with the same number of employees can need very different capacity if one runs heavy retrieval over large knowledge bases and the other mostly sends short prompts. Start by measuring peak concurrent sessions and request latency during a typical busy hour, then size from those numbers. The scaling guide also requires PostgreSQL, Redis, shared file storage and an external vector database before you add a second replica, so those dependencies are part of the capacity plan from the start.
How long does replica sizing take, and what does it need from our team?
The duration depends on how much measurement data already exists and how many models, identity providers and document sources are involved. Confirm the timeline in the written scope rather than relying on a general figure. Your team should expect to provide access to a staging or production-like environment, the list of model providers and their latency characteristics, typical and peak usage logs if you have them, the expected document volume and file types, and a named owner who can approve changes to the database and storage layers. Without usage data, a sizing exercise usually begins with a load test plan, which adds time but produces a more defensible result.
Can our own platform team size Open WebUI without outside help?
Yes, if your team has experience with container orchestration, PostgreSQL, Redis and load testing. The sizing work itself is mostly measurement: collecting concurrency and latency data, running controlled load tests, watching database connection use and reading container metrics. The harder part is usually the decisions that follow, such as choosing a vector database, configuring shared storage and setting pool limits across replicas. Decide early who owns each measurement and who signs off on the resource requests. If your team has not run a multi-replica Open WebUI deployment before, an outside review of the design and test results can shorten the learning curve.
What drives the cost of sizing and running more replicas?
Cost has two parts. The one-time cost is the sizing engagement or internal effort: measurement, load testing, design review and documentation. The recurring cost is infrastructure: compute for each replica, the PostgreSQL instance, Redis, object or shared file storage, the vector database and any model-serving capacity. Costs rise with peak concurrent chats, long streamed responses, large document volumes that need extraction and embedding, high availability requirements and the number of environments you run. Costs fall when you move extraction and embedding off the application containers, cache model lists and right-size requests after measuring real usage rather than guessing.
What should a quote for replica sizing include?
A quote should follow from a written scope and list the workstreams explicitly. Ask for the list of environments covered, the current usage data the work will use, the load test scenarios and their pass criteria, the components reviewed (application, PostgreSQL, Redis, vector database, file storage, model connections and reverse proxy), the resource request and limit recommendations, the deliverable format and the retest or review step. Confirm who provides the infrastructure and load generators, what happens if measurements show a design change is needed, and which items are one-time versus ongoing. DeployOpen does not publish a price list, so the quote is the point where these details become commitments.
Is a single Open WebUI replica enough for our organization?
A single replica can be enough for evaluation, a small team or a single-replica deployment where the database sits on locally attached SSD or NVMe storage rather than network storage, as the scaling guide describes for SQLite. Once you need more capacity, redundancy or rolling upgrades without downtime, move to PostgreSQL, Redis, shared file storage and an external vector database before adding replicas. Whether one replica holds depends on measured concurrency and latency, not user count. Confirm the limit by load testing your own workload, and watch for signs such as rising response times during busy hours or container restarts under memory pressure.
What changes when document processing and knowledge bases grow?
Document processing competes with chat for the same CPU, memory and I/O, so growth in uploads or knowledge base size can slow every user, not only the people uploading. Extraction, chunking and embedding are usually the most resource-intensive steps. As volume grows, measure extraction time per file, embedding throughput and the vector database query latency separately from chat latency. Common responses include separating ingestion workers from chat replicas, moving extraction and embedding to dedicated capacity, choosing an external vector store that handles concurrent access, and placing uploads in shared object or filesystem storage reachable from every replica. Confirm each choice against your own document mix and retrieval settings.
How DeployOpen scopes and delivers replica sizing
DeployOpen approaches replica sizing as an engineering exercise tied to your own traffic, not a headcount formula. We scope the work around concurrent chats, document processing, model latency and the shared services each replica depends on, then build and document the sizing against measurements from your environment.
How we scope
- Written scope that names the user groups, concurrent chat patterns and document workloads the sizing must cover
- Inventory of the shared services replicas depend on: PostgreSQL, Redis, external vector database and shared file storage
- Agreed list of model providers and their expected latency, so streaming and queueing assumptions are explicit
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts
How we build
- Starting resource requests and replica counts for your cluster or hosts, set against measured load rather than assumed headcount
- Load tests that replay realistic chat and upload patterns against a staging instance before production sizing is fixed
- Connection pool and worker settings checked against the database and Redis limits that replicas share
- Dashboards and alert thresholds for CPU, memory, latency, database connections and queue depth
How we hand over
- Sizing document that records assumptions, test results, the chosen replica count and the conditions that change it
- Measurement runbook listing the metrics to watch, how often to review them and who acts on each signal
- Configuration as code for the deployment, with the resource requests and environment settings in your repositories
- Walkthrough with your platform and operations team so they can repeat the load test after upgrades
How we support
- Retest after upgrades, model changes or significant growth in concurrent users, scoped with your team
- Ongoing support, upgrades and continuous testing are available as a retainer, agreed in writing
- Review of production metrics against the sizing assumptions, with recommended changes documented for your approval
- Clear ownership split so your team keeps operational control of the infrastructure you run

