• mongostat - Like top for mongo. • mongotop - a not as useful top for mongo. • mongodump/restore - backup and load. • mongo - a mongo shell. • mongoimport/export - backup to other formats.
throughput issues. How? • Very Carefully, and with some downtime. ◦ 2-3 restarts to enable it. ◦ Time to migrate data to other shards (days-weeks) ◦ Create a sharded cluster at the start.
can only have one or three. Never have only one. Second, every server should have at least one replica. • No, config servers cannot have replicas (this is dumb).
these EXTREMELY carefully. ◦ These determine if the cluster will hotspot, how much it needs to migrate data. ◦ Changing it is extremely painful, hours of downtime. Fourth, add shards into the sharding config, and enable sharding on collections with your keys.
using them. • Tack on .explain() to any query to see what mongo wants to do (query plan). • Desperately try to avoid table scans. • Mongo is really slow without indexes.