Managed databases
Managed databases provide Opfield-controlled PostgreSQL, key-value, and ClickHouse instances on Storage Nodes. New managed key-value stores run Valkey and work with Redis clients; see Key-value stores. Opfield owns the resource lifecycle and desired configuration; the Storage Node owns the running engine and its local runtime. An offline Node therefore does not erase the instance’s recorded configuration, and recovery starts with Node health, not with manual engine changes.
A managed instance is created in a form, runs on the Storage Node you choose, and reaches workloads through private bindings. A managed database runs on one server unless you make it available on several. Opfield provisions, configures, monitors, and backs it up on schedule; the backup policy and restore tests, the choice of engine version, and capacity planning stay with you. For a side-by-side comparison with external connections, see Managed and external databases at a glance. Creating a managed database requires Personal or higher.
Capability boundary
Section titled “Capability boundary”| Capability | What Opfield provides | What stays with you |
|---|---|---|
| Provisioning | A bounded PostgreSQL, key-value, or ClickHouse instance on one Storage Node, or on 2 to 5 with availability | Node capacity, placement, storage durability, and approved engine version |
| Configuration and lifecycle | Desired configuration, pause and unpause, restart, retry of failed provisioning, resize of CPU, memory, swap, and storage (storage can only grow), PostgreSQL maximum connections, key-value and ClickHouse engine settings, PostgreSQL extensions, publication, logs, monitoring, and retirement workflows | Change windows, application compatibility, independent verification, and rollback decision |
| Application access | Managed private bindings and optional direct TLS publication | Client behavior, least-privilege use, certificate trust, and credential rotation policy |
| Backups | Scheduled native database backups to a storage connection, and restore into a new managed database, on Personal and higher | Backup policy, off-host destination, retention, encryption of the destination, and regular restore tests |
| Point-in-time recovery | Not provided automatically | WAL, AOF, or engine-specific continuous backup architecture and tested recovery procedure |
| Replication and automatic failover | On Business and Enterprise: a primary and 1 to 4 copies on other Storage Nodes, automatic failover with witnesses or a manual pair; see Databases and storage on several servers | Choosing durability against the stated data-loss window, witness hosts, and application reconnect behavior |
| Engine version changes | Through the API and MCP, a move to a newer catalog version of the same engine: PostgreSQL within its major version, Valkey and ClickHouse to the next catalog version; the container is recreated on the new image and keeps its data. A key-value store created before 2.12 can move from Redis to Valkey once | Choosing the version, and for another PostgreSQL major version, restoring a backup into a new instance |
| Disaster recovery | Opfield keeps the resource definition; lost application data comes back only from a backup | Independent recovery location, data copies, keys, DNS/network recovery, and declared RPO/RTO |
Managed databases have no point-in-time recovery, and automatic failover needs Business or Enterprise. A database that needs point-in-time recovery can run on a platform that provides it and be registered in Opfield as an external connection, with the same health checks, Explorer, Console, and backups. A healthy Opfield resource does not by itself prove that the data is available.


