SlideShare una empresa de Scribd logo
1 de 25
www.autoscout24.com IntroducingMongoDB in a HA multi-site Environment Munich| 10.10.2011 | Sebastian Geib, Jean-Charles Thomas
Seite 2 Jean-Charles Thomas Team Lead Unix Systems and Applications Sebastian Geib Database Administrator |  Autoscout24 MongoDB HA environment|  Sebastian Geib, J.C. Thomas
Index 1 About AutoScout24 2 Why MongoDB? 3 MongoDBarchitectureat AutoScout24 4 TestingMongoDB 5 MongoDBbackup/restore 6 MonitoringMongoDB 7 Conclusion |  Autoscout24 MongoDB HA environment|  Sebastian Geib, J.C. Thomas  Seite 3
AutoScout24 Who arewe? 5.4 Mio Users 14 Countries 1.9 Mio Cars |  Autoscout24 MongoDB HA environment|  Sebastian Geib, J.C. Thomas  Seite 4
AutoScout24 KPI Numbers, Data and Facts fortheoverall Autoscout24 IT Two seperated Data Centers in Germany >1000 Servers, 10 Loadbalancer, 25 Firewalls, 60 development servers 16 Storagesystemes with raw capacity of 800TB 11,2 Mrd. Total Requests (PI + Grabber and Bots) / Month 58 Mio. Image files for 1,9 Mio. Cars 2,1 Gbit/sec Peak Traffic 180TB Data Volume / Month Four Broadband Provider with in Total 13GBit/sec Seite 5 Internet AS44355 Global Traffic Mgmt. Loadbalancer Loadbalancer Firewall Firewall Loadbalancer Loadbalancer Backbone Router Backbone Router Applicationsserver Applicationsserver Database server Database server DC 2 DC 1 |  Autoscout24 MongoDB HA environment|  Sebastian Geib, J.C. Thomas
Index 1 About AutoScout24 2 WhyMongoDB 3 MongoDBarchitectureat AutoScout24 4 TestingMongoDB 5 MongoDBbackup/restore 6 MonitoringMongoDB 7 Conclusion |  Autoscout24 MongoDB HA environment|  Sebastian Geib, J.C. Thomas  Seite 6
Why MongoDB at AutoScout24? New Product 2011: Portal for car inspection and services Complete new application development from scratch for the Front- and Back-ends Let‘s use what we dreamed! Initial Database Requirements Scale for large quantity of data Highly available across Data Centers Flexible database changes (avoid the DBAs as much as possible!) MapReduce functions Easy management MongoDB was choosen as the best Product Product Launch was September 2011 Seite 7 http://werkstatt.autoscout24.de/ |  Autoscout24 MongoDB HA environment|  Sebastian Geib, J.C. Thomas
Index 1 About AutoScout24 2 WhyMongoDB 3 MongoDBarchitectureat AutoScout24 4 TestingMongoDB 5 MongoDBbackup/restore 6 MonitoringMongoDB 7 Conclusion |  Autoscout24 MongoDB HA environment|  Sebastian Geib, J.C. Thomas  Seite 8
Mongo Architecture Seite 8 |  Autoscout24 MongoDB HA environment|  Sebastian Geib, J.C. Thomas
Mongo Architecture Seite 9  Replica set across two data centers: primary and secondary. All four nodes are actively used by the application. Primary data center split in two fire areas. In the primary data center, both primary and secondary nodes can assume the role of a primary automatically. In the secondary data center, both secondary nodes can only be manually promoted to become a primary to avoid split brain situations. Currently running MongoDB1.8.1 All servers virtualized using Vmware ESX 4.1 2 Cores, 4 GB RAM, 100 GB HDD per server |  Autoscout24 MongoDB HA environment|  Sebastian Geib, J.C. Thomas
Index 1 About AutoScout24 2 WhyMongoDB 3 MongoDBarchitectureat AutoScout24 4 TestingMongoDB 5 MongoDBbackup/restore 6 MonitoringMongoDB 7 Conclusion |  Autoscout24 MongoDB HA environment|  Sebastian Geib, J.C. Thomas  Seite 10
MongoDB Robustness Testing On-servertests Seite 11 Running out of disk space on data volume while writing ,[object Object]
On all nodes: it led to error messages in the log but no feedback in the client.Running out of disk space on data volume while reading ,[object Object],Removing volume while writing ,[object Object],Removing volume while reading ,[object Object],|  Autoscout24 MongoDB HA environment|  Sebastian Geib, J.C. Thomas
MongoDB HA Testing 1 Replicasettests Seite 12 Primary node failing while writing ,[object Object]
The failover takes 13 seconds with safe mode enabled.
After reboot the former primary becomes a working secondary.|  Autoscout24 MongoDB HA environment|  Sebastian Geib, J.C. Thomas
MongoDB HA Testing 1 Replicasettests Seite 13 Secondary node failing while reading ,[object Object],Arbiter failing ,[object Object]
Majority remains intact and replica set is working properly.|  Autoscout24 MongoDB HA environment|  Sebastian Geib, J.C. Thomas
MongoDB HA Testing 2 TestingReplica Set in bothdatacenters Seite 14 Primary and Secondary nodes failing in main data center while writing ,[object Object]
Cluster remains without primary.
Reads are handled properly.Arbiter failing (in both data centers) ,[object Object]
Replica set still working fine due to majority being in place.|  Autoscout24 MongoDB HA environment|  Sebastian Geib, J.C. Thomas
Index 1 About AutoScout24 2 WhyMongoDB 3 MongoDBarchitectureat AutoScout24 4 TestingMongoDB 5 MongoDBbackup/restore 6 MonitoringMongoDB 7 Conclusion |  Autoscout24 MongoDB HA environment|  Sebastian Geib, J.C. Thomas  Seite 15
MongoDB Backup Backingupdataandgettingintotrouble Seite 16 Testingandpreparingbackupandrestore was themostboringtask. Long waitingwith large setsoftestdata. Different attempts: ,[object Object]
Working fine. Restore a bitmorecomplicated.

