Author: Adam Leszczyński <aleszczynski@bersler.com>, version: 1.9.0, date: 2026-01-23 |
This section documents the source element of the OpenLogReplicator JSON configuration.
It explains each available field, constraints, defaults and operational notes.
| Parameter | Type / constraints | Description and notes |
|---|---|---|
|
string, max length: 256, mandatory, unique |
Logical identifier for this source.
Referenced by TIP: Use short, descriptive names. |
|
element — see format, mandatory |
Configuration of the output message format and serialization options. |
|
string, max length: 256, mandatory |
Human-readable name used to identify the database connection in logs and checkpoints. WARNING: Do not change this value while using existing checkpoint files; mismatches will prevent proper restart. |
|
element — see reader, mandatory |
Configuration for reading redo logs (online, offline, batch, etc.). |
|
string, allowed: |
Method used to obtain archived redo log file lists.
NOTE: Only valid for readers that support archived redo logs. |
|
integer, min: 0, default: 10000000 |
Microseconds to sleep between attempts to read archived redo log lists. |
|
integer, min: 0, max: 1000000000, default: 10 |
Number of retries before failing to obtain an archived redo log list. |
|
element — see debug |
Group of debugging options. |
|
element — see filter |
Filter rules that determine which users, schemas and tables are processed. CAUTION: Filters apply only to data rows, not to DDL. On first run the schema is loaded only for tables selected by the filter; changing the filter later may require resetting checkpoints and reloading schema. |
integer, min: 0, max: 524287, default: 0 |
Bitmask of runtime options. Common flags:
CAUTION: May delay replication until log switches occur.
TIP: Disabling direct IO reduces guarantees; use only when necessary.
NOTE: Refer to the User Manual for details on schemaless and adaptive schema modes. |
|
|
integer, min: 0, default: 50000 |
Microseconds to sleep when the online redo log is exhausted and the process waits for new transactions. TIP: Default 50,000 μs (50 ms) provides a good latency/CPU trade-off. Lower values reduce latency at the cost of higher CPU usage. |
|
integer, min: 0, default: 0 |
When non-zero, read online redo log data again after this delay (μs) to verify consistency. IMPORTANT: This double-read is a workaround for filesystems that may present stale caches. Prefer direct IO instead of relying on double reads. |
|
integer, min: 0, default: 10000000 |
Microseconds between attempts to refresh the list of redo log groups while reading online redo logs. |
|
Note
|
|
source configuration (JSON){
"source": {
"alias": "db_primary",
"name": "primary_db",
"format": { "type": "json" },
"reader": { "type": "online" },
"arch": "online",
"redo-read-sleep-us": 50000,
"flags": 0,
"metrics": {}
}
}