SlideShare a Scribd company logo
1 of 34
Download to read offline
Mastering MongoDB Atlas:
Essentials of Diagnostics and Debugging in the Cloud
Manosh Malai
CTO, Mydbops LLP
Mydbops Open Source Database Meetup - 15th Edition
About Me
Manosh Malai
❏ Interested in Open Source technologies
❏ Interested in MongoDB, DevOps & DevOpSec Practices
❏ Tech Speaker/Blogger
❏ MongoDB User Group Leader(Bangalore)
Mydbops Services
Focus on MySQL, MongoDB, PostgreSQL, TiDB, Cassandra
Consulting
Services
Consulting
Services
Managed
Services
24*7
DBA Team
Targeted
Engagement
❏ Introduction
❏ Understanding MongoDB Atlas
❏ Diagnostics in MongoDB Atlas
❏ Debugging in MongoDB Atlas
Agenda
Introduction
MongoDB Atlas The multi-cloud developer data platform.
Introduction
Understanding MongoDB Atlas
Database Search Streaming Vector Search
Atlas Platform Service
❏ MongoDB Atlas is a fully-managed cloud database service provided by MongoDB.
❏ It offers high-performance data handling capabilities for modern applications with a scalable, secure,
and intuitive approach.
Introduction
❏ Multi-region, Multi-cloud: Run robust applications across multiple regions or clouds
simultaneously, ensuring high resilience and flexibility.
❏ Serverless and Elastic: Deploy a serverless database infrastructure that scales dynamically, allowing
you to pay only for the resources you use.
❏ Always-on Security: Experience top-tier security with default settings for access control and
end-to-end encryption to safeguard your data.
❏ Performance Advice: Receive tailored index and schema design recommendations as your workload
evolves, optimizing database performance.
Atlas Platform Service
❏ Native Tooling: Enjoy seamless connectivity with command line access and integration with your
preferred programming languages.
❏ Automated Data Tiering: Efficiently manage data storage costs with rules-based archival, adapting
as your data estate grows.
❏ Continuous Backups: Ensure data integrity with point-in-time recovery, enabling precise restoration
to any required moment.
❏ Workload Isolation: Enhance performance with dedicated secondary nodes for local reads or
analytics, ensuring optimal resource utilization.
Key Features
Diagnostics in MongoDB Atlas
Query
Profiler
Performance
Advisor
Real-Time
Performance Panel
Monitor With MongoDB Atlas
Real-Time Performance Panel
in MongoDB Atlas
Real-Time Performance Panel
Live monitoring of database operations.
Purpose
Functionality Provides a real-time view of database activities such as queries,
updates, and other operations.
Limitations
- Data Granularity and Retention: Limited long-term data
storage, focusing on immediate data.
- Historical Data Analysis: Requires additional tools for in-depth
historical analysis
Key Benefits
- Immediate Visibility: Instant insights into operational state.
- Operational Management: Enables real-time monitoring and
management of database operations.
Real-Time Performance Panel: Features and Limitations
01
Monitoring Data Storage Granularity:
● Atlas stores metrics data at varying granularity levels, averaging data
from the previous level for each increase in granularity.
● Default granularity is at 1-minute intervals, with data compaction
over time for longer retention.
02
Premium Monitoring Granularity:
● Available for clusters M40 and larger, providing 10-second granularity.
● Premium monitoring gathers more detailed data and is enabled for all
clusters in the project once an M40 or larger cluster is deployed.
MongoDB Atlas: Data Storage Granularity and Monitoring
03
Data Compaction:
● Initial 48 Hours: Records data every minute.
● After 48 Hours: Compacts 60 minutes of data into one hourly summary.
● After 63 Days: Combines 24 hours of summaries into one daily summary.
MongoDB Atlas: Data Storage Granularity and Monitoring
04
Additional Considerations:
● Free/Shared Clusters (M0, M2, M5): Limited metrics; monitoring
halts after 7 inactive days.
● Serverless Instances: Limited metrics and charts.
● Log Data: Max 2000 lines retained every 2 minutes.
8 hours
(Premium
only)
1
minute
48
hours
5
minutes
48
hours
10
seconds
1 hour
63
days
1
Day
Forever
Granularity Retention
Duration
MongoDB Atlas: Metrics Data Retention Periods
Granularity Retention
Duration
❏ Overview: Integrate Atlas with Prometheus for advanced metrics collection, rule evaluation,
and alert triggering
❏ Limitations: Not available for Atlas for Government.
❏ Prerequisites: Requires M10+ clusters and a configured Prometheus instance.
❏ Available Metrics: Includes MongoDB Information Metrics, serverStatus, replSetStatus, and
various hardware metrics.
❏ Advantage: Prometheus stores historical data, which is vital for analyzing long-term trends and
making strategic improvements to database performance.
MongoDB Atlas Integration with Prometheus
Performance Advisor
in MongoDB Atlas
Performance Advisor
❏ Only available from M10+ clusters and serverless instances.
❏ Automatically identifies and analyzes slow queries.
❏ Indexes are ranked as High or Medium Impact based on wasted bytes read, indicating
potential efficiency improvements.
❏ Suggests indexes to improve query performance.
❏ Recommend up to 20 query shapes from all collections in the cluster and suggests indexes to
enhance their performance.
❏ Minimal impact on overall cluster performance.
MongoDB Atlas Performance Advisor
Performance Advisor -Create Index Panel
❏ The Performance Advisor customizes index field order based on the type of query operation.
❏ Field order is largely determined by the cardinality of fields in the queries.
Operation Type
Rank Example
1 Equality $eq
2 Array query $in
3 Range Query $gte
4 Type Query $type
5 Exists $exists
6 All other Operators
7 Sort sort()
Key Aspects of Index Ranking in MongoDB Atlas Performance Advisor
❏ Only available from M10+ clusters and serverless instances.
❏ Flags an index as unused if it hasn't supported a query in over 7 days.
❏ Focuses on the 20 most active collections for identifying unused indexes.
❏ Hidden indexes are recommended for dropping(for MongoDB 4.4+)
❏ Redundant indexes are marked with a red 'Redundant' badge.
Drop Index Recommendations MongoDB Atlas Performance Advisor
❏ Identifies slow-running queries with key statistics displayed in the Atlas UI.
❏ Only available on M10+ clusters and serverless instances
❏ Offers historical query analysis for up to 24 hours without added cost or performance overhead.
❏ db.setProfilingLevel command allows customization of profiling levels.
❏ Atlas-managed slow operation threshold is enabled by default but can be opted out for a fixed
slow query threshold of 100 milliseconds.
❏ M0, M2, M5 clusters and serverless instances have this feature disabled by default.
❏ Push log to S3
Monitoring Query Performance in MongoDB Atlas
❏ Displays only up to 10,000 of the most recent operations or 10MB of the most recent logs.
❏ New operations won’t be displayed for 24 hours once the limit is reached.
❏ Profiler charts limited to displaying a maximum of 10,000 data points.
❏ Log data is processed in batches with a possible delay of up to 5 minutes.
❏ In case of high activity spikes and large log volumes, Atlas may temporarily stop collecting new
logs.
Monitoring Query Performance in MongoDB Atlas: Limitation
Debugging in MongoDB Atlas
❏ PIM troubleshoot principal developed by Mydbops, Its combining the Scientific Method and
Isolation Forest
❏ Start: CPU Utilization Alert Received in Slack.
❏ Define the Problem:
❏ Identify high CPU usage symptoms.
❏ Establish baseline CPU usage.
❏ Gather Data:
❏ Collect CPU usage data and system activities from monitoring tools.
❏ Investigate recent environmental changes.
❏ Formulate Hypotheses:
❏ Infer potential causes (inefficient queries, increased traffic).
Consider other factors (background processes).
Precision Isolation Method(PIM) For CPU Utilization Analysis
❏ Isolation Forest:
❏ Real-Time Performance Panel: Immediate overview of current operations and CPU usage.
❏ Query Performance Analysis: Identify inefficient or heavy queries.
❏ Performance Advisor Insights: Seek indexing and schema optimization advice.
❏ Refine Isolation Forest:
❏ Isolate causes by adjusting one factor at a time.
❏ Utilize MongoDB Atlas insights for guidance.
❏ Iterative Testing and Monitoring:
❏ Implement changes suggested by the Performance Advisor.
❏ Observe the impact in real-time and refine based on feedback.
❏ Resolution Achieved?:
❏ Yes: Document the process and solution. End.
❏ No: Return to "Formulate Hypotheses" or earlier steps as needed.
Precision Isolation Method(PIM) For CPU Utilization Analysis
Any Questions?
Thank You
● https://www.mongodb.com/docs/atlas/tutorial/prometheus-integration/
● https://www.mongodb.com/docs/atlas/monitoring-alerts/
● https://www.mongodb.com/basics/how-to-monitor-mongodb-and-what-metrics-to-monitor
References:

