MongoDB Administration

Notes on the "Administration" presentation at Mongo SF

  • Mongo runs on almost every platform
  • Tools
  • mongod - database server (e.g. mysqld)
  • mongo - shell (e.g. mysql)
  • mongo uses stdout very heavily
    • Tries to make the logs really useful - verbosity level can be set 0-10
  • Use netstat to tell how many open connections have been made to the database
  • Try out the shell
  • mongod --fork = runs as a forked server
  • to backup the database, fsync + lock could be better: http://www.mongodb.org/display/DOCS/fsync+Command
  • Please use replication
  • delayed replication lets you replicate hours behinds
  • iostat - x 2 - to look at disk io
  • by default mongo listens on 208017
  • webconsole tells you how long things are going to take
  • db.serverstatus gives you all mongostat information
  • monitoring for mongo: munin / ganglia / nagios / cacti
  • db.help() shows database commands