Before provisioning
Section titled “Before provisioning”You need permission to create the database and use the selected Storage Node. Confirm the engine and supported version, node availability, storage and memory requirements, backup plan, and whether external client access is actually necessary. Select capacity conservatively and leave room for engine overhead, temporary work, and recovery operations.
Keep direct publication disabled unless an external client has a documented need. Private application connectivity should use bindings. Enabling direct publication is an intentional change to the instance’s exposure and does not open a host firewall automatically.
Read the curated version catalog in the UI before provisioning. Supported versions are an operational contract: do not pin an arbitrary upstream patch version or keep an obsolete engine only because its container can still start. For production data, document the upgrade path and restore compatibility before selecting a version. Managed PostgreSQL runs on Opfield’s own images with extensions, and PostGIS and pgRouting install on demand from the Extensions tab. Each catalog version is pinned to an image digest. The Storage Node pulls it from Opfield’s mirror on GitHub Container Registry (ghcr.io) first and falls back to Docker Hub, verifying the same digest either way.
Provision and verify
Section titled “Provision and verify”- Choose the engine, supported version, Storage Node, storage size, and memory profile.
- Review the private-by-default network posture and any direct publication setting.
- Create the instance and follow the provisioning operation to completion.
- Wait for the instance to show Ready before creating an application binding or relying on Explorer, Console, or metrics.
- Verify engine health, recent logs, storage reporting, and a permitted connection path.
The first verification should include a write appropriate to the engine and a read-back through the same identity the real client will use. For PostgreSQL, verify the intended database and schema; for a key-value store, verify the expected key access and persistence policy; for ClickHouse, verify the target database/table path and both query and storage behavior. Remove synthetic data after the test.
Provisioning failures commonly result from unavailable nodes, capacity limits, storage preparation, unsupported engine settings, or engine startup. An engine that dies while it starts fails the operation at once with its exit code and last log lines, and the instance’s logs keep that start’s log. Read the operation result before retrying. Repeated restarts or recreation attempts can obscure the original failure and are not a replacement for correcting storage or configuration prerequisites.
Change an existing instance
Section titled “Change an existing instance”Pause and unpause control compute while retaining the database data. Expect normal health, metrics, Explorer, and Console actions to be unavailable while the instance is paused. Restart creates a brief service interruption and should be announced to dependent applications when they cannot reconnect automatically.
Resize only within the engine and storage constraints. Storage can grow but cannot shrink, and resize and settings changes are unavailable while the instance is paused. A change cannot be saved while a previous change is still being applied. Monitoring history survives a period when the database or its Node was offline. Back up before a substantial capacity change, follow the resize operation, then verify storage reporting and application behavior.
For PostgreSQL, Maximum connections in Database Settings sets max_connections: 100 by default, from 20 to 10,000 (postgresConfig.maxConnections in the API and in manage_managed_database update). Saving a new value recreates the container. The same value is the capacity of the database’s links; see Link capacity and connection pools.
Opfield keeps the engine owner credential internal and never returns it to users. Reveal credentials and credential rotation apply to a separate direct-access user that exists while TCP publication is enabled; rotation affects direct clients that use it. Application bindings retain their own engine identities and are not affected.
For a planned change, record a before-state: engine version, storage usage, connection count, current bindings, publication state, latest successful backup, and the operation owner. After the change, compare the same signals and run a real client query. If the operation fails, preserve its Task and engine logs before retrying; repeated blind retries can replace useful evidence with secondary failures.
Publication and retirement
Section titled “Publication and retirement”Direct TCP publication is opt-in and should be treated as a separate external-client contract. You can enable, disable, or change it after provisioning; Opfield recreates the database container and keeps its data, so plan a short interruption. Verify the intended client, certificate trust, credentials, and network path after enabling it. Disabling publication removes that direct path but does not delete the instance or private workload bindings.
Deletion is destructive. First remove or migrate dependent bindings—Opfield rejects deletion while bindings exist or while a backup or restore of the database is running—decide how long backups must be retained, and confirm that no external clients still require direct publication. Deleting the database disables and removes its backup policies; its backup history and the artifacts in storage are kept, and Backups of deleted databases on the Databases page restores them into a new database. Opfield then removes the managed instance and its related identity and storage state through its lifecycle. Do not manually remove engine users, internal network objects, or storage in an attempt to accelerate deletion; let the recorded operation finish so cleanup remains consistent.
Operator details: storage and direct TLS
Section titled “Operator details: storage and direct TLS”The Storage Node must pass the same storage preflight used by the runtime. Opfield-managed databases use fixed-size preallocated ext4 images rather than an unbounded Docker volume. VM and bare-metal hosts normally provide the required loop and mount capabilities. Containerized hosts require explicit loop-device and mount support; an unsupported host is rejected instead of silently falling back to weaker storage isolation. Each managed database holds one loop device while it exists, so size the loop-device pool of an LXC Storage Node for every instance, object storage member, and concurrent backup; see Storage Node and Docker Node prerequisites. Deleting an instance releases its mount and loop device before Opfield reports the deletion, and the daemon repairs devices left behind by earlier releases on its own.
The Docker daemon, not Docker’s restart policy, starts the managed engines on a Storage Node. After a reboot it mounts each instance’s disk image first and starts the engine only then, so an engine never writes into the empty mount directory on the root filesystem. An engine that stops unexpectedly is started again with a growing delay of up to one minute; an instance you stopped stays stopped. A Storage Node starts even when one of its managed containers is missing; that database shows as not running.
An image is promised its full size even while it occupies less, so a create or a disk grow is accepted only when every image on the Node can still reach its size next to the reserve. A resize the Node refuses changes nothing. If an instance’s filesystem goes read-only, the Node stops its engine, repairs the disk with e2fsck -p, mounts it again, and starts the engine. An engine that keeps stopping is shown stopped, not ready.
Opfield bounds what an engine writes on its own volume. PostgreSQL gets max_wal_size, temp_file_limit, and max_slot_wal_keep_size sized from the volume at every start, and a value set with ALTER SYSTEM is kept. Give a key-value store at least three times its maxmemory of storage; the create and resize dialogs warn below that. Managed ClickHouse runs without its system log tables.
Direct publication uses native TLS. Opfield issues the server certificate from its separate Database CA and keeps the private key in daemon-owned storage outside the database image. PostgreSQL and key-value stores expose one TLS endpoint; ClickHouse exposes HTTPS and its native TLS endpoint. Clients must trust the displayed Database CA and should follow the documented hostname or certificate-fingerprint policy rather than disabling verification.
Opfield renews the server certificate automatically, checking hourly: when two thirds of its lifetime have passed, 30 days or fewer remain, a configured service address is missing, or the certificate comes from another CA. The engine reloads the new certificate in place—PostgreSQL, key-value stores, and ClickHouse keep serving—and Opfield switches to it only after the instance serves it. The Database CA does not change, so clients that trust it keep working. The database’s Connection Details show a quiet TLS Certificate row with the expiry date and either “renewed automatically” or “needs attention”. A notice appears on the page only when attention is needed—renewal failed, 7 days or fewer remain, the renewed certificate is not loaded yet, renewal waits for the Node daemon, or the CA limits the lifetime—with the reason, the expiry date, and Rotate now where you may rotate it. The Dashboard also shows a warning listing every managed database and managed storage whose certificate needs attention and that you may view.
Rotate TLS certificate renews it immediately with the same in-place reload. A restart is used only when you allow it, when 7 days or fewer remain, or when the Node daemon cannot reload certificates yet. While renewal keeps failing, Opfield raises the Managed Service Certificate Renewal Failed notification event. API: GET /api/databases/managed/{id}/certificate and POST /api/databases/managed/{id}/rotate-certificate with optional allowRestart; MCP and assistant: manage_managed_database actions certificate_status and rotate_certificate.
Opfield’s own connections for Explorer, Console, monitoring, and backups reach a managed instance through the mutually authenticated Relay tunnel. For PostgreSQL with TLS, Opfield additionally verifies the server certificate against the Opfield Database CA and the identity issued to that instance. Key-value stores and ClickHouse use plaintext inside the tunnel.
Application bindings reach the instance through the same tunnel. For PostgreSQL with TLS, a binding client that connects with the plain binding URI still works: the Storage Node’s daemon opens the TLS connection to PostgreSQL and verifies the instance’s certificate, while a client that requests TLS itself keeps end-to-end TLS. See Application database bindings.
Recovery decisions
Section titled “Recovery decisions”- If the Node is offline, restore the Node and daemon connection before changing the database definition.
- If provisioning failed before the engine became ready, correct the reported storage, capacity, or version problem and use the targeted retry action.
- If the engine is ready but clients fail, separate direct-publication TLS, binding state, credentials, and application configuration before restarting anything.
- If storage is damaged or data is inconsistent, stop lifecycle experimentation and restore to a separate verified target from an engine-level backup.
Pause is not a backup and restart is not rollback. Opfield can reconcile infrastructure state, but it cannot reverse an application schema migration or reconstruct data that was never backed up.