More Related Content

Similar to Mastering MongoDB Atlas: Essentials of Diagnostics and Debugging in the Cloud Mydbops Opensource Database Meetup 15

Build User-Facing Analytics Application That Scales Using StarRocks (DLH).pdf
Build User-Facing Analytics Application That Scales Using StarRocks (DLH).pdfBuild User-Facing Analytics Application That Scales Using StarRocks (DLH).pdf
Build User-Facing Analytics Application That Scales Using StarRocks (DLH).pdfAlbert Wong
 
MySQL Performance Tuning at COSCUP 2014
MySQL Performance Tuning at COSCUP 2014MySQL Performance Tuning at COSCUP 2014
MySQL Performance Tuning at COSCUP 2014Ryusuke Kajiyama
 
MongoDB at MapMyFitness
MongoDB at MapMyFitnessMongoDB at MapMyFitness
MongoDB at MapMyFitnessMapMyFitness
 
Webinar: Introduction to MongoDB 3.0
Webinar: Introduction to MongoDB 3.0Webinar: Introduction to MongoDB 3.0
Webinar: Introduction to MongoDB 3.0MongoDB
 
Conceptos básicos. Seminario web 6: Despliegue de producción
Conceptos básicos. Seminario web 6: Despliegue de producciónConceptos básicos. Seminario web 6: Despliegue de producción
Conceptos básicos. Seminario web 6: Despliegue de producciónMongoDB
 
