This guide is for operators maintaining an existing installation, including the managed service. Tenant application workflows live in Build applications. Initial installation belongs in Self-hosting.
Select the installation before running commands
All commands run from the repository root. Targets without a profile prefix operate on the local single-node demo; they do not select the hosted service.
| Task | Local single node | Local six-node fleet | Reference public Latitude host |
|---|---|---|---|
| Converge platform services | make site |
make site PROFILE=fleet |
make site PROFILE=latitude |
| Inspect service health | make status |
make status PROFILE=fleet |
make status PROFILE=latitude |
| Open an operator shell | make ssh |
make ssh PROFILE=fleet |
make ssh PROFILE=latitude |
| Run live smoke coverage | make test |
make test PROFILE=fleet |
make test PROFILE=latitude |
Convergence applies Ansible configuration and may restart changed services. Application deployment is a separate customer operation through the published Wrangler API. To publish the documentation application, use Publish the documentation site.
The Latitude profile addresses the checked-in hosted inventory. Operators of another installation should use their own inventory, state, and credentials; see Public hosting.
Inspect and support
The operator console provides platform activity, organization support, per-host capacity and service readiness, and lifecycle events. The control plane reports ready only when its required identity, quota, Access, data-service, proxy, and runtime dependencies are ready.
Use Invite and manage customers for customer access. Owners manage their own organizations and choose their usage tier. Operators can suspend an organization, reactivate it, set a quota override, or explicitly delete it. Suspension retains data; deletion purges it.
Use Platform observability to investigate collection health, service errors, and capacity pressure. A failing customer Worker alone does not indicate a platform outage.
Qualify host faults in Lima
Run the first host fault qualification on the compact Lima appliance:
make status PROFILE=single
make site PROFILE=single
make test PROFILE=single SUITE=chaosTo run one bounded fault instead of the complete suite:
make test PROFILE=single CASE=host-cpu
make test PROFILE=single CASE=host-memory
make test PROFILE=single CASE=host-disk
make test PROFILE=single CASE=host-network-delay
make test PROFILE=single CASE=host-network-loss
make test PROFILE=single CASE=runtime-kill
make test PROFILE=single CASE=runtime-terminate
make test PROFILE=single CASE=database-startup-recoveryThe case deploys a temporary sum Worker through Wrangler and sends five requests
per second through public HTTPS ingress for five minutes. k6 uses a loopback
adapter on the controller to verify upstream TLS against the explicit local CA;
the measured request time includes this adapter’s overhead in every phase.
A baseline with incorrect or missing responses prevents fault injection.
After a one-minute baseline, the selected case asks Chaosd to apply pressure for
two minutes. host-cpu applies 100 percent CPU load across the guest’s CPUs.
host-memory uses one memory worker and sizes its allocation from the guest’s
live headroom, retaining at least the larger of 25 percent of total RAM or 3 GiB
as available memory. It refuses to begin when less than half of RAM is available.
host-disk asks Chaosd to write at most 4 GiB through two payload processes in
an isolated qualification directory. It retains the larger of 10 percent of the
root filesystem or 4 GiB, refuses to run below 15 percent free space, and gives
the one-shot workload its own 60-second deadline. The remaining window measures
recovery. host-network-delay adds 100 ms to the guest’s loopback interface,
exercising local service-to-service traffic without impairing the external
interface used by SSH, Ansible, public ingress, or the controller’s cleanup
path. Chaosd recovery ends the CPU, memory, and network faults; the disk workload
ends after its bounded payload or deadline and must leave no payload behind.
Runtime health checks allow this bounded loopback delay without removing healthy
pool members, while still taking an unresponsive member out of rotation.
An independent systemd unit deadline and cgroup cleanup bound the experiment even
if the controller disconnects. The CPU stressor also has its own timeout. The
host-pressure cases do not restart platform services; runtime-kill deliberately
crashes one compute-pool member and runtime-terminate sends a clean termination
signal to the same exact target. The temporary Worker is removed when the
controller completes.
The command prints its evidence directory under artifacts/host-faults/ and a
Grafana link to Host qualification, scoped to that run and time window.
Evidence includes k6 requests and dropped iterations, independent host samples,
Prometheus pressure and alert history, and the fault journal. Missing or stale
telemetry fails the qualification. CPU qualification must observe sustained CPU
pressure and the HostCPUHigh alert firing and clearing. Memory qualification
must observe reduced available memory and the HostMemoryAvailableLow alert
firing and clearing, then prove that available memory recovers without a kernel
OOM kill. Disk qualification must observe write throughput in independent guest
and Prometheus measurements, retain filesystem headroom, remove its payload, and
return disk utilization to baseline. The host-pressure cases require correct
responses throughout; every case requires recovered latency and no new failed
services. Network-delay qualification also requires the scoped qdisc to remain
active for the fault window, a corresponding client-visible latency increase,
ordinary network telemetry throughout the run, and exact removal of the qdisc
state. Latency under pressure is measured separately from recovered latency;
these test thresholds are not tenant service-level promises.
host-network-loss applies one percent packet loss to the same loopback-only
path. The qualification requires Chaosd’s qdisc counters to record dropped
packets and both guest and Prometheus TCP counters to record retransmissions.
At this bounded rate, the HTTP canary must still return every correct response,
every request must finish within 1.5 seconds, the qdisc must be removed exactly,
and latency must return to its baseline range. The bound allows one ordinary TCP
retransmission timeout while rejecting compounded stalls. This verifies that the
ordinary TCP and service path absorbs isolated packet loss; it does not claim
continuity through a full network partition.
Only PROFILE=single is supported. The playbook independently verifies the
compact VM identity before installing tooling or injecting a fault. Chaosd is
checksum-pinned and installed on demand by this case, with no listening server.
The CPU, memory, disk, and network recording rules and dashboard use the ordinary
platform roles; CPU and memory have warning alerts. The memory and disk cases
create bounded pressure rather than deliberately exhausting the VM or filling
its filesystem.
The network cases model a slow or lossy runtime path without cutting management
connectivity. A full partition remains a separate qualification because
successful request continuity is not an appropriate assertion for that fault.
database-startup-recovery is a shorter service-startup qualification. Chaosd
adds two seconds of latency to loopback traffic, then the test restarts the
database service. The case requires an identified native metadata timeout,
removes the fault immediately after the retry is observed, and proves the service
becomes ready without entering a systemd restart loop. It also requires Chaosd
to remove the qdisc. Evidence and the service journal are retained under
artifacts/database-startup-faults/. This reproduces the deployment failure
boundary in the disposable VM without changing tenant data.
runtime-kill selects only workerd-pool@0.service by its current systemd
MainPID and asks Chaosd to send SIGKILL while the same public HTTPS canary runs.
The qualification requires systemd to create one replacement process within ten
seconds without controller intervention, HAProxy to observe the crashed member
leave rotation and report its replacement healthy afterward, stable service and
proxy state, fresh runtime telemetry, and a clean final traffic phase. It records
any requests lost during the crash and allows at
most ten in the incident window; baseline and recovered traffic must remain
error-free. This is a process-crash recovery check for one stateless compute
member, not a stateful Durable Object failure or a host outage.
runtime-terminate selects the same exact member, resolves the one workerd
executable inside its systemd cgroup, and asks Chaosd to send it SIGTERM. This
targets the runtime rather than the Bubblewrap jail process, which does not
forward an external SIGTERM. Pool members use Restart=always, so an external
clean termination is replaced while an intentional systemctl stop remains stopped. The
qualification requires one automatic replacement within ten seconds, stable
HAProxy and runtime state afterward, and no incorrect response in any phase.
This checks an orderly process termination under ordinary short-lived traffic;
it does not yet prove a long-running request or WebSocket drain.
For a member-specific incident, use
make runtime-member-restart PROFILE=latitude MEMBER=<index>. The Ansible
operation validates the index, restarts exactly that pool member, and requires
the member to load and execute a probe Worker before declaring it ready.
Upgrade the runtime
The runtime version and Linux archive checksums are pinned together in
infra/ansible/inventory/group_vars/all.yml. Validate a change through the
repository checks and relevant integration checks before applying the selected
installation’s convergence command.
Runtime upgrades restart services and may interrupt requests. Schedule a maintenance window. Keep application compatibility dates unchanged unless adopting new API behavior deliberately. Worker-code rollback is separate from a runtime upgrade and does not restore database schema or application data.
The development guide lists validation tools. Runtime isolation explains the database and Images execution boundaries that must survive upgrades.
Protect persistent state
State belongs to each capability’s service. On a compact installation these directories share one host; on a fleet they reside on the selected service hosts. Additional hosts provide capacity, not replicas.
Protect the identity and quota catalogs, control-plane versions and secrets, object blobs and metadata, database files, queues, key-value and cache state, vectors, Models encryption keys, native Durable Object state, and certificate state. Their locations and placement are described by the service roles and architecture.
Native Durable Objects and Cron state live under
/var/lib/ermahgerd-durable on their assigned shard host. A restart retains
state. Adding a shard does not migrate or replicate existing objects. There is
no built-in backup, restore, replication, or automatic failover workflow;
plan and verify consistent recovery for the whole installation.
For the reference public profile, back up .local/latitude/secrets.yml and
its Vault password independently. Restoring fresh credentials over an existing
installation is not a safe rotation procedure. See
Public hosting.
Local make down retains VM disks. Local make destroy deliberately removes
the demo’s data. Recreating a demo is not a recovery strategy for hosted data.
Migrate existing Durable Object placements
New ordinary Durable Object applications use clustered storage by default. Existing applications keep their recorded member until an operator selects one for migration; runtime convergence never bulk-moves tenant state.
Inventory every existing placement without freezing or changing an application:
.cache/control-plane-venv/bin/python tools/manage_durable_migrations.py inventorySet ERMAHGERD_API_ORIGIN and ERMAHGERD_CONTROL_RUNTIME_TOKEN in the secure
operator environment when targeting a non-local installation. The inventory
reports the current and recommended destination members, active version,
namespace classes, Workflow engine and journal state, object count, and stored
bytes. A status other than eligible explains why the migrator will refuse
that application.
Migrate exactly one reviewed application by its organization UUID and Worker name:
.cache/control-plane-venv/bin/python tools/manage_durable_migrations.py migrate \
11111111-1111-4111-8111-111111111111/example-workerThe command repeats the eligibility check before it freezes the source. It then
captures and verifies the complete physical state cohort, activates the
clustered destination, retains the old source as a recovery boundary, and
prints the durable migration receipt. For a Workflow Worker, that cohort
includes its runtime-owned engine namespace and only its actor in the shared
platform journal. There is deliberately no migrate-all command. The inventory
is observational; the exact migrate command is the cutover action.
Maintain security and certificates
Keep backing APIs on private listeners. Publish the administrator portal only through its dedicated HTTPS origin with sign-in throttling, or retain a private listener/VPN when that policy is preferred. Tenant and administrator sessions have separate origins and audiences. Public ingress validates the hostname and replaces trusted routing headers.
Workers share runtime processes. Tenant authorization, bindings, hostname routing, and workerd/V8 isolates enforce the platform boundary; it is not a VM boundary between individual Workers.
Certificates and domains covers issuance, renewal, and publication. Local HTTPS documents the independent development CA. Public installations require their own DNS, real certificates, secure portal cookies, and fresh credentials.
Telemetry retention
Prometheus retains up to seven days or 8 GB; Loki and Tempo retain seven days. Journald is bounded to 512 MiB persistent and 128 MiB runtime storage. Retention settings do not replace disk-capacity monitoring. See Platform observability for signal interpretation and operator-only verification workflows.