moiot / gravity

A Data Replication Center
Apache License 2.0
910 stars 173 forks source link

mongodb同步到tidb #311

Closed BruceChinese closed 3 years ago

BruceChinese commented 3 years ago

image

在tidb里没有数据 一直是这种状态

name = "mongo2tidb"

[input] type = "mongo" mode = "stream" [input.config.source] host = "1xxx" username = "xxx" password = "xxx" port = xxxx

[output] type = "mysql" [output.config.target] host = "xxxx" username = "xxx" password = "xxxx" port =xxxx

[[output.config.routes]] match-schema = "post" match-table = "*" target-schema = "post"

target-table = "post"

Ryan-Git commented 3 years ago

这是增量,启动之后 mongo 有更新吗?

BruceChinese commented 3 years ago

有 业务库 更新很快 tidb需要手动建库建表吗

BruceChinese commented 3 years ago

这个支持mongodb sharding吗

Ryan-Git commented 3 years ago

有 业务库 更新很快 tidb需要手动建库建表吗

要的。

这个支持mongodb sharding吗

可以每个分片一个单独的进程。只连 mongos 的话不行。