SlideShare a Scribd company logo
1 of 8
MONGO DB PRODUCTION CLUSTER
CREATED BY : SOURABH AGGARWAL
COLLECTIONS : In MONGO-DB collection of document called as collections, can
compare with tables in the RDMS, but it didn’t have any defined structure.
DOCUMENTS : Is the bson, each any every entry in the mongo-db is stored as
document.
BSON : Bson stands for binary JSON, JSON which have data type accociated with
values.
INDEX : Indexes are used is mongo-db to search any records effectively with in
the collection, mongo-db default index is _id. We can create another field or set
of fields also as the index, but it require additional space in memory for storage.
MONGO-DB BASICS:
REPLICA : Is the replica or copy of the shard/storage, will be used when main
shard is down.
SHARD : Is the primary storage for all the data in the Mongo-DB cluster
Mongo-DB Query Router(Mongos) : Is the front face for all the client, all the
request for the query will be served by the Mongos.
Configuration server : Used to keep all the configuration related to the
mongodb cluster, like packer movement, replica, shard etc configuration.
SHARD KEY : Used to divide data across nodes, configured at collection level in
mongo db.
MONGO-DB SHARDED PRODUCTION CLUSTER COMPONENTS
REPLICA : Is the replica or copy of the shard/storage, will be used when main
shard is down.
SHARD : Is the primary storage for all the data in the Mongo-DB cluster
Mongo-DB Query Router(Mongos) : Is the front face for all the client, all the
request for the query will be served by the Mongos.
Configuration server : Used to keep all the configuration related to the
mongodb cluster, like packer movement, replica, shard etc configuration.
SHARD KEY : Used to divide data across nodes, configured at collection level in
mongo db.
REPLICA : Is the replica or copy of the shard/storage, will be used when main
shard(node) is down.
SHARD : Is the primary storage for all the data in the Mongo-DB cluster.
Mongo-DB Query Router(Mongos) : Is the front face for all the client, all the
request for the query will be served by the Mongos.
Configuration server : Used to keep all the configuration related to the
mongodb cluster, like packet movement, replica, shard etc.
SHARD KEY : Used to divide data across nodes, configured at collection level in
mongo db, once configured can’t be changed.
MONGO-DB SHARDED PRODUCTION CLUSTER COMPONENTS
MONGO REPLICA
SERVER 1 SERVER 2
CLIENT
CLIENT
MONGO-DB SINGLE NODE DESIGN
MONGO REPLICA
SERVER 1 SERVER 2
CLIENT
CLIENT
CLIENT
CLIENT
MONGO-DB SINGLE NODE FAIL OVER
CONFIG 1 CONFIG 2 CONFIG 3
SLAVE 1 REPLICA
MONGOS
CLIENT
CLIENT
SLAVE 2 REPLICA
SLAVE 3 REPLICA
MONGO-DB THREE NODE SHARDED CLUSTER DESIGN
CONFIG 1 CONFIG 2 CONFIG 3
SLAVE 1 REPLICA
MONGOS
CLIENT
CLIENT
SLAVE 2 REPLICA
SLAVE 3 REPLICA
MONGO-DB THREE NODE SHARDED CLUSTER FAIL OVER

More Related Content

What's hot

What's hot (8)

S3 l6 db2 - memory model
S3 l6   db2 - memory modelS3 l6   db2 - memory model
S3 l6 db2 - memory model
 
HBASE Overview
HBASE OverviewHBASE Overview
HBASE Overview
 
Mongo db onepage
Mongo db onepageMongo db onepage
Mongo db onepage
 
Quick overview of MongoDB
Quick overview of MongoDBQuick overview of MongoDB
Quick overview of MongoDB
 
Sample database design methodology
Sample database design methodologySample database design methodology
Sample database design methodology
 
Cgghh
CgghhCgghh
Cgghh
 
HBase System Tables / Metadata Info
HBase System Tables / Metadata InfoHBase System Tables / Metadata Info
HBase System Tables / Metadata Info
 
Pgbr 2013 fts
Pgbr 2013 ftsPgbr 2013 fts
Pgbr 2013 fts
 

Similar to Mongo production Sharded cluster

Basics of MongoDB
Basics of MongoDB Basics of MongoDB
Basics of MongoDB Habilelabs
 
