LLM API Availability and Off-Peak Scheduling: A Practical Production Guide

    This article outlines how to operate LLM APIs with production-grade availability. It covers time-based error budgets, blast-radius classification, capacity protection, peak/off-peak pricing, concurrency limits by account, model, and resource pool, composable capability exposure, observability, status communication, and compensation. A deployment checklist is included.

    Why Availability Must Be Stricter Than “It Can Chat for a Few Turns”

    Once an LLM service enters production, callers care less about whether a demo is impressive and more about whether the service returns reliably within an agreed time. Conversations on web and app clients, inference APIs exposed to developers, and retrieval, file understanding, and speech capabilities attached to chat often share the same accelerators and scheduling queues. When compute is tight, short jitter and multi-hour unavailability cause very different business damage. Short jitter is often absorbed by retries. Multi-hour outage can blow through timeout budgets, back up asynchronous jobs, and create clear losses for customers billed by call.

    For this reason, a discussion of “high availability” should not stop at a single annual percentage. A more useful approach is to translate availability targets into unavailable-time budgets and then classify failures by blast radius: does the issue affect only auxiliary tools such as retrieval or document parsing, or does it also interrupt primary chat? Does it affect only one model tier, or are web, app, and open APIs all constrained at the same time? Once these levels are clear, compensation, rate limiting, and capacity expansion can share one vocabulary.

    Convert Percentages into Time Budgets

    The industry commonly describes availability as the share of successful requests or the share of time a service is serviceable. Using a rough natural year of about 8,760 hours, every 0.1 percentage-point drop in availability corresponds to roughly 8.76 hours of unavailable time. This conversion indicates order of magnitude only; it does not replace a real error budget. It does not distinguish planned maintenance, regional failures, auxiliary-only degradation, or whether calls cluster in a few peak hours.

    From an engineering perspective, it is advisable to track three types of metrics together.

    • Time availability: the proportion of time that a status page or probe marks the service as available within the measurement period.
    • Request success rate: measured by status code, timeout, and empty result, split by model tier and API type.
    • Experience latency: percentiles for first-token time and full generation time, to avoid a situation where “there is no error, but it is too slow to be usable.”

    External commitments should state the measurement window, exclusions, and whether degraded service counts as available. Internally, split the error budget into two budgets: primary chat and enhanced capabilities. This prevents a search-plugin failure from being reported as a site-wide outage, and it also prevents high availability of auxiliary capabilities from masking long unavailability of primary chat.

    Blast Radius: Account for Primary Path and Auxiliary Capabilities Separately

    A complete conversation is often assembled from multiple capabilities: routing and authentication, context loading, model inference, optional retrieval and tool calls, file parsing, speech recognition, and speech synthesis. Their failure modes differ. A retrieval timeout can usually fall back to a model-only answer. A file-parsing failure can prompt the user to upload text instead. A speech-chain failure should not drag down text chat by default. Only when scheduling, model weight serving, or a shared gateway fails should the incident be treated as a large-scale outage.

    In practice, record four things for each incident: start and end time; affected call surface (interactive clients, open API, or a specific model tier); whether primary chat was affected; and user-visible symptoms. Multi-minute jitter is suitable for automatic retries, circuit breaking, and status-page annotation. Only a multi-hour outage of the primary path should trigger compensation, postmortem, and capacity remediation. The postmortem should not answer with slogans such as “this will never happen again.” It should identify which safeguard failed: quota, isolation, cache, degradation, or observability.

    What to Protect First Under Compute Pressure

    Inference cost falls mainly on accelerator computation and high-bandwidth memory. The longer the context, the larger the KV-cache footprint and the fewer sequences that can be served concurrently. If peak hours also combine deep thinking, multi-turn tool calls, and very long documents, queues can build up quickly. Load should be adjusted with multiple levers at once, not only by adding machines or changing prices.

    Common technical measures include limiting default context and output length, reusing cached repeated prefixes, tiering cold and hot data, and enabling a smaller model tier or a shorter reasoning budget for low-priority traffic. These are common industry practices. Specific hit rates and memory savings depend on implementation and traffic shape, so fixed percentages should not be promised in advance.

    On the scheduling side, interactive traffic and open API traffic should be placed in separately scalable resource pools, or at least use independent queues and concurrency caps. This way, a burst of batch processing on the open API will not directly saturate chat capacity for end users, and vice versa. Isolation is not waste; it encodes blast radius in configuration.

    Peak/Off-Peak Pricing: Move Calls Out of the Peak with Price

    When supply cannot be increased quickly in the short term, time-of-use pricing is a common lever for smoothing demand. A typical design is to publish peak and off-peak windows, state explicit multipliers (for example, off-peak lower than peak, with multipliers written into billing documentation in advance), and guide latency-insensitive batch processing, evaluation, and offline labeling to off-peak hours. Price signals must be used together with quotas. If off-peak is half price but the concurrency cap is unchanged, large customers may still saturate peak hours. If there is only a quota and no price difference, time-insensitive jobs have no reason to move.

    Three points matter during implementation. First, time zones and billing-day boundaries must be documented to avoid misclassifying jobs that cross days. Second, billing dimensions should at least allow retrospective review by model tier, time window, and call type; otherwise it is impossible to verify whether off-peak scheduling actually happened. Third, price changes should be announced in advance and include a transition period for existing contracts, so that a capacity policy does not become a one-sided billing dispute.

    A simple call-side strategy can be enough: tag jobs that can be delayed with a priority, let the client or gateway check whether the current time is within an off-peak window, and release batch requests during off-peak hours. Keep only online chat during peak hours. The following vendor-neutral pseudocode expresses only the control flow.

    1. if job.latency_class == "batch" and now in peak_window:
    2. defer(job, until=next_offpeak)
    3. else:
    4. submit(job, timeout=job.sla)

    Concurrency Limits Should Apply by Account, Model, and Resource Pool Together

    A global QPS limit is not enough. An open API should have at least an account-level concurrency cap, a cap differentiated by model tier, and a resource pool isolated from interactive clients. The purpose of a limit is not to punish customers, but to prevent one tenant’s retry storm from occupying a shared queue. Limit values must be calculated from load testing and cost models and adjusted as GPU count changes. Externally, promise only that independent limits and isolation exist; do not copy a set of fixed numbers before measurement.

    Supporting mechanisms include returning an identifiable rate-limit error instead of hanging for a long time when a limit is exceeded; providing a suggested retry time in response headers or the error body; and having clients use exponential backoff with jitter rather than aggressive retries at fixed intervals. On the server side, smooth bursts from the same account and distinguish short bursts from sustained overcommit.

    Capability Exposure: Composable Calls, Not a Single Fixed Interface

    When a platform provides deep retrieval, file input, OCR, speech recognition, and speech synthesis as independently callable APIs, developers can assemble them in their own applications as needed instead of replicating every interaction of an official client. When designing such APIs, several general principles are advisable.

    • Decouple primary chat from enhanced parameters: text chat remains usable when retrieval or file parsing is disabled.
    • Each sub-capability has an independent timeout, error code, and degradation policy; failures can return partial results.
    • Authentication, quotas, and auditing are metered per sub-capability, so that “one conversation” does not hide the real cost of speech or documents.
    • Composite calls need idempotency and trace identifiers so that the same user request can be linked across logs.

    Being able to replicate a full client only shows that API coverage is sufficient. It does not mean that production should synchronously call every sub-capability. The online path should default to a minimal set and move heavy processing to asynchronous execution.

    Observability, Status Communication, and Compensation

    Users can tolerate known degradation; they cannot tolerate silent failure. A status page should at least distinguish normal, partial degradation, and primary-path unavailable, and note the affected model tiers and API categories. In monitoring, beyond success rate, also watch queue length, cache hit rate, per-request GPU memory or token occupancy, rate-limit ratio, and retry amplification. Alerts should have two levels: user-perceivable impact and capacity approaching its ceiling. Avoid alerting only after widespread timeouts have already occurred.

    If an open API is unavailable for a long time and causes billed losses, compensation can take the form of credits, bill reduction, or service time. The rules should be public in advance: applicable incident level, starting duration, measurement basis, and application method. Compensation is a trust mechanism; it does not replace capacity remediation. Postmortem outputs should become verifiable items, such as whether isolation was implemented, whether peak limits took effect, whether auxiliary capabilities degrade by default, and whether the error budget is reviewed monthly.

    Deployment Checklist

    1. Set separate availability targets for primary chat and enhanced capabilities, and convert percentages into monthly unavailable minutes as error budgets.
    2. Use independent queues or resource pools for interactive traffic and open API traffic, and configure concurrency separately by account and model tier.
    3. Control default length for long context, evaluate prefix caching and tiered storage, and prioritize reducing high-bandwidth memory pressure.
    4. Use peak/off-peak pricing to guide batch processing away from peaks, and ensure billing can be checked by time window.
    5. Make rate-limit errors identifiable and have clients back off; prohibit retries without jitter.
    6. Give sub-capabilities independent timeouts and degradation, and update the status page by impact radius.
    7. After an agreed incident level is reached, compensate according to public rules and track whether remediation items are closed.

    Treat availability as a time budget and compute as a schedulable scarce resource, not an unlimited backend. Only then can APIs preserve the primary path during peak hours. Pricing, quotas, caching, and degradation are different knobs of the same capacity strategy. Turning only one of them makes the next long outage difficult to avoid.