SlideShare a Scribd company logo
1 of 27
TMS system and MongoDB introduction 
RICH LEE 
CHT TMS Developer 
rich.lee@thinkpower.com.tw
TMS System Architecture 
MongoDB Introduction 
TMS MongoDB 
Q&A 
2014/8/26 CHT TMS Training 2
TMS Module 
 CDR Parser 
 CDR Consolidator 
▪ Data, Voice, Mvpn 
 CSV Generator 
 Report 
▪ Usage, Lumsum, Frozen 
 Performance Report 
 SNMP Alarm 
 API 
2014/8/26 CHT TMS Training 3
TMS Module Diagram 
2014/8/26 CHT TMS Training 4
CDR process flow 
2014/8/26 CHT TMS Training 5
Parser multi-thread concepts 
• Three stages of the CDR Parser: 
 1st: Decoder (Decode worker and MongoBO) 
 2nd: Queues (Mongo Queue) 
 3rd: Insert into DB (Mongo worker) 
• Three parser instances: 
 Parser (CCN) 
 Parser (SDP) 
 Parser (AIR) 
2014/8/26 CHT TMS Training 6
What is MongoDB? 
 MongoDB is an open source, document-oriented 
database designed with both scalability and developer 
agility in mind. 
 Instead of storing your data in tables and rows as you 
would with a relational database, in MongoDB you store 
JSON-like documents with dynamic schemas(schema-free, 
schemaless). 
2014/8/26 CHT TMS Training 7
MongoDB Feature 
 Schema-less 
 Document-oriented (Bson) 
 Scale-out 
▪ Replica set 
▪ Sharding 
 Rich functionality 
▪ Index, Aggregation, Backup 
2014/8/26 CHT TMS Training 8
Why use MongoDB 
 bridge the gap between key-value stores (which are fast and 
scalable) and relational databases (which have rich functionality). 
2014/8/26 CHT TMS Training 9
MongoDB vs RDBMS 
2014/8/26 CHT TMS Training 10
Data model 
 Using BSON (binary JSON), developers can easily map 
to modern object-oriented languages without a 
complicated ORM layer. 
2014/8/26 CHT TMS Training 11
Schema design 
2014/8/26 CHT TMS Training 12
Schema design 
2014/8/26 CHT TMS Training 13
Basic operator 
2014/8/26 CHT TMS Training 14
Read Command in MySQL 
Read Command in MongoDB 
2014/8/26 CHT TMS Training 15
Replica set – scale out 
1. Availability 
2. Fault tolerance 
2014/8/26 CHT TMS Training 16
Replica set - election 
2014/8/26 CHT TMS Training 17
Replica set consistency 
 Only one server is active for writes (the primary) at a given time – 
this is to allow strong consistent (atomic) operations. 
 One can optionally send read operations to the secondaries when 
eventual consistency semantics are acceptable. 
2014/8/26 CHT TMS Training 18
DB list 
2014/8/26 CHT TMS Training 19
User role 
Account DB Role Description 
tmsdb ROOT Super admin 
cht_app Read Write Can CRUD 
cht_report Read Only query data 
cht_cluster Cluster admin View replica status 
Login TMS MongoDB 
 mongo --host 10.106.60.65:4001 --username tmsdb —password xxxx -- 
authenticationDatabase admin 
Use DB and count 
 show dbs (only root uesr) 
 use TMS_CCN_1_DB 
 db.TMS_CCN_1_140506.count() 
2014/8/26 CHT TMS Training 20
Field mapping 
2014/8/26 CHT TMS Training 21
Query definition 
Equal Query 
 db.TMS_CCN_2_140715.find({"MSISDN":"886988413631"}}) 
Regex Query 
 db.TMS_CCN_2_140715.find({"MSISDN":{$regex : ".*988413631"}}) 
