Replies: 2 comments 7 replies
-
Indeed the documentation is lagging a little bit. I run the sink-connector in production for several months now. It is very stable. The main drawback is that it does not support DDL like truncate, alter statements but this gap should be filled soon. The docker compose yaml is provided for testing purpose and as such it is self contained. Usually you have an external MySQL instance and CH instance. So you need to remove them from the default docker compose. Second you want persistence, so you need to create external docker volumes, so that the state in Redpanda is not lost for example. Recent Redpanda releases can be unstable (I see that you ran into issues too). I would recommend this recent one :
You can choose to keep the MySQL instance and make it a replica from your MySQL instance, especially if you did not enable GTIDs.
If you decide to keep the embedded MySQL instance, add an external volume.
Docker volumes :
and this is in the docker compose yaml file :
I find it useful to run checksums (provided by the project under python). Once the containers are started using
you need to :
There are tools provided under python to do that
The binary log file and position can be found in the dump (/home/me/dbdumps//@.json)
Migration on the CH side :
$ cat ../debezium-connector-setup-database_schema_only.sh
CLICKHOUSE_TARGET_HOST ./sink-connector-setup-database-live.sh
|
Beta Was this translation helpful? Give feedback.
-
Hi @aadant Thank you so much for the detail step by step guide. Just wanted to make it clear, does the embedded mysql refers to the replicated slave mysql db? if so, does it mean that the outcome would be there are 2 mysql dbs (master + slave) and 1 clickhouse? Thanks. |
Beta Was this translation helpful? Give feedback.
-
Is there any example of how to use this sink connector?
The tutorial here seems to be outdated https://altinity.com/blog/fast-mysql-to-clickhouse-replication-announcing-the-altinity-sink-connector-for-clickhouse
We already have a single instance mysql (no slave) & a clickhouse instance.
The
deploy/debezium-connector-setup-schema-registry.sh
requires akafka-connect
service but it's disabled in the docker-compose.yml.I think it would be very helpful if there's an updated documentation on how to deploy the containers.
Beta Was this translation helpful? Give feedback.
All reactions