当数据库只有250 my时,neo4j2elasticsearch在我的机器上工作。但是数据库大约是2GB。它不再同步了。我想知道是因为配置文件中的这些参数:
#optional, size of the in-memory queue that queues up operations to be synchronised to Elasticsearch, defaults to 10000
com.graphaware.module.ES.queueSize=10000
#optional, size of the batch size to use during re-initialization, defaults to 1000
com.graphaware.module.ES.reindexBatchSize=2000我想知道内存中队列大小10000的单位是什么,以及如何根据我的数据库大小来估计要设置的参数。
以下是调试文件:neo4j debug.log失效加载
数据库是re-initialized,但在elasticsearch数据库中只有空的新4j-索引-关系/新4j索引-节点索引。
以下是成功加载250 is数据库的调试文件:neo4j debug.log成功加载看起来像是重新索引节点. 2GB数据库加载过程中缺少步骤。
发布于 2018-01-19 07:35:17
日志中没有表示将重新索引的行,您是否配置了:
com.graphaware.module.ES.initializeUntil=需要在启动时重新编制索引的时间戳?否则,它只会索引新数据。在https://github.com/graphaware/neo4j-to-elasticsearch的底部解释如下:
...in命令触发(重新)索引,即在Neo4j重新启动时将应该索引的每个节点发送到Elasticsearch,您必须手动干预.
因此,尝试创建一个新的节点,并查看同步是否用于消除这种情况(最常见的情况)。
https://stackoverflow.com/questions/45553244
复制相似问题