Home Page Icon
Home Page
Table of Contents for
Cover
Close
Cover
by Kristina Chodorow
Scaling MongoDB
Preface
Conventions Used in This Book
Using Code Examples
Safari® Books Online
How to Contact Us
1. Welcome to Distributed Computing!
What Is Sharding?
2. Understanding Sharding
Splitting Up Data
Distributing Data
One range per shard
Multi-range shards
How Chunks Are Created
Example
Sharding collections
Balancing
The Psychopathology of Everyday Balancing
On changing chunk size
mongos
The Config Servers
The Anatomy of a Cluster
3. Setting Up a Cluster
Choosing a Shard Key
Low-Cardinality Shard Key
Keys that this rule applies to
Exceptions to the rule
Data center awareness
Ascending Shard Key
Keys that this rule applies to
Exceptions to the rule
Random Shard Key
Good Shard Keys
Coarsely ascending key + search key
FAQ
The general case
What shard key should I use?
Sharding a New Collection
Quick Start
Config Servers
mongos
Shards
Limiting shard size
Databases and Collections
Sharding an Existing Collection
Preparing Your Collection for Sharding
Running shardcollection
For Large Data Sets
Adding and Removing Capacity
Removing Shards
Changing Servers in a Shard
4. Working With a Cluster
Querying
“Why Am I Getting This?”
Counting
Unique Indexes
Updating
MapReduce
Temporary Collections
5. Administration
Using the Shell
Getting a Summary
The config Collections
“I Want to Do X, Who Do I Connect To?”
Monitoring
mongostat
The Web Admin Interface
Backups
Config Server Backups
Suggestions on Architecture
Create an Emergency Site
Create a Moat
What to Do When Things Go Wrong
A Shard Goes Down
Most of a Shard Is Down
Config Servers Going Down
Mongos Processes Going Down
Other Considerations
6. Further Reading
About the Author
Copyright
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Next
Next Chapter
O'Reilly Strata Conference
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset