Configure the Parameters parameter when calling ModifyDtsJobConfig to modify DTS task settings.
Parameter description
Parameters is a JSON string. Specify the following fields:
-
module
Module of the parameter. Valid values:
-
03: The Full Data Migration module for data migration or synchronization tasks.
-
04: The Incremental Write module for a data migration task.
-
07: The Incremental Write module for data synchronization tasks.
-
60: The synchronization module for Kafka-to-Kafka and SLS-to-ClickHouse tasks.
-
-
name
The parameter name, as listed in the following table.
-
value
The parameter value, as listed in the following table.
|
Parameter (name) |
Configurable module (module) |
Description (value) |
|
source.column.encoding |
03, 04, or 07 |
Character encoding of business data in the source Oracle database. Prevents garbled text from character set incompatibility. Valid values:
|
|
sink.worker.type |
03 |
Use the sink.worker.type and sink.bulk.copy.enable parameters to configure the data write mode for MySQL or PostgreSQL databases.
|
|
sink.bulk.copy.enable |
03 |
|
|
sink.batch.size.minimum |
03 |
Minimum records a write thread writes per batch. Valid values: 0 to 1024. |
|
sink.batch.size.maximum |
03, 04, or 07 |
Valid values: 0 to 1024. |
|
source.connection.idle.second |
03, 04, or 07 |
Reconnection timeout for the source database. If DTS reconnects within this period, the task automatically resumes; otherwise it fails. Valid values: 0 to 86,400. Unit: seconds. |
|
sink.connection.idle.second |
03, 04, or 07 |
Reconnection timeout for the destination database. If DTS reconnects within this period, the task automatically resumes; otherwise it fails. Valid values: 0 to 86,400. Unit: seconds. |
|
trans.hot.merge.enable |
04 or 07 |
Enables or disables hot spot merging. Valid values:
|
|
sink.batch.enable |
4, 7 |
Enables or disables batch data writing. Valid values:
|
|
source.filter.ddl.enable |
04 and 07 |
Enables or disables DDL statement filtering. Valid values:
|
|
sink.ignore.failed.ddl |
04, 07 |
Enables or disables ignoring failed DDL statements. Valid values:
|
|
trans.size.maximum |
04, 07 |
Transaction splitting threshold. Valid values: 0 to 1024. |
|
dts.datamove.record.spouter.writers |
07 |
Number of write threads. Valid values: 0 to 64. |
|
selectdb.reservoir.group.by.target.schema |
04 or 07 |
Batches write data by destination table name. Valid values:
|
|
selectdb.reservoir.timeout.milliseconds |
04 or 07 |
Write batching timeout, in milliseconds.
|
|
sink.task.number |
03, 04, 07, or 60 |
Number of write threads for the destination database. Higher values improve write performance for non-hotspot scenarios but increase database load.
|
Example
Example in JSON format:
[
{
"module": "07",
"name": "sink.connection.idle.second",
"value": 60
},
{
"module": "07",
"name": "sink.batch.size.maximum",
"value": 64
}
]