Más contenido relacionado

La actualidad más candente

Availability and scalability in mongo
Availability and scalability in mongoAvailability and scalability in mongo
Availability and scalability in mongo
Md. Khairul Anam
 
MongoDB and server performance
MongoDB and server performanceMongoDB and server performance
MongoDB and server performance
Alon Horev
 
Backup, restore and repair database in mongo db linux file
Backup, restore and repair database in mongo db linux fileBackup, restore and repair database in mongo db linux file
Backup, restore and repair database in mongo db linux file
Prem Regmi
 

La actualidad más candente (20)

Clug 2011 March web server optimisation
Clug 2011 March  web server optimisationClug 2011 March  web server optimisation
Clug 2011 March web server optimisation
 
Caching methodology and strategies
Caching methodology and strategiesCaching methodology and strategies
Caching methodology and strategies
 
Webinar: Keeping Your MongoDB Data Safe
Webinar: Keeping Your MongoDB Data SafeWebinar: Keeping Your MongoDB Data Safe
Webinar: Keeping Your MongoDB Data Safe
 
Webinar: Backups + Disaster Recovery
Webinar: Backups + Disaster RecoveryWebinar: Backups + Disaster Recovery
Webinar: Backups + Disaster Recovery
 
Availability and scalability in mongo
Availability and scalability in mongoAvailability and scalability in mongo
Availability and scalability in mongo
 
How to monitor MongoDB
How to monitor MongoDBHow to monitor MongoDB
How to monitor MongoDB
 
MongoDB and server performance
MongoDB and server performanceMongoDB and server performance
MongoDB and server performance
 
Postgres connections at scale
Postgres connections at scalePostgres connections at scale
Postgres connections at scale
 
Webinar: Backups and Disaster Recovery
Webinar: Backups and Disaster RecoveryWebinar: Backups and Disaster Recovery
Webinar: Backups and Disaster Recovery
 
Backing Up Data with MMS
Backing Up Data with MMSBacking Up Data with MMS
Backing Up Data with MMS
 
Let the Tiger Roar! - MongoDB 3.0 + WiredTiger
Let the Tiger Roar! - MongoDB 3.0 + WiredTigerLet the Tiger Roar! - MongoDB 3.0 + WiredTiger
Let the Tiger Roar! - MongoDB 3.0 + WiredTiger
 
