4. Operations
This page is for engineers evaluating SynergyDB and for the people who will run it. It covers how to deploy it, what cluster mode does and does not do today, durability settings, backup and restore, monitoring, day-to-day user management and the known operational limits. It is written from the repository at main @ 8a689c5c (2026-11-30). SynergyDB is pre-1.0 and not yet generally available (source: README.md).
Every key and environment variable mentioned here is listed with its default in 4a. Configuration reference. Security controls (TLS, audit, encryption at rest, per-wire auth) are covered in 5. Security.
Where a fact comes from a status entry under docs/status/, that entry describes one branch or PR on the date shown. Some entries say "PR: (pending)". If the entry's file is in this snapshot it was committed to main, but check the entry's branch against the build you actually run. Where the README and a status entry disagree, both are given.
Contents
- Deployment options
- Cluster mode (preview)
- Durability settings
- Backup, restore and point-in-time recovery
- Monitoring and diagnostics
- Users and access, day to day
- Known operational limits
1. Deployment options
| Option | Files | State in this snapshot |
|---|---|---|
| Single binary | src/main.rs |
The path every proof in the README used (cargo build --release --features full) |
| Docker image |
Dockerfile, docker/
|
Builds from source. The published latest tag lags main
|
| systemd, one process per tenant |
deploy/systemd/, deploy/tenants/, deploy/bin/
|
Templates and scripts. The tenant config template has a defect (see below) |
| Kubernetes manifests | deploy/kubernetes/ |
Three independent standalone nodes behind one Service. Not a cluster |
| Helm chart | deploy/helm/synergydb/ |
Same topology as the manifests. Not rendered by any test |
| Docker Swarm stack | deploy/swarm/ |
Cluster settings do not match what the server reads |
| 3-node suite cluster | deploy/suite-cluster/ |
The only deploy files that configure Raft the way the cluster tests do |
1.1 Single binary
Build with cargo build --release --features full and run ./target/release/synergydb (source: README.md, "From source").
Server flags (source: src/main.rs):
| Flag | Effect |
|---|---|
-c, --config <FILE>
|
Config file to load |
--generate-config |
Writes synergydb.toml in the working directory with every built-in default, then exits |
-d, --dev
|
Sets superuser postgres / password postgres / database synergydb (unless those variables are already set), turns on non-interactive mode, and binds to loopback unless --bind-all is also given |
-l, --localhost
|
Bind to loopback (127.0.0.1) |
-a, --bind-all
|
Bind to all interfaces (0.0.0.0) |
-b, --bind <ADDR>
|
Bind to one address |
-v, --version / -h, --help
|
Print and exit |
Offline subcommands, run as the first argument (source: src/main.rs):
| Command | Purpose |
|---|---|
synergydb passwd [-c FILE] [-U USER] [--password-stdin] |
Set or reset a role's password with the server stopped |
synergydb backup --to <DIR> |
Full backup of a stopped server |
synergydb restore --from <DIR> |
Restore a backup into an empty data directory |
synergydb backup-verify <DIR> |
Check a backup against its checksums |
synergydb encryption status |
Audit encryption at rest of every file on disk |
synergydb audit verify / audit generate-key
|
Checks the hash-chained audit trail (exit 0 intact, 2 tampering or damage, 3 unreadable), or prints a new 256-bit audit key. Dispatched by main; not listed in the server's --help (source: src/audit_cmd.rs, run, print_help; src/main.rs). Detail: CLI reference
|
The --dev flag sets a well-known password. Do not use it on a shared network (source: README.md, "Run it").
How the config file is found. The file named by -c, else the path in SYNERGYDB_CONFIG, else synergydb.toml in the working directory. If none of these is given and synergydb.toml does not exist, the built-in defaults are used. Then SYNERGYDB_<SECTION>_<KEY> environment overrides are applied, then the config is validated, and a contradictory config (for example TLS on with no certificate) stops the server (source: src/main.rs, load_config).
Which wires start. In a config file, a wire whose port key is missing is off. With no config file, every wire starts on its default port, except the SQLite wire, which defaults to off (sources: README.md, "Run it"; src/config.rs, ServerConfig::default). Starting from the repository root picks up ./synergydb.toml, which binds to loopback, leaves Kafka, CouchDB and Schema Registry off, and puts the SQLite wire on 5433 (sources: README.md; synergydb.toml).
Not verified: the README says "with no config file at all, every wire starts on its default port". The code sets the SQLite wire's default to off (sqlite_port: None), and the README scorecard also lists SQLite as "off". Expect SQLite to be off unless you set its port.
Bind address precedence. The config value is replaced by --bind, --localhost or --bind-all (in that order of priority), and SYNERGYDB_BIND_ADDRESS is applied after the flags, so the environment variable wins over the command line (source: src/main.rs, async_main). The 2026-11-24 config entry states "CLI flags > env > file" in general (source: docs/status/2026-11-24-config-env-tls-protected-mode.md); for the bind address specifically, the code does the opposite.
Refusals at startup on a non-loopback bind (source: src/main.rs):
-
SYNERGYDB_DEV_INSECURE_AUTHorSYNERGYDB_TEST_AUTH_CHEAPset to1/truestops the server, unless protected mode is off orSYNERGYDB_ALLOW_INSECURE_BIND=1is also set. - A superuser password of
CHANGE_ME,CHANGE_ME_IN_PRODUCTION,changemeorCHANGEMEstops the server.
Process limits. At startup the server raises its open-files soft limit to the hard limit and warns if the result is under 4,096 (source: src/main.rs). Before this change, Docker's default limit of 1,024 refused PostgreSQL logins past about 150 clients (source: docs/status/2026-11-30-open-files-and-accept-backoff.md). The tokio runtime uses 64 worker threads with an 8 MB stack each (source: src/main.rs).
Logging. The server logs to stderr through tracing. The default level is warn; set RUST_LOG to change it (for example RUST_LOG=synergydb=debug) (source: src/main.rs).
Other binaries. The image also ships synergydb-cli (source: Dockerfile). In this snapshot it is an interactive shell whose connect, describe and query commands all print "not yet implemented" (source: src/bin/cli.rs). The migration tool synergydb-migrate runs in no-op mode when --target is not given or the binary was built without migrate-postgres (source: src/bin/migrate.rs), and the README lists it as not validated end to end (source: README.md, "Engine features").
1.2 Docker image
The published image lags main. The latest tag on Docker Hub was built from 8838377 (2026-10-25) and does not contain the wire work measured in the README. Build the image yourself (docker build -t synergydb .) to get current behaviour (source: README.md, "Run it").
What the image does (source: Dockerfile):
- Multi-stage build: a Node stage builds the SynergyDB Studio UI, a Rust stage builds
synergydbandsynergydb-cli, and the runtime stage is Debian bookworm slim. Base images are pinned by digest. - Runs as a non-root
synergydbuser. Volumes/dataand/wal; config at/config/synergydb.toml. - Sets
SYNERGYDB_DATA_DIR=/data,SYNERGYDB_WAL_DIR=/wal,SYNERGYDB_CONFIG=/config/synergydb.toml,SYNERGYDB_STATIC_DIR=/app/static,SYNERGYDB_SUPERUSER=postgres,SYNERGYDB_DATABASE=synergydb,SYNERGYDB_NON_INTERACTIVE=1. - Health check:
curl -fsS http://localhost:8080/readyzevery 30 s. - Default command:
-c /config/synergydb.toml.
Entrypoint (source: docker/entrypoint.sh):
- If
SYNERGYDB_SUPERUSER_PASSWORDis empty andSYNERGYDB_ADMIN_PASSWORDis set, the latter is used. - If there is still no password and
<data dir>/.superuser_passwordexists, the password is read from it. - Otherwise a random password is generated and written to that file with mode 0600. The log tells you how to read the file. The password itself is printed to the log only if the data volume is not writable.
-
exec synergydb "$@".
The data directory used for that file is SYNERGYDB_STORAGE_DATA_DIR, else SYNERGYDB_DATA_DIR, else /data.
Not verified: the README says that without a password "the container generates a password on first boot and prints it once in docker logs". The entrypoint prints it only when it cannot write the file; normally you read it with docker exec <container> cat /data/.superuser_password.
The three Docker config files (sources: the files named):
docker/synergydb.toml (built into the image) |
docker/synergydb.allwires.toml |
docker/synergydb.prod.toml |
|
|---|---|---|---|
| Wires on | PostgreSQL, MySQL, MongoDB, Bolt, HTTP, gRPC, Redis, Cassandra, Elasticsearch, Oracle, SQL Server, DynamoDB, ClickHouse native and HTTP, Snowflake, InfluxDB, Memcached, Kafka, Schema Registry, S3, CouchDB, Gremlin | Same, plus Prometheus remote storage (9091) and Arrow Flight (8815) | PostgreSQL, MySQL, MongoDB, Bolt, HTTP, gRPC only |
bind_address |
0.0.0.0 |
0.0.0.0 |
0.0.0.0 |
memtable_size |
128MB |
128MB |
256MB |
compression |
lz4 |
lz4 |
zstd |
wal_sync_mode |
every_write |
every_write |
every_write |
[cluster] mode |
Standalone |
Standalone |
Replicated, with peers = []
|
[audit] |
not set (off) | not set (off) |
enabled = true, path /var/log/synergydb/audit.log
|
[tls] |
not set | not set | not set (comments point to [tls] and SYNERGYDB_TLS_*) |
To use the all-wires file, mount it over /config/synergydb.toml (source: README.md, "Docker"). For Kafka clients outside the container, set SYNERGYDB_KAFKA_ADVERTISED_HOST to an address they can reach (source: docker/synergydb.toml).
With no [tls] block, TLS is off in a release build (source: src/config.rs, default_tls_enabled). None of the three Docker files turns it on.
Not verified: the header of docker/synergydb.allwires.toml says it adds Schema Registry, but docker/synergydb.toml already enables it. Both files have schema_registry_port = 8081.
Not verified: docker/synergydb.prod.toml sets mode = "Replicated" with an empty peer list, no cluster_port and no cluster secret. No file in this snapshot documents or tests that combination. For a single node, set mode = "Standalone". The /var/log/synergydb/ audit path is not created by the Dockerfile, which only creates /data, /wal and /config.
DOCKERHUB.md and QUICKSTART.md are older than the README and differ from it in several places: image name (synergydb/synergydb in QUICKSTART.md), health path (/api/v1/health or /health), the default bind address (they say 0.0.0.0; the code default is 127.0.0.1 and the Docker config sets 0.0.0.0), and the license (DOCKERHUB.md says Apache 2.0; README.md says proprietary). Prefer README.md and the code.
1.3 systemd, one process per tenant
deploy/ holds templates and scripts for running one SynergyDB process per tenant on a VM. They are not a running system and provision nothing on their own (source: deploy/README.md).
There is no tenant isolation inside the engine. A tenant boundary is a Unix process with its own ports, its own data and WAL directories and a systemd memory cap. Two tenants never share a process (source: deploy/README.md, "Isolation model").
| File | What it does |
|---|---|
deploy/systemd/synergydb@.service |
Unit template. systemctl start synergydb@<tenant> runs synergydb -c /etc/synergydb/tenants/<tenant>.toml with EnvironmentFile=/etc/synergydb/tenants/<tenant>.env. Forces SYNERGYDB_DEV_INSECURE_AUTH=0. MemoryHigh=1500M, MemoryMax=2G as a floor, LimitNOFILE=1048576, TimeoutStopSec=90, Restart=on-failure, systemd hardening (ProtectSystem=strict, NoNewPrivileges, read-write only on the data and WAL mounts) |
deploy/tenants/synergydb.tenant.toml.tmpl |
Per-tenant config: PostgreSQL, MySQL, MongoDB, Bolt and Redis on a port base, TLS on with a per-tenant certificate, wal_sync_mode = "every_write", Standalone
|
deploy/tenants/tenant.env.example |
Per-tenant environment: superuser, password, WAL retention (2 GiB), memory caps, PITR target |
deploy/bin/provision-tenant.sh |
Creates data and WAL dirs, generates a superuser password and a 32-byte key file, renders the config and env (env file mode 0640), writes the memory drop-in. Port layout: base+0 PostgreSQL, +1 MySQL, +2 MongoDB, +3 Bolt, +4 Redis. Default bind is loopback |
deploy/bin/tenant-health-probe.sh |
Checks the unit is active and runs SELECT 1 over the PostgreSQL wire with sslmode=require; emits a CloudWatch metric |
deploy/cloudwatch/put-tenant-alarms.sh |
CloudWatch alarms per tenant |
| WAL ship and EBS snapshot units and scripts | See section 4.3 |
(sources: the files named; deploy/README.md)
Not verified: the tenant template will probably not load as written. Its [vector] section sets only default_index and hot_threshold_secs. In src/config.rs, VectorConfig has no serde defaults, so warm_threshold_secs and cold_threshold_secs are required whenever the file is parsed. Reading the code, a rendered tenant config would fail with a missing-field error. This was not run. Add both keys (any value; README says they have no effect yet) before using the template.
Not verified: encryption at rest for tenants. The tenant env sets SYNERGYDB_ENCRYPTION_KEY_FILE, and the provisioning script creates that key file. That variable name does not appear in src/config.rs, which reads SYNERGYDB_ENCRYPTION_KEY (the key itself) and the [storage] encryption_key_file key, and encryption is off unless [storage] encryption_enabled = true (sources: src/config.rs; docs/status/2026-11-30-encryption-at-rest.md). The template sets neither. As written, tenants are probably not encrypted at rest. Set encryption_enabled = true and encryption_key_file in the tenant TOML, or the matching SYNERGYDB_STORAGE_* overrides, and confirm with synergydb encryption status.
Shutdown time. The unit sends SIGTERM and allows 90 s before SIGKILL. A status entry reports that SIGTERM shutdown after a large load "can take more than 2 minutes" (source: docs/status/2026-11-30-copy-bounded-memory.md). After a SIGKILL the server recovers through WAL replay at the next start.
1.4 Kubernetes manifests
deploy/kubernetes/ is a kustomize set: namespace, ConfigMap, ServiceAccount, StatefulSet, Service and headless Service, HorizontalPodAutoscaler with PodDisruptionBudget, and Ingress (source: deploy/kubernetes/kustomization.yaml).
The StatefulSet runs 3 replicas of synergytechllc/synergydb:latest with separate volume claims for data (100Gi), WAL (20Gi) and backups (200Gi), requests 1 CPU / 2Gi and limits 4 CPU / 8Gi, readiness on /readyz, liveness and startup on /health (source: deploy/kubernetes/statefulset.yaml). The ConfigMap enables PostgreSQL, MySQL, MongoDB, Bolt, HTTP and gRPC with mode = "Standalone" and no peers (source: deploy/kubernetes/configmap.yaml).
Points to fix before relying on it:
-
The pods are not a cluster. Each of the 3 (up to 10 with the HPA) pods is a separate standalone database with its own volumes, and the
synergydbService load-balances clients across all of them. Writes through the Service land on whichever pod a connection reaches. The HPA scales this set on CPU and memory (sources:deploy/kubernetes/configmap.yaml,statefulset.yaml,hpa.yaml). Run one replica with the HPA removed, or build a Raft config per pod as in section 2. -
kustomization.yamllists a Secret manifest that is not in this snapshot. The StatefulSet expects a Secret namedsynergydb-secretswith keyadmin-password. Create your own. - The image tag is
latest, which lagsmain(section 1.2). -
node_id = "${HOSTNAME}"in the ConfigMap is a literal string; TOML does not expand variables. It does not matter in standalone mode. - Metrics scraping: see section 5.1. The pod annotations point Prometheus at port 9091, which is not where
/metricsis served. -
Not verified: the StatefulSet sets
SYNERGYDB_QUERY_RATE_LIMIT_ENABLED,SYNERGYDB_DEFAULT_QPS,SYNERGYDB_BACKUP_ENABLEDandSYNERGYDB_BACKUP_DIR. None of these names is read insrc/config.rsorsrc/main.rs, and no status entry mentions them. Treat them as having no effect.
1.5 Helm chart
deploy/helm/synergydb/ (chart and app version 0.1.0) renders the same shape: a StatefulSet with replicaCount: 3, autoscaling on (3 to 10), a PodDisruptionBudget with minAvailable: 2, and a ConfigMap with mode = "Standalone" and peers = [] (sources: deploy/helm/synergydb/values.yaml, templates/configmap.yaml). The same "not a cluster" warning applies.
What the chart does correctly as of 2026-11-24 (source: docs/status/2026-11-24-config-env-tls-protected-mode.md):
- Sets
SYNERGYDB_SUPERUSER_PASSWORDfrom a Secret (auth.existingSecret, or a chart-created<fullname>-secretsfromauth.adminPassword, or a random password kept across upgrades). This only happens withauth.enabled: true; the default isfalse, in which case the entrypoint generates the password (section 1.2) (source:templates/statefulset.yaml,values.yaml). - Sets
SYNERGYDB_CLUSTER_NODE_IDto the pod name. - Writes a
[tls]block, with the certificate from a mountedkubernetes.io/tlsSecret whentls.enabled(source:templates/configmap.yaml). - Probes
/readyzfor readiness and/healthfor liveness and startup.
Not verified: "The Helm chart is not rendered by any test (no helm in CI)" (source: docs/status/2026-11-24-config-env-tls-protected-mode.md). values.yaml has backup.* and logging.format settings that no template in the chart uses. The default image.repository is synergydb, not the Docker Hub name.
1.6 Docker Swarm stack
deploy/swarm/synergydb-stack.yml runs 3 replicas, one per worker node, with bind-mounted data and WAL directories, an encrypted overlay network, and a metrics service on every node (source: deploy/swarm/synergydb-stack.yml).
Not verified, and from reading the files it will not work as a cluster:
- It sets
SYNERGYDB_NODE_ID. The override code only readsSYNERGYDB_<SECTION>_<KEY>for the sectionsserver,storage,vector,cluster,tls,secretsandaudit, so the correct name isSYNERGYDB_CLUSTER_NODE_ID(source:src/config.rs). The config'snode_id = "${SYNERGYDB_NODE_ID}"is a literal string. - The config lists peers as bare names. The code expects
node-id@host:port(source:src/config.rs,ClusterConfig.peers). There is nocluster_portand no cluster secret, which a non-loopback cluster requires (source:docs/status/2026-11-29-cluster-rpc-auth.md). - The admin password is mounted as a Docker secret file at
/run/secrets/admin_password. Nothing in the entrypoint orsrc/main.rsreads a password file, so the entrypoint will generate its own. - The
metricsservice runssynergydb-cli --metrics-export 0.0.0.0:9091.synergydb-clihas no such option (source:src/bin/cli.rs).
1.7 The 3-node suite cluster
deploy/suite-cluster/ holds the files used to run a real 3-node Raft cluster on three separate hosts (source: docs/status/2026-11-29-suite-cluster-deploy.md):
| File | Purpose |
|---|---|
node.toml.tmpl, render-node.sh
|
Renders one node's config: mode = "Replicated", node_id, cluster_port = 7301, the other two nodes as peers in node-id@address:7301 form, PostgreSQL on 5491 and HTTP on 8491, every other wire off, bind_address set to the node's private (WireGuard) address |
node.compose.yml |
Runs a node in Docker with host networking. The cluster secret and superuser password come from a root-only env file on the host |
run-n3.sh |
Runs a node without Docker as a systemd --user service, using the binary and loader extracted from the published image |
haproxy.cfg, suite-sdb.compose.override.yml
|
HAProxy in front of the three nodes, health-checking GET /cluster/writable so only the leader receives traffic; drops sessions on a node that stops being leader |
migrate-db.sh |
Moves one application database from an existing PostgreSQL onto the cluster with a dry-run mode and a rollback copy of the compose files |
(sources: the files named)
There is no separate bind address for the Raft port: bind_address covers the client wires and the cluster port together (source: docs/status/2026-11-29-suite-cluster-deploy.md).
Not verified: the suite-cluster entry says "Not run yet: the live cluster gates", and its own gates are "renders valid configs, checked by eye" and that the extracted binary prints its version (source: docs/status/2026-11-29-suite-cluster-deploy.md). Later entries describe problems seen on this cluster during bulk loads and the fixes for them (section 2.4), but none records a pass of the failover battery on it.
2. Cluster mode (preview)
Internals from the code: Raft, cluster RPC and routing, sharding and 2PC.
2.1 What is tested
A 3-node, single-primary Raft cluster (one Raft group, every node holds all data) (sources: README.md, "Cluster mode (preview)"; test-scripts/cluster/RAFT_READINESS.md).
| Test | Result | Source |
|---|---|---|
Raft battery, raft_net_test.py: election, role reporting, replication, failover, role reporting after failover, split brain, follower rejoin, snapshot catch-up |
8/8 |
docs/status/2026-11-29-cluster-leader-routing.md, docs/status/2026-11-30-distributed-multiwire.md
|
Leader kill -9 while PostgreSQL, MySQL, MongoDB, Redis, Cassandra, CouchDB and InfluxDB all write, multiwire_failover_test.py
|
5/5 checks in each of four runs. 17k to 23k acknowledged writes per run, new leader in 3.5 s, 0 acknowledged writes lost, all 7 wires identical on all 3 nodes |
docs/status/2026-11-30-distributed-multiwire.md; README.md
|
| Follower writes | Refused with the leader named, on all 7 wires above | same |
HAProxy in front, Drizzle ORM battery before and after a leader SIGKILL, haproxy_failover_test.py
|
Drizzle 21/21 both times; write outage 4.83 s; 189 acknowledged writes, 0 lost | docs/status/2026-11-29-cluster-leader-routing.md |
| Cluster secret: forged votes ignored; a node with a different secret cannot join | Passed on a 3-node loopback cluster | docs/status/2026-11-29-cluster-rpc-auth.md |
How a follower refuses a write (sources: docs/status/2026-11-30-distributed-multiwire.md, test-scripts/cluster/RAFT_READINESS.md):
- PostgreSQL: SQLSTATE 25006, naming the leader. The wire also reports
in_hot_standby,default_transaction_read_only,SHOW transaction_read_onlyandpg_is_in_recovery()as on/true on a replica, so libpqtarget_session_attrs=read-writepicks the leader (source:docs/status/2026-11-29-cluster-leader-routing.md). - Redis:
READONLY You can't write against a read only replica. Leader is node-N. - CouchDB:
503 {"error":"not_leader", ...}.
Leader discovery over HTTP, no authentication: GET /cluster/role (always 200) and GET /cluster/writable (200 on the leader or a standalone node, 503 on a replica), body {"role","writable","leader"} (source: docs/status/2026-11-29-cluster-leader-routing.md).
2.2 What is not tested
-
Other wires. Memcached, Kafka, S3, ClickHouse, Elasticsearch, DynamoDB, Bolt and the rest were not run through the failover harness (sources:
README.md;docs/status/2026-11-30-distributed-multiwire.md). The title of that status entry says "every wire replicates"; its body and the README limit the claim to the seven wires above. -
Sharded (multi-group) mode and cross-shard two-phase commit are not tested (source:
README.md). The two-phase-commit RPC listeners are not started today and refuse non-loopback addresses (sources:docs/status/2026-11-29-cluster-rpc-auth.md,docs/status/2026-11-29-auth-hardening.md). Treatmode = "Distributed"as untested. -
Follower reads have no staleness bound. There are no read leases; a follower serves from local storage and can be behind (sources:
README.md;test-scripts/cluster/RAFT_READINESS.md). A newly elected leader can also serve a read before its replica reload queue drains, milliseconds in testing (source:docs/status/2026-11-30-distributed-multiwire.md). - Redis
FT.*search indexes are not rebuilt on replicas from replicated writes (source:docs/status/2026-11-30-distributed-multiwire.md). - Raft snapshots are full in-memory keyspace copies, not streamed. Multi-GB state, snapshotting while serving and snapshotting during a leadership change are untested (source:
test-scripts/cluster/RAFT_READINESS.md). A later entry calls this "fine for a ~1 GB data set, a cost for larger ones" (source:docs/status/2026-11-29-cluster-leader-routing.md). - A true 2-versus-1 network partition with both sides alive was not run; "partition" in the battery means stopping a node (source:
test-scripts/cluster/RAFT_READINESS.md). - The failover harness runs on loopback, with a debug build (
target/debug/synergydb) and no cluster secret (source:test-scripts/cluster/multiwire_failover_test.py).
test-scripts/cluster/RAFT_READINESS.md is dated 2026-06-04 and reports 6/6. Parts of it are superseded: the battery is now 8/8, authenticated peers accept frames up to 512 MiB rather than 8 MiB, and /cluster/role now exists where it says there is no admin API (sources: docs/status/2026-11-29-raft-large-entry-frames.md, docs/status/2026-11-29-cluster-leader-routing.md).
2.3 Configuring a cluster
Per node, in [cluster] (source: src/config.rs; examples in deploy/suite-cluster/node.toml.tmpl and test-scripts/cluster/multiwire_failover_test.py):
[cluster]
mode = "Replicated"
node_id = "node-1"
cluster_port = 7301
peers = ["node-2@<address>:7301", "node-3@<address>:7301"]
replication_factor = 3
# secret: set through SYNERGYDB_CLUSTER_SECRET rather than in the file
-
secret(envSYNERGYDB_CLUSTER_SECRET) is required unless the cluster port is bound to loopback. At least 16 characters, the same on every node; generate one withopenssl rand -hex 32. All nodes must be upgraded together: a node with a secret and a node without cannot talk (source:docs/status/2026-11-29-cluster-rpc-auth.md). - The secret protects cluster traffic only. Client wires still need
[tls](source: same). - Timing can be changed with
SYNERGYDB_RAFT_ELECTION_TIMEOUT_MS(min,maxormin),SYNERGYDB_RAFT_HEARTBEAT_MS,SYNERGYDB_RAFT_MAX_APPEND_BYTES(default 1 MiB per AppendEntries) andSYNERGYDB_RAFT_COMMIT_TIMEOUT_MS(default 30 s). They are read at cluster start and printed in the "Raft timing" log line (sources:docs/status/2026-11-29-raft-append-byte-cap.md,docs/status/2026-11-30-raft-commit-timeout.md).
Not verified: the default election timeout and heartbeat are set outside src/config.rs and are not stated as defaults in any file here. One entry mentions "the 3 s election timeout" on the suite cluster; the June readiness document mentions a 300 ms heartbeat tick (sources: docs/status/2026-11-29-raft-append-byte-cap.md, test-scripts/cluster/RAFT_READINESS.md). Read the "Raft timing" log line on your build.
Commit timeout is ambiguous for the client. A write that times out waiting for commit can still commit later, and the client cannot tell (source: docs/status/2026-11-30-raft-commit-timeout.md).
2.4 What was fixed on a real 3-host cluster
These entries record failures seen when nodes were on separate hosts, with fixes now in main:
- Every write on a clustered leader panicked over the PostgreSQL wire (source:
docs/status/2026-11-29-cluster-leader-routing.md). - A node behind a slow link (about 200 ms) timed out during a bulk load and deposed a healthy leader, causing about 40 s of churn. Raft PreVote now prevents this (source:
docs/status/2026-11-29-raft-pre-vote.md). - A single Raft entry over 8 MiB (one table's
COPYin apg_dumprestore) was rejected by followers. Authenticated peers now accept frames up to 512 MiB. A single statement larger than 512 MiB would still stall replication (source:docs/status/2026-11-29-raft-large-entry-frames.md). - Writes failed with "commit timeout" after 5 s on large loads. The default is now 30 s (source:
docs/status/2026-11-30-raft-commit-timeout.md).
2.5 Running the failover tests yourself
From the repository root, on Linux or macOS (the harness uses SIGKILL) (sources: docs/status/2026-11-30-distributed-multiwire.md; test-scripts/cluster/multiwire_failover_test.py):
cargo build # the harness runs target/debug/synergydb
pip install psycopg2-binary pymysql pymongo redis cassandra-driver
python3 test-scripts/cluster/multiwire_failover_test.py --json out.json
python3 test-scripts/cluster/raft_net_test.py
Options for the multi-wire harness: --load-secs (default 20), --kill-after (default 8), --json <path>, --keep to leave the nodes running. It starts three nodes on loopback with their own port ranges, wipes and uses /tmp/synergydb_mwfail, and checks: follower writes refused, replicated reads on both followers, failover under load with every acknowledged record logged, then that every acknowledged record is on all three nodes and each wire's record set is identical (source: test-scripts/cluster/multiwire_failover_test.py).
The HAProxy test (python test-scripts/cluster/haproxy_failover_test.py [--json out.json]) also needs haproxy on the PATH, psycopg2, Node and npm install in test-scripts/drizzle (source: test-scripts/cluster/haproxy_failover_test.py).
3. Durability settings
Internals from the code: WAL, recovery, sequences and gaps after a crash.
3.1 wal_sync_mode
Set in [storage] (source: src/config.rs):
| Value | What the WAL does | Trade |
|---|---|---|
every_write (default) |
fsyncs the WAL before a write is acknowledged; concurrent commits share an fsync through a group-commit round (source: docs/status/2026-11-24-redis-single-write-latency.md) |
The durable setting. The README's PostgreSQL benchmarks ran with it (source: README.md, "Performance against PostgreSQL 16") |
periodic |
syncs on an interval |
Not verified: the interval and the size of the loss window are set outside src/config.rs and are not documented in any file here |
no_sync |
hands buffered WAL records to the OS without fsync | Faster single-client writes: Redis SET went from 7.4k/s to 14.9k/s at one client. A 60,000-write kill -9 test kept every write (source: docs/status/2026-11-24-redis-single-write-latency.md) |
Not verified: the no_sync crash test killed the process, not the host. A kill -9 leaves the OS page cache intact, so it does not show that no_sync survives a power loss or kernel crash. Use every_write for data you cannot lose.
A misspelled value is not an error. Any value other than periodic or no_sync (case-insensitive) is treated as every_write, without a warning (source: src/config.rs, to_storage_config).
The deploy templates for hosted tenants say "fsync every write. Do not relax for a hosted tenant" (source: deploy/tenants/synergydb.tenant.toml.tmpl).
3.2 Memcached: write-behind by default
The Memcached wire does not follow wal_sync_mode in the same way (source: README.md, Known gaps, "Memcached"):
-
Default (write-behind). Writes are persisted by a background writer. A
kill -9can lose recent writes, bounded bySYNERGYDB_MEMCACHED_MAX_LAG(20000; the README gives no unit). The README compares this to Redisappendfsync everysec. In thea3232c9proof run the restart check read back 9 of 23 items in this mode; other runs passed 23/23. -
SYNERGYDB_MEMCACHED_DURABILITY=sync. Lost 0 acknowledged writes over 3kill -9rounds. Throughput is 43% to 67% of stock memcached in this mode, against 90% to 106% in the default mode (source:README.md, "Other wires").
If anything you store through Memcached must survive a crash, set SYNERGYDB_MEMCACHED_DURABILITY=sync.
3.3 Other crash-durability caveats
Open at 2026-11-30 (source: README.md, Known gaps):
- Redis: a Lua script or
MULTI/EXECrunning atkill -9can come back half-applied. - Neo4j / Cypher: an
execute_writetransaction running atkill -9can come back half-applied, and one acknowledged transaction was lost in one run. - The README says MySQL
AUTO_INCREMENTcan jump by up to 32 afterkill -9. The code does not support this: on the MySQL wire each value is written durably as it is issued (a multi-rowINSERTreserves exactly its row count in one write), so the counter resumes at last + 1 once the row's commit is synced. The 32-value blocks apply to PostgreSQLSERIAL, identity andnextval(source:src/query/engine.rs,next_autoincrement;src/storage/mod.rs,advance_i64_counter_exact_by,advance_i64_counter_with). Tested byexact_counter_resumes_at_last_value_after_restart_without_shutdown. Detail: Sequences. - MongoDB change streams are an in-memory log and are not resumable across a restart.
4. Backup, restore and point-in-time recovery
Restore from backup as a live operation is not validated end to end (source:
README.md, "Engine features"). A running server cannot swap its files:POST /api/v1/backups/:id/restoreanswers 501 Not Implemented with the CLI command to run instead (source:src/protocol/http/routes.rs,restore_backup). Every restore below is done with the server stopped.
There are two separate mechanisms in the repository: the engine's own backup commands, and VM-level EBS snapshots plus WAL shipping.
4.1 Engine backups (synergydb backup / restore / backup-verify)
What exists (source: docs/status/2026-11-24-backup-restore-drill.md, unless noted):
-
synergydb backup --to <DIR>: full backup of a stopped server (source:src/main.rs). Incremental backups copy only the WAL segments after their parent backup. -
synergydb restore --from <DIR>: restores into an empty data directory. Refuses existing data without--force, takes the data-directory lock and replays the WAL once to prove the result opens. Point-in-time restore from a backup root with--to-backup IDor--to-sequence N. -
synergydb backup-verify <DIR>(and--list): checksMANIFEST.log, each SSTable and each WAL segment against recorded checksums. -
Online backup over HTTP, taken while the server runs.
"backup_type":"incremental"chains onto the newest backup in the destination's root. An incremental refuses, instead of dropping writes, when the WAL since its parent was already reclaimed.
What the 2026-11-24 drill proved, on data written through PostgreSQL, MySQL, Redis, MongoDB, S3, Cassandra and Kafka and read back through each wire's official client:
- Offline backup, verify and restore: byte-identical on all 7 wires.
- Online backup during continuous writes: under 0.1 s, writer stall 78 ms (194 ms with the test suite running alongside), gap-free.
- Point-in-time restore over a full backup plus 2 incrementals, to the middle and to the end: exact.
-
kill -9mid-backup: the torn backup is refused by verify and restore.kill -9mid-restore: a retry refuses to mix without--force, and the retried restore is identical. - Gate: 46 pass, 0 fail, 1 known gap (
pg_dumpfrom SynergyDB).
The HTTP routes, behind the same authentication as the other /api/v1 management routes, are GET and POST /api/v1/backups, GET and DELETE /api/v1/backups/:id, and POST /api/v1/backups/:id/restore (always 501). POST takes database, backup_type (full or incremental), destination (a local path; s3:// and gs:// are not handled) and include_wal, and runs the backup inside the request. The list behind GET and DELETE is held in memory and lost on restart, and DELETE does not remove files. Backup schedules under /api/v1/backup-schedules are stored but never run (source: src/protocol/http/routes.rs, build_router, create_backup, delete_backup, restore_backup; src/protocol/http/models.rs, BackupRequest). Detail: Backup and restore internals.
Not verified: no test calls the HTTP backup endpoints. The operator runbook (docs/operations/backup-restore-runbook.md) and the drill (test-scripts/backup-drill/) are referenced by the status entry but are not in this snapshot.
Backups hold WAL on disk. After the first backup, WAL since the newest backup is kept until the next backup. With no further backups the WAL directory grows (source: docs/status/2026-11-24-backup-restore-drill.md). WAL reclamation only prunes fully flushed segments "that no backup still needs" (source: src/config.rs, wal_retention_bytes). If you take backups, keep taking them.
Encrypted data. Backups copy the sealed files plus the key check. Encrypted data is useless without the key, so back keys up separately (sources: docs/status/2026-11-30-encryption-at-rest.md; deploy/pitr/RESTORE.md).
4.2 Logical dumps
- Into SynergyDB: real PostgreSQL 16
pg_dumpoutput loaded throughpsql, and real MySQL 8mysqldumpoutput, restore identically (source:docs/status/2026-11-24-backup-restore-drill.md). - Out of SynergyDB:
mysqldump,mongodump/mongorestoreandredis-cli --rdbwork (source: same). -
pg_dump(plain,-Fc,-Fd -j 2) andpg_dumpallfrom PostgreSQL 16 run against SynergyDB, and the output restored into a fresh PostgreSQL 16 with identical rows (source:docs/status/2026-11-24-pg-dump-from-synergydb.md). The drill entry from the same day still lists it as a gap; the pg_dump entry is the later fix. - What a
pg_dumpof SynergyDB does not include yet: functions, triggers, domain, composite and range types, comments, grants, role passwords (pg_dumpallcreates roles without them), and partial, expression or DESC indexes, which are written as plain column indexes.pg_dumpallalso includes the internal tables other wires keep in thepostgresdatabase (source: same). A logical dump is therefore not a full backup; use the engine backup for that.
4.3 Point-in-time recovery on a VM: EBS snapshot plus WAL shipping
Designed for the systemd per-tenant layout (sources: deploy/README.md, deploy/pitr/RESTORE.md):
-
Base:
deploy/bin/synergydb-ebs-snapshot.shtakes a crash-consistent snapshot of all non-boot volumes of the instance, tags it, and prunes snapshots older than the retention window (14 days in the unit).synergydb-ebs-snapshot.timerruns it nightly at 03:30 with up to 20 minutes of jitter. -
Roll-forward:
deploy/bin/synergydb-wal-ship.sh <tenant>copies the tenant's WAL directory to an S3 prefix withaws s3 syncand writes aLAST_WAL_SHIPtimestamp.synergydb-wal-ship@.timerruns it every minute. -
Retention: the tenant env sets
SYNERGYDB_WAL_RETENTION_BYTES=2147483648(2 GiB) so reclamation does not delete WAL before it ships. Size it to peak write rate times ship interval times a safety factor (source:deploy/tenants/tenant.env.example). -
Restore (
deploy/pitr/RESTORE.md): stop the tenant (or restore onto a fresh node), create volumes from the chosen snapshot, mount them, sync WAL from S3 into the tenant's WAL directory, restore the tenant's config, env and key, start the service, run the health probe, verify application data, then restart shipping. The server replays WAL forward on startup through its crash-recovery path. -
Stated limits: RPO is about the ship interval (up to about 1 minute of writes on total node loss). RTO is volume creation plus attach plus replay. Both must be measured (source:
deploy/pitr/RESTORE.md).
Not verified: no file in this snapshot records a run of this procedure. RESTORE.md itself says to test it end to end before promising any RPO or RTO, and to drill it quarterly. Also unconfirmed from the files:
- that the ship script's file patterns (
*.wal,*.log,*.seg) match the WAL segment names the engine writes; - that WAL segments fetched from S3 for a window after the snapshot are replayed correctly on top of it. The engine skips segments that an SSTable already covers (source:
docs/status/2026-11-28-restart-memory-redis-load.md), but this exact path is not shown tested; - partial roll-forward to a time
T: the runbook selects whole segments, so the stopping point is a segment boundary, not an exact time.
The engine's own restore --to-sequence N (section 4.1) is the point-in-time path that has a recorded drill.
5. Monitoring and diagnostics
Internals from the code: observability internals (every metric, where it is recorded, the slow log, the shipped monitoring files) and server runtime.
5.1 Metrics and health endpoints
All on the HTTP port (8080 by default) (sources: README.md, "Engine features"; docs/openapi.yaml):
| Endpoint | Access | Purpose |
|---|---|---|
/livez |
public | Liveness; 200 if alive |
/readyz |
public | Readiness; 200 when ready, 503 when not. Used by the Docker health check and the Kubernetes readiness probes |
/health |
public | Health check used by the Kubernetes liveness probes and some compose files |
/cluster/role, /cluster/writable
|
public | Raft role and leader routing (section 2.1) |
/metrics |
loopback only, unless a token is set | Prometheus text format |
/api/v1/status |
loopback only, unless a token is set | Uptime, version, resource use |
(source for access rules: docs/status/2026-11-29-open-wires-fail-closed.md)
When SYNERGYDB_METRICS_TOKEN (or [server] metrics_token) is set, /metrics and /api/v1/status require that bearer token from every caller, loopback included. A non-empty environment value wins over the file (sources: docs/status/2026-11-29-open-wires-fail-closed.md; src/config.rs).
The shipped scrape configs will not reach /metrics. The Kubernetes and Helm pod annotations, the Helm ServiceMonitor's metrics port and deploy/monitoring/prometheus.yml all target port 9091 (sources: deploy/kubernetes/statefulset.yaml, deploy/helm/synergydb/values.yaml, deploy/monitoring/prometheus.yml). Port 9091 is the Prometheus remote-storage wire, which none of those configs enables, and which has no /metrics route even when it is on (source: src/config.rs, prometheus_port; src/protocol/prometheus/mod.rs, route_request). /metrics is on the HTTP port, and a scraper on another pod or host also needs the bearer token. Point scrapers at the HTTP port and set the token.
Most alert and dashboard series are never emitted. The registry exports 23 synergydb_* metrics and registers no process collector, so process_resident_memory_bytes and process_cpu_seconds_total do not exist. synergydb_connections_max, synergydb_storage_disk_usage_bytes, synergydb_storage_disk_total_bytes, synergydb_cluster_replication_lag_seconds, synergydb_cluster_members_healthy and synergydb_cluster_members_total are not defined anywhere (the code has synergydb_replication_lag_seconds, which is never set). The dashboard's per-type panel filters synergydb_queries_total on a type label; its labels are language and status. Query metrics are recorded only on the PostgreSQL wire (source: src/observability/metrics.rs, init_metrics, QueryTimer; deploy/monitoring/alerts.yml; deploy/monitoring/grafana-dashboard.json). Of the alerts below, only the down alert and the p99 latency alert can fire. Detail: Observability internals.
The alert rules provided (source: deploy/monitoring/alerts.yml): down for 1 minute, RSS over 7 GiB for 5 minutes, CPU over 80% for 10 minutes, disk over 80% and over 95%, connections over 90% of max, p99 query latency over 1 s, replication lag over 10 s, a cluster member down for 2 minutes.
For per-tenant VMs, deploy/bin/tenant-health-probe.sh and deploy/cloudwatch/put-tenant-alarms.sh cover unit state, a SELECT 1 over the PostgreSQL wire, disk and memory (source: deploy/README.md).
5.2 Slow-query log
Turned on by SYNERGYDB_SLOW_QUERY_US, a threshold in microseconds (sources: docs/status/2026-11-29-slow-log-context-prometheus-probe.md; the encryption entry calls the slow-query log "opt-in", docs/status/2026-11-30-encryption-at-rest.md).
Line format (source: docs/status/2026-11-29-slow-log-running-and-join-on-false.md):
<utc time>\t<user>@<database> <client addr>\t<elapsed_us>\t<ok|err|running ...>\t<sql>
- Internal statements show
-for user and client (source:docs/status/2026-11-29-slow-log-context-prometheus-probe.md). - A watcher thread writes a
runningline for any statement still executing past the threshold and repeats it every minute, so a statement cut off by an OOM kill still leaves a trace (source:docs/status/2026-11-29-slow-log-running-and-join-on-false.md). - With heap counting on (
SYNERGYDB_MEMORY_LOG_SECS), lines carry per-statement memory:running (heap live N MB, stmt held X MB, peak Y MB, alloc Z MB)andok (stmt peak Y MB, alloc Z MB). The count is exact for PostgreSQL connections, which run each statement on their own thread (source:docs/status/2026-11-29-statement-memory-in-slow-log.md). - The SQL is cut at 4,000 bytes (source:
docs/status/2026-11-27-startup-memory-bound.md). - The slow log is not encrypted at rest (source:
docs/status/2026-11-30-encryption-at-rest.md). It records SQL text, which may contain data.
The log is a file: SYNERGYDB_SLOW_QUERY_LOG, default /tmp/synergydb-slow.log, opened for append. There is no rotation, and if the file cannot be opened nothing is logged and no error is raised (source: src/query/slow_log.rs, config). Detail: Observability internals. Not verified: no test covers the threshold, the watcher or the file format.
5.3 Memory logging
-
Startup memory lines are logged after storage open, after any wire whose construction grew RSS by 256 MB or more, once all listeners are up, and every 10 s for the first 3 minutes (source:
docs/status/2026-11-27-startup-memory-bound.md). A phase that adds 1 GB or more logs atwarn, so it shows with the default log level (source:docs/status/2026-11-28-restart-memory-redis-load.md). -
Periodic memory log:
SYNERGYDB_MEMORY_LOG_SECS=<n>logs a memory breakdown every n seconds (source:src/main.rs). It adds per-thread counters (async workers, PostgreSQL and MongoDB connection threads, compaction, flush, vector indexer), the largest single allocation of 64 MB or more, and the three running statements holding the most memory with their SQL. Counting is off unless this is set (source:docs/status/2026-11-29-statement-memory-in-slow-log.md).
5.4 Memory behaviour to plan for
-
Block cache: one-eighth of RAM, from 256 MB up to 2 GB; set it with
SYNERGYDB_BLOCK_CACHE_MB(sources:docs/status/2026-11-28-restart-memory-redis-load.md,docs/status/2026-11-30-memcached-startup-memory.md). -
Full scans are bounded since 2026-11-27: a large range is merged in windows of
SYNERGYDB_SCAN_WINDOW_MB(default 16 MB of on-disk blocks), and column projections stop atSYNERGYDB_COLUMN_CACHE_MB(default 512). Acount(*)over 60M rows that was OOM-killed at +12 GB ran at +1.9 GB (source:docs/status/2026-11-27-startup-memory-bound.md). -
Restart memory comes from wires that rebuild in-memory state, not from the WAL. WAL replay streams one segment at a time and skips segments an SSTable covers. In one test, 330k Redis keys (about 1.35 GB of values) added about 3.3 GB of RSS at startup (source:
docs/status/2026-11-28-restart-memory-redis-load.md). Memcached's startup load no longer fills the block cache (source:docs/status/2026-11-30-memcached-startup-memory.md). -
Per-connection memory: about 6 to 7 MB per open PostgreSQL connection (thread per connection with its own runtime), against about 2 MB per backend for PostgreSQL 16 in the same runs. About 3.6 GB at 500 clients and 5.5 GB at 1,000 on a small data set (source:
docs/status/2026-11-30-open-files-and-accept-backoff.md). -
Compaction memory:
deploy/README.mdcalls compaction memory-hungry and says to size RAM for peak compaction. That predates the streaming merge: compaction now reads each input one block at a time, so its memory is about one decoded block per input file plus the merge heap. A code comment records that the earlier version peaked at 6.2 GB compacting 38 L0 files (source:src/storage/compaction.rs,CompactionCursor,execute_compaction_throttled). Still set a memory cap per process. Detail: Compaction. -
Large single transactions other than
COPY(a giantINSERT ... SELECT, a long explicit transaction) hold their write-set in memory untilCOMMIT(source:docs/status/2026-11-30-copy-bounded-memory.md). -
On a large shared test host, status entries recorded repeated cgroup OOM kills at about 50 GB during long soak runs with many applications attached, traced in part to catalog queries running for minutes and piling up. One entry notes that a statement whose client has gone away keeps running to the end (sources:
docs/status/2026-11-29-slow-log-running-and-join-on-false.md,docs/status/2026-11-29-statement-memory-in-slow-log.md). The cause of a transient 20 GB or more was still open in those entries.
5.5 Soak testing
docs/status/2026-11-27-multi-day-soak.md adds a soak harness (demo/soak/, not in this snapshot) designed to run for days against one server with every wire busy: bank transfers that must reconcile, numbered records on 10 wires checked against a ledger, lost-update counters, cross-wire vector search, the Meridian all-wire app, and a kill -9 every 6 hours by default with recovery timed per wire.
The entry records two local runs, not a multi-day run: about 25 minutes with 5 kills (771,865 operations, 307k reads verified, recovery average 19.4 s and maximum 70.2 s) and about 7 minutes with 1 kill. They found: a PostgreSQL torn read (a SELECT sum(balance) sometimes saw half of a committed two-row transfer; 1,642 of 621,753 sums off by 1 in a standalone reproducer), Elasticsearch documents acknowledged before a kill missing from _count and search, an 18.4 s Redis stall, and same-named tables on different wires colliding (source: docs/status/2026-11-27-multi-day-soak.md). The torn read is fixed in the code: every read-only statement outside a REPEATABLE READ or SERIALIZABLE transaction now reads from one statement snapshot, so a SUM sees whole transactions (source: src/transaction/mvcc.rs, TransactionManager::statement_snapshot; src/query/engine.rs; docs/status/2026-11-24-statement-snapshot.md). Tested by sum_over_concurrent_transfers_sees_whole_transactions in src/query/engine.rs; the status entry reports 0 bad sums of 261k over the PostgreSQL wire. One gap remains from that entry: autocommit multi-row UPDATE and DELETE write row by row, so a concurrent snapshot can still see part of one.
Not verified: no multi-day soak result is in this snapshot, and no soak rerun after the snapshot fix is recorded.
6. Users and access, day to day
The full model (per-wire authentication, privileges, row-level security, TLS, audit) is in 5. Security. The operational basics:
-
Create users with
CREATE USER ... PASSWORDover a SQL wire. The SQL, document, graph and analytical wires authenticate against the catalog and refuse unknown or empty credentials (source:README.md, "Security defaults"). -
Superuser bootstrap happens on first start. The name is
SYNERGYDB_SUPERUSER(defaultpostgres) and the passwordSYNERGYDB_SUPERUSER_PASSWORD. Without a password, a first start in a terminal prompts for one; with no terminal (a service or container), or withSYNERGYDB_NON_INTERACTIVEset, one is generated and written to<data_dir>/initial_superuser_password(source:src/main.rs, help text). The Docker entrypoint generates its own instead and stores it in<data dir>/.superuser_password(section 1.2).SYNERGYDB_ADMIN_PASSWORDis accepted as an alias (sources:src/main.rs,docker/entrypoint.sh). -
Reset a password with the server stopped:
synergydb passwd -U <user>, or--password-stdinto pipe it in. It opens the data directory directly (which is what lets it reset a forgotten password), is refused while a server holds the directory, refuses a directory with noMANIFESTor one that was never initialised, and sets every stored form of the credential so the new password works over PostgreSQL, MySQL and ClickHouse. Ifinitial_superuser_passwordheld the role's old password, it deletes that file. Pass the same-cthe server uses so it finds the same data directory (source:src/main.rs,run_passwd). -
Failed logins are slowed after 5 consecutive failures for one user name (200 ms doubling to 5 s). Nothing is locked out, and a correct password clears the count (source:
docs/status/2026-11-29-auth-hardening.md).
Not verified: whether the server re-applies SYNERGYDB_SUPERUSER_PASSWORD on every start or only at first bootstrap is not stated in the files. This matters in two places: the Docker entrypoint exports the saved .superuser_password on every boot, and the tenant env file comment says to rotate "via ALTER ROLE and update this file" (source: deploy/tenants/tenant.env.example). After changing the superuser password with passwd or ALTER ROLE, update the environment or file the deployment reads, then restart and test the login.
STATUS.md says the default config "bootstraps postgres / postgres superuser in non-interactive mode". That line predates the current code, which generates a password in non-interactive mode unless --dev is used (source: src/main.rs).
7. Known operational limits
From the README's Known gaps (2026-11-30) and the status entries named. Wire-by-wire feature gaps are in the README and the wire pages.
| Limit | Detail | Source |
|---|---|---|
| S3 startup memory | Fixed in the code; the README still lists it as an open bug (a 426 MB data directory restarted at about +9.2 GB RSS). Startup now streams the _s3_* tables and keeps only body references for objects, versions and parts; bodies load on read. Tested by test_restart_reloads_bodies_without_holding_the_table and test_offloaded_bodies_in_versioned_buckets. A HEAD still loads the whole body. See S3 protocol
|
README.md; src/protocol/s3/mod.rs, with_synergy_storage, body_loader, read_object; src/protocol/s3/storage.rs, BodyRef
|
Large COPY ... FROM OOM |
The README lists as an open bug and says to split large loads into batches. A later entry commits COPY FROM STDIN every 250,000 rows (SYNERGYDB_COPY_COMMIT_ROWS, 0 = one transaction); pgbench -i -s 700 then peaked at 3.4 GB RSS. Side effects: rows from committed chunks are visible to other sessions while the COPY runs, and a failed load into a non-empty table keeps the committed chunks |
README.md; docs/status/2026-11-30-copy-bounded-memory.md
|
| CouchDB in memory | Each CouchDB database is held in memory, and view indexes are rebuilt after a restart | README.md |
| Prometheus head window | Only the last 3 hours of samples stay in memory (SYNERGYDB_PROMETHEUS_HEAD_HOURS; 0 keeps everything in memory). Older samples are read from disk, up to a few hundred milliseconds on 10k series over 24 h. Measured RSS: 1.72 GB after loading 57.6M samples, against 4.16 GB with everything in memory |
README.md; docs/status/2026-11-30-prometheus-head-window.md
|
| Redis expiry on access | Expired keys are removed when accessed; there is no background expiry sweep, so expired keys that are never read keep using memory and disk | README.md |
| Redis keyspace in memory | The Redis wire rebuilds its keyspace in memory at startup | docs/status/2026-11-28-restart-memory-redis-load.md |
| Cassandra TTL | Expired TTL rows are not purged from disk | README.md |
| WAL growth | Default WAL retention target is 1 GB. Holding a backup chain keeps WAL until the next backup |
src/config.rs; docs/status/2026-11-24-backup-restore-drill.md
|
| Encrypted WAL size | About 55% larger with encryption on for small rows, until segments are retired | docs/status/2026-11-30-encryption-at-rest.md |
| No connection limit | There is no server-wide connection limit setting; cap connections at the load balancer or with container limits | docker/synergydb.prod.toml |
| No in-engine multi-tenancy | One process per tenant | deploy/README.md |
| Config reload |
src/config.rs describes reload on SIGHUP and has a ConfigManager, but src/main.rs never creates one. Not verified that SIGHUP reloads anything; restart to apply config changes |
src/config.rs; src/main.rs
|
| Unknown config keys | Reported at error level at startup and then ignored, not rejected. Read the startup log after every config change |
src/config.rs; docs/status/2026-11-29-auth-hardening.md
|
For the S3 and COPY rows the README says the bug is open, but the code at 8a689c5c has the fixes: see the S3 row's sources, and for COPY the chunked commit every 250,000 rows (COPY_COMMIT_ROWS_DEFAULT, copy_commit_rows in src/protocol/postgres/copy.rs). Not verified: the 3.4 GB pgbench -i -s 700 peak comes from the status entry; no proof run after these changes is recorded.