Sizes and limits
Generated by scripts/docs/settings.ts. Do not edit.
Edge rate limits
Configurable: deployment/edge/limits.json, applied in deployment/edge/snippets/ratelimit.caddy.
| Zone or key | Host | Limit |
|---|---|---|
EDGE_UPSTREAM_TIMEOUT_S | setting | 130 |
EDGE_READ_BODY_S | setting | 120 |
session | PDS host | 30 per 5m |
session_day | PDS host | 300 per 24h |
oauth_signin | PDS host | 30 per 5m |
oauth_token | PDS host | 120 per 5m |
signup | PDS host | 10 per 1h |
reset | PDS host | 5 per 1h |
sync | PDS host | 1500 per 5m |
blob_read | PDS host | 600 per 5m |
blob_upload | PDS host | 60 per 5m |
firehose | PDS host | 6 per 1m |
firehose_hour | PDS host | 60 per 1h |
identity | PDS host | 300 per 5m |
global | PDS host | 3000 per 5m |
web_global | PDS host | 90000 per 1m |
web_oauth_token | PDS host | 3000 per 5m |
app_signin | app host | 10 per 5m |
app_burst | app host | 60 per 10s |
app_files | app host | 120 per 10s |
app_global | app host | 1200 per 5m |
docs_global | docs host | 6000 per 5m |
App rate limits (web)
Fixed in code: interfaces/web/src/lib/server/limits.ts. A route names its policy; the Endpoints pages show which. In socket mode (no edge naming the client) the per-address buckets are dropped.
| Mode | Policy | Scope | Capacity | Refill |
|---|---|---|---|---|
| header | default | ip | 60 | 300 a minute |
| header | default | global | 30000 | 30000 a minute |
| header | profile | ip | 60 | 300 a minute |
| header | profile | global | 30000 | 30000 a minute |
| header | profile | did | 30 | 30 a minute |
| header | login | ip | 10 | 10 a minute |
| header | invite | ip | 60 | 300 a minute |
| header | invite | global | 30000 | 30000 a minute |
| header | invite | did | 10 | 10 an hour |
| header | inviteRequest | ip | 3 | 3 an hour |
| header | inviteRequest | global | 30000 | 30000 a minute |
| header | inviteRequest | global | 20 | 0.83 an hour |
| header | notifications | ip | 60 | 300 a minute |
| header | notifications | global | 30000 | 30000 a minute |
| header | notifications | did | 120 | 120 a minute |
| socket | default | global | 30000 | 30000 a minute |
| socket | profile | global | 30000 | 30000 a minute |
| socket | profile | did | 30 | 30 a minute |
| socket | login | global | 600 | 600 a minute |
| socket | invite | global | 30000 | 30000 a minute |
| socket | invite | did | 10 | 10 an hour |
| socket | inviteRequest | global | 30000 | 30000 a minute |
| socket | inviteRequest | global | 20 | 0.83 an hour |
| socket | notifications | global | 30000 | 30000 a minute |
| socket | notifications | did | 120 | 120 a minute |
Invite quotas (pds-admin)
| Process | Key | Kind | Allowed | Default | local | staging | Defined in |
|---|---|---|---|---|---|---|---|
web | INVITE_COUNTRY_RULE | oneOf | on, off | on | not set | not set | interfaces/web/src/lib/server/config.ts |
web | INVITE_REQUESTS | oneOf | on, off | off | not set | not set | interfaces/web/src/lib/server/config.ts |
web | INVITE_REQUEST_SMTP_URL | secretFile | at least 16 bytes | optional | not set | not set | interfaces/web/src/lib/server/config.ts |
web | INVITE_REQUEST_TO | secretFile | at least 6 bytes | optional | not set | not set | interfaces/web/src/lib/server/config.ts |
web | INVITE_REQUEST_FROM | str | text (pattern in source) | (empty) | not set | not set | interfaces/web/src/lib/server/config.ts |
pds-admin | INVITE_WINDOW_HOURS | int | 1 to 720 | 24 | not set | not set | interfaces/pds-admin/config.ts |
pds-admin | INVITE_MAX_PER_WINDOW | int | 1 to 1000 | 5 | not set | not set | interfaces/pds-admin/config.ts |
pds-admin | INVITE_MAX_PER_DAY_GLOBAL | int | 1 to 100000 | 100 | not set | not set | interfaces/pds-admin/config.ts |
Container limits
Configurable per stack in the compose files.
| Service | local | staging |
|---|---|---|
edge | 256m memory, 0.5 CPU, 128 processes | 256m memory, 0.5 CPU, 128 processes |
indexer | 512m memory, 0.5 CPU, 64 processes | 512m memory, 0.5 CPU, 64 processes |
migrate | 256m memory, 0.5 CPU, 64 processes | 256m memory, 0.5 CPU, 64 processes |
newt | not in this stack | 128m memory, 0.5 CPU, 64 processes |
objects | 512m memory, 0.5 CPU, 256 processes | 512m memory, 0.5 CPU, 256 processes |
pds | 1g memory, 1 CPU, 256 processes | 1g memory, 1 CPU, 256 processes |
pds-admin | 128m memory, 0.25 CPU, 32 processes | 128m memory, 0.25 CPU, 32 processes |
pds-token-reader | 128m memory, 0.25 CPU, 32 processes | not in this stack |
postgres | 1g memory, 1 CPU, 256 processes | 1g memory, 1 CPU, 256 processes |
review | 2g memory, 2 CPU, 128 processes | 2g memory, 2 CPU, 128 processes |
web | 1g memory, 1 CPU, 128 processes | 1g memory, 1 CPU, 128 processes |
Limits fixed in code
| Name | Value | What for | Defined in |
|---|---|---|---|
LIMITS.profile.displayName | 64 | lexicon: permanent once published | shared/lexicons/src/limits.ts |
LIMITS.profile.headline | 200 | lexicon: permanent once published | shared/lexicons/src/limits.ts |
LIMITS.profile.avatarMaxSize | 2000000 | lexicon: permanent once published | shared/lexicons/src/limits.ts |
LIMITS.profile.avatarShapeBytes | 32 | lexicon: permanent once published | shared/lexicons/src/limits.ts |
LIMITS.profile.location | 100 | lexicon: permanent once published | shared/lexicons/src/limits.ts |
LIMITS.profile.websiteBytes | 2000 | lexicon: permanent once published | shared/lexicons/src/limits.ts |
LIMITS.page.cardsMax | 100 | lexicon: permanent once published | shared/lexicons/src/limits.ts |
LIMITS.page.visibilityBytes | 32 | lexicon: permanent once published | shared/lexicons/src/limits.ts |
LIMITS.card.widthBytes | 32 | lexicon: permanent once published | shared/lexicons/src/limits.ts |
LIMITS.card.surfaceBytes | 32 | lexicon: permanent once published | shared/lexicons/src/limits.ts |
LIMITS.card.textBytes | 20000 | lexicon: permanent once published | shared/lexicons/src/limits.ts |
LIMITS.card.title | 100 | lexicon: permanent once published | shared/lexicons/src/limits.ts |
LIMITS.card.layoutBytes | 32 | lexicon: permanent once published | shared/lexicons/src/limits.ts |
LIMITS.card.linksMax | 50 | lexicon: permanent once published | shared/lexicons/src/limits.ts |
LIMITS.card.linkUriBytes | 2000 | lexicon: permanent once published | shared/lexicons/src/limits.ts |
LIMITS.card.linkLabel | 100 | lexicon: permanent once published | shared/lexicons/src/limits.ts |
LIMITS.card.linkDescription | 200 | lexicon: permanent once published | shared/lexicons/src/limits.ts |
LIMITS.card.entriesMax | 50 | lexicon: permanent once published | shared/lexicons/src/limits.ts |
LIMITS.card.entryTitle | 120 | lexicon: permanent once published | shared/lexicons/src/limits.ts |
LIMITS.card.entryTag | 40 | lexicon: permanent once published | shared/lexicons/src/limits.ts |
LIMITS.card.entryDescription | 300 | lexicon: permanent once published | shared/lexicons/src/limits.ts |
LIMITS.card.entryUriBytes | 2000 | lexicon: permanent once published | shared/lexicons/src/limits.ts |
LIMITS.card.buttonsHeading | 120 | lexicon: permanent once published | shared/lexicons/src/limits.ts |
LIMITS.card.buttonsText | 400 | lexicon: permanent once published | shared/lexicons/src/limits.ts |
LIMITS.card.buttonsMax | 5 | lexicon: permanent once published | shared/lexicons/src/limits.ts |
LIMITS.card.emailBytes | 254 | lexicon: permanent once published | shared/lexicons/src/limits.ts |
LIMITS.card.presetBytes | 32 | lexicon: permanent once published | shared/lexicons/src/limits.ts |
LIMITS.card.buttonUriBytes | 2000 | lexicon: permanent once published | shared/lexicons/src/limits.ts |
LIMITS.card.buttonLabel | 40 | lexicon: permanent once published | shared/lexicons/src/limits.ts |
LIMITS.card.imageMaxSize | 5000000 | lexicon: permanent once published | shared/lexicons/src/limits.ts |
LIMITS.card.imageAlt | 2000 | lexicon: permanent once published | shared/lexicons/src/limits.ts |
LIMITS.card.imageCaption | 300 | lexicon: permanent once published | shared/lexicons/src/limits.ts |
LIMITS.card.fitBytes | 32 | lexicon: permanent once published | shared/lexicons/src/limits.ts |
LIMITS.card.galleryTitle | 100 | lexicon: permanent once published | shared/lexicons/src/limits.ts |
LIMITS.card.galleryMax | 20 | lexicon: permanent once published | shared/lexicons/src/limits.ts |
IMAGE_ACCEPT | image/png, image/jpeg, image/webp, image/avif | lexicon: permanent once published | shared/lexicons/src/limits.ts |
APP_LIMITS.displayName | 64 | profile editor | domains/profile/profile.ts |
APP_LIMITS.headline | 120 | profile editor | domains/profile/profile.ts |
APP_LIMITS.location | 100 | profile editor | domains/profile/profile.ts |
CARD_EDIT_LIMITS.links | 30 | card editor rows per list | domains/profile/card-edit.ts |
CARD_EDIT_LIMITS.collection | 30 | card editor rows per list | domains/profile/card-edit.ts |
CARD_EDIT_LIMITS.buttons | 5 | card editor rows per list | domains/profile/card-edit.ts |
TEXT_EDIT_BYTES | 10000 | card editor Markdown bytes | domains/profile/card-edit.ts |
DISCOVERABILITY_LIMITS.title | 70 | Search and AI text | domains/profile/discoverability.ts |
DISCOVERABILITY_LIMITS.description | 200 | Search and AI text | domains/profile/discoverability.ts |
MAX_AI_SEARCH_PAGES | 10000 | robots and sitemap | domains/profile/crawlers.ts |
MAX_SITEMAP_PAGES | 50000 | robots and sitemap | domains/profile/crawlers.ts |
MAX_PAGE_BYTES | 4194304 | indexer | domains/profile/index-plan.ts |
MAX_RECORD_BYTES | 1000000 | indexer | domains/profile/index-plan.ts |
MAX_SECTIONS_PER_ACCOUNT | 200 | indexer | domains/profile/index-plan.ts |
MAX_CONFIRM_DAYS | 7 | account status retries | infrastructure/postgres/accountStore.ts |
MAX_PLAINTEXT | 1048576 | sealed storage | infrastructure/seal/seal.ts |