Friday, December 19, 2014

MongoDB - Backing up a Sharded Cluster (is tricky)

*UPDATE*
I am blind.  Just found this:
http://docs.mongodb.org/manual/tutorial/backup-sharded-cluster-with-database-dumps/



Maybe I'm blind, but I haven't seen a concise, high level summary of how to backup a sharded cluster.


  1. halt balancer.
  2. make sure no chunks flying around (isBalancerRunning lets u know if chunk is movin).
  3. backup preferably from Primary shards.
  4. backup config server data.
  5. re-enable balancer.

THEY ARE ONE UNIT.  AND MUST BE RESTORED AS ONE UNIT.

No comments:

Post a Comment