MongoDB for Beginners
MongoDB for BeginnersMongoDB for Beginners
MongoDB for BeginnersEnoch Joshua
 
MongoDB - An Introduction
MongoDB - An IntroductionMongoDB - An Introduction
MongoDB - An Introductionsethfloydjr
 
mongodb11 (1) (1).pptx
mongodb11 (1) (1).pptxmongodb11 (1) (1).pptx
mongodb11 (1) (1).pptxRoopaR36
 
Top MongoDB interview Questions and Answers
Top MongoDB interview Questions and AnswersTop MongoDB interview Questions and Answers
Top MongoDB interview Questions and Answersjeetendra mandal
 
Kalp Corporate MongoDB Tutorials
Kalp Corporate MongoDB TutorialsKalp Corporate MongoDB Tutorials
Kalp Corporate MongoDB TutorialsKalp Corporate
 
MongoDB - An Introduction
MongoDB - An IntroductionMongoDB - An Introduction
MongoDB - An Introductiondinkar thakur
 
Mongo db transcript
Mongo db transcriptMongo db transcript
Mongo db transcriptfoliba
 
Introduction to MongoDB with PHP
Introduction to MongoDB with PHPIntroduction to MongoDB with PHP
Introduction to MongoDB with PHPfwso
 
introtomongodb
introtomongodbintrotomongodb
introtomongodbsaikiran
 
Mongo db halloween party
Mongo db halloween partyMongo db halloween party
Mongo db halloween partyAndrea Balducci
 
Python mongo db-training-europython-2011
Python mongo db-training-europython-2011Python mongo db-training-europython-2011
Python mongo db-training-europython-2011Andreas Jung
 
UNIT-1 MongoDB.pptx
UNIT-1 MongoDB.pptxUNIT-1 MongoDB.pptx
UNIT-1 MongoDB.pptxDharaDarji5
 

Similar to Mongo production Sharded cluster (20)

Basics of MongoDB
Basics of MongoDB Basics of MongoDB
Basics of MongoDB
 
MongoDB for Beginners
MongoDB for BeginnersMongoDB for Beginners
MongoDB for Beginners
 
MongoDB - An Introduction
MongoDB - An IntroductionMongoDB - An Introduction
MongoDB - An Introduction
 
mongodb11 (1) (1).pptx
mongodb11 (1) (1).pptxmongodb11 (1) (1).pptx
mongodb11 (1) (1).pptx
 
Mongo db dhruba
Mongo db dhrubaMongo db dhruba
Mongo db dhruba
 
Mongo db
Mongo dbMongo db
Mongo db
 
Top MongoDB interview Questions and Answers
Top MongoDB interview Questions and AnswersTop MongoDB interview Questions and Answers
Top MongoDB interview Questions and Answers
 
MongoDB
MongoDBMongoDB
MongoDB
 
Kalp Corporate MongoDB Tutorials
Kalp Corporate MongoDB TutorialsKalp Corporate MongoDB Tutorials
Kalp Corporate MongoDB Tutorials
 
MongoDB.pptx
MongoDB.pptxMongoDB.pptx
MongoDB.pptx
 
MongoDB - An Introduction
MongoDB - An IntroductionMongoDB - An Introduction
MongoDB - An Introduction
 
MongoDB and DynamoDB
MongoDB and DynamoDBMongoDB and DynamoDB
MongoDB and DynamoDB
 
Mongo db transcript
Mongo db transcriptMongo db transcript
Mongo db transcript
 
Introduction to MongoDB with PHP
Introduction to MongoDB with PHPIntroduction to MongoDB with PHP
Introduction to MongoDB with PHP
 
introtomongodb
introtomongodbintrotomongodb
introtomongodb
 
Mongo db halloween party
Mongo db halloween partyMongo db halloween party
Mongo db halloween party
 
Mongodb By Vipin
Mongodb By VipinMongodb By Vipin
Mongodb By Vipin
 
Python mongo db-training-europython-2011
Python mongo db-training-europython-2011Python mongo db-training-europython-2011
Python mongo db-training-europython-2011
 
UNIT-1 MongoDB.pptx
UNIT-1 MongoDB.pptxUNIT-1 MongoDB.pptx
UNIT-1 MongoDB.pptx
 
