Skip to content

netcore 2.0 mongodb elasticsearch synchrodata(mongodb和es同步数据)

License

Notifications You must be signed in to change notification settings

woshihulingzhi/SnailDev.Mongo2Es

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mongo2Es

ElasticSearch and MongoDB sync tools base in netcore2

Chinese Documentation - 中文文档

structure

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

webmanage

  • processing

process1 process2

  • mongodbData

mongodb1 mongodb2

  • elasticsearch

elasticsearch

License

The MIT License (MIT). Please see LICENSE for more information.

About

netcore 2.0 mongodb elasticsearch synchrodata(mongodb和es同步数据)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 57.9%
  • HTML 19.4%
  • C# 11.4%
  • CSS 10.5%
  • PHP 0.4%
  • Shell 0.2%
  • Other 0.2%