MySQL on AWS RDS
MySQL on AWS RDSMySQL on AWS RDS
MySQL on AWS RDS
 
Intro to MySQL Master Slave Replication
Intro to MySQL Master Slave ReplicationIntro to MySQL Master Slave Replication
Intro to MySQL Master Slave Replication
 
Using ZFS file system with MySQL
Using ZFS file system with MySQLUsing ZFS file system with MySQL
Using ZFS file system with MySQL
 
Strategies for Backing Up MongoDB
Strategies for Backing Up MongoDBStrategies for Backing Up MongoDB
Strategies for Backing Up MongoDB
 
Clug 2012 March web server optimisation
Clug 2012 March   web server optimisationClug 2012 March   web server optimisation
Clug 2012 March web server optimisation
 
Backup, Restore, and Disaster Recovery
Backup, Restore, and Disaster RecoveryBackup, Restore, and Disaster Recovery
Backup, Restore, and Disaster Recovery
 
MongoDB 101 & Beyond: Get Started in MongoDB 3.0, Preview 3.2 & Demo of Ops M...
MongoDB 101 & Beyond: Get Started in MongoDB 3.0, Preview 3.2 & Demo of Ops M...MongoDB 101 & Beyond: Get Started in MongoDB 3.0, Preview 3.2 & Demo of Ops M...
MongoDB 101 & Beyond: Get Started in MongoDB 3.0, Preview 3.2 & Demo of Ops M...
 
Mysql data replication
Mysql data replicationMysql data replication
Mysql data replication
 
Backup, restore and repair database in mongo db linux file
Backup, restore and repair database in mongo db linux fileBackup, restore and repair database in mongo db linux file
Backup, restore and repair database in mongo db linux file
 

Destacado

High Performance MongoDB Clusters with Amazon EBS Provisioned IOPS
High Performance MongoDB Clusters with Amazon EBS Provisioned IOPS High Performance MongoDB Clusters with Amazon EBS Provisioned IOPS
High Performance MongoDB Clusters with Amazon EBS Provisioned IOPS
Amazon Web Services
 

Destacado (6)

MongoDB San Francisco DrupalCon 2010
MongoDB San Francisco DrupalCon 2010MongoDB San Francisco DrupalCon 2010
MongoDB San Francisco DrupalCon 2010
 
Шардинг в MongoDB, Henrik Ingo (MongoDB)
Шардинг в MongoDB, Henrik Ingo (MongoDB)Шардинг в MongoDB, Henrik Ingo (MongoDB)
Шардинг в MongoDB, Henrik Ingo (MongoDB)
 
Production deployment
Production deploymentProduction deployment
Production deployment
 
Multi Data Center Strategies
Multi Data Center StrategiesMulti Data Center Strategies
Multi Data Center Strategies
 
Scaling MongoDB on Amazon Web Services (DAT209) | AWS re:Invent 2013
Scaling MongoDB on Amazon Web Services (DAT209) | AWS re:Invent 2013Scaling MongoDB on Amazon Web Services (DAT209) | AWS re:Invent 2013
Scaling MongoDB on Amazon Web Services (DAT209) | AWS re:Invent 2013
 
High Performance MongoDB Clusters with Amazon EBS Provisioned IOPS
High Performance MongoDB Clusters with Amazon EBS Provisioned IOPS High Performance MongoDB Clusters with Amazon EBS Provisioned IOPS
High Performance MongoDB Clusters with Amazon EBS Provisioned IOPS
 

Similar a Introducing MongoDB in a multi-site HA environment

upload.txt
upload.txtupload.txt
upload.txt
IshNexus
 
MySQL 5.5&5.6 new features summary
MySQL 5.5&5.6 new features summaryMySQL 5.5&5.6 new features summary
MySQL 5.5&5.6 new features summary
Louis liu
 

Similar a Introducing MongoDB in a multi-site HA environment (20)

Mongo db report
Mongo db reportMongo db report
Mongo db report
 
