2. Admin UI
There are a number of open source projects that provide an
admin console to your MongoDB instances.
Some are web UI and some are native UI applications.
MongoHub is a native Mac OS app that has many great
bells and whistles (my personal fav)
MongoVUE is a native Windows .NET
Many Ruby web based apps that run using Sinatra and
MongoDB driver (Futon4Mongo, Mongo3, etc)
3. MongoHub details
Retail time CRUD operations monitoring
Multi-database views
Detailed collection views
Interactive querying
MySQL Import / Export
4. Monitoring and Diagnostics
The newer versions on MongoDB come with
mongostat
sudo mongosniff --source NET lo0
Could be straight forward to hook up custom Nagios
alerts and monitoring with this data
6. How it all works
MongoDB has a primary node who does the writes
The data is then replicated to the rest of the set
MongoDB has auto fail-over so if the current primary
pukes, then another node is "elected"
A write is theoretically complete when a "majority" of
the nodes in the set received the data
ma·jor·i·ty noun mə-ˈjor-ə-tē
In MongoDB terms it means there is at least 1
primary and at least 1 other node running
If only 1 node is left standing...well that sucks
7. The Ugly Truth
If a node fails-over during replication and all the nodes
haven't received it...
The data drops ;..(
12. How do I set that up?
Well, its super hard...
...NOT to do it right
I <3 MongoDB documentation
http://www.mongodb.
org/display/DOCS/Replica+Set+Tutorial
You can also do N nodes and 1 arbiter, where N % 2 == 0
16. Choose wisely!
> When sharding you must
choose your shard key wisely
for an even distribution of load
and data
> It's best to choose composite
shard keys and determine the
most common queries
> Helps ensure your query
targets a single shard vs.
querying ALL shards
18. Map / Reduce
> You can write map/reduce
functions in the shell and with
any of the supported MongoDB
drivers
19. Logging with MongoDB
Got this link from the MongoDB
meetup at Engine Yard this past
week.
Thanks to Robert Stewart for
the great presentation:
http://www.slideshare.
net/WombatNation/logging-
app-behavior-to-mongo-db