Diagram of a CNCF Distribution registry writing image blobs to S3-compatible object storage and redirecting pulls

CNCF Distribution can keep registry blobs in an S3-compatible bucket. That separates the registry process from the stored layers, but it does not make pushes cheap: a completed blob moves through an upload path, a server-side copy, and cleanup before it reaches its final key.

We measured Distribution 3.1.2 with Garage 2.5.0 on one disposable 2-vCPU, 4-GB Ubuntu server. The registry, object store and client all used loopback. Each case ran five times with a fresh random image, so no blob was reused.

What we pushed

  • Eight uncompressed 16 MiB tar layers, plus config and manifest.
  • Nine blobs and 134,267,561 bytes in total: 128.05 MiB.
  • Five repetitions per case, with every pulled blob checked by SHA-256.
  • All 50 measured operations exited successfully.

Four concurrent blobs were the push sweet spot

CaseMedian (range)MiB/sRegistry requestsStore requests
Push, 1 blob at a time3.41 s (2.97-7.47)37.628203
Push, 4 at once2.00 s (1.87-5.42)64.028203
Push, 8 at once2.12 s (1.98-3.34)60.528203
crane push, default jobs2.51 s (2.16-2.59)51.039267

Moving from one blob to four cut the median by 41%: (3.41 - 2.00) / 3.41. Eight did not help on two vCPUs. The store still handled 203 calls for the nine-blob curl push: about 22.6 calls per blob.

Those 203 calls included 40 PutObject, 37 HeadObject, 28 ListObjectsV2, 18 GetObject, 18 DeleteObjects, 17 UploadPart, and nine each of CreateMultipartUpload, CompleteMultipartUpload, CopyObject, ListMultipartUploads and ListParts. Every blob caused one CopyObject into its final path.

Keep pull redirects on unless you need the registry in the data path

128 MiB pullMedian (range)Registry CPUStore requests
Redirect on, serial1.62 s (1.37-2.44)0.029 s11
Redirect on, 8 at once0.87 s (0.75-1.61)0.014 s11
Redirect off, serial2.60 s (2.21-7.23)0.29 s31
Redirect off, 8 at once1.27 s (1.05-1.78)0.22 s31

With redirects enabled, each blob GET received a 307 to a presigned store URL. Registry CPU was 0.014-0.029 seconds per pull, versus 0.22-0.29 seconds while proxying bytes: roughly one tenth. CNCF Distribution enables backend redirects by default where the driver supports them.

A small S3 driver configuration

yaml
version: 0.1
storage:
  s3:
    region: auto
    regionendpoint: https://YOUR-S3-ENDPOINT
    forcepathstyle: true
    bucket: registry-data
    secure: true
    v4auth: true
    chunksize: 10485760
    rootdirectory: /distribution
  redirect:
    disable: false
  cache:
    blobdescriptor: inmemory
http:
  addr: :5000

Create the bucket before starting the registry. Distribution's S3 driver docs require parts larger than 5 MiB and document a 10 MiB default. For a custom S3-compatible endpoint in Distribution 3, use path-style addressing. Keep TLS verification on outside a throwaway lab.

Do not turn this lab into a capacity promise

  • The client, registry and store shared one server and loopback. These figures compare settings; they are not internet transfer speeds.
  • We could not drop the page cache inside the test server. Pulls soon after pushes may have read cached data.
  • Several runs had a slow outlier, so the table gives medians and full min-max ranges.
  • We did not test TLS, authentication, garbage collection, many tags per repository, or tport.space as the backend.
  • CNCF warns that repositories with more tags cause more S3 calls during tag lookups. Measure that against your own repository shape.

For the storage side of the design, also read how multipart part size changes a 5 GB, 50 GB or 500 GB upload and how to rotate S3 access keys without downtime.

Connect S3-compatible tools and keep application artifacts in object storage using standard access keys and endpoints.

Explore tport.space

Sources and test record

  • CNCF Distribution S3 storage driver: S3-compatible endpoints, redirects, path style, chunk sizes and copy concurrency.
  • CNCF Distribution configuration: redirect defaults, cache settings and tag-lookup behavior.
  • Lab run: Distribution 3.1.2 and Garage 2.5.0, 12 November 2026, five repetitions per case. Raw request counters and timings are retained with the project test record.