SlideShare ist ein Scribd-Unternehmen logo
1 von 23
Dance with MySQL Manage MySQL with Open source 周振兴@TaobaoDBA http://orczhou.com 2010-06 1
What MySQL do for us System A 950Gdata 650G index Total1.6T IOPS 18947 Delta3.2G 8000*1024 = 800W
What MySQL do for us System B 15,0000,0000  records Total:4T Delta 1000,0000 16 * Uptime:217 days 18 hours 34 min 2 sec
What about my topic How to manage 200+ MySQL Instance
What we do              Test                       routine Install            Find Problem/debug             Backup     		      Monitor
Why Why we think about this a lot? We have  200+  MySQLInstance Test 	is about 	Money Install 	is about	Time Debug 	is about	Stability  Backup	is about	Safety Monitor 	is about	Status Which one you can drop?
Why Test Simple math Performance increase 10% 200*2W *10% = 40W 200*2W *20% = 80W What can 80W do ?
Why Test Performance Stable Last year  >85% accidentcan be avoided This year  < 5%
How Test Sysbench How to use sysbench How many row Read write rate
How Test Why sysbench? Why not sysbench? Why supersmack? Data set > 120G  95% query for 5%data 80% query for 20% data
How Test Supersmack
How Test Supersmack Dell PowerEdge 2950  Mem:24G  6*300 SAS RAID10 We test different PC Server/Hardware
What Test Decide which value we choose InnoDB_IO_CAPACITY One hour average in blue Tow hour average in red
Install TestMoney 	Sysbench/supersmack InstallTime		 Debug Stability 	 BackupSafety >mysql_install_auto -h 172.23.119.257  -v 5.1.45 File descriptor Swappiness .......
Debug It’s a real complicated work ,[object Object]
It’s a talent work,[object Object]
Backup mysqldump is cool 39G .sql  takes 80 min Restore takes 206 min(3.4) Still we need Xtrabackup On line No lock Some environment  it’s quick && restore is quick
Xtrabackup Using InnoDB Redo (Transaction log) No effect to the Online system Also help u to setup a new slave System can be more Available
More backup strategy Last 4 Day  Last 3 month Last 3 Year 1 3 5 mysqldump   2 4 6  xtrabackup
MySQL Monitor Quick way: Cacit + RRDTool Screenshot
What we monitor Com_select  Com_insert  Com_update  Com_delete Principle:  The bigger the system is,  the more simple  the basic layer is ,[object Object]
Logical read/write
Physical read/write

Weitere ähnliche Inhalte

Was ist angesagt?

1st Chinaonrails Open Course 高级战略
1st Chinaonrails Open Course 高级战略1st Chinaonrails Open Course 高级战略
1st Chinaonrails Open Course 高级战略
Jesse Cai
 
Automation using power cli
Automation using power cliAutomation using power cli
Automation using power cli
esarakaitis
 
Cloudcamp scotland - Using cloud without losing control
Cloudcamp scotland - Using cloud without losing controlCloudcamp scotland - Using cloud without losing control
Cloudcamp scotland - Using cloud without losing control
Duncan Johnston-Watt
 

Was ist angesagt? (19)

1st Chinaonrails Open Course 高级战略
1st Chinaonrails Open Course 高级战略1st Chinaonrails Open Course 高级战略
1st Chinaonrails Open Course 高级战略
 
VPNaaS neutron
VPNaaS neutronVPNaaS neutron
VPNaaS neutron
 
Website Performance
Website PerformanceWebsite Performance
Website Performance
 
Leveraging Google Cloud CDN with AmigoCDN
Leveraging Google Cloud CDN with AmigoCDNLeveraging Google Cloud CDN with AmigoCDN
Leveraging Google Cloud CDN with AmigoCDN
 
AtlasCamp 2014: Building a Production Ready Connect Add-On
AtlasCamp 2014: Building a Production Ready Connect Add-OnAtlasCamp 2014: Building a Production Ready Connect Add-On
AtlasCamp 2014: Building a Production Ready Connect Add-On
 
Capistrano && SystemD
Capistrano && SystemDCapistrano && SystemD
Capistrano && SystemD
 
C* Summit EU 2013: Using Cassandra in a Telco Storage System
C* Summit EU 2013: Using Cassandra in a Telco Storage System C* Summit EU 2013: Using Cassandra in a Telco Storage System
C* Summit EU 2013: Using Cassandra in a Telco Storage System
 
Mengapa dinamakan Three Fan Smart Cooling (TFSC)
Mengapa dinamakan Three Fan Smart Cooling (TFSC)Mengapa dinamakan Three Fan Smart Cooling (TFSC)
Mengapa dinamakan Three Fan Smart Cooling (TFSC)
 
Optimising PyroCMS for speed and performance boosts
Optimising PyroCMS for speed and performance boostsOptimising PyroCMS for speed and performance boosts
Optimising PyroCMS for speed and performance boosts
 
Database Test Cases or Why We Chose Neo4j?
Database Test Cases or Why We Chose Neo4j? Database Test Cases or Why We Chose Neo4j?
Database Test Cases or Why We Chose Neo4j?
 
Automation using power cli
Automation using power cliAutomation using power cli
Automation using power cli
 
Scaling MongoDB in the cloud with Microsoft Azure
Scaling MongoDB in the cloud with Microsoft AzureScaling MongoDB in the cloud with Microsoft Azure
Scaling MongoDB in the cloud with Microsoft Azure
 
Ordina SOFTC Presentation - SQL CLR
Ordina SOFTC Presentation - SQL CLROrdina SOFTC Presentation - SQL CLR
Ordina SOFTC Presentation - SQL CLR
 
Azure370
Azure370Azure370
Azure370
 
Terraform bootstrap code_execute
Terraform bootstrap code_executeTerraform bootstrap code_execute
Terraform bootstrap code_execute
 
Stream processing in Mercari - Devsumi 2015 autumn LT
Stream processing in Mercari - Devsumi 2015 autumn LTStream processing in Mercari - Devsumi 2015 autumn LT
Stream processing in Mercari - Devsumi 2015 autumn LT
 
Data migration into eav model
Data migration into eav modelData migration into eav model
Data migration into eav model
 
Cloudcamp scotland - Using cloud without losing control
Cloudcamp scotland - Using cloud without losing controlCloudcamp scotland - Using cloud without losing control
Cloudcamp scotland - Using cloud without losing control
 
Intalacion de owncloud
Intalacion de owncloudIntalacion de owncloud
Intalacion de owncloud
 

Ähnlich wie Manage MySQL with open source

Performance Optimization of Rails Applications
Performance Optimization of Rails ApplicationsPerformance Optimization of Rails Applications
Performance Optimization of Rails Applications
Serge Smetana
 
download it from here
download it from heredownload it from here
download it from here
webhostingguy
 
MySQL Replication
MySQL ReplicationMySQL Replication
MySQL Replication
orczhou
 

Ähnlich wie Manage MySQL with open source (20)

NYC Java Meetup - Profiling and Performance
NYC Java Meetup - Profiling and PerformanceNYC Java Meetup - Profiling and Performance
NYC Java Meetup - Profiling and Performance
 
Performance Optimization of Rails Applications
Performance Optimization of Rails ApplicationsPerformance Optimization of Rails Applications
Performance Optimization of Rails Applications
 
Windows Azure Acid Test
Windows Azure Acid TestWindows Azure Acid Test
Windows Azure Acid Test
 
Tweaking performance on high-load projects
Tweaking performance on high-load projectsTweaking performance on high-load projects
Tweaking performance on high-load projects
 
OSMC 2008 | Monitoring MySQL by Geert Vanderkelen
OSMC 2008 | Monitoring MySQL by Geert VanderkelenOSMC 2008 | Monitoring MySQL by Geert Vanderkelen
OSMC 2008 | Monitoring MySQL by Geert Vanderkelen
 
download it from here
download it from heredownload it from here
download it from here
 
Autonomous Transaction Processing (ATP): In Heavy Traffic, Why Drive Stick?
Autonomous Transaction Processing (ATP): In Heavy Traffic, Why Drive Stick?Autonomous Transaction Processing (ATP): In Heavy Traffic, Why Drive Stick?
Autonomous Transaction Processing (ATP): In Heavy Traffic, Why Drive Stick?
 
Caching and tuning fun for high scalability @ FOSDEM 2012
Caching and tuning fun for high scalability @ FOSDEM 2012Caching and tuning fun for high scalability @ FOSDEM 2012
Caching and tuning fun for high scalability @ FOSDEM 2012
 
Joomla! Day Deutschland 2012 - Active Security
Joomla! Day Deutschland 2012 - Active SecurityJoomla! Day Deutschland 2012 - Active Security
Joomla! Day Deutschland 2012 - Active Security
 
Recent my sql_performance Test detail
Recent my sql_performance Test detailRecent my sql_performance Test detail
Recent my sql_performance Test detail
 
AutoScaling and Drupal
AutoScaling and DrupalAutoScaling and Drupal
AutoScaling and Drupal
 
(DAT402) Amazon RDS PostgreSQL:Lessons Learned & New Features
(DAT402) Amazon RDS PostgreSQL:Lessons Learned & New Features(DAT402) Amazon RDS PostgreSQL:Lessons Learned & New Features
(DAT402) Amazon RDS PostgreSQL:Lessons Learned & New Features
 
MySQL Performance Tuning at COSCUP 2014
MySQL Performance Tuning at COSCUP 2014MySQL Performance Tuning at COSCUP 2014
MySQL Performance Tuning at COSCUP 2014
 
Exploring mysql cluster 7.4
Exploring mysql cluster 7.4Exploring mysql cluster 7.4
Exploring mysql cluster 7.4
 
Non-blocking I/O, Event loops and node.js
Non-blocking I/O, Event loops and node.jsNon-blocking I/O, Event loops and node.js
Non-blocking I/O, Event loops and node.js
 
How We Use MongoDB in Our Advertising System
How We Use MongoDB in Our Advertising SystemHow We Use MongoDB in Our Advertising System
How We Use MongoDB in Our Advertising System
 
MySQL Replication
MySQL ReplicationMySQL Replication
MySQL Replication
 
Sherlock holmes for dba’s
Sherlock holmes for dba’sSherlock holmes for dba’s
Sherlock holmes for dba’s
 
My sql 56_roadmap_april2012
My sql 56_roadmap_april2012My sql 56_roadmap_april2012
My sql 56_roadmap_april2012
 
Caching and tuning fun for high scalability
Caching and tuning fun for high scalabilityCaching and tuning fun for high scalability
Caching and tuning fun for high scalability
 

Mehr von orczhou

2012 dtcc-itpub-runing-critical-data-on-mysql
2012 dtcc-itpub-runing-critical-data-on-mysql2012 dtcc-itpub-runing-critical-data-on-mysql
2012 dtcc-itpub-runing-critical-data-on-mysql
orczhou
 
MySQL自动切换设计与实现
MySQL自动切换设计与实现MySQL自动切换设计与实现
MySQL自动切换设计与实现
orczhou
 
MySQL Replication新功能介绍
MySQL Replication新功能介绍 MySQL Replication新功能介绍
MySQL Replication新功能介绍
orczhou
 
飞信核心库Ha设计及实现
飞信核心库Ha设计及实现飞信核心库Ha设计及实现
飞信核心库Ha设计及实现
orczhou
 
MySQL新技术研究与实践
MySQL新技术研究与实践MySQL新技术研究与实践
MySQL新技术研究与实践
orczhou
 

Mehr von orczhou (6)

2012 dtcc-itpub-runing-critical-data-on-mysql
2012 dtcc-itpub-runing-critical-data-on-mysql2012 dtcc-itpub-runing-critical-data-on-mysql
2012 dtcc-itpub-runing-critical-data-on-mysql
 
MySQL自动切换设计与实现
MySQL自动切换设计与实现MySQL自动切换设计与实现
MySQL自动切换设计与实现
 
MySQL Replication新功能介绍
MySQL Replication新功能介绍 MySQL Replication新功能介绍
MySQL Replication新功能介绍
 
飞信核心库Ha设计及实现
飞信核心库Ha设计及实现飞信核心库Ha设计及实现
飞信核心库Ha设计及实现
 
海量数据迁移方案
海量数据迁移方案海量数据迁移方案
海量数据迁移方案
 
MySQL新技术研究与实践
MySQL新技术研究与实践MySQL新技术研究与实践
MySQL新技术研究与实践
 

Kürzlich hochgeladen

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Kürzlich hochgeladen (20)

AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 

Manage MySQL with open source

  • 1. Dance with MySQL Manage MySQL with Open source 周振兴@TaobaoDBA http://orczhou.com 2010-06 1
  • 2. What MySQL do for us System A 950Gdata 650G index Total1.6T IOPS 18947 Delta3.2G 8000*1024 = 800W
  • 3. What MySQL do for us System B 15,0000,0000 records Total:4T Delta 1000,0000 16 * Uptime:217 days 18 hours 34 min 2 sec
  • 4. What about my topic How to manage 200+ MySQL Instance
  • 5. What we do Test routine Install Find Problem/debug Backup Monitor
  • 6. Why Why we think about this a lot? We have 200+ MySQLInstance Test is about Money Install is about Time Debug is about Stability Backup is about Safety Monitor is about Status Which one you can drop?
  • 7. Why Test Simple math Performance increase 10% 200*2W *10% = 40W 200*2W *20% = 80W What can 80W do ?
  • 8. Why Test Performance Stable Last year >85% accidentcan be avoided This year < 5%
  • 9. How Test Sysbench How to use sysbench How many row Read write rate
  • 10. How Test Why sysbench? Why not sysbench? Why supersmack? Data set > 120G 95% query for 5%data 80% query for 20% data
  • 12. How Test Supersmack Dell PowerEdge 2950  Mem:24G  6*300 SAS RAID10 We test different PC Server/Hardware
  • 13. What Test Decide which value we choose InnoDB_IO_CAPACITY One hour average in blue Tow hour average in red
  • 14. Install TestMoney Sysbench/supersmack InstallTime Debug Stability BackupSafety >mysql_install_auto -h 172.23.119.257 -v 5.1.45 File descriptor Swappiness .......
  • 15.
  • 16.
  • 17. Backup mysqldump is cool 39G .sql takes 80 min Restore takes 206 min(3.4) Still we need Xtrabackup On line No lock Some environment it’s quick && restore is quick
  • 18. Xtrabackup Using InnoDB Redo (Transaction log) No effect to the Online system Also help u to setup a new slave System can be more Available
  • 19. More backup strategy Last 4 Day Last 3 month Last 3 Year 1 3 5 mysqldump 2 4 6 xtrabackup
  • 20. MySQL Monitor Quick way: Cacit + RRDTool Screenshot
  • 21.
  • 24.
  • 25. What I know is so limited Still I like Sharing Q & A