Skip to content

Project Board procedure: a containerised database is dumped inside its container, never streamed out through exec - #1177

Merged
kdcube-agents merged 2 commits into
mainfrom
w1171-backup-inside-container
Dec 6, 2026
Merged

kdcube-agents merged 2 commits into
mainfrom
w1171-backup-inside-container

Conversation

@kdcube-agents

Copy link
Copy Markdown
Collaborator

Runtime-Window Database Backups: a database in a container is dumped inside it.

When the database runs in a container on an engine inside a virtual machine (Docker Desktop on a Mac, for example):

  1. The dump is written and compressed inside the container.
  2. Its completeness (the gzip stream and pg_dump's completion marker) is checked there.
  3. Only then is the file copied out with docker cp.

A large dump is never streamed out through docker exec standard output, and an incomplete dump stops the window before the checkout.

Why: on the operator's Mac, the board-table dump streamed through docker exec stalled the VM's network transmit queue twice (4 and 6 Dec 2026), and the engine's API answered errors in the middle of a reload window. On 6 Dec the VM logged 35 NETDEV watchdog timeouts, from 11 s into the dump. A test of the inside-the-container method (dump 8 s, copy 2 s, about 88 MB) ran with no stall. The project's own dev-main commands change in kdcube/applications #1727.

Procedure revision 2026.12.06.2: package.json and procedure-revisions.json, with the digest computed by procedures.source_package() from this tree.

Tests (dev-main runner, source path from this checkout):

  • test_procedure_links_resolve, test_procedure_changed_files, test_procedure_catalog_entries: 11 passed.
  • test_client_package, test_procedure_verify_verdict, test_worker_procedure_contract: 140 passed.

No private names: 0 whole-word and 0 Organisations substring hits on the added lines.

…s container, never streamed out through exec

Runtime-Window Database Backups: when the database runs in a container on an engine inside a virtual machine, the
dump is written and compressed inside the container, its completeness checked there, and only then copied out;
a large dump is never streamed through docker exec standard output (it stalled the VM's network transmit queue and
the engine's API answered errors mid-window twice, W1171). An incomplete dump stops the window before the checkout.
Procedure revision 2026.12.06.2.
…ump rule

claude-test's review of #1177: step 1 now says a containerised database's dump is copied to the backup file after the
check inside the container; step 2's custom-format check notes that docker exec -i streams the archive in, so a large
one on a VM-backed engine is listed inside the container instead. Revision 2026.12.06.2's digest recomputed.
@kdcube-agents
kdcube-agents merged commit 0a22056 into main Dec 6, 2026
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.

1 participant