Upgrade to Pro — share decks privately, control downloads, hide ads and more …

MongoNYC 2012: MongoDB on Amazon EC2

mongodb
May 25, 2012
500

MongoNYC 2012: MongoDB on Amazon EC2

MongoNYC 2012: MongoDB on Amazon EC2, Dan Costa, 10gen. Gain valuable insights on running MongoDB on Amazon EC2. EC2 provides a simple and flexible deployment model for your application and databases. However, you still need to manage, maintain, and monitor your system. So how do you do this with EC2? We'll explore these questions and more in this session.

mongodb

May 25, 2012
Tweet

Transcript

  1. Shard Server in EC2 Use 64-bit instance Use standard virtual

    memory page size Raise "nofiles" ulimit Use RAID10 Use modern filesystem (ext4, XFS) Use "noatime" mount option • • • • • •
  2. Shard Server in EC2 Readahead: how much more to read

    than what you asked for If set too high, can impact performance Set to 0 on EBS devices Set to desired value on RAID device • • • •
  3. Arbiter in EC2 Can use Micro instance Might make elections

    slower Can use instance store Still want backups! • • • •
  4. Networking Resist the urge to use IP addresses Instead, use

    DNS with Route53 or Chef/Puppet to manage /etc/hosts • • •
  5. Security EC2 Security Groups Can reference other SGs mongos, unsharded

    mongod: 27017 Shard mongod: 27018 Config mongod: 27019 • • • • •
  6. Backup EBS provides point-in-time snapshots When using RAID, need to:

    fsync and lock, or snapshot journal last Can snapshot secondaries Save snapshots to S3 • • • • • •
  7. In Retrospect... This is a lot to cover in ~30

    minutes There is a lot to consider 10gen is here to help -- use us! http://groups.google.com/group/mongodb-user https://www.10gen.com/presentations • • • • •