Registry Mirror
Skip to content

Conversation

@omer9564

Copy link
Copy Markdown
Contributor

Nexus PDP 0.8.0 changed three things about memory and disk that the Nexus PDP pages still describe the old way. This PR updates the pages to match 0.8.0 (0.8.1 and 0.8.2 behave the same here).

What 0.8.0 does, and where the pages change

0.8.0 behaviour Pages
Refuses to start below 2,415,919,104 bytes (2304 MiB) of memory (the cgroup limit, else the host's). It exits 78 before it contacts the control plane or opens a port, with one ERROR line starting edge-pdp refuses to start. There is no override. How it works: the memory caution is rewritten (it told readers to lower the cache sizes to run with less memory). Deployment: the Memory row. Configuration: Storage engine.
The serving database sizes its cache from the memory limit: block cache max(limit/2 − 1 GiB, 16 MiB), write buffer 32/64/128 MiB below 1 GiB / below 16 GiB / from 16 GiB. SURREAL_ROCKSDB_* reach only the cold-start snapshot ingest; the edge logs a WARN listing any that are set. Configuration: Storage engine (the old table presented SURREAL_ROCKSDB_* as the way to size memory). Overview, Nexus PDP, How it works: "cache of configurable size" is corrected.
Reports a stalled embedded database: a write probe every 30 s with a 10 s timeout; after three misses ingest goes down on /health (never gating readiness), /health/detail shows stalled, stalled_since, stalled_seconds, an ERROR line embedded database writes are stalled, and edge_pdp.embedded_db.write_stalls over OTLP. A runtime heartbeat logs the async runtime has stopped running tasks. How it works: new "Watching for a stalled database" section (#stalled-database).
Event store (LOCAL_WAL) retention: every EDGE_WAL_RETENTION_INTERVAL_SECS (300) it purges only changes that are applied, covered by the served database, and at least EDGE_WAL_RETENTION_MIN_AGE_SECS (3600) old, always keeping the newest; it holds (purges nothing) when it can't confirm coverage. How it works: Disk. Configuration: the two variables.

Every figure and message string above was read from the 0.8.0 tag of the Nexus PDP source (its README's Memory, stalled-database and Configuration sections, the memory-floor check, and the retention task), not from measurements. No new numbers are introduced; the existing benchmark figures on the Deployment row are kept as they are.

Relation to #670

#670 also corrects the memory caution and the storage-engine section, but it was written against 0.7.0-beta.26, is unmerged, and conflicts with master since #674 published the benchmarks page; its rebase onto #674 is still pending (see the review on 2026-11-02).

This PR supersedes #670's memory and storage-engine corrections only, rewritten for what 0.8.0 does. It is based on master, not on #670's branch, so it doesn't carry or wait on #670's benchmarks, sizing and disk-sizing changes, which stay with #670. When #670 is rebased, its memory caution, Memory row and Storage engine section can be dropped in favour of these (or reconciled with them); its other changes are untouched by this PR. I've left a comment on #670 saying the same.

Checks

  • cspell on the five changed files: clean (one pre-existing unknown word in overview.mdx, line 590, not touched here).
  • npm run links:relative and npm run paths:private scripts: OK.
  • New and linked anchors: #stalled-database (new), #disk, #resource-footprint, #storage-engine, #self-healing (existing). The full npm run build (hyperlink/anchor check) was not run locally; the Netlify preview build covers it.

🤖 Generated with Claude Code

…, and event-store retention

Nexus PDP 0.8.0 refuses to start below 2304 MiB (exit 78), reports a
stalled embedded database on /health, /health/detail, an ERROR line and
a metric, and removes applied, covered changes older than an hour from
its event store. Replace the caution that told readers to lower the
SURREAL_ROCKSDB_* sizes (the serving database ignores them and sizes
its cache from the memory limit), add a "Watching for a stalled
database" section, document the two retention variables, and correct
the "cache of configurable size" wording on the overview pages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@omer9564
omer9564 requested review from Zivxx and a balanced review from Copilot November 24, 2026 09:13
@netlify

netlify Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for permitio-docs ready!

Name Link
🔨 Latest commit 8f7b8c3
🔍 Latest deploy log https://app.netlify.com/projects/permitio-docs/deploys/6b05a09dbc0999e2ba18ae22
😎 Deploy Preview https://deploy-preview-699--permitio-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@Zivxx Zivxx left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved at 16fef2e. Docs only, five Nexus PDP pages. The memory guidance now matches 0.8.0: the block cache and write buffers are sized from the memory limit, the database refuses to start below 2304 MiB with exit 78, the minimum is 2.5 GiB with 4 GiB to start, it says the SURREAL_ROCKSDB_* variables don't affect the serving DB, and there's a new stalled-database section and WAL retention variables. It's consistent across the configuration, deployment, how-it-works and overview pages.

@permitio permitio deleted a comment from linear-code Bot Nov 24, 2026
@omer9564
omer9564 merged commit cdfc77a into master Nov 24, 2026
4 checks passed
@omer9564
omer9564 deleted the omer/nexus-pdp-memory-floor-and-stall-watch branch November 24, 2026 14:37
zeevmoney added a commit that referenced this pull request Nov 24, 2026
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TEQWbhtPyG778XaEvEuKrh

* commit 'cdfc77a6889fea30960000355ce07a0d4eda2b1e':
  docs(nexus-pdp): the 0.8.0 memory minimum, stalled-database reporting, and event-store retention (#699)
  docs: Elements reads the user key from the environment's user key claim
  docs(nexus-pdp): the NATS credentials directory, PDP_RUNTIME_DIR, and its memory emptyDir (#689)
  docs: add SFS UTM tags on app.agent.security links in architecture and rollout (#694)
  PER-18198: PDP statistics API: which keys can read an environment, and paging (#693)
  docs(nexus-pdp): offline mode: stale serving, offline start, in-place reconnect, and the online heal (#697)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants