Back to how it works

    How it works

    Pull and Distribute

    One node fetches the image from the registry. Every other node gets it from a peer.

    Step 1 / 5

    Cold start

    A new image lands. The registry is the only source.

    Waiting
    Pulling
    Ready
    N1N2N3N4N5N6N7N8Registry

    What actually happens on a pull

    Spegel Enterprise Edition (SEE) runs as a DaemonSet and registers itself as a containerd mirror for the registries you configure. When a pod is scheduled and containerd resolves an image reference, the request goes to the local SEE instance first instead of straight out to the internet.

    SEE looks up each layer digest in a peer-to-peer routing table built from the layers already present in the local containerd content stores across the cluster. If a peer advertises the digest, the layer is streamed over the cluster network. If nobody has it, exactly one node falls through to the upstream registry, and the moment that layer lands it is advertised to everyone else.

    • Mirror configuration is per registry, so you choose what SEE handles.
    • Resolution is per layer digest, not per image tag, so shared base layers are reused across unrelated images.
    • Nothing is stored twice: SEE serves from the containerd content store that already exists on each node.

    Why it gets faster as the cluster grows

    A registry pull is a single stream from a single origin, and every additional node adds contention on that same origin. Peer distribution inverts that: each node that finishes a layer becomes another source for it, so available bandwidth grows with the number of nodes that already hold the data.

    The practical effect is that the hundredth node in a rollout is typically faster than the tenth, and the thousandth is faster still. The slow part of your rollout stops being the download and becomes the scheduler.

    Failure behaviour and safety

    Every layer is content addressed. A peer either serves bytes that hash to the requested digest or the transfer is rejected, so a bad or malicious peer cannot inject content. Peer traffic stays inside the cluster network and honours your existing network policy.

    If no peer has the layer and the upstream registry is unreachable, behaviour is the same as it would have been without SEE. If the registry is reachable but rate limited, SEE reduces you to one request instead of one per node, which is usually the difference between a throttled rollout and a clean one.

    • Content addressed transfers, verified against the digest.
    • Graceful fallback to the upstream registry.
    • No central coordinator to lose: routing is peer to peer.

    What to measure

    Track image pull duration by node, the ratio of peer served to registry served layers, and registry egress bytes per rollout. Those three together tell you whether the cluster is genuinely self serving and where the remaining registry traffic comes from.