Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Local mongodb with Compose.io as replica set?

Basically, I'm considering this:

A local MongoDB server backed up by Compose.io. So Compose handles HA, backups, etc - but I get the speed of a local MongoDB instance.

Is this possible/sane? Would this actually solve the HA/backups problem, or just complicate it?

I have two DigitalOcean servers, but not the ops experience managing MongoDB.

Thanks!

like image 386
Michael Cole Avatar asked May 30 '16 20:05

Michael Cole


1 Answers

The only solution I have to this is to create a local instance of mongo and periodically back it up and restore it to compose.io and basically keep the two in sync. There are a few projects we are looking at

  • https://github.com/tutumcloud/mongodb-backup
  • https://hub.docker.com/r/agaveapi/mongodb-sync/
like image 133
JohnC Avatar answered Oct 09 '22 07:10

JohnC