Operations¶
This section is for the engineer who deploys the Taimen platform in a production environment and maintains it: installation layout, edge, upgrades, secrets, backups, observability, resources, and emergency procedures. Diagnosing specific symptoms is covered in Troubleshooting.
The installation model in brief¶
A production Taimen installation is one machine with Docker Compose and, if needed, a separate runner host for autonomous executors.
flowchart LR
user([People and harness]) ==>|HTTPS 443| caddy
subgraph host["Platform host (deploy/local/compose.yml)"]
caddy[Caddy<br/>the only edge]
caddy ==> iam[iam-service]
caddy ==> cp[control-plane-api]
caddy ==> con[console]
caddy ==> kc[keycloak]
caddy ==> hl[harness-launcher]
caddy ==> fc[fleet-controller]
kc --- kcdb[(keycloak-db)]
cp --- worker[control-plane-worker]
cp --- adapter[context-adapter]
adapter ==> mem[memory-service]
iam --- iamdb[(iam-db)]
cp --- cpdb[(control-plane-db)]
mem --- memdb[(memory-db<br/>pgvector + pg_trgm)]
end
runner[Fleet node<br/>agent containers] ==>|HTTPS: PAT → access token| caddy
Key principles:
-
One description file: the superproject's
deploy/local/compose.ymlwith profiles (core,edge,notify,idp,console,harness,fleet). A local installation and a production one differ only in the.envfile and the Caddyfile. -
One edge: only the
caddycontainer publishes ports (80/443). All other services listen on the host's127.0.0.1or only on the internal network. - A release is a superproject commit. Component versions are pinned by
submodule pointers; an upgrade is a
git pullof the superproject andgit submodule update. - Secrets live only in
.envandsecrets/(both in.gitignore), mode0600. - Schema migrations are applied at startup of the services
(
alembic upgrade headin the container command); there is no separate migration step.
Articles in this section¶
| Article | What is inside |
|---|---|
| Production deployment | Directory layout, .env, profiles, first start, bootstrap, runner host |
| Edge and TLS | Caddy routes, certificate issuance, closing internal paths, common mistakes |
| Upgrades and migrations | Standard rollout, Alembic migrations, minimizing downtime, rollback |
| Secrets and rotation | Secret inventory, file permissions, rotating PATs, the signing key, passwords |
| Backup | What to back up, pg_dump of each database, moving the memory graph from Apache AGE, restore |
| Monitoring and health | Health endpoints, /metrics, make smoke, logs, what to alert on |
| Resources and scaling | Memory limits from deploy/local/compose.yml, minimum and recommended configurations |
| Emergency procedures | IAM outage, release rollback, loss of the runner host, credential compromise |
On-call checklist¶
-
make smokeis green,tools/compose --profile "*" psshows nounhealthy. - Control Plane
GET /health/readyreturns200, not503. -
context_adapter_parked_tenantsequals0. - At least 20% of the disk is free (the Control Plane log and memory grow).
- The PATs of executors and operators do not expire within the next two weeks (see Secrets and rotation).
- The last successful backup of all databases is less than a day old.
Where to run commands
All docker compose commands in this section run from the root of the
superproject clone, where deploy/local/compose.yml and .env live. The make
targets are described in the Make targets
reference.