prosync-Specific Configuration Parameters
The following is an example of the configuration file fragment in the YAML format that lists prosync-specific configuration parameters:
prosync_options:
mem_limit: 0 # 0 = auto-detect optimal memory usage
export_batch_size: 10000000
max_export_batch_size: 100000000
process_batch_size: 10000
batch_save_after_timeout: 5m0s
import_batch_size: 1000000
use_online_logs_unsafe: false
validate_log_sequence: true
lob_write_size: 30000
operation_count_for_external_storage: 5000
transfer_id: "" # REQUIRED — no default, must be a UUID (e.g. d87708a4-c35e-4379-8845-d173683e5385)
readers: 11
use_failover_slots: false # Postgres Pro/PostgreSQL 17+ source only
use_replica_auto_sync_slots: false
postgres_slot_advance_interval: 5s
loaders: 1
truncate_process: false
get_replication_message_timeout: 60s
dump_mode: false
disable_constraint_checks: false
conflict_resolve_strategy: "nothing" # "nothing" | "update" | "fail"
statistic_interval: 60s
For how to set values for time configuration parameters, refer to Setting Time Values.
The following table explains prosync-specific configuration parameters:
| Name | Description | Default Value | Example |
|---|---|---|---|
|
prosync-specific parameters |
||
|
Batch size for prosync reading from Oracle LogMiner |
||
|
Maximum size to which the batch size can be increased when reading. If the maximum size is reached, prosync terminates with an error. This can happen if there is an open transaction that would not close. The user must resolve this issue. |
||
|
Batch size for processing a transaction. This parameter is for internal tuning of the application. |
|
|
|
Time interval after which a batch will be written to the destination DB if its size is still less than |
|
|
|
Batch size for inserting data. Zero value means that the data will be inserted as new data occurs. |
||
|
Deprecated. Number of rows that the driver retrieves from the databases at a time. |
||
Read the changes from archive and online redo logs. The flag enables getting the changes as soon as they occur in online logs. Not recommended to use for reliability. Because of how Oracle writes logs, some operations can be missed. |
|
||
Specifies the parameters of a writable downstream Oracle mining database. If this parameter is specified, prosync starts LogMiner on the mining database instead of the source database, and archived redo logs are mined there. The |
|||
DSN of the writable Oracle mining database on which |
|||
|
Template of the full path to archived redo logs that are passed to the |
|
|
|
How long prosync waits for an archived redo log to appear on the mining database. If the log does not become available within this time, prosync terminates with an error. The value of zero disables the timeout. |
|
|
|
Validate a sequence of log files. If a log file is missing, prosync terminates with an error. If losing some data is OK, set this parameter to |
|
|
|
Maximum number of bytes to write at a time when writing LOBs |
||
|
Number of operations in one transaction that causes writing of intermediate data to disk |
||
Data transfer identifier. Used to create names of slots for replication and publications. This parameter is required. |
|
||
Custom name of the publication that prosync creates in the source database. If the value is not specified, prosync generates the name automatically. The specified name is used as is by the prosync init, prosync run, and prosync complete commands. The name must be a UTF-8 string without null characters and must not exceed 63 bytes. For details, refer to Custom Names of the Replication Slot and the Publication. |
|||
Custom name of the replication slot that prosync creates in the source database. If the value is not specified, prosync generates the name automatically. The specified name is used as is by the prosync init, prosync run, and prosync complete commands. The name must contain only lowercase Latin letters, digits, and underscores and must not exceed 63 bytes. For details, refer to Custom Names of the Replication Slot and the Publication. |
|||
|
String to replace the null character, that is, the symbol with the zero code. This is a global setting, which can be overridden for each column with the value of |
nil, but for the Oracle source and PostgreSQL/Postgres Pro destination:
|
|
|
Character or string to replace \0x0000. If not specified, no replacement will be done. |
nil |
|
|
Specifies the types in the destination database to replace null characters for. Character or string to replace \0x0000. If not specified, no replacement will be done. |
[] |
destination_types: ["varchar", "char", "text", "json", "jsonb", "xml"] |
Resolution strategy for primary key conflicts when inserting rows in the destination database (Postgres Pro/PostgreSQL or Postgres Pro Shardman). Possible values:
|
|
||
How often utility operation statistics are written to the log. This parameter is used when the |
|
||
|
Number of readers from LogMiner. If set to a positive value, the setting of |
0 — single-node slow reading, which is, however, compatible with |
|
Whether to use failover replication slots. It is applicable only to the PostgreSQL/Postgres Pro 17 or higher source. The |
|
||
Enables prosync logic for propagation of replication slots. Use if you need failover replication slots on the cluster, but have PostgreSQL/Postgres Pro lower than 17 and/or if you need to read from a replica. The |
|
||
|
How often a slot will be moved on the whole cluster if |
|
|
The time to wait for new operations in the slot. After this timeframe elapses, prosync gets the current LSN from the primary for the subsequent slot advancement. The value must be greater than 100 milliseconds. |
|
|
|
The time to check for new operations in the slot, counted from the moment the LSN is obtained from the primary. If no new operations appear, prosync advances the slot to the obtained LSN. The value must be greater than 100 milliseconds. |
|
|
|
Number of workers that write to the destination. If not specified or equals zero, one worker is used. When the value is greater than 1, operations performed in the source DB in one transaction can be split into separate transactions, which can cause a foreign key violation. If the destination DB contains constraints, use one thread to write to it. |
|
||
|
Whether to process the |
|
|
The time to wait for passing an operation for writing to the destination database. After this timeframe elapses, prosync sends the PostgreSQL/Postgres Pro source a replication status message confirming that the connection is active and retries passing the operation. The value must be greater than 100 milliseconds and less than the |
|
|
|
|
Timeout for receiving messages from the PostgreSQL/Postgres Pro source DB. Must be greater than or equal to |
|
|
|
Dump mode. If enabled, operations are saved to a dump table rather than performed. |
|
|
Turns off checking of constraints and user triggers when a batch is written to the Postgres Pro/PostgreSQL destination database. To implement this, the following statement is used inside the loader transaction:
It requires a special setting of the destination database. When this parameter is enabled, the destination database can temporarily be inconsistent. |
|
||
Specifies the parameters of using replication origins. This is useful for the bidirectional (primary-primary) replication between two PostgreSQL/Postgres Pro databases. This functionality allows avoiding replication loops of the same changes between the replication nodes (refer to Running prosync in the Primary-Primary Replication Mode for details). Requires PostgreSQL/Postgres Pro 16 or higher. |
|
||
Changes read from the source. Possible values:
This parameter can be specified only if the |
|
||
Name of the replication origin used to tag changes written to the destination database. Specified together with This parameter can be specified only if the |
|
||
Specifies the parameters of the high-availability mode. These parameters take effect when prosync is run with the |
|||
|
Cluster parameters |
||
Maximum number of consecutive heartbeat errors. Upon reaching this number, the instance is considered unable to connect to the supporting database and has to switch to the |
|
||
Interval between heartbeats |
|
||
Maximum time for the automatic |
|
||
|
Reconnection parameters for the source database |
||
|
Reconnection parameters for the destination database |
||
|
Reconnection parameters for the supporting database specified by the |
||
|
Parameters for restarting the transfer threads. It is strongly recommended that |
||
|
Common parameters for various sections of |
||
|
Maximum number of retry attempts. The value of zero means the attempts are unlimited. |
|
|
|
Minimum delay before a new attempt |
|
|
|
Maximum delay before a new attempt |
|
|
|
Randomization of the delay growth |
|
|
|
Multiplier of the delay growth |
|
|
|
Maximum query time |
|
|
Logging parameters. If this section is not specified, logs are written to |
|||
|
Logging level. Possible values: |
|
|
|
Log format. Possible values: |
|
|
|
Whether to also write logs to |
|
|
Parameters for writing logs to a file. If this group of parameters is not specified, logs are written only to |
|||
|
Path to the log file. |
|
|
|
Parameters for log file rotation. If this group of parameters is not specified, the log file is written without rotation. |
||
|
Maximum size of the log file in megabytes, after which it is rotated. |
|
|
|
Maximum number of old log files to keep. The value of zero means old log files are not removed. |
|
|
|
Maximum age of old log files in days, after which they are removed. The value of zero means old log files are not removed based on their age. |
|
|
|
Whether to compress rotated log files. |
|
|
|
Whether to rotate log files when the prosync process receives the |
|