// CONTENTS Part 11 · Upgrade and release

// PART 11

Staged rollout

Chapter 47 / 60 2 min read English Part 11 of 15

A safe update is a sequence, not an event. This page is that sequence for the server, plus the levers for staging exposure across tenants and updating the desktop editions.

The safe update order (server)

# 0. Snapshot before changes — Incus snapshots are the cheapest insurance
sudo incus snapshot create bot pre-upgrade-$(date +%Y%m%d%H%M%S)

# 1. Stop the service BEFORE replacing the binary ("text file busy" otherwise)
sudo incus exec bot -- systemctl stop botserver

# 2. Swap the binary and start
sudo incus file push /opt/gbo/bin/botserver.new bot/opt/gbo/bin/botserver
sudo incus exec bot -- bash -c 'chmod +x /opt/gbo/bin/botserver && systemctl start botserver'

# 3. Verify: health inside the container, then the marker in Traffic
sudo incus exec bot -- curl -s http://localhost:5858/health

Static UI files need no restart: production serves them from /opt/gbo/bin/ui/ and ServeDir reads per request — push files there and refresh. This is what makes a UI-only rollback instant.

Staging the rollout across tenants

There is no built-in canary percent; the platform’s staging lever is the same one the runbooks use — per-bot/per-tenant activation:

  1. Deploy the new binary (it replaces the process for everyone, but inactive bots receive no traffic).
  2. Keep sensitive tenants’ bots is_active = false through the deploy window; re-enable them first, watch the SLO panels for one burn window, then re-enable the rest.
  3. Reverting a single tenant’s exposure is the same flag flipped back — the drive monitor re-materializes the bot on its next pass.
-- drain before, re-enable after
UPDATE bots SET is_active = false
 WHERE org_id = (SELECT org_id FROM organizations WHERE slug = '<tenant>');

Desktop and appliance updates

  • Desktop: no updater plugin; the shell only notifies (once a day at most, plus Settings → Updates → Check now) and opens the release page. The operator/user replaces files (tarball install.sh, AppImage swap, package manager). User data lives in ~/.local/share/generalbots and survives.
  • OS appliance: there is no in-place upgrade path — reproduce the image (desktop/os/build-image.sh) and reprovision; recovery is reprovisioning.
  • GB Lite (gbgov): releases are committed — every binary swapped into an install must match a pushed commit; commit by area, push, then stage and swap, keeping *.prev/undo.ps1 rollback copies pointing at the known commit.

What to watch for one burn window

Panel Expected after a good deploy
SLO burn & error budget objectives within budget
Requests by endpoint class 5xx rate back to baseline
Traffic a new deploy marker at the deploy time
Queue depth depth falling, wait p95 flat
LLM cost & tokens calls succeeding (no new auth 5xx)

Found a mistake? Open an issue · All books

// SEARCH ESC
Pagefind · 236 pages · 4 books Enter to open ↑ ↓ to move