Skip to content

EN Clever RPO And RTO

wanoo edited this page Oct 23, 2026 · 2 revisions

RPO and RTO

Français · Type: explanation · Audience: admin · Context: hosted Studio · Status: ready · Applies from: 4.2.3

The Studio Server (hosted team Studio) · contract: experimental · verified by CI (support matrix of 4.4.0, 2026-10-23): Postgres, S3 and Keycloak in CI; Chromium and Firefox (job studio-hosted); WebKit on macOS, by hand only · automated checks: jobs studio-hosted, studio-install-smoke; CI plan studioHosted; 3 test files · people's passes: studio-hosted not run (#149), studio-collab not run (#150), studio-preview not run (#166), studio-assets-hosted not run (#167), studio-mcp-remote not run (#196), studio-oidc-generic not run (#197) · known limits: bucket-loss, rto-not-measured

Two numbers say what a hosted Studio can lose and how long it can be down: the RPO (recovery point objective, the changes a recovery may lose) and the RTO (recovery time objective, how long the recovery takes). This page defines both for the Studio Server, says how each is measured on your installation, and ties them to the measures of the reference deployment. They are observations, never promises.

Why

A team writes the game together, all day. If the database is lost, the question is not whether a backup exists but which changes come back, and when people can write again. The Studio Server answers with two mechanisms, each tied to one number:

  • The journal shipped to the bucket bounds the RPO. Each confirmed operation is copied to Cellar as an immutable segment, in order, as soon as it is written (a failure is retried within 30 s).
  • The daily backup plus the replay bounds the RTO. A restore writes the latest backup into a new database, then replays every segment shipped since (restore drill).

The RPO, defined

What a restore can lose is the operations confirmed but not yet shipped to the bucket when the database was lost. At any moment that is the age of the oldest operation not shipped yet:

  • GET /readyz gives it as rpoMs (0 when everything is shipped);
  • with metrics on, studio_journal_rpo_seconds says the same (Monitoring).

The target is one minute (D42): watched, with an alert past 60 s for 5 min, never promised.

Measure · rpo-observed RPO observed: 0. Two notes written after the backup (revisions 64 and 65) were both replayed by the restore; rpoMs went back to 0 within 2 s of each write.

  • date: 2026-10-19
  • version: 4.2.2
  • volume: a backup at revision 63, 2 operations written after it, head 65
  • conditions: reference deployment phase B, engine at commit c66fbf56 before the 4.2.3 tag (package.json said 4.2.2); one member writing; Clever Cloud test organisation, region par; PostgreSQL DEV, Cellar S
  • source: QUALIF-4.2.3-REFERENCE.md §3 and §4

Limit · bucket-loss The RPO above holds for the loss of the database. If the bucket is lost too, the blobs, the journal and the backups go with it: what you can recover is your last copy of the bucket made elsewhere (Backups, step 4), and the RPO is the age of that copy.

The RTO, defined

The time from the decision to restore to the moment the Studio serves writes again (/readyz 200 on the restored database). It adds up:

  1. creating a new PostgreSQL add-on (not measured);
  2. downloading the latest backup (not measured);
  3. the restore with its replay;
  4. pointing the studio app at the new add-on (clever service link-addon, unlinking the lost one) and redeploying (a studio deploy took 29 s to 1 min 29 s in the reference deployment, migrations included);
  5. the new instance taking the service lease.

Only step 3 is measured:

Measure · restore-step The restore step, from the maintainer's machine: 28.7 s (a backup at revision 1, 508 rows, nothing to replay), then 59.7 s (a backup at revision 63, 593 rows, 2 operations replayed). The report does not say what the difference comes from.

  • date: 2026-10-19
  • version: 4.2.2
  • volume: 508 rows; then 593 rows and 2 operations replayed
  • conditions: Clever Cloud test organisation, region par; PostgreSQL plan DEV, Cellar plan S; run from a machine in Paris, tsx start-up included; engine at commits 52e68932 then c66fbf56 before the 4.2.3 tag (package.json said 4.2.2); one sample each
  • source: QUALIF-4.2.3-REFERENCE.md §4

Limit · rto-not-measured No full RTO was measured: the drills restored into a side database and never switched production over to it. Time your own drill end to end, with your game's size, and write it in your records: that is your RTO, as of that day.

What is not a loss

  • A redeploy refuses writes for a while (503 with Retry-After) and loses none: a write retried with its operation id is applied once (Redeploys).
  • A restore logs everyone out (sessions are not in a backup), and drafts still in a member's browser were never confirmed: they are not part of the RPO, and the Studio keeps a refused draft in the editor.

Alternatives set aside

  • PostgreSQL's own backups only. They would restore the tables, not tie them to the file contents in Cellar at the same instant. The Studio's backup lists the blobs it names and refuses to restore when one is missing.
  • A continuous replica. Not offered: one instance, one database, and the journal shipped to the bucket instead.

Trade-offs

  • The journal and the backups share the bucket with the contents: one place to lose. Copy it elsewhere.
  • The RPO depends on Cellar being reachable: while it is not, rpoMs grows (Worker, PostgreSQL or Cellar down).
  • Measures come from one small game and one member writing, on the test organisation: not a production load.

Decisions and ADRs


Edit the source of this page · Report an error

Home

Index (6)
Start (6)
Play (9)
Install (17)
Create a game (55)
Engine (4)
Local Studio (24)
Team Studio (21)
Clever Cloud (23)
Reality Bridge and connectors (16)
Contribute (25)
Reference (7)

Clone this wiki locally