BLOG · GUIDE · · UPDATED

Open WebUI scaling for 500 to 2,000 users: replicas, Redis, PostgreSQL and SSO

Eurokommerz, Vienna, since 2006: Private AI/ML · IT Managed Services · Enterprise Training · AI Hardware & Software

IN BRIEF
  • One Open WebUI container with SQLite serves a pilot; for multiple instances, Open WebUI’s scaling guide marks PostgreSQL, Redis and an external vector database as required and lists 1,000+ users under the same requirements
  • Each replica runs one Uvicorn worker, all replicas share one WEBUI_SECRET_KEY and OAUTH_SESSION_TOKEN_ENCRYPTION_KEY, and only one designated pod runs database migrations
  • Redis carries websockets, locks and token revocation between replicas; the docs call noeviction the safe default, accept only volatile policies where memory is capped, recommend append-only persistence and warn of the 1,000-client limit on some distributions
  • Uploaded files go to S3-compatible storage or a ReadWriteMany volume, vectors to pgvector or another client-server database, and extraction and embeddings to external services such as Tika
  • Upgrades stop all replicas, let one instance migrate the schema and then restart the fleet; the docs do not support rolling upgrades across a schema change, and Helm rollback cannot undo migrations

Eurokommerz × Vixen.UNO: Private AI/ML  Talk to an expert →

Open WebUI scaling: what changes between a pilot and 1,000 users

A pilot of Open WebUI runs as one container with SQLite in its data volume. For a production deployment of 500 to 2,000 users, Open WebUI’s scaling guide moves the deployment to PostgreSQL, adds Redis for websockets and shared state, runs several replicas behind a load balancer, moves the vector index into an external database and takes document extraction and embeddings out of the application process. Its quick reference marks PostgreSQL, Redis and an external vector database as required for multiple instances and lists large deployments of “1000+ users” with the same requirements. The settings below follow the Open WebUI documentation, first read on 10 October 2026; we read the scaling, multi-replica, Redis, SSO, Kubernetes, groups and environment pages again on 23 November 2026, and the quotations follow that reading. The project’s newest release on 19 November 2026 was v0.13.3 of 8 November. Run v0.12.2 or later: v0.11.4 fixed two high-severity advisories, one of which let any website obtain the session token of a signed-in user, and v0.12.2 fixed a channel webhook spoofing issue published on 18 October 2026. The Kubernetes guide now pins Helm chart 18.0.0 with v0.13.0.

COMPONENTPILOT500 TO 2,000 USERSSETTINGS
DatabaseSQLite in the data volumePostgreSQL with a sized poolDATABASE_URL, DATABASE_POOL_SIZE
Websockets and stateinside the one processRedis shared by all replicasREDIS_URL, WEBSOCKET_MANAGER=redis
Instancesone containerseveral replicas, one worker eachUVICORN_WORKERS=1, one secret key
Schema migrationsat every startone designated podENABLE_DB_MIGRATIONS=false elsewhere
Uploaded fileslocal data directoryS3-compatible bucket or RWX volumeSTORAGE_PROVIDER=s3
Vector indexlocal ChromaDBpgvector or a client-server databaseVECTOR_DB=pgvector
Extraction, embeddingspypdf, SentenceTransformersTika, an external embedding endpointCONTENT_EXTRACTION_ENGINE=tika
Sign-inlocal accountsOIDC with role and group claimsENABLE_OAUTH_GROUP_MANAGEMENT

Open WebUI documentation: scaling guide, multi-replica troubleshooting, Redis, SSO and Kubernetes pages, read on 10 October and 23 November 2026.

The choice of front end and the basics of sign-in are covered in our guide to a private ChatGPT alternative.

Open WebUI is open-source software; under Private AI/ML we build the layer behind it, GPU servers and private LLMs with vLLM, Ollama or NVIDIA AI Enterprise. Send us your user count and the models you plan to offer, and we answer with a sizing of the GPU servers and a written quote.

PostgreSQL and the connection pool

The scaling guide says to switch first: “Before adding replicas, switch to PostgreSQL and a client-server vector database.”. DATABASE_URL points to the PostgreSQL database. Several instances on one SQLite file produce “database is locked” errors and data corruption, and SQLite must not sit on a network filesystem, because its file locking is unreliable over NFS. The guide also notes that Open WebUI “does not migrate data between databases”, so decide before the switch whether pilot chats move to PostgreSQL or the production platform starts empty.

