SlideShare a Scribd company logo
Administration
        Michael DelNegro
 Principal Database Administrator
               AOL
About Me

• DBA at AOL (Dulles) for six years
• Background in Sybase
• Now MySQL, PostgreSQL and NoSQL
• I heart Big Data
• Operations
MongoDB at AOL

• In use since Summer 2010
• I currently administer two applications for
  MapQuest and Patch
• There are other MongoDB applications in
  use throughout the company and more on
  the way
MapQuest App
• Tracks User Profile Information
• V. 1.6.5.latest (just upgraded from 1.6.3)
• 26 Total Hosts, CentOS 5, 16GB RAM
• 300 million users, 130 million saved maps
• Replica Sets
• 3 Sharded Collections
 • lookup, east coast, west coast
Patch App

• Tracks User Activity
• Master, 2 Slaves
• V. 1.6.3
• About 100GB of data
• Throwaway data (for now)
About Patch
• “HyperLocal” news sites across the
  country
• Fills gap in coverage left by local
  newspapers
• Currently 800 sites are live
• 1000+ by end of 2011
Nearby Patch Sites
• Vienna (ex. vienna.patch.com)
• Ashburn
• Reston
• McLean
• CollegePark
• GreaterAnnapolis
• 50+ in DC Area
Upcoming Ops Plans

• Upgrade to 1.8
• Migrate Patch to Replica Sets
• Move MapQuest to bigger hardware (16GB
  -> 64GB memory)
• Add additional slaves
Admin Tips
• Slaves are a MUST pre1.8
• Use 64 bit version
 • 32 bit version has 2.5 GB storage limit
• Use xfs or ext4
• Keep eye on oplog size
• Turn off atime & dtime
• Consider using getLastError()
More Admin Tips
• Increase File Descriptor Limits
• Do not use kill -9 (pre-1.8)
• Consider having a slave on replication delay
 • -- slavedelay <seconds>
• db.runCommand(“logRotate”)
• Keep db.<collection>.totalIndexSize() less
  than RAM
Even More Admin Tips
• Omit parenthesis to see command details
• 5 Primitives of Mongo
 • insert, remove, update, find, getMore
• Replication is slave polling master process
• Master and slaves each have their own
  oplog
• Choose shard key carefully (ex. timestamp)
Admin Tools
• mongodump-mongorestore
 • use fsync and lock database to ensure
    consistent backup
• fsync and lock are a must for file system
  backups (ex LVM)
• http://localhost:28017 (server port + 1000)
• db.currentOp()
More Admin Tools
• mongostat
• db.printReplicationInfo()
• db.serverStatus()
• db.<collection>.stats()
• Database Profiler
• Explain
Admin Resources
• mongodb.org
 • Events
 • Forums
