Author: Adam Leszczyński <aleszczynski@bersler.com>, version: 1.9.0, date: 2026-01-27 |
This reference manual describes runtime options, directory permissions and the main configuration for OpenLogReplicator. It is intended as a concise operational guide; detailed element descriptions are available in the referenced files.
-
Place the configuration file
OpenLogReplicator.jsonin the process working directory (or provide it with-f). -
Ensure the process user can read and write directories referenced by the configuration (checkpoints, swap, dumps).
-
Start the program with appropriate CLI options (examples below).
OpenLogReplicator is non-interactive. Supported command-line options:
-
-f|--file <config file>— path to configuration file (default:OpenLogReplicator.json). -
-p <process name>— process name visible in system process lists (default:OpenLogReplicator). -
-r|--root— disable the startup root-check (not recommended for production). -
-v|--version— print version and exit.
Example invocation:
./OpenLogReplicator -f ./configs/OpenLogReplicator.json -p OLReplicatorAll runtime configuration is defined in OpenLogReplicator.json.
Refer to the configuration reference for full details: OpenLogReplicator.json.
-
Configuration is a single JSON object containing top-level elements such as
source,target,memory,format,filter, anddebug. -
Example configuration files and templates are available in the
scriptsdirectory in the repository.
-
All program diagnostic and error messages are written to stderr.
-
Some internal JSON output may be written to stdout when a test/debug option is enabled in the configuration.
-
Use conservative
log-levelandtracesettings in production; enable higher verbosity only for troubleshooting.
The process requires appropriate filesystem permissions for directories used by the configuration:
-
Checkpoint directory
-
The application periodically writes checkpoint files named like
<database>-chkpt.jsonand<database>-chkpt-<scn>.json. -
The process user must have read, write and execute permissions on the checkpoint directory.
-
-
Swap and dump paths
-
If swapping is enabled (
swap-path) or dumps are produced (dump-path), ensure those directories are writable and have sufficient free space and I/O performance.
-
CAUTION: Insufficient permissions or lack of space may cause unexpected process termination.
-
The
min-mb/max-mbmemory settings in thememoryelement control resident allocations and buffer sizing. Verify buffer minima sum remains belowmax-mb. -
When enabling swap, prefer fast local storage to avoid high latency and unpredictable throughput.
-
Changing configuration settings in production (especially
source/target,filteror memory parameters) should be validated in a staging environment and may require resetting checkpoints.
-
Use
debugelement options sparingly;stop-*settings will terminate the process for diagnostic capture. -
Use
dump-redo-loganddump-raw-dataonly when diagnosing specific issues; dumps can be large and are intended for debugging. -
Increase
log-levelor addtraceflags to obtain more detailed runtime information when investigating problems.
-
OpenLogReplicator.json — main configuration reference
-
format element — output serialization options
-
memory element — memory and buffering
-
filter element — table selection and filtering rules
-
debug element — debug and diagnostics options