Each replica keeps its own connection pool. The guide calls DATABASE_POOL_SIZE=15 with DATABASE_POOL_MAX_OVERFLOW=20 “a good start for busy instances” and adds: “Keep that below PostgreSQL’s max_connections (default 100) with room for other clients.” By our arithmetic, one replica can then open up to 35 connections, so three replicas reach 105 before migrations, backups or monitoring connect. PostgreSQL 18 also reserves three connections for superusers by default. Either raise max_connections on the database server, which takes effect only at server start, or lower the pool per replica.

The vectors can stay in the same PostgreSQL server: the Kubernetes guide’s production profile sets VECTOR_DB to pgvector with the same database URL, and leaves creating the vector extension to a database administrator. Our vector database comparison covers when pgvector stops being enough.

Redis for websockets, token revocation and shared state

With WEBSOCKET_MANAGER=redis, Open WebUI runs Socket.IO over Redis Pub/Sub, so an answer streamed by one replica reaches a browser connected to another. The Redis page lists REDIS_URL for application state and WEBSOCKET_MANAGER=redis, with WEBSOCKET_REDIS_URL as an option for putting websocket traffic on another server or database, and REDIS_KEY_PREFIX where several Open WebUI instances share one Redis server; websockets are on by default. Redis also holds locks, the websocket session and usage pools and the list of revoked tokens. Per the Redis page, Redis “is what makes signing out revoke a token”, so a single instance without Redis does not revoke tokens at sign-out either. Since v0.12.0 of 10 October 2026, a password change or an administrator’s “Sign out all devices” in the user edit dialog ends every session of that account, with or without Redis.

REDIS SETTINGDOCUMENTED VALUEREASON GIVEN
Eviction policynoevictionallkeys policies can un-revoke tokens
With a memory capvolatile-ttl, volatile-lruonly keys with an expiry are evicted
Persistenceappendonly yes, everysecloss bounded to about one second
Client limitmaxclients 100001,000 clients on some distributions
Idle timeouttimeout 1800closes idle TCP connections only
Connect timeoutREDIS_SOCKET_CONNECT_TIMEOUT=5needed with Sentinel

Open WebUI documentation, Redis page, read on 10 October and 23 November 2026.

For availability, Open WebUI connects to Redis Sentinel through REDIS_SENTINEL_HOSTS, and the websocket manager needs WEBSOCKET_SENTINEL_HOSTS and WEBSOCKET_SENTINEL_PORT as well, because it does not read the REDIS_SENTINEL variables. A Redis Cluster is set with REDIS_CLUSTER=true, which has no effect once Sentinel hosts are defined.

Multiple replicas behind a load balancer

The scaling guide describes a “stateless, container-first architecture”: once the shared services are in place, you can “run as many identical instances as you need behind a load balancer”. Keep UVICORN_WORKERS=1 per container and let the orchestrator add replicas, because every worker is a full Open WebUI process that runs the startup migrations. Set ENABLE_DB_MIGRATIONS=False on all replicas except one designated pod, as the multi-replica page does. All replicas need the same WEBUI_SECRET_KEY; with different keys, a token issued by one replica fails on the next and users see login loops and 401 errors. The SSO page adds that OAUTH_SESSION_TOKEN_ENCRYPTION_KEY “Must be shared across all instances in a cluster”.

The load balancer or ingress needs websockets, streamed responses without buffering, suitable request and idle timeouts and the upload size you allow. Every public hostname goes into CORS_ALLOW_ORIGIN, or websocket connections fail on an origin mismatch. Session affinity is “optional with WebSockets on and required with ENABLE_WEBSOCKET_SUPPORT=false”, the Kubernetes guide says, and “Affinity does not replace Redis”. The scaling guide’s example also sets THREAD_POOL_SIZE=2000; by default, blocking work runs “in a thread pool limited to 40 concurrent operations”.

On Kubernetes, the official chart’s production profile starts three replicas with one worker each, Redis and PostgreSQL provided outside the chart, uploads in an S3 bucket and ingress enabled. The guide states that “User count alone does not determine the number of replicas” and places replicas “on different nodes when you need resilience to a node failure”. Chart 18.0.0, which the guide pins with v0.13.0, does not create a HorizontalPodAutoscaler or a PodDisruptionBudget through dedicated values; the guide supplies both as separate resources. As read on 16 October 2026, ENABLE_OTEL=true with OTEL_EXPORTER_OTLP_ENDPOINT exports traces, metrics and logs. The model servers behind Open WebUI are a separate layer, covered in our article on a private LLM platform on Kubernetes.

That model layer is what our Private AI/ML service builds: private LLMs with vLLM, Ollama or NVIDIA AI Enterprise and MLOps on Kubernetes with KServe or Kubeflow, on your servers or on dedicated hardware in a Tier III data centre in Lithuania.

Files, vector index and document extraction

