SnailDev.Mongo2Es
SnailDev.Mongo2Es copied to clipboard
netcore 2.0 mongodb elasticsearch synchrodata(mongodb和es同步数据)
Mongo2Es
ElasticSearch and MongoDB sync tools base in netcore2
Chinese Documentation - 中文文档
Supports one-to-one, one-to-many, many-to-one, and many-to-many relationships.
- one-to-one - one mongodb collection to one elasticsearch index
- one-to-many - one mongodb collection to many elasticsearch indexs
- many-to-one - many mongodb collections to one elasticsearch index
- many-to-many - many mongodb collections to many elasticsearch indexs
version
elasticsearch:v6.1.2
mongodb: v3.4.9
netcore: v2.1.101
What does it do
Mongo2Es keeps your mongoDB collections and elastic search cluster in sync. It does so by tailing the mongo oplog and replicate whatever crud operation into elastic search cluster without any overhead. Please note that a replica set is needed for the Mongo2Es to tail mongoDB.
How to use
Download from GitHub
cd src/Mongo2Es
dotnet publish --framework netcoreapp2.0 -o ./published
Start up
dotnet Mongo2Es.dll --bindip {bindip for web manage} --mongo {mongourl for config}
Result
- webManage
- processing
- mongodbData
- elasticsearch
License
The MIT License (MIT). Please see LICENSE for more information.