Home / AI & GenAI

AI & GenAIChecklistAdvanced

Checklist: preparing a GenAI service for a peak traffic event - quota headroom, load tests, degraded modes and a change freeze

A checklist for the weeks before a known traffic peak such as a sale, launch or quarter-end. Covers token quota headroom, load tests, retry limits, degraded modes, GPU capacity and on-call.

Deepak Bhardwaj8 min read

Applies toAzure OpenAI, Amazon Bedrock, self-hosted LLMs on Kubernetes (vLLM and similar), Azure API Management or LiteLLM gateways

A sale, a product launch or quarter-end close can triple traffic to an AI assistant in an hour. LLM services fail at peak in ways that normal web capacity planning misses. Token quotas are per minute and per region. Output length changes with user behaviour. Retries multiply load just as limits are reached. GPU capacity is the last thing you can buy at short notice.

Work through this list three to four weeks before the event. Each item has a check you can run and a pass condition.

1. Know your baseline and your target

  • Measure the current peak in tokens, not requests. Pull last month's busiest hour.

Azure OpenAI (metric names vary; confirm with az monitor metrics list-definitions --resource $AOAI_ID):

az monitor metrics list --resource $AOAI_ID \
  --metric ProcessedPromptTokens GeneratedTokens AzureOpenAIRequests \
  --interval PT1H --aggregation Total \
  --start-time 2026-10-01T00:00:00Z --end-time 2026-11-01T00:00:00Z -o table

Amazon Bedrock:

aws cloudwatch get-metric-statistics --namespace AWS/Bedrock \
  --metric-name InputTokenCount --dimensions Name=ModelId,Value=$MODEL_ID \
  --start-time 2026-10-01T00:00:00Z --end-time 2026-11-01T00:00:00Z \
  --period 3600 --statistics Sum --region $AWS_REGION

Repeat for OutputTokenCount, Invocations and InvocationThrottles.

  • Turn the business forecast into a token-per-minute target. Take the expected peak sessions per minute, multiply by the average calls per session and the tokens per call, then add 30-50% for skew within the minute. Agree the number with the business owner in writing.
  • Separate input and output tokens. Output tokens drive latency and, on self-hosted models, GPU time. A busy day often means longer answers as well as more of them.

2. Quota and capacity headroom

  • Compare quota to the target per region and per model.
# Azure OpenAI: subscription quota per model in a region
az cognitiveservices usage list --location swedencentral -o table

# Azure OpenAI: capacity assigned to each deployment
az cognitiveservices account deployment list -g $RG -n $AOAI \
  --query "[].{name:name, model:properties.model.name, sku:sku.name, capacity:sku.capacity}" -o table

# Bedrock: token and request quotas
aws service-quotas list-service-quotas --service-code bedrock --region $AWS_REGION \
  --query "Quotas[?contains(QuotaName, 'tokens per minute')].[QuotaName,Value]" --output table

Pass condition: deployment capacity or quota is at least 1.5x the peak target. Check the current limits for your model and region, and raise quota requests now, because approvals can take days.

  • Check that IaC won't reset capacity. If a deployment's capacity was raised in the portal, make sure the Bicep or Terraform value matches. Otherwise the next pipeline run sets it back mid-event.
  • Provisioned throughput. If you use PTUs or Bedrock Provisioned Throughput, check that utilisation at today's peak is below about 60%. Confirm that spillover to pay-as-you-go is configured and tested.
  • A second region or provider is ready. It has the same deployment names, quota already granted and a gateway backend that has carried real traffic in the last month.

Warning

A failover region with no quota is not a failover region. Run a real request through it from the production gateway, not from a laptop.

  • Self-hosted GPUs. Count the replicas needed at peak from your load test (section 3), then check node pool maximums and whether the cloud can actually supply the GPUs:
kubectl get hpa -n inference
kubectl get nodes -l nvidia.com/gpu.present=true \
  -o custom-columns=NAME:.metadata.name,GPU:.status.allocatable.nvidia\\.com/gpu
az aks nodepool show -g $RG --cluster-name $AKS -n gpupool \
  --query "{min:minCount,max:maxCount,count:count}"

GPU node scale-up during the peak is the riskiest step. Either reserve capacity (on-demand capacity reservations or AWS capacity reservations), or pre-scale the pool to the peak size the day before and set minReplicas to match.

