Tuesday, June 11, 2013

MongoDB Hardware Tips

PROBLEM:
You need some hardware tips for your MongoDB installation:
  • Buy $1k 1000 servers or $10k 100 servers?
  • Fast CPU vs. more CPU cores?
  • More RAM is good?
  • Virtualization is ok?
  • SSD is good?
  • Disable NUMA (Non-Uniform Access Memory) in BIOS?
  • File system settings?
SOLUTION:
See this: https://www.youtube.com/watch?v=19VZJ9H3LmQ

If you find this useful, you are welcome to press one of the ads in this page.. Thanks!

Sunday, June 9, 2013

Step by step guide for MongoDB sharding

PROBLEM:
What is a MongoDB sharded cluster?

SOLUTION:
While sharding is a powerful and compelling feature, it comes with significant infrastructure requirements and some limited complexity costs. As a result, use sharding only as necessary and when indicated by actual operational requirements.

Here is a step by step guide for MongoDB sharding:

Introduction to Sharding

Sharding Setup Demo

The config database

Setup Part 2 Adding the Initial Shards

Enabling sharding for a collection

Working with a sharded collection

Choosing shard keys

Process and Machine Layout

Bulk inserts and pre-splitting

Further tips and best practices

If you find this useful, you are welcome to press one of the ads in this page.. Thanks!