SlideShare une entreprise Scribd logo
1  sur  21
Télécharger pour lire hors ligne
MySQL


                 fire9@me.com
        Blog www.archnotes.net
                   Twitter fire9
Sharding




     TCMalloc
DB
MySQL
Master+Slave

           Master


           Slave
Master+Slaves



               Master


       Slave   Slave    Slave
Master+Relay slave+Slaves

               Master



               Relay Slave



       Slave    Slave        Slave
Dual Masters+Slaves
                              Slave


        Master                Master


        Relay Slave



Slave    Slave        Slave
-5.1+ support

Range Partitioning
List Partitioning
Hash Partitioning
Key Partitioning
Subpartitioning
CPU Core
   RAID10   IO   NAS   SAN
RAID
64


XFS
      TCP/IP
Google TCMalloc
MyISAM
         B+Tree
InnoDB




         MyISAM
My.cnf


         /
sar,iostat,vmstat,mpstat,uptime
               show global
{processlist,status,variables},information_schema
                mysqlreport, innotop, mytop
                MySQL Monitor, MySQL administrator,
cacti, Zenoss, nagios
SQL


explain          sql
                  sql                     left
(),substr(),to_days()
   sql            mysqldumpsql   mysqlsla mysql-log-
filter
int,varchar
              sql
Q&A
Thank You

Contenu connexe

En vedette

Value, application, synthesis
Value, application, synthesisValue, application, synthesis
Value, application, synthesisNeil Clavin
 
海底奇景
海底奇景海底奇景
海底奇景b012890
 
Github101快速上手指南
Github101快速上手指南Github101快速上手指南
Github101快速上手指南fire9
 
לימודי מוזיקה
לימודי מוזיקהלימודי מוזיקה
לימודי מוזיקהsoundschool
 
Robots, immaterials & control
Robots, immaterials & controlRobots, immaterials & control
Robots, immaterials & controlNeil Clavin
 
The Vector Project
The Vector ProjectThe Vector Project
The Vector ProjectNeil Clavin
 
Ke Hoach Phu&Khanh
Ke Hoach Phu&KhanhKe Hoach Phu&Khanh
Ke Hoach Phu&Khanhlehoangphu
 
Reducing Carbon Foodprint - Carbon footprint dan local food 1 1
Reducing Carbon Foodprint - Carbon footprint dan local food 1 1Reducing Carbon Foodprint - Carbon footprint dan local food 1 1
Reducing Carbon Foodprint - Carbon footprint dan local food 1 1Bayu Amus
 
MySQL Backup & Recovery
MySQL Backup & RecoveryMySQL Backup & Recovery
MySQL Backup & Recoveryfire9
 
Mx Odbc
Mx OdbcMx Odbc
Mx Odbcfire9
 
Sharing a Love of Street Foods 1.1
Sharing a Love of Street Foods 1.1Sharing a Love of Street Foods 1.1
Sharing a Love of Street Foods 1.1Bayu Amus
 

En vedette (13)

Value, application, synthesis
Value, application, synthesisValue, application, synthesis
Value, application, synthesis
 
海底奇景
海底奇景海底奇景
海底奇景
 
Github101快速上手指南
Github101快速上手指南Github101快速上手指南
Github101快速上手指南
 
לימודי מוזיקה
לימודי מוזיקהלימודי מוזיקה
לימודי מוזיקה
 
Robots, immaterials & control
Robots, immaterials & controlRobots, immaterials & control
Robots, immaterials & control
 
Tenmacho Photos
Tenmacho PhotosTenmacho Photos
Tenmacho Photos
 
The Vector Project
The Vector ProjectThe Vector Project
The Vector Project
 
Ke Hoach Phu&Khanh
Ke Hoach Phu&KhanhKe Hoach Phu&Khanh
Ke Hoach Phu&Khanh
 
20140508 sip@isotc184 sc4
20140508 sip@isotc184 sc420140508 sip@isotc184 sc4
20140508 sip@isotc184 sc4
 
Reducing Carbon Foodprint - Carbon footprint dan local food 1 1
Reducing Carbon Foodprint - Carbon footprint dan local food 1 1Reducing Carbon Foodprint - Carbon footprint dan local food 1 1
Reducing Carbon Foodprint - Carbon footprint dan local food 1 1
 
MySQL Backup & Recovery
MySQL Backup & RecoveryMySQL Backup & Recovery
MySQL Backup & Recovery
 
Mx Odbc
Mx OdbcMx Odbc
Mx Odbc
 
Sharing a Love of Street Foods 1.1
Sharing a Love of Street Foods 1.1Sharing a Love of Street Foods 1.1
Sharing a Love of Street Foods 1.1
 

Similaire à MySQL性能调优概要

MySQL Replication Basics -Ohio Linux Fest 2016
MySQL Replication Basics -Ohio Linux Fest 2016MySQL Replication Basics -Ohio Linux Fest 2016
MySQL Replication Basics -Ohio Linux Fest 2016Dave Stokes
 
MySQL Replication Update -- Zendcon 2016
MySQL Replication Update -- Zendcon 2016MySQL Replication Update -- Zendcon 2016
MySQL Replication Update -- Zendcon 2016Dave Stokes
 
Introduction to XtraDB Cluster
Introduction to XtraDB ClusterIntroduction to XtraDB Cluster
Introduction to XtraDB Clusteryoku0825
 
Breaking the-database-type-barrier-replicating-across-different-dbms
Breaking the-database-type-barrier-replicating-across-different-dbmsBreaking the-database-type-barrier-replicating-across-different-dbms
Breaking the-database-type-barrier-replicating-across-different-dbmsLinas Virbalas
 
M|18 How Facebook Migrated to MyRocks
M|18 How Facebook Migrated to MyRocksM|18 How Facebook Migrated to MyRocks
M|18 How Facebook Migrated to MyRocksMariaDB plc
 
"Advanced MySQL 5 Tuning" by Michael Monty Widenius @ eLiberatica 2007
"Advanced MySQL 5 Tuning" by Michael Monty Widenius @ eLiberatica 2007"Advanced MySQL 5 Tuning" by Michael Monty Widenius @ eLiberatica 2007
"Advanced MySQL 5 Tuning" by Michael Monty Widenius @ eLiberatica 2007eLiberatica
 
Squeak DBX
Squeak DBXSqueak DBX
Squeak DBXESUG
 
Fisl - Deployment
Fisl - DeploymentFisl - Deployment
Fisl - DeploymentFabio Akita
 
Cassandra Tutorial
Cassandra TutorialCassandra Tutorial
Cassandra Tutorialmubarakss
 
Vote NO for MySQL
Vote NO for MySQLVote NO for MySQL
Vote NO for MySQLUlf Wendel
 
MySQL Replication Overview -- PHPTek 2016
MySQL Replication Overview -- PHPTek 2016MySQL Replication Overview -- PHPTek 2016
MySQL Replication Overview -- PHPTek 2016Dave Stokes
 
RocksDB Performance and Reliability Practices
RocksDB Performance and Reliability PracticesRocksDB Performance and Reliability Practices
RocksDB Performance and Reliability PracticesYoshinori Matsunobu
 
Ben Coverston - The Apache Cassandra Project
Ben Coverston - The Apache Cassandra ProjectBen Coverston - The Apache Cassandra Project
Ben Coverston - The Apache Cassandra ProjectMorningstar Tech Talks
 
2012 replication
2012 replication2012 replication
2012 replicationsqlhjalp
 
Understanding DSE Search by Matt Stump
Understanding DSE Search by Matt StumpUnderstanding DSE Search by Matt Stump
Understanding DSE Search by Matt StumpDataStax
 
ConFoo MySQL Replication Evolution : From Simple to Group Replication
ConFoo  MySQL Replication Evolution : From Simple to Group ReplicationConFoo  MySQL Replication Evolution : From Simple to Group Replication
ConFoo MySQL Replication Evolution : From Simple to Group ReplicationDave Stokes
 
