MongoDB
                 At MercadoLibre



Wh at h ave we le a rned
Overview

About MeLi

Why MongoDB?

Use cases

Lessons Learned

Wrapping Up
MeLi - Platform
MeLi - Facts!
20M requests / minute
 50K requests / sec (peaks)
 4 Gb bandwidth / sec
MeLi - Facts!
20M requests / minute
 50K requests / sec (peaks)
 4 Gb bandwidth / sec


Our farm
 +1000 physical server
 +6000 virtual instances
MeLi - Inside

Lot of fun here playing with new stuff :P
MeLi - Inside

Lot of fun here playing with new stuff :P
Our NoSQL stack

 Redis
 Memcached
 Hadoop
MeLi - Inside

Lot of fun here playing with new stuff :P
Our NoSQL stack

 Redis
 Memcached
 Hadoop
 .... and of course
Why MongoDB?


Horizontal Scaling

High Availability

Performance

Flexible Data!
Why MongoDB?


Horizontal Scaling

High Availability

Performance

Flexible Data!
Why MongoDB?
(... and more)

   JavaScript(‘ing)

   Polyglot

   Open Source

   Awesome Community

   Support
Support :-)
Use Cases

   DB      Documents

 Social     +700M

 Orders     +23M

Feedback     +3M

 Emails     +61M

 Items     +200M

Logging     +332M
Use Case: Social

Store Meli’s users social data
LOT of data (friends, likes, ...)
> 500 Gb
> 700 M documents
12 shards servers : 4 replica set
Each replica set = 3 servers
80Gb per instance
Use Case: Social
                                     Sp
                                        ec
                                    @T ial
                                      ioB thk
                                          or     st
Store Meli’s users social data               rac o
                                                ho
LOT of data (friends, likes, ...)
> 500 Gb
> 700 M documents
12 shards servers : 4 replica set
Each replica set = 3 servers
80Gb per instance
Use Case: Items



1 Item!
Use Case: Items



1 Item!
Use Case: Items



1 Item!
Use Case: Items



     1 Item!
N x N x N ... > 100k rows
Use Case: Items



1 Item!
Use Case: Logging
                            Capped Collections!
Info logs
  RabbitMQ messages
  Track certain use cases

Errors logs
 Something bad happen...
 Recuperable errors with retry handler
Lessons Learned
Storage
  File System
    NSF: Bad choice, Poor results
    Ext4: Far much better

  Mount Options
  Reducing Disk IO by mounting partitions with noatime and nodiratime

  Track disk performance
  iostat -xm 2 (%util column < 100%)
Lessons Learned
VM’s
  Shard instances
   4 cores
   >= 16 Gb ram

  Config server
   low cpu consumption
   1Gb ram / 1Gb storage


  Mongos
   runs along with the webserver (client)
   1 mongos x webserver
Lessons Learned
Monitoring
 Disk usage (with zenoss)
 Ping health check
    curl --connect-timeout 3 
         --write-out %{http_code} 
         --silent 
         --output /dev/null 
         http://localhost:28017/_status
Lessons Learned
Monitoring                MMS - It’s free!
Lessons Learned
Plan your actions!
   Shard key
   Upgrades
   Cfg Servers
                 +   bad decisions = Lot of rework
   ...
Lessons Learned
Plan your actions!
   Shard key
   Upgrades
   Cfg Servers
                 +   bad decisions = Lot of rework
   ...


   Study
                     Think
                               Plan

                                           Hands On!
Wrapping Up!


Meli loves MongoDB!
The End


            Questions?

   { 
        name     : "Pablo Molnar",  
        title    : "Software Engineer",
        work    : "MercadoLibre",
        location : "Buenos Aires",
        twitter  : "@pablomolnar"
   }

More Related Content

PDF
2011 09-pdfjs
PDF
Mastering the MongoDB Shell
PDF
Look Ma! No more blobs
ODP
Python and MongoDB
KEY
MongoDB: How it Works
PPTX
MongoDB Shell Tips & Tricks
PDF
Python and MongoDB
PDF
CommonJS: JavaScript Everywhere
2011 09-pdfjs
Mastering the MongoDB Shell
Look Ma! No more blobs
Python and MongoDB
MongoDB: How it Works
MongoDB Shell Tips & Tricks
Python and MongoDB
CommonJS: JavaScript Everywhere

What's hot (10)

PDF
NOSQL: il rinascimento dei database?
PDF
Шардинг в MongoDB, Henrik Ingo (MongoDB)
PDF
MongoDB: Intro & Application for Big Data
PPTX
Mongo db present
PPTX
Slide NoSQL Indonesia - Redis Cache n PubSub
PDF
Barcelona MUG MongoDB + Hadoop Presentation
PDF
新浪微博开放平台中的 Redis 实践
PDF
Mongodb
PPTX
Conexión de MongoDB con Hadoop - Luis Alberto Giménez - CAPSiDE #DevOSSAzureDays
PPT
MongoDB Knowledge Shareing
NOSQL: il rinascimento dei database?
Шардинг в MongoDB, Henrik Ingo (MongoDB)
MongoDB: Intro & Application for Big Data
Mongo db present
Slide NoSQL Indonesia - Redis Cache n PubSub
Barcelona MUG MongoDB + Hadoop Presentation
新浪微博开放平台中的 Redis 实践
Mongodb
Conexión de MongoDB con Hadoop - Luis Alberto Giménez - CAPSiDE #DevOSSAzureDays
MongoDB Knowledge Shareing
Ad

Similar to MongoDB at MercadoLibre (20)

PPTX
Agility and Scalability with MongoDB
KEY
Discover MongoDB - Israel
PPTX
Hardware Provisioning
PPTX
MongoSF 2011 - Using MongoDB for IGN's Social Platform
PDF
MongoDB Tokyo - Monitoring and Queueing
PDF
MongoDB at MapMyFitness
PPTX
MongoDB Days UK: Tales from the Field
PPTX
An Evening with MongoDB Detroit 2013
PPTX
Black Friday and Cyber Monday- Best Practices for Your E-Commerce Database
PPTX
MongoDB World 2018: Breaking the Mold - Redesigning Dell's E-Commerce Platform
PPTX
Deployment Preparedness
PDF
MongoDB - Warehouse and Aggregator of Events
PDF
Using Spring with NoSQL databases (SpringOne China 2012)
PPTX
Hardware Provisioning
PPTX
Mongodb beijingconf yottaa_3.3
KEY
Scaling with MongoDB
PDF
Memcached Code Camp 2009
KEY
2011 mongo sf-scaling
KEY
Mongo db admin_20110329
PDF
MongoDB@sfr.fr
Agility and Scalability with MongoDB
Discover MongoDB - Israel
Hardware Provisioning
MongoSF 2011 - Using MongoDB for IGN's Social Platform
MongoDB Tokyo - Monitoring and Queueing
MongoDB at MapMyFitness
MongoDB Days UK: Tales from the Field
An Evening with MongoDB Detroit 2013
Black Friday and Cyber Monday- Best Practices for Your E-Commerce Database
MongoDB World 2018: Breaking the Mold - Redesigning Dell's E-Commerce Platform
Deployment Preparedness
MongoDB - Warehouse and Aggregator of Events
Using Spring with NoSQL databases (SpringOne China 2012)
Hardware Provisioning
Mongodb beijingconf yottaa_3.3
Scaling with MongoDB
Memcached Code Camp 2009
2011 mongo sf-scaling
Mongo db admin_20110329
MongoDB@sfr.fr
Ad

Recently uploaded (20)

PDF
Convolutional neural network based encoder-decoder for efficient real-time ob...
PDF
OpenACC and Open Hackathons Monthly Highlights July 2025
PPTX
The various Industrial Revolutions .pptx
PDF
Architecture types and enterprise applications.pdf
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PDF
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
PPTX
Configure Apache Mutual Authentication
PPTX
Benefits of Physical activity for teenagers.pptx
PPTX
Final SEM Unit 1 for mit wpu at pune .pptx
DOCX
search engine optimization ppt fir known well about this
PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
Five Habits of High-Impact Board Members
PDF
Zenith AI: Advanced Artificial Intelligence
PDF
A review of recent deep learning applications in wood surface defect identifi...
PDF
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
PDF
Consumable AI The What, Why & How for Small Teams.pdf
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PPT
Geologic Time for studying geology for geologist
PDF
sustainability-14-14877-v2.pddhzftheheeeee
PDF
STKI Israel Market Study 2025 version august
Convolutional neural network based encoder-decoder for efficient real-time ob...
OpenACC and Open Hackathons Monthly Highlights July 2025
The various Industrial Revolutions .pptx
Architecture types and enterprise applications.pdf
Taming the Chaos: How to Turn Unstructured Data into Decisions
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
Configure Apache Mutual Authentication
Benefits of Physical activity for teenagers.pptx
Final SEM Unit 1 for mit wpu at pune .pptx
search engine optimization ppt fir known well about this
Enhancing emotion recognition model for a student engagement use case through...
Five Habits of High-Impact Board Members
Zenith AI: Advanced Artificial Intelligence
A review of recent deep learning applications in wood surface defect identifi...
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
Consumable AI The What, Why & How for Small Teams.pdf
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
Geologic Time for studying geology for geologist
sustainability-14-14877-v2.pddhzftheheeeee
STKI Israel Market Study 2025 version august

MongoDB at MercadoLibre

Editor's Notes