Edge & BYOS — run the edge on your servers
Bring Your Own Servers: register edge nodes, install the runtime, follow heartbeat and health, understand last-known-good and draining.
BYOS (Bring Your Own Servers) is the model where you run VeloFlux edge nodes on your own servers — in any region, provider or data center. The control plane stays with Ciatto, but traffic flows through your servers, under your control.
How it works#
- The edge node registers with the control plane (
POST /api/edge/register) using a registration token or the global bootstrap token. - The node polls for configuration (
GET /api/edge/config) and applies the dynamic route snapshot without restarting. - The node sends a heartbeat (
POST /api/edge/heartbeat); the control plane updateslast_heartbeat_atand the online status. - The node persists local state (
edge-state.json) to survive restarts. - The received configuration becomes a dynamic snapshot (
dynconfig.Snapshot) and affects routing immediately.
The configuration snapshot only includes route origins with is_healthy=true, with support for pop_upstreams per region.
Register and install a node#
In the dashboard, go to Servers (nodes/edge). There you:
- List the organization's nodes (
GET /api/org/nodes). - Generate a registration token — a JWT of type
node_registration(POST /api/org/nodes/token). - Install the edge on the server, using the install command shown by the dashboard (connection modal) or the SSH install tracked by a job (
POST /api/org/nodes/install), with progress atGET /api/org/nodes/install/{job_id}/status.
The SSH install runs the remote script scripts/install-edge.sh and follows the logs. Per-plan node limits are enforced by the API — see Plans.
The exact install command is generated by the dashboard for your server and cluster. Do not copy install commands from third parties: always use the token and command shown in Servers for your organization.
Mac and Linux#
The edge can be installed on Linux servers and on Mac. Installing the native edge on Mac as a persistent runtime is a governed Ciatto Ops operation (coolify.install_mac_veloflux_edge), performed by operators. It requires the reviewed binary SHA256, ops.write and confirm=true, and refuses if Mac state already exists.
Heartbeat and health#
- Each node sends periodic heartbeats. The dashboard shows the node as online while heartbeats arrive.
- The
RouteOriginHealthJobperiodically reconcilesroute_origins.is_healthyin the control plane. - The proxy health endpoint answers at
GET /healthz, and readiness atGET /readyz(validates reachability of the default upstream and writability of the certificate directory). - Diagnosing the edge installed on a Coolify server is also a governed Ciatto Ops operation (
coolify.veloflux_edge_diagnose).
Last-known-good (LKG)#
If the control plane fails or becomes unreachable, the edge keeps serving with the last known valid configuration (last-known-good). Edge nodes are independent, with dynamic configuration and last-known-good state — traffic does not stop because control went down.
This does not eliminate all outage risk, but it decouples the data plane's survival from the control plane's health.
Draining#
A node can be drained: it stops receiving new traffic while existing connections finish, allowing safe maintenance, updates or removal. The control plane reconciles origin health and the snapshot stops including the drained node.
Edge updates#
Updating the edge installed on a Coolify server is done only by the installed official updater (coolify.veloflux_edge_update), a governed Ciatto Ops operation requiring confirm=true that runs the updater's own health check with rollback and reports checksums, service state and filtered journals.
Edge endpoints (control plane)#
| Endpoint | Use |
|---|---|
POST /api/edge/register | Node registration |
GET /api/edge/config | Configuration pull (dynamic snapshot) |
POST /api/edge/heartbeat | Heartbeat and online status |
GET /api/edge/tls/ask | On-demand TLS issuance approval (routable domains only) |
Troubleshooting#
- Node offline: see Troubleshooting.
- Edge not receiving new configuration: confirm the heartbeat and registration, and check that the registration token has not expired.