MongoDB Europe 2016 - Deploying MongoDB on NetApp storage
MongoDB Europe 2016 - Deploying MongoDB on NetApp storageMongoDB Europe 2016 - Deploying MongoDB on NetApp storage
MongoDB Europe 2016 - Deploying MongoDB on NetApp storage
 
Mdb dn 2016_07_elastic_search
Mdb dn 2016_07_elastic_searchMdb dn 2016_07_elastic_search
Mdb dn 2016_07_elastic_search
 
Mdb dn 2016_09_34_features
Mdb dn 2016_09_34_featuresMdb dn 2016_09_34_features
Mdb dn 2016_09_34_features
 
Post mortem talk - Node Interactive EU
Post mortem talk - Node Interactive EUPost mortem talk - Node Interactive EU
Post mortem talk - Node Interactive EU
 
Management and Automation of MongoDB Clusters - Slides
Management and Automation of MongoDB Clusters - SlidesManagement and Automation of MongoDB Clusters - Slides
Management and Automation of MongoDB Clusters - Slides
 
upload.txt
upload.txtupload.txt
upload.txt
 
uploaded at 10:56
uploaded at 10:56uploaded at 10:56
uploaded at 10:56
 
edit and approve 2
edit and approve 2edit and approve 2
edit and approve 2
 
upload.txt
upload.txtupload.txt
upload.txt
 
MySQL 5.5&5.6 new features summary
MySQL 5.5&5.6 new features summaryMySQL 5.5&5.6 new features summary
MySQL 5.5&5.6 new features summary
 
Operationalizing the Value of MongoDB: The MetLife Experience
Operationalizing the Value of MongoDB: The MetLife ExperienceOperationalizing the Value of MongoDB: The MetLife Experience
Operationalizing the Value of MongoDB: The MetLife Experience
 
Silicon Valley Code Camp 2014 - Advanced MongoDB
Silicon Valley Code Camp 2014 - Advanced MongoDBSilicon Valley Code Camp 2014 - Advanced MongoDB
Silicon Valley Code Camp 2014 - Advanced MongoDB
 
Business Rules on Hadoop
Business Rules on HadoopBusiness Rules on Hadoop
Business Rules on Hadoop
 
Mongo db - How we use Go and MongoDB by Sam Helman
Mongo db - How we use Go and MongoDB by Sam HelmanMongo db - How we use Go and MongoDB by Sam Helman
Mongo db - How we use Go and MongoDB by Sam Helman
 
Optimizing LAMPhp Applications
Optimizing LAMPhp ApplicationsOptimizing LAMPhp Applications
Optimizing LAMPhp Applications
 
Philadelphia MongoDB User Group - Your First MongoDB Application
Philadelphia MongoDB User Group - Your First MongoDB ApplicationPhiladelphia MongoDB User Group - Your First MongoDB Application
Philadelphia MongoDB User Group - Your First MongoDB Application
 
Mongo db pefrormance optimization strategies
Mongo db pefrormance optimization strategiesMongo db pefrormance optimization strategies
Mongo db pefrormance optimization strategies
 
Is It Fast? : Measuring MongoDB Performance
Is It Fast? : Measuring MongoDB PerformanceIs It Fast? : Measuring MongoDB Performance
Is It Fast? : Measuring MongoDB Performance
 
2019 PHP Serbia - Boosting your performance with Blackfire
2019 PHP Serbia - Boosting your performance with Blackfire2019 PHP Serbia - Boosting your performance with Blackfire
2019 PHP Serbia - Boosting your performance with Blackfire
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Último (20)

ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 

