Se ha denunciado esta presentación.
Utilizamos tu perfil de LinkedIn y tus datos de actividad para personalizar los anuncios y mostrarte publicidad más relevante. Puedes cambiar tus preferencias de publicidad en cualquier momento.
5 Steps to Scale your MongoDB
1. Optimize your Queriesquery = db.coll.find({title:”My blog”})query.explain();    {        "cursor" : "BasicCursor",     ...
2. Know your working set size                            Active                      Documents +                      Used...
3. Tune your file system• EXT3 == bad  – Slow file allocation & initialization• EXT4 / XFS == good  d• Access time trackin...
4. Choose the right disksSingle Disk                                                                ~200 seeks / secondRAI...
5. Sharding for                                                    g              MongoS           MongoS                 ...
Próxima SlideShare
Cargando en…5
×

Scale your MongoDB in 5 Easy Steps

1.003 visualizaciones

Publicado el

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.

  • Sé el primero en comentar

Scale your MongoDB in 5 Easy Steps

  1. 1. 5 Steps to Scale your MongoDB
  2. 2. 1. Optimize your Queriesquery = 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 disksSingle Disk ~200 seeks / secondRAID 0 ~200 seeks / second ~200 seeks / second ~200 seeks / secondRAID 10 ~400 seeks / second ~400 seeks / second ~400 seeks / second
  6. 6. 5. Sharding for g MongoS MongoS writes & RAMShardSh 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

×