You are previewing MongoDB in Action.

MongoDB in Action

Cover of MongoDB in Action by Kyle Banker Published by Manning Publications

Chapter 9. Sharding


In this chapter
  • Sharding concepts
  • Setting up and loading a sample shard cluster
  • Administration and failover


MongoDB was designed from the start to support sharding. This has always been an ambitious goal because building a system that supports automatic range-based partitioning and balancing, with no single point of failure, is hard. Thus the initial support for production-level sharding was first made available in August 2010 with the release of MongoDB v1.6. Since then, numerous improvements have been made to the sharding subsystem. Sharding effectively enables users to keep large volumes of data evenly distributed across nodes and to add capacity as needed. In this chapter, I’ll present the layer that makes this ...

The best content for your career. Discover unlimited learning on demand for around $1/day.