??????????????
?????????????????????????????????????????????? flush ?? mysql ????????
????????1.11.2??????flink
sql????????????????????????????????BufferReduceStatementExecutor????????????????????????????????????????????????flush??????????????????GenericJdbcSinkFunction
????????????????????????????????????????????????
------------------ ???????? ------------------
??????:
"user-zh"
<[email protected]>;
????????: 2021??10??26??(??????) ????10:31
??????: "flink??????????"<[email protected]>;
????: Re: flink??mysql????
Hi??
?????????????????????????????????????????????? flush ?? mysql ??????
JdbcDynamicTableSink ?????????? sink function
?????????????????????? GenericJdbcSinkFunction???????? snapshotState ????
snapshot ??????????????
jdbc ???????????????? sql ?????? batch ??????????????????????
JdbcBatchStatementExecutor ??????????
?? mysql ?? qps ????????????????????
jdbc connector ?????? with ???????????? flush ????????????
sink.buffer-flush.interval
?????????????????????? flush??????????????
100?????????????????????????????????????????????????????? [1]??
???????? sum ?????????????? 1000??/s??????????????????????????????????
checkpoint ???????????????????????????????????????????????? sink ????????????
checkpoint
???????????????????????????????? checkpoint ?????????????????????????? gc
?????????????????????????????? sql ??????
[1]
https://ci.apache.org/projects/flink/flink-docs-master/zh/docs/connectors/table/jdbc/#sink-buffer-flush-max-rows
a <[email protected]> ??2021??10??26?????? ????9:49??????
>
>
????????????????flink??mysql????????????sink????????JdbcDynamicTableSink??????????????????????????checkpoint??????????????????????????1.??????????????????????????????????????????????flush??mysql??????
>
>
2.??????????mysql??qps??????????????????????????????sum??????????????1000??/s????????????????????????????????????????????????????????????