在Apache IoTDB中配置数据同步设置后,实时数据通常需要多长时间才能同步?目前,我大约需要10分钟才能同步,我检查过,不应该是这样(要等这么久)。是因为我配置错误吗?或者有什么流程我错过了? 我的配置命令是
create pipe p21to22 WITH EXTRACTOR ('extractor' = 'iotdb-extractor','extractor.pattern' = 'root.**', 'extractor.history.enable' = 'true','extractor.history.start-time' = '2024-04-15T16:57:31.750+08:00','extractor.history.end-time' = '2024-04-15T17:12:31.750+08:00','extractor.realtime.enable' = 'true') with connector ('connector'='iotdb-thrift-connector','connector.ip'='192.168.0.122','connector.port'='6667')
.
看来你的配置没有任何问题。您在管道执行结束时是否执行了
flush
(因为似乎您在编码中没有包含刷新)?完成flush
操作后即可开始Apache IoTDB的同步,如果不执行flush
,实时反映会变慢。因此,您可以尝试执行flush
,看看这是否会加快您的实时同步速度。