Skip to content

Configuration ​

Settings come from environment variables, then /etc/vdb/vdb.yaml (VDB_CONFIG_FILE; keys are the names below in lower case without VDB_), then defaults. An invalid value stops start-up with a message naming the variable.

VariableDefaultMeaning
VDB_SOURCE_HOST, VDB_SOURCE_PORTrequired, 3306The Source
VDB_SOURCE_USER, VDB_SOURCE_PASSWORD or VDB_SOURCE_PASSWORD_FILErequiredThe service account
VDB_SOURCE_DATABASESevery visible databaseComma-separated databases to expose
VDB_SOURCE_TLS_FINGERPRINTemptySHA-256 of a self-signed Source certificate to trust (TLS)
VDB_ENV_IDhost nameTags every Source statement's comment
VDB_ENV_CLASSsmallsmall, medium or large: mysqld buffers and connection limits
VDB_LISTEN_PORT3306The client port
VDB_CLIENT_TLS_CERT_FILE, VDB_CLIENT_TLS_KEY_FILEemptyClient TLS certificate; otherwise mysqld generates one
VDB_MEMORY_RESERVE0.10Fraction of memory kept free; writes past it fail with 1114
VDB_DELTA_MAX_BYTES0A fixed cap on the Delta's size (0: none)
VDB_AUTO_INCREMENT_GAP1000000Gap above the Source's AUTO_INCREMENT for new rows of mirrored tables
VDB_BATCH_ROWS, VDB_BATCH_BYTES4096, 524288Rows and bytes per batch and per Source page
VDB_INSERT_BATCH, VDB_LOOKUP_BATCH1000, 1000Rows per bulk insert batch; keys per Source lookup
VDB_SOURCE_MAX_CONNECTIONSfrom the classSnapshot connections to the Source
VDB_SOURCE_CONNECT_WAIT5sWait for a Source connection
VDB_SOURCE_REQUEST_TIMEOUT30smax_execution_time of every Source statement
VDB_SOURCE_REQUEST_MAX_ROWS100000Rows per Source request
VDB_MAX_SOURCE_ROWS0Rows one statement may read from the Source (0: no limit)
VDB_SOURCE_RETRY_WINDOW10sRetries before a snapshot opens
VDB_SOURCE_SNAPSHOTonoff reads without a consistent snapshot
VDB_SOURCE_SNAPSHOT_IDLE_TIMEOUT, VDB_SOURCE_SNAPSHOT_MAX_AGE60s, 15mSnapshot limits
VDB_SOURCE_SNAPSHOT_POLICYstrictrelaxed renews an expired snapshot with a warning
VDB_SOURCE_BUSY_THREADS64Background reads pause above this many running Source threads
VDB_COUNT_MAX_SHADOWED100000Above this many changed keys, COUNT(*) counts rows instead
VDB_PUSHDOWNonPush conditions to the Source
VDB_SCHEMA_POLL, VDB_GRANT_POLL60s, 30sPolling intervals
VDB_SOURCE_LOG_SIZE, VDB_SOURCE_LOG_FILE10000, emptyThe Source request log
VDB_LOG_FORMATjsonjson or text
VDB_LOG_LEVELinfodebug adds debug-level logs (pushdown decisions, Source requests); environment only
VDB_PLUGIN_DIR/var/lib/vdb/pluginsVDB plugins (none ship in v1)
VDB_MYSQLD_STOP_TIMEOUT, VDB_MYSQLD_RESTART_WINDOW30s, 5mmysqld shutdown; three crashes in the window stop the container
VDB_MYSQLD_SORT_BUFFER_SIZE and the other VDB_MYSQLD_* sizesfrom the classOverride one class value

Released under the Elastic License 2.0.