Datadog: a Real-Time Metrics Database for One Quadrillion Points/Day
Datadog: a Real-Time Metrics Database for One Quadrillion Points/DayDatadog: a Real-Time Metrics Database for One Quadrillion Points/Day
Datadog: a Real-Time Metrics Database for One Quadrillion Points/DayC4Media
 
OSMC 2023 | What’s new with Grafana Labs’s Open Source Observability stack by...
OSMC 2023 | What’s new with Grafana Labs’s Open Source Observability stack by...OSMC 2023 | What’s new with Grafana Labs’s Open Source Observability stack by...
OSMC 2023 | What’s new with Grafana Labs’s Open Source Observability stack by...NETWAYS
 
High Performance Mysql
High Performance MysqlHigh Performance Mysql
High Performance Mysqlliufabin 66688
 
AWS re:Invent 2016| DAT318 | Migrating from RDBMS to NoSQL: How Sony Moved fr...
AWS re:Invent 2016| DAT318 | Migrating from RDBMS to NoSQL: How Sony Moved fr...AWS re:Invent 2016| DAT318 | Migrating from RDBMS to NoSQL: How Sony Moved fr...
AWS re:Invent 2016| DAT318 | Migrating from RDBMS to NoSQL: How Sony Moved fr...Amazon Web Services
 
OSMC 2018 | Learnings, patterns and Uber’s metrics platform M3, open sourced ...
OSMC 2018 | Learnings, patterns and Uber’s metrics platform M3, open sourced ...OSMC 2018 | Learnings, patterns and Uber’s metrics platform M3, open sourced ...
OSMC 2018 | Learnings, patterns and Uber’s metrics platform M3, open sourced ...NETWAYS
 
Tips tricks to speed nw bi 2009
Tips tricks to speed  nw bi  2009Tips tricks to speed  nw bi  2009
Tips tricks to speed nw bi 2009HawaDia
 
PostgreSQL as a Strategic Tool
PostgreSQL as a Strategic ToolPostgreSQL as a Strategic Tool
PostgreSQL as a Strategic ToolEDB
 
Webinar: Best Practices for Upgrading to MongoDB 3.0
Webinar: Best Practices for Upgrading to MongoDB 3.0Webinar: Best Practices for Upgrading to MongoDB 3.0
Webinar: Best Practices for Upgrading to MongoDB 3.0MongoDB
 
New Performance Benchmarks: Apache Impala (incubating) Leads Traditional Anal...
New Performance Benchmarks: Apache Impala (incubating) Leads Traditional Anal...New Performance Benchmarks: Apache Impala (incubating) Leads Traditional Anal...
New Performance Benchmarks: Apache Impala (incubating) Leads Traditional Anal...Cloudera, Inc.
 
Monitoring MongoDB Atlas with Datadog
Monitoring MongoDB Atlas with DatadogMonitoring MongoDB Atlas with Datadog
Monitoring MongoDB Atlas with DatadogMongoDB
 
MongoDB Evenings Chicago - Find Your Way in MongoDB 3.2: Compass and Beyond
MongoDB Evenings Chicago - Find Your Way in MongoDB 3.2: Compass and BeyondMongoDB Evenings Chicago - Find Your Way in MongoDB 3.2: Compass and Beyond
MongoDB Evenings Chicago - Find Your Way in MongoDB 3.2: Compass and BeyondMongoDB
 
NoCOUG_201411_Patel_Managing_a_Large_OLTP_Database
NoCOUG_201411_Patel_Managing_a_Large_OLTP_DatabaseNoCOUG_201411_Patel_Managing_a_Large_OLTP_Database
NoCOUG_201411_Patel_Managing_a_Large_OLTP_DatabaseParesh Patel
 
Best Practices for Building Robust Data Platform with Apache Spark and Delta
Best Practices for Building Robust Data Platform with Apache Spark and DeltaBest Practices for Building Robust Data Platform with Apache Spark and Delta
Best Practices for Building Robust Data Platform with Apache Spark and DeltaDatabricks
 

Similar to Mastering MongoDB Atlas: Essentials of Diagnostics and Debugging in the Cloud Mydbops Opensource Database Meetup 15 (20)

Build User-Facing Analytics Application That Scales Using StarRocks (DLH).pdf
Build User-Facing Analytics Application That Scales Using StarRocks (DLH).pdfBuild User-Facing Analytics Application That Scales Using StarRocks (DLH).pdf
Build User-Facing Analytics Application That Scales Using StarRocks (DLH).pdf
 
MySQL Performance Tuning at COSCUP 2014
MySQL Performance Tuning at COSCUP 2014MySQL Performance Tuning at COSCUP 2014
MySQL Performance Tuning at COSCUP 2014
 
