TurboPanel Docs
Database

Managed Databases

Managed database instances, their replicas, backups and recovery runs.

Tables in this group: backup, cache, database, destination, managed, recovery, replica, retention, scope, shipment, snapshot.

backup

One completed managed-engine backup artifact recorded from the daemon's managed.backup result; unique per (managed_id, backup_id), cascades with the cluster.

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
managed_iduuidyesParent managed row (on delete cascade).
database_iduuidnoThe database row the dump was of, set null if that database is dropped; null for an instance-scope backup.
retention_iduuidnoThe retention whose scheduled run made this artifact; null for a manual backup or once that retention is deleted.
server_iduuidnoHost that holds the on-disk artifact (the primary when the backup ran); null after that server is deleted.
origintextyesbackup when a backup run made the file, import when it was brought in to be restored; existing rows are backup.
backup_idtextyesDaemon-minted bk_ plus hex token that is also the artifact filename on the host; unique per managed engine, not globally.
size_bytesbigintyesArtifact size in bytes as reported by the daemon after writing the dump; re-checked before a restore.
checksumtextyesLowercase SHA-256 hex digest of the artifact computed by the daemon; a restore refuses on mismatch.
databasetextnoDatabase name for a single-database backup, kept as history; null for an instance-scope backup.
pathtextyesArtifact path relative to the backup root of the host that made it (managed/ plus the cluster id, then the file).

cache

One native Valkey process per row, owned by one Hosting Account in one project environment on one server; the daemon runs it as that account.

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.
metadatajsonbnoLast apply result from the daemon: runtimeVersion, lastError and appliedAt; written by the cache result handler only.
environment_iduuidyesParent environment row (on delete cascade).
server_iduuidyesParent server row (on delete restrict).
principal_iduuidyesThe Hosting Account the process runs as; only that account may reach it, and only its sites and apps get the variables.
namevarchar(63)yesShort name unique in the environment, lower case letters, digits and dashes; shown in the web interface.
statustextyesLast known state: pending, applying, ready, stopped or failed; written from apply results.
enginetextyesEngine binary: valkey today; redis is reserved for a later choice and refused by the API until it is offered.
versionvarchar(16)yesEngine series such as 8.1; the daemon maps it to the pinned patch release it vendors.
accesstextyessocket is a private unix socket only the account can open; port is a loopback port the host firewall opens to that account only.
portintegernoLoopback port from the server listen-port ledger, set only when access is port; unique per server.
max_memory_mbintegeryesData memory limit in MiB written as maxmemory; the unit memory ceiling is twice this plus 32 MiB.
key_prefixvarchar(64)yesPrefix of the variable names delivered to the account sites and apps, for example REDIS_HOST; unique per account and environment.
passwordtextyesSealed tpsecret envelope of the login password; only its SHA-256 is sent to the daemon, the plain value travels as a sealed variable.

database

One database inside a managed cluster: its name, whether it has an owner role and the login chosen as its owner; written by the managed databases API.

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.
managed_iduuidyesParent managed row (on delete cascade).
owner_login_iduuidnoPostgres only: the login the customer chose as owner; NULL means the default no-login owner role. Cleared when that login is deleted.
namevarchar(255)yesName on the engine as typed (1-255 chars); unique per cluster after case-fold.
is_role_ownedbooleanyesPostgres only: true when the database is owned by an owner role (tp_NAME_owner, _rw, _ro).

destination

