Deployments
The word deployment has two meanings in Robotelos. This page covers both.
1. A deployment of an agent version
A deployment puts one published agent version into one environment (dev, stg or prod).
- Record. The console or the Platform API writes the deployment to the control plane’s PostgreSQL. The deployment gets the next generation number, so two deployments to one environment are always ordered. This record is the desired state.
- Pull. The fleet for that environment’s class sees its revision change and the agent pulls a snapshot. The control plane never connects into a cluster.
- Apply. The agent compiles the release into the fleet’s own data database.
compiled_releasesis append-only;serving_releasesonly moves forward. Pool intent is projected toAgentRuntimePoolresources, which the runtime operator turns into a Deployment, Service and autoscaler. - Report. The agent reports the generation it applied and the readiness of each pool. The console’s Management view shows desired state next to this report, so a fleet that is behind or silent is visible.
Environments and fleets
| Environment | Served by | Cluster in the local setup |
|---|---|---|
dev, stg | the non-production fleet class | robotelos-nonprod |
prod | the production fleet class | robotelos-prod |
Promoting a version means deploying it to the next environment. Each fleet converges on its own, with its own data database, so a slow or partitioned production cluster never blocks development.
What is guaranteed
- Generations are never missing or doubled; the active version is the newest generation (checked under load by
make test-load). - A fleet that loses the network keeps serving its current release. When the network returns it converges (2.8 s after a 20 s partition in the chaos test).
- A replacement agent with no cache fetches everything and converges (0.4 s in the chaos test).
2. How the control plane is deployed
Robotelos runs as two servers.
| Server | Roles | Holds |
|---|---|---|
Control plane (runtime/cmd/controlplane) | accounts, executions, fleets | Definitions, versions, deployments, policy, identity, fleet snapshots |
Data plane (runtime/cmd/dataplane) | gateway, engine | Client connections, conversations, execution progress |
Both ship as one binary with roles. For development, run every role in one process against one database. In production, run a Kubernetes Deployment per role from the same image, so the gateway scales with open connections and the engine with active executions.
Split a role into its own Deployment only when one of these is true: it scales differently, it holds different credentials, it fails independently, or it releases on its own cadence. Do not split in advance.
The fleets role is the coordinator the fleet agents talk to. Its gRPC port (ROBOTELOS_FLEET_GRPC_ADDR) and its HTTP port for the WebSocket and SSE fallbacks (ROBOTELOS_FLEET_HTTP_ADDR) are separate from the management API, so they can sit behind different network rules. See Transports.
Next steps
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.