MongoDB at MapMyFitness
MongoDB at MapMyFitnessMongoDB at MapMyFitness
MongoDB at MapMyFitness
 
Webinar: Introduction to MongoDB 3.0
Webinar: Introduction to MongoDB 3.0Webinar: Introduction to MongoDB 3.0
Webinar: Introduction to MongoDB 3.0
 
Conceptos básicos. Seminario web 6: Despliegue de producción
Conceptos básicos. Seminario web 6: Despliegue de producciónConceptos básicos. Seminario web 6: Despliegue de producción
Conceptos básicos. Seminario web 6: Despliegue de producción
 
Datadog: a Real-Time Metrics Database for One Quadrillion Points/Day
Datadog: a Real-Time Metrics Database for One Quadrillion Points/DayDatadog: a Real-Time Metrics Database for One Quadrillion Points/Day
Datadog: a Real-Time Metrics Database for One Quadrillion Points/Day
 
OSMC 2023 | What’s new with Grafana Labs’s Open Source Observability stack by...
OSMC 2023 | What’s new with Grafana Labs’s Open Source Observability stack by...OSMC 2023 | What’s new with Grafana Labs’s Open Source Observability stack by...
OSMC 2023 | What’s new with Grafana Labs’s Open Source Observability stack by...
 
Presto
PrestoPresto
Presto
 
High Performance Mysql
High Performance MysqlHigh Performance Mysql
High Performance Mysql
 
AWS re:Invent 2016| DAT318 | Migrating from RDBMS to NoSQL: How Sony Moved fr...
AWS re:Invent 2016| DAT318 | Migrating from RDBMS to NoSQL: How Sony Moved fr...AWS re:Invent 2016| DAT318 | Migrating from RDBMS to NoSQL: How Sony Moved fr...
AWS re:Invent 2016| DAT318 | Migrating from RDBMS to NoSQL: How Sony Moved fr...
 
OSMC 2018 | Learnings, patterns and Uber’s metrics platform M3, open sourced ...
OSMC 2018 | Learnings, patterns and Uber’s metrics platform M3, open sourced ...OSMC 2018 | Learnings, patterns and Uber’s metrics platform M3, open sourced ...
OSMC 2018 | Learnings, patterns and Uber’s metrics platform M3, open sourced ...
 
Tips tricks to speed nw bi 2009
Tips tricks to speed  nw bi  2009Tips tricks to speed  nw bi  2009
Tips tricks to speed nw bi 2009
 
PostgreSQL as a Strategic Tool
PostgreSQL as a Strategic ToolPostgreSQL as a Strategic Tool
PostgreSQL as a Strategic Tool
 
Webinar: Best Practices for Upgrading to MongoDB 3.0
Webinar: Best Practices for Upgrading to MongoDB 3.0Webinar: Best Practices for Upgrading to MongoDB 3.0
Webinar: Best Practices for Upgrading to MongoDB 3.0
 
New Performance Benchmarks: Apache Impala (incubating) Leads Traditional Anal...
New Performance Benchmarks: Apache Impala (incubating) Leads Traditional Anal...New Performance Benchmarks: Apache Impala (incubating) Leads Traditional Anal...
New Performance Benchmarks: Apache Impala (incubating) Leads Traditional Anal...
 
Mongo db 3.4 Overview
Mongo db 3.4 OverviewMongo db 3.4 Overview
Mongo db 3.4 Overview
 
Monitoring MongoDB Atlas with Datadog
Monitoring MongoDB Atlas with DatadogMonitoring MongoDB Atlas with Datadog
Monitoring MongoDB Atlas with Datadog
 
MongoDB Evenings Chicago - Find Your Way in MongoDB 3.2: Compass and Beyond
MongoDB Evenings Chicago - Find Your Way in MongoDB 3.2: Compass and BeyondMongoDB Evenings Chicago - Find Your Way in MongoDB 3.2: Compass and Beyond
MongoDB Evenings Chicago - Find Your Way in MongoDB 3.2: Compass and Beyond
 
NoCOUG_201411_Patel_Managing_a_Large_OLTP_Database
NoCOUG_201411_Patel_Managing_a_Large_OLTP_DatabaseNoCOUG_201411_Patel_Managing_a_Large_OLTP_Database
NoCOUG_201411_Patel_Managing_a_Large_OLTP_Database
 
Best Practices for Building Robust Data Platform with Apache Spark and Delta
Best Practices for Building Robust Data Platform with Apache Spark and DeltaBest Practices for Building Robust Data Platform with Apache Spark and Delta
Best Practices for Building Robust Data Platform with Apache Spark and Delta
 

More from Mydbops

Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 
PostgreSQL Schema Changes with pg-osc - Mydbops @ PGConf India 2024
PostgreSQL Schema Changes with pg-osc - Mydbops @ PGConf India 2024PostgreSQL Schema Changes with pg-osc - Mydbops @ PGConf India 2024
PostgreSQL Schema Changes with pg-osc - Mydbops @ PGConf India 2024Mydbops
 
