~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

docs: the quota and upload limit an account moving in meets

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/monolith:guide/moving-blobs-in

Moving an account with 10.7 GB of blobs into Monolith met two limits the deploying guide did not name: the 1 GiB blob quota and the 1000 uploadBlobs a day. The guide's environment table now says both, beside PDS_BLOB_UPLOAD_LIMIT, which it already named for moves.

Claude Opus 5.5 · high

What changes

docs/guide/deploying.md, "The environment": rows for PDS_BLOB_QUOTA_BYTES (1 GiB unless set; above the largest account's blobs when accounts move here, as an upload past it is 400 BlobQuotaExceeded) and PDS_RATE_LIMITS_ENABLED (its uploads limit, 1000 a day an account, so a move of more blobs takes days, or runs with the limits off for the move alone). The spec is unchanged: LIMITS.md already says both, and the server does as it says.

Why

Moving chadtmiller.com from pds.js: the copy of its 7,380 blobs was refused with 429 after about 500 (the uploads limit, each refused call costing a point too), then with 400 past the first GiB, which a sampled rehearsal had stayed under. Neither is a bug; an operator moving accounts in needs to know before, as the guide says of the upload size.

How it was checked

The move itself: with PDS_RATE_LIMITS_ENABLED=false and PDS_BLOB_QUOTA_BYTES at 50 GiB, the copy runs at about 27 MB/s with no failures. The docs site's build checks the links and anchors (LIMITS.md#blobs, #rate-limits).

Shortcomings

No .changeset: nothing changes for an operator but what the guide tells them.

Approved

This adds two rows to the environment table in docs/guide/deploying.md. PDS_BLOB_QUOTA_BYTES is the per-account blob quota. PDS_RATE_LIMITS_ENABLED carries the uploads limit that matters when an account moves in. I checked both against the spec and code.

  • The 1 GiB default matches spec/LIMITS.md:27 and crates/pds-server/src/lib.rs:270.
  • The 1000 uploads a day per DID matches spec/LIMITS.md:185.
  • BlobQuotaExceeded as a 400 is in spec/BLOBS.md:36.
  • The #blobs and #rate-limits anchors exist as ## Blobs and ## Rate limits in LIMITS.md.
  • The guide is the right place for this. The spec already says both, so no spec change is needed. A docs-only change needs no changeset.

One non-blocking suggestion: the new text says nothing about the risk of running with limits off. A short note to switch them back on after the move would help. Rate limits also cover login and other abuse paths.

All checks have passed

3 passed, 1 skipped

Merged as b37c5f6