New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如何让数据库和topic一一对应 #1716
Comments
在instance.properties里面配置 消息队列配置 分区设置
|
是不是canal.mq.topic这个参数随便写一个存在的topic,然后主要设置在这里对吧?canal.mq.dynamicTopic=topic_A:A,topic_B:B,topic_C:C |
是的。canal.mq.topic算是一个默认的,没有匹配到的schema和table的日志都会输入到那个默认的里面去。消费的时候只关心你设置的动态分区。 |
楼上正解 |
我想让每个数据库都投递到和他名字一样的topic里,该如何设置,wiki我看了,不是很理解,
也做过很多尝试性的调整,都没有用,能否告知如何设置,谢谢
比如我数据库名字是A,B,C,topic名字也创建了A,B,C,如何配置
mq config
canal.mq.topic=A
dynamic topic route by schema or table regex
canal.mq.dynamicTopic=db_baseinfo_test
#canal.mq.partition=0
hash partition config
canal.mq.partitionsNum=8
canal.mq.partitionHash=.\..:id
The text was updated successfully, but these errors were encountered: