connector |
required |
(none) |
String |
Specify what connector to use, here should be 'mysql-cdc' . |
hostname |
required |
(none) |
String |
IP address or hostname of the MySQL database server. |
username |
required |
(none) |
String |
Name of the MySQL database to use when connecting to the MySQL database server. |
password |
required |
(none) |
String |
Password to use when connecting to the MySQL database server. |
database-name |
required |
(none) |
String |
Database name of the MySQL server to monitor. The database-name also supports regular expressions to monitor multiple tables matches the regular expression. |
table-name |
required |
(none) |
String |
Table name of the MySQL database to monitor. The table-name also supports regular expressions to monitor multiple tables matches the regular expression. |
port |
optional |
3306 |
Integer |
Integer port number of the MySQL database server. |
server-id |
optional |
(none) |
Integer |
A numeric ID or a numeric ID range of this database client, The numeric ID syntax is like '5400',
the numeric ID range syntax is like '5400-5408', The numeric ID range syntax is recommended when 'scan.incremental.snapshot.enabled' enabled.
Every ID must be unique across all currently-running database processes in the MySQL cluster. This connector joins the MySQL cluster
as another server (with this unique ID) so it can read the binlog. By default, a random number is generated between 5400 and 6400,
though we recommend setting an explicit value.
|
scan.incremental.snapshot.enabled |
optional |
true |
Boolean |
Incremental snapshot is a new mechanism to read snapshot of a table. Compared to the old snapshot mechanism,
the incremental snapshot has many advantages, including:
(1) source can be parallel during snapshot reading,
(2) source can perform checkpoints in the chunk granularity during snapshot reading,
(3) source doesn't need to acquire global read lock (FLUSH TABLES WITH READ LOCK) before snapshot reading.
If you would like the source run in parallel, each parallel reader should have an unique server id, so
the 'server-id' must be a range like '5400-6400', and the range must be larger than the parallelism.
Please see Incremental Snapshot Readingsection for more detailed information.
|
scan.incremental.snapshot.chunk.size |
optional |
8096 |
Integer |
The chunk size (number of rows) of table snapshot, captured tables are split into multiple chunks when read the snapshot of table. |
scan.snapshot.fetch.size |
optional |
1024 |
Integer |
The maximum fetch size for per poll when read table snapshot. |
scan.startup.mode |
optional |
initial |
String |
Optional startup mode for MySQL CDC consumer, valid enumerations are "initial"
and "latest-offset".
Please see Startup Reading Positionsection for more detailed information. |
server-time-zone |
optional |
UTC |
String |
The session time zone in database server, e.g. "Asia/Shanghai".
It controls how the TIMESTAMP type in MYSQL converted to STRING.
See more here. |
debezium.min.row.
count.to.stream.result |
optional |
1000 |
Integer |
During a snapshot operation, the connector will query each included table to produce a read event for all rows in that table. This parameter determines whether the MySQL connection will pull all results for a table into memory (which is fast but requires large amounts of memory), or whether the results will instead be streamed (can be slower, but will work for very large tables). The value specifies the minimum number of rows a table must contain before the connector will stream results, and defaults to 1,000. Set this parameter to '0' to skip all table size checks and always stream all results during a snapshot. |
connect.timeout |
optional |
30s |
Duration |
The maximum time that the connector should wait after trying to connect to the MySQL database server before timing out. |
debezium.* |
optional |
(none) |
String |
Pass-through Debezium's properties to Debezium Embedded Engine which is used to capture data changes from MySQL server.
For example: 'debezium.snapshot.mode' = 'never' .
See more about the Debezium's MySQL Connector properties |