-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathadvanced-settings.txt
173 lines (115 loc) · 5.9 KB
/
advanced-settings.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
.. _advanced-settings:
=======================
Advanced Kafka Settings
=======================
.. default-domain:: mongodb
.. facet::
:name: genre
:values: reference
.. contents:: On this page
:local:
:backlinks: none
:depth: 2
:class: singlecol
When you integrate {+rel-mig+} with Kafka, you can configure
more advanced settings by updating your ``user.properties`` file.
Your ``user.properties`` file is located in an OS specific location. For more
information, see :ref:`{+rel-mig+} File Locations <file-location>`.
.. _rm-user-properties:
User Properties
---------------
Provide optional configuration settings by updating your ``user.properties`` file.
.. glossary::
``spring.profiles.active``
*Default*: local
{+rel-mig+} can be run in the following profiles:
- ``kafka``: Remote server using embedded server deployment.
- ``confluent``: Remote server using Confluent Cloud for managed Kafka.
``server.port``
*Default*: 8278
The port the {+rel-mig+} application runs on.
``migrator.kafka.bootstrap.servers``
A list of ``host:port`` pairs of your pre-existing kafka cluster.
For example: ``kafka-1:9092, kafka-2:9093``.
For more information, see `Worker Configuration Properties
<https://docs.confluent.io/platform/current/connect/userguide.html#worker-configuration-properties-file>`__.
``migrator.kafka.connect.url``
The Kafka Connect host url using the ``host:port`` format.
For example: ``https://localhost:8083``.
``migrator.kafka.connect.metrics.jmx.service.url``
The Kafka Connect Java Management Extensions (JMX) url.
``migrator.kafka.connect.metrics.jmx.ssl``
*Default*: false
Set to ``true`` if SSL is enabled.
You can add additonal remote Java Management Extensions (JMX) for SSL
configurations by prefixing them with ``migrator.kafka.connect.metrics.jmx.properties``.
``migrator.kafka.enable.topic.cleanup``
*Default*: false
Cleans up the topics created during the last migration job.
``migrator.connector.source.common.errors.max.retries``
*Default*: 5
For the source connector, it specifies the maximum number of retries on a
retriable failure. {+rel-mig+} attempts recovery from source database
retriable failures up to a set limit before the job fails.
``migrator.connector.source.common.errors.retry.initial.max.ms``
*Default*: 30000 ms
For the source connector, it specifies the delay in milliseconds to start
again after a retriable failure. The value is doubled after every retry but
does not exceed ``migrator.connector.source.common.errors.retry.delay.max.ms``.
``migrator.connector.source.common.errors.retry.delay.max.ms``
*Default*: 60000 ms
For the source connector, it specifies the maximum delay in milliseconds
between retries after a retriable failure.
``migrator.connector.sink.common.errors.max.retries``
*Default*: 5
For the sink connector, it specifies the maximum number of retries on a
retriable failure. {+rel-mig+} attempts recovery from source database
retriable failures up to a set limit before the job fails.
``migrator.connector.sink.common.errors.retry.initial.max.ms``
*Default*: 30000 ms
For the sink connector, it specifies the delay in milliseconds to start again
after a retriable failure. The value is doubled after every retry but does not exceed
``migrator.connector.sink.common.errors.retry.delay.max.ms``.
``migrator.connector.sink.common.errors.retry.delay.max.ms``
*Default*: 60000 ms
For the sink connector, it specifies the maximum delay in milliseconds
between retries after a retriable failure.
Schema Registry Properties
--------------------------
Use {+rel-mig+} with any schema registry by adding properties to the ``user.properties``
file with the prefix ``migrator.connector.properties.common``.
.. glossary::
``migrator.connector.properties.common.key.converter``
*Default*: ``migrator.connector.properties.common.key.converter``
The convertor class for the message key.
``migrator.connector.properties.common.value.converter``
*Default*: ``org.apache.kafka.connect.json.JsonConverter``
The convertor class for the message value.
``migrator.connector.properties.common.key.converter.apicurio.registry.url``
This specifies the URL of the Apicurio Registry for the key converter.
It uses the ``http://{host}:{port}`` or ``https://{host}:{port}`` format.
``migrator.connector.properties.common.value.converter.apicurio.registry.url``
This specifies the URL of the Apicurio Registry for the value converter.
It uses the ``http://{host}:{port}`` or ``https://{host}:{port}`` format.
Source Connector Properties
---------------------------
{+rel-mig+} sets default `Debezium source connector properties
<https://debezium.io/documentation/reference/stable/connectors/mysql.html#mysql-connector-properties>`__
for each supported source database. The connector properties can be
overridden by adding them in the ``user.properties`` file with the prefix
``migrator.connector.source.common``. For example:
.. code-block::
migrator.connector.source.common.errors.max.retries: 0
In this example, the default value is five but it has now been set to zero. This means
there is no retries after a retriable failure.
Sink Connector Properties
-------------------------
{+rel-mig+} sets default Migrator `sink connector properties
<https://docs.confluent.io/platform/current/installation/configuration/connect/sink-connect-configs.html>`__
for each supported source database. The connector properties can be
overridden by adding them in the ``user.properties`` file with the prefix
``migrator.connector.sink.common``. For example:
.. code-block::
migrator.connector.sink.common.errors.max.retries: 0
In this example, the default value is five but it has now been set to zero. This means
there are no retries.