Getting startedInstall CobaltDB and run your first SQL query in Go.SQL & JSONTables, indexes, parameterized queries, JSON and transactions.ArchitectureExplore disk-paged B+trees, bounded memory and crash recovery.Server & clientsConnect MySQL 8.4 clients and ORMs to the standalone server.Production guidePlan TLS, security, backups, observability and deployment boundaries.Performance benchmarksPaged storage, memory measurements and benchmark methodology.FeaturesSQL, transactions, encryption and a pure Go runtime.Brand assetsDownload the CobaltDB SVG logo and icon.
K to open ESC to close
Documentation

Production guide

Plan TLS, security, backups, observability and deployment boundaries.

Know the deployment boundary

CobaltDB currently describes itself as a production-oriented, single-node database candidate. Treat readiness as a property of your application, workload, driver and recovery process.

Replication is not automatic HA. The replication transport does not by itself provide automatic failover or high availability. Plan recovery and failover procedures explicitly.

Read the upstream production guide and HA and failover boundaries before choosing a deployment architecture.

Upgrading to v0.7.0

Back up before opening an older database. Version 0.7.0 converts earlier files to paged storage on open. The converted file cannot be reopened by older CobaltDB versions. Keep an untouched backup and test restoration before upgrading.

Review the release changelog for behavior changes. Custom Go configurations should begin with engine.DefaultOptions(). The default cache is now 32,768 pages (128 MiB), including in the Docker image.

Budget disk space for the database, WAL and query scratch files. Tune -cache and -memory-limit for your workload; a soft heap limit is not a hard cap on process RSS.

Network & data security

  • Bind listeners to trusted interfaces and keep them private by default.
  • Configure TLS for non-loopback wire access and validate client compatibility.
  • Set a strong, unique admin password through your secret-management system.
  • Evaluate AES-256-GCM encryption, RLS policies and audit logging for your data.
  • Manage encryption keys independently from the data they protect.

Non-loopback replication requires authenticated TLS. Mutual TLS and certificate-name overrides are available for relevant topologies. Use the current server configuration as the authority.

Backups & restoration

Use scheduled hot backups or mysqldump for online-consistent backups. The MySQL 8.4 client’s single-transaction dump workflow is tested against both MySQL and a fresh CobaltDB instance.

Logical backupbash
mysqldump -h 127.0.0.1 -P 3307 -u admin -p \
  --single-transaction --routines --triggers --events app > app.sql

Test restoration against a separate database before relying on a backup. Preserve required keys, metadata and operational configuration as part of your recovery plan.

Refer to the operations runbook for the current procedures and deployment constraints.

Health & observability

The health listener exposes liveness, readiness and metrics endpoints. Keep the operational listener private or behind your own access control.

Local health checksbash
curl http://127.0.0.1:8420/health
curl http://127.0.0.1:8420/ready
curl http://127.0.0.1:8420/metrics/prometheus

Use representative workloads to set latency and resource budgets. Benchmark persistent storage, concurrency, failure recovery and the exact client versions you plan to ship.

Verify the version you deploy

Pin your release, review the changelog, and run the repository’s verification commands in the appropriate development environment.

Repository checksbash
make verify

# Security/concurrency gate; race detector needs a CGO toolchain
make verify-security

These commands are upstream database checks. Website build and browser checks do not certify database production readiness.

Source-aligned guide · CobaltDB v0.7.0Suggest an improvement