francpaul
francpaul

Reputation: 246

creating a local MongoDB replica set based on a single database on MongoHQ

We have a single mongo database hosted on MongoHQ.

We now want to move to a replica-set on our own servers. I was hoping I could change the current db to a replica set, and then add our servers to it, and then eventually remove the mongohq instance from the set.

is this possible/appropriate with mongohq? is it better to do a mongodump?

what is the best way of going from single production mongohq db to a replicaset on our own servers?

Upvotes: 1

Views: 524

Answers (2)

Jason McCay
Jason McCay

Reputation: 3345

Right now, since this is a single instance, it would require some help from the MongoHQ team. Depending on the size of the database, we can assist. However, if the data is small enough (2GB or less), it would end up being much faster to just move it with a copy or a mongodump/mongorestore.

Also, MongoHQ has replica set plans as well. It is easy to add redundancy and high-availability this way.

Hope this helps!

Jason MongoHQ

Upvotes: 1

Andy Glover
Andy Glover

Reputation: 437

This feature is not currently supported by MongoHQ b/c you ultimately have to start the mongod process with a --replSet <replica set name> flag. If you want to create your own replica set, I would get a dump of your data from HQ and then go from there creating your own set where you are in control of all nodes.

Upvotes: 0

Related Questions