• Wordnik Mongo Admin Tools (Github)
• Mongo Snippets (Github)
• IRC (freenode #mongodb)
More Admin Resources
• slideshare (use time-based search)
• GUI Admin Tools
 • MongoVUE
 • Others
• Kristina Chodorow's Blog
• Boxed Ice
Even More Resources
• Follow @MongoQuestion (StackOverflow)
• MongoDB on Quora (@q_mongodb)
• 10gen Deployment Strategies Slides
• Books
• Training
• 10gen Support
New MongoDB Release
• 1.8 (Out Today! - March 16)
 • Single server durability (journaling)
 • Enhancements to sharding & replica sets
 • Covered indexes
 • Tab Completion
 • Rename fields without pulling down
    object
Future Releases
• 2.0 (May/June?)
 • Better map-reduce and aggregation
 • Improved concurrency
 • Online compaction
 • TTL time-out collections
• Beyond
 • full-text search?
Thank You!

• www.slideshare.net/radiocats
• @radiocats on Twitter
• www.linkedin.com/in/mdelnegro

More Related Content

What's hot (19)

PDF
Key-Value-Stores -- The Key to Scaling?
Tim Lossen
 
PPTX
Introduction to Redis
TO THE NEW | Technology
 
PDF
Using Sphinx for Search in PHP
Mike Lively
 
PDF
Real time fulltext search with sphinx
Adrian Nuta
 
PDF
Cassandra vs. Redis
Tim Lossen
 
PDF
Let's Compare: A Benchmark review of InfluxDB and Elasticsearch
InfluxData
 
PPTX
Operationalizing MongoDB at AOL
radiocats
 
PDF
Rich storytelling with Drupal, Paragraphs and Islandora DAMS
alxbrdg
 
PPTX
Hadoop Training in Hyderabad
Rajitha D
 
PPTX
Utilizing the OpenNTF Domino API
Oliver Busse
 
PPTX
Benchmarking Redis by itself and versus other NoSQL databases
Itamar Haber
 
PPTX
Sphinx - High performance full-text search for MySQL
Nguyen Van Vuong
 
PPTX
RESTful API – How to Consume, Extract, Store and Visualize Data with InfluxDB...
InfluxData
 
PDF
BuilHigh Performance Weibo Platform-Qcon2011
Yiwei Ma
 
PPT
MongoDB @ fliptop
Robbie Cheng
 
PDF
The Practice of Alluxio in JD.com
Alluxio, Inc.
 
PDF
Optimizing Latency-Sensitive Queries for Presto at Facebook: A Collaboration ...
Alluxio, Inc.
 
PDF
Realtime Search Infrastructure at Craigslist (OpenWest 2014)
Jeremy Zawodny
 
PPTX
Elasticsearch Arcihtecture & What's New in Version 5
Burak TUNGUT
 
Key-Value-Stores -- The Key to Scaling?
Tim Lossen
 
Introduction to Redis
TO THE NEW | Technology
 
Using Sphinx for Search in PHP
Mike Lively
 
Real time fulltext search with sphinx
Adrian Nuta
 
Cassandra vs. Redis
Tim Lossen
 
Let's Compare: A Benchmark review of InfluxDB and Elasticsearch
InfluxData
 
Operationalizing MongoDB at AOL
radiocats
 
Rich storytelling with Drupal, Paragraphs and Islandora DAMS
alxbrdg
 
Hadoop Training in Hyderabad
Rajitha D
 
Utilizing the OpenNTF Domino API
Oliver Busse
 
Benchmarking Redis by itself and versus other NoSQL databases
Itamar Haber
 
Sphinx - High performance full-text search for MySQL
Nguyen Van Vuong
 
RESTful API – How to Consume, Extract, Store and Visualize Data with InfluxDB...
InfluxData
 
BuilHigh Performance Weibo Platform-Qcon2011
Yiwei Ma
 
MongoDB @ fliptop
Robbie Cheng
 
The Practice of Alluxio in JD.com
Alluxio, Inc.
 
Optimizing Latency-Sensitive Queries for Presto at Facebook: A Collaboration ...
Alluxio, Inc.
 
Realtime Search Infrastructure at Craigslist (OpenWest 2014)
Jeremy Zawodny
 
Elasticsearch Arcihtecture & What's New in Version 5
Burak TUNGUT
 

Viewers also liked (13)

KEY
Mongo db resources_20111116
radiocats
 
PPT
Project Management Meth V1 2006
Johan Delaure
 
PPTX
MySQL Resources
radiocats
 
PDF
Vep Ereading Event 20120926
Johan Delaure
 
PPT
Vep Iaz 2011 20110916
Johan Delaure
 
PDF
Pldc2012 monitoring-and-trending-with-mysql
radiocats
 
PPTX
Rapportering resultaten Innovatief Aanbesteden op VEP op ia_20130913
Johan Delaure
 
PDF
1 startdagen welkom_v20140310
Johan Delaure
 
PPT
Open Vlacc V3 2007
Johan Delaure
 
PPT
Vep ebf
Johan Delaure
 
PPT
Project Vlaams Eboek platform
Johan Delaure
 
PPT
Vlaccii Informatie2003 V2
Johan Delaure
 
KEY
MongoDB Administration 20110922
radiocats
 
Mongo db resources_20111116
radiocats
 
Project Management Meth V1 2006
Johan Delaure
 
MySQL Resources
radiocats
 
Vep Ereading Event 20120926
Johan Delaure
 
Vep Iaz 2011 20110916
Johan Delaure
 
Pldc2012 monitoring-and-trending-with-mysql
radiocats
 
Rapportering resultaten Innovatief Aanbesteden op VEP op ia_20130913
Johan Delaure
 
1 startdagen welkom_v20140310
Johan Delaure
 
Open Vlacc V3 2007
Johan Delaure
 
Vep ebf
Johan Delaure
 
Project Vlaams Eboek platform
Johan Delaure
 
Vlaccii Informatie2003 V2
Johan Delaure
 
MongoDB Administration 20110922
radiocats
 
Ad

Similar to Mongo db admin_20110316 (20)

PPTX
MongoDC 2012: "Operationalizing" MongoDB@AOL
MongoDB
 
PDF
OSDC 2017 | Lessons from database failures by Colin Charles
NETWAYS
 
PDF
The MySQL Server ecosystem in 2016
sys army
 
PDF
Intro to big data choco devday - 23-01-2014
Hassan Islamov
 
PDF
[DBA]_HiramFleitas_SQL_PASS_Summit_2017_Summary
Hiram Fleitas León
 
PPTX
Utilizing the OpenNTF Domino API
Oliver Busse
 
PPTX
Monitoring MongoDB’s Engines in the Wild
Tim Vaillancourt
 
PDF
OSMC 2016 | Monitor your Infrastructure with Elastic Beats by Monica Sarbu
NETWAYS
 
PDF
OSMC 2016 - Monitor your infrastructure with Elastic Beats by Monica Sarbu
NETWAYS
 
PDF
Transitioning From SQL Server to MySQL - Presentation from Percona Live 2016
Dylan Butler
 
PPTX
Webinar 2017. Supercharge your analytics with ClickHouse. Alexander Zaitsev
Altinity Ltd
 
PDF
Databases in the Hosted Cloud
Colin Charles
 
PDF
What's new in JBoss ON 3.2
Thomas Segismont
 
PDF
Scalable and High available Distributed File System Metadata Service Using gR...
Alluxio, Inc.
 
PDF
Joel Jacobson (Datastax) - Diagnosing Cassandra Problems in Production
Outlyer
 
PPTX
Utilizing the open ntf domino api
Oliver Busse
 
PDF
The MySQL Server ecosystem in 2016
Colin Charles
 
PDF
Lessons from database failures
Colin Charles
 
KEY
Deployment Strategies (Mongo Austin)
MongoDB
 
PPT
MySQL Performance Tuning at COSCUP 2014
Ryusuke Kajiyama
 
MongoDC 2012: "Operationalizing" MongoDB@AOL
MongoDB
 
OSDC 2017 | Lessons from database failures by Colin Charles
NETWAYS
 
The MySQL Server ecosystem in 2016
sys army
 
Intro to big data choco devday - 23-01-2014
Hassan Islamov
 
[DBA]_HiramFleitas_SQL_PASS_Summit_2017_Summary
Hiram Fleitas León
 
Utilizing the OpenNTF Domino API
Oliver Busse
 
Monitoring MongoDB’s Engines in the Wild
Tim Vaillancourt
 
OSMC 2016 | Monitor your Infrastructure with Elastic Beats by Monica Sarbu
NETWAYS
 
OSMC 2016 - Monitor your infrastructure with Elastic Beats by Monica Sarbu
NETWAYS
 
Transitioning From SQL Server to MySQL - Presentation from Percona Live 2016
Dylan Butler
 
Webinar 2017. Supercharge your analytics with ClickHouse. Alexander Zaitsev
Altinity Ltd
 
Databases in the Hosted Cloud
Colin Charles
 
What's new in JBoss ON 3.2
Thomas Segismont
 
Scalable and High available Distributed File System Metadata Service Using gR...
Alluxio, Inc.
 
Joel Jacobson (Datastax) - Diagnosing Cassandra Problems in Production
Outlyer
 
Utilizing the open ntf domino api
Oliver Busse
 
The MySQL Server ecosystem in 2016
Colin Charles
 
Lessons from database failures
Colin Charles
 
Deployment Strategies (Mongo Austin)
MongoDB
 
MySQL Performance Tuning at COSCUP 2014
Ryusuke Kajiyama
 
Ad

Recently uploaded (20)

PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PDF
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
PPTX
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
PDF
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
PPTX
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
PPTX
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PPTX
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PDF
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
PDF
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
PDF
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
PDF
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PDF
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 

Mongo db admin_20110316

  • 1. Administration Michael DelNegro Principal Database Administrator AOL
  • 2. About Me • DBA at AOL (Dulles) for six years • Background in Sybase • Now MySQL, PostgreSQL and NoSQL • I heart Big Data • Operations
  • 3. MongoDB at AOL • In use since Summer 2010 • I currently administer two applications for MapQuest and Patch • There are other MongoDB applications in use throughout the company and more on the way
  • 4. MapQuest App • Tracks User Profile Information • V. 1.6.5.latest (just upgraded from 1.6.3) • 26 Total Hosts, CentOS 5, 16GB RAM • 300 million users, 130 million saved maps • Replica Sets • 3 Sharded Collections • lookup, east coast, west coast
  • 5. Patch App • Tracks User Activity • Master, 2 Slaves • V. 1.6.3 • About 100GB of data • Throwaway data (for now)
  • 6. About Patch • “HyperLocal” news sites across the country • Fills gap in coverage left by local newspapers • Currently 800 sites are live • 1000+ by end of 2011
  • 7. Nearby Patch Sites • Vienna (ex. vienna.patch.com) • Ashburn • Reston • McLean • CollegePark • GreaterAnnapolis • 50+ in DC Area
  • 8. Upcoming Ops Plans • Upgrade to 1.8 • Migrate Patch to Replica Sets • Move MapQuest to bigger hardware (16GB -> 64GB memory) • Add additional slaves
  • 9. Admin Tips • Slaves are a MUST pre1.8 • Use 64 bit version • 32 bit version has 2.5 GB storage limit • Use xfs or ext4 • Keep eye on oplog size • Turn off atime & dtime • Consider using getLastError()
  • 10. More Admin Tips • Increase File Descriptor Limits • Do not use kill -9 (pre-1.8) • Consider having a slave on replication delay • -- slavedelay <seconds> • db.runCommand(“logRotate”) • Keep db.<collection>.totalIndexSize() less than RAM
  • 11. Even More Admin Tips • Omit parenthesis to see command details • 5 Primitives of Mongo • insert, remove, update, find, getMore • Replication is slave polling master process • Master and slaves each have their own oplog • Choose shard key carefully (ex. timestamp)
  • 12. Admin Tools • mongodump-mongorestore • use fsync and lock database to ensure consistent backup • fsync and lock are a must for file system backups (ex LVM) • http://localhost:28017 (server port + 1000) • db.currentOp()
  • 13. More Admin Tools • mongostat • db.printReplicationInfo() • db.serverStatus() • db.<collection>.stats() • Database Profiler • Explain
  • 14. Admin Resources • mongodb.org • Events • Forums • Wordnik Mongo Admin Tools (Github) • Mongo Snippets (Github) • IRC (freenode #mongodb)
  • 15. More Admin Resources • slideshare (use time-based search) • GUI Admin Tools • MongoVUE • Others • Kristina Chodorow's Blog • Boxed Ice
  • 16. Even More Resources • Follow @MongoQuestion (StackOverflow) • MongoDB on Quora (@q_mongodb) • 10gen Deployment Strategies Slides • Books • Training • 10gen Support
  • 17. New MongoDB Release • 1.8 (Out Today! - March 16) • Single server durability (journaling) • Enhancements to sharding & replica sets • Covered indexes • Tab Completion • Rename fields without pulling down object
  • 18. Future Releases • 2.0 (May/June?) • Better map-reduce and aggregation • Improved concurrency • Online compaction • TTL time-out collections • Beyond • full-text search?
  • 19. Thank You! • www.slideshare.net/radiocats • @radiocats on Twitter • www.linkedin.com/in/mdelnegro

Editor's Notes