Open WebUI performance tuning for large deployments starts with the architecture
Slow responses and rising database load are usually the first signs that a deployment has outgrown its original setup. Tuning levers only pay off once the scaled foundations are in place. The levers covered in the rest of this page, such as compression at the load balancer, model list caching, active-status write throttling, streaming batch settings and moving extraction and embeddings off the application, all assume the architecture the scaling guide requires for multiple replicas: PostgreSQL instead of SQLite, Redis as shared state, an external vector database and shared file storage reachable from every replica. Read the Scaling Open WebUI guide before changing any tuning setting, because a tuned single-instance setup on SQLite will still hit concurrent write limits.
Check the foundations first. Confirm that every replica points at the same PostgreSQL database and the same Redis instance, that the default embedded ChromaDB is not used in a multi-process setup, and that uploads and knowledge files live in shared storage. Confirm that the shared secret is identical across replicas. If any of these is missing, symptoms such as login loops, 401 errors or missing files will look like performance problems but will not respond to tuning. Also note that without Redis, signing out does not revoke tokens, which is a security gap rather than a speed issue, so it should be closed before you measure anything.
This page is for teams that already run Open WebUI for many users and see measurable latency or database pressure, and that have confirmed the foundations above. It does not cover choosing a vector database, sizing replicas, Redis failover design or PostgreSQL connection pool sizing, which have their own sections and sibling topics. Before you change settings, record baseline response times and database load at your current user count so you can tell whether each change helped. Ask your team or your partner to confirm the exact setting names and defaults against the release you run, since they change between versions.
How requests, state and background work move through a scaled Open WebUI
The diagram starts at users reaching a load balancer, where compression can be applied to responses. Traffic then reaches the Open WebUI replicas, which share state through PostgreSQL and Redis and send retrieval to an external vector database and files to shared storage. Streaming chat responses return on the solid path from the model provider, while active-status and other background writes use the dashed path to PostgreSQL. Check that each dashed write path can be throttled and that extraction or embedding work runs off the app when you have a separate service.
Request, streaming and background paths in a scaled Open WebUI deployment.
Which tuning lever fits which bottleneck
This table pairs each tuning lever with the load it reduces, the conditions where it fits, and what to confirm in the docs for your running release. Read it by finding the symptom you see in monitoring, then checking which lever addresses that load before changing any setting. Treat every lever as something to verify against your version's configuration reference, because names and defaults change between releases.
| Lever | Load it reduces | When it fits | What to confirm in the docs for your version |
|---|---|---|---|
| Load balancer compression | Bytes sent to browsers for HTML, scripts and JSON responses, which affects page load and API response time over slow links | Remote or branch users on constrained networks, or large chat history and model list payloads | Which content types the proxy compresses, whether streamed chat responses stay unbuffered, and any Open WebUI settings that conflict with proxy compression |
| Model list caching | Repeated calls to upstream model providers and model servers each time a user opens the model picker | Many users, several connected providers, or slow model server endpoints that respond sluggishly to list requests | Which cache settings exist, their default time-to-live, and whether the cache is held per replica or in shared Redis |
| Active-status write throttling | Database writes triggered by user activity updates, which multiply with concurrent sessions and replicas | Large user counts where database write load or lock contention appears during peak hours | The setting that controls update frequency, its default, and whether it applies to all replicas consistently |
| Streaming batch settings | Number of small database or socket writes made while a model response streams token by token | Long streamed answers with high concurrency, where per-token overhead shows up in CPU or database load | Which batch or chunk settings exist for streaming, how they interact with the WebSocket layer, and their defaults |
| Moving extraction off the app | CPU and memory used by document parsing inside the Open WebUI process during uploads | Heavy document uploads that slow chat responses for other users on the same replica | Which extraction engines can run as separate services, the endpoint configuration they need, and their supported file types |
| Moving embeddings off the app | CPU or GPU load from generating embeddings inside the application process during indexing and query time | Large knowledge bases, frequent re-indexing, or a shared embedding model used by many replicas | Which embedding engines accept an external endpoint, how query-time and indexing-time embedding both route, and whether the vector store must match the model |
| Connection pool sizing | Waiting for database connections, which surfaces as pool timeout errors under concurrency | Several replicas sharing one PostgreSQL server with a fixed connection limit | The pool size and overflow settings, their defaults, and how the per-replica total compares with the PostgreSQL connection limit |
Why Redis, PostgreSQL and an external vector store come before tuning
Tuning cannot fix a base that the scaling guide rules out. The Scaling Open WebUI guide requires PostgreSQL instead of SQLite for multi-instance deployments, because SQLite does not handle concurrent writes from multiple processes well. Redis is required as the shared state store for sessions, websocket connections and application state once you run more than one replica, and shared file storage must make uploads and knowledge reachable from every replica. The guide also warns that the default ChromaDB will crash in multi-process setups, so an external vector database is required when you run several workers or replicas. Before you touch any setting in this topic, confirm which of these five components each replica uses and that none of them is a local default.
Redis carries a security consequence that is easy to miss during performance work. Without Redis, signing out does not revoke tokens. They stay valid until they expire, which by default is 4 weeks. A load balancer or cache change that looks harmless can therefore leave a stolen session usable for weeks after a user signs out, so treat Redis as a control you verify, not only a speed component. Ask your team to test sign-out across two replicas and confirm the old token is rejected.
SQLite is acceptable only for single-replica deployments, evaluation and small teams, and only when the database file sits on locally attached SSD or NVMe storage rather than network storage. If you are on that path, record it as a deliberate limit. If you are on a shared or network-mounted database file, latency you measure will mostly reflect storage contention and lock waits, not Open WebUI code paths. Establish a baseline on the supported base first, then tune. Tuning a weak base hides the real bottleneck and sends effort to settings that do not matter.
Matching symptoms to the right lever
When many users load the interface at once and pages or API calls feel slow while model responses themselves are fine, the bottleneck is usually the application tier, the database round trips it triggers, or the network path in front of it. Separate static asset delivery, API latency and upstream model latency first, because each responds to different levers. The scaling guide is the reference for the shared components that multi-replica setups need.
- Replica health and shared state: Confirm every replica uses the same PostgreSQL database, Redis and file storage. Mismatched state across replicas can look like slowness and repeated sign-ins.
- Compression at the load balancer: Test response compression for static assets and JSON at the proxy layer, and measure page load before and after the change.
- Model list caching: Slow model pickers often come from repeated calls to upstream providers. Check whether your release caches the model list and how long the cache lives.
- Active-status write throttling: Frequent activity updates add writes on many requests. Check whether your release throttles them and how the throttle interval is set.
Before changing settings, check p95 latency on the main page and chat API endpoints, replica CPU and memory, and upstream provider latency, in that order. Confirm each setting name and default in the release you run, since behavior differs between versions.
Write pressure on the database usually comes from features that record activity on many requests, such as session updates, chat history saves and user presence tracking. Multi-replica deployments multiply this traffic because each replica writes independently. Start by confirming the database engine, since a single SQLite file is a common root cause when several processes write to it concurrently.
- Database engine: Multi-instance deployments need PostgreSQL. If replicas still point at SQLite, fix that before tuning anything else.
- Presence write volume: Writes that record user activity can dominate the write count in a large user base. Confirm the throttle behavior in your release and test a change in a staging copy.
- Chat history churn: Long conversations with frequent saves create row churn. Check table growth and autovacuum activity over a normal business day.
- Storage commit latency: Check that database storage is provisioned for sustained write throughput, and watch commit latency under peak load rather than averages.
- Connection exhaustion: Adding replicas raises the number of open connections. Timeouts that appear after a scale-out often point to pool sizing against the PostgreSQL connection limit.
Compare write rate, commit latency and lock waits on PostgreSQL before and after each throttle or pool change, using the same load pattern. A change that reduces write volume without raising error rates is the signal to keep it.
Uploads and knowledge base updates involve extraction, chunking, embedding and vector writes. When all of this runs on the same replicas that serve chat, heavy ingestion competes with interactive traffic and users see slow pages during imports. Moving extraction or embedding to separate services is a lever, but the options your release supports and their configuration need to be confirmed in its documentation.
- Extraction on the app tier: Document parsing consumes CPU and memory on the replicas that serve chat. Test whether a dedicated extraction engine reduces latency for chat users during large uploads.
- Embedding throughput: Embedding calls to a model server are often the slowest stage. Check batch behavior and the capacity of the embedding endpoint under concurrent uploads.
- Vector store choice: The embedded default vector database is not suited to several workers or replicas. Confirm an external vector database is in use before measuring anything else.
- Shared file storage reads: Replicas must reach the same uploads. Slow or failing reads from network storage can look like ingestion slowness.
- Re-indexing scope: Updates that re-embed whole collections cost far more than incremental changes. Check whether your release supports incremental updates for knowledge bases.
Time each stage separately (upload, extraction, embedding and vector write) on a representative collection. The stage that dominates the timing is the one to move or tune first.
Streaming depends on a chain: the browser, the reverse proxy, real-time connections, shared state in Redis, the application replica and the model provider. A response that stops partway through can come from proxy buffering or timeouts, from a replica that lacks shared connection state, or from an upstream provider that is slow to produce tokens. Test each link separately before changing the application.
- Proxy buffering and timeouts: Reverse proxies that buffer responses or close idle connections cut streams short. Confirm buffering is disabled for the chat path and that read timeouts exceed typical generation time.
- Shared connection state: Without Redis coordinating real-time connections across replicas, a stream can land on a replica that does not hold its state. Confirm Redis is configured in every replica.
- Streaming batch settings: Batching streamed tokens before they reach the browser changes how smooth the output looks and how quickly it arrives. Test the release's batch settings with long answers from real users.
- Upstream time to first token: Long generations on a busy model server look like stalls from the user's side. Measure time to first token from the provider separately from the app.
- Compression and flushing: Proxy compression can delay flushing of streamed events. After enabling compression, verify that streamed chunks arrive promptly.
Reproduce the problem with one user and one long answer, then repeat with concurrent sessions. Compare timestamps across proxy, application and provider logs to find where the stall begins.
How to tune Open WebUI without guessing
This sequence turns performance tuning into a measured process: establish a baseline, confirm the scaled foundations are correct, change one lever at a time in staging, re-measure under comparable load, and roll changes to production with a way back. Each step ends with a check so that every change can be traced to a measured effect.
Record a baseline with the workloads that matter
Before changing anything, identify the users and workloads that generate load: concurrent chats, models in use, document uploads, knowledge base queries and admin page views. Capture latency for chat responses, login and page loads, CPU and memory per replica, database connection counts and error rates from your logs. Ask your platform team which dashboards already exist, and record the numbers with the time window and user mix they came from. The step is done when you have a baseline document that someone else could reproduce, covering the peak period you care about rather than an average day.
Confirm the scaled foundations before measuring
Performance numbers mean little if the deployment is not set up for multiple replicas. Check that every replica points to the same PostgreSQL database, shares Redis for sessions and websocket state, uses the same secret key, and reads uploads and knowledge files from shared storage. Confirm the vector store is an external service rather than the embedded ChromaDB, which the scaling guide warns will crash in multi-process setups. Verify that a sign-out on one replica is honored on another. The step is complete when each replica passes these checks, because a misconfigured replica can make every later measurement misleading.
Build a staging copy that matches production
Create a staging deployment with the same Open WebUI version, replica count, database, Redis, vector store and storage type as production, and the same reverse proxy path. Differences in replica count or storage backend change results, so document every intentional difference. Keep a record of the version and configuration values so that the staging result can be compared with production later. Your team should confirm that staging can be reset to a known state, because each test run should start from the same data volume. The step is done when a staging build reproduces the baseline figures within a range your team accepts.
Change one lever at a time
Pick a single change to test, such as enabling response compression at the load balancer, adjusting model list caching, throttling user active-status writes, changing streaming batch settings, or moving document extraction and embeddings to separate workers. Apply that one change in staging, record exactly which setting changed and why, and leave everything else fixed. Testing several levers together makes it impossible to tell which one helped or caused a regression. The step is done when the change is recorded in a change log with the before and after values, ready for measurement.
Load test with realistic chat and upload patterns
Run load tests that mirror how people actually use the platform: mixed short and long conversations, streamed responses, file uploads of the sizes your users send, knowledge base queries and logins spread over a session. Synthetic tests that send identical single prompts usually miss the write patterns, connection churn and large payloads that cause problems in production. Use the same user mix and duration as the baseline so the comparison is fair. Ask whoever runs the tests to report latency percentiles, error rates and resource use per replica. The step is done when the staging results can be placed side by side with the baseline under comparable load.
Compare results and decide to keep or revert
Compare the re-measured figures with the baseline and with the change log. Keep a change only when it improves the measured metric you set out to improve without raising errors or harming another part of the system, such as login latency or database connection use. If results are within normal variation or the change worsens something else, revert it and record the finding. Repeat the cycle for the next lever. The step is complete when each change has a documented decision, so the final configuration can be explained to security, operations and procurement reviewers.
Roll approved changes to production with a rollback path
Apply the approved changes to production one at a time, in a window your operations team agrees to, and watch the same metrics used in the baseline. Keep the previous configuration values and the container image tag so that each change can be reversed quickly. Confirm the change in production matches the staging test, including replica count and storage backend. Document the outcome in the change log and update the baseline for future comparisons. The step is done when production metrics match the staging results and the rollback steps have been written down and tested in staging.
Security and operational risks of performance changes
Each performance change moves load somewhere else: into a cache, a proxy, a write buffer, a second service or a configuration file that differs between replicas. The cards below describe the security and operational exposure each change creates, and what to verify before and after the change reaches production.
Caching model lists safely
A shared cache of model lists or responses can show one user models or answers that another user is not allowed to see. Model visibility in Open WebUI depends on groups and per-resource permissions, so a cache keyed only by model name ignores who is asking. Key any cached entry by the user or group context that produced it, set a short expiry, and test by signing in as a restricted user after an admin changes that user's access. Confirm whether the cache layer you choose can scope entries this way before you rely on it.
Open WebUI featuresCompression at the load balancer
Compressing responses at the proxy reduces bandwidth, but it can buffer server-sent streams so tokens arrive in bursts instead of as they are generated. It can also compress responses that carry sensitive content, which opens the door to compression side-channel attacks when attacker-controlled input is reflected in the same response. Disable compression or buffering on the streaming routes, scope compression to static assets, and measure time to first token before and after the change.
Scaling Open WebUIThrottling writes without losing audit data
Batching or throttling the user active-status updates cuts database write load, but a throttle that drops events removes evidence of who was active and when. Decide which writes are operational state that can be coalesced and which are records that must persist, such as sign-ins, admin changes and permission edits. Keep those records on an unthrottled path, and confirm that your logging pipeline captures them even when the database is under pressure.
Keeping Redis and revocation working
Without Redis, signing out does not revoke tokens, which stay valid until they expire, by default after 4 weeks. Scaled deployments with multiple replicas depend on Redis for sessions and websocket coordination, so a failover that hangs or drops Redis state can leave revoked sessions usable or lock out valid users. Test sign-out on one replica and confirm it is rejected on another, and rehearse a Redis failover while sessions are active. Check the failover behavior of your Redis topology before you tune timeouts.
Scaling Open WebUIMoving extraction and embeddings out
Sending document extraction or embedding work to a separate service removes CPU load from the app, but that service then receives full document text, which may contain personal, contractual or regulated data. Confirm where the service runs, who can reach it, whether it logs request bodies, and how it authenticates to Open WebUI. Treat it as a new data processor in your records and apply the same storage, retention and access controls you use for the knowledge base itself.
Change control across replicas
Performance settings often live in environment variables that can differ between replicas after a partial rollout, which produces inconsistent caching, timeouts and rate limits that are hard to trace to a single cause. Keep settings in version-controlled deployment manifests, roll them out through the same pipeline as code, and record each change with its owner and reason. Compare the effective configuration across all replicas after every change, and keep the logs needed to show which settings served a given request.
Questions teams ask before tuning a large Open WebUI deployment
What drives the cost of Open WebUI performance tuning work?
Scope and the number of moving parts drive cost most. A tuning engagement covers load balancer compression, model list caching, user active-status write throttling, streaming batch settings and moving extraction and embeddings off the app, and each item needs measurement before and after a change. The cost has two parts: the engineering time to measure, change and verify, and the environment time to reproduce load safely. Ask for the work to be itemized by layer (proxy, application, database, worker pipeline), so you can see which parts are fixed and which depend on what the measurements show. DeployOpen does not publish prices, and a quote follows from the written scope, which should name the environments, load tests and change windows involved.
How long does a performance tuning cycle take, and what sets its length?
No duration is fixed for this work, so the length depends on your environment and the findings. The main factors are how many replicas and workers you run, whether a staging environment matches production, how quickly you can run realistic load tests, and how many change windows you can use for each tweak. Ask any provider for a timeline built around phases: baseline measurement, one change at a time with a retest, and a closing review of results. Confirm in writing how many load test runs are included and what happens if a change does not improve the metric it targeted.
What must our internal team provide before tuning starts?
Tuning needs evidence and access more than extra hands. Plan to provide:
- Baseline metrics for latency, error rates, CPU, memory and database connections from the current deployment
- A load profile that describes concurrent chats, document uploads and streaming use
- Access to a staging environment that mirrors the production topology, including PostgreSQL, Redis, the vector database and shared file storage
- Agreed change windows and a rollback plan for each configuration change
- A named owner who can approve changes to proxy, database and application settings
Without a production-like staging environment, most tuning results will not carry over safely.
Can our own team tune Open WebUI using the public documentation?
Yes, a capable platform team can do much of this work using the documentation, provided it has time to measure and test. The scaling guide explains the shared requirements for multiple replicas, including PostgreSQL instead of SQLite, Redis for shared state, and an external vector database. Tuning decisions beyond those requirements depend on your traffic and hardware, so your team will need to run controlled load tests and read metrics carefully. Teams that lack load testing experience or cannot reserve staging time often find it faster to bring in an outside engineer for the measurement phase. DeployOpen implements, hardens and supports self-hosted platforms inside your infrastructure, so the choice between internal and external work depends on your staffing.
How does performance tuning relate to sizing replicas and connection pools?
Sizing and tuning answer different questions. Sizing estimates how many replicas you need for expected concurrent chats, document processing and model latency. Tuning reduces the load and latency each replica carries, so the same hardware serves more users. Connection pools sit between the two: settings such as DATABASE_POOL_SIZE and DATABASE_POOL_MAX_OVERFLOW multiply across replicas, so a change in replica count can exhaust PostgreSQL max_connections even when the application itself is healthy. Review pool settings whenever you change replica count, and treat sizing and pool changes as one change set in your test plan.
What should a performance tuning quote include?
A useful quote lists the scope in writing before work starts. Ask it to name the systems in scope (proxy, Open WebUI replicas, PostgreSQL, Redis, vector database, file storage and any extraction or embedding services), the specific tuning items to be tested, the load tests and how many runs each includes, the staging environment used, the deliverables (configuration changes, before and after measurements, a findings summary and runbook notes), and the retest after changes. It should also state what the client must provide, what is excluded, and whether ongoing monitoring or retainer support is offered separately. DeployOpen plans fixed-scope engagements with agreed deliverables and timelines, and a quote follows from that written scope.
Limits to confirm in your environment before you tune
Tuning Open WebUI for a large user base touches the application, the load balancer, the model providers and the data stores, and each of them has limits that change the result. The cards below list the checks to finish before you adjust a setting, so that a change in one layer does not hide a bottleneck in another.
Confirm settings against your release
The latest supplied release is v0.12.3, published October 16, 2026, following v0.12.0 on October 10 and v0.11.0 in July. Environment variable names, defaults and admin settings can change between releases, so read the release notes for your exact version before you apply a tuning value from any guide, including this one. Record the version you tested so that a later upgrade can be compared against the same baseline.
Open WebUI releasesLicense position for large user counts
Under the Open WebUI License, deployments that exceed 50 users in any rolling 30-day period must not alter or remove Open WebUI branding unless the operator holds an enterprise license or written contributor permission. Tuning work often touches the interface, so a theme or logo change made while tuning can fall under this rule. Confirm your user count and license position with your legal or procurement team before you change any branding element.
Open WebUI LicenseIngress and proxy features in your load balancer
Compression, connection timeouts, buffering and WebSocket upgrades are handled by the load balancer, reverse proxy or ingress controller in front of Open WebUI, not by the application. Check which of these your ingress supports, how it handles streaming responses, and whether it forwards WebSocket upgrades to every replica. Test a streamed chat response through the exact proxy path your users will take before you measure any latency change.
Model provider limits outside Open WebUI
Much of the latency users see comes from the model server or hosted provider, not from Open WebUI. Rate limits, queueing, token quotas and time to first token are set by Ollama, an OpenAI-compatible server or a hosted API, and they can cap throughput regardless of how well the app is tuned. Ask each provider for its published rate limits and queueing behavior, and measure time to first token at the provider before you attribute slowness to the interface.
Vector database and storage capacity
The scaling guide requires an external vector database when you run several workers or replicas, because the default ChromaDB crashes in multi-process setups. Extraction, embedding and retrieval load grow with document volume, and the database, shared file storage and PostgreSQL each have their own capacity ceilings. Confirm the capacity, connection limits and I/O of each store under realistic document load, and do not assume that tuning the app removes a constraint in the data layer.
Scaling Open WebUI docsMeasure results in your own environment
The supplied sources do not publish benchmark results for Open WebUI throughput, latency or resource use at a given user count. Any figure you read about tuning effects depends on your hardware, models, documents, network and user behavior. Set a baseline with a representative workload, change one setting at a time, and record latency, error rates and resource use so that the effect of each change is attributable and repeatable.
How DeployOpen scopes and delivers Open WebUI tuning
DeployOpen approaches Open WebUI performance tuning as a scoped engagement inside your own infrastructure. We start from measured load, change one layer at a time, and document each setting so your team can operate and reverse it later.
How we scope
- We confirm the user count, peak concurrency, proxy and load balancer setup, and whether you run multiple replicas.
- We agree in writing which tuning areas are in scope, such as compression, model list caching, active-status writes and streaming settings.
- We list the metrics and logs we will collect before and after changes, so results can be compared against a baseline.
How we build
- We apply each change in a staging copy of your deployment and record the exact configuration values used.
- We move extraction and embedding work off the application only where your architecture allows it, and test that path end to end.
- We check each change against login, chat streaming, file upload and knowledge search before it reaches production.
How we hand over
- You receive a written configuration record with each setting, its previous value, its reason and its rollback steps.
- You receive a before and after measurement report with the load test method, so your engineers can repeat the tests.
- We walk your platform and operations staff through the runbook and the signals that show a tuning setting needs review.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer, so tuning can be revisited after each Open WebUI release.
- We ask you to confirm the version, license terms and any upgrade plan before we recheck settings that may have changed.
- Quotes follow from the written scope, so you can compare a fixed-scope engagement with running the work with your own team.