Choosing the Right Database: Exploring MySQL Alternatives for Modern Applicat...
Choosing the Right Database: Exploring MySQL Alternatives for Modern Applicat...Choosing the Right Database: Exploring MySQL Alternatives for Modern Applicat...
Choosing the Right Database: Exploring MySQL Alternatives for Modern Applicat...Mydbops
 
Mastering Aurora PostgreSQL Clusters for Disaster Recovery
Mastering Aurora PostgreSQL Clusters for Disaster RecoveryMastering Aurora PostgreSQL Clusters for Disaster Recovery
Mastering Aurora PostgreSQL Clusters for Disaster RecoveryMydbops
 
Navigating Transactions: ACID Complexity in Modern Databases- Mydbops Open So...
Navigating Transactions: ACID Complexity in Modern Databases- Mydbops Open So...Navigating Transactions: ACID Complexity in Modern Databases- Mydbops Open So...
Navigating Transactions: ACID Complexity in Modern Databases- Mydbops Open So...Mydbops
 
AWS RDS in MySQL 2023 Vinoth Kanna @ Mydbops OpenSource Database Meetup 15
AWS RDS in MySQL 2023 Vinoth Kanna @ Mydbops OpenSource Database Meetup 15AWS RDS in MySQL 2023 Vinoth Kanna @ Mydbops OpenSource Database Meetup 15
AWS RDS in MySQL 2023 Vinoth Kanna @ Mydbops OpenSource Database Meetup 15Mydbops
 
Data-at-scale-with-TIDB Mydbops Co-Founder Kabilesh PR at LSPE Event
Data-at-scale-with-TIDB Mydbops Co-Founder Kabilesh PR at LSPE EventData-at-scale-with-TIDB Mydbops Co-Founder Kabilesh PR at LSPE Event
Data-at-scale-with-TIDB Mydbops Co-Founder Kabilesh PR at LSPE EventMydbops
 
MySQL Transformation Case Study: 80% Cost Savings & Uninterrupted Availabilit...
MySQL Transformation Case Study: 80% Cost Savings & Uninterrupted Availabilit...MySQL Transformation Case Study: 80% Cost Savings & Uninterrupted Availabilit...
MySQL Transformation Case Study: 80% Cost Savings & Uninterrupted Availabilit...Mydbops
 
Scaling-MongoDB-with-Horizontal-and-Vertical-Sharding Mydbops Opensource Data...
Scaling-MongoDB-with-Horizontal-and-Vertical-Sharding Mydbops Opensource Data...Scaling-MongoDB-with-Horizontal-and-Vertical-Sharding Mydbops Opensource Data...
Scaling-MongoDB-with-Horizontal-and-Vertical-Sharding Mydbops Opensource Data...Mydbops
 
Data Organisation: Table Partitioning in PostgreSQL
Data Organisation: Table Partitioning in PostgreSQLData Organisation: Table Partitioning in PostgreSQL
Data Organisation: Table Partitioning in PostgreSQLMydbops
 
Navigating MongoDB's Queryable Encryption for Ultimate Security - Mydbops
Navigating MongoDB's Queryable Encryption for Ultimate Security - MydbopsNavigating MongoDB's Queryable Encryption for Ultimate Security - Mydbops
Navigating MongoDB's Queryable Encryption for Ultimate Security - MydbopsMydbops
 
Data High Availability With TIDB
Data High Availability With TIDBData High Availability With TIDB
Data High Availability With TIDBMydbops
 
