Diese Präsentation wurde erfolgreich gemeldet.
Die SlideShare-Präsentation wird heruntergeladen. ×

Scale your MongoDB in 5 Easy Steps

Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Nächste SlideShare
Scaling with MongoDB
Scaling with MongoDB
Wird geladen in …3
×

Hier ansehen

1 von 6 Anzeige

Scale your MongoDB in 5 Easy Steps

Herunterladen, um offline zu lesen

Most people trying to scale their database infrastructure run into similar challenges. In this session will quickly go through the top 5 things you can do to scale your data infrastructure with MongoDB.

Most people trying to scale their database infrastructure run into similar challenges. In this session will quickly go through the top 5 things you can do to scale your data infrastructure with MongoDB.

Anzeige
Anzeige

Weitere Verwandte Inhalte

Weitere von DATAVERSITY (20)

Anzeige

Scale your MongoDB in 5 Easy Steps

  1. 1. 5 Steps to Scale your MongoDB
  2. 2. 1. Optimize your Queries query = db.coll.find({title:”My blog”}) query.explain(); { "cursor" : "BasicCursor", cursor : BasicCursor "indexBounds" : [ ], "nscanned" : 57594, "nscannedObjects" : 57594, "n" : 3, "millis" : 108 } db.coll.ensureIndex({title:1})
  3. 3. 2. Know your working set size Active Documents + Used Indexes RAM Disk
  4. 4. 3. Tune your file system • EXT3 == bad – Slow file allocation & initialization • EXT4 / XFS == good d • Access time tracking == bad – noatime, nodiratime
  5. 5. 4. Choose the right disks Single Disk ~200 seeks / second RAID 0 ~200 seeks / second ~200 seeks / second ~200 seeks / second RAID 10 ~400 seeks / second ~400 seeks / second ~400 seeks / second
  6. 6. 5. Sharding for g MongoS MongoS writes & RAM Shard Sh d 1 Shard Sh d 2 Shard Sh d 3 Shard Sh d 4 0..10 10..20 20..30 30..40 Primary Primary Primary Primary Secondary y Secondary y Secondary y Secondary y Secondary Secondary Secondary Secondary

×