Why LiteLLM high availability takes more than extra proxy pods
Once many applications send their model calls through one LiteLLM gateway, that gateway becomes a single point of failure, and adding proxy pods alone does not remove it. High availability depends on three things working together: shared state in PostgreSQL and Redis, failover in the router when a provider degrades, and health checks that tell the platform which instances should receive traffic. Each instance has to make the same decisions about virtual keys, budgets and rate limits, so the shared database and cache are part of the availability design, not an afterthought. LiteLLM's production guide names PostgreSQL as the primary supported database and requires Redis 7.0 or newer once more than one proxy instance runs, because shared rate limits, router state and cache live there. Confirm the Redis version your platform team will operate and whether that team can give it the same recovery targets as the gateway.
The harder problems appear when instances disagree. Virtual keys, per-key and per-team budgets, and TPM and RPM limits must stay consistent across every replica, so a key that is out of budget on one pod must be refused on all of them. If Redis is slow or unreachable, the platform team needs to know whether requests fail closed or continue with stale counters, and that choice should be made before go-live, not during an incident. LiteLLM recommends running one Uvicorn worker per pod on Kubernetes and scaling horizontally, which means capacity planning counts pods, not worker processes. Ask the vendor and your own testers to confirm how spend batching behaves when a database connection drops, since the production guide describes batching spend updates every 60 seconds at scale.
A provider outage can look exactly like a proxy fault. When a provider returns errors or slows down, the router's retries, cooldowns and priority ordering decide whether callers see failures or get served by a fallback deployment, and the health check may still report the gateway as healthy. Operators who only watch pod status will misdiagnose the problem and restart healthy instances. Plan a test that disables one provider deployment during load, then confirms the router cools it down, shifts traffic to the next priority, and keeps budgets and logs correct. Also confirm which health endpoints your load balancer probes, so that a degraded provider does not drain every instance at once.
Which components make a LiteLLM deployment highly available
A highly available LiteLLM gateway is only as strong as its weakest component. The load balancer, proxy pods, Redis, PostgreSQL, router configuration and secret store each fail differently, and a single instance of any one of them removes model access for every application behind the gateway.
Load balancer in front of the proxy
The load balancer distributes client requests across several proxy instances and removes an unhealthy instance from rotation. Without it, every application points at one proxy address, so a single pod restart or node failure stops all model traffic. Check that health probes call the proxy's health endpoint, that connection draining allows in-flight streaming requests to finish, and that the balancer itself has no single point of failure.
Proxy pods with one worker each
Each proxy pod runs the LiteLLM proxy, and LiteLLM recommends one Uvicorn worker per pod on Kubernetes, scaling horizontally by adding pods. Several pods let the gateway survive a crash or rolling upgrade of one instance. A single pod running multiple workers hides the failure domain, so confirm that replicas are spread across nodes and zones and that resource requests match the sizing in the production guide.
- Suggested per worker
- 1 vCPU
Redis for shared state
Redis holds shared rate limits, router state and cache so that every proxy instance enforces the same TPM and RPM limits and sees the same cooldown status. LiteLLM requires Redis 7.0 or newer once more than one proxy instance runs. Running one Redis node means a Redis outage can degrade rate limiting and routing decisions across all pods, so ask whether the deployment uses a replicated or managed Redis with automatic failover.
PostgreSQL for keys and spend
PostgreSQL is the primary supported database and stores virtual keys, budgets and spend records. Virtual keys cannot be issued or validated without it, so a single database instance turns every database outage into a full gateway outage. Plan a highly available PostgreSQL service with automated failover, tested backups and point-in-time recovery, and confirm that spend batching to the database tolerates a short failover without losing accounting data.
Router configuration and failover order
The router config defines model groups, which bind a public model name to several provider deployments, along with retries, cooldowns after repeated failures and priority ordering for fallback. This is what turns several provider accounts into one resilient route. If the group holds only one deployment, a provider outage stops that model even when every proxy pod is healthy. Review the fallback order with the provider accounts, regions and self-hosted models you actually have.
Routing docsSecret store for the master key
LITELLM_MASTER_KEY, which must start with sk-, grants administrative control of the proxy, and every pod needs it at startup. LiteLLM recommends keeping it in a secret manager instead of plain configuration. Storing it in one place per environment, without rotation or access logging, creates an outage risk if the secret is lost or revoked during an incident, and a security risk if it leaks. Confirm who can read it, how it is injected into each pod and how it is rotated without downtime.
How requests move through redundant proxies, Redis and PostgreSQL
The diagram starts with client applications sending requests to a load balancer inside the client network. The load balancer spreads traffic across several LiteLLM proxy pods, which share Redis for rate limits and router state and PostgreSQL for virtual keys, budgets and spend. Each pod then crosses the trust boundary into provider egress to reach provider deployments or private models. Check that health checks run against each pod, that Redis and PostgreSQL are reachable from every pod, and that egress is limited to the providers you approved.
Request path through the load balancer, proxy pods, shared state and provider egress.
Which HA decisions shape the design and what each costs you
This table compares the main high availability choices for a LiteLLM gateway and the operational work each one creates. Read each row against your own provider contracts, identity setup and on-call model, then decide which options your team can run after go-live.
| Decision | When it fits | What it costs operationally |
|---|---|---|
| Proxy instance count | Steady traffic from several applications where a single instance would be a shared point of failure | Each extra pod adds configuration, monitoring and upgrade work, and every instance must share the same database and Redis settings |
| Pods per zone | Multi-zone clusters where losing one zone should leave capacity in the others | Spreading pods across zones needs anti-affinity rules and enough capacity per zone, which raises idle compute cost |
| Managed Redis | Teams that want the cache and shared rate limit state run by the cloud provider | Recurring managed service fees, plus confirming version support, since LiteLLM requires Redis 7.0 or newer once more than one instance runs |
| Self-hosted Redis | Air-gapped or tightly controlled networks where a managed service is not allowed | Your team owns patching, failover configuration, persistence settings and capacity planning |
| Managed PostgreSQL | Organizations that want backups, minor upgrades and automated failover handled by a provider | Recurring service fees and a dependency on the provider's failover behavior, which you should confirm for your region |
| Self-hosted PostgreSQL with automated failover | Environments that need the database inside the client boundary and have operators who can run replication | Your team owns replication, failover tooling, backup restore tests and the on-call runbook for database promotion |
| Simple-shuffle routing | Most deployments, since LiteLLM recommends it as the default strategy | Lowest tuning effort, but it does not react to slow or overloaded deployments, so cooldown and retry settings need testing |
| Usage-based, latency-based, least-busy or cost-based routing | Mixed deployments where capacity, speed or price differ between provider accounts or self-hosted models | Needs load and latency data to set sensible thresholds, and routing behavior is harder to explain during an incident |
| Ordered provider failover | Contracts with one preferred provider and a backup used only during outages | The backup carries load only during incidents, so its quota, credentials and model aliases must be tested regularly |
| Spreading load across provider accounts | High request volumes where one account's rate limits would constrain throughput | Several accounts to contract, rotate credentials for and reconcile in spend reports, with more budget and limit settings to maintain |
Building the LiteLLM HA stack in a safe order
This sequence takes a working single-instance LiteLLM proxy to a load-balanced, multi-instance deployment in small steps, with a check after each one so failures are found while the blast radius is still small. Each step confirms a behavior before the next layer depends on it.
Confirm a working single-instance baseline
Start one LiteLLM proxy instance backed by PostgreSQL, which the production guide names as the primary supported database. The operator creates a virtual key, sends a test request through the OpenAI-compatible endpoint to one approved model, and confirms the spend record appears in the database. This baseline is the reference point for every later step, so it must pass before any other component is added.
Add Redis and prove shared limits
Deploy Redis 7.0 or newer, which the production guide requires once more than one proxy instance runs, and point both proxy instances at it. The operator sets a low RPM limit on a test key, then sends requests alternately to each instance and confirms the limit is enforced across both rather than per instance. Check the proxy logs for Redis connection errors before moving on, since shared router state depends on this connection.
Move the master key into a secret manager
Remove LITELLM_MASTER_KEY from configuration files and environment definitions, store it in the secret manager your organization already runs, and inject it at startup. The key must start with sk-. Restart one instance, confirm it still accepts admin calls with the key, and check that the value does not appear in container logs, manifests or shell history. Record who can read the secret and who can rotate it.
Run one worker per pod and scale out
Configure each pod with a single Uvicorn worker, as LiteLLM recommends for Kubernetes, and scale by adding replicas instead of workers. Set the resource requests to at least the production guide's suggested 1 vCPU and 4 GiB memory per worker, then increase the replica count to three. Confirm in the pod list that all replicas are ready and that requests are distributed across them in the logs. If a pod restarts under load, adjust resources before adding more replicas.
Place the load balancer and health checks
Front the proxy replicas with a load balancer and point its health check at the proxy's health endpoint, confirmed against the LiteLLM documentation for your version. Stop one replica and confirm the balancer removes it from rotation within the check interval you configured, and that client requests keep succeeding. Restore the replica and confirm it rejoins. This proves that instance loss does not become an outage for applications.
Define model groups with retries and failover order
Map each logical model name to two or more deployments, such as two provider accounts or a provider and a self-hosted model. Set retries, cooldown behavior after repeated failures, and priority ordering for failover in the router configuration, using the routing documentation for the exact keys in your version. Choose simple-shuffle as the starting strategy, since LiteLLM recommends it. Test by disabling the primary deployment's credentials in a non-production key and confirming requests move to the secondary and that the primary enters cooldown.
Set the 60-second spend batching interval
At higher request volume, configure spend updates to batch to the database every 60 seconds, as the production guide suggests for scale. Before relying on it, the operator checks that spend totals in the database converge to the sum of test requests after the interval passes, and confirms that budget enforcement still blocks a key at its limit. Confirm with the vendor or documentation that batching does not delay budget checks beyond your accepted risk.
Rehearse failures and read the logs
Run a final test pass that stops one proxy replica, stops Redis access from one instance, and disables one provider deployment, one fault at a time. For each, the operator reads the proxy and database logs and confirms that the expected behavior occurred: requests continued, cooldowns and failovers appeared, and no secrets were written to logs. Only when every fault test passes should applications be moved onto the gateway. Keep the test scripts so they can be rerun after each upgrade.
How the HA pattern changes on Kubernetes, VMs and air-gapped networks
On Kubernetes, the platform handles much of the instance-level redundancy. LiteLLM's production guidance recommends running one Uvicorn worker per pod and scaling horizontally by adding pods, so capacity grows by replica count rather than by worker count inside a pod. Every replica must read the same configuration, the same master key and the same database and Redis endpoints, which makes shared state the central design question.
- One worker per pod: Set the worker count to one and let the deployment controller add replicas. Size requests and limits against the production guide's suggestion of 1 vCPU and 4 GiB memory per worker.
- Secrets from the cluster secret manager: Load
LITELLM_MASTER_KEY(which must start withsk-) and provider credentials through your cluster's secret integration, not through plain environment values in manifests. - Pod disruption and spreading: Use a disruption budget and anti-affinity or topology spread rules so a node drain does not remove all replicas at once.
- Health probes: Wire readiness and liveness probes so traffic only reaches pods that can reach PostgreSQL and Redis.
- Managed or in-cluster data services: Decide whether PostgreSQL and Redis run as managed services or inside the cluster, and who owns their backups and failover.
Confirm with your platform team which secret manager integration is approved, which ingress path external applications use, and whether your managed PostgreSQL and Redis offerings meet the Redis 7.0 and PostgreSQL requirements in the production guide.",
On virtual machines behind a load balancer, you own every failure mode that Kubernetes would otherwise handle. Each proxy instance needs a process supervisor that restarts it, and the load balancer needs health checks that stop routing to an instance that cannot reach its database or Redis. Configuration has to be identical on every host, so a file or template distribution method with a single source of truth matters more here than it does on a cluster.
- Process supervision: Run each instance under a supervisor with automatic restart and log rotation, one worker per instance to match the horizontal model.
- Consistent configuration distribution: Push one versioned configuration to all hosts at the same time, and avoid editing hosts individually, since drift can route the same model differently on different instances.
- Load balancer health checks: Point checks at a readiness path that fails when the database or Redis is unreachable.
- Manual PostgreSQL and Redis failover: Confirm whether your database and cache platforms promote replicas automatically. If not, write and rehearse the promotion runbook and the connection string change.
- Host patching windows: Plan rolling restarts so at least one healthy instance stays in the pool during patching.
Confirm your load balancer's health check interval and failover behavior, who is on call for database promotion, and how long your team needs to fail over PostgreSQL and Redis in a rehearsal, because these determine real recovery time more than the proxy does.
In an air-gapped network, the failover target is usually not a second cloud provider. Provider endpoints such as OpenAI, Anthropic, Gemini, Bedrock or Azure are reachable only if approved egress allows them, and many air-gapped sites allow none. Provider failover therefore becomes failover between approved provider paths and self-hosted models that run inside the enclave, and the LiteLLM router's retries, cooldowns and priority ordering have to point at endpoints the network can actually reach.
- Approved egress only: List each provider endpoint that the proxy may call, and confirm each one through the firewall or proxy path your security team has approved. Leave the rest unconfigured.
- Self-hosted models as failover: Place private model servers in the enclave and order them behind external providers in the router's priority list, so traffic moves inward when egress is lost.
- Local image mirroring: Mirror the LiteLLM container image, PostgreSQL and Redis images, and any dependency packages into an internal registry, and verify the digests against the release you approved.
- Offline dependency and config review: Confirm that no startup path reaches the internet, including telemetry, license checks or model price lookups.
- Key and log handling: Keep logs and spend data inside the enclave and confirm where any backup copies are stored.
Confirm with your security team which egress paths exist, whether any approved path is a proxy with its own availability limits, which self-hosted models have enough capacity to carry traffic, and whether the release you plan to mirror is supported under your edition and version policy.
How provider failover, retries and cooldowns behave under outage
When a provider starts returning errors, the LiteLLM router does not switch everything at once. It first works through the policy you configure: retries on the same deployment, then a cooldown that takes a deployment out of rotation after repeated failures, and then priority ordering that moves requests to the next deployment in the list. The router's routing documentation describes these behaviors, but the exact retry counts, cooldown thresholds and timing are settings you must confirm for your LiteLLM version and your configuration file. Test them with a deliberately failing deployment in a non-production environment before you rely on them, because a retry count that is too high can hold users waiting while a cooldown that is too long keeps healthy capacity idle.
Failover is not a neutral technical switch. A fallback deployment may be a different provider, a different model with different output quality, a different region, or a different contractual and data handling position. A request that stays inside your approved provider list during normal operation may leave it during an outage, and the prompt content, retention terms and logging behavior of the fallback may differ from the primary. Cost also changes, since a fallback model can be priced differently from the primary. Map each fallback path to the data classifications it is allowed to carry, and check that the fallback is permitted for the teams and virtual keys that will use it. Ask whether restricting a key to specific models will block a fallback you intended to allow, because failover and model restrictions interact.
Because failover changes where data goes, cost and output behavior, the business owner of the AI service must approve the failover policy, not only the platform team. That owner should sign off on which fallbacks exist, which applications may use them, what budget exposure a shift in traffic creates, and whether users are told when responses come from a different model. Document the approval alongside the priority order and retry settings, and review it whenever you add a provider or change a model alias. Confirm with your security and compliance teams whether a fallback provider needs its own assessment before it appears in a routing group.
What drives HA effort and cost, and how to keep each down
This table lists the factors that most change the effort and cost of a LiteLLM high availability build, with the reason each one matters and the lever that keeps it manageable. Read it before requesting a quote, because the answers to these questions set the scope of the work more than any single component does.
| Driver | Why it raises effort | How to keep it down |
|---|---|---|
| Number of providers and model groups | Each provider account and model group needs its own failover order, retry and cooldown settings, and tests that confirm traffic moves when one fails. | Start with the models that serve critical applications, define a clear priority order, and add secondary providers only where failover is required. |
| Teams and virtual keys sharing budgets | Budgets, TPM and RPM limits must stay consistent across every proxy instance, so each additional team or key adds configuration and verification work. | Group keys by team instead of by application, and set budgets at the team level where possible. Confirm how Redis and PostgreSQL share this state in your version. |
| Traffic and spend write volume | Higher request rates increase load on Redis and PostgreSQL and make spend batching, latency and connection limits harder to tune. | Size the database and Redis from measured load in a test environment, and review the production guidance on batching spend updates before go-live. |
| Existing HA pattern for Redis and PostgreSQL | If the platform team has no supported highly available pattern for Redis 7.0 or newer or PostgreSQL, the gateway project must build and operate one, adding scope and ongoing ownership. | Reuse the platform's managed or clustered database and cache services where they meet the requirements. Confirm failover behavior with the platform owner before the design is fixed. |
| Zones and regions | Spreading instances across zones or regions adds networking, data replication and failover testing, and cross-region state can complicate budget accuracy. | Keep the first design within one region across multiple zones unless a written recovery requirement calls for more. Ask the vendor to confirm supported multi-region patterns. |
| Compliance evidence requests | Assessors often ask for failover test records, configuration baselines, access logs and recovery procedures, which take time to produce and keep current. | Agree the evidence list at scoping and produce it from the test runs and configuration as code. Ask the provider which controls and records your assessor expects. |
| Existing observability | Without metrics, logs and alerts for instance health, provider errors and database latency, failover cannot be verified or tuned, and gaps must be filled before go-live. | Reuse the existing monitoring stack and define the health checks and alerts up front. Ask what is missing and include it in the quote as a separate line. |
Securing the HA layer without weakening failover
Failover multiplies the places where keys, prompts and provider credentials can leak or be exposed. The controls below run in parallel: they protect the master key, narrow network paths to shared state, limit what the load balancer exposes, keep troubleshooting logs clean, and put approval around any change to where data goes during failover.
Master key and provider credentials
Keep LITELLM_MASTER_KEY (which must start with sk-) and every provider credential in a secret manager, not in environment files or Helm values committed to source control. Set a rotation schedule for the master key and provider keys, and confirm that rotating a provider key does not require a proxy restart in your deployment. Check that each proxy pod reads secrets at start-up from the same source.
Redis and PostgreSQL reachable only from proxies
Shared rate limits, router cooldown state and spend records all live in Redis and PostgreSQL. Restrict network policies or security groups so only proxy pods and approved administrative hosts can reach them, and block direct access from application workloads. Confirm that failover replicas and monitoring agents are on the same allowlist, so a new replica does not get opened to the wider network.
Load balancer exposure and TLS
The load balancer is the only entry point for applications, so expose it on HTTPS only and terminate TLS with certificates managed under your normal rotation process. Limit which hosts and ports are publicly reachable, and keep administrative paths off the public listener. Confirm which IP allowlisting options your LiteLLM edition provides, since the Enterprise edition lists IP allowlisting among its governance features.
Logs that exclude prompts and keys
Failover incidents tempt teams to turn on verbose debug logging, which can record request bodies, prompts or authorization headers. Set a log level for production that excludes payloads, review any custom callbacks for what they write, and redact keys before logs leave the cluster. Agree in advance who may enable debug logging during an incident and how long it stays on.
Failover target data handling approval
A fallback route can send prompts to a different provider, region or self-hosted model with different retention and training terms. Treat adding or reordering a failover target as a change that needs approval from security, privacy or legal, the same as adding a new provider. Record the data handling terms for each fallback target and confirm that restricted data classes are blocked from routes that are not approved for them.
How to test LiteLLM high availability before go-live
Before go-live, run a failure test plan that proves each high availability control does what the design says it does. Start with the proxy tier: under sustained load, stop one proxy pod and confirm that in-flight and new requests keep succeeding through the load balancer, with only the requests that were mid-stream on that pod allowed to fail and retry. Then restart the Redis instance during active traffic and confirm two things: that per-key RPM and TPM limits resume enforcement, and that router state (cooldowns and usage counters) rebuilds without sending traffic to a deployment that should be cooling down. Redis holds shared state for every proxy instance, so this test shows whether a cache or state loss degrades into brief inaccuracy or into hard failures.
Next, test the data path and the provider path separately. Force a PostgreSQL failover on the database your virtual keys and budgets depend on, then confirm that an existing key still authenticates, that its budget and model restrictions still resolve, and that spend updates resume once the new primary accepts writes. For the provider path, block one provider endpoint at the network layer while traffic flows, and confirm that the router marks that deployment unhealthy, retries and moves traffic to the next deployment in the priority order you configured. Restore the provider and confirm traffic returns as expected. Finally, take every provider down at once and check that clients receive a clear, correctly coded error, and that logs and error responses contain no provider keys, master key values or prompt text.
Record an expected result and an observed result for every test, with timestamps, the failure injected, the request error rate and the recovery time. Store the results with the configuration version under test, and treat any gap between expected and observed behavior as a blocker until it is fixed or formally accepted. Repeat the full set after each LiteLLM upgrade and after any change to the database, Redis or routing settings, because database migrations and router changes between releases can alter failover behavior. Confirm the exact health check endpoints and cooldown settings for your version in the LiteLLM routing documentation before writing the expected results.
What to monitor, back up and document after the HA stack is live
Once proxy instances, Redis, PostgreSQL and provider failover are running, availability depends on what the operator watches and rehearses. The five areas below cover health signals, data recovery, failure response and upgrades, and each one feeds the others during an incident.
Instance and provider health metrics
Track request success rate, latency and error codes for each proxy instance, and for each provider deployment behind a model alias. A single healthy instance can hide a provider that is in cooldown, so check both levels. Confirm that a failed instance drops out of the load balancer rotation and that its traffic moves to the remaining instances without a spike in client errors. Record which provider deployments the router has put into cooldown and how often that happens.
LiteLLM routing docsRedis and PostgreSQL failover events
Watch Redis for connection loss, memory pressure and failover events, because shared rate limits and router state depend on it. Watch PostgreSQL for failovers, replication lag and connection pool exhaustion, since virtual keys and spend tracking depend on it. Log every failover with its timestamp and confirm that the proxy reconnected without a restart. Ask your Redis and database providers how their failover events are surfaced to you.
PostgreSQL backup and restore tests
Schedule regular PostgreSQL backups and restore them into a separate environment on a fixed cadence. A restore test should confirm that virtual keys, per-key and per-team budgets, and spend records come back intact, not only that the database starts. Record the recovery time you measured and compare it with your own outage tolerance. Keep the master key and secret manager references in a location that survives the same failure.
Virtual keys docsNamed runbook for failures
Write a runbook for instance loss, provider outage, Redis failure and database failover. Each entry should name the owner who makes the call, the first check to run, the switch or failover step, and the condition for returning to normal. Name a backup owner for each role as well. Rehearse at least the provider outage and database failover steps before go-live, because they are the failures most likely to be handled from memory under pressure.
Upgrades within supported minor versions
Plan upgrades so the gateway stays on one of the four most recent stable minor versions, for both open source and Enterprise deployments. Before each rollout, test routing order, retries, cooldowns and budget enforcement on a staging copy that uses the same database schema. Check any database migration before applying it in production, and keep a rollback path that has been tested. Confirm the target release on the releases page before you schedule the change.
- Supported minor versions
- Four
What teams ask before running LiteLLM high availability
Can our team build a highly available LiteLLM setup ourselves?
Yes, many platform teams can, provided they have someone who runs Kubernetes or similar infrastructure, operates PostgreSQL and Redis, and owns the provider accounts. LiteLLM's production guidance names PostgreSQL as the primary supported database and requires Redis 7.0 or newer once more than one proxy instance runs, because rate limits, router state and cache are shared. The hard parts are less the install than the failure testing: confirming that routing, cooldowns and retries behave as expected when an instance, a Redis node or a provider goes down, and keeping that behavior correct through upgrades. Your team should decide whether it has the capacity to own that testing for the life of the platform. Review the LiteLLM production best practices before deciding.
What drives the cost and effort of a high availability build?
Cost follows the number of moving parts you must make resilient and the testing you require for each. The main drivers are:
- The number of proxy instances and the hosting model (managed Kubernetes, virtual machines or existing platform clusters).
- Whether PostgreSQL and Redis are already run as highly available services by your database or platform team, or must be built from scratch.
- How many providers and self-hosted models need failover order, and how many provider accounts must be coordinated.
- Integration with your load balancer, DNS, monitoring and secret manager.
- Failure testing depth, including instance loss, Redis failover and provider outage drills.
- Whether you need Enterprise features that add licensing and support costs.
Ask any quote to split one-time build work from recurring operations, and to list which of these drivers it assumes.
What does the work need from our organization?
Plan for access and named owners before the work starts. You will need access to the target cloud accounts, clusters, data centers or air-gapped networks, plus non-production and production environments where failure tests can run safely. Each provider needs a named owner who can confirm quotas, keys and account terms, and each database and cache needs an owner who can approve failover, backup and maintenance windows. Failover targets, including any self-hosted model, need written approval for the data they may receive and the cost they may incur. Security and compliance reviewers should agree early on how master keys, provider credentials and logs are stored. Confirm these owners and approvals in the written scope.
How long does a LiteLLM high availability project take?
The duration depends on the written scope and your environment, so no fixed timeline applies. The schedule is driven by how many instances, providers and data stores are in scope, how quickly access and approvals arrive, how mature your Kubernetes and database platforms are, and how many failure scenarios must be tested before sign-off. A pilot with one team and two providers will move faster than a multi-region rollout with several failover targets. Ask for a phased plan that lists the milestones, the client dependencies and the test evidence each phase produces.
Is a single LiteLLM instance enough for a pilot?
A single instance can be enough for a pilot if the pilot has limited users, accepts short interruptions and does not need failover. It is a weaker test of production behavior, though, because shared rate limits, router state and cooldowns only matter across several instances. Once more than one proxy instance runs, Redis 7.0 or newer becomes a requirement. A practical pilot design runs at least two instances against shared PostgreSQL and Redis, so that instance loss and shared state can be tested before go-live. Keep the pilot's master key and provider credentials in a secret manager from day one so the move to production does not require rework.
Do we need the Enterprise edition for high availability?
Not necessarily. Running several proxy instances, Redis for shared state and PostgreSQL for virtual keys and spend data does not by itself require an Enterprise license, according to LiteLLM's documentation for its routing and production features. Enterprise becomes relevant when you need governance features such as audit logs, organization and team RBAC, IP allowlisting, JWT authentication, SCIM, or secret manager integrations with AWS, Azure, Google, HashiCorp Vault or CyberArk. The admin UI SSO is free for up to 5 users from v1.76.0, and an Enterprise license is needed beyond that. Confirm the current feature split with LiteLLM's Enterprise documentation and the license terms in the repository before you decide.
How DeployOpen scopes, builds and hands over LiteLLM high availability
DeployOpen plans, builds, tests and documents LiteLLM high availability inside your own infrastructure, so the proxy instances, Redis, PostgreSQL and failover settings stay under your control. Each engagement starts from a written, fixed scope that your team can review before any work begins.
How we scope
- Inventory the providers, private models and regions that must keep serving traffic during an outage
- Agree the number of proxy instances, Redis and PostgreSQL topology and the target load balancer design in writing
- Define which failover, retry and health check behaviors count as acceptance criteria before build starts
How we build
- Deploy several proxy instances behind your load balancer with one Uvicorn worker per pod on Kubernetes
- Configure Redis 7.0 or newer for shared rate limits and router state, and a resilient PostgreSQL setup for virtual keys and spend
- Set provider priority ordering, cooldowns and health checks, then test failover by stopping instances and blocking provider endpoints
How we hand over
- Deliver the architecture record, configuration files and runbooks for failover, database recovery and Redis failure
- Provide test results showing which instance, Redis and provider failures were simulated and how the gateway responded
- Walk your platform and security teams through the master key handling, secret manager references and monitoring alerts
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer after go-live, with scope agreed in writing
- Retest failover paths when you change providers, routing strategy or LiteLLM versions within the supported minor releases
- Ask your team to confirm any uptime targets or response commitments in the written scope, since these depend on your chosen support terms

