Open WebUI health checks and probes

Teams running Open WebUI behind a load balancer or in Kubernetes need probes that restart a stuck pod without restarting one that is still migrating. This page explains how to use the /health and /health/db endpoints for each probe and how to size startup windows.

On this page

Why Open WebUI health checks decide whether replicas stay in service

A platform team that puts Open WebUI behind a load balancer or into Kubernetes has three questions to answer with probes: when a pod is ready to receive traffic, when it should be restarted, and how long a first start may take while database migrations run. The /health and /health/db endpoints are the inputs for those answers. In general terms, the first reports whether the application process is responding, and the second adds a check that the database is reachable. Exact response bodies, status codes and behavior differ between releases, so confirm them against the release you run before writing any probe rules that depend on them.

Probe design follows from the dependencies behind the pod. A single-replica deployment on SQLite can often be judged by one endpoint, but a multi-replica deployment depends on PostgreSQL for shared data, Redis for shared session and websocket state, and shared file storage for uploads and knowledge. The scaling guide also states that SQLite is not suitable for multi-instance deployments and that the default ChromaDB will crash in multi-process setups. A replica that answers /health while its database or Redis connection is broken can still take traffic and fail users, so the readiness decision should account for what the replica actually needs to serve a request.

Before you set thresholds, ask your Open WebUI release notes or maintainers what each endpoint checks, how long a first start with migrations takes on your database size, and whether the health path requires authentication through your proxy. Then test the probes in a staging cluster by stopping the database and Redis separately and watching which pods leave the load balancer. Keep the startup window generous enough for migrations, and keep liveness checks lenient so a slow migration is not mistaken for a hung process.

Only the /health/db check depends on the database

The diagram starts at the load balancer and the kubelet, which call the Open WebUI pod's health endpoints. The /health endpoint answers without querying the database, so a database outage does not by itself mark the pod unhealthy for liveness. The /health/db endpoint checks PostgreSQL, so it fails when the database is unreachable and takes the pod out of rotation. The pod also depends on Redis, shared file storage and an external vector database, which are not checked by either endpoint. Confirm which failures your probe configuration actually restarts on.

Which probe checks reach the database, and which dependencies stay outside the checks.

Which probe and endpoint fits each job

This table maps each probe or health check type to the question it answers, the endpoint that suits it, the failure it should trigger and the risk of pointing it at the wrong endpoint. Read each row as a decision: if a check restarts a container, it must only test something a restart can fix. Confirm the exact behavior of /health and /health/db in your release before you wire them into orchestration.

CheckQuestion it answersSuited endpoint and failure actionRisk of the wrong endpoint
Startup probeHas the container finished its boot work, including database migrations, and is the process listening yet?/health, with a generous failure window so slow migrations are not killed. Failure keeps the pod out of service and waits, it does not restart early.A short window restarts the container mid-migration, which can repeat the work and leave the database in a harder state to recover.
Readiness probeCan this replica accept user traffic right now?/health/db if the replica must reach PostgreSQL to serve requests. Failure removes the pod from Service endpoints without restarting it.Using /health alone can send traffic to a replica whose database is unreachable, so users see errors that a restart would not fix.
Liveness probeIs the process stuck in a state that only a restart can clear?/health, kept simple and tolerant. Failure triggers a container restart, so it should only reflect the process itself.Pointing liveness at /health/db ties restarts to database or network outages, causing restart loops that add load during an incident.
Load balancer health checkShould this instance receive requests from the load balancer?/health/db for pools where each instance needs its database. Failure removes the instance from rotation only.Checking only the process can keep a broken replica in rotation, while a very strict check can drain the whole pool during a short database blip.
Restart-on-failure policyWhat action follows a failed check in your orchestrator or container runtime?Restart only on liveness failures. Confirm how your runtime treats repeated failures and back-off in your environment.Restarting on readiness or database failures can cascade across replicas and hide the real fault in the database or storage tier.
Shared dependencies (Redis and storage)Do sessions, websockets and uploads depend on services that the health endpoints may not test?Monitor Redis and shared file storage separately. Confirm with your release notes whether either endpoint reports them.Assuming the endpoints cover Redis can leave replicas accepting traffic while sign-outs and websocket sessions fail.
Monitoring and alertsDo operators learn about failures without the orchestrator hiding them?Alert on readiness removals and restart counts separately. Confirm the response bodies and status codes of each endpoint in your release.Treating every failed probe as an outage can page the on-call team for expected startup delays after upgrades.

How probe timing changes for single and multi-replica setups

A single container using SQLite is the simplest shape, and its startup time is driven mostly by the database file and the local migration run. The Scaling Open WebUI guide says SQLite remains acceptable for single-replica deployments, evaluation and small teams only when the database file sits on locally attached SSD or NVMe storage rather than network storage. Because there is one process and no shared state service to wait for, the readiness check mainly needs to confirm that the application has finished its schema migrations and can open the database file.

  • Migration time: On first start or after an upgrade, the container runs schema migrations against the file before it listens, so the startup window must cover that work.
  • Storage latency: A database file on a slow or shared volume lengthens every query during startup, which pushes out the point where /health/db first returns success.
  • No external waits: With no Redis or vector database to reach, a failed readiness check usually points to the local volume, file permissions or the data directory mount.
  • Liveness scope: Keep liveness tied to the process staying up, and avoid restarts triggered by a slow database check, since restarting does not speed up a busy file.
  • Measurement: Time a cold start on the same host class and volume you will run in production, then set the startup window with margin above that measurement.

Before you finalize values, confirm that the data volume is local SSD or NVMe in your environment and that the startup window covers a migration run on a copy of your data.

How to configure Open WebUI health checks step by step

This sequence takes a team from confirming endpoint behavior in a test environment to proving that startup, readiness, liveness and load balancer routing each respond correctly when the database is unavailable. The output is a tested probe configuration that does not restart pods during migrations and stops routing traffic to replicas that cannot reach PostgreSQL.

  1. Confirm the version and endpoint behavior in staging

    Deploy the exact Open WebUI version you plan to run in production into a staging environment that mirrors your ingress, reverse proxy and PostgreSQL setup. Pin the image tag rather than using a floating tag, then call the /health and /health/db endpoints directly and record the status code and response body for each. Check the release notes for the pinned version before you rely on either endpoint's behavior, since the project publishes new releases on its GitHub releases page. This step is done when you have a written record of what each endpoint returns on a healthy instance, and your team agrees that record is the baseline for every later test.

  2. Measure first start time on an empty database

    Start a fresh instance against an empty PostgreSQL database, with no prior data volume, and time how long it takes before /health returns a successful response. Capture the container logs during this period so you can see the migration steps as they run. Run the test two or three times, because first-start migrations and cold image pulls can differ from later restarts. Your team owns this measurement, and it should be done in an environment that matches production resource limits as closely as possible. This step is done when you have a recorded startup time range that you can use to size the startup probe in the next step.

  3. Set a startup probe that covers the migration window

    Configure a Kubernetes startup probe against /health with a failure threshold and period that together give the container more time than the longest startup you measured, with a margin you choose and document. The startup probe holds off liveness and readiness checks until it succeeds, so a slow migration is not mistaken for a hung process. Apply the change to staging and perform a rolling restart. The check is that the pod stays in a starting state, shows no restarts in kubectl describe, and transitions to ready once migrations finish. If the pod restarts during migration, the window is too short and must be widened.

  4. Point readiness at the database-aware endpoint

    Set the readiness probe to /health/db so that a replica is removed from service whenever it cannot reach PostgreSQL. Keep the period and timeout modest so that a database outage is detected quickly, and set a failure threshold that avoids flapping on a single slow response. Your platform or SRE team owns this change. The check is to run kubectl get pods and confirm that the pod shows ready after startup, then review the endpoint response body in logs to confirm that the database status is reported as healthy.

  5. Set liveness on a lighter check

    Configure the liveness probe against /health, which does not depend on the database, so that Kubernetes restarts a container only when the Open WebUI process itself stops answering. Do not point liveness at /health/db. If the database has a brief outage, a liveness check tied to the database would restart every replica at once and make the outage worse. The check is to confirm in the pod spec that liveness and readiness use different paths, and that stopping PostgreSQL in staging does not cause the pods to restart.

  6. Route load balancer traffic on the readiness endpoint

    Configure the external load balancer or ingress health check to use /health/db, the same endpoint as readiness, so that the load balancer and Kubernetes agree on which replicas are healthy. Confirm the health check interval, thresholds and expected status code with your load balancer documentation, since those settings vary by provider. The check is that each backend appears as healthy in the load balancer console and that the target list matches the ready pods reported by Kubernetes.

  7. Test failure by stopping PostgreSQL in staging

    Stop the PostgreSQL service in staging while a test user keeps a session open and a monitor polls the public URL. Watch for three results: /health/db should begin failing, the readiness state should change so the pods leave the service endpoints, and the load balancer should stop sending traffic to those backends. Confirm that the pods are not restarted by liveness during the outage. Restart PostgreSQL and verify that the pods return to ready and traffic resumes without manual intervention. Record the timestamps for each transition and keep the results with your runbook.

  8. Review the results and record the final configuration

    Compare the staging results against the baseline you recorded in the first step and write down the final startup, readiness, liveness and load balancer settings with the reason for each value. Include the pinned Open WebUI version, the measured startup range and the margin you chose. Have the platform owner and the application owner sign off, and repeat the outage test after any upgrade or change to the database, ingress or probe settings. This step is done when the configuration is stored in version control and the staging test can be rerun from the runbook.

Security and exposure considerations for health endpoints

Health endpoints are small, unauthenticated-looking routes that can still reveal how Open WebUI is built and whether its database is reachable. The cards below cover exposure, dependency disclosure, probe source restriction, log hygiene and alerting, so each endpoint is treated as an internal control rather than a public page.

Reachability from outside

Decide first whether /health and /health/db can be reached from outside the cluster or load balancer. Public ingress rules that route all paths to Open WebUI expose these routes by default. Confirm in your version whether either endpoint requires authentication, and write down the answer, because the security review depends on it. Block external paths for health routes at the ingress or reverse proxy unless a monitoring service truly needs them.

Dependency disclosure

The /health/db route checks database connectivity, so a response can tell an outsider that the backend is reachable or failing. Treat any status code or body difference as information. Ask whether your version returns detail beyond a simple status, and keep error text out of public responses where the proxy can strip it.

Restricting probe sources

Limit probe traffic to the addresses that actually send it: the kubelet on each node for Kubernetes probes, and the load balancer's health check source ranges for external balancers. A network policy should allow ingress to the health port only from those sources. Confirm the exact source addresses with your platform team and your load balancer vendor, since they vary by cluster and cloud.

Health results in logs

Probe requests are frequent, so they can flood logs and bury real events. Filter or sample health route entries at the collector, and confirm that no prompt content, user identifiers or tokens appear in probe log lines. Keep health log output separate from request logs so that retention and access rules can differ for each stream.

Alerting on probe failures

Alert on sustained probe failures rather than single misses, and route the alert to the team that runs the database and Redis, not only to the application owners. A failing /health/db check during a database failover or a credential rotation is an operational event that needs a named owner. Record the alert threshold and the runbook link alongside the probe configuration.

Sizing startup windows for database migrations

A first start or an upgrade that runs database migrations can take far longer than a normal restart, and the probe settings you copy from a stateless web service may not allow for that. Schema changes, data backfills and index rebuilds run before the HTTP listener is ready, so /health may return nothing useful for minutes. If a liveness probe uses a short timeoutSeconds and a low failureThreshold, the kubelet restarts the container in the middle of a migration. The restart interrupts the work, the next start tries again, and the pod can enter a loop that looks like a crash but is really a probe misconfiguration. Check the pod events for liveness failures before you change any application setting.

Measure the window in staging on a copy of production data, not on an empty database. Take a recent backup, restore it to a database of the same engine and size class, point a staging release at it, and time the migration from the first log line to the first successful /health/db response. Repeat the test with the target version, because migration behavior changes between releases, and confirm with the project's release notes or upgrade guidance what each migration does for that version. Then add margin for slower production storage, concurrent load and the difference between a clean copy and live data. The margin is a judgment call for your team, so record the measured figure and the margin you chose so the next upgrade starts from evidence.

Use a startup probe to cover that window, and keep liveness and readiness checks off until the application has started. The startup probe gets a failureThreshold multiplied by periodSeconds that exceeds your measured time plus margin, and the kubelet holds off on liveness and readiness checks until it succeeds. Once it passes, the liveness probe can stay strict enough to catch a hung process. For upgrades, review the upgrade practice in the sibling content group on Open WebUI upgrades before scheduling the change, and confirm the migration path for the exact version you are moving to rather than relying on a figure from an earlier release.

Limits to confirm in your environment before relying on probes

The supplied sources do not document the exact response behavior of the health endpoints, so the settings you plan for load balancers and Kubernetes probes need checking against your own release. The cards below cover what to test in staging, and they connect to the dependencies (Redis, the vector store, PostgreSQL) that health checks can hide or expose.

Status codes and response bodies

Confirm the exact HTTP status code and response body that /health and /health/db return in the release you deploy. Load balancers and probes usually match on the status code, and a body that differs from what your runbook expects can make a healthy instance look broken. Record the responses for healthy and unhealthy states in staging, and keep that record with the release you pinned. Ask the vendor if the contract is documented for future releases.

Open WebUI features docs

Whether `/health/db` runs a live query

Establish whether /health/db opens a connection and runs a query against the database, or only reports that the application started. A liveness probe that depends on a live query can restart pods during a short database failover, which adds load when the database is already slow. Test by stopping the database in staging and watching what the endpoint returns and how quickly it changes.

Behavior when Redis is down

Redis holds sessions, websocket connections and application state in multi-replica setups, so its failure affects more than the health endpoints. Confirm whether /health keeps returning success while Redis is unreachable, and what users see on sign-in and streaming. The scaling guide notes that without Redis, sign-out does not revoke tokens, which matters if your probe design assumes a failed replica is removed cleanly.

Scaling Open WebUI docs

Behavior when the vector store is down

Check whether the endpoints report anything about the external vector database. The scaling guide requires an external vector store for several workers or replicas, so a readiness probe that ignores it can send traffic to replicas that cannot answer retrieval requests. Decide whether a retrieval outage should remove a replica from rotation or only degrade one feature, then test that choice by stopping the vector store in staging.

Protocol and Kubernetes probe support

Confirm that your load balancer can call the endpoints over the protocol you terminate, whether HTTP or HTTPS behind a proxy, and that any redirect to HTTPS does not turn a probe into a failure. Also confirm that your Kubernetes version and distribution support the probe types, timeouts and startup probe settings you plan, and that the startup window is long enough for database migrations on your largest data set. Verify both in staging before production rollout.

Questions teams ask about Open WebUI health checks

How much effort does it take to configure health probes for an existing Open WebUI deployment?

The effort is mostly in verification rather than in the probe settings themselves, which are short. A single-container Docker or Compose install can have its probes pointed at the health endpoints in a short change, but the work grows once you add a reverse proxy, a load balancer, a Kubernetes cluster or a database that runs migrations on startup. Ask any partner to separate the configuration work from the testing work in the written scope, because the testing is where most of the time goes. Probe timing values should come from measured startup behavior in your own environment, not from a template.

What drives the effort up or down for probe work?

Four factors matter most:

  • Dependency count: every service the probe chain touches, such as the database, Redis and the vector store, adds a case to verify.
  • Migration testing: a schema migration that runs at startup can take far longer than a normal boot, so the startup window needs to be proven on a copy of real data.
  • Load balancer and network policy: health check source addresses, timeouts and allowed ports must match what the load balancer or Kubernetes network policy permits.
  • Replica count: multiple replicas need Redis and shared storage, so readiness has to reflect whether those shared services are reachable.

Each factor adds testing steps, not just configuration lines, so ask for them to be listed in the quote.

Can a single internal team set up Open WebUI probes without an outside partner?

Yes, a team with Kubernetes or load balancer experience and access to a staging environment can usually do the work alone, particularly for a single-replica deployment. The risk is in the things teams rarely test: startup after a migration, behavior when Redis or the database is briefly unavailable, and whether a liveness probe restarts a pod that is only slow. If your team has not already run a startup failure drill, a partner can add an independent review of the probe design. Whichever path you choose, confirm who signs off on the final timing values and who owns them after go-live.

What does the client need to provide for probe testing?

Plan to provide a staging environment that matches production in its ingress path, load balancer type and network policies, because probe results on a simplified test setup do not prove much. You will also need a recent copy of the database with realistic data volume so migration timing is representative, plus cluster or load balancer access with rights to change probe settings. Change windows matter too, since rolling restarts and probe changes can briefly affect users. Confirm these items in the written scope before any work starts.

How long does probe testing take when there are several environments?

The duration depends on how many environments must be tested and how long a representative startup takes in each one, so no single figure applies. Each environment needs its own cold start, migration, failover and recovery runs, and production-like data copies take time to restore. A team with development, staging and production should expect the testing to repeat for each one, though the configuration can be reused. Ask for the duration per environment and the number of test runs in the proposal, and check whether the timeline includes change windows.

Does probe design change when moving from SQLite to PostgreSQL?

Yes. The Open WebUI scaling guide requires PostgreSQL instead of SQLite for multi-instance deployments, so a move to multiple replicas usually comes with Redis and shared file storage as well. Under SQLite, a readiness probe mainly checks that the application and its local database file respond. Under PostgreSQL, the readiness check should reflect whether the database connection is available, and the liveness probe should avoid restarting pods during a short database outage. Startup windows also usually need to be longer after a database migration, and that should be measured again after the switch.

How DeployOpen works on this

DeployOpen plans, builds, tests and documents Open WebUI health checks inside your own infrastructure, so your load balancer and Kubernetes probes match how your Open WebUI replicas actually start and serve traffic. Each step is agreed in writing before work begins, and the probe settings are verified against your environment rather than copied from defaults.

How we scope

  • We confirm the Open WebUI install method, whether you run one replica or several, and which database and Redis setup each replica uses.
  • The written scope names the load balancer or Kubernetes platform, the probe types, and the startup window you need for database migrations.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing, and ongoing support is available as a retainer.

How we build

  • We configure the /health and /health/db checks on each path your load balancer or probes use, separating liveness from readiness.
  • We set startup windows based on observed migration time in a staging copy of your data, then test failover and rolling restarts.
  • We check that probes do not restart pods during long migrations and that readiness drops traffic when the database check fails.

How we hand over

  • You receive the probe and health check configuration, with the reasoning for each timeout, threshold and startup window.
  • The runbook covers what each endpoint reports, which failures to expect, and which logs to read first when a check fails.
  • Test results from failover and restart scenarios are documented so your platform team can repeat them after upgrades.

How we support

  • Retainers cover re-testing probe settings after Open WebUI upgrades, since migration behavior can change between releases.
  • Support includes reviewing probe changes when you add replicas, move to a new database, or change the reverse proxy path.
  • Continuous testing can be added to the retainer so health check behavior stays verified as your environment changes.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.