Introducing MongoDB in a multi-site HA environment

  • 1. www.autoscout24.com IntroducingMongoDB in a HA multi-site Environment Munich| 10.10.2011 | Sebastian Geib, Jean-Charles Thomas
  • 2. Seite 2 Jean-Charles Thomas Team Lead Unix Systems and Applications Sebastian Geib Database Administrator | Autoscout24 MongoDB HA environment| Sebastian Geib, J.C. Thomas
  • 3. Index 1 About AutoScout24 2 Why MongoDB? 3 MongoDBarchitectureat AutoScout24 4 TestingMongoDB 5 MongoDBbackup/restore 6 MonitoringMongoDB 7 Conclusion | Autoscout24 MongoDB HA environment| Sebastian Geib, J.C. Thomas Seite 3
  • 4. AutoScout24 Who arewe? 5.4 Mio Users 14 Countries 1.9 Mio Cars | Autoscout24 MongoDB HA environment| Sebastian Geib, J.C. Thomas Seite 4
  • 5. AutoScout24 KPI Numbers, Data and Facts fortheoverall Autoscout24 IT Two seperated Data Centers in Germany >1000 Servers, 10 Loadbalancer, 25 Firewalls, 60 development servers 16 Storagesystemes with raw capacity of 800TB 11,2 Mrd. Total Requests (PI + Grabber and Bots) / Month 58 Mio. Image files for 1,9 Mio. Cars 2,1 Gbit/sec Peak Traffic 180TB Data Volume / Month Four Broadband Provider with in Total 13GBit/sec Seite 5 Internet AS44355 Global Traffic Mgmt. Loadbalancer Loadbalancer Firewall Firewall Loadbalancer Loadbalancer Backbone Router Backbone Router Applicationsserver Applicationsserver Database server Database server DC 2 DC 1 | Autoscout24 MongoDB HA environment| Sebastian Geib, J.C. Thomas
  • 6. Index 1 About AutoScout24 2 WhyMongoDB 3 MongoDBarchitectureat AutoScout24 4 TestingMongoDB 5 MongoDBbackup/restore 6 MonitoringMongoDB 7 Conclusion | Autoscout24 MongoDB HA environment| Sebastian Geib, J.C. Thomas Seite 6
  • 7. Why MongoDB at AutoScout24? New Product 2011: Portal for car inspection and services Complete new application development from scratch for the Front- and Back-ends Let‘s use what we dreamed! Initial Database Requirements Scale for large quantity of data Highly available across Data Centers Flexible database changes (avoid the DBAs as much as possible!) MapReduce functions Easy management MongoDB was choosen as the best Product Product Launch was September 2011 Seite 7 http://werkstatt.autoscout24.de/ | Autoscout24 MongoDB HA environment| Sebastian Geib, J.C. Thomas
  • 8. Index 1 About AutoScout24 2 WhyMongoDB 3 MongoDBarchitectureat AutoScout24 4 TestingMongoDB 5 MongoDBbackup/restore 6 MonitoringMongoDB 7 Conclusion | Autoscout24 MongoDB HA environment| Sebastian Geib, J.C. Thomas Seite 8
  • 9. Mongo Architecture Seite 8 | Autoscout24 MongoDB HA environment| Sebastian Geib, J.C. Thomas
  • 10. Mongo Architecture Seite 9 Replica set across two data centers: primary and secondary. All four nodes are actively used by the application. Primary data center split in two fire areas. In the primary data center, both primary and secondary nodes can assume the role of a primary automatically. In the secondary data center, both secondary nodes can only be manually promoted to become a primary to avoid split brain situations. Currently running MongoDB1.8.1 All servers virtualized using Vmware ESX 4.1 2 Cores, 4 GB RAM, 100 GB HDD per server | Autoscout24 MongoDB HA environment| Sebastian Geib, J.C. Thomas
  • 11. Index 1 About AutoScout24 2 WhyMongoDB 3 MongoDBarchitectureat AutoScout24 4 TestingMongoDB 5 MongoDBbackup/restore 6 MonitoringMongoDB 7 Conclusion | Autoscout24 MongoDB HA environment| Sebastian Geib, J.C. Thomas Seite 10
  • 12.
  • 13.
  • 14.
  • 15. The failover takes 13 seconds with safe mode enabled.
  • 16. After reboot the former primary becomes a working secondary.| Autoscout24 MongoDB HA environment| Sebastian Geib, J.C. Thomas
  • 17.
  • 18. Majority remains intact and replica set is working properly.| Autoscout24 MongoDB HA environment| Sebastian Geib, J.C. Thomas
  • 19.
  • 21.
  • 22. Replica set still working fine due to majority being in place.| Autoscout24 MongoDB HA environment| Sebastian Geib, J.C. Thomas
  • 23. Index 1 About AutoScout24 2 WhyMongoDB 3 MongoDBarchitectureat AutoScout24 4 TestingMongoDB 5 MongoDBbackup/restore 6 MonitoringMongoDB 7 Conclusion | Autoscout24 MongoDB HA environment| Sebastian Geib, J.C. Thomas Seite 15
  • 24.
  • 25. Working fine. Restore a bitmorecomplicated.
  • 26. Dump
  • 27. Easiertorestoreandtoextractspecificdatafrom a restore.Forourcurrentdatavolumemongodumpisthebestchoiceforus. Locking an issue (verifyyourlocksarereleased after backuporyou‘llbe in trouble). | Autoscout24 MongoDB HA environment| Sebastian Geib, J.C. Thomas
  • 28.
  • 29. With a restore in three 40 minute chunks a restore was possible
  • 30.
  • 31. It took 30 minutes to get it back up and running| Autoscout24 MongoDB HA environment| Sebastian Geib, J.C. Thomas
  • 32. Index 1 About AutoScout24 2 WhyMongoDB 3 MongoDBarchitectureat AutoScout24 4 TestingMongoDB 5 MongoDBbackup/restore 6 MonitoringMongoDB 7 Conclusion | Autoscout24 MongoDB HA environment| Sebastian Geib, J.C. Thomas Seite 18
  • 33.
  • 35.
  • 36. CPU, Load, Memory, Network, I/O, Disks
  • 37. MongoDB Specific: Commands, Connections, Replica Set State, Flushing, Locking, Memory Consumption, Data file size| Autoscout24 MongoDB HA environment| Sebastian Geib, J.C. Thomas
  • 38.
  • 40. Windows-based which needs to make heavy use of Cygwin to watch Linux servers.
  • 41. Integrates with AutoScout24 platform monitoring.
  • 42.
  • 43. CPU, Load, Memory, Network, I/O, Swap, Disks
  • 44. MongoDB Specific: Availability, Commands, Connections, Replica Set State, Flushing, Locking, Memory Consumption| Autoscout24 MongoDB HA environment| Sebastian Geib, J.C. Thomas
  • 45. Index 1 About AutoScout24 2 WhyMongoDB 3 MongoDBarchitectureat AutoScout24 4 TestingMongoDB 5 MongoDBbackup/restore 6 MonitoringMongoDB 7 Conclusion | Autoscout24 MongoDB HA environment| Sebastian Geib, J.C. Thomas Seite 21
  • 46. MongoDB Conclusion What‘sbeenimportantforus Seite 22 Conclusion: As longasreplicasetsareworkingfinetheyaregreat. Watch theirhealth and youwon‘tgetintotrouble. Overall robustnesscouldbefurtherimprovedwithbettererrorhandling and reportingfromtheMongoDBserver. C# driverneedssomefurthertweakingtoavoidaccesses on arbiters. The currentreleasefixes this but hasn‘tbeenintroduced in productionyet. Whenourprimarydatacenteris down, noprimarycanbeelected in thesecondarydatacenter due tomissingmajority. This was our design choicetohavebettercontroloverprimaryelection. Permissionsneedtobeset in a moreatomicfashion. Most ofourteammembersarecomingfrom an Oracle background so theyareexpecting a lot. | Autoscout24 MongoDB HA environment| Sebastian Geib, J.C. Thomas
  • 47. MongoDB Outlook Whatwearelookingforwardto Seite 23 Outlook: MongoDB2.0 looksreallypromising forus. Wearecurrentlywaitingforthefirstbugfixrelease and will thenstartourtesting. Improveddatacenterawareness a bigwinforus. Replicasetconfigurationwithminority in placeisreallyusefulforourfailoverscenario. | Autoscout24 MongoDB HA environment| Sebastian Geib, J.C. Thomas
  • 48. Seite 24 Questions? jcthomas@autoscout24.de sgeib@autoscout24.de Looking for a great job as DBA in one of the largest internet companies in Europe? Great! We are looking to hire DBAs. Have a look on our homepage or contact us directly. | Autoscout24 MongoDB HA environment| Sebastian Geib, J.C. Thomas