And Query 
 db.TMS_CCN_4_140804.find({ $and: [ {"MSISDN":"886988413631”}, 
{”BP":"886905001256”} ] }) 
Project (Select feild) 
 db.TMS_CCN_4_140724.find( {MSISDN:"886905004094”}, 
{MSISDN : 1, BP : 1, TT :1, DT :1}) 
2014/8/26 CHT TMS Training 22
Query by date range 
 GMT not local timezone 
 db.TMS_CCN_1_140609.find({ $and: [ {"MSISDN": "886905001250"}, {"TT" : 
{ $gte : new ISODate("2014-06-16 01:00:50.652Z") }}, {"DT" : { $lte : new 
ISODate("2014-06-16 01:59:50.652Z") }} ] }) 
Distinct Query 
 db.TMS_CCN_1_140822.distinct( "MSISDN", 
{ TT: { $gt: new ISODate("2014-08-22 05:00:00.294Z") } }) 
Sort Query 
 db.TMS_CCN_4_140722.find( {"ISCSV":false} ).sort( { OCCR8: 1 } ) 
2014/8/26 CHT TMS Training 23
Check Replica set status 
 rs.status() 
View Replica set configuration 
 rs.conf() 
Set secondary node can read 
 rs.slaveOk() 
2014/8/26 CHT TMS Training 24
Http Rest interface 
 http://host:port ,port is mongod port +1000 
2014/8/26 CHT TMS Training 25
MongoDB monitor 
 mongostat --host localhost:27017 --username account—password 
pass --authenticationDatabase admin 
Check MongoDB log 
 Mongo.log (/opt/mongo/data/log/) 
2014/8/26 CHT TMS Training 26
2014/8/26 CHT TMS Training 27

More Related Content

What's hot

Mongo presentation conf
Mongo presentation confMongo presentation conf
Mongo presentation conf
Shridhar Joshi
 

What's hot (20)

Open source Technology
Open source TechnologyOpen source Technology
Open source Technology
 
The Rise of Streaming SQL
The Rise of Streaming SQLThe Rise of Streaming SQL
The Rise of Streaming SQL
 
Node js crash course session 5
Node js crash course   session 5Node js crash course   session 5
Node js crash course session 5
 
Transitioning from SQL to MongoDB
Transitioning from SQL to MongoDBTransitioning from SQL to MongoDB
Transitioning from SQL to MongoDB
 
Introduction to MongoDB
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDB
 
Redis IU
Redis IURedis IU
Redis IU
 
MongoDB for Beginners
MongoDB for BeginnersMongoDB for Beginners
MongoDB for Beginners
 
Analytical data processing
Analytical data processingAnalytical data processing
Analytical data processing
 
Mongo presentation conf
Mongo presentation confMongo presentation conf
Mongo presentation conf
 
21st Athens Big Data Meetup - 1st Talk - Fast and simple data exploration wit...
21st Athens Big Data Meetup - 1st Talk - Fast and simple data exploration wit...21st Athens Big Data Meetup - 1st Talk - Fast and simple data exploration wit...
21st Athens Big Data Meetup - 1st Talk - Fast and simple data exploration wit...
 
Migrating from RDBMS to MongoDB
Migrating from RDBMS to MongoDBMigrating from RDBMS to MongoDB
Migrating from RDBMS to MongoDB
 
MongoDB World 2019: Raiders of the Anti-patterns: A Journey Towards Fixing Sc...
MongoDB World 2019: Raiders of the Anti-patterns: A Journey Towards Fixing Sc...MongoDB World 2019: Raiders of the Anti-patterns: A Journey Towards Fixing Sc...
MongoDB World 2019: Raiders of the Anti-patterns: A Journey Towards Fixing Sc...
 
Benefits of Using MongoDB Over RDBMS (At An Evening with MongoDB Minneapolis ...
Benefits of Using MongoDB Over RDBMS (At An Evening with MongoDB Minneapolis ...Benefits of Using MongoDB Over RDBMS (At An Evening with MongoDB Minneapolis ...
Benefits of Using MongoDB Over RDBMS (At An Evening with MongoDB Minneapolis ...
 
Cassandra meetup slides - Oct 15 Santa Monica Coloft
Cassandra meetup slides - Oct 15 Santa Monica ColoftCassandra meetup slides - Oct 15 Santa Monica Coloft
Cassandra meetup slides - Oct 15 Santa Monica Coloft
 
WSO2 Stream Processor: Graphical Editor, HTTP & Message Trace Analytics and m...
WSO2 Stream Processor: Graphical Editor, HTTP & Message Trace Analytics and m...WSO2 Stream Processor: Graphical Editor, HTTP & Message Trace Analytics and m...
WSO2 Stream Processor: Graphical Editor, HTTP & Message Trace Analytics and m...
 
Mongo db workshop # 02
Mongo db workshop # 02Mongo db workshop # 02
Mongo db workshop # 02
 
Performance Tuning and Optimization
Performance Tuning and OptimizationPerformance Tuning and Optimization
Performance Tuning and Optimization
 
Connecting NodeJS & MongoDB
Connecting NodeJS & MongoDBConnecting NodeJS & MongoDB
Connecting NodeJS & MongoDB
 
Mongo db1
Mongo db1Mongo db1
Mongo db1
 
MongoDB + Spring
MongoDB + SpringMongoDB + Spring
MongoDB + Spring
 

Viewers also liked (8)

Relação de Contemplados junho/2010
Relação de Contemplados junho/2010Relação de Contemplados junho/2010
Relação de Contemplados junho/2010
 
Taller 4
Taller 4Taller 4
Taller 4
 
Prueba Solemne 1 "Gestión del Conociminto y las Tic´s"
Prueba Solemne 1 "Gestión del Conociminto y las Tic´s"Prueba Solemne 1 "Gestión del Conociminto y las Tic´s"
Prueba Solemne 1 "Gestión del Conociminto y las Tic´s"
 
Ashestoangels 4
Ashestoangels 4Ashestoangels 4
Ashestoangels 4
 
Realtime workshop Lisboa - 2013-01-10 (Portuguese)
Realtime workshop Lisboa - 2013-01-10 (Portuguese)Realtime workshop Lisboa - 2013-01-10 (Portuguese)
Realtime workshop Lisboa - 2013-01-10 (Portuguese)
 
Presentacion de redes sociales
Presentacion de redes socialesPresentacion de redes sociales
Presentacion de redes sociales
 
Informativo - Pinheiros
Informativo - PinheirosInformativo - Pinheiros
Informativo - Pinheiros
 
A eficácia do uso dos métodos de previsão quantitativos x métodos qualitativo...
A eficácia do uso dos métodos de previsão quantitativos x métodos qualitativo...A eficácia do uso dos métodos de previsão quantitativos x métodos qualitativo...
A eficácia do uso dos métodos de previsão quantitativos x métodos qualitativo...
 

Similar to Tms training

CS 542 -- Query Execution
CS 542 -- Query ExecutionCS 542 -- Query Execution
CS 542 -- Query Execution
J Singh
 
Hw09 Hadoop Based Data Mining Platform For The Telecom Industry
Hw09   Hadoop Based Data Mining Platform For The Telecom IndustryHw09   Hadoop Based Data Mining Platform For The Telecom Industry
Hw09 Hadoop Based Data Mining Platform For The Telecom Industry
Cloudera, Inc.
 
The End of an Architectural Era Michael Stonebraker
The End of an Architectural Era Michael StonebrakerThe End of an Architectural Era Michael Stonebraker
The End of an Architectural Era Michael Stonebraker
ugur candan
 

Similar to Tms training (20)

CS 542 -- Query Execution
CS 542 -- Query ExecutionCS 542 -- Query Execution
CS 542 -- Query Execution
 
Autonomous control in Big Data platforms: and experience with Cassandra
Autonomous control in Big Data platforms: and experience with CassandraAutonomous control in Big Data platforms: and experience with Cassandra
Autonomous control in Big Data platforms: and experience with Cassandra
 
Ceph Performance Profiling and Reporting
Ceph Performance Profiling and ReportingCeph Performance Profiling and Reporting
Ceph Performance Profiling and Reporting
 
Best Practices for Migrating your Data Warehouse to Amazon Redshift
Best Practices for Migrating your Data Warehouse to Amazon RedshiftBest Practices for Migrating your Data Warehouse to Amazon Redshift
Best Practices for Migrating your Data Warehouse to Amazon Redshift
 
Best Practices for Supercharging Cloud Analytics on Amazon Redshift
Best Practices for Supercharging Cloud Analytics on Amazon RedshiftBest Practices for Supercharging Cloud Analytics on Amazon Redshift
Best Practices for Supercharging Cloud Analytics on Amazon Redshift
 
23 October 2013 - AWS 201 - A Walk through the AWS Cloud: Introduction to Ama...
23 October 2013 - AWS 201 - A Walk through the AWS Cloud: Introduction to Ama...23 October 2013 - AWS 201 - A Walk through the AWS Cloud: Introduction to Ama...
23 October 2013 - AWS 201 - A Walk through the AWS Cloud: Introduction to Ama...
 
TechEvent Apache Cassandra
TechEvent Apache CassandraTechEvent Apache Cassandra
TechEvent Apache Cassandra
 
Get Value from Your Data
Get Value from Your DataGet Value from Your Data
Get Value from Your Data
 
Survey real time databases
Survey real time databasesSurvey real time databases
Survey real time databases
 
Getting Started with Amazon Redshift
Getting Started with Amazon RedshiftGetting Started with Amazon Redshift
Getting Started with Amazon Redshift
 
realtime system.docx
realtime system.docxrealtime system.docx
realtime system.docx
 
About "Apache Cassandra"
About "Apache Cassandra"About "Apache Cassandra"
About "Apache Cassandra"
 
London Redshift Meetup - July 2017
London Redshift Meetup - July 2017London Redshift Meetup - July 2017
London Redshift Meetup - July 2017
 
Best Practices for Migrating your Data Warehouse to Amazon Redshift
Best Practices for Migrating your Data Warehouse to Amazon RedshiftBest Practices for Migrating your Data Warehouse to Amazon Redshift
Best Practices for Migrating your Data Warehouse to Amazon Redshift
 
Best Practices for Migrating your Data Warehouse to Amazon Redshift
Best Practices for Migrating your Data Warehouse to Amazon Redshift Best Practices for Migrating your Data Warehouse to Amazon Redshift
Best Practices for Migrating your Data Warehouse to Amazon Redshift
 
Hw09 Hadoop Based Data Mining Platform For The Telecom Industry
Hw09   Hadoop Based Data Mining Platform For The Telecom IndustryHw09   Hadoop Based Data Mining Platform For The Telecom Industry
Hw09 Hadoop Based Data Mining Platform For The Telecom Industry
 
Ingesting Over Four Million Rows Per Second With QuestDB Timeseries Database ...
Ingesting Over Four Million Rows Per Second With QuestDB Timeseries Database ...Ingesting Over Four Million Rows Per Second With QuestDB Timeseries Database ...
Ingesting Over Four Million Rows Per Second With QuestDB Timeseries Database ...
 
Getting started with Amazon Redshift
Getting started with Amazon RedshiftGetting started with Amazon Redshift
Getting started with Amazon Redshift
 
The End of an Architectural Era Michael Stonebraker
The End of an Architectural Era Michael StonebrakerThe End of an Architectural Era Michael Stonebraker
The End of an Architectural Era Michael Stonebraker
 
Getting Started with Amazon Redshift - AWS July 2016 Webinar Series
Getting Started with Amazon Redshift - AWS July 2016 Webinar SeriesGetting Started with Amazon Redshift - AWS July 2016 Webinar Series
Getting Started with Amazon Redshift - AWS July 2016 Webinar Series
 

Recently uploaded

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Recently uploaded (20)

How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 

Tms training

  • 1. TMS system and MongoDB introduction RICH LEE CHT TMS Developer rich.lee@thinkpower.com.tw
  • 2. TMS System Architecture MongoDB Introduction TMS MongoDB Q&A 2014/8/26 CHT TMS Training 2
  • 3. TMS Module  CDR Parser  CDR Consolidator ▪ Data, Voice, Mvpn  CSV Generator  Report ▪ Usage, Lumsum, Frozen  Performance Report  SNMP Alarm  API 2014/8/26 CHT TMS Training 3
  • 4. TMS Module Diagram 2014/8/26 CHT TMS Training 4
  • 5. CDR process flow 2014/8/26 CHT TMS Training 5
  • 6. Parser multi-thread concepts • Three stages of the CDR Parser:  1st: Decoder (Decode worker and MongoBO)  2nd: Queues (Mongo Queue)  3rd: Insert into DB (Mongo worker) • Three parser instances:  Parser (CCN)  Parser (SDP)  Parser (AIR) 2014/8/26 CHT TMS Training 6
  • 7. What is MongoDB?  MongoDB is an open source, document-oriented database designed with both scalability and developer agility in mind.  Instead of storing your data in tables and rows as you would with a relational database, in MongoDB you store JSON-like documents with dynamic schemas(schema-free, schemaless). 2014/8/26 CHT TMS Training 7
  • 8. MongoDB Feature  Schema-less  Document-oriented (Bson)  Scale-out ▪ Replica set ▪ Sharding  Rich functionality ▪ Index, Aggregation, Backup 2014/8/26 CHT TMS Training 8
  • 9. Why use MongoDB  bridge the gap between key-value stores (which are fast and scalable) and relational databases (which have rich functionality). 2014/8/26 CHT TMS Training 9
  • 10. MongoDB vs RDBMS 2014/8/26 CHT TMS Training 10
  • 11. Data model  Using BSON (binary JSON), developers can easily map to modern object-oriented languages without a complicated ORM layer. 2014/8/26 CHT TMS Training 11
  • 12. Schema design 2014/8/26 CHT TMS Training 12
  • 13. Schema design 2014/8/26 CHT TMS Training 13
  • 14. Basic operator 2014/8/26 CHT TMS Training 14
  • 15. Read Command in MySQL Read Command in MongoDB 2014/8/26 CHT TMS Training 15
  • 16. Replica set – scale out 1. Availability 2. Fault tolerance 2014/8/26 CHT TMS Training 16
  • 17. Replica set - election 2014/8/26 CHT TMS Training 17
  • 18. Replica set consistency  Only one server is active for writes (the primary) at a given time – this is to allow strong consistent (atomic) operations.  One can optionally send read operations to the secondaries when eventual consistency semantics are acceptable. 2014/8/26 CHT TMS Training 18
  • 19. DB list 2014/8/26 CHT TMS Training 19
  • 20. User role Account DB Role Description tmsdb ROOT Super admin cht_app Read Write Can CRUD cht_report Read Only query data cht_cluster Cluster admin View replica status Login TMS MongoDB  mongo --host 10.106.60.65:4001 --username tmsdb —password xxxx -- authenticationDatabase admin Use DB and count  show dbs (only root uesr)  use TMS_CCN_1_DB  db.TMS_CCN_1_140506.count() 2014/8/26 CHT TMS Training 20
  • 21. Field mapping 2014/8/26 CHT TMS Training 21
  • 22. Query definition Equal Query  db.TMS_CCN_2_140715.find({"MSISDN":"886988413631"}}) Regex Query  db.TMS_CCN_2_140715.find({"MSISDN":{$regex : ".*988413631"}}) And Query  db.TMS_CCN_4_140804.find({ $and: [ {"MSISDN":"886988413631”}, {”BP":"886905001256”} ] }) Project (Select feild)  db.TMS_CCN_4_140724.find( {MSISDN:"886905004094”}, {MSISDN : 1, BP : 1, TT :1, DT :1}) 2014/8/26 CHT TMS Training 22
  • 23. Query by date range  GMT not local timezone  db.TMS_CCN_1_140609.find({ $and: [ {"MSISDN": "886905001250"}, {"TT" : { $gte : new ISODate("2014-06-16 01:00:50.652Z") }}, {"DT" : { $lte : new ISODate("2014-06-16 01:59:50.652Z") }} ] }) Distinct Query  db.TMS_CCN_1_140822.distinct( "MSISDN", { TT: { $gt: new ISODate("2014-08-22 05:00:00.294Z") } }) Sort Query  db.TMS_CCN_4_140722.find( {"ISCSV":false} ).sort( { OCCR8: 1 } ) 2014/8/26 CHT TMS Training 23
  • 24. Check Replica set status  rs.status() View Replica set configuration  rs.conf() Set secondary node can read  rs.slaveOk() 2014/8/26 CHT TMS Training 24
  • 25. Http Rest interface  http://host:port ,port is mongod port +1000 2014/8/26 CHT TMS Training 25
  • 26. MongoDB monitor  mongostat --host localhost:27017 --username account—password pass --authenticationDatabase admin Check MongoDB log  Mongo.log (/opt/mongo/data/log/) 2014/8/26 CHT TMS Training 26
  • 27. 2014/8/26 CHT TMS Training 27