SlideShare a Scribd company logo
MySQL Meetup 
September 8th, 2014
Text 
Welcome! 
To the 1st of many MySQL Meetups!
Agenda: 
• Food and registration 5:30 - 6:30 
• Speaker 6:30 - 7:00 
• Questions 7:00 - 7:30 
• Networking 7:30 - 8:00
Quick Performance Check 
Presented by: Wayne Leutwyler
When a quick look is 
needed. 
Weekday management fire drill. 
2am OnCall page. 
Unhappy customer calls you to complain about 
response time. 
Or anytime you just want to see how a certain database 
server is performing.
The Views. 
Below are 6 views that I find very useful for day today 
performance check, or the 2am issue. 
v_InnoBPHitRate 
v_table_cache_used 
v_table_definition_cache_use 
v_thread_cache_hit 
v_thread_cache_used 
v_tmp_to_disk
v_InnoBPHitRate 
CREATE 
ALGORITHM = UNDEFINED 
DEFINER = `wayne`@`localhost` 
SQL SECURITY DEFINER 
VIEW `v_InnoBPHitRate` AS 
select 
round((100 - ((100 * `P2`.`VARIABLE_VALUE`) / 
`P1`.`VARIABLE_VALUE`)), 
2) AS `InnoBP Hit Rate`, 
`P2`.`VARIABLE_VALUE` AS `InnoBP Read Requests (from disk)`, 
`P1`.`VARIABLE_VALUE` AS `InnoBP Reads (from BP)` 
from 
(`information_schema`.`GLOBAL_STATUS` `P1` 
join `information_schema`.`GLOBAL_STATUS` `P2`) 
where 
((`P1`.`VARIABLE_NAME` = 'innodb_buffer_pool_read_requests') 
and (`P2`.`VARIABLE_NAME` = 'innodb_buffer_pool_reads')) 
I have always gone with 50% 
of total server ram for my InnoDB 
buffer pool. Recommendations 
range from 50% to 80%.
v_table_cache_used 
CREATE 
ALGORITHM = UNDEFINED 
DEFINER = `wayne`@`localhost` 
SQL SECURITY DEFINER 
VIEW `v_table_cache_used` AS 
select 
round(((`information_schema`.`global_status`.`VARIABLE_VALUE` / 
`information_schema`.`GLOBAL_VARIABLES`.`VARIABLE_VALUE`) * 
100), 
2) AS `Table Cache % Used` 
from 
(`information_schema`.`global_status` 
join `information_schema`.`GLOBAL_VARIABLES`) 
where 
((`information_schema`.`global_status`.`VARIABLE_NAME` = 
'opened_tables') 
and 
(`information_schema`.`GLOBAL_VARIABLES`.`VARIABLE_NAME` = 
'table_open_cache')) 
Below 90% Adjust: 
table_open_cache
v_table_definition_cache_use 
CREATE 
ALGORITHM = UNDEFINED 
DEFINER = `wayne`@`localhost` 
SQL SECURITY DEFINER 
VIEW `v_table_definition_cache_used` AS 
select 
round(((`information_schema`.`global_status`.`VARIABLE_VALUE` 
/ `information_schema`.`GLOBAL_VARIABLES`.`VARIABLE_VALUE`) * 
100), 
2) AS `Table Definition Cache % Used` 
from 
(`information_schema`.`global_status` 
join `information_schema`.`GLOBAL_VARIABLES`) 
where 
((`information_schema`.`global_status`.`VARIABLE_NAME` = 
'open_table_definitions') 
and 
(`information_schema`.`GLOBAL_VARIABLES`.`VARIABLE_NAME` = 
'table_definition_cache')) 
Above 100% adjust: 
table_definition_cache
v_thread_cache_hit 
CREATE 
ALGORITHM = UNDEFINED 
DEFINER = `wayne`@`localhost` 
SQL SECURITY DEFINER 
VIEW `v_thread_cache_hit` AS 
select 
round((100 - ((`p1`.`VARIABLE_VALUE` / `p2`.`VARIABLE_VALUE`) * 
100)), 
2) AS `Thread Cache Hit Rate`, 
`p1`.`VARIABLE_VALUE` AS `Threads Created`, 
`p2`.`VARIABLE_VALUE` AS `Connections` 
from 
(`information_schema`.`global_status` `p1` 
join `information_schema`.`global_status` `p2`) 
where 
((`p1`.`VARIABLE_NAME` = 'threads_created') 
and (`p2`.`VARIABLE_NAME` = 'connections')) 
Below 90% adjust: 
thread_cache_size
v_thread_cache_used 
CREATE 
ALGORITHM = UNDEFINED 
DEFINER = `wayne`@`localhost` 
SQL SECURITY DEFINER 
VIEW `v_thread_cache_used` AS 
select 
round(((`information_schema`.`global_status`.`VARIABLE_VALUE` 
/ `information_schema`.`GLOBAL_VARIABLES`.`VARIABLE_VALUE`) * 
100), 
2) AS `Thread Cache % Used` 
from 
(`information_schema`.`global_status` 
join `information_schema`.`GLOBAL_VARIABLES`) 
where 
((`information_schema`.`global_status`.`VARIABLE_NAME` = 
'threads_cached') 
and 
(`information_schema`.`GLOBAL_VARIABLES`.`VARIABLE_NAME` = 
'thread_cache_size')) 
Above 100% adjust: 
thread_cache_size
v_tmp_to_disk 
CREATE 
ALGORITHM = UNDEFINED 
DEFINER = `wayne`@`localhost` 
SQL SECURITY DEFINER 
VIEW `v_tmp_to_disk` AS 
select 
round(((`p1`.`VARIABLE_VALUE` / `p2`.`VARIABLE_VALUE`) 
* 100), 
2) AS `Percent TMP to Disk` 
from 
(`information_schema`.`global_status` `p1` 
join `information_schema`.`global_status` `p2`) 
where 
((`p1`.`VARIABLE_NAME` = 
'CREATED_TMP_DISK_TABLES') 
and (`p2`.`VARIABLE_NAME` = 
'CREATED_TMP_TABLES')) 
If percent is 25% or higher 
adjust: 
tmp_table_size 
max_heap_table_size
Command Line Tools 
When you cant find an issue with the DB, time 
to check the system. 
top 
iostat 
vmstat 
free
House Keeping 
Put your trash in the proper place. 
Don’t wonder around the building. 
Please put the chairs back the way they were. 
Please keep the noise down. We don’t want to 
disturb people still working.
Thank you! 
Percona for the food and drinks. 
CareWorks Tech for hosting our meeting.
Thank You 
questions? 
The views expressed in this presentation are mine alone.

More Related Content

What's hot

Frontend Controllers
Frontend ControllersFrontend Controllers
Frontend Controllers
rodnaph
 
Upgrade your javascript to drupal 8
Upgrade your javascript to drupal 8Upgrade your javascript to drupal 8
Upgrade your javascript to drupal 8
Théodore Biadala
 
19. CodeIgniter imagini in mysql
19. CodeIgniter imagini in mysql19. CodeIgniter imagini in mysql
19. CodeIgniter imagini in mysql
Razvan Raducanu, PhD
 
Odoo - CMS performances optimization
Odoo - CMS performances optimizationOdoo - CMS performances optimization
Odoo - CMS performances optimization
Odoo
 
Intro to PAS REST API
Intro to PAS REST APIIntro to PAS REST API
Intro to PAS REST API
Joe Garcia
 
Introduction to the WordPress Transients API
Introduction to the WordPress Transients APIIntroduction to the WordPress Transients API
Introduction to the WordPress Transients API
topher1kenobe
 
Cache is King: Get the Most Bang for Your Buck From Ruby
Cache is King: Get the Most Bang for Your Buck From RubyCache is King: Get the Most Bang for Your Buck From Ruby
Cache is King: Get the Most Bang for Your Buck From Ruby
Molly Struve
 
Code refactoring of existing AutoTest to PageObject pattern
Code refactoring of existing AutoTest to PageObject patternCode refactoring of existing AutoTest to PageObject pattern
Code refactoring of existing AutoTest to PageObject pattern
Anton Bogdan
 
ActiveSupport
ActiveSupportActiveSupport
ActiveSupport
sean_todd
 
Web app development_crud_13
Web app development_crud_13Web app development_crud_13
Web app development_crud_13
Hassen Poreya
 
All in one_seo_pack
All in one_seo_packAll in one_seo_pack
All in one_seo_pack
Human Relationships
 
Test driven development (java script & mivascript)
Test driven development (java script & mivascript)Test driven development (java script & mivascript)
Test driven development (java script & mivascript)
Miva
 
Managing a shared mysql farm dpc11
Managing a shared mysql farm dpc11Managing a shared mysql farm dpc11
Managing a shared mysql farm dpc11
Combell NV
 
MySQL NoSQL JSON JS Python "Document Store" demo
MySQL NoSQL JSON JS Python "Document Store" demoMySQL NoSQL JSON JS Python "Document Store" demo
MySQL NoSQL JSON JS Python "Document Store" demo
Keith Hollman
 
Drupal.js: Best Practices for Managing Javascript in Drupal
Drupal.js: Best Practices for Managing Javascript in DrupalDrupal.js: Best Practices for Managing Javascript in Drupal
Drupal.js: Best Practices for Managing Javascript in Drupal
Bryan Braun
 
You don't know people
You don't know peopleYou don't know people
You don't know people
Evan Solomon
 
Metrics-Driven Engineering at Etsy
Metrics-Driven Engineering at EtsyMetrics-Driven Engineering at Etsy
Metrics-Driven Engineering at Etsy
Mike Brittain
 
Progressive What Apps?
Progressive What Apps?Progressive What Apps?
Progressive What Apps?
Patrick Kettner
 
Using npm to Manage Your Projects for Fun and Profit - USEFUL INFO IN NOTES!
Using npm to Manage Your Projects for Fun and Profit - USEFUL INFO IN NOTES!Using npm to Manage Your Projects for Fun and Profit - USEFUL INFO IN NOTES!
Using npm to Manage Your Projects for Fun and Profit - USEFUL INFO IN NOTES!
async_io
 
Php user groupmemcached
Php user groupmemcachedPhp user groupmemcached
Php user groupmemcached
Jason Anderson
 

What's hot (20)

Frontend Controllers
Frontend ControllersFrontend Controllers
Frontend Controllers
 
Upgrade your javascript to drupal 8
Upgrade your javascript to drupal 8Upgrade your javascript to drupal 8
Upgrade your javascript to drupal 8
 
19. CodeIgniter imagini in mysql
19. CodeIgniter imagini in mysql19. CodeIgniter imagini in mysql
19. CodeIgniter imagini in mysql
 
Odoo - CMS performances optimization
Odoo - CMS performances optimizationOdoo - CMS performances optimization
Odoo - CMS performances optimization
 
Intro to PAS REST API
Intro to PAS REST APIIntro to PAS REST API
Intro to PAS REST API
 
Introduction to the WordPress Transients API
Introduction to the WordPress Transients APIIntroduction to the WordPress Transients API
Introduction to the WordPress Transients API
 
Cache is King: Get the Most Bang for Your Buck From Ruby
Cache is King: Get the Most Bang for Your Buck From RubyCache is King: Get the Most Bang for Your Buck From Ruby
Cache is King: Get the Most Bang for Your Buck From Ruby
 
Code refactoring of existing AutoTest to PageObject pattern
Code refactoring of existing AutoTest to PageObject patternCode refactoring of existing AutoTest to PageObject pattern
Code refactoring of existing AutoTest to PageObject pattern
 
ActiveSupport
ActiveSupportActiveSupport
ActiveSupport
 
Web app development_crud_13
Web app development_crud_13Web app development_crud_13
Web app development_crud_13
 
All in one_seo_pack
All in one_seo_packAll in one_seo_pack
All in one_seo_pack
 
Test driven development (java script & mivascript)
Test driven development (java script & mivascript)Test driven development (java script & mivascript)
Test driven development (java script & mivascript)
 
Managing a shared mysql farm dpc11
Managing a shared mysql farm dpc11Managing a shared mysql farm dpc11
Managing a shared mysql farm dpc11
 
MySQL NoSQL JSON JS Python "Document Store" demo
MySQL NoSQL JSON JS Python "Document Store" demoMySQL NoSQL JSON JS Python "Document Store" demo
MySQL NoSQL JSON JS Python "Document Store" demo
 
Drupal.js: Best Practices for Managing Javascript in Drupal
Drupal.js: Best Practices for Managing Javascript in DrupalDrupal.js: Best Practices for Managing Javascript in Drupal
Drupal.js: Best Practices for Managing Javascript in Drupal
 
You don't know people
You don't know peopleYou don't know people
You don't know people
 
Metrics-Driven Engineering at Etsy
Metrics-Driven Engineering at EtsyMetrics-Driven Engineering at Etsy
Metrics-Driven Engineering at Etsy
 
Progressive What Apps?
Progressive What Apps?Progressive What Apps?
Progressive What Apps?
 
Using npm to Manage Your Projects for Fun and Profit - USEFUL INFO IN NOTES!
Using npm to Manage Your Projects for Fun and Profit - USEFUL INFO IN NOTES!Using npm to Manage Your Projects for Fun and Profit - USEFUL INFO IN NOTES!
Using npm to Manage Your Projects for Fun and Profit - USEFUL INFO IN NOTES!
 
Php user groupmemcached
Php user groupmemcachedPhp user groupmemcached
Php user groupmemcached
 

Viewers also liked

Why Launch a Company Blog and Use Social Media
Why Launch a Company Blog  and Use Social MediaWhy Launch a Company Blog  and Use Social Media
Why Launch a Company Blog and Use Social Media
Graeme Thickins
 
Certificato30ore_distanza
Certificato30ore_distanzaCertificato30ore_distanza
Certificato30ore_distanzaLinkedIn
 
Final intro
Final introFinal intro
Final intro
Tim Hutchens
 
Enlightened Investment Deck
Enlightened Investment DeckEnlightened Investment Deck
Enlightened Investment Deck
Enlightened.org
 
Frwd Challenge Q4 2010
Frwd Challenge Q4 2010Frwd Challenge Q4 2010
Frwd Challenge Q4 2010
John Grudnowski
 
Pete Blackshaw - Keynote Speech: Word of Mouth Marketing Association Annual S...
Pete Blackshaw - Keynote Speech: Word of Mouth Marketing Association Annual S...Pete Blackshaw - Keynote Speech: Word of Mouth Marketing Association Annual S...
Pete Blackshaw - Keynote Speech: Word of Mouth Marketing Association Annual S...
Pete Blackshaw
 
What is Integration as a Service? - HIMSS
What is Integration as a Service? - HIMSSWhat is Integration as a Service? - HIMSS
What is Integration as a Service? - HIMSS
Ryan Adams
 
ASTD San Diego changes name to ATD San Diego
ASTD San Diego changes name to ATD San DiegoASTD San Diego changes name to ATD San Diego
ASTD San Diego changes name to ATD San Diego
Civility Partners, LLC
 
LifePlan
LifePlanLifePlan
LifePlan
Lily Kreitinger
 
Startup360 - Virtual Startup Marketplace Ecosystem
Startup360 - Virtual Startup Marketplace Ecosystem Startup360 - Virtual Startup Marketplace Ecosystem
Startup360 - Virtual Startup Marketplace Ecosystem
eZ-Xpo - the World's All-in-1 Virtual Trade Show & Expo Network
 
Do you Know the Difference Between a Buffer and Safety Zone?
Do you Know the Difference Between a Buffer and Safety Zone?Do you Know the Difference Between a Buffer and Safety Zone?
Do you Know the Difference Between a Buffer and Safety Zone?
Lawrence Berezin
 
Business Traveler Security
Business Traveler SecurityBusiness Traveler Security
Business Traveler Security
Chris Kameir
 
Police report writing arrest report headings
Police report writing arrest report headingsPolice report writing arrest report headings
Police report writing arrest report headings
Hi Tech Criminal Justice
 
The Greatest Of All Time - 10 Quotes from Muhammad Ali
The Greatest Of All Time - 10 Quotes from Muhammad AliThe Greatest Of All Time - 10 Quotes from Muhammad Ali
The Greatest Of All Time - 10 Quotes from Muhammad Ali
HighSpark | Visual Storytelling Agency
 
ZIKA - What You Need to Know!
ZIKA - What You Need to Know! ZIKA - What You Need to Know!
ZIKA - What You Need to Know!
Empowered Presentations
 

Viewers also liked (15)

Why Launch a Company Blog and Use Social Media
Why Launch a Company Blog  and Use Social MediaWhy Launch a Company Blog  and Use Social Media
Why Launch a Company Blog and Use Social Media
 
Certificato30ore_distanza
Certificato30ore_distanzaCertificato30ore_distanza
Certificato30ore_distanza
 
Final intro
Final introFinal intro
Final intro
 
Enlightened Investment Deck
Enlightened Investment DeckEnlightened Investment Deck
Enlightened Investment Deck
 
Frwd Challenge Q4 2010
Frwd Challenge Q4 2010Frwd Challenge Q4 2010
Frwd Challenge Q4 2010
 
Pete Blackshaw - Keynote Speech: Word of Mouth Marketing Association Annual S...
Pete Blackshaw - Keynote Speech: Word of Mouth Marketing Association Annual S...Pete Blackshaw - Keynote Speech: Word of Mouth Marketing Association Annual S...
Pete Blackshaw - Keynote Speech: Word of Mouth Marketing Association Annual S...
 
What is Integration as a Service? - HIMSS
What is Integration as a Service? - HIMSSWhat is Integration as a Service? - HIMSS
What is Integration as a Service? - HIMSS
 
ASTD San Diego changes name to ATD San Diego
ASTD San Diego changes name to ATD San DiegoASTD San Diego changes name to ATD San Diego
ASTD San Diego changes name to ATD San Diego
 
LifePlan
LifePlanLifePlan
LifePlan
 
Startup360 - Virtual Startup Marketplace Ecosystem
Startup360 - Virtual Startup Marketplace Ecosystem Startup360 - Virtual Startup Marketplace Ecosystem
Startup360 - Virtual Startup Marketplace Ecosystem
 
Do you Know the Difference Between a Buffer and Safety Zone?
Do you Know the Difference Between a Buffer and Safety Zone?Do you Know the Difference Between a Buffer and Safety Zone?
Do you Know the Difference Between a Buffer and Safety Zone?
 
Business Traveler Security
Business Traveler SecurityBusiness Traveler Security
Business Traveler Security
 
Police report writing arrest report headings
Police report writing arrest report headingsPolice report writing arrest report headings
Police report writing arrest report headings
 
The Greatest Of All Time - 10 Quotes from Muhammad Ali
The Greatest Of All Time - 10 Quotes from Muhammad AliThe Greatest Of All Time - 10 Quotes from Muhammad Ali
The Greatest Of All Time - 10 Quotes from Muhammad Ali
 
ZIKA - What You Need to Know!
ZIKA - What You Need to Know! ZIKA - What You Need to Know!
ZIKA - What You Need to Know!
 

Similar to Quick MySQL performance check

Nagios Conference 2012 - Sheeri Cabral - Alerting With MySQL and Nagios
Nagios Conference 2012 - Sheeri Cabral - Alerting With MySQL and NagiosNagios Conference 2012 - Sheeri Cabral - Alerting With MySQL and Nagios
Nagios Conference 2012 - Sheeri Cabral - Alerting With MySQL and Nagios
Nagios
 
Asterisk_MySQL_Cluster_Presentation.pdf
Asterisk_MySQL_Cluster_Presentation.pdfAsterisk_MySQL_Cluster_Presentation.pdf
Asterisk_MySQL_Cluster_Presentation.pdf
Delphini Systems Consultoria e Treinamento
 
My sql monitoring cu沙龙
My sql monitoring cu沙龙My sql monitoring cu沙龙
My sql monitoring cu沙龙
colderboy17
 
ProxySQL and the Tricks Up Its Sleeve - Percona Live 2022.pdf
ProxySQL and the Tricks Up Its Sleeve - Percona Live 2022.pdfProxySQL and the Tricks Up Its Sleeve - Percona Live 2022.pdf
ProxySQL and the Tricks Up Its Sleeve - Percona Live 2022.pdf
Jesmar Cannao'
 
point in time recovery
point in time recoverypoint in time recovery
point in time recovery
ssuser1eca7d
 
Security 202 - Are you sure your site is secure?
Security 202 - Are you sure your site is secure?Security 202 - Are you sure your site is secure?
Security 202 - Are you sure your site is secure?
ConFoo
 
MySQL server security
MySQL server securityMySQL server security
MySQL server security
Damien Seguy
 
VMUG - Using PowerShell to call RESTful APIs
VMUG - Using PowerShell to call RESTful APIsVMUG - Using PowerShell to call RESTful APIs
VMUG - Using PowerShell to call RESTful APIs
Chris Wahl
 
Service discovery and configuration provisioning
Service discovery and configuration provisioningService discovery and configuration provisioning
Service discovery and configuration provisioning
Source Ministry
 
Mater,slave on mysql
Mater,slave on mysqlMater,slave on mysql
Mater,slave on mysql
Vasudeva Rao
 
Apostrophe (improved Paris edition)
Apostrophe (improved Paris edition)Apostrophe (improved Paris edition)
Apostrophe (improved Paris edition)
tompunk
 
JavaScript and Friends August 20th, 20201 -- MySQL Shell and JavaScript
JavaScript and Friends August 20th, 20201 -- MySQL Shell and JavaScriptJavaScript and Friends August 20th, 20201 -- MySQL Shell and JavaScript
JavaScript and Friends August 20th, 20201 -- MySQL Shell and JavaScript
Dave Stokes
 
2014 database - course 3 - PHP and MySQL
2014 database - course 3 - PHP and MySQL2014 database - course 3 - PHP and MySQL
2014 database - course 3 - PHP and MySQL
Hung-yu Lin
 
20151010 my sq-landjavav2a
20151010 my sq-landjavav2a20151010 my sq-landjavav2a
20151010 my sq-landjavav2a
Ivan Ma
 
PHP with MYSQL
PHP with MYSQLPHP with MYSQL
Building an Analytic Extension to MySQL with ClickHouse and Open Source
Building an Analytic Extension to MySQL with ClickHouse and Open SourceBuilding an Analytic Extension to MySQL with ClickHouse and Open Source
Building an Analytic Extension to MySQL with ClickHouse and Open Source
Altinity Ltd
 
Building an Analytic Extension to MySQL with ClickHouse and Open Source.pptx
Building an Analytic Extension to MySQL with ClickHouse and Open Source.pptxBuilding an Analytic Extension to MySQL with ClickHouse and Open Source.pptx
Building an Analytic Extension to MySQL with ClickHouse and Open Source.pptx
Altinity Ltd
 
Managing a shared_mysql_farm_phpday2011
Managing a shared_mysql_farm_phpday2011Managing a shared_mysql_farm_phpday2011
Managing a shared_mysql_farm_phpday2011
Combell NV
 
Advanced Cassandra
Advanced CassandraAdvanced Cassandra
Advanced Cassandra
DataStax Academy
 
OpenWorld 2018 - Common Application Developer Disasters
OpenWorld 2018 - Common Application Developer DisastersOpenWorld 2018 - Common Application Developer Disasters
OpenWorld 2018 - Common Application Developer Disasters
Connor McDonald
 

Similar to Quick MySQL performance check (20)

Nagios Conference 2012 - Sheeri Cabral - Alerting With MySQL and Nagios
Nagios Conference 2012 - Sheeri Cabral - Alerting With MySQL and NagiosNagios Conference 2012 - Sheeri Cabral - Alerting With MySQL and Nagios
Nagios Conference 2012 - Sheeri Cabral - Alerting With MySQL and Nagios
 
Asterisk_MySQL_Cluster_Presentation.pdf
Asterisk_MySQL_Cluster_Presentation.pdfAsterisk_MySQL_Cluster_Presentation.pdf
Asterisk_MySQL_Cluster_Presentation.pdf
 
My sql monitoring cu沙龙
My sql monitoring cu沙龙My sql monitoring cu沙龙
My sql monitoring cu沙龙
 
ProxySQL and the Tricks Up Its Sleeve - Percona Live 2022.pdf
ProxySQL and the Tricks Up Its Sleeve - Percona Live 2022.pdfProxySQL and the Tricks Up Its Sleeve - Percona Live 2022.pdf
ProxySQL and the Tricks Up Its Sleeve - Percona Live 2022.pdf
 
point in time recovery
point in time recoverypoint in time recovery
point in time recovery
 
Security 202 - Are you sure your site is secure?
Security 202 - Are you sure your site is secure?Security 202 - Are you sure your site is secure?
Security 202 - Are you sure your site is secure?
 
MySQL server security
MySQL server securityMySQL server security
MySQL server security
 
VMUG - Using PowerShell to call RESTful APIs
VMUG - Using PowerShell to call RESTful APIsVMUG - Using PowerShell to call RESTful APIs
VMUG - Using PowerShell to call RESTful APIs
 
Service discovery and configuration provisioning
Service discovery and configuration provisioningService discovery and configuration provisioning
Service discovery and configuration provisioning
 
Mater,slave on mysql
Mater,slave on mysqlMater,slave on mysql
Mater,slave on mysql
 
Apostrophe (improved Paris edition)
Apostrophe (improved Paris edition)Apostrophe (improved Paris edition)
Apostrophe (improved Paris edition)
 
JavaScript and Friends August 20th, 20201 -- MySQL Shell and JavaScript
JavaScript and Friends August 20th, 20201 -- MySQL Shell and JavaScriptJavaScript and Friends August 20th, 20201 -- MySQL Shell and JavaScript
JavaScript and Friends August 20th, 20201 -- MySQL Shell and JavaScript
 
2014 database - course 3 - PHP and MySQL
2014 database - course 3 - PHP and MySQL2014 database - course 3 - PHP and MySQL
2014 database - course 3 - PHP and MySQL
 
20151010 my sq-landjavav2a
20151010 my sq-landjavav2a20151010 my sq-landjavav2a
20151010 my sq-landjavav2a
 
PHP with MYSQL
PHP with MYSQLPHP with MYSQL
PHP with MYSQL
 
Building an Analytic Extension to MySQL with ClickHouse and Open Source
Building an Analytic Extension to MySQL with ClickHouse and Open SourceBuilding an Analytic Extension to MySQL with ClickHouse and Open Source
Building an Analytic Extension to MySQL with ClickHouse and Open Source
 
Building an Analytic Extension to MySQL with ClickHouse and Open Source.pptx
Building an Analytic Extension to MySQL with ClickHouse and Open Source.pptxBuilding an Analytic Extension to MySQL with ClickHouse and Open Source.pptx
Building an Analytic Extension to MySQL with ClickHouse and Open Source.pptx
 
Managing a shared_mysql_farm_phpday2011
Managing a shared_mysql_farm_phpday2011Managing a shared_mysql_farm_phpday2011
Managing a shared_mysql_farm_phpday2011
 
Advanced Cassandra
Advanced CassandraAdvanced Cassandra
Advanced Cassandra
 
OpenWorld 2018 - Common Application Developer Disasters
OpenWorld 2018 - Common Application Developer DisastersOpenWorld 2018 - Common Application Developer Disasters
OpenWorld 2018 - Common Application Developer Disasters
 

More from Tom Diederich

Tom Diederich portfolio presentation (updated Nov. 18, 2016)
Tom Diederich portfolio presentation (updated Nov. 18, 2016)Tom Diederich portfolio presentation (updated Nov. 18, 2016)
Tom Diederich portfolio presentation (updated Nov. 18, 2016)
Tom Diederich
 
How to build & grow online communities: with Tom Diederich
How to build & grow online communities: with Tom DiederichHow to build & grow online communities: with Tom Diederich
How to build & grow online communities: with Tom Diederich
Tom Diederich
 
Troubleshooting Apache® Ignite™
Troubleshooting Apache® Ignite™Troubleshooting Apache® Ignite™
Troubleshooting Apache® Ignite™
Tom Diederich
 
How to build a production-ready in-memory-based application in 1 hour
How to build a production-ready in-memory-based application in 1 hourHow to build a production-ready in-memory-based application in 1 hour
How to build a production-ready in-memory-based application in 1 hour
Tom Diederich
 
Ingesting streaming data for analysis in apache ignite (stream sets theme)
Ingesting streaming data for analysis in apache ignite (stream sets theme)Ingesting streaming data for analysis in apache ignite (stream sets theme)
Ingesting streaming data for analysis in apache ignite (stream sets theme)
Tom Diederich
 
IT Modernization in Practice
IT Modernization in PracticeIT Modernization in Practice
IT Modernization in Practice
Tom Diederich
 
In-Memory Key Value Store (KVS) in FPGA for Ultra Low Latency and High Throug...
In-Memory Key Value Store (KVS) in FPGA for Ultra Low Latency and High Throug...In-Memory Key Value Store (KVS) in FPGA for Ultra Low Latency and High Throug...
In-Memory Key Value Store (KVS) in FPGA for Ultra Low Latency and High Throug...
Tom Diederich
 
Machine learning and deep learning with Apache Ignite
Machine learning and deep learning with Apache IgniteMachine learning and deep learning with Apache Ignite
Machine learning and deep learning with Apache Ignite
Tom Diederich
 
Heimdall Data: "Increase Application Performance with SQL Auto-Caching; No Co...
Heimdall Data: "Increase Application Performance with SQL Auto-Caching; No Co...Heimdall Data: "Increase Application Performance with SQL Auto-Caching; No Co...
Heimdall Data: "Increase Application Performance with SQL Auto-Caching; No Co...
Tom Diederich
 
Improving Apache Spark™ In-Memory Computing with Apache Ignite™
 Improving Apache Spark™ In-Memory Computing with Apache Ignite™ Improving Apache Spark™ In-Memory Computing with Apache Ignite™
Improving Apache Spark™ In-Memory Computing with Apache Ignite™
Tom Diederich
 
Comparing Apache Ignite and Cassandra for Hybrid Transactional/Analytical Pro...
Comparing Apache Ignite and Cassandra for Hybrid Transactional/Analytical Pro...Comparing Apache Ignite and Cassandra for Hybrid Transactional/Analytical Pro...
Comparing Apache Ignite and Cassandra for Hybrid Transactional/Analytical Pro...
Tom Diederich
 
“Building consistent and highly available distributed systems with Apache Ign...
“Building consistent and highly available distributed systems with Apache Ign...“Building consistent and highly available distributed systems with Apache Ign...
“Building consistent and highly available distributed systems with Apache Ign...
Tom Diederich
 

More from Tom Diederich (12)

Tom Diederich portfolio presentation (updated Nov. 18, 2016)
Tom Diederich portfolio presentation (updated Nov. 18, 2016)Tom Diederich portfolio presentation (updated Nov. 18, 2016)
Tom Diederich portfolio presentation (updated Nov. 18, 2016)
 
How to build & grow online communities: with Tom Diederich
How to build & grow online communities: with Tom DiederichHow to build & grow online communities: with Tom Diederich
How to build & grow online communities: with Tom Diederich
 
Troubleshooting Apache® Ignite™
Troubleshooting Apache® Ignite™Troubleshooting Apache® Ignite™
Troubleshooting Apache® Ignite™
 
How to build a production-ready in-memory-based application in 1 hour
How to build a production-ready in-memory-based application in 1 hourHow to build a production-ready in-memory-based application in 1 hour
How to build a production-ready in-memory-based application in 1 hour
 
Ingesting streaming data for analysis in apache ignite (stream sets theme)
Ingesting streaming data for analysis in apache ignite (stream sets theme)Ingesting streaming data for analysis in apache ignite (stream sets theme)
Ingesting streaming data for analysis in apache ignite (stream sets theme)
 
IT Modernization in Practice
IT Modernization in PracticeIT Modernization in Practice
IT Modernization in Practice
 
In-Memory Key Value Store (KVS) in FPGA for Ultra Low Latency and High Throug...
In-Memory Key Value Store (KVS) in FPGA for Ultra Low Latency and High Throug...In-Memory Key Value Store (KVS) in FPGA for Ultra Low Latency and High Throug...
In-Memory Key Value Store (KVS) in FPGA for Ultra Low Latency and High Throug...
 
Machine learning and deep learning with Apache Ignite
Machine learning and deep learning with Apache IgniteMachine learning and deep learning with Apache Ignite
Machine learning and deep learning with Apache Ignite
 
Heimdall Data: "Increase Application Performance with SQL Auto-Caching; No Co...
Heimdall Data: "Increase Application Performance with SQL Auto-Caching; No Co...Heimdall Data: "Increase Application Performance with SQL Auto-Caching; No Co...
Heimdall Data: "Increase Application Performance with SQL Auto-Caching; No Co...
 
Improving Apache Spark™ In-Memory Computing with Apache Ignite™
 Improving Apache Spark™ In-Memory Computing with Apache Ignite™ Improving Apache Spark™ In-Memory Computing with Apache Ignite™
Improving Apache Spark™ In-Memory Computing with Apache Ignite™
 
Comparing Apache Ignite and Cassandra for Hybrid Transactional/Analytical Pro...
Comparing Apache Ignite and Cassandra for Hybrid Transactional/Analytical Pro...Comparing Apache Ignite and Cassandra for Hybrid Transactional/Analytical Pro...
Comparing Apache Ignite and Cassandra for Hybrid Transactional/Analytical Pro...
 
“Building consistent and highly available distributed systems with Apache Ign...
“Building consistent and highly available distributed systems with Apache Ign...“Building consistent and highly available distributed systems with Apache Ign...
“Building consistent and highly available distributed systems with Apache Ign...
 

Recently uploaded

Econ3060_Screen Time and Success_ final_GroupProject.pdf
Econ3060_Screen Time and Success_ final_GroupProject.pdfEcon3060_Screen Time and Success_ final_GroupProject.pdf
Econ3060_Screen Time and Success_ final_GroupProject.pdf
blueshagoo1
 
一比一原版卡尔加里大学毕业证(uc毕业证)如何办理
一比一原版卡尔加里大学毕业证(uc毕业证)如何办理一比一原版卡尔加里大学毕业证(uc毕业证)如何办理
一比一原版卡尔加里大学毕业证(uc毕业证)如何办理
oaxefes
 
一比一原版(UofT毕业证)多伦多大学毕业证如何办理
一比一原版(UofT毕业证)多伦多大学毕业证如何办理一比一原版(UofT毕业证)多伦多大学毕业证如何办理
一比一原版(UofT毕业证)多伦多大学毕业证如何办理
exukyp
 
A gentle exploration of Retrieval Augmented Generation
A gentle exploration of Retrieval Augmented GenerationA gentle exploration of Retrieval Augmented Generation
A gentle exploration of Retrieval Augmented Generation
dataschool1
 
一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理
bmucuha
 
Experts live - Improving user adoption with AI
Experts live - Improving user adoption with AIExperts live - Improving user adoption with AI
Experts live - Improving user adoption with AI
jitskeb
 
Module 1 ppt BIG DATA ANALYTICS NOTES FOR MCA
Module 1 ppt BIG DATA ANALYTICS NOTES FOR MCAModule 1 ppt BIG DATA ANALYTICS NOTES FOR MCA
Module 1 ppt BIG DATA ANALYTICS NOTES FOR MCA
yuvarajkumar334
 
一比一原版斯威本理工大学毕业证(swinburne毕业证)如何办理
一比一原版斯威本理工大学毕业证(swinburne毕业证)如何办理一比一原版斯威本理工大学毕业证(swinburne毕业证)如何办理
一比一原版斯威本理工大学毕业证(swinburne毕业证)如何办理
actyx
 
一比一原版加拿大麦吉尔大学毕业证(mcgill毕业证书)如何办理
一比一原版加拿大麦吉尔大学毕业证(mcgill毕业证书)如何办理一比一原版加拿大麦吉尔大学毕业证(mcgill毕业证书)如何办理
一比一原版加拿大麦吉尔大学毕业证(mcgill毕业证书)如何办理
agdhot
 
一比一原版马来西亚博特拉大学毕业证(upm毕业证)如何办理
一比一原版马来西亚博特拉大学毕业证(upm毕业证)如何办理一比一原版马来西亚博特拉大学毕业证(upm毕业证)如何办理
一比一原版马来西亚博特拉大学毕业证(upm毕业证)如何办理
eudsoh
 
一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理
一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理
一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理
uevausa
 
一比一原版英属哥伦比亚大学毕业证(UBC毕业证书)学历如何办理
一比一原版英属哥伦比亚大学毕业证(UBC毕业证书)学历如何办理一比一原版英属哥伦比亚大学毕业证(UBC毕业证书)学历如何办理
一比一原版英属哥伦比亚大学毕业证(UBC毕业证书)学历如何办理
z6osjkqvd
 
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
ihavuls
 
一比一原版英国赫特福德大学毕业证(hertfordshire毕业证书)如何办理
一比一原版英国赫特福德大学毕业证(hertfordshire毕业证书)如何办理一比一原版英国赫特福德大学毕业证(hertfordshire毕业证书)如何办理
一比一原版英国赫特福德大学毕业证(hertfordshire毕业证书)如何办理
nyvan3
 
Build applications with generative AI on Google Cloud
Build applications with generative AI on Google CloudBuild applications with generative AI on Google Cloud
Build applications with generative AI on Google Cloud
Márton Kodok
 
一比一原版(uom毕业证书)曼彻斯特大学毕业证如何办理
一比一原版(uom毕业证书)曼彻斯特大学毕业证如何办理一比一原版(uom毕业证书)曼彻斯特大学毕业证如何办理
一比一原版(uom毕业证书)曼彻斯特大学毕业证如何办理
osoyvvf
 
Sample Devops SRE Product Companies .pdf
Sample Devops SRE  Product Companies .pdfSample Devops SRE  Product Companies .pdf
Sample Devops SRE Product Companies .pdf
Vineet
 
一比一原版(曼大毕业证书)曼尼托巴大学毕业证如何办理
一比一原版(曼大毕业证书)曼尼托巴大学毕业证如何办理一比一原版(曼大毕业证书)曼尼托巴大学毕业证如何办理
一比一原版(曼大毕业证书)曼尼托巴大学毕业证如何办理
ytypuem
 
社内勉強会資料_Hallucination of LLMs               .
社内勉強会資料_Hallucination of LLMs               .社内勉強会資料_Hallucination of LLMs               .
社内勉強会資料_Hallucination of LLMs               .
NABLAS株式会社
 
一比一原版多伦多大学毕业证(UofT毕业证书)学历如何办理
一比一原版多伦多大学毕业证(UofT毕业证书)学历如何办理一比一原版多伦多大学毕业证(UofT毕业证书)学历如何办理
一比一原版多伦多大学毕业证(UofT毕业证书)学历如何办理
eoxhsaa
 

Recently uploaded (20)

Econ3060_Screen Time and Success_ final_GroupProject.pdf
Econ3060_Screen Time and Success_ final_GroupProject.pdfEcon3060_Screen Time and Success_ final_GroupProject.pdf
Econ3060_Screen Time and Success_ final_GroupProject.pdf
 
一比一原版卡尔加里大学毕业证(uc毕业证)如何办理
一比一原版卡尔加里大学毕业证(uc毕业证)如何办理一比一原版卡尔加里大学毕业证(uc毕业证)如何办理
一比一原版卡尔加里大学毕业证(uc毕业证)如何办理
 
一比一原版(UofT毕业证)多伦多大学毕业证如何办理
一比一原版(UofT毕业证)多伦多大学毕业证如何办理一比一原版(UofT毕业证)多伦多大学毕业证如何办理
一比一原版(UofT毕业证)多伦多大学毕业证如何办理
 
A gentle exploration of Retrieval Augmented Generation
A gentle exploration of Retrieval Augmented GenerationA gentle exploration of Retrieval Augmented Generation
A gentle exploration of Retrieval Augmented Generation
 
一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理
 
Experts live - Improving user adoption with AI
Experts live - Improving user adoption with AIExperts live - Improving user adoption with AI
Experts live - Improving user adoption with AI
 
Module 1 ppt BIG DATA ANALYTICS NOTES FOR MCA
Module 1 ppt BIG DATA ANALYTICS NOTES FOR MCAModule 1 ppt BIG DATA ANALYTICS NOTES FOR MCA
Module 1 ppt BIG DATA ANALYTICS NOTES FOR MCA
 
一比一原版斯威本理工大学毕业证(swinburne毕业证)如何办理
一比一原版斯威本理工大学毕业证(swinburne毕业证)如何办理一比一原版斯威本理工大学毕业证(swinburne毕业证)如何办理
一比一原版斯威本理工大学毕业证(swinburne毕业证)如何办理
 
一比一原版加拿大麦吉尔大学毕业证(mcgill毕业证书)如何办理
一比一原版加拿大麦吉尔大学毕业证(mcgill毕业证书)如何办理一比一原版加拿大麦吉尔大学毕业证(mcgill毕业证书)如何办理
一比一原版加拿大麦吉尔大学毕业证(mcgill毕业证书)如何办理
 
一比一原版马来西亚博特拉大学毕业证(upm毕业证)如何办理
一比一原版马来西亚博特拉大学毕业证(upm毕业证)如何办理一比一原版马来西亚博特拉大学毕业证(upm毕业证)如何办理
一比一原版马来西亚博特拉大学毕业证(upm毕业证)如何办理
 
一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理
一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理
一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理
 
一比一原版英属哥伦比亚大学毕业证(UBC毕业证书)学历如何办理
一比一原版英属哥伦比亚大学毕业证(UBC毕业证书)学历如何办理一比一原版英属哥伦比亚大学毕业证(UBC毕业证书)学历如何办理
一比一原版英属哥伦比亚大学毕业证(UBC毕业证书)学历如何办理
 
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
 
一比一原版英国赫特福德大学毕业证(hertfordshire毕业证书)如何办理
一比一原版英国赫特福德大学毕业证(hertfordshire毕业证书)如何办理一比一原版英国赫特福德大学毕业证(hertfordshire毕业证书)如何办理
一比一原版英国赫特福德大学毕业证(hertfordshire毕业证书)如何办理
 
Build applications with generative AI on Google Cloud
Build applications with generative AI on Google CloudBuild applications with generative AI on Google Cloud
Build applications with generative AI on Google Cloud
 
一比一原版(uom毕业证书)曼彻斯特大学毕业证如何办理
一比一原版(uom毕业证书)曼彻斯特大学毕业证如何办理一比一原版(uom毕业证书)曼彻斯特大学毕业证如何办理
一比一原版(uom毕业证书)曼彻斯特大学毕业证如何办理
 
Sample Devops SRE Product Companies .pdf
Sample Devops SRE  Product Companies .pdfSample Devops SRE  Product Companies .pdf
Sample Devops SRE Product Companies .pdf
 
一比一原版(曼大毕业证书)曼尼托巴大学毕业证如何办理
一比一原版(曼大毕业证书)曼尼托巴大学毕业证如何办理一比一原版(曼大毕业证书)曼尼托巴大学毕业证如何办理
一比一原版(曼大毕业证书)曼尼托巴大学毕业证如何办理
 
社内勉強会資料_Hallucination of LLMs               .
社内勉強会資料_Hallucination of LLMs               .社内勉強会資料_Hallucination of LLMs               .
社内勉強会資料_Hallucination of LLMs               .
 
一比一原版多伦多大学毕业证(UofT毕业证书)学历如何办理
一比一原版多伦多大学毕业证(UofT毕业证书)学历如何办理一比一原版多伦多大学毕业证(UofT毕业证书)学历如何办理
一比一原版多伦多大学毕业证(UofT毕业证书)学历如何办理
 

Quick MySQL performance check

  • 2. Text Welcome! To the 1st of many MySQL Meetups!
  • 3. Agenda: • Food and registration 5:30 - 6:30 • Speaker 6:30 - 7:00 • Questions 7:00 - 7:30 • Networking 7:30 - 8:00
  • 4. Quick Performance Check Presented by: Wayne Leutwyler
  • 5. When a quick look is needed. Weekday management fire drill. 2am OnCall page. Unhappy customer calls you to complain about response time. Or anytime you just want to see how a certain database server is performing.
  • 6. The Views. Below are 6 views that I find very useful for day today performance check, or the 2am issue. v_InnoBPHitRate v_table_cache_used v_table_definition_cache_use v_thread_cache_hit v_thread_cache_used v_tmp_to_disk
  • 7. v_InnoBPHitRate CREATE ALGORITHM = UNDEFINED DEFINER = `wayne`@`localhost` SQL SECURITY DEFINER VIEW `v_InnoBPHitRate` AS select round((100 - ((100 * `P2`.`VARIABLE_VALUE`) / `P1`.`VARIABLE_VALUE`)), 2) AS `InnoBP Hit Rate`, `P2`.`VARIABLE_VALUE` AS `InnoBP Read Requests (from disk)`, `P1`.`VARIABLE_VALUE` AS `InnoBP Reads (from BP)` from (`information_schema`.`GLOBAL_STATUS` `P1` join `information_schema`.`GLOBAL_STATUS` `P2`) where ((`P1`.`VARIABLE_NAME` = 'innodb_buffer_pool_read_requests') and (`P2`.`VARIABLE_NAME` = 'innodb_buffer_pool_reads')) I have always gone with 50% of total server ram for my InnoDB buffer pool. Recommendations range from 50% to 80%.
  • 8. v_table_cache_used CREATE ALGORITHM = UNDEFINED DEFINER = `wayne`@`localhost` SQL SECURITY DEFINER VIEW `v_table_cache_used` AS select round(((`information_schema`.`global_status`.`VARIABLE_VALUE` / `information_schema`.`GLOBAL_VARIABLES`.`VARIABLE_VALUE`) * 100), 2) AS `Table Cache % Used` from (`information_schema`.`global_status` join `information_schema`.`GLOBAL_VARIABLES`) where ((`information_schema`.`global_status`.`VARIABLE_NAME` = 'opened_tables') and (`information_schema`.`GLOBAL_VARIABLES`.`VARIABLE_NAME` = 'table_open_cache')) Below 90% Adjust: table_open_cache
  • 9. v_table_definition_cache_use CREATE ALGORITHM = UNDEFINED DEFINER = `wayne`@`localhost` SQL SECURITY DEFINER VIEW `v_table_definition_cache_used` AS select round(((`information_schema`.`global_status`.`VARIABLE_VALUE` / `information_schema`.`GLOBAL_VARIABLES`.`VARIABLE_VALUE`) * 100), 2) AS `Table Definition Cache % Used` from (`information_schema`.`global_status` join `information_schema`.`GLOBAL_VARIABLES`) where ((`information_schema`.`global_status`.`VARIABLE_NAME` = 'open_table_definitions') and (`information_schema`.`GLOBAL_VARIABLES`.`VARIABLE_NAME` = 'table_definition_cache')) Above 100% adjust: table_definition_cache
  • 10. v_thread_cache_hit CREATE ALGORITHM = UNDEFINED DEFINER = `wayne`@`localhost` SQL SECURITY DEFINER VIEW `v_thread_cache_hit` AS select round((100 - ((`p1`.`VARIABLE_VALUE` / `p2`.`VARIABLE_VALUE`) * 100)), 2) AS `Thread Cache Hit Rate`, `p1`.`VARIABLE_VALUE` AS `Threads Created`, `p2`.`VARIABLE_VALUE` AS `Connections` from (`information_schema`.`global_status` `p1` join `information_schema`.`global_status` `p2`) where ((`p1`.`VARIABLE_NAME` = 'threads_created') and (`p2`.`VARIABLE_NAME` = 'connections')) Below 90% adjust: thread_cache_size
  • 11. v_thread_cache_used CREATE ALGORITHM = UNDEFINED DEFINER = `wayne`@`localhost` SQL SECURITY DEFINER VIEW `v_thread_cache_used` AS select round(((`information_schema`.`global_status`.`VARIABLE_VALUE` / `information_schema`.`GLOBAL_VARIABLES`.`VARIABLE_VALUE`) * 100), 2) AS `Thread Cache % Used` from (`information_schema`.`global_status` join `information_schema`.`GLOBAL_VARIABLES`) where ((`information_schema`.`global_status`.`VARIABLE_NAME` = 'threads_cached') and (`information_schema`.`GLOBAL_VARIABLES`.`VARIABLE_NAME` = 'thread_cache_size')) Above 100% adjust: thread_cache_size
  • 12. v_tmp_to_disk CREATE ALGORITHM = UNDEFINED DEFINER = `wayne`@`localhost` SQL SECURITY DEFINER VIEW `v_tmp_to_disk` AS select round(((`p1`.`VARIABLE_VALUE` / `p2`.`VARIABLE_VALUE`) * 100), 2) AS `Percent TMP to Disk` from (`information_schema`.`global_status` `p1` join `information_schema`.`global_status` `p2`) where ((`p1`.`VARIABLE_NAME` = 'CREATED_TMP_DISK_TABLES') and (`p2`.`VARIABLE_NAME` = 'CREATED_TMP_TABLES')) If percent is 25% or higher adjust: tmp_table_size max_heap_table_size
  • 13. Command Line Tools When you cant find an issue with the DB, time to check the system. top iostat vmstat free
  • 14. House Keeping Put your trash in the proper place. Don’t wonder around the building. Please put the chairs back the way they were. Please keep the noise down. We don’t want to disturb people still working.
  • 15. Thank you! Percona for the food and drinks. CareWorks Tech for hosting our meeting.
  • 16. Thank You questions? The views expressed in this presentation are mine alone.