Mastering Database Migration_ Native replication (8.0) to InnoDB Cluster (8.0...
Mastering Database Migration_ Native replication (8.0) to InnoDB Cluster (8.0...Mastering Database Migration_ Native replication (8.0) to InnoDB Cluster (8.0...
Mastering Database Migration_ Native replication (8.0) to InnoDB Cluster (8.0...Mydbops
 
Enhancing Security of MySQL Connections using SSL certificates
Enhancing Security of MySQL Connections using SSL certificatesEnhancing Security of MySQL Connections using SSL certificates
Enhancing Security of MySQL Connections using SSL certificatesMydbops
 
Exploring the Fundamentals of YugabyteDB - Mydbops
Exploring the Fundamentals of YugabyteDB - Mydbops Exploring the Fundamentals of YugabyteDB - Mydbops
Exploring the Fundamentals of YugabyteDB - Mydbops Mydbops
 
Time series in MongoDB - Mydbops
Time series in MongoDB - Mydbops Time series in MongoDB - Mydbops
Time series in MongoDB - Mydbops Mydbops
 
TiDB in a Nutshell - Power of Open-Source Distributed SQL Database - Mydbops
TiDB in a Nutshell - Power of Open-Source Distributed SQL Database - MydbopsTiDB in a Nutshell - Power of Open-Source Distributed SQL Database - Mydbops
TiDB in a Nutshell - Power of Open-Source Distributed SQL Database - MydbopsMydbops
 
Achieving High Availability in PostgreSQL
Achieving High Availability in PostgreSQLAchieving High Availability in PostgreSQL
Achieving High Availability in PostgreSQLMydbops
 
Scaling MongoDB with Horizontal and Vertical Sharding
Scaling MongoDB with Horizontal and Vertical Sharding Scaling MongoDB with Horizontal and Vertical Sharding
Scaling MongoDB with Horizontal and Vertical Sharding Mydbops
 
MySQL Data Encryption at Rest
MySQL Data Encryption at RestMySQL Data Encryption at Rest
MySQL Data Encryption at RestMydbops
 

More from Mydbops (20)

Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 
PostgreSQL Schema Changes with pg-osc - Mydbops @ PGConf India 2024
PostgreSQL Schema Changes with pg-osc - Mydbops @ PGConf India 2024PostgreSQL Schema Changes with pg-osc - Mydbops @ PGConf India 2024
PostgreSQL Schema Changes with pg-osc - Mydbops @ PGConf India 2024
 
Choosing the Right Database: Exploring MySQL Alternatives for Modern Applicat...
Choosing the Right Database: Exploring MySQL Alternatives for Modern Applicat...Choosing the Right Database: Exploring MySQL Alternatives for Modern Applicat...
Choosing the Right Database: Exploring MySQL Alternatives for Modern Applicat...
 
Mastering Aurora PostgreSQL Clusters for Disaster Recovery
Mastering Aurora PostgreSQL Clusters for Disaster RecoveryMastering Aurora PostgreSQL Clusters for Disaster Recovery
Mastering Aurora PostgreSQL Clusters for Disaster Recovery
 
Navigating Transactions: ACID Complexity in Modern Databases- Mydbops Open So...
Navigating Transactions: ACID Complexity in Modern Databases- Mydbops Open So...Navigating Transactions: ACID Complexity in Modern Databases- Mydbops Open So...
Navigating Transactions: ACID Complexity in Modern Databases- Mydbops Open So...
 
AWS RDS in MySQL 2023 Vinoth Kanna @ Mydbops OpenSource Database Meetup 15
AWS RDS in MySQL 2023 Vinoth Kanna @ Mydbops OpenSource Database Meetup 15AWS RDS in MySQL 2023 Vinoth Kanna @ Mydbops OpenSource Database Meetup 15
AWS RDS in MySQL 2023 Vinoth Kanna @ Mydbops OpenSource Database Meetup 15
 
Data-at-scale-with-TIDB Mydbops Co-Founder Kabilesh PR at LSPE Event
Data-at-scale-with-TIDB Mydbops Co-Founder Kabilesh PR at LSPE EventData-at-scale-with-TIDB Mydbops Co-Founder Kabilesh PR at LSPE Event
Data-at-scale-with-TIDB Mydbops Co-Founder Kabilesh PR at LSPE Event
 
MySQL Transformation Case Study: 80% Cost Savings & Uninterrupted Availabilit...
MySQL Transformation Case Study: 80% Cost Savings & Uninterrupted Availabilit...MySQL Transformation Case Study: 80% Cost Savings & Uninterrupted Availabilit...
MySQL Transformation Case Study: 80% Cost Savings & Uninterrupted Availabilit...
 
Scaling-MongoDB-with-Horizontal-and-Vertical-Sharding Mydbops Opensource Data...
Scaling-MongoDB-with-Horizontal-and-Vertical-Sharding Mydbops Opensource Data...Scaling-MongoDB-with-Horizontal-and-Vertical-Sharding Mydbops Opensource Data...
Scaling-MongoDB-with-Horizontal-and-Vertical-Sharding Mydbops Opensource Data...
 
Data Organisation: Table Partitioning in PostgreSQL
Data Organisation: Table Partitioning in PostgreSQLData Organisation: Table Partitioning in PostgreSQL
Data Organisation: Table Partitioning in PostgreSQL
 
Navigating MongoDB's Queryable Encryption for Ultimate Security - Mydbops
Navigating MongoDB's Queryable Encryption for Ultimate Security - MydbopsNavigating MongoDB's Queryable Encryption for Ultimate Security - Mydbops
Navigating MongoDB's Queryable Encryption for Ultimate Security - Mydbops
 
Data High Availability With TIDB
Data High Availability With TIDBData High Availability With TIDB
Data High Availability With TIDB
 
Mastering Database Migration_ Native replication (8.0) to InnoDB Cluster (8.0...
Mastering Database Migration_ Native replication (8.0) to InnoDB Cluster (8.0...Mastering Database Migration_ Native replication (8.0) to InnoDB Cluster (8.0...
Mastering Database Migration_ Native replication (8.0) to InnoDB Cluster (8.0...
 
Enhancing Security of MySQL Connections using SSL certificates
Enhancing Security of MySQL Connections using SSL certificatesEnhancing Security of MySQL Connections using SSL certificates
Enhancing Security of MySQL Connections using SSL certificates
 
Exploring the Fundamentals of YugabyteDB - Mydbops
Exploring the Fundamentals of YugabyteDB - Mydbops Exploring the Fundamentals of YugabyteDB - Mydbops
Exploring the Fundamentals of YugabyteDB - Mydbops
 
Time series in MongoDB - Mydbops
Time series in MongoDB - Mydbops Time series in MongoDB - Mydbops
Time series in MongoDB - Mydbops
 
TiDB in a Nutshell - Power of Open-Source Distributed SQL Database - Mydbops
TiDB in a Nutshell - Power of Open-Source Distributed SQL Database - MydbopsTiDB in a Nutshell - Power of Open-Source Distributed SQL Database - Mydbops
TiDB in a Nutshell - Power of Open-Source Distributed SQL Database - Mydbops
 
Achieving High Availability in PostgreSQL
Achieving High Availability in PostgreSQLAchieving High Availability in PostgreSQL
Achieving High Availability in PostgreSQL
 
Scaling MongoDB with Horizontal and Vertical Sharding
Scaling MongoDB with Horizontal and Vertical Sharding Scaling MongoDB with Horizontal and Vertical Sharding
Scaling MongoDB with Horizontal and Vertical Sharding
 
MySQL Data Encryption at Rest
MySQL Data Encryption at RestMySQL Data Encryption at Rest
MySQL Data Encryption at Rest
 

Recently uploaded

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
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
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
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
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
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
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
 
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
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 

Recently uploaded (20)

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
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
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
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
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
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
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
 
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)
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 

Mastering MongoDB Atlas: Essentials of Diagnostics and Debugging in the Cloud Mydbops Opensource Database Meetup 15

  • 1. Mastering MongoDB Atlas: Essentials of Diagnostics and Debugging in the Cloud Manosh Malai CTO, Mydbops LLP Mydbops Open Source Database Meetup - 15th Edition
  • 2. About Me Manosh Malai ❏ Interested in Open Source technologies ❏ Interested in MongoDB, DevOps & DevOpSec Practices ❏ Tech Speaker/Blogger ❏ MongoDB User Group Leader(Bangalore)
  • 3. Mydbops Services Focus on MySQL, MongoDB, PostgreSQL, TiDB, Cassandra Consulting Services Consulting Services Managed Services 24*7 DBA Team Targeted Engagement
  • 4. ❏ Introduction ❏ Understanding MongoDB Atlas ❏ Diagnostics in MongoDB Atlas ❏ Debugging in MongoDB Atlas Agenda
  • 6. MongoDB Atlas The multi-cloud developer data platform. Introduction
  • 8. Database Search Streaming Vector Search Atlas Platform Service
  • 9. ❏ MongoDB Atlas is a fully-managed cloud database service provided by MongoDB. ❏ It offers high-performance data handling capabilities for modern applications with a scalable, secure, and intuitive approach. Introduction
  • 10. ❏ Multi-region, Multi-cloud: Run robust applications across multiple regions or clouds simultaneously, ensuring high resilience and flexibility. ❏ Serverless and Elastic: Deploy a serverless database infrastructure that scales dynamically, allowing you to pay only for the resources you use. ❏ Always-on Security: Experience top-tier security with default settings for access control and end-to-end encryption to safeguard your data. ❏ Performance Advice: Receive tailored index and schema design recommendations as your workload evolves, optimizing database performance. Atlas Platform Service
  • 11. ❏ Native Tooling: Enjoy seamless connectivity with command line access and integration with your preferred programming languages. ❏ Automated Data Tiering: Efficiently manage data storage costs with rules-based archival, adapting as your data estate grows. ❏ Continuous Backups: Ensure data integrity with point-in-time recovery, enabling precise restoration to any required moment. ❏ Workload Isolation: Enhance performance with dedicated secondary nodes for local reads or analytics, ensuring optimal resource utilization. Key Features
  • 16. Live monitoring of database operations. Purpose Functionality Provides a real-time view of database activities such as queries, updates, and other operations. Limitations - Data Granularity and Retention: Limited long-term data storage, focusing on immediate data. - Historical Data Analysis: Requires additional tools for in-depth historical analysis Key Benefits - Immediate Visibility: Instant insights into operational state. - Operational Management: Enables real-time monitoring and management of database operations. Real-Time Performance Panel: Features and Limitations
  • 17. 01 Monitoring Data Storage Granularity: ● Atlas stores metrics data at varying granularity levels, averaging data from the previous level for each increase in granularity. ● Default granularity is at 1-minute intervals, with data compaction over time for longer retention. 02 Premium Monitoring Granularity: ● Available for clusters M40 and larger, providing 10-second granularity. ● Premium monitoring gathers more detailed data and is enabled for all clusters in the project once an M40 or larger cluster is deployed. MongoDB Atlas: Data Storage Granularity and Monitoring
  • 18. 03 Data Compaction: ● Initial 48 Hours: Records data every minute. ● After 48 Hours: Compacts 60 minutes of data into one hourly summary. ● After 63 Days: Combines 24 hours of summaries into one daily summary. MongoDB Atlas: Data Storage Granularity and Monitoring 04 Additional Considerations: ● Free/Shared Clusters (M0, M2, M5): Limited metrics; monitoring halts after 7 inactive days. ● Serverless Instances: Limited metrics and charts. ● Log Data: Max 2000 lines retained every 2 minutes.
  • 19. 8 hours (Premium only) 1 minute 48 hours 5 minutes 48 hours 10 seconds 1 hour 63 days 1 Day Forever Granularity Retention Duration MongoDB Atlas: Metrics Data Retention Periods Granularity Retention Duration
  • 20. ❏ Overview: Integrate Atlas with Prometheus for advanced metrics collection, rule evaluation, and alert triggering ❏ Limitations: Not available for Atlas for Government. ❏ Prerequisites: Requires M10+ clusters and a configured Prometheus instance. ❏ Available Metrics: Includes MongoDB Information Metrics, serverStatus, replSetStatus, and various hardware metrics. ❏ Advantage: Prometheus stores historical data, which is vital for analyzing long-term trends and making strategic improvements to database performance. MongoDB Atlas Integration with Prometheus
  • 23. ❏ Only available from M10+ clusters and serverless instances. ❏ Automatically identifies and analyzes slow queries. ❏ Indexes are ranked as High or Medium Impact based on wasted bytes read, indicating potential efficiency improvements. ❏ Suggests indexes to improve query performance. ❏ Recommend up to 20 query shapes from all collections in the cluster and suggests indexes to enhance their performance. ❏ Minimal impact on overall cluster performance. MongoDB Atlas Performance Advisor
  • 25. ❏ The Performance Advisor customizes index field order based on the type of query operation. ❏ Field order is largely determined by the cardinality of fields in the queries. Operation Type Rank Example 1 Equality $eq 2 Array query $in 3 Range Query $gte 4 Type Query $type 5 Exists $exists 6 All other Operators 7 Sort sort() Key Aspects of Index Ranking in MongoDB Atlas Performance Advisor
  • 26. ❏ Only available from M10+ clusters and serverless instances. ❏ Flags an index as unused if it hasn't supported a query in over 7 days. ❏ Focuses on the 20 most active collections for identifying unused indexes. ❏ Hidden indexes are recommended for dropping(for MongoDB 4.4+) ❏ Redundant indexes are marked with a red 'Redundant' badge. Drop Index Recommendations MongoDB Atlas Performance Advisor
  • 27. ❏ Identifies slow-running queries with key statistics displayed in the Atlas UI. ❏ Only available on M10+ clusters and serverless instances ❏ Offers historical query analysis for up to 24 hours without added cost or performance overhead. ❏ db.setProfilingLevel command allows customization of profiling levels. ❏ Atlas-managed slow operation threshold is enabled by default but can be opted out for a fixed slow query threshold of 100 milliseconds. ❏ M0, M2, M5 clusters and serverless instances have this feature disabled by default. ❏ Push log to S3 Monitoring Query Performance in MongoDB Atlas
  • 28. ❏ Displays only up to 10,000 of the most recent operations or 10MB of the most recent logs. ❏ New operations won’t be displayed for 24 hours once the limit is reached. ❏ Profiler charts limited to displaying a maximum of 10,000 data points. ❏ Log data is processed in batches with a possible delay of up to 5 minutes. ❏ In case of high activity spikes and large log volumes, Atlas may temporarily stop collecting new logs. Monitoring Query Performance in MongoDB Atlas: Limitation
  • 30. ❏ PIM troubleshoot principal developed by Mydbops, Its combining the Scientific Method and Isolation Forest ❏ Start: CPU Utilization Alert Received in Slack. ❏ Define the Problem: ❏ Identify high CPU usage symptoms. ❏ Establish baseline CPU usage. ❏ Gather Data: ❏ Collect CPU usage data and system activities from monitoring tools. ❏ Investigate recent environmental changes. ❏ Formulate Hypotheses: ❏ Infer potential causes (inefficient queries, increased traffic). Consider other factors (background processes). Precision Isolation Method(PIM) For CPU Utilization Analysis
  • 31. ❏ Isolation Forest: ❏ Real-Time Performance Panel: Immediate overview of current operations and CPU usage. ❏ Query Performance Analysis: Identify inefficient or heavy queries. ❏ Performance Advisor Insights: Seek indexing and schema optimization advice. ❏ Refine Isolation Forest: ❏ Isolate causes by adjusting one factor at a time. ❏ Utilize MongoDB Atlas insights for guidance. ❏ Iterative Testing and Monitoring: ❏ Implement changes suggested by the Performance Advisor. ❏ Observe the impact in real-time and refine based on feedback. ❏ Resolution Achieved?: ❏ Yes: Document the process and solution. End. ❏ No: Return to "Formulate Hypotheses" or earlier steps as needed. Precision Isolation Method(PIM) For CPU Utilization Analysis
  • 34. ● https://www.mongodb.com/docs/atlas/tutorial/prometheus-integration/ ● https://www.mongodb.com/docs/atlas/monitoring-alerts/ ● https://www.mongodb.com/basics/how-to-monitor-mongodb-and-what-metrics-to-monitor References: