SlideShare a Scribd company logo
Insert Picture Here
Scalablity and Benchmark in
MySQL performance
Amrendra Kumar
Principlal Member of Tech Staff
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.2
The following is intended to outline our general product direction. It is intended for
information purposes only, and may not be incorporated into any contract.
It is not a commitment to deliver any material, code, or functionality, and should not be
relied upon in making purchasing decisions. The development, release, and timing of
any features or functionality described for Oracle’s products remains at the sole
discretion of Oracle.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.4
Why MySQL Performance ?..
● Any solution may look “good enough”...
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.5
Why MySQL Performance ?..
● Until it did not reach its limit..
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.6
Why MySQL Performance ?..
● And reach a similar limit..
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.7
Why MySQL Performance ?..
● And even improved solution may not resist to increasing load..
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.8
Why MySQL Performance ?..
● Analyzing your workload performance and testing your limits may
help you to understand ahead the resistance of your solution to
incoming potentialproblems ;-)
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.9
The MySQL Performance
Best Practice #1 is... ???..
USE Common Sense!!!... ;-)
● Any benchmark is fine but you must test
it in your h/w and environment
● Test to believe
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.10
The MySQL Performance
Best Practice #1 is... ???..
USE Common Sense!!!... ;-)
Main Slides now :)
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.11
#2 - Monitoring is THE MUST ! �
even don’t start to touch anything �
without monitoring.. ;-)
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.12
MySQL Enterprise Monitor
• Fantastic tool!
• Did you already try it?.. Did you see it live?..
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.13
Other Monitoring Tools
Cacti, Zabbix, Nagios, Solarwinds, etc…..
• dim_STAT
• well, I'm using this one, sorry ;-)
• all graphs within presentation were made with it
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.14
A Word about Monitoring…
always validate the impact of your Monitoring on your Production ;-)
• taking 1sec measurements is fine, except :
• if it’s eating 100% CPU time on one or more CPU cores..
• reducing your network traffic / latency..
• eats your RAM, etc.
• avoid to be too much intrusive on MySQL/InnoDB internals..
• you may easily create an additional overhead
• as well you may add artificial locks on your workflow
• for ex: run in loop “show processlist”, etc..
• well, nothing is coming for free, so think about what you’re doing !
• (#1 best practice once again ;-))
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.15
• Single MySQL Instance Performance & Scalability
• single HW host
• no replication
• just to understand how far MySQL Server may scale..
• what are the limits
• what to care about ahead
• which situations are absolutely to avoid.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.16
Why Scalability ?..
• will x2 times faster CPU increase your performance by x2 ?..
• CPU cores : more and more over year-to-year..
• Intel 2CPU : 36cores-HT (2015)
• intel 2CPU : 44cores-HT (March 2016)..
• …
• Scalability In Few Words :
• your software is able to deliver a higher throughput if more HW resources are
available..
• (then, scaling it well or not is another story ;-))
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.17
interpretation of Scalability…
Scale upto N connections
Both are scaling up to 64 connections,
but only one is able to keep a higher load..
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.18
“Generic” Test Workloads @MySQL
• Sysbench <= “Entry Ticket”
• OLTP, RO/RW, N-tables, lots test workload load options, deadlocks
• DBT2 / TPCC-like
• OLTP, RW, very complex, growing db, no options, deadlocks
• In fact using mostly only 2 tables! (thanks Performance Schema ;-))
• dbSTRESS
• OLTP, RO/RW, several tables, one most hot, configurable, no deadlocks
• iiBench
• pure INSERT (time series) + SELECT
• LinkBench (Facebook)
• OLTP, RW, very intensive, IO-hungry..
• DBT3
• DWH, RO, complex heavy query, loved by Optimizer Team ;-)
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.19
RO Point-Selects @MySQL 5.7 (Apr.2016)
• 1.8M QPS Sysbench Point-Selects 8-tab, 72cores-HT :
• or even more, if you really run after numbers.. ;-))
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.20
Q & A now...
Reference:https://www.percona.com/live/data-performance-conference-2016/sessions/mysql-performance-scalability-benchmarks

More Related Content

PDF
Backup and Recovery in MySQL Cluster
PPTX
Bad Habits Die Hard
PDF
MySQL High Availability Solutions
PDF
Cassandra Development Nirvana
PDF
Modern MySQL Monitoring and Dashboards.
PPTX
Scylla Summit 2018: How Scylla Helps You to be a Better Application Developer
PPT
Scaling MySQL using Fabric
PDF
Using MySQL in Automated Testing
Backup and Recovery in MySQL Cluster
Bad Habits Die Hard
MySQL High Availability Solutions
Cassandra Development Nirvana
Modern MySQL Monitoring and Dashboards.
Scylla Summit 2018: How Scylla Helps You to be a Better Application Developer
Scaling MySQL using Fabric
Using MySQL in Automated Testing

What's hot (20)

PDF
MySQL Manchester TT - 5.7 Whats new
PPTX
How to Secure Your Scylla Deployment: Authorization, Encryption, LDAP Authent...
PDF
Make 2016 your year of SMACK talk
PPTX
Apache Kafka at LinkedIn
PPTX
How to upgrade like a boss to my sql 8.0?
PDF
Oracle to Cassandra Core Concepts Guid Part 1: A new hope
PPTX
Ansible for large scale deployment
PPTX
Understanding my database through SQL*Plus using the free tool eDB360
PPT
MySQL HA Percona cluster @ MySQL meetup Mumbai
PPTX
SAS Institute on Changing All Four Tires While Driving an AdTech Engine at Fu...
PDF
Dr. Elephant: Achieving Quicker, Easier, and Cost-Effective Big Data Analytic...
PPTX
Spark introduction and architecture
PPTX
Introducing DataStax Enterprise 4.7
PPTX
mParticle's Journey to Scylla from Cassandra
PPTX
MySQL Cluster - Latest Developments (up to and including MySQL Cluster 7.4)
PDF
MySQL Query Optimization (Basics)
PDF
20171104 hk-py con-mysql-documentstore_v1
PDF
Designing Resilient Application Platforms with Apache Cassandra - Hayato Shim...
PDF
Webinar slides: Introduction to Database Proxies (for MySQL)
PDF
DataStax: How to Roll Cassandra into Production Without Losing your Health, M...
MySQL Manchester TT - 5.7 Whats new
How to Secure Your Scylla Deployment: Authorization, Encryption, LDAP Authent...
Make 2016 your year of SMACK talk
Apache Kafka at LinkedIn
How to upgrade like a boss to my sql 8.0?
Oracle to Cassandra Core Concepts Guid Part 1: A new hope
Ansible for large scale deployment
Understanding my database through SQL*Plus using the free tool eDB360
MySQL HA Percona cluster @ MySQL meetup Mumbai
SAS Institute on Changing All Four Tires While Driving an AdTech Engine at Fu...
Dr. Elephant: Achieving Quicker, Easier, and Cost-Effective Big Data Analytic...
Spark introduction and architecture
Introducing DataStax Enterprise 4.7
mParticle's Journey to Scylla from Cassandra
MySQL Cluster - Latest Developments (up to and including MySQL Cluster 7.4)
MySQL Query Optimization (Basics)
20171104 hk-py con-mysql-documentstore_v1
Designing Resilient Application Platforms with Apache Cassandra - Hayato Shim...
Webinar slides: Introduction to Database Proxies (for MySQL)
DataStax: How to Roll Cassandra into Production Without Losing your Health, M...
Ad

Viewers also liked (14)

PDF
A bíblia do bebê
PDF
DOCX
ILoveYouLA Wireframe 1
PDF
Programming Without Coding Technology (PWCT) - Label Control
PPT
사설토토 <&&>§∇♤kid85.com○∇§ <&&>사설토토 사설토토
DOCX
Ullas-Resume
PPT
Trovas de Ivone Boechat
PPTX
Досалиева Наталья 1 курс IBM
DOC
Авторська грунтована текстильна іграшка
PDF
MoLe: Motion Leaks through Smartwatch Sensors
PPTX
Energy days Zenica
PPTX
Basking in his fullness
PDF
pgconfasia2016 lt ssd2gpu
PDF
Data-Driven Marketing: Less ‘Spray’ more ‘Prey.’ The Journey to Better Custom...
A bíblia do bebê
ILoveYouLA Wireframe 1
Programming Without Coding Technology (PWCT) - Label Control
사설토토 <&&>§∇♤kid85.com○∇§ <&&>사설토토 사설토토
Ullas-Resume
Trovas de Ivone Boechat
Досалиева Наталья 1 курс IBM
Авторська грунтована текстильна іграшка
MoLe: Motion Leaks through Smartwatch Sensors
Energy days Zenica
Basking in his fullness
pgconfasia2016 lt ssd2gpu
Data-Driven Marketing: Less ‘Spray’ more ‘Prey.’ The Journey to Better Custom...
Ad

Similar to Scalablity and benchmark in mysql performance (20)

PDF
MySQL Enterprise Monitor
PPTX
6 Tips to MySQL Performance Tuning
PDF
Netherlands Tech Tour 05 - Strategic Operationalization of MySQL
PPT
MySQL Performance Tuning at COSCUP 2014
PPTX
MySQL Tech Tour 2015 - Manage & Tune
PDF
MySQL 5.6 Performance
PDF
제3회난공불락 오픈소스 인프라세미나 - MySQL Performance
PDF
01 demystifying mysq-lfororacledbaanddeveloperv1
PDF
Oracle Enterprise Manager for MySQL
PPTX
MySQL enterprise edition
PDF
MySQL Enterprise Monitor
PDF
20190615 hkos-mysql-troubleshootingandperformancev2
PDF
Using MySQL Enterprise Monitor for Continuous Performance Improvement
PDF
MySQL Enterprise Edition Overview
ODP
MySQL Enterprise Portfolio
PDF
MySQL Webinar Series 4/4 - Manage & tune
PDF
MySQL Performance Best Practices
PDF
MySQL 20 años: pasado, presente y futuro; conoce las nuevas características d...
PPTX
20140722 Taiwan MySQL User Group Meeting Tech Updates
PDF
MySQL Enterprise Monitor
MySQL Enterprise Monitor
6 Tips to MySQL Performance Tuning
Netherlands Tech Tour 05 - Strategic Operationalization of MySQL
MySQL Performance Tuning at COSCUP 2014
MySQL Tech Tour 2015 - Manage & Tune
MySQL 5.6 Performance
제3회난공불락 오픈소스 인프라세미나 - MySQL Performance
01 demystifying mysq-lfororacledbaanddeveloperv1
Oracle Enterprise Manager for MySQL
MySQL enterprise edition
MySQL Enterprise Monitor
20190615 hkos-mysql-troubleshootingandperformancev2
Using MySQL Enterprise Monitor for Continuous Performance Improvement
MySQL Enterprise Edition Overview
MySQL Enterprise Portfolio
MySQL Webinar Series 4/4 - Manage & tune
MySQL Performance Best Practices
MySQL 20 años: pasado, presente y futuro; conoce las nuevas características d...
20140722 Taiwan MySQL User Group Meeting Tech Updates
MySQL Enterprise Monitor

Recently uploaded (20)

PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
PTS Company Brochure 2025 (1).pdf.......
PPTX
Computer Software and OS of computer science of grade 11.pptx
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
Designing Intelligence for the Shop Floor.pdf
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
top salesforce developer skills in 2025.pdf
PDF
Understanding Forklifts - TECH EHS Solution
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PPTX
Introduction to Artificial Intelligence
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
iTop VPN Free 5.6.0.5262 Crack latest version 2025
PDF
Digital Systems & Binary Numbers (comprehensive )
PPTX
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
PDF
System and Network Administraation Chapter 3
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Which alternative to Crystal Reports is best for small or large businesses.pdf
Upgrade and Innovation Strategies for SAP ERP Customers
PTS Company Brochure 2025 (1).pdf.......
Computer Software and OS of computer science of grade 11.pptx
Design an Analysis of Algorithms II-SECS-1021-03
CHAPTER 2 - PM Management and IT Context
Designing Intelligence for the Shop Floor.pdf
Navsoft: AI-Powered Business Solutions & Custom Software Development
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
top salesforce developer skills in 2025.pdf
Understanding Forklifts - TECH EHS Solution
How to Choose the Right IT Partner for Your Business in Malaysia
Introduction to Artificial Intelligence
Softaken Excel to vCard Converter Software.pdf
iTop VPN Free 5.6.0.5262 Crack latest version 2025
Digital Systems & Binary Numbers (comprehensive )
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
System and Network Administraation Chapter 3
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)

Scalablity and benchmark in mysql performance

  • 1. Insert Picture Here Scalablity and Benchmark in MySQL performance Amrendra Kumar Principlal Member of Tech Staff
  • 2. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.2 The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle.
  • 3. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.4 Why MySQL Performance ?.. ● Any solution may look “good enough”...
  • 4. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.5 Why MySQL Performance ?.. ● Until it did not reach its limit..
  • 5. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.6 Why MySQL Performance ?.. ● And reach a similar limit..
  • 6. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.7 Why MySQL Performance ?.. ● And even improved solution may not resist to increasing load..
  • 7. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.8 Why MySQL Performance ?.. ● Analyzing your workload performance and testing your limits may help you to understand ahead the resistance of your solution to incoming potentialproblems ;-)
  • 8. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.9 The MySQL Performance Best Practice #1 is... ???.. USE Common Sense!!!... ;-) ● Any benchmark is fine but you must test it in your h/w and environment ● Test to believe
  • 9. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.10 The MySQL Performance Best Practice #1 is... ???.. USE Common Sense!!!... ;-) Main Slides now :)
  • 10. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.11 #2 - Monitoring is THE MUST ! � even don’t start to touch anything � without monitoring.. ;-)
  • 11. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.12 MySQL Enterprise Monitor • Fantastic tool! • Did you already try it?.. Did you see it live?..
  • 12. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.13 Other Monitoring Tools Cacti, Zabbix, Nagios, Solarwinds, etc….. • dim_STAT • well, I'm using this one, sorry ;-) • all graphs within presentation were made with it
  • 13. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.14 A Word about Monitoring… always validate the impact of your Monitoring on your Production ;-) • taking 1sec measurements is fine, except : • if it’s eating 100% CPU time on one or more CPU cores.. • reducing your network traffic / latency.. • eats your RAM, etc. • avoid to be too much intrusive on MySQL/InnoDB internals.. • you may easily create an additional overhead • as well you may add artificial locks on your workflow • for ex: run in loop “show processlist”, etc.. • well, nothing is coming for free, so think about what you’re doing ! • (#1 best practice once again ;-))
  • 14. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.15 • Single MySQL Instance Performance & Scalability • single HW host • no replication • just to understand how far MySQL Server may scale.. • what are the limits • what to care about ahead • which situations are absolutely to avoid.
  • 15. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.16 Why Scalability ?.. • will x2 times faster CPU increase your performance by x2 ?.. • CPU cores : more and more over year-to-year.. • Intel 2CPU : 36cores-HT (2015) • intel 2CPU : 44cores-HT (March 2016).. • … • Scalability In Few Words : • your software is able to deliver a higher throughput if more HW resources are available.. • (then, scaling it well or not is another story ;-))
  • 16. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.17 interpretation of Scalability… Scale upto N connections Both are scaling up to 64 connections, but only one is able to keep a higher load..
  • 17. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.18 “Generic” Test Workloads @MySQL • Sysbench <= “Entry Ticket” • OLTP, RO/RW, N-tables, lots test workload load options, deadlocks • DBT2 / TPCC-like • OLTP, RW, very complex, growing db, no options, deadlocks • In fact using mostly only 2 tables! (thanks Performance Schema ;-)) • dbSTRESS • OLTP, RO/RW, several tables, one most hot, configurable, no deadlocks • iiBench • pure INSERT (time series) + SELECT • LinkBench (Facebook) • OLTP, RW, very intensive, IO-hungry.. • DBT3 • DWH, RO, complex heavy query, loved by Optimizer Team ;-)
  • 18. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.19 RO Point-Selects @MySQL 5.7 (Apr.2016) • 1.8M QPS Sysbench Point-Selects 8-tab, 72cores-HT : • or even more, if you really run after numbers.. ;-))
  • 19. Copyright © 2014, Oracle and/or its affiliates. All rights reserved.20 Q & A now... Reference:https://www.percona.com/live/data-performance-conference-2016/sessions/mysql-performance-scalability-benchmarks

Editor's Notes

  • #2: &amp;lt;number&amp;gt;
  • #20: point-select is representing a single SQL query reading a row by its primary key (PK) a workload based on such queries is very similar to any generic key-value store solution, but via SQL usually a point-select is extremely fast and doing a round-trip from end-to-end in database engine so any internals overhead in engine code, any contentions, any scalability limits are seen very quickly.. historically such kind of workload did not scale very well on MySQL/InnoDB tandem.. on MySQL Server side there was a huge amount of internal locks around every SQL query execution while on the InnoDB side there was a huge general overhead related to transactions management + related locks.. the first step ahead was made here in MySQL 5.6 but the real changes came only with MySQL 5.7 ;-)
  • #21: https://www.percona.com/live/data-performance-conference-2016/sessions/mysql-performance-scalability-benchmarks