A named S3-compatible destination an organization copies finished backups to; the secret key is sealed and never returned by an API.

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.
organization_iduuidyesParent organization row (on delete cascade).
created_byuuidnoUser who created the target, set null if that user is deleted.
nametextyesLabel the organization gave the target, unique per organization, 1 to 64 characters.
kindtextyesKind of destination; only s3 (S3-compatible object storage) for now.
endpointtextyesBase URL of the storage service, for example https://s3.example.com; no path.
regiontextyesRegion name used when signing requests; us-east-1 when the provider has no regions.
buckettextyesBucket the copies are written to.
prefixtextyesFolder inside the bucket, without a leading or trailing slash; empty for the bucket root.
access_key_idtextyesAccess key id for the bucket; an identifier, returned by the API.
secret_key_sealedtextyesSecret access key sealed with the instance data key (tpsecret envelope); never returned by any API.
last_tested_attimestamp(3) with time zonenoWhen the connection test last ran against this target; null before the first test.
last_test_errortextnoA plain reason the last connection test failed; null when it passed or was never run.
is_path_stylebooleanyesTrue addresses the bucket in the path (endpoint/bucket/key); false uses the bucket as a host name prefix.
is_server_side_encryptedbooleanyesTrue asks the storage to encrypt each object at rest with its own key (AES256).
is_last_test_okbooleannoTrue when the last connection test passed, false when it failed; null before the first test.

managed

One managed database cluster per environment (1:1 via unique environment_id); created by the managed create route, status projected by the command consumer.

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.
metadatajsonbnoResidual cluster facts: rootLoginId and rootUsername set at create, plus host, port and error written by the command consumer from daemon results.
optionsjsonbnoOperator settings jsonb with the key settings (engine ManagedSettings), written by the managed routes; the databases are database rows.
environment_iduuidyesOwning environment; exactly one managed row per environment (unique index), cascade-deleted with it.
server_iduuidnoPlacement pin of the primary member's host, copied from the environment at create and re-set by the consumer only on a primary-member apply success.
nametextnoOperator label for the cluster (1-255 chars of letters, digits, space, dot, underscore, hyphen); null when unnamed.
statustextyesLifecycle state: provisioning at create, applying while a command is queued, then daemon-observed ready, stopped or failed projected by the consumer.
enginetextyesCatalog engine code set once at create from ManagedEngineSpec: postgres, mysql, mariadb, redis or clickhouse (only the first three are creatable).
backup_destinationtextnoThis cluster's own copy choice: null follows the organization default, none turns copying off, otherwise a destination id.

recovery

Durable HA journal entry for one managed cluster recovery (failover, switchover or DR); at most one non-terminal row per managed_id, written by the HA flow.

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.
metadatajsonbnoFencing and progress facts: fencingEpoch, fenceCommandIds, promoteCommandId, haPresent, fenced, drainApplied, lagBytes, blockedReason.
managed_iduuidyesParent managed row (on delete cascade).
target_member_iduuidnoreplica.id of the member being promoted, set null if that member is removed; null when an automatic failover was blocked with no eligible candidate.
kindtextyesautomatic-failover, switchover (planned promotion of a failover replica) or disaster-recovery (promotion of a remote read replica).
source_primary_member_iduuidyesreplica.id of the primary being replaced, stored without an FK on purpose so the journal outlives the member.
statetextyesJournal phase: detecting, fencing, promoting, repointing, reconciling-ingress, verifying, then terminal completed, failed or blocked.
started_attimestamp(3) with time zoneyesWhen the recovery was opened; set explicitly by insertRecovery together with the initial state.
completed_attimestamp(3) with time zonenoWhen the recovery reached a terminal state; null while still in flight.

replica

One server's membership in a managed cluster (primary plus replicas); exactly one primary per managed_id, written by the member lifecycle and the consumer.

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-observed replication health (state, observedAt, optional lagBytes, lagSeconds) written by the consumer after apply and lifecycle commands.
managed_iduuidyesParent managed row (on delete cascade).
server_iduuidyesHost running this member; one member per server per cluster and a private port is unique per server; deleting the server is restricted.
statustextyesPer-member state: provisioning, applying, ready, stopped, failed or needs_resync (set on demote or a failed fence, never auto-cleared).
roletextyesprimary or replica; a partial unique index allows one primary per cluster and the consumer swaps roles on promote and failover.
replica_classtextnofailover (same datacenter, promotable) or read (any org server, never auto-promoted); null on the primary and ignored when role is primary.
ordinalintegeryes1-based member ordinal, unique per cluster; the primary is 1 and it mirrors the engine service's container ordinal.
replication_transporttextnoResolved private path from this member to the primary: local, datacenter, fabric or public; null until resolved or on the primary.
private_portintegernoHost port 45000-45999 published on the member's private address for replication and ProxySQL backends; allocated per server, null for single-member clusters.
is_read_eligiblebooleanyesWhether the listener may route read-only logins to this member; true on the primary, operator-chosen on replicas (API field readEligible).

retention

A scheduled backup of one managed engine or one local storage copy, pushed to its host as a systemd timer that runs without the control plane.

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.
organization_iduuidyesOwning organization stored directly, because the target is polymorphic; cascade-deletes the policy with the org.
managed_iduuidnoParent managed row (on delete cascade).
copy_iduuidnoParent copy row (on delete cascade).
created_byuuidnoUser who created the policy; null for an automatic default policy or once that user is deleted.
nametextyesOperator label for the policy, shown in the console's backup list.
target_kindtextyesmanaged or copy: which of managed_id and copy_id names the target; exactly one is set (retention_target_check).
scheduletextyesThe schedule as authored, a cron expression or alias; translated to a systemd OnCalendar value when pushed to the host.
timezonetextnoIANA zone the schedule is read in; null means the host's local time.
databasetextnoManaged target: the database each run dumps (API field database); NULL means the cluster's initial database.
retention_keepintegeryesHow many of this policy's own artifacts the host keeps, 1 to 100; older ones are pruned after each run.
next_run_attimestamp(3) with time zonenoWhen the host's timer next fires, as last reported by the daemon; null until a report arrives.
is_enabledbooleanyesFalse pauses the policy: its timer is removed from the host while the row and its run history stay.

scope

Which databases a login may use: one row per login and database; what it may do in them is login.privileges.

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.
login_iduuidyesParent login row (on delete cascade).
database_iduuidyesParent database row (on delete cascade).

shipment

How copying one backup to one target stands, as the host reported it; keyed by the engine and the daemon's bk_ id, cascades with the cluster.

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.
managed_iduuidyesThe cluster whose backup this is.
destination_iduuidnoDestination the copy went to, set null if the destination is deleted.
server_iduuidnoThe host that reported the latest state, set null if that server is deleted.
backup_idtextyesThe daemon-minted bk_ id of the backup, matching backup.backup_id; kept as text so a report can land first.
destination_nametextyesName the target had when the copy was recorded, so a deleted target still reads in plain words.
statetextyesOne of pending, copying, copied, failed or removed (pruned from the bucket by retention).
errortextnoA plain reason the copy failed; null otherwise.
object_keytextnoObject key in the bucket, prefix included; set once the copy is done.
size_bytesbigintnoSize of the copied object in bytes as the host reported it.
attemptsintegeryesHow many times the host tried to copy this backup.
copied_attimestamp(3) with time zonenoWhen the host reported the copy finished; null until then.

snapshot

One finished scheduled run of a retention, reported by the host that ran it; unique per (retention_id, run_id).

ColumnTypeRequiredDescription
iduuidyesPrimary key (uuidv7(), time-ordered).
created_attimestamp(3) with time zoneyesRow creation time.
retention_iduuidyesThe retention this run belongs to; the run history cascades with it.
server_iduuidyesParent server row (on delete cascade).
statustextyessucceeded or failed, as reported by the host.
run_idtextyesDaemon-minted id for the run, unique per policy so a report delivered twice is recorded once.
started_attimestamp(3) with time zoneyesWhen the host started the run.
finished_attimestamp(3) with time zoneyesWhen the host finished the run, whether it succeeded or failed.
errortextnoFailure text reported by the host; null when the run succeeded.
backup_reftextnoThe bk_ id of the artifact the run produced, matching backup.backup_id or archive.backup_id; null when it failed.
Edit on GitHub

Last updated on

On this page