← All checklists

Checklist 24 of 25 · October 2026

Deployment checklist

The first burst of real traffic is an outage with no trace

Comment word: SHIP. This list also answers LEVERS, the word in the earlier videos.

A notebook runs one cell, once, for one person. With no concurrency, timeout or log, the first burst of traffic or one bad input is an outage with nothing to explain it. Five checks, each sized for an afternoon, cover the service, the container, the logs and the input.

One settings block for the five checks

# Names in capitals are yours to set from your own load test
call: {connect_timeout_s: CONNECT_S, read_timeout_s: READ_S}
max_in_flight: MAX_IN_FLIGHT    # past this, answer HTTP 503
image: python:<version>-slim@sha256:<digest>
install: pip install --require-hashes -r requirements.lock
log_to_stdout: [id, model, tokens_in, tokens_out, latency_ms, status]
input_limits:
  max_body_bytes: MAX_BODY_BYTES
  max_field_chars: MAX_FIELD_CHARS
  max_list_items: MAX_LIST_ITEMS

The checks

Everything starts ticked. Untick what you will not do; the choice is saved on this device only, and Print keeps only what you kept.

What happened. Per the HTTP client library's docs, requests do not time out unless a timeout is set explicitly, so code may hang for minutes or more. A blocking call in a coroutine blocks the event loop.

The check.

  • Run blocking SDK calls with asyncio.to_thread, so one slow call cannot hold the loop.
  • Set client connect and read timeouts, and wrap each call in asyncio.timeout() (Python 3.11+).

Source: Timeouts, HTTP client library documentation, read 27 Oct 2026; Coroutines and tasks, Python documentation, read 27 Oct 2026

What happened. Queued requests consume memory and add latency: in the reliability book's worked example, a queue 10 times the thread count at 100 ms per request makes a full-queue request take 1.1 seconds. It advises HTTP 503 past a set number in flight.

The check.

  • Cap concurrent model calls with a semaphore; load-test at 10, then 50, simultaneous requests.
  • Return 503 at once at the cap; if you queue, bound the wait and drop older requests.
LIMIT = asyncio.Semaphore(8)       # placeholder
async def ask(prompt):
    if LIMIT.locked():
        raise Overloaded()         # map to HTTP 503
    async with LIMIT, asyncio.timeout(30):
        return await call_model(prompt)

Source: Addressing Cascading Failures, chapter 22 of an online reliability engineering book, 2017; Using load shedding to avoid overload, 5 Dec 2019

What happened. A notebook uses whatever one laptop has installed. The container reference says pulling by digest pins an image to one version, always the same; a pull by tag can fetch a newer one. The installer's hash mode needs every requirement pinned and hashed.

The check.

  • Build one image from a hash-locked requirements file; run it unchanged everywhere.
  • Pin the base by digest; rebuild on a schedule, since a pinned image pulls no security updates.
FROM python:<version>-slim@sha256:<digest>
COPY requirements.lock .
RUN pip install --require-hashes -r requirements.lock

Source: Pull an image by digest, container CLI reference, read 27 Oct 2026; Secure installs, Python package installer documentation, read 27 Oct 2026

What happened. The twelve-factor method writes each process's event stream, unbuffered, to stdout, so log systems can find past events, graph requests per minute and alert. A GenAI metrics standard, status Development, defines operation-duration histograms and token counters.

The check.

  • Write one JSON line per request to stdout: id, model, tokens in and out, latency, status.
  • Emit gen_ai.client.operation.duration and token-usage counters; alert on error rate.

Source: XI. Logs, twelve-factor app methodology, read 27 Oct 2026; Semantic conventions for generative AI metrics, status Development, read 27 Oct 2026

What happened. The API security list says to define and enforce a maximum size on incoming parameters and payloads, such as string length and array elements. The LLM risk list repeats it for model inputs and adds timeouts.

The check.

  • Limit characters per field, items per list and bytes per body; return a 4xx before the model.
  • Log each rejection with its reason, so a bad input leaves a trace.

Source: API4:2023 Unrestricted Resource Consumption, API security Top 10, 2023; LLM10:2025 Unbounded Consumption, Top 10 for LLM applications, 2025

Effort is a planning estimate, not a measurement. The 1.1 seconds is a worked example, not a benchmark. Snippet limits and timeouts are placeholders; set them from your own load test. The GenAI conventions are marked Development.

Take this list with youThe PDF is the handout: this list on one or two pages. The Markdown is for your own docs, your wiki, or an assistant you want to hand the list to. Print gives you this list only, without the navigation.

Something in your production AI broke in a way that is not on this list? Tell me what broke.

New checklists, as they are published

One list at a time, each built the same way: a dated failure, the control that stops it, and the primary source so you can check it. Nothing else goes to this address, no digest and no newsletter.