Replica for MongoDB

7 views
Skip to first unread message

Sharath kumar M N

unread,
Jan 27, 2012, 6:14:44 AM1/27/12
to mongodb-user, anith...@gmail.com
I want to create a Mongo DB replica .this replica should be in sync
with Mysql(for every insert in Mysql it should reflect in Mongo DB)
and Solr interface (an index needs to be create in Lucene library of
Solr for every insert in Mongo DB).

i am dealing with tera bytes of data so I want to know the step by
step procedure to setup the above environment and time consumption for
the same.

Awaiting for your response.

Thanks in advance.

Eliot Horowitz

unread,
Jan 27, 2012, 12:29:51 PM1/27/12
to mongod...@googlegroups.com
This entirely depends on how you plan on doing this.
Were you doing this in the app? Did you want a background process?

> --
> You received this message because you are subscribed to the Google Groups "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
>

Sharath kumar M N

unread,
Feb 1, 2012, 12:08:27 AM2/1/12
to mongodb-user, Eliot Horowitz
Hi

I want to setup the above environment in Linux server and it should be
a background process only.

Please suggest me on this at the earliest

Thank you.

Eliot Horowitz

unread,
Feb 2, 2012, 1:58:56 AM2/2/12
to mongod...@googlegroups.com
This is really an architecture question for the app...
There are a number of ways of doing it with mongo.

Sharath kumar M N

unread,
Feb 2, 2012, 2:04:38 AM2/2/12
to mongodb-user, Eliot Horowitz
Hi

can you please suggest one of the way at the earliset.

Scott Hernandez

unread,
Feb 3, 2012, 8:20:33 PM2/3/12
to mongod...@googlegroups.com
You can use something like this
(https://github.com/renctan/mongo-solr) to pick up changes for
mongodb.

As for the sql integration/replication I would suggest writing some
custom code to do the logical replication for your application.
Specifically I would either implement a trigger to log the records or
keep track of them with a date/timestamp so they can be easily found
and replicated. If you need more than replicate on insert (you have
mutable data) then you could use the same mechanism for them to update
data in mongodb.

I don't know any generic framework which is already written for this
as each action is pretty custom.

Reply all
Reply to author
Forward
0 new messages