Skip to content

Comment on MongoDB Gotchas and How To Avoid Them

Comments

The solution is simple; use a tool to keep an eye on MongoDB, make a best guess of your capacity (flush time, queue lengths, lock percentages and faults are good gauges) and shard before you get to 80% of your estimated capacity.

Any recommendations for such a tool?

ukd1OP

MMS (https://mms.10gen.com/user/login) from 10gen is pretty good - it's very mongo specific.

I've also used Munin (http://munin-monitoring.org/, there is a great plugin - https://github.com/erh/mongo-munin), CloudWatch (http://aws.amazon.com/cloudwatch/) and various in-house ones as well.

I've been using MMS for about a year now, and I've found their agent to be not-so-great. I keep getting random alerts about the agent being down and then up again.

Other than that, it's descent and free!

How would you use CloudWatch to monitor MongoDB? Or do you mean that you can get statistics from the Amazon EC2 mongo instance(s) with Munin and a cloudwatch plugin?

The Zabbix mongodb plugin also looks like a good option:

http://code.google.com/p/mikoomi/source/browse/#svn%2Fplugin...

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.