TurboPanel Docs
Database

Servers, Runtime and Metrics

Enrolled servers and their daemon keys, the command / dispatch pipeline, deployments, slots, tasks, labels, and the metrics topology generations.

Tables in this group: command, deployment, dispatch, key, label, monitor, peak, peripheral, server, slot, task.

command

Append-only command history, one row per attempt dispatched to a daemon; created by routes and reconcilers, advanced by transitionCommand; UI status source.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
metadatajsonbnoFollow-up-chain blob only (pendingStandbyApplies, managedDestroyGate, followUpPromote, pendingTlsLeaf, desiredHash) and one-shot claim flags.
organization_iduuidnoOrganization of the server, copied at insert so the activity feed and org-wide lists filter without a join; set null if the organization row goes.
server_iduuidyesParent server row (on delete cascade).
environment_iduuidnoEnvironment a deploy, lifecycle or stop command was issued for (also kept in context); set null when the environment is deleted.
managed_iduuidnoManaged cluster the command acts on (also kept in context); set null when the cluster is deleted.
nametextyesCommand type from COMMAND_TYPES in commands/types.ts, such as daemon.ping, environment.deploy, managed.apply or system.reconcile.
statustextyesState queued, dispatching, sent, acked, running, then terminal succeeded, failed, timed_out or cancelled; set by transitionCommand.
actor_typetextyesuser for an operator request or system for the control plane's own reconcilers, sweeps and webhooks (mirrors COMMAND_ACTOR_TYPES); no FK.
actor_iduuidyesId of the acting user, or of the triggering entity (usually the server) when actor_type is system; no FK.
attemptsintegeryesDispatch retry count, incremented by the queue consumer each time it picks the command up.
contextjsonbnoAllowlisted non-secret identifier bag (managedId, environmentId, generation) extracted by commands/context.ts so reads never need the dispatch payload.
result_summaryjsonbnoSmall bounded typed result reported by the daemon on completion (API field result); execution logs live in the execution-log store, not here.
progressjsonbnoLive step plan and current step the server reports during a deploy (CommandProgress); NULL until reported, finalised when the command ends.
error_codetextnoMachine-readable terminal error code set when the command fails or times out.
error_messagetextnoHuman-readable terminal error text (API field error) set alongside error_code.
queued_attimestamp(3) with time zonenoSet by transitionCommand when the status becomes queued.
dispatch_started_attimestamp(3) with time zonenoSet when the queue consumer picks the command up (status dispatching).
sent_attimestamp(3) with time zonenoSet when the command is enqueued to the daemon cell outbox (status sent).
acked_attimestamp(3) with time zonenoSet when the daemon acknowledges receipt (status acked).
started_attimestamp(3) with time zonenoSet when the daemon reports that execution has begun (status running).
finished_attimestamp(3) with time zonenoSet when the command reaches any terminal status.
expires_attimestamp(3) with time zonenoOptional deadline: once passed, the consumer marks the command timed_out instead of dispatching it; consumer-made follow-ups set 10 minutes, NULL means none.
managed_destroy_gate_idtextnometadata.managedDestroyGate.gateId promoted to an indexed column so gated replica-destroy completions can be filtered; memberIds stays in jsonb.

deployment

Current desired and applied state per (environment, server) pair, upserted on each redeploy by deploy-routes.ts; history lives in environment.deploy commands.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
metadatajsonbnoJsonb patched on apply outcome: error holds the last failure message and is reset to null on success.
optionsjsonbnoPer-target apply inputs written at deploy time: secretPlan, siteReleases (release trees the compose declares) and phpModes (mode per PHP site).
environment_iduuidyesParent environment row (on delete cascade).
server_iduuidyesParent server row (on delete restrict).
last_command_iduuidnoId of the command row for the most recent apply attempt on this pair, set null when that command is pruned; the join key into the command history.
statustextyespending, applying (deploy command created), applied, failed, or draining (server dropped from the plan, awaiting cleanup); set by deploy-routes.
desired_generationintegeryesEnvironment deploy generation this row targets, written by deploy-routes.ts for every planned and drained server on each deploy.
applied_generationintegernoGeneration the daemon last applied successfully on this server, set on the applied transition; NULL until a first success.
desired_hashtextnosha256 of this server's compiled runtime compose.yaml for the desired generation; NULL for draining targets.
finished_attimestamp(3) with time zonenoWhen the last apply attempt reached a terminal state; summarizes only the latest attempt.
duration_msintegernoWall-clock duration of the last apply attempt in milliseconds; NULL when unknown.
outcometextnoTerminal outcome of the last apply attempt: applied, failed or timed_out (the command's own terminal status); NULL until one finishes.

dispatch

One-shot daemon execution payload for a command and the only place secret-bearing command input lives; inserted with its command row, deleted on success.

ColumnTypeRequiredDescription
command_iduuidyesPrimary key and FK to command.id (cascade): exactly one payload per command, written in the same transaction as the command row.
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
payloadjsonbyesTyped, bounded daemon command input (may carry compose YAML, credential envelopes or TLS material); read once by the consumer just before dispatch.
expires_attimestamp(3) with time zonenoFailure-retention deadline: NULL until a terminal failure, then now plus 24h (failed, timed_out, cancelled); the maintenance sweep deletes expired rows.

key

The Ed25519 daemon identity key of a server, one row per server (unique server_id and fingerprint), written on enroll and re-enroll by server-identity-db.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
server_iduuidyesOwning server, UNIQUE so re-enrolment replaces the row in place (fresh id, cleared revoked_at) unless the row is revoked; cascades on server delete.
algorithmtextyesSignature algorithm of the key, constrained to Ed25519.
public_jwkjsonbyesRaw Ed25519 public JWK with crv, kty and x as sent by the daemon at enrolment; the private half never leaves the host.
fingerprinttextyesSHA-256 hex digest of the canonical JSON of crv, kty and x; globally UNIQUE and used to look up the server on daemon auth.
revoked_attimestamp(3) with time zonenoSet by revokeDaemonKey; non-null blocks new JWT issuance and is sticky, so a re-enrolment against a revoked row is refused rather than replacing it.
last_used_attimestamp(3) with time zonenoStamped by touchDaemonKeyLastUsed when a daemon JWT session is issued (single-column write, no cell wake); reset to NULL on re-enrolment.

label

Key/value labels on a server, the source for compose deploy.placement.constraints (node.labels.*); replaced as a whole set by the labels API, max 64.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
server_iduuidyesParent server row (on delete cascade).
keytextyesLabel key, 1 to 255 chars matching ^[A-Za-z0-9][A-Za-z0-9._-]*$ and unique per server; matched by node.labels.KEY placement constraints.
valuetextyesLabel value string (empty allowed, default '') capped at the description max length; compared with == or != in placement constraints.

monitor

Per-server ProxySQL backend monitor credential minted by the control plane, one row per server; kept off server.options since that jsonb is served and cached.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
server_iduuidyesOwning server, UNIQUE because one ProxySQL runs per host with a single global monitor credential; ON DELETE CASCADE so a deleted host leaves no orphaned secret.
usernamevarchar(64)yesDeterministic monitor role name: tp_monitor_ plus the first 12 hex chars of the server UUID without dashes, kept within engine identifier limits.
secret_envelopetextyesPassword sealed with the data-encryption key (ENVELOPE_PREFIX_SECRET prefix); resealed to a tpdaemon envelope per recipient at send time.

peak

Highest RAM and physical core readings of one server per UTC hour; the over-tier rules judge a server on the highest reading of the last 7 days.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
server_iduuidyesOwning server; ON DELETE CASCADE so a deleted host leaves no readings, and (server_id, bucket) is UNIQUE so an upsert only raises the hour.
buckettimestamp(3) with time zoneyesStart of the UTC hour the readings cover, aligned by the writer; rows older than the 7-day grace window are pruned by the 15-minute cron.
memory_bytesbigintnoHighest total RAM in bytes read in the hour; NULL when none was read, never negative.
coresintegernoHighest physical core count read in the hour; NULL when none was read, never negative.

peripheral

A device node on a server that can be passed to one service (USB drive, serial adapter, printer, capture card), keyed by its stable path.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
server_iduuidyesParent server row (on delete cascade).
service_iduuidnoThe service the device is passed to; NULL when no service has it, and cleared when that service is deleted.
nametextnoLabel an operator gave the device; NULL when none.
kindtextyesWhat the device is: usb, serial, printer, video, audio or other.
statustextyespresent while the host reports the device, missing once it no longer does.
pathtextyesStable device path under /dev (a by-id or by-path link) as the host reports it; unique per server.
vendor_idtextnoUSB vendor id as four lower-case hex digits; NULL for a device that is not on USB.
product_idtextnoUSB product id as four lower-case hex digits; NULL for a device that is not on USB.
observed_attimestamp(3) with time zonenoWhen the host last reported the device.

server

One enrolled host per row (uuidv7 id); daemon enroll and heartbeats project host facts onto it, operators set the name, options and pins via PATCH.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
metadatajsonbnoDaemon-projected host facts jsonb: resources, geo, docker, runtimes, cell plus the operator hardwareProfile; hostname, OS and NTP have own columns.
optionsjsonbnoOperator config served by GET /servers: timezone, sshPort, ntp, hosting, cellLocationHint, cellGeneration, metricsCapabilityPlan, phpModes.
organization_iduuidnoOwning organization, nullable; ON DELETE RESTRICT so an organization that still has server rows cannot be deleted.
assigned_tier_iduuidnoTier a manager assigned this server (Add Server choice, license-tier route or a named size change); self-hosted fills the top tier. NULL until set.
preferred_tier_iduuidnoWritten in step with assigned_tier_id, for the console's picked label; set alone when the Add Server tier had no free seat at enroll.
preferred_datacenter_iduuidnoThe datacenter whose network this server prefers when it belongs to several; NULL means no preference; set null when the datacenter is deleted.
nametextnoOptional operator-chosen display name, set when the registration key is minted or via PATCH; the UI falls back to hostname when null.
roletextyesWhat the server is for: server runs workloads, witness only votes in database failover and holds no data; written by an administrator.
hostnamevarchar(255)noDaemon-reported host name written on enroll, hello and identity projection; used with machine_key to match a reconnecting daemon to its row.
machine_keytextnoDeterministic HMAC-SHA256 digest of the host machine-id (never the raw id, not a secret), echoed into signed enroll/auth payloads and used to match reconnects.
os_idvarchar(255)noDistro ID from /etc/os-release as reported by the daemon; Raspberry Pi OS (including 64-bit ID=debian with /etc/rpi-issue) is stored as raspberry-pi-os.
os_familyvarchar(32)noDaemon-reported OS family, one of linux, windows, freebsd or darwin.
os_versionvarchar(64)noDaemon-reported OS version, preferring DEBIAN_VERSION_FULL or /etc/debian_version over VERSION_ID (such as 13.5).
os_codenamevarchar(64)noDaemon-reported VERSION_CODENAME from /etc/os-release.
os_pretty_namevarchar(255)noDaemon-reported PRETTY_NAME from /etc/os-release.
os_architecturevarchar(64)noDaemon-reported CPU architecture, normalised on ingest to x86_64 or aarch64 (amd64 and arm64 map across); other CPUs are not stored, so NULL.
machine_classtextnophysical or virtual for sensor entitlement; NULL means auto, where ingest writes physical once sensors are found (never virtual); PATCH can pin.
machine_class_sourcetextnoWho set machine_class: detected (ingest wrote it back from the topology) or operator (a PATCH pinned or cleared it); NULL while the class is NULL.
timezonevarchar(64)noDaemon-observed IANA host timezone; the operator override lives in options.timezone and wins when set.
ntp_serversjsonbnoDaemon-reported jsonb array of objects with host and optional fallback (FallbackNTP entries), read from timesyncd.conf or timedatectl.
ntp_last_synced_attimestamp(3) with time zonenoLast successful NTP sync: set from the daemon stamp or first synced observation, cleared when the host reports unsynced, never bumped to now() per heartbeat.
status_changed_attimestamp(3) with time zonenoTime of the last is_connected flip in either direction; read as connectedAt while connected and offline-since otherwise, NULL if never transitioned.
daemonjsonbnoSparse jsonb with an optional projection (hostname, machineKey, remoteAddress, keyId, daemonBuild) written by the cell; the key lives in key.
sealing_key_kidtextnoFingerprint of the daemon X25519 sealing key, set when it registers; decrypt answers are sealed to that key for daemons listing daemon-sealed-secrets-v1.
sealing_key_pubtextnoBase64url raw public half of the daemon sealing key, stored only after its signature verified against the daemon key; NULL until registered.
sealing_key_reported_attimestamp(3) with time zonenoWhen the daemon last registered its sealing key; NULL until it does.
plaintext_secrets_attimestamp(3) with time zonenoLast time the secrets decrypt route answered this server in plaintext, written at most hourly; the edge go-live gate reads it.
fabric_roletextnoOperator TurboFabric role, gateway (accepts connections) or client (only dials out); NULL means automatic, gateway when a public address is known.
trust_pinned_bytextnoHow the daemon pinned the panel key: install, upgrade or unsafe (installed with the skip flag); NULL until the daemon reports it.
trust_levelsmallintyesHighest daemon session trust this server has used: 0 unsigned, 1 signed frames, 2 signed with a daemon attach proof; raised only, never lowered.
trust_pin_fingerprinttextnoControl plane key fingerprint the server's pin file holds, from its last signed pin report; empty when nothing is pinned, NULL until a report verifies.
trust_pin_keysetintegernoKey set number of that pin, from the same signed report.
trust_pin_reported_attimestamp (3) with time zonenoWhen the last signed pin report verified.
trust_pin_passkeystextnoBase64url SHA-256 of the rotation passkeys line in the server pin, from its signed pin report; empty with none pinned, NULL when not reported.
trust_silence_stagesmallintnoPin silence alarm raised for the current offline episode: 1 pin silent, 2 pin missing; NULL when none, cleared on reconnect or a signed pin report.
trust_silence_sincetimestamp(3) with time zonenoThe offline episode that alarm belongs to, as the status change time it started at.
trust_silence_alive_attimestamp(3) with time zonenoSince when TurboFabric peers have reported a healthy tunnel to this offline server without a break; NULL while none does.
trust_reports_signed_attimestamp(3) with time zonenoWhen a signed daemon report from this server first verified; set once, and from then on its unsigned reports on a signed session are refused.
container_prefixcidrnoContainer range of this server (a /16 from the org container pool), set when first needed; cross-server network subnets come from it, NULL until then.
hardwarejsonbnoLatest hardware layout the daemon reported (generation, boot generation, snapshot, times); overwritten in place, no history, never read by list screens.
capabilityjsonbnoLatest resolved metrics capability plan (generation, hash, plan, applied time); overwritten in place and recomputable from the box size and hardware.
offline_reasontextnoWhy the host is offline: disconnect (socket closed) or sweep_stale (no heartbeat, likely power loss); NULL while online.
daemon_committextnoCommit of the daemon build running on the host, from its hello or heartbeat.
daemon_built_attimestamp(3) with time zonenoBuild time of the daemon build running on the host.
daemon_update_statustextnoDaemon self-update state: idle, updating, done, failed or expired; NULL until the host reports one.
external_access_pending_attimestamp(3) with time zonenoWhen the host was last asked to change database external access and has not confirmed; a sweep re-sends it while set.
is_time_sync_enabledbooleannoDaemon-reported NTP client enabled flag (ntpEnabled from the systemd-timesyncd facts); NULL when never reported.
is_connectedbooleanyesDaemon liveness flag written by the cell projection on connect and disconnect; online, offline or unknown is derived from it and status_changed_at.
is_hosting_enabledbooleannoBoolean mirror of validated options.hosting.enabled, written by the same PATCH route so system/reconcile.ts can filter hosting in SQL; NULL means not set.
is_fabric_enabledbooleanyesTurboFabric membership switch, default true; false keeps the server out of the mesh (no relay, no tp0, no peer entry, no fabric address).
is_trust_pin_matchingbooleannoWhether the reported pin named this control plane's current or next key; false raises the pin mismatch alarm.

slot

One scheduled replica instance of a service on a server; derived scheduling state the planner writes through replaceEnvironmentSlots on each deploy.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
environment_iduuidyesParent environment row (on delete cascade).
service_iduuidyesParent service row (on delete cascade).
server_iduuidyesServer the planner placed this replica on; sticky across re-plans (only generation is rewritten) unless the planner moves it; ON DELETE RESTRICT.
addressinetnoCross-host inet address allocated on the environment's spanning compose network; at most one per slot, NULL clears a prior allocation.
slotintegeryes0-based replica index within the service (unlike 1-based container.ordinal), unique per service.
generationintegeryesEnvironment deploy generation of the plan that last wrote this row; matches deployment.desired_generation.
desired_statetextyesIntended state, running, stopped or removed; the planner only writes running today.

task

Cron-style scheduled command on a service, created and edited by operators via the tasks API and rendered into systemd timers at deploy time; no run history.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
updated_attimestamp(3) with time zoneyesLast write time; the ORM sets it to now() on every update.
metadatajsonbnoAccepted by the record helper but never written by the tasks API today; reserved.
optionsjsonbnoAccepted by the record helper but never written by the tasks API today; reserved.
service_iduuidyesParent service row (on delete cascade).
nametextyesOperator display name, unique per service and normalized as a display name (no format CHECK).
scheduletextyesCron expression validated by parseCronSchedule in lib/cron.ts and converted to a systemd OnCalendar value at deploy time.
commandtextyesShell command line to run (under 1000 chars, each argument under 512), validated by parseCronCommand.
timezonetextnoOptional IANA timezone (validated against the allowed list) applied when the schedule is converted to a systemd OnCalendar value; NULL means none set.
concurrency_policytextyesWhat happens when a run is still going at the next tick: allow overlapping runs, forbid skips the tick (default), replace restarts the run.
timeout_secondsintegernoLongest a run may take before it is stopped, at most 86400 (24h); NULL means no declared limit.
is_enabledbooleanyesOperator toggle; a disabled task stays stored but renderCronForDeploy skips it, so no timer is rendered at deploy time.
Edit on GitHub

Last updated on

On this page