GalaxyCenter
GalaxyCenter
我按说明用rdbmswriter,然后把jdbc驱动丢到 datax\plugin\writer\rdbmswriter\libs 下面 然后plugin.json 改成 { "name": "rdbmswriter", "class": "com.alibaba.datax.plugin.reader.rdbmswriter.RdbmsWriter", "description": "useScene: prod. mechanism: Jdbc connection using the database, execute select sql, retrieve data from the ResultSet. warn: The more...
http://cangdu.org:8001/ 访问不了
## Question 1、修改全量写入mysql 的逻辑,原有逻辑在数据量超过1w后启用多线程分页读取,实测1000w数据对源端数据库压力过大(4核数据库)4,16,32线程测试,cpu使用率都在200%-400%;只读不写的测试, 20w分一页,55个线程分页读取, 1个线程池数据耗时563838 毫秒,55个线程分页读取,4个线程池,耗时228851 毫秒;直接读全表79068 毫秒;直接全表纯读反而速度最快,而且mysql的cpu利用不超50%; 符合生产使用场景。即低cpu迁移数据,对生产影响降到低; 2、修改插入逻辑 原有逻辑是一条一条写入目标,性能差速度慢;现在改成批量插入,如果遇到错误再一条一条插入,显著提升全量写入速度。 1读-32 线程写入: 3864810 毫秒 1读 16线程写入: 4370879 毫秒 16线程读写: 4835523 毫秒 经过测试使用新逻辑写入性能更好,mysql 的cpu 利用最低 https://github.com/GalaxyCenter/canal-plus 估计提交也不会被canal合并,索性新建一个仓库自己改造。觉得好的可以给个start
在接入数据的时候会出现这样的情况: 2020-08-08 21:01:05.659 [job-0] INFO StandAloneJobContainerCommunicator - Total 280 records, 58515384 bytes | Speed 5.58MB/s, 28 records/s | Error 0 records, 0 bytes | All Task WaitWriterTime 0.007s | All...
Total 292832 records, 40401132 bytes | Speed 0B/s, 0 records/s | Error 0 records, 0 bytes | All Task WaitWriterTime 5.284s | All Task WaitReaderTime 39.885s | Percentage 0.00% 2020-08-23...
**Describe the bug** A clear and concise description of what the bug is. **Environment :** - Flink version : 1.13.2 - Flink CDC version: 2.1 - Database and version: oracle...