Soumettre la recherche
Mettre en ligne
MySQL 5.6 config 優化
•
2 j'aime
•
746 vues
Alexis Li
Suivre
MySQL 5.6 config 優化
Lire moins
Lire la suite
Ingénierie
Signaler
Partager
Signaler
Partager
1 sur 17
Recommandé
MySQL Advanced Administrator 2021 - 네오클로바
MySQL Advanced Administrator 2021 - 네오클로바
NeoClova
InnoDB Cluster Experience (MySQL User Camp)
InnoDB Cluster Experience (MySQL User Camp)
Mydbops
MySQL Performance Tuning Variables
MySQL Performance Tuning Variables
FromDual GmbH
What is new in PostgreSQL 14?
What is new in PostgreSQL 14?
Mydbops
MySQL8.0_performance_schema.pptx
MySQL8.0_performance_schema.pptx
NeoClova
Perf Tuning Short
Perf Tuning Short
Ligaya Turmelle
[db tech showcase Tokyo 2014] B15: Scalability with MariaDB and MaxScale by ...
[db tech showcase Tokyo 2014] B15: Scalability with MariaDB and MaxScale by ...
Insight Technology, Inc.
Maxscale_메뉴얼
Maxscale_메뉴얼
NeoClova
Recommandé
MySQL Advanced Administrator 2021 - 네오클로바
MySQL Advanced Administrator 2021 - 네오클로바
NeoClova
InnoDB Cluster Experience (MySQL User Camp)
InnoDB Cluster Experience (MySQL User Camp)
Mydbops
MySQL Performance Tuning Variables
MySQL Performance Tuning Variables
FromDual GmbH
What is new in PostgreSQL 14?
What is new in PostgreSQL 14?
Mydbops
MySQL8.0_performance_schema.pptx
MySQL8.0_performance_schema.pptx
NeoClova
Perf Tuning Short
Perf Tuning Short
Ligaya Turmelle
[db tech showcase Tokyo 2014] B15: Scalability with MariaDB and MaxScale by ...
[db tech showcase Tokyo 2014] B15: Scalability with MariaDB and MaxScale by ...
Insight Technology, Inc.
Maxscale_메뉴얼
Maxscale_메뉴얼
NeoClova
Introduction to MariaDB MaxScale
Introduction to MariaDB MaxScale
I Goo Lee
MariaDB 10.5 binary install (바이너리 설치)
MariaDB 10.5 binary install (바이너리 설치)
NeoClova
Introduction to ClustrixDB
Introduction to ClustrixDB
I Goo Lee
InnoDB Performance Optimisation
InnoDB Performance Optimisation
Mydbops
Percona Xtrabackup - Highly Efficient Backups
Percona Xtrabackup - Highly Efficient Backups
Mydbops
Parallel Replication in MySQL and MariaDB
Parallel Replication in MySQL and MariaDB
Mydbops
Upgrading mysql version 5.5.30 to 5.6.10
Upgrading mysql version 5.5.30 to 5.6.10
Vasudeva Rao
Ansible is Our Wishbone(Automate DBA Tasks With Ansible)
Ansible is Our Wishbone(Automate DBA Tasks With Ansible)
M Malai
MySQL Performance Tuning. Part 1: MySQL Configuration (includes MySQL 5.7)
MySQL Performance Tuning. Part 1: MySQL Configuration (includes MySQL 5.7)
Aurimas Mikalauskas
MySQL DBA
MySQL DBA
lalit choudhary
PostGreSQL Performance Tuning
PostGreSQL Performance Tuning
Maven Logix
Mysql high availability and scalability
Mysql high availability and scalability
yin gong
High Availability With InnoDB Clusters
High Availability With InnoDB Clusters
Mydbops
MySQL 5.7 - What's new and How to upgrade
MySQL 5.7 - What's new and How to upgrade
Abel Flórez
Percona XtraDB Cluster ( Ensure high Availability )
Percona XtraDB Cluster ( Ensure high Availability )
Mydbops
Amazon Aurora로 안전하게 migration 하기
Amazon Aurora로 안전하게 migration 하기
Jesang Yoon
My sql storage engines
My sql storage engines
Vasudeva Rao
MySQL 5.7 milestone
MySQL 5.7 milestone
Louis liu
A26 MariaDB : The New&Implemented MySQL Branch by Colin Charles
A26 MariaDB : The New&Implemented MySQL Branch by Colin Charles
Insight Technology, Inc.
High performance and high availability proxies for MySQL
High performance and high availability proxies for MySQL
Mydbops
MySQL 5.5&5.6 new features summary
MySQL 5.5&5.6 new features summary
Louis liu
MySQL 开发
MySQL 开发
YUCHENG HU
Contenu connexe
Tendances
Introduction to MariaDB MaxScale
Introduction to MariaDB MaxScale
I Goo Lee
MariaDB 10.5 binary install (바이너리 설치)
MariaDB 10.5 binary install (바이너리 설치)
NeoClova
Introduction to ClustrixDB
Introduction to ClustrixDB
I Goo Lee
InnoDB Performance Optimisation
InnoDB Performance Optimisation
Mydbops
Percona Xtrabackup - Highly Efficient Backups
Percona Xtrabackup - Highly Efficient Backups
Mydbops
Parallel Replication in MySQL and MariaDB
Parallel Replication in MySQL and MariaDB
Mydbops
Upgrading mysql version 5.5.30 to 5.6.10
Upgrading mysql version 5.5.30 to 5.6.10
Vasudeva Rao
Ansible is Our Wishbone(Automate DBA Tasks With Ansible)
Ansible is Our Wishbone(Automate DBA Tasks With Ansible)
M Malai
MySQL Performance Tuning. Part 1: MySQL Configuration (includes MySQL 5.7)
MySQL Performance Tuning. Part 1: MySQL Configuration (includes MySQL 5.7)
Aurimas Mikalauskas
MySQL DBA
MySQL DBA
lalit choudhary
PostGreSQL Performance Tuning
PostGreSQL Performance Tuning
Maven Logix
Mysql high availability and scalability
Mysql high availability and scalability
yin gong
High Availability With InnoDB Clusters
High Availability With InnoDB Clusters
Mydbops
MySQL 5.7 - What's new and How to upgrade
MySQL 5.7 - What's new and How to upgrade
Abel Flórez
Percona XtraDB Cluster ( Ensure high Availability )
Percona XtraDB Cluster ( Ensure high Availability )
Mydbops
Amazon Aurora로 안전하게 migration 하기
Amazon Aurora로 안전하게 migration 하기
Jesang Yoon
My sql storage engines
My sql storage engines
Vasudeva Rao
MySQL 5.7 milestone
MySQL 5.7 milestone
Louis liu
A26 MariaDB : The New&Implemented MySQL Branch by Colin Charles
A26 MariaDB : The New&Implemented MySQL Branch by Colin Charles
Insight Technology, Inc.
High performance and high availability proxies for MySQL
High performance and high availability proxies for MySQL
Mydbops
Tendances
(20)
Introduction to MariaDB MaxScale
Introduction to MariaDB MaxScale
MariaDB 10.5 binary install (바이너리 설치)
MariaDB 10.5 binary install (바이너리 설치)
Introduction to ClustrixDB
Introduction to ClustrixDB
InnoDB Performance Optimisation
InnoDB Performance Optimisation
Percona Xtrabackup - Highly Efficient Backups
Percona Xtrabackup - Highly Efficient Backups
Parallel Replication in MySQL and MariaDB
Parallel Replication in MySQL and MariaDB
Upgrading mysql version 5.5.30 to 5.6.10
Upgrading mysql version 5.5.30 to 5.6.10
Ansible is Our Wishbone(Automate DBA Tasks With Ansible)
Ansible is Our Wishbone(Automate DBA Tasks With Ansible)
MySQL Performance Tuning. Part 1: MySQL Configuration (includes MySQL 5.7)
MySQL Performance Tuning. Part 1: MySQL Configuration (includes MySQL 5.7)
MySQL DBA
MySQL DBA
PostGreSQL Performance Tuning
PostGreSQL Performance Tuning
Mysql high availability and scalability
Mysql high availability and scalability
High Availability With InnoDB Clusters
High Availability With InnoDB Clusters
MySQL 5.7 - What's new and How to upgrade
MySQL 5.7 - What's new and How to upgrade
Percona XtraDB Cluster ( Ensure high Availability )
Percona XtraDB Cluster ( Ensure high Availability )
Amazon Aurora로 안전하게 migration 하기
Amazon Aurora로 안전하게 migration 하기
My sql storage engines
My sql storage engines
MySQL 5.7 milestone
MySQL 5.7 milestone
A26 MariaDB : The New&Implemented MySQL Branch by Colin Charles
A26 MariaDB : The New&Implemented MySQL Branch by Colin Charles
High performance and high availability proxies for MySQL
High performance and high availability proxies for MySQL
En vedette
MySQL 5.5&5.6 new features summary
MySQL 5.5&5.6 new features summary
Louis liu
MySQL 开发
MySQL 开发
YUCHENG HU
NoSQL Plus MySQL From MySQL Practitioner\'s Point Of View
NoSQL Plus MySQL From MySQL Practitioner\'s Point Of View
Alex Esterkin
NoSQL and MySQL webinar - best of both worlds
NoSQL and MySQL webinar - best of both worlds
Mat Keep
MySQL的并发线程性能问题
MySQL的并发线程性能问题
Hui Liu
What's New in MySQL 5.6
What's New in MySQL 5.6
Santo Leto
MongoDB at Baidu
MongoDB at Baidu
Mat Keep
En vedette
(7)
MySQL 5.5&5.6 new features summary
MySQL 5.5&5.6 new features summary
MySQL 开发
MySQL 开发
NoSQL Plus MySQL From MySQL Practitioner\'s Point Of View
NoSQL Plus MySQL From MySQL Practitioner\'s Point Of View
NoSQL and MySQL webinar - best of both worlds
NoSQL and MySQL webinar - best of both worlds
MySQL的并发线程性能问题
MySQL的并发线程性能问题
What's New in MySQL 5.6
What's New in MySQL 5.6
MongoDB at Baidu
MongoDB at Baidu
Similaire à MySQL 5.6 config 優化
MySQL for Large Scale Social Games
MySQL for Large Scale Social Games
Yoshinori Matsunobu
MySQL Galera 集群
MySQL Galera 集群
YUCHENG HU
MySQL Replication Update -- Zendcon 2016
MySQL Replication Update -- Zendcon 2016
Dave Stokes
MySQL Replication Basics -Ohio Linux Fest 2016
MySQL Replication Basics -Ohio Linux Fest 2016
Dave Stokes
MySQL Replication Overview -- PHPTek 2016
MySQL Replication Overview -- PHPTek 2016
Dave Stokes
Mysql replication @ gnugroup
Mysql replication @ gnugroup
Jayant Chutke
MySQL Utilities -- Cool Tools For You: PHP World Nov 16 2016
MySQL Utilities -- Cool Tools For You: PHP World Nov 16 2016
Dave Stokes
Percona Cluster Installation with High Availability
Percona Cluster Installation with High Availability
Ram Gautam
Migration from MySQL to Cassandra for millions of active users
Migration from MySQL to Cassandra for millions of active users
Andrey Panasyuk
MySQL Tokudb engine benchmark
MySQL Tokudb engine benchmark
Louis liu
XPDS14: MirageOS 2.0: branch consistency for Xen Stub Domains - Anil Madhavap...
XPDS14: MirageOS 2.0: branch consistency for Xen Stub Domains - Anil Madhavap...
The Linux Foundation
A Detailed Look At cassandra.yaml (Edward Capriolo, The Last Pickle) | Cassan...
A Detailed Look At cassandra.yaml (Edward Capriolo, The Last Pickle) | Cassan...
DataStax
MySQL replication & cluster
MySQL replication & cluster
elliando dias
MySQL 101 PHPTek 2017
MySQL 101 PHPTek 2017
Dave Stokes
ZFS and MySQL on Linux, the Sweet Spots
ZFS and MySQL on Linux, the Sweet Spots
Jervin Real
Data Guard Deep Dive UKOUG 2012
Data Guard Deep Dive UKOUG 2012
Emre Baransel
Production MongoDB in the Cloud
Production MongoDB in the Cloud
bridgetkromhout
MySQL Replication Evolution -- Confoo Montreal 2017
MySQL Replication Evolution -- Confoo Montreal 2017
Dave Stokes
A kind and gentle introducton to rac
A kind and gentle introducton to rac
Riyaj Shamsudeen
Introduction to Galera Cluster
Introduction to Galera Cluster
Codership Oy - Creators of Galera Cluster
Similaire à MySQL 5.6 config 優化
(20)
MySQL for Large Scale Social Games
MySQL for Large Scale Social Games
MySQL Galera 集群
MySQL Galera 集群
MySQL Replication Update -- Zendcon 2016
MySQL Replication Update -- Zendcon 2016
MySQL Replication Basics -Ohio Linux Fest 2016
MySQL Replication Basics -Ohio Linux Fest 2016
MySQL Replication Overview -- PHPTek 2016
MySQL Replication Overview -- PHPTek 2016
Mysql replication @ gnugroup
Mysql replication @ gnugroup
MySQL Utilities -- Cool Tools For You: PHP World Nov 16 2016
MySQL Utilities -- Cool Tools For You: PHP World Nov 16 2016
Percona Cluster Installation with High Availability
Percona Cluster Installation with High Availability
Migration from MySQL to Cassandra for millions of active users
Migration from MySQL to Cassandra for millions of active users
MySQL Tokudb engine benchmark
MySQL Tokudb engine benchmark
XPDS14: MirageOS 2.0: branch consistency for Xen Stub Domains - Anil Madhavap...
XPDS14: MirageOS 2.0: branch consistency for Xen Stub Domains - Anil Madhavap...
A Detailed Look At cassandra.yaml (Edward Capriolo, The Last Pickle) | Cassan...
A Detailed Look At cassandra.yaml (Edward Capriolo, The Last Pickle) | Cassan...
MySQL replication & cluster
MySQL replication & cluster
MySQL 101 PHPTek 2017
MySQL 101 PHPTek 2017
ZFS and MySQL on Linux, the Sweet Spots
ZFS and MySQL on Linux, the Sweet Spots
Data Guard Deep Dive UKOUG 2012
Data Guard Deep Dive UKOUG 2012
Production MongoDB in the Cloud
Production MongoDB in the Cloud
MySQL Replication Evolution -- Confoo Montreal 2017
MySQL Replication Evolution -- Confoo Montreal 2017
A kind and gentle introducton to rac
A kind and gentle introducton to rac
Introduction to Galera Cluster
Introduction to Galera Cluster
Dernier
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
VICTOR MAESTRE RAMIREZ
11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf
HafizMudaserAhmad
Transport layer issues and challenges - Guide
Transport layer issues and challenges - Guide
GOPINATHS437943
Class 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm System
irfanmechengr
Input Output Management in Operating System
Input Output Management in Operating System
Rashmi Bhat
Mine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptx
Romil Mishra
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
Mark Billinghurst
Autonomous emergency braking system (aeb) ppt.ppt
Autonomous emergency braking system (aeb) ppt.ppt
bibisarnayak0
Earthing details of Electrical Substation
Earthing details of Electrical Substation
stephanwindworld
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
sdickerson1
Designing pile caps according to ACI 318-19.pptx
Designing pile caps according to ACI 318-19.pptx
Erbil Polytechnic University
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of Action
Mebane Rash
"Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ...
Erbil Polytechnic University
Configuration of IoT devices - Systems managament
Configuration of IoT devices - Systems managament
BharaniDharan195623
Crystal Structure analysis and detailed information pptx
Crystal Structure analysis and detailed information pptx
achiever3003
Ch10-Global Supply Chain - Cadena de Suministro.pdf
Ch10-Global Supply Chain - Cadena de Suministro.pdf
ChristianCDAM
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
jhunlian
BSNL Internship Training presentation.pptx
BSNL Internship Training presentation.pptx
NiranjanYadav41
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.ppt
SAURABHKUMAR892774
home automation using Arduino by Aditya Prasad
home automation using Arduino by Aditya Prasad
aditya806802
Dernier
(20)
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf
Transport layer issues and challenges - Guide
Transport layer issues and challenges - Guide
Class 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm System
Input Output Management in Operating System
Input Output Management in Operating System
Mine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptx
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
Autonomous emergency braking system (aeb) ppt.ppt
Autonomous emergency braking system (aeb) ppt.ppt
Earthing details of Electrical Substation
Earthing details of Electrical Substation
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
Designing pile caps according to ACI 318-19.pptx
Designing pile caps according to ACI 318-19.pptx
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of Action
"Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ...
Configuration of IoT devices - Systems managament
Configuration of IoT devices - Systems managament
Crystal Structure analysis and detailed information pptx
Crystal Structure analysis and detailed information pptx
Ch10-Global Supply Chain - Cadena de Suministro.pdf
Ch10-Global Supply Chain - Cadena de Suministro.pdf
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
BSNL Internship Training presentation.pptx
BSNL Internship Training presentation.pptx
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.ppt
home automation using Arduino by Aditya Prasad
home automation using Arduino by Aditya Prasad
MySQL 5.6 config 優化
1.
MySQL config Tuning Alexis
2.
調整原則 1.一次調整一個 2.Set Global:若該變數是dynamic,則可用它在 runtime修正variables,但restart即會消失,需設 定option file 3.注意variable的關聯性 4.ram
2x不代表所有東西都2倍
3.
innodb_buffer_pool_size 1.cache both data
and index 2.512M:for normal 3.4G:for 寫入多 4.5.6 above 5.redo log
4.
max_connections 1.>1000 is not
OK(有人設2000) 2.thread pool 3.connection pool
5.
innodb_file_per_table 1.bad performance 2.>10k table
is not good 3.reclaim space as dropping, truncating or rebuilding
6.
innodb_flush_log_at_trx_commit =1 1.safety 2.flush時會有多的fsyncs 3.完全ACID
7.
innodb_flush_log_at_trx_commit =2 1.每秒 flush committed
transactions 到 redo log 2.適合replica 3.loss data as OS crash =0 1.crash時會丟失
8.
innodb_flush_method 1.通常O_DIRECT 2.sysbench來判斷
9.
innodb_log_buffer_size -flushed every 1
sec -default is ok for medium write & shorter transactions -more for activity spikes or lots of blobs work
10.
innodb_log_buffer_size -not committed yet -1MB -innodb_log_waits -larger
will save disk I/O
11.
innodb_log_file_size larger: -better performance -longer recovery
time -less checkpoint flush activity
12.
innodb_log_file_size BUG #69477 5.6.20 5.6.22 10
times larger than the largest BLOB + length of other variable length fields redo log BLOB’s max is 10% of redo log size
13.
Query_cache_size 1.well-known bottleneck 2.better to
be zero 3.good indexing, replicas, external cache 4.not good for real practice 5.Today’s machine is much faster than before
14.
log_bin 1.for replication master 2.also
got to set server_id 3.to save disk space: a.expire_logs_days b.purge binary logs
15.
skip_name_resolve 1.enable it to
prevent the slow DNS let you slow 2.GRANT got to use IP address 3.skip_name_resolve
16.
PS 1.table_cache 2.thread_cache:dont create thread
for normal operation
17.
PS http://dev.mysql.com/doc/refman/5. 6/en/server-system-variables. html#sysvar_table_definition_cache