instant, real-time server monitoring. written during rails rumble 2010. [show website] [<1 minute walkthrough]
-
rails 3 - mongoid - http://mongoid.org
-
node.js - node-mongodb-native - https://github.com/christkv/node-mongodb-native
- ssh
-
redis - communication between the two
-
MONGODB
- 1 sample every 5 seconds (12 samples / minute) * every metric * every server
- = 172,800 samples / day / server (10 metrics)
- = easily 1 million samples within first 12 hours (10 servers)
OMG: all of these things became important in the last hour (and beyond) of rails rumble:
-
use 64-bit if you don't know the difference
- new user signups just stopped working even though saying inserts were ok
- 32-bit db size is limited to 4GB (= small)
-
capped collections
- linode disk limited (we're cheap)
- fast writes (which we throw out because we need to index it)
- blow away /var/mongodb - it's ok!
- account for indexes when specifying capped size
-
mongorestore
- build indexes last
- BUG: mongorestore on osx doesn't bring in indexes
looks good...
might be good to demo setting up a new server because it's so easy
did you omit comments about indexes and capped collections intentionally?