Uploads written by one replica must be readable by all others, or users see “Image unavailable” placeholders and files the model cannot find. As read on 23 November 2026, the scaling guide’s quick reference marks shared storage “Required (shared filesystem or object storage)” for multiple instances and “Required across replicas” for large deployments of 1000+ users, and its file storage step states: “Shared file access is the requirement; object storage is one way to get it.” The multi-replica page puts shared file storage on its core requirements checklist, and the Kubernetes production profile keeps uploads in an S3-compatible bucket. Mount a ReadWriteMany volume at /app/backend/data on every replica, or set STORAGE_PROVIDER to an object store such as S3. With object storage, the Kubernetes guide treats /app/backend/data as ephemeral: files there outside PostgreSQL and the bucket do not survive a pod replacement.

The default ChromaDB runs inside the application on SQLite. The multi-replica page warns that “The embedded ChromaDB crashes under multi-process writes”, and the fix is ChromaDB as a separate HTTP server or a client-server database through VECTOR_DB, such as pgvector, Milvus or Qdrant. The scaling guide states: “The core team maintains PGVector and ChromaDB.”

The scaling guide notes that the default content extractor, pypdf, and the default local embedding model, SentenceTransformers, run inside every Open WebUI process, and calls the extractor “a common source of memory growth”. It moves extraction to Apache Tika with CONTENT_EXTRACTION_ENGINE=tika and TIKA_SERVER_URL, and embeddings to an external endpoint with RAG_EMBEDDING_ENGINE, such as an embedding model served by vLLM.

SSO with OIDC, roles and model access per group

At this scale accounts come from the identity provider. Open WebUI reads the OIDC discovery URL from OPENID_PROVIDER_URL, restricts sign-in to roles in OAUTH_ALLOWED_ROLES and grants administrator rights to OAUTH_ADMIN_ROLES when role management is on. With ENABLE_OAUTH_GROUP_MANAGEMENT, memberships follow the groups claim at each sign-in. The SSO page warns that users are removed from groups “including those manually created or assigned within Open WebUI”, with “no role exemption”, and that a change in the identity provider shows after the user signs out and in again. Groups listed in OAUTH_BLOCKED_GROUPS are never added or removed.

Models, knowledge bases and tools set to private are shared with groups at read or write level. Permissions are additive and deny rules do not exist, so the groups page advises disabling all permissions in sharing groups and setting feature rights in the global defaults. How to map departments and waves to these groups is the subject of our rollout plan for 1,000 employees. Where model access also needs keys per team, token budgets and a log, the connection from Open WebUI points at an LLM gateway instead of the model servers.

Two settings decide whether the environment variables or the admin panel win. ENABLE_PERSISTENT_CONFIG defaults to true, and variables marked as ConfigVar are then read only at the first launch and stored in the database. ENABLE_OAUTH_PERSISTENT_CONFIG defaults to false, which “keeps environment variables authoritative for OAuth”, and both must be true to manage OAuth from the admin panel. Decide which side wins before the first production start. One default deserves a look at the same time: ENABLE_ADMIN_CHAT_ACCESS is true, and the variable reference describes it as controlling “whether admins can open other users’ chats inside Open WebUI”.

Licence terms for branding

Since v0.6.6 of 19 April 2025, Open WebUI’s licence forbids altering, removing, obscuring or replacing its branding, described on the licence page as “(name, logo, UI marks, etc.)”, unless, as the licence page explains, “You have 50 or fewer users in a 30-day period”, a substantive contributor has obtained specific prior written permission, or an enterprise licence explicitly allows branding changes. Internal use has “No per-user limits for internal/staff/company-wide use as long as Open WebUI branding is always present and prominent”. WEBUI_NAME sets the name shown and, per the variable reference, appends “(Open WebUI)” when overridden. Whether a planned custom theme stays within these terms is a legal assessment for the company’s legal department.

Backups and upgrades

A backup covers the PostgreSQL database, which holds chats, users, settings and, with pgvector, the vectors, and the bucket or volume with uploads. Open WebUI’s backup page names pg_dump for PostgreSQL, which, per the PostgreSQL documentation, “makes consistent exports even if the database is being used concurrently”. Copy the uploads right after the dump, so that file records and files match. Keep the secret keys and the environment in your secrets store, because tokens and stored OAuth sessions depend on them.

Upgrades follow a fixed order. The multi-replica page states that “Old and new Open WebUI instances must never serve traffic against the same database at the same time”: back up the database, stop all replicas, let one instance migrate the schema, then start the fleet on the new version. Rolling or canary upgrades across a schema change are not supported. The Kubernetes guide scales the deployment to zero, starts one migration-enabled replica with ingress disabled, checks it and then restores the production values, and warns that Helm rollback, including --atomic, “cannot undo database migrations”. Test each upgrade on a staging copy of the database first.

Upgrades of the model servers behind Open WebUI follow the same discipline. Send us your planned user count, the models and your identity provider, and we answer with a sizing of the model and GPU servers, a configuration and a written quote.

Moving from a pilot to the production layout

  1. Freeze the pilot’s version, check it against Open WebUI’s security advisories, record its settings and decide whether its chats and users move to PostgreSQL.
  2. Provide PostgreSQL with pgvector, set max_connections for the replicas and pools you plan, and create the vector extension.
  3. Provide Redis with noeviction, append-only persistence and Sentinel or Cluster for availability.
  4. Create the bucket or ReadWriteMany volume for uploads, and run Tika and the embedding endpoint as separate services.
  5. Generate one WEBUI_SECRET_KEY and one OAuth session key, store them as secrets and decide whether configuration lives in variables or in the database.
  6. Start one replica with migrations enabled and ingress disabled, connect OIDC with role and group claims and test sign-in, sharing and uploads.
  7. Raise the replica count with migrations disabled, open the ingress with websockets and set CORS_ALLOW_ORIGIN.
  8. Re-index the knowledge bases into the new vector store, connect OpenTelemetry and write the backup and upgrade runbook.

Model and GPU servers behind Open WebUI

Our Private AI/ML service builds the AI platform behind a front end such as Open WebUI: GPU servers, private LLMs with vLLM, Ollama or NVIDIA AI Enterprise, RAG assistants on your documents, a query log and data and permissions management. On request we install and configure Open WebUI on the servers. We start with a pilot on one process with clear metrics and train your team to run the platform. Eurokommerz holds the contract and supplies the GPU servers, from a single server to a cluster (we supply servers from Supermicro, Gigabyte, ASUS, Dell, HPE, Lenovo and other makers per project), with engineering by our partner Vixen.UNO and ongoing support under an agreed SLA; the price of the technical assessment is fixed before work begins.

FAQ

How do you scale Open WebUI for many users?
Move from SQLite to PostgreSQL, add Redis for websockets and shared state, run several replicas with one Uvicorn worker each behind a load balancer and share one secret key between them. Put uploads in S3-compatible storage or a ReadWriteMany volume, vectors in pgvector or another client-server database, and extraction and embeddings in external services. Open WebUI’s scaling guide lists deployments of 1,000+ users with the same requirements as multiple instances.
Can Open WebUI run with multiple replicas?
Yes. Open WebUI’s documentation describes it as stateless once PostgreSQL, Redis and an external vector database are in place, so replicas can run behind a load balancer. All replicas need the same WEBUI_SECRET_KEY and OAuth session encryption key, and only one designated pod should run database migrations.
Does Open WebUI need Redis?
For multiple replicas or workers, yes: the scaling guide marks Redis as required, because websockets, locks and token revocation are shared through it. A single instance runs without Redis, but then signing out does not invalidate a user’s token. The Redis page calls noeviction the safe default, accepts only volatile-ttl or volatile-lru where memory must be capped and recommends append-only persistence.
Should Open WebUI use PostgreSQL or SQLite in production?
SQLite suits a single instance and evaluation; for multiple instances the scaling guide requires PostgreSQL and says to switch before adding replicas. Each replica keeps its own connection pool, so the suggested starting values of 15 plus 20 overflow connections per replica, summed over all replicas, must stay below the server’s max_connections. Open WebUI does not migrate existing data from SQLite to PostgreSQL itself.
How do you set up enterprise SSO for Open WebUI?
Connect the identity provider through OpenID Connect with OPENID_PROVIDER_URL, the client ID and secret, and turn on role and group management so that roles and memberships follow the token’s claims. Group sync removes users from groups that the claim does not list, including groups assigned by hand and with no exemption for administrators, and a change shows after the next sign-in. Models and knowledge bases are then shared per group.
How do you run Open WebUI on Kubernetes with high availability?
The official Helm chart’s production profile runs three replicas with one worker each, external PostgreSQL with pgvector, external Redis and uploads in an S3 bucket. Spread the replicas across nodes and add a PodDisruptionBudget and an autoscaler yourself, because chart 18.0.0, which the guide pins, does not create them through dedicated values. Upgrades scale the deployment to zero, let one replica migrate the schema and then restore the replicas.

Send us the number of users, the models you want to offer in Open WebUI and your identity provider. We answer with a sizing of the model and GPU servers behind it and a written quote. We reply within one business day.

Talk to an expert
Talk to an expert

We reply within one business day

By sending this form you agree that we process your details to answer your enquiry; see our privacy policy.

request@eurokommerz.at
Jordangasse 7, 1010 Vienna