Two-region demo (eu + us)¶
A Docker-free demo that runs two Provisa nodes, one in region eu and one in region us, on the
embedded local platform, so the region-specific admin UX is visible end to end. Both nodes share one
embedded Postgres (the model store and both regions' stores), each runs its own DuckDB engine, and a
single fakeredis TCP server is the cache.
Two regions share one Postgres here. Every schema and cache key a region keeps carries the
region, so the two do not collide. scripts/launch-demo-regions.sh --check validates the layout
without starting anything.
Start it¶
scripts/launch-demo-regions.sh # start (Ctrl-C or --stop to end)
scripts/launch-demo-regions.sh --reset # wipe its data dir first
scripts/launch-demo-regions.sh --stop # stop everything it started
It uses its own instance directory ~/.provisa/demo-regions and its own ports. It never touches
local-dev (API 8001, UI/vite 5173, MCP 8009, pgwire 5439, ~/.provisa/demo) or demo-snowflake-live
(8200/3200).
| Node | UI | API |
|---|---|---|
| eu | http://127.0.0.1:8310 | http://127.0.0.1:8110 |
| us | http://127.0.0.1:8320 | http://127.0.0.1:8120 |
Open the eu UI at http://127.0.0.1:8310 and the us UI at http://127.0.0.1:8320 side by side.
What to click¶
- Region field and its default. On either node, open Sources → add a source, or Tables →
register a table. The region field defaults to the node's own region (
euon the eu node,uson the us node) for a table, and to the connected region for a view. - The region selector and its hidden count. On Sources, Tables, Materialized Views, or Cache → Hot (hot tables / replica status), the region selector sits in the header. It starts at the node's region, showing objects homed there plus objects with no region. Switch it to another region or to "all regions"; the line next to it says how many rows the current selection hides. Each row shows its region in the region column. Searching by name crosses regions and labels each result.
- A cross-region read. On the us node, query the
intake_eutable (homed in eu). The us node reads it from eu's replica store. The data is processed and kept in eu and read from us under one model. - The 503 refusal when a home region is stopped. Stop just the eu node (leave us up), then on the
us node read
intake_euagain. The read is refused by name, because eu's store is not reachable. - A data_residency refusal, by name.
data_residencyis the right to set an object's region. The launcher seeds two basic-auth logins, printed on start.operatorholds theorg_adminrole plusresidency_steward.residency_stewardhas a grant covering every region, so it can register and move anything.residentholdseu_resident. Its grant covers onlyeuand no-region. Log in asresident, then on Tables change a us-homed table's region. The edit is refused and the message namesus. Set the no-regionbreedstable's region toeuand it succeeds. What a reader sees is governed by RLS; thedata_residencyright governs movement, and the org admin needs it in addition to ownership. The break-glassadminsuperuser is control-plane only and holds no data capabilities, so this demo does not use it. - A draft table. On Tables, find the
intake_drafttable. Its status shows as draft. It appears in no data surface and no query can name it. Set its region and release it; the eu node builds its replica and it becomes queryable. Setting it back to draft removes it from service again.