SysArt
Book a briefing
SysArt

On-premises AI

Building Resilient On-Premises AI: Failover and High Availability Patterns

High availability for on-premises AI: GPU failure modes, redundant inference, health checks, graceful degradation, chaos experiments and resilience evidence.

Last reviewed by SysArt AI Architecture Team10 min readHow we review

In short

Make on-premises AI highly available by running at least two replicas of each critical model behind a gateway, with health checks that exercise the model and spare capacity for one failure at peak. Define how the service degrades when capacity drops, test failures deliberately with chaos experiments, and keep the results as resilience evidence.

Key takeaways

  • AI inference fails in its own ways: GPU memory errors, slow model loading, out-of-memory failures and grey failures where answers come back slowly or badly.
  • Run active replicas of each critical model with startup, readiness and inference-level health checks, and size each pool for the loss of one replica at peak.
  • Plan a degradation ladder, from shedding batch work to smaller fallback models to essential services only, with entry and exit conditions for every step.
  • Chaos experiments test those paths against a steady-state hypothesis that includes latency percentiles and answer quality, starting small and widening in stages.
  • DORA requires most financial entities to test continuity and recovery plans at least yearly, and the AI Act requires high-risk systems to be as resilient as possible to errors and faults.
Close-up of a computer motherboard with multiple components representing redundant infrastructure

Why do AI systems need their own availability design?

Because GPU inference fails differently from ordinary web services. Models take a long time to load, GPU memory errors can stop a process outright, and slow or degraded answers can pass standard health checks, so load balancers and replicas need AI-specific checks, warm capacity and planned degradation.

On-premises, spare capacity is hardware you have already bought; you cannot add replicas in seconds the way a cloud region can. Availability therefore has to be designed in: set recovery targets for each use case, decide which models are critical, then size and test the platform for those targets. This article covers availability within a site. Disaster recovery and multi-site deployment, which restore service after a site is lost, are related but separate designs. The on-premises AI reference architecture shows how both fit into the platform.

What fails in an on-premises AI platform?

GPUs and their memory, model loading, GPU memory exhaustion under long or numerous requests, dependencies such as retrieval and identity, and grey failures, where the service stays up but answers slowly or badly.

  • GPU memory errors. NVIDIA’s documentation explains that single-bit ECC errors are corrected by the hardware, while double-bit errors are detected but not corrected. GPUs retire memory pages, or on Ampere and newer GPUs remap memory rows, when that memory becomes unreliable, and a pending row remap takes effect only after a GPU reset. Treat rising error counts and pending remaps as a maintenance trigger: drain the node, reset the GPU, check it, then return it to service.
  • Replicas spread over several GPUs. A model split across GPUs with tensor parallelism needs all of them; losing one GPU takes down the whole replica.
  • Model loading. Moving tens or hundreds of gigabytes of weights from storage into GPU memory takes time. A replica that has to start from scratch leaves a gap that load balancing alone cannot cover.
  • GPU memory exhaustion. Variable-length inputs, such as documents of very different sizes, can push the key-value cache beyond the memory available. Depending on the engine and its settings, requests then queue, are preempted or fail, and in the worst case the process crashes.
  • Dependencies. The vector database, embedding service, identity provider and model registry can each stop an AI service that is itself healthy.
  • Grey failures. Thermal or power throttling, noisy neighbours on shared GPUs and growing queues raise latency without any component failing. Quality can also degrade silently, for example when traffic falls back to a smaller model without anyone noticing.

Which high-availability patterns work for GPU inference?

Run at least two active replicas of every critical model behind the gateway, with health checks that exercise the model, and size each pool so that the remaining replicas carry peak load if one fails. Where that is too expensive, keep a warm standby with the model already loaded.

Active-active replicas. Each replica holds a complete copy of the model, and the gateway or load balancer spreads requests across the healthy ones. Place replicas on different nodes, and where possible on different racks and power feeds, so that one failure does not take out two. Keep conversation state in the application or a shared store, not inside a replica, so that any replica can continue a conversation; session affinity can still help reuse cached prompt prefixes, but no request should depend on it. Size each pool for peak load with one replica missing; the LLM GPU sizing calculator gives the memory each replica needs.

Health checks in three layers. Kubernetes offers three kinds of probe, and inference servers need all of them:

  • a startup probe, because loading a large model is slow: Kubernetes does not run liveness or readiness probes until the startup probe has succeeded;
  • a readiness probe, which takes a replica out of rotation when it fails: Kubernetes removes the pod’s address from the endpoints of the services that match it;
  • a liveness probe, which restarts a container that can no longer make progress. Configure it carefully: the Kubernetes documentation warns that incorrectly implemented liveness probes can lead to cascading failures, for example by restarting replicas that are merely busy.