Choosing a MySQL High Availability solution - Percona Live UK 2011
Choosing a MySQL High Availability solution - Percona Live UK 2011Choosing a MySQL High Availability solution - Percona Live UK 2011
Choosing a MySQL High Availability solution - Percona Live UK 2011Henrik Ingo
 

Similaire à MySQL性能调优概要 (20)

MySQL Replication Basics -Ohio Linux Fest 2016
MySQL Replication Basics -Ohio Linux Fest 2016MySQL Replication Basics -Ohio Linux Fest 2016
MySQL Replication Basics -Ohio Linux Fest 2016
 
MySQL Replication Update -- Zendcon 2016
MySQL Replication Update -- Zendcon 2016MySQL Replication Update -- Zendcon 2016
MySQL Replication Update -- Zendcon 2016
 
Introduction to XtraDB Cluster
Introduction to XtraDB ClusterIntroduction to XtraDB Cluster
Introduction to XtraDB Cluster
 
Breaking the-database-type-barrier-replicating-across-different-dbms
Breaking the-database-type-barrier-replicating-across-different-dbmsBreaking the-database-type-barrier-replicating-across-different-dbms
Breaking the-database-type-barrier-replicating-across-different-dbms
 
M|18 How Facebook Migrated to MyRocks
M|18 How Facebook Migrated to MyRocksM|18 How Facebook Migrated to MyRocks
M|18 How Facebook Migrated to MyRocks
 
"Advanced MySQL 5 Tuning" by Michael Monty Widenius @ eLiberatica 2007
"Advanced MySQL 5 Tuning" by Michael Monty Widenius @ eLiberatica 2007"Advanced MySQL 5 Tuning" by Michael Monty Widenius @ eLiberatica 2007
"Advanced MySQL 5 Tuning" by Michael Monty Widenius @ eLiberatica 2007
 
Squeak DBX
Squeak DBXSqueak DBX
Squeak DBX
 
Fisl - Deployment
Fisl - DeploymentFisl - Deployment
Fisl - Deployment
 
Cassandra Tutorial
Cassandra TutorialCassandra Tutorial
Cassandra Tutorial
 
The Smug Mug Tale
The Smug Mug TaleThe Smug Mug Tale
The Smug Mug Tale
 
Vote NO for MySQL
Vote NO for MySQLVote NO for MySQL
Vote NO for MySQL
 
Deployment de Rails
Deployment de RailsDeployment de Rails
Deployment de Rails
 
5 things MySql
5 things MySql5 things MySql
5 things MySql
 
MySQL Replication Overview -- PHPTek 2016
MySQL Replication Overview -- PHPTek 2016MySQL Replication Overview -- PHPTek 2016
MySQL Replication Overview -- PHPTek 2016
 
RocksDB Performance and Reliability Practices
RocksDB Performance and Reliability PracticesRocksDB Performance and Reliability Practices
RocksDB Performance and Reliability Practices
 
Ben Coverston - The Apache Cassandra Project
Ben Coverston - The Apache Cassandra ProjectBen Coverston - The Apache Cassandra Project
Ben Coverston - The Apache Cassandra Project
 
2012 replication
2012 replication2012 replication
2012 replication
 
Understanding DSE Search by Matt Stump
Understanding DSE Search by Matt StumpUnderstanding DSE Search by Matt Stump
Understanding DSE Search by Matt Stump
 
ConFoo MySQL Replication Evolution : From Simple to Group Replication
ConFoo  MySQL Replication Evolution : From Simple to Group ReplicationConFoo  MySQL Replication Evolution : From Simple to Group Replication
ConFoo MySQL Replication Evolution : From Simple to Group Replication
 
Choosing a MySQL High Availability solution - Percona Live UK 2011
Choosing a MySQL High Availability solution - Percona Live UK 2011Choosing a MySQL High Availability solution - Percona Live UK 2011
Choosing a MySQL High Availability solution - Percona Live UK 2011
 

MySQL性能调优概要