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

Transitioning from SQL to MongoDB
Transitioning from SQL to MongoDBTransitioning from SQL to MongoDB
Transitioning from SQL to MongoDBMongoDB
 
Introduction to MongoDB
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDBRaghunath A
 
MongoDB for Beginners
MongoDB for BeginnersMongoDB for Beginners
MongoDB for BeginnersEnoch Joshua
 
Analytical data processing
Analytical data processingAnalytical data processing
Analytical data processingPolad Saruxanov
 
Mongo presentation conf
Mongo presentation confMongo presentation conf
Mongo presentation confShridhar Joshi
 
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...Athens Big Data
 
Migrating from RDBMS to MongoDB
Migrating from RDBMS to MongoDBMigrating from RDBMS to MongoDB
Migrating from RDBMS to MongoDBMongoDB
 
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...MongoDB
 
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 ...MongoDB
 
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 ColoftJon Haddad
 
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...Sriskandarajah Suhothayan
 
Performance Tuning and Optimization
Performance Tuning and OptimizationPerformance Tuning and Optimization
Performance Tuning and OptimizationMongoDB
 
Connecting NodeJS & MongoDB
Connecting NodeJS & MongoDBConnecting NodeJS & MongoDB
Connecting NodeJS & MongoDBEnoch Joshua
 

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

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"Yanira Morandi
 
Ashestoangels 4
Ashestoangels 4Ashestoangels 4
Ashestoangels 4skarahan08
 
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)Realtime
 
Presentacion de redes sociales
Presentacion de redes socialesPresentacion de redes sociales
Presentacion de redes socialesSeidy Vasquez C
 
Informativo - Pinheiros
Informativo - PinheirosInformativo - Pinheiros
Informativo - PinheirosGoverno ES
 
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...Wagner Borges
 

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 ExecutionJ Singh
 
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 CassandraEmiliano
 
Ceph Performance Profiling and Reporting
Ceph Performance Profiling and ReportingCeph Performance Profiling and Reporting
Ceph Performance Profiling and ReportingCeph Community
 
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 RedshiftAmazon Web Services
 
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 RedshiftSnapLogic
 
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...Amazon Web Services
 
TechEvent Apache Cassandra
TechEvent Apache CassandraTechEvent Apache Cassandra
TechEvent Apache CassandraTrivadis
 
Get Value from Your Data
Get Value from Your DataGet Value from Your Data
Get Value from Your DataDanilo Poccia
 
Survey real time databases
Survey real time databasesSurvey real time databases
Survey real time databasesManuel Santos
 
Getting Started with Amazon Redshift
Getting Started with Amazon RedshiftGetting Started with Amazon Redshift
Getting Started with Amazon RedshiftAmazon Web Services
 
About "Apache Cassandra"
About "Apache Cassandra"About "Apache Cassandra"
About "Apache Cassandra"Jihyun Ahn
 
London Redshift Meetup - July 2017
London Redshift Meetup - July 2017London Redshift Meetup - July 2017
London Redshift Meetup - July 2017Pratim Das
 
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 RedshiftAmazon Web Services
 
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 Amazon Web Services
 
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 IndustryCloudera, Inc.
 
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 ...javier ramirez
 
Getting started with Amazon Redshift
Getting started with Amazon RedshiftGetting started with Amazon Redshift
Getting started with Amazon RedshiftAmazon Web Services
 
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 Stonebrakerugur candan
 
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 SeriesAmazon Web Services
 

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

Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfSeasiaInfotech2
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 

Recently uploaded (20)

Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 

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