Mdb dn 2016_08_tools
Mdb dn 2016_08_toolsMdb dn 2016_08_tools
Mdb dn 2016_08_tools
 

More from sourabh aggarwal

More from sourabh aggarwal (6)

Mule Complete Training
Mule Complete TrainingMule Complete Training
Mule Complete Training
 
Spring 4 advanced final_xtr_presentation
Spring 4 advanced final_xtr_presentationSpring 4 advanced final_xtr_presentation
Spring 4 advanced final_xtr_presentation
 
Spring 4 final xtr_presentation
Spring 4 final xtr_presentationSpring 4 final xtr_presentation
Spring 4 final xtr_presentation
 
Xke spring boot
Xke spring bootXke spring boot
Xke spring boot
 
Hibernate complete Training
Hibernate complete TrainingHibernate complete Training
Hibernate complete Training
 
Liferay with xebia
Liferay with xebiaLiferay with xebia
Liferay with xebia
 

Recently uploaded

Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and usesDevarapalliHaritha
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2RajaP95
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 

Recently uploaded (20)

Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and uses
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 

Mongo production Sharded cluster

  • 1. MONGO DB PRODUCTION CLUSTER CREATED BY : SOURABH AGGARWAL
  • 2. COLLECTIONS : In MONGO-DB collection of document called as collections, can compare with tables in the RDMS, but it didn’t have any defined structure. DOCUMENTS : Is the bson, each any every entry in the mongo-db is stored as document. BSON : Bson stands for binary JSON, JSON which have data type accociated with values. INDEX : Indexes are used is mongo-db to search any records effectively with in the collection, mongo-db default index is _id. We can create another field or set of fields also as the index, but it require additional space in memory for storage. MONGO-DB BASICS:
  • 3. REPLICA : Is the replica or copy of the shard/storage, will be used when main shard is down. SHARD : Is the primary storage for all the data in the Mongo-DB cluster Mongo-DB Query Router(Mongos) : Is the front face for all the client, all the request for the query will be served by the Mongos. Configuration server : Used to keep all the configuration related to the mongodb cluster, like packer movement, replica, shard etc configuration. SHARD KEY : Used to divide data across nodes, configured at collection level in mongo db. MONGO-DB SHARDED PRODUCTION CLUSTER COMPONENTS REPLICA : Is the replica or copy of the shard/storage, will be used when main shard is down. SHARD : Is the primary storage for all the data in the Mongo-DB cluster Mongo-DB Query Router(Mongos) : Is the front face for all the client, all the request for the query will be served by the Mongos. Configuration server : Used to keep all the configuration related to the mongodb cluster, like packer movement, replica, shard etc configuration. SHARD KEY : Used to divide data across nodes, configured at collection level in mongo db.
  • 4. REPLICA : Is the replica or copy of the shard/storage, will be used when main shard(node) is down. SHARD : Is the primary storage for all the data in the Mongo-DB cluster. Mongo-DB Query Router(Mongos) : Is the front face for all the client, all the request for the query will be served by the Mongos. Configuration server : Used to keep all the configuration related to the mongodb cluster, like packet movement, replica, shard etc. SHARD KEY : Used to divide data across nodes, configured at collection level in mongo db, once configured can’t be changed. MONGO-DB SHARDED PRODUCTION CLUSTER COMPONENTS
  • 5. MONGO REPLICA SERVER 1 SERVER 2 CLIENT CLIENT MONGO-DB SINGLE NODE DESIGN
  • 6. MONGO REPLICA SERVER 1 SERVER 2 CLIENT CLIENT CLIENT CLIENT MONGO-DB SINGLE NODE FAIL OVER
  • 7. CONFIG 1 CONFIG 2 CONFIG 3 SLAVE 1 REPLICA MONGOS CLIENT CLIENT SLAVE 2 REPLICA SLAVE 3 REPLICA MONGO-DB THREE NODE SHARDED CLUSTER DESIGN
  • 8. CONFIG 1 CONFIG 2 CONFIG 3 SLAVE 1 REPLICA MONGOS CLIENT CLIENT SLAVE 2 REPLICA SLAVE 3 REPLICA MONGO-DB THREE NODE SHARDED CLUSTER FAIL OVER