how to improve nifi performance when sync data in mysql

核能气质少年 提交于 2019-12-24 23:24:17

问题


I use NiFi(one instance) CaptureMySQLChange(binlog) + EvaludateJsonPath + JoltTransformJSON + PutDatabaseRecord to sync data from one table to another, both tables are on different databases but on same mysql instance. I use insert into table_a select * from table_b limit 5000; to batch insert 5000 rows, nifi takes about 7 minutes to sync all 5000 rows, is it normal or slow for nifi? If slow, how should I do to improve performance?

jvm setting:

java.arg.2=-Xms4g java.arg.3=-Xmx8g

Processor setting: timer-driven scheduling, concurrent tasks=1(to re-execute sql in order), Run Schedule=0 sec, Penalty Duration=10 sec, Yield Duration=1 sec

queue setting: Back Pressure Object Threshold=100_000, Size Threshold=2g FirstInFirstOutPrioritizer

来源:https://stackoverflow.com/questions/56166048/how-to-improve-nifi-performance-when-sync-data-in-mysql

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!