3. Load test the real path

  • Test through the gateway, with production prompts. Use the real system prompt, a realistic RAG context size and a realistic max_tokens. Synthetic "hello" prompts give flattering numbers.
  • Ramp to 1.5x the target and record where things break: the request rate where 429s start, time to first token at p95, and tokens per second per replica.
  • For vLLM, watch the queue and KV cache during the test (metric names vary by version; check /metrics):
max(vllm:num_requests_waiting)
max(vllm:gpu_cache_usage_perc)
histogram_quantile(0.95, sum by (le) (rate(vllm:time_to_first_token_seconds_bucket[5m])))

Pass condition: at 1.5x target, p95 time to first token stays inside your SLO and the waiting queue drains within a minute after the ramp stops.

  • Test the dependencies too. Vector search, embedding calls, content safety and the database behind tools all scale separately. An Azure AI Search replica limit or a Postgres connection pool will fail before the LLM does.

4. Stop the retry storm before it starts

  • Bound retries everywhere. Cap the SDK retry count (for example max_retries=2 in the OpenAI Python client) and turn off retries in the app layer if the gateway already retries. Count the worst case: SDK x app x gateway attempts per user request.
  • Honour Retry-After and use exponential backoff with jitter.
  • Set client timeouts that are longer than a normal long answer but shorter than the user's patience. Make sure the load balancer and gateway timeouts are longer still.
  • Per-client limits at the gateway. Give every app or tenant a token limit so one batch job can't take the whole quota:
<llm-token-limit counter-key="@(context.Subscription.Id)"
                 tokens-per-minute="50000"
                 estimate-prompt-tokens="false"
                 remaining-tokens-header-name="x-remaining-tokens" />
  • Move batch work out of the window. Reschedule embedding refreshes, re-indexing, evaluation runs and batch jobs so they don't run during the event, or move them to batch APIs with their own quota.

5. Decide the degraded modes in advance

Write down what the service does at each level, who decides and how to switch. Test each switch once before the event.

Trigger Degraded mode Switch
429 rate above 5% for 5 minutes Route to a smaller or secondary model Gateway backend priority or feature flag
Primary region errors Fail over to the second region Gateway backend pool
p95 latency above SLO Lower max_tokens, shorter RAG context, turn off optional features (summaries, suggestions) Feature flags
Still overloaded Queue requests with a "busy" message, or show the static FAQ Feature flag or maintenance page
Cost tripwire hit Stop non-essential AI features Kill switch

Caution

Don't improvise a degraded mode during the peak. A hurried prompt or model swap without an evaluation run can produce wrong answers in front of the most customers you'll see all year. Pre-approve each fallback model with your evaluation suite.

6. Observability for the day

  • One dashboard with tokens per minute against quota, 429 and 5xx rate by backend, time to first token at p95, gateway queue or vLLM waiting requests, GPU node count, and cost per hour.
  • Alerts set at 70% and 90% of quota, not just on errors. On Bedrock, alarm on InvocationThrottles:
aws cloudwatch put-metric-alarm --alarm-name bedrock-throttles-peak \
  --namespace AWS/Bedrock --metric-name InvocationThrottles \
  --dimensions Name=ModelId,Value=$MODEL_ID \
  --statistic Sum --period 60 --evaluation-periods 3 --threshold 10 \
  --comparison-operator GreaterThanThreshold --alarm-actions $SNS_TOPIC_ARN
  • Provider status pages and support plan contacts are in the runbook, along with the request ID headers support will ask for.

7. Change freeze and people

  • Freeze model, prompt, deployment and gateway policy changes from 72 hours before the event until it ends. That includes auto-upgrade settings on model versions. Check for scheduled retirements that land inside the window.
  • No node pool or driver upgrades in the window. Pause automatic AKS or EKS upgrades and planned maintenance windows if you can.
  • Named on-call for the app, the gateway and the inference platform, with an escalation path to the business owner who can approve degraded modes.
  • A 30-minute game day a week before the event. Throttle one backend on purpose, confirm the alert fires, flip one degraded mode and switch it back.

After the event

  • Pull the same metrics as in section 1 for the event window and compare them with the forecast.
  • Scale pre-provisioned GPU nodes and temporary quota back down, and release reservations you no longer need.
  • Record which degraded modes were used, for how long, and what you'd change. That becomes the baseline for the next peak.