4a. Configuration reference
Every config section and key defined in src/config.rs, with its type and default exactly as the code sets them, and every SYNERGYDB_* environment variable found in src/config.rs, src/main.rs, docker/entrypoint.sh, Dockerfile, .env.example and README.md. Written from main @ 8a689c5c (2026-11-30). This is SynergyDB V1.0.
How to deploy and operate with these settings is in 4. Operations. Security-related keys ([tls], [audit], [secrets], cluster secret) are explained further in 5. Security.
Contents
- How configuration is loaded
- Two kinds of default
[server][storage][vector][cluster][tls][secrets][audit]- Environment variables
- Shipped config files
1. How configuration is loaded
In order (source: src/main.rs, load_config and async_main):
-
File. The path given with
-c, elseSYNERGYDB_CONFIG, elsesynergydb.tomlin the working directory. If neither-cnorSYNERGYDB_CONFIGis given andsynergydb.tomldoes not exist, the built-in defaults are used (the server prints "Using default configuration"). A path given with-corSYNERGYDB_CONFIGthat cannot be loaded stops the server. -
Environment overrides.
SYNERGYDB_<SECTION>_<KEY>for every key ofserver,storage,vector,cluster,tls,secretsandaudit(section 10.1). - Validation. A contradictory config stops the server instead of starting in a weaker mode (section 1.2).
-
Command-line bind flags, then
SYNERGYDB_BIND_ADDRESS, thenSYNERGYDB_KAFKA_ADVERTISED_HOST(section 10.2).
synergydb --generate-config writes synergydb.toml with every built-in default (source: src/main.rs; README.md). synergydb passwd loads the config the same way, so it finds the same data directory (source: src/main.rs).
1.1 Unknown keys
A key in the file that the config does not have is logged at error level ("unknown key … is IGNORED") and printed to stderr, then ignored. The server still starts (source: src/config.rs, Config::load). The 2026-11-29 entry notes that rejecting unknown keys "should follow once shipped configs are clean" (source: docs/status/2026-11-29-auth-hardening.md). Always read the startup log after editing a config.
1.2 Validation at startup
The server refuses to start when (source: src/config.rs, Config::validate):
-
server.postgres_portis 0; -
server.bind_address,storage.data_dir,storage.wal_dirorcluster.node_idis empty; -
cluster.replication_factoris 0; -
cluster.secretis set and shorter than the minimum length (16 characters perdocs/status/2026-11-29-cluster-rpc-auth.md; the constant is defined outside this snapshot); -
tls.enabledis true with nocert_path+key_pathandauto_generate_dev_certoff; -
tls.enabledandtls.require_client_certare true with noca_cert_path; -
secrets.backendisvaultwith novault_address, or is any value other than"",environment,vault,kubernetes,aws,azureorgcp.
Startup also refuses a non-loopback bind with test auth switches or a placeholder superuser password; see section 10.2.
1.3 Runtime reload
Not verified: the header of src/config.rs lists "Runtime configuration reload via SIGHUP", and the file defines a ConfigManager with a reload() method. src/main.rs never creates a ConfigManager or installs a SIGHUP handler. Assume a restart is needed to apply any config change.
2. Two kinds of default
Read the "Default" columns below with this in mind (source: src/config.rs):
-
With no config file, every key takes the value in the struct's
Defaultimplementation. That is what the "Default" column shows. -
In a config file, the
[server],[storage],[vector]and[cluster]sections must be present, and some keys inside them have no serde default, so the file must set them. Those keys are marked required in a file. Optional keys (Option<...>) left out of a file are unset (None), which for a wire port means the wire is off. Keys with a serde default take that default.
The required-in-a-file rule follows from the struct definitions in src/config.rs (no #[serde(default)] on these sections or keys). Not verified by running a parse, but every shipped config file sets these keys, and the one template that does not (deploy/tenants/synergydb.tenant.toml.tmpl, which omits two [vector] keys) is flagged in 4. Operations.
[tls], [secrets] and [audit] may be left out of a file entirely; they then take their Default values (source: src/config.rs, Config).
3. [server]
Section required in a file. Source for every row: src/config.rs, ServerConfig and impl Default for ServerConfig, unless noted.
3.1 Wire ports
All Option<u16>. In a config file, a wire whose port key is missing is off. With no config file, every wire listed with a port below starts on it (source: README.md, "Run it"; docker/synergydb.toml comment).
| Key | Default (no file) | Wire |
|---|---|---|
postgres_port |
5432 |
PostgreSQL. Validation refuses 0 |
mysql_port |
3306 |
MySQL |
mongodb_port |
27017 |
MongoDB |
bolt_port |
7687 |
Neo4j Bolt |
http_port |
8080 |
HTTP: REST, GraphQL, health, /metrics, /cluster/*
|
grpc_port |
9090 |
gRPC |
redis_port |
6379 |
Redis |
cassandra_port |
9042 |
Cassandra CQL |
elasticsearch_port |
9200 |
Elasticsearch HTTP API |
couchdb_port |
5984 |
CouchDB HTTP API |
oracle_port |
1521 |
Oracle TNS |
mssql_port |
1433 |
SQL Server TDS |
sqlite_port |
unset (off) | SQLite (libSQL Hrana over HTTP). Off by default even with no config file. The code comment says it is fail-closed unless SYNERGYDB_DEV_INSECURE_AUTH is set; a later status entry adds token auth (source: README.md scorecard) |
dynamodb_port |
8000 |
DynamoDB HTTP API |
clickhouse_port |
9000 |
ClickHouse native |
clickhouse_http_port |
8124 |
ClickHouse HTTP interface (real ClickHouse uses 8123) |
snowflake_port |
8443 |
Snowflake |
influxdb_port |
8086 |
InfluxDB |
kafka_port |
9092 |
Kafka broker |
schema_registry_port |
8081 |
Confluent Schema Registry REST |
memcached_port |
11211 |
Memcached |
s3_port |
9100 |
S3-compatible API |
prometheus_port |
9091 |
Prometheus remote storage (remote write/read and PromQL). Not where /metrics is served |
gremlin_port |
8182 |
Gremlin / TinkerPop WebSocket |
arrow_flight_port |
8815 |
Arrow Flight SQL |
Not verified: the README's sentence "with no config file at all, every wire starts on its default port" does not hold for SQLite, whose default is unset in the code and "off" in the README's own scorecard.
3.2 Other [server] keys
| Key | Type | Default | What it does |
|---|---|---|---|
bind_address |
String |
"127.0.0.1" |
Address every listener binds to, including the Raft cluster port (source: docs/status/2026-11-29-suite-cluster-deploy.md). Required in a file. Must not be empty. Overridden by --bind, --localhost, --bind-all and then by SYNERGYDB_BIND_ADDRESS (source: src/main.rs) |
metrics_token |
Option<String> |
unset | Bearer token for /metrics and /api/v1/status. Unset: those endpoints answer loopback callers only. Set: every caller needs the token (source: docs/status/2026-11-29-open-wires-fail-closed.md). A non-empty SYNERGYDB_METRICS_TOKEN wins over this value; an empty one is ignored |
protected_mode |
Option<bool> |
unset, which means on | Redis-style protected mode. Applies when SYNERGYDB_DEV_INSECURE_AUTH lets clients in without a password: Redis and Memcached then refuse non-loopback clients. Also part of the startup check in section 10.2. Turn off with false or SYNERGYDB_SERVER_PROTECTED_MODE=no (sources: src/config.rs; src/main.rs) |
kafka_require_sasl |
Option<bool> |
unset, which means SASL required | Require SASL/PLAIN on the Kafka wire, checked against the catalog. Unset fails closed unless SYNERGYDB_DEV_INSECURE_AUTH is on. Set false only for loopback development |
kafka_advertised_host |
Option<String> |
unset | Host or host:port the Kafka broker advertises in Metadata and FindCoordinator responses. Clients reconnect to it, so it must be reachable from them. Unset: the broker advertises the local address each connection arrived on. SYNERGYDB_KAFKA_ADVERTISED_HOST replaces it; an empty value clears it (source: src/main.rs) |
4. [storage]
Section required in a file. Source: src/config.rs, StorageConfigFile, its Default and to_storage_config.
| Key | Type | Default | What it does |
|---|---|---|---|
data_dir |
String |
"./data" |
Data directory. Required in a file. Must not be empty. Short env alias SYNERGYDB_DATA_DIR
|
wal_dir |
String |
"./wal" |
Write-ahead log directory. Required in a file. Must not be empty. Short env alias SYNERGYDB_WAL_DIR
|
memtable_size |
String (size) |
"64MB" |
Memtable size before flush. A value that does not parse falls back to 64 MB without a warning |
block_size |
usize |
4096 |
SSTable block size in bytes. Required in a file |
compression |
String |
"lz4" |
none, lz4 or zstd (case-insensitive). Any other value is treated as lz4 without a warning. Required in a file
|
wal_sync_mode |
String |
"every_write" |
every_write, periodic or no_sync (case-insensitive). Any other value is treated as every_write without a warning. Required in a file. Trade-offs: 4. Operations, section 3
|
encryption_enabled |
bool |
false |
Encrypt data at rest (AES-256-GCM). With it on, every data-bearing file is sealed; enabled with no key is a startup error (source: docs/status/2026-11-30-encryption-at-rest.md) |
encryption_key_file |
Option<String> |
unset | File holding the 64-hex-character at-rest key. SYNERGYDB_ENCRYPTION_KEY (the key itself) overrides it |
wal_retention_bytes |
Option<String> (size) |
unset, which means 1 GB | WAL reclamation target. Fully flushed segments that no backup still needs are pruned oldest first to keep total WAL near this size. "unlimited", "none" or "off" keeps every segment. A value that does not parse falls back to 1 GB with a warning. SYNERGYDB_WAL_RETENTION_BYTES wins over this key |
compaction_size_amp_ratio |
Option<f64> |
unset, which means 0.5
|
Size-amplification trigger for an automatic throttled full compaction: the fraction of the largest SSTable that the rest of the tree may reach before a full merge. 0 disables. SYNERGYDB_COMPACTION_SIZE_AMP wins over this key |
Size strings (source: src/config.rs, parse_size): a number with an optional GB, MB, KB or B suffix, case-insensitive, powers of 1024 ("64MB" is 67,108,864 bytes). A bare number is bytes. Decimals such as "1.5GB" do not parse.
to_storage_config fills the remaining internal storage settings from the engine's own defaults (..Default::default()), which are defined outside this snapshot. Some of them can be tuned by environment variables listed in section 10.4.
Keys that appear commented out in docker/synergydb.prod.toml (compaction_threads, max_levels, level_size_multiplier) are not config keys; uncommented, they would be reported as unknown and ignored.
5. [vector]
Section required in a file, and all four keys are required in a file. Source: src/config.rs, VectorConfig.
| Key | Type | Default | What it does |
|---|---|---|---|
default_index |
String |
"hnsw" |
Default index type for new vector columns. Comments in the Docker configs list hnsw, diskann, ivf_pq
|
hot_threshold_secs |
u64 |
3600 |
Intended: vectors accessed within this time stay in HNSW. No effect yet |
warm_threshold_secs |
u64 |
604800 |
Intended: move to DiskANN. No effect yet |
cold_threshold_secs |
u64 |
2592000 |
Intended: move to IVF-PQ. No effect yet |
"Tiered vector storage (DiskANN, IVF-PQ) is designed but not wired; the [vector] tier thresholds in the config have no effect yet" (source: README.md, "Engine features"). They still have to be present in a file.
Not verified: whether default_index values other than hnsw do anything, given that DiskANN and IVF-PQ are not wired.
Keys commented out in docker/synergydb.prod.toml (hnsw_m, hnsw_ef_construction, hnsw_ef_search) are not config keys.
6. [cluster]
Section required in a file. Source: src/config.rs, ClusterConfig. Cluster mode is a preview; see 4. Operations, section 2.
| Key | Type | Default | What it does |
|---|---|---|---|
mode |
enum | Standalone |
Standalone (single node), Replicated (single-primary Raft, the tested mode) or Distributed (sharded; not tested, source: README.md). Written exactly as shown. Required in a file
|
node_id |
String |
"node-1" |
This node's unique id. Must not be empty. Required in a file |
peers |
Vec<String> |
[] |
The other nodes, each node-id@host:port (the peer's cluster port). Required in a file (may be []) |
replication_factor |
usize |
3 |
Must be at least 1. Required in a file. Not verified: what it changes in Replicated mode, where every node holds all data; the tests use 3 nodes |
cluster_port |
Option<u16> |
unset | Port for the Raft RPC server. Only used when mode is not Standalone. Binds on server.bind_address; there is no separate cluster bind address (source: docs/status/2026-11-29-suite-cluster-deploy.md) |
snapshot_threshold |
u64 |
0 |
Committed log entries after which the leader snapshots its state machine and truncates the log. 0 means the storage default. Not verified: the storage default is defined outside this snapshot; one status entry describes snapshots "every 10,000 entries" (source: docs/status/2026-11-29-cluster-leader-routing.md) |
secret |
Option<String> |
unset | Shared secret that authenticates and encrypts all cluster RPC. Required unless the cluster port is bound to loopback. At least 16 characters, the same on every node. Env SYNERGYDB_CLUSTER_SECRET. Not written by --generate-config (sources: src/config.rs; docs/status/2026-11-29-cluster-rpc-auth.md) |
Not verified: behaviour with mode = "Replicated" and an empty peers list or no cluster_port, as in docker/synergydb.prod.toml, is not documented or tested in any file here. Keys commented out in that file (raft_heartbeat_ms, raft_election_timeout_ms) are not config keys; Raft timing is set by environment variables (section 10.4).
Variables in a TOML string such as node_id = "${HOSTNAME}" are not expanded; use SYNERGYDB_CLUSTER_NODE_ID instead (the Helm chart does).
7. [tls]
Section optional. Source: src/config.rs, TlsConfigFile. Details of what TLS covers per wire are in 5. Security.
| Key | Type | Default | What it does |
|---|---|---|---|
enabled |
bool |
release build: false; debug build: true |
Turn TLS on. When true, cert_path + key_path must be set or auto_generate_dev_cert must be on, or the server refuses to start rather than serve plaintext |
cert_path |
Option<String> |
unset | Certificate, PEM |
key_path |
Option<String> |
unset | Private key, PEM |
ca_cert_path |
Option<String> |
unset | CA certificate for verifying client certificates |
require_client_cert |
bool |
false |
Require client certificates (mTLS). Needs ca_cert_path
|
auto_generate_dev_cert |
bool |
release build: false; debug build: true |
Generate a self-signed certificate if none is given. Development only |
require_tls |
bool |
false |
Refuse non-loopback plaintext on the listeners that serve both TLS and plaintext (first-byte detection, gRPC, and the PostgreSQL, MySQL and SQL Server upgrades). Loopback peers are still allowed plaintext. No effect on the 13 implicit-TLS wires, which take only TLS once TLS is on (source: src/protocol/tls.rs, plaintext_allowed; see TLS). Env SYNERGYDB_TLS_REQUIRE_TLS=true
|
With no [tls] block in a release build, TLS is off. TLS is active only when enabled is true and either certificates are configured or auto_generate_dev_cert is on (source: src/config.rs, should_enable_tls).
8. [secrets]
Section optional. Source: src/config.rs, SecretsConfigFile.
| Key | Type | Default | What it does |
|---|---|---|---|
backend |
String |
"" |
"" or environment, vault, kubernetes, aws, azure, gcp. Anything else fails validation |
cache_ttl_secs |
u64 |
0 if [secrets] is absent; 300 if the section is present without this key |
Secret cache TTL in seconds; 0 means no caching. The two defaults differ because the struct derives Default (0) while the serde default for a missing key is a function returning 300 |
prefix |
Option<String> |
unset | Key prefix for all secrets |
vault_address |
Option<String> |
unset | Vault address. Required when backend = "vault"
|
vault_token |
Option<String> |
unset | Vault token, for token auth |
vault_namespace |
Option<String> |
unset | Vault Enterprise namespace |
vault_role_id |
Option<String> |
unset | Vault AppRole role id |
vault_secret_id |
Option<String> |
unset | Vault AppRole secret id |
vault_k8s_role |
Option<String> |
unset | Vault Kubernetes auth role |
aws_region |
Option<String> |
unset | Region for AWS Secrets Manager |
Not verified: which settings the server actually fetches through a secrets backend, and whether the non-environment backends work, is not shown in this snapshot; only validation of these keys is in src/config.rs. Do not put vault_token or vault_secret_id in a committed file.
9. [audit]
Section optional. Source: src/config.rs, AuditConfigFile. The audit trail is described in 5. Security.
| Key | Type | Default | What it does |
|---|---|---|---|
enabled |
bool |
false |
With path set, every wire records logins, reads, writes, schema and security changes to a hash-chained JSONL trail |
path |
Option<String> |
unset | Active segment file. Rotated segments are kept next to it as <path>.<first-seq>
|
log_success |
bool |
true |
Log successful actions |
log_failure |
bool |
true |
Log failed actions |
key_file |
Option<String> |
unset | File holding the 64-hex-character HMAC key that signs the chain. SYNERGYDB_AUDIT_KEY (the key itself) takes precedence |
require_key |
bool |
false |
Refuse to start without an HMAC key. The code comment says to set this for health data |
retention_days |
u32 |
2190 per the code comment (6 years); 0 keeps forever |
Days to keep rotated segments. Not verified: the value comes from a constant (DEFAULT_RETENTION_DAYS) defined outside this snapshot |
rotate_mb |
u64 |
256 |
Rotate the active segment at this size, in MiB |
checkpoint_secs |
u64 |
3600 |
Seconds between checkpoint records; 0 turns them off |
log_statement |
bool |
true |
Record SQL statement text |
log_parameters |
bool |
true |
Record bound parameter values |
log_statement and log_parameters default to true, so with auditing on, the trail contains statement text and parameter values. The repository-root synergydb.toml sets enabled = false, log_success = false, log_failure = false (source: synergydb.toml).
10. Environment variables
10.1 Generic overrides: SYNERGYDB_<SECTION>_<KEY>
Source: src/config.rs, apply_env_overrides and apply_overrides_from; src/main.rs.
- Every key of
server,storage,vector,cluster,tls,secretsandauditcan be set this way, including keys absent from the file. Examples:SYNERGYDB_SERVER_POSTGRES_PORT=5433,SYNERGYDB_SERVER_KAFKA_PORT=9092(turns Kafka on),SYNERGYDB_STORAGE_DATA_DIR=/data,SYNERGYDB_TLS_ENABLED=false,SYNERGYDB_CLUSTER_MODE=Replicated,SYNERGYDB_CLUSTER_PEERS=node-2@a:7000,node-3@b:7000. - The name is split at the first underscore after
SYNERGYDB_: the first part is the section, the rest (lowercased) is the key. Variables whose first part is not one of the seven sections are not treated as overrides. - Values are typed from the field they land in: integers, floats, booleans (
true/yes/on/1,false/no/off/0), strings, and comma-separated lists. A numeric-looking string still works for a string field (SYNERGYDB_CLUSTER_NODE_ID=7). - An unknown key or a value of the wrong type is printed as a warning naming the variable, and the file's value stays.
-
SYNERGYDB_DATA_DIRandSYNERGYDB_WAL_DIRare short aliases forSYNERGYDB_STORAGE_DATA_DIRandSYNERGYDB_STORAGE_WAL_DIR. When both forms are set, the full form wins. - Three variables that look like overrides are skipped:
SYNERGYDB_VECTOR_EXACT,SYNERGYDB_VECTOR_EXACT_MAXROWS(runtime switches read elsewhere) andSYNERGYDB_AUDIT_KEY(the audit HMAC key itself). - Overrides are applied whether or not a config file was found.
10.2 Variables read directly
From src/main.rs, src/config.rs, docker/entrypoint.sh and Dockerfile (each row names its source).
| Variable | Default | What it does | Source |
|---|---|---|---|
SYNERGYDB_CONFIG |
unset; the image sets /config/synergydb.toml
|
Config file when -c is not given |
src/main.rs; Dockerfile
|
SYNERGYDB_SUPERUSER |
postgres (per help text; the image and --dev set it) |
Superuser name |
src/main.rs; Dockerfile
|
SYNERGYDB_SUPERUSER_PASSWORD |
unset | Superuser password. Without it, a first start in a terminal prompts; with no terminal one is generated and written to <data_dir>/initial_superuser_password. --dev sets postgres if unset. A placeholder value (CHANGE_ME, CHANGE_ME_IN_PRODUCTION, changeme, CHANGEME) on a non-loopback bind stops the server |
src/main.rs |
SYNERGYDB_ADMIN_PASSWORD |
unset | Older alias. Used as the superuser password when SYNERGYDB_SUPERUSER_PASSWORD is unset or empty |
src/main.rs; docker/entrypoint.sh
|
SYNERGYDB_NON_INTERACTIVE |
unset; the image and --dev set 1
|
Never prompt; a first start generates a password |
src/main.rs; Dockerfile
|
SYNERGYDB_DATABASE |
synergydb (per help text) |
Default database |
src/main.rs; Dockerfile
|
SYNERGYDB_AUTO_CREATE_DATABASES |
off | Create a database on first connect instead of refusing unknown names |
src/main.rs (help text) |
SYNERGYDB_BIND_ADDRESS |
unset | Bind address. Applied after the command-line flags, so it wins over --bind, --localhost and --bind-all
|
src/main.rs |
SYNERGYDB_KAFKA_ADVERTISED_HOST |
unset | Replaces server.kafka_advertised_host; an empty value clears it |
src/main.rs |
SYNERGYDB_METRICS_TOKEN |
unset | Bearer token for /metrics and /api/v1/status. Non-empty value wins over server.metrics_token
|
src/config.rs |
SYNERGYDB_WAL_RETENTION_BYTES |
unset | WAL retention target; wins over storage.wal_retention_bytes and its generic override |
src/config.rs |
SYNERGYDB_COMPACTION_SIZE_AMP |
unset | Compaction size-amplification ratio; wins over storage.compaction_size_amp_ratio and its generic override. A value that does not parse as a number is ignored |
src/config.rs |
SYNERGYDB_ENCRYPTION_KEY |
unset | The at-rest key itself; overrides storage.encryption_key_file
|
src/config.rs |
SYNERGYDB_AUDIT_KEY |
unset | The audit HMAC key itself; takes precedence over audit.key_file
|
src/config.rs |
SYNERGYDB_CLUSTER_SECRET |
unset | Cluster secret (the generic override of cluster.secret) |
src/config.rs |
SYNERGYDB_DEV_INSECURE_AUTH |
unset | Turns authentication off for test harnesses. On a non-loopback bind with protected mode on, the server refuses to start unless SYNERGYDB_ALLOW_INSECURE_BIND=1. Never set it on a reachable server |
src/main.rs; README.md
|
SYNERGYDB_TEST_AUTH_CHEAP |
unset | Test-only switch, refused on a non-loopback bind the same way | src/main.rs |
SYNERGYDB_ALLOW_INSECURE_BIND |
unset | Lets a server with the two test switches above start on a non-loopback address. Isolated test networks only | src/main.rs |
SYNERGYDB_SERVER_PROTECTED_MODE |
yes | Generic override of server.protected_mode; no disables it |
src/main.rs; src/config.rs
|
SYNERGYDB_MEMORY_LOG_SECS |
unset (off) | Log a memory breakdown every n seconds and turn on heap counting | src/main.rs |
SYNERGYDB_VECTOR_EXACT, SYNERGYDB_VECTOR_EXACT_MAXROWS
|
unset | Runtime vector switches read outside src/config.rs. Not verified: what they do is not in this snapshot |
src/config.rs |
SYNERGYDB_STATIC_DIR |
the image sets /app/static
|
Not verified: set by the image next to the built Studio UI; the code that reads it is not in this snapshot | Dockerfile |
SYNERGYDB_STORAGE_DATA_DIR |
unset | Also used by the entrypoint to locate .superuser_password (before SYNERGYDB_DATA_DIR, then /data) |
docker/entrypoint.sh |
RUST_LOG |
warn |
Log filter for the tracing output on stderr |
src/main.rs |
10.3 Variables named in README.md
| Variable | Default | What it does |
|---|---|---|
SYNERGYDB_MEMCACHED_DURABILITY |
write-behind |
sync makes Memcached writes durable before acknowledgement; lost 0 acknowledged writes over 3 kill -9 rounds, at 43% to 67% of memcached's throughput |
SYNERGYDB_MEMCACHED_MAX_LAG |
20000 (no unit given) |
Bound on writes that a kill -9 can lose in the default write-behind mode |
SYNERGYDB_MEMCACHED_AUTH |
loopback open, others authenticate |
users makes every client authenticate; open restores a fully open port for a trusted private network |
SYNERGYDB_MEMCACHED_AUTH_FILE |
unset | Credentials file for Memcached authentication |
SYNERGYDB_REDIS_REQUIREPASS |
unset | Redis password, like requirepass
|
SYNERGYDB_OPTIMIZER |
on |
0, false or off disables the rule-based optimizer and its join reorder; it is not cost-based and does not choose indexes (source: src/query/engine.rs, optimizer_enabled; src/plan/optimizer.rs, Optimizer::optimize; see Optimizer) |
SYNERGYDB_PROMETHEUS_HEAD_HOURS |
3 |
Hours of Prometheus samples kept in memory; 0 keeps everything in memory |
SYNERGYDB_KAFKA_ADVERTISED_HOST, SYNERGYDB_SUPERUSER_PASSWORD, SYNERGYDB_DEV_INSECURE_AUTH
|
See section 10.2 |
(source: README.md, "Known gaps", "Engine features", "Security defaults", "Other wires"; the Prometheus default from docs/status/2026-11-30-prometheus-head-window.md)
The README's "Security defaults" says Redis and Memcached accept unauthenticated clients by default. For Redis the code says otherwise: without SYNERGYDB_DEV_INSECURE_AUTH, every command except AUTH, HELLO, QUIT and RESET answers NOAUTH until login, whether or not SYNERGYDB_REDIS_REQUIREPASS is set (source: src/protocol/redis/commands.rs, CommandExecutor::requires_auth; test test_no_password_configured_fails_closed). For Memcached, the README's own gap note and a 2026-11-29 entry say it is open to loopback clients only (sources: README.md; docs/status/2026-11-29-open-wires-fail-closed.md). See 5. Security.
10.4 Variables documented in status entries
Operationally relevant variables that are not in the files above but are documented, with defaults, in a status entry. Each row names its entry under docs/status/.
| Variable | Default | What it does | Entry |
|---|---|---|---|
SYNERGYDB_SLOW_QUERY_US |
unset (opt-in) | Slow-query log threshold in microseconds |
2026-11-29-slow-log-context-prometheus-probe.md; 2026-11-30-encryption-at-rest.md
|
SYNERGYDB_SLOW_QUERY_LOG |
/tmp/synergydb-slow.log |
File the slow-query log appends to; no rotation; if it cannot be opened, nothing is logged |
src/query/slow_log.rs, config
|
SYNERGYDB_BLOCK_CACHE_MB |
one-eighth of RAM, 256 MB to 2 GB | Block cache budget |
2026-11-28-restart-memory-redis-load.md; 2026-11-30-memcached-startup-memory.md
|
SYNERGYDB_SCAN_WINDOW_MB |
16 |
Windowed merge size for large range scans, MB of on-disk blocks | 2026-11-27-startup-memory-bound.md |
SYNERGYDB_COLUMN_CACHE_MB |
512 |
Column projection cache budget | 2026-11-27-startup-memory-bound.md |
SYNERGYDB_COPY_COMMIT_ROWS |
250000 |
COPY FROM STDIN commits every n rows; 0 is one transaction |
2026-11-30-copy-bounded-memory.md |
SYNERGYDB_RAFT_ELECTION_TIMEOUT_MS |
not stated | Raft election timeout, min,max or min
|
2026-11-29-raft-append-byte-cap.md |
SYNERGYDB_RAFT_HEARTBEAT_MS |
not stated | Raft heartbeat interval | 2026-11-29-raft-append-byte-cap.md |
SYNERGYDB_RAFT_MAX_APPEND_BYTES |
1 MiB | Entry data per AppendEntries | 2026-11-29-raft-append-byte-cap.md |
SYNERGYDB_RAFT_COMMIT_TIMEOUT_MS |
30 s | How long a write waits for its Raft entry to commit | 2026-11-30-raft-commit-timeout.md |
SYNERGYDB_PROMETHEUS_EVICT_SECS |
once a minute | Prometheus head-window eviction interval | 2026-11-30-prometheus-head-window.md |
SYNERGYDB_REDIS_LUA_TIME_LIMIT_MS |
5000 |
Redis Lua script time limit; 0 disables |
2026-11-29-auth-hardening.md |
SYNERGYDB_REDIS_LUA_MEMORY_MB |
256 |
Redis Lua memory cap; 0 disables |
2026-11-29-auth-hardening.md |
SYNERGYDB_SCHEMA_REGISTRY_AUTH |
loopback open, others authenticate |
users or open
|
2026-11-29-open-wires-fail-closed.md |
SYNERGYDB_ENCRYPTION_RETIRED_KEYS |
unset | Retired at-rest keys, for rotation | 2026-11-30-encryption-at-rest.md |
10.5 Variables in deploy files and .env.example that the server does not read
None of the names below is read in src/config.rs or src/main.rs, and none is a valid SYNERGYDB_<SECTION>_<KEY> override, because its first part is not a config section. Not verified that no other part of the server reads them, since most of src/ is not in this snapshot; no status entry mentions any of them. Treat them as having no effect.
| Variable | Where it appears | Use instead |
|---|---|---|
SYNERGYDB_HTTP_PORT, SYNERGYDB_POSTGRES_PORT
|
.env.example |
SYNERGYDB_SERVER_HTTP_PORT, SYNERGYDB_SERVER_POSTGRES_PORT
|
SYNERGYDB_ENABLE_HTTP, _POSTGRES, _MYSQL, _MONGODB
|
.env.example |
Set or omit the wire's port key |
SYNERGYDB_AUTH_ENABLED |
.env.example ("future feature") |
Authentication is always on (source: docker/synergydb.prod.toml) |
SYNERGYDB_JWT_SECRET |
.env.example |
None found |
SYNERGYDB_MEMTABLE_SIZE_MB |
.env.example |
SYNERGYDB_STORAGE_MEMTABLE_SIZE (a size string) |
SYNERGYDB_BLOCK_CACHE_SIZE_MB |
.env.example |
SYNERGYDB_BLOCK_CACHE_MB (section 10.4) |
SYNERGYDB_COMPACTION_THREADS |
.env.example |
None found |
SYNERGYDB_QUERY_RATE_LIMIT_ENABLED, SYNERGYDB_DEFAULT_QPS, SYNERGYDB_BACKUP_ENABLED, SYNERGYDB_BACKUP_DIR
|
deploy/kubernetes/statefulset.yaml |
None found |
SYNERGYDB_NODE_ID |
deploy/swarm/synergydb-stack.yml |
SYNERGYDB_CLUSTER_NODE_ID |
SYNERGYDB_ENCRYPTION_KEY_FILE |
deploy/tenants/tenant.env.example |
SYNERGYDB_STORAGE_ENCRYPTION_KEY_FILE plus SYNERGYDB_STORAGE_ENCRYPTION_ENABLED=true
|
Variables used only by the deploy scripts, not the server: SYNERGYDB_PITR_S3_URI, SYNERGYDB_TENANT_MEM_HIGH, SYNERGYDB_TENANT_MEM_MAX (sources: deploy/bin/synergydb-wal-ship.sh, deploy/bin/provision-tenant.sh, deploy/tenants/tenant.env.example).
.env.example also lists OPENAI_API_KEY, OPENAI_EMBEDDING_MODEL, OPENAI_BASE_URL, HUGGINGFACE_API_KEY and HUGGINGFACE_MODEL for the embeddings endpoint, which uses OpenAI, then HuggingFace, then a mock model (sources: .env.example; docs/EMBEDDINGS.md; README.md, "Engine features"), and OTEL_EXPORTER_OTLP_ENDPOINT. Not verified: no file here shows the server reading OTEL_EXPORTER_OTLP_ENDPOINT.
11. Shipped config files
| File | Use |
|---|---|
synergydb.toml (repository root) |
Local development: loopback bind, SQLite on 5433, Kafka, CouchDB and Schema Registry off, TLS explicitly off, audit off |
docker/synergydb.toml |
Built into the image: 23 wires on (all except SQLite, Prometheus and Arrow Flight), bind 0.0.0.0
|
docker/synergydb.allwires.toml |
Same plus Prometheus remote storage and Arrow Flight |
docker/synergydb.prod.toml |
Six wires, zstd, 256 MB memtable, audit on, mode = "Replicated" with no peers (see the Not verified note in section 6) |
deploy/kubernetes/configmap.yaml, deploy/helm/synergydb/templates/configmap.yaml, deploy/swarm/config/synergydb.toml
|
Six wires. Kubernetes and Helm are standalone; Swarm sets Replicated with peers in a format the server does not accept |
deploy/tenants/synergydb.tenant.toml.tmpl |
Per-tenant template; missing two required [vector] keys |
deploy/suite-cluster/node.toml.tmpl |
One Raft node: PostgreSQL and HTTP only, cluster_port = 7301
|
(sources: the files named; comparisons in 4. Operations, section 1)