SlideShare a Scribd company logo
Best practices for running MySQL on production - Vaibhav Upadhyay
Best practices for running
MySQL on production
Agenda:
Backup tool for MySQL
Importance of having basic HA
MySQL trouble shooting
Little about me:
Working for Techmojo solutions
Leading DBA and Production support engineering
MySQL user and try to contribute to forum and gain
knowledge
I thank MyDBOps and Karthik for inviting me!
Backup tool for MySQL:
# Disadvantages
Logical :
Comparitively takes longer time
Takes long to restore
For certain size it's not practical
Physical :
Storage intensive
Nobody can save you, but your backup can!
Types of Backup
Logical and Physical
# Advantages
Logical :
simple commands for backup and restore
storage efficent
Physical :
Faster to backup
Faster to restore
Also crons and config files and may be mysql users in
some cases
# Monitoring backup
# Test backups
Importance of having basic HA:
Why HA?
HA is your friend. :)
1. Fault tolrant architecture
2. Avoid SPOF (Single point of Failure)
3.Your replica is for protecting against the downtime due to HW, SF, DC,
Network failure but not for data loss!
In other words replica can't be your backup strategy!
4.It protects from unplanned downtime and helpful to reduce the unplanned
downtime
5. High availability = High cost and not having HA can cost more than HA cost !
MySQL trouble shooting:
Define your problem (it may evolve over the period)
Have concave approach
1. Start with resources
2. Check the historic resource utilization
3. Check the pattern if any
4. Check for latest changes / deployments
5. Compare the query behavior
6. Hunt for newly added queries (monsters)
7. Define what is your benchmark
8. Know your application well
Tools can be helpful
PMM
Percona-toolkit
Reach out to community for help
Run it like you OWN it!!
Keep a watch on access
Audit privileges periodically
Backup test plan
HA health
Performace reports
Table growth
Top 10 alerts
Top 10 slow queries
Robust SDLC system to filter thing before it goes out to Prod

More Related Content

PPTX
Usability of MySQL
PDF
MySQL infra readiness-for-peak-sale-events - Kabilesh PR (Co-Founder of Mydbops)
PDF
Remote Database Administration Services | Shreeyansh Technologies
PDF
MySQL Performance Schema in Action
PPTX
Insight on MongoDB Change Stream - Abhishek.D, Mydbops Team
PPT
High Performance Mysql
PDF
Using MySQL in Automated Testing
PDF
MySQL High Availability Solutions
Usability of MySQL
MySQL infra readiness-for-peak-sale-events - Kabilesh PR (Co-Founder of Mydbops)
Remote Database Administration Services | Shreeyansh Technologies
MySQL Performance Schema in Action
Insight on MongoDB Change Stream - Abhishek.D, Mydbops Team
High Performance Mysql
Using MySQL in Automated Testing
MySQL High Availability Solutions

What's hot (20)

PPTX
Cassandra Community Webinar: MySQL to Cassandra - What I Wish I'd Known
PPTX
Be Proactive: A Good DBA Goes Looking for Signs of Trouble | IDERA
PDF
Oracle to Cassandra Core Concepts Guid Part 1: A new hope
PPT
Scaling MySQL using Fabric
PDF
AWS Summit Milan - AWS RDS for your data (and your sleep)
PPTX
Introducing DataStax Enterprise 4.7
PDF
Modern MySQL Monitoring and Dashboards.
PPTX
Advanced SQL Server Performance Tuning | IDERA
PDF
MySQL NoSQL APIs
PPTX
Making Every Drop Count: How i20 Addresses the Water Crisis with the IoT and ...
PPTX
Webinar: Dyn + DataStax - helping companies deliver exceptional end-user expe...
PPTX
From PoCs to Production
PDF
MySQL Query Optimization (Basics)
PPTX
Ansible for large scale deployment
PPTX
Azure database services for PostgreSQL and MySQL
PDF
Methods of Sharding MySQL
PDF
Cisco: Cassandra adoption on Cisco UCS & OpenStack
PPTX
How to Secure Your Scylla Deployment: Authorization, Encryption, LDAP Authent...
PDF
Cassandra Workshop - Cassandra from scratch in one day
PDF
The Promise and Perils of Encrypting Cassandra Data (Ameesh Divatia, Baffle, ...
Cassandra Community Webinar: MySQL to Cassandra - What I Wish I'd Known
Be Proactive: A Good DBA Goes Looking for Signs of Trouble | IDERA
Oracle to Cassandra Core Concepts Guid Part 1: A new hope
Scaling MySQL using Fabric
AWS Summit Milan - AWS RDS for your data (and your sleep)
Introducing DataStax Enterprise 4.7
Modern MySQL Monitoring and Dashboards.
Advanced SQL Server Performance Tuning | IDERA
MySQL NoSQL APIs
Making Every Drop Count: How i20 Addresses the Water Crisis with the IoT and ...
Webinar: Dyn + DataStax - helping companies deliver exceptional end-user expe...
From PoCs to Production
MySQL Query Optimization (Basics)
Ansible for large scale deployment
Azure database services for PostgreSQL and MySQL
Methods of Sharding MySQL
Cisco: Cassandra adoption on Cisco UCS & OpenStack
How to Secure Your Scylla Deployment: Authorization, Encryption, LDAP Authent...
Cassandra Workshop - Cassandra from scratch in one day
The Promise and Perils of Encrypting Cassandra Data (Ameesh Divatia, Baffle, ...
Ad

Similar to Best practices for running MySQL on production - Vaibhav Upadhyay (20)

PDF
The Peoper Care and Feeding of a MySQL Server for Busy Linux Admin
PDF
The Proper Care and Feeding of a MySQL Database for Busy Linux Admins -- SCaL...
PDF
The Proper Care and Feeding of MySQL Databases
PDF
Linuxfest Northwest Proper Care and Feeding Of a MySQL for Busy Linux Admins
PPTX
Scalabe MySQL Infrastructure
PPT
MySQL Features & Implementation
PDF
Proper Care and Feeding of a MySQL Database for Busy Linux Administrators
PPT
MySQL 5.6 Updates
PDF
Webinar slides: Top 9 Tips for building a stable MySQL Replication environment
ODP
Pdb my sql backup london percona live 2012
PDF
MySQL enterprise backup overview
PDF
MySQL Enterprise Backup
ODP
The care and feeding of a MySQL database
PDF
PhpTek Ten Things to do to make your MySQL servers Happier and Healthier
PPTX
MySQL Tech Tour 2015 - Manage & Tune
PDF
MySQL Enterprise Backup
PDF
Loadays MySQL
PPT
MySQL HA Presentation
PDF
MySQL High Availability Solutions
PDF
Mysqlhacodebits20091203 1260184765-phpapp02
The Peoper Care and Feeding of a MySQL Server for Busy Linux Admin
The Proper Care and Feeding of a MySQL Database for Busy Linux Admins -- SCaL...
The Proper Care and Feeding of MySQL Databases
Linuxfest Northwest Proper Care and Feeding Of a MySQL for Busy Linux Admins
Scalabe MySQL Infrastructure
MySQL Features & Implementation
Proper Care and Feeding of a MySQL Database for Busy Linux Administrators
MySQL 5.6 Updates
Webinar slides: Top 9 Tips for building a stable MySQL Replication environment
Pdb my sql backup london percona live 2012
MySQL enterprise backup overview
MySQL Enterprise Backup
The care and feeding of a MySQL database
PhpTek Ten Things to do to make your MySQL servers Happier and Healthier
MySQL Tech Tour 2015 - Manage & Tune
MySQL Enterprise Backup
Loadays MySQL
MySQL HA Presentation
MySQL High Availability Solutions
Mysqlhacodebits20091203 1260184765-phpapp02
Ad

More from Mydbops (20)

PDF
Scaling TiDB for Large-Scale Application
PDF
AWS MySQL Showdown - RDS vs RDS Multi AZ vs Aurora vs Serverless - Mydbops...
PDF
Mastering Vector Search with MongoDB Atlas - Manosh Malai - Mydbops MyWebinar 39
PDF
Migration Journey To TiDB - Kabilesh PR - Mydbops MyWebinar 38
PDF
AWS Blue Green Deployment for Databases - Mydbops
PDF
What's New In MySQL 8.4 LTS Mydbops MyWebinar Edition 36
PDF
What's New in PostgreSQL 17? - Mydbops MyWebinar Edition 35
PDF
What's New in MongoDB 8.0 - Mydbops MyWebinar Edition 34
PDF
Scaling Connections in PostgreSQL Postgres Bangalore(PGBLR) Meetup-2 - Mydbops
PDF
Read/Write Splitting using MySQL Router - Mydbops Meetup16
PDF
TiDB - From Data to Discovery: Exploring the Intersection of Distributed Dat...
PDF
MySQL InnoDB Storage Engine: Deep Dive - Mydbops
PDF
Demystifying Real time Analytics with TiDB
PDF
Must Know Postgres Extension for DBA and Developer during Migration
PDF
Efficient MySQL Indexing and what's new in MySQL Explain
PDF
Scale your database traffic with Read & Write split using MySQL Router
PDF
PostgreSQL Schema Changes with pg-osc - Mydbops @ PGConf India 2024
PDF
Choosing the Right Database: Exploring MySQL Alternatives for Modern Applicat...
PDF
Mastering Aurora PostgreSQL Clusters for Disaster Recovery
PDF
Navigating Transactions: ACID Complexity in Modern Databases- Mydbops Open So...
Scaling TiDB for Large-Scale Application
AWS MySQL Showdown - RDS vs RDS Multi AZ vs Aurora vs Serverless - Mydbops...
Mastering Vector Search with MongoDB Atlas - Manosh Malai - Mydbops MyWebinar 39
Migration Journey To TiDB - Kabilesh PR - Mydbops MyWebinar 38
AWS Blue Green Deployment for Databases - Mydbops
What's New In MySQL 8.4 LTS Mydbops MyWebinar Edition 36
What's New in PostgreSQL 17? - Mydbops MyWebinar Edition 35
What's New in MongoDB 8.0 - Mydbops MyWebinar Edition 34
Scaling Connections in PostgreSQL Postgres Bangalore(PGBLR) Meetup-2 - Mydbops
Read/Write Splitting using MySQL Router - Mydbops Meetup16
TiDB - From Data to Discovery: Exploring the Intersection of Distributed Dat...
MySQL InnoDB Storage Engine: Deep Dive - Mydbops
Demystifying Real time Analytics with TiDB
Must Know Postgres Extension for DBA and Developer during Migration
Efficient MySQL Indexing and what's new in MySQL Explain
Scale your database traffic with Read & Write split using MySQL Router
PostgreSQL Schema Changes with pg-osc - Mydbops @ PGConf India 2024
Choosing the Right Database: Exploring MySQL Alternatives for Modern Applicat...
Mastering Aurora PostgreSQL Clusters for Disaster Recovery
Navigating Transactions: ACID Complexity in Modern Databases- Mydbops Open So...

Recently uploaded (20)

PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
Lecture Notes Electrical Wiring System Components
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
Artificial Intelligence
PDF
PPT on Performance Review to get promotions
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
Current and future trends in Computer Vision.pptx
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PDF
Digital Logic Computer Design lecture notes
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
DOCX
573137875-Attendance-Management-System-original
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PPT
Project quality management in manufacturing
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Lecture Notes Electrical Wiring System Components
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Artificial Intelligence
PPT on Performance Review to get promotions
CYBER-CRIMES AND SECURITY A guide to understanding
Current and future trends in Computer Vision.pptx
Foundation to blockchain - A guide to Blockchain Tech
Model Code of Practice - Construction Work - 21102022 .pdf
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Embodied AI: Ushering in the Next Era of Intelligent Systems
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Digital Logic Computer Design lecture notes
bas. eng. economics group 4 presentation 1.pptx
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
573137875-Attendance-Management-System-original
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
Project quality management in manufacturing

Best practices for running MySQL on production - Vaibhav Upadhyay

  • 2. Best practices for running MySQL on production
  • 3. Agenda: Backup tool for MySQL Importance of having basic HA MySQL trouble shooting
  • 4. Little about me: Working for Techmojo solutions Leading DBA and Production support engineering MySQL user and try to contribute to forum and gain knowledge I thank MyDBOps and Karthik for inviting me!
  • 5. Backup tool for MySQL: # Disadvantages Logical : Comparitively takes longer time Takes long to restore For certain size it's not practical Physical : Storage intensive Nobody can save you, but your backup can! Types of Backup Logical and Physical # Advantages Logical : simple commands for backup and restore storage efficent Physical : Faster to backup Faster to restore Also crons and config files and may be mysql users in some cases # Monitoring backup # Test backups
  • 6. Importance of having basic HA: Why HA? HA is your friend. :) 1. Fault tolrant architecture 2. Avoid SPOF (Single point of Failure) 3.Your replica is for protecting against the downtime due to HW, SF, DC, Network failure but not for data loss! In other words replica can't be your backup strategy! 4.It protects from unplanned downtime and helpful to reduce the unplanned downtime 5. High availability = High cost and not having HA can cost more than HA cost !
  • 7. MySQL trouble shooting: Define your problem (it may evolve over the period) Have concave approach 1. Start with resources 2. Check the historic resource utilization 3. Check the pattern if any 4. Check for latest changes / deployments 5. Compare the query behavior 6. Hunt for newly added queries (monsters) 7. Define what is your benchmark 8. Know your application well Tools can be helpful PMM Percona-toolkit Reach out to community for help
  • 8. Run it like you OWN it!! Keep a watch on access Audit privileges periodically Backup test plan HA health Performace reports Table growth Top 10 alerts Top 10 slow queries Robust SDLC system to filter thing before it goes out to Prod