Behind the readiness check, send a short test prompt through the model and verify the answer, rather than only checking that the process accepts connections. That catches a process that is running while its model is stuck or corrupted.

Warm standby. Active-active needs spare capacity in every pool. A warm standby keeps the model loaded in GPU memory but serves no production traffic, so failover skips the loading delay. To make it pay for itself, let the standby run low-priority batch work, such as embedding generation or document labelling, that is preempted the moment failover starts, or let one standby with enough memory cover several smaller models.

Faster cold starts. Where even a warm standby is too expensive, keep model weights on fast local storage on the standby nodes and pre-pull container images, so that a cold replica loads as quickly as the hardware allows. Measure the loading time and build it into your recovery targets.

Automated recovery with limits. Kubernetes restarts failed containers, which then reload the model. Set a threshold after which repeated failures alert a person instead of retrying indefinitely.

How should an AI service degrade when capacity drops?

Step by step, along a ladder agreed in advance: shed low-priority work first, then answer tolerant use cases with smaller models, then serve only essential use cases, rather than slowing everything down at once. Each step needs entry and exit conditions, and each must be tested.

Google’s site reliability engineering book draws a useful distinction: load shedding drops a proportion of traffic as a server approaches overload, and graceful degradation goes further by reducing the amount of work that has to be done. A degradation ladder for an AI platform could look like this:

  1. Full service. All models at full quality; batch, interactive and background work run side by side.
  2. Reduced. Batch and background jobs pause or checkpoint. Use cases that can tolerate it switch to a smaller or quantised model, and latency targets relax.
  3. Essential only. Only business-critical pipelines run on the GPUs. Other endpoints return a clear “temporarily unavailable” response, or a cached or static answer where that is acceptable.
  4. Emergency. No live inference; monitoring and health checks continue so that recovery is detected.

Not every use case may fall back. A customer-facing assistant might answer with a smaller model and say so; a compliance classification pipeline may need to queue requests until the primary model returns rather than accept lower accuracy. Decide this for each use case with its business owner. Fallback models must share input and output formats with the primary, so that downstream systems do not depend on which model answered, and they must pass the same integration tests. Circuit-breaker mechanics for switching between models are a design topic of their own.

To make the ladder work in practice:

  • Prioritise at the gateway. Tag each request with a priority based on the calling service and use case, and serve high-priority requests first when capacity is short.
  • Shed explicitly. Reject low-priority requests early, with a response that tells clients when to retry, instead of accepting everything and serving everyone slowly. Clients should retry with randomised exponential backoff and a limit on retries per request, as the SRE book advises; unlimited retries can turn a capacity problem into an outage.
  • Change models safely. Before unloading a model, stop sending it new requests and let in-flight requests finish within a timeout. If memory allows, load the fallback first and move new traffic to it while the primary drains. Long-running batch jobs should checkpoint so that they can pause without losing work.
  • Avoid flapping. Degrade quickly and recover slowly: require the recovery conditions to hold for a sustained period before stepping back up, and log every transition with the metrics that triggered it.
  • Tell users. Show when a fallback model or reduced service is active, so that people can judge the answer or wait.

How do you test resilience with chaos experiments?

By injecting controlled failures against a written hypothesis about the system’s steady state, starting with small experiments in test environments and widening them as confidence grows. For AI systems, the steady state includes latency percentiles and answer quality, not just availability.

The Principles of Chaos Engineering define the discipline as experimenting on a system to build confidence in its ability to withstand turbulent conditions in production. Its practices translate directly to AI platforms: build the hypothesis around measurable outputs, vary the events that happen in the real world and prioritise them by impact or frequency, automate experiments to run continuously, and minimise the blast radius.

Define the steady state in the terms an AI service is judged by: latency at the 50th, 95th and 99th percentiles, time to first token, throughput, error rate and, where you have automated evaluation, answer quality. A service that stays available while its tail latency rises from under a second to tens of seconds has failed for interactive use. Quality-based hypotheses catch the case where the system stays up but silently falls back to a weaker model.

Experiments specific to AI infrastructure include:

  • removing an inference replica or a GPU node under realistic load;
  • sending long-context traffic until key-value cache memory runs out, and checking that requests queue or are rejected cleanly;
  • making the model registry or its storage unavailable while replicas restart;
  • presenting a corrupted or unapproved model artefact, which the hash or signature check should refuse;
  • taking down dependencies such as the vector database, the embedding service or the identity provider;
  • slowing the network between the gateway and the inference engines;
  • running a node power-capped or warm, to see how throttling shows up in latency.

Progress in stages: components in a test environment first, then dependency failures, then infrastructure degradation, and finally production game days at quiet times with the on-call team present. Start with simple scripts and your existing load-testing tool; Kubernetes-native chaos tools can add scheduling and experiment workflows later. Annotate every experiment in your monitoring, so that any anomaly can be traced to the injected fault. The SRE book’s advice applies here as well: load-test components until they break, and remember that code paths which never run are often the ones that do not work.

After each experiment, compare the result with the hypothesis and classify it: behaved as expected, a known and accepted risk, or a weakness. Turn weaknesses into engineering work, such as a missing health check, retry limit or fallback, and re-run the experiment to confirm the fix. Over time, the experiment catalogue becomes a living specification of how the platform fails, and new team members can learn the system’s failure behaviour from it.

What resilience evidence do regulated organisations need?

Evidence that AI services meet their recovery targets: test plans, the results of failover drills and chaos experiments, incident records and the fixes that followed. Sector rules and, for high-risk systems, the AI Act expect such evidence; what applies depends on your sector, the system’s purpose and your role.

  • DORA, for financial entities. The Digital Operational Resilience Act requires most financial entities to test their ICT business continuity plans and their ICT response and recovery plans at least yearly, and after substantive changes to systems that support critical or important functions. For entities other than microenterprises, those tests include switchovers between the primary ICT infrastructure and redundant capacity (Article 11). Entities other than microenterprises must also run a digital operational resilience testing programme (Article 24), whose tests can include scenario-based, performance and end-to-end testing (Article 25). If an AI system supports a critical or important function, its failover and recovery belong in that programme. Our guide to DORA, NIS2 and the AI Act in financial services explains how the regimes fit together.
  • The AI Act, for high-risk systems. Article 15 requires high-risk AI systems to be as resilient as possible regarding errors, faults or inconsistencies, and states that robustness may be achieved through technical redundancy solutions, which may include backup or fail-safe plans. For stand-alone high-risk AI systems listed in Annex III, the obligations apply from 2 December 2027.

Failover drills and chaos experiments produce exactly the records these regimes ask for, provided you keep them: the hypothesis, the date, what was injected, the observed behaviour, the decision and the fix. Whether a given system falls under these rules depends on its purpose and your role, so confirm the scope with your compliance and legal teams; this article is not legal advice.

SysArt designs and tests availability, degradation and recovery as part of the on-premises AI platforms it implements, and can operate them, including monitoring, incident handling and audit evidence, in a dedicated environment through private AI hosting.

Featured image by Mark Zeller on Unsplash.

Frequently asked questions

What is the difference between high availability and disaster recovery for AI?

High availability keeps a service running through component failures within a site, such as the loss of a GPU, a node or a replica. Disaster recovery restores service after losing a site or a large part of it, from backups, a second site or rebuilt infrastructure. Both start from recovery targets for each use case, but they need different designs and tests, so plan them separately.

How many replicas does an on-premises LLM need for high availability?

At least two active replicas for any model behind a critical service, on different nodes and ideally different racks and power feeds, sized so that the remaining replicas still meet the latency target at peak if one fails. Where that is too expensive, a warm standby with the model already loaded is the next best option, because a cold standby must load the weights first.

What is graceful degradation in an AI system?

The service reduces what it does instead of failing outright when capacity drops. A typical ladder pauses batch work first, then answers tolerant use cases with a smaller fallback model, then serves only essential use cases, and finally returns clear 'temporarily unavailable' responses. Each step has documented entry and exit conditions, and every fallback path is tested before it is needed.

Is chaos engineering safe to run in production?

It can be, if it is introduced in stages. Start with single components in test environments, move on to dependency and infrastructure failures, and only then run production game days at quiet times with the on-call team present. Every experiment needs a steady-state hypothesis, a small blast radius, annotations in monitoring and a way to stop it at once.

Does DORA require resilience testing of AI systems?

DORA applies to EU financial entities, not to AI as such. It requires most of them to test their ICT business continuity and response and recovery plans at least yearly, and all but microenterprises to run a digital operational resilience testing programme. If an AI system supports a critical or important function, its failover and recovery belong in that testing. Confirm the scope with compliance and legal teams.

Related insights

Plan your private AI with people who build it

Book a briefing. We look at your use case, data and constraints, and you leave with the deployment options and governance steps that fit.