Author: Adam Leszczyński <aleszczynski@bersler.com>, version: 1.9.0, date: 2026-01-23 |
This document describes the state configuration block used by OpenLogReplicator.
It covers checkpointing behavior, storage options, recommended defaults and operational notes.
The state element controls how and where checkpoint files are created and retained.
Checkpoints capture progress (redo-log SCN/timestamp) and an optional schema snapshot to allow safe restart and recovery.
-
Default storage:
disk -
Typical defaults:
interval-mb: 500,interval-s: 600,keep-checkpoints: 100,schema-force-interval: 20 -
Checkpoints are created when either the processed redo-log bytes exceed
interval-mbor the redo-log timestamp span exceedsinterval-s.
| Parameter | Type / constraints | Description and notes |
|---|---|---|
|
integer, min: 0, default: 500 |
Size threshold (megabytes) of processed redo-log data that triggers a checkpoint.
Set to |
|
integer, min: 0, default: 600 |
Time threshold (seconds) measured against redo-log timestamps that triggers a checkpoint. IMPORTANT: This measures the span of redo-log timestamps processed (SCN/timestamp), not wall-clock time.
Set to |
|
integer, min: 0, default: 100 |
Maximum number of checkpoint files to retain. Older files are removed when safe.
Set to CAUTION: Temporary retention may exceed this value by up to |
|
string, max length: 2048, default: |
Filesystem path for checkpoint files. Must be writable by the process owner. NOTE: Applies only when |
|
integer, min: 0, default: 20 |
Controls inclusion of a full schema snapshot inside checkpoint files.
A value |
|
string, allowed: |
Checkpoint storage type.
Currently only |
-
Ensure the
pathhas sufficient free space and the correct ownership/permissions. -
Tune
interval-mbandinterval-sto balance checkpoint frequency (faster recoverability) against I/O and storage overhead. -
Larger
keep-checkpointsimproves ability to resume from older positions but consumes more storage. -
schema-force-intervalbalances checkpoint size vs. reliance on older checkpoints for schema data.
-
On startup, validate existing checkpoint files in
pathbefore using them for recovery.
|
Note
|
When both |
|
Caution
|
Ensure any automated cleanup or backup job excludes in-flight or recently-written checkpoint files to avoid corruption. |
-
If checkpoints are not created: verify write permissions on
path, check process logs and confirm triggers (interval-mb/interval-s) are reached. -
If too many checkpoint files accumulate: confirm background cleanup is running and adjust
keep-checkpoints/schema-force-interval.
state configuration (JSON){
"state": {
"type": "disk",
"path": "./checkpoint",
"interval-mb": 500,
"interval-s": 600,
"keep-checkpoints": 100,
"schema-force-interval": 20
}
}