SlideShare une entreprise Scribd logo
1  sur  38
Télécharger pour lire hors ligne
MySQL Konfiguration - die wichtigsten
            Parameter

    DOAG SIG MySQL – Performance
      13. März 2012, Wiesbaden

               Oli Sennhauser
        Senior MySQL Consultant, FromDual GmbH

         oli.sennhauser@fromdual.com

                     www.fromdual.com            1
FromDual GmbH
●   FromDual bietet neutral und unabhängig:
    ●   Beratung für MySQL
    ●   Support für MySQL und Galera Cluster
    ●   Remote-DBA / MySQL Betrieb
    ●   Schulung für MySQL
●   Oracle Silber Partner (OPN)


                   www.fromdual.com

                        www.fromdual.com       2
Kunden




         www.fromdual.com   3
Inhalt

 MySQL Konfiguration
 ➢
     FromDual Perfromance Waage
 ➢
     The Big 9!
 ➢
     InnoDB
 ➢
     MyISAM
 ➢
     MySQL
 ➢
     Weitere Parameter




                                  www.fromdual.com   4
FromDual Performance Waage
MySQL Tuning
●   Welche Storage Engine verwendet Ihr zur
    Zeit?
●   Welchen MySQL Release? (→ 5.1 und neuer)
●   Zur Zeit: ca. 330 MySQL Parameter
      → aber nur ca. 8 (9) davon sind signifikant!
      → Grob-Tuning
●   Alle anderen nur nach ausführlichem
    Benchmarken
      → Fine-Tuning
                       www.fromdual.com              6
MySQL Architektur
             Applikation / Client

  Thread            Connection          mysqld
  Cache              Manager                                       Parser
                                             Optimizer
                      User Au-
                    thentication
                                        Access Control
                    Command                                           Table Open
  Logging
                    Dispatcher                                       Cache (.frm, fh)
                                         Table Manager
   Query            Query Cache                                      Table Definition
   Cache              Module                                         Cache (tbl def.)

                                     Handler Interface


  MyISAM   InnoDB    Memory   NDB      PBMS        Aria   XtraDB    Federated-X   ...


                                    www.fromdual.com                                    7
Bevor wir anfangen!
●   Kunde fragt mich: Kann mein System 30% mehr
    Last vertragen?
●   Chemische Verfahrenstechnik:




●   Gibt es Unterschiede zu eine DB basierten
    System?
●   Was brauche ich um diese Frage zu beantworten?

                       www.fromdual.com              8
Messen, messen, messen...
●   Messen!
●   Idealfall: Nur ein Parameter aufs mal
    ändern!




                     www.fromdual.com       9
The big 9!
●   InnoDB: 5
    ●   InnoDB Buffer Pool: 2
    ●   InnoDB Log File: 3
●   MyISAM: 1
    ●   Key Buffer: 1
●   MySQL: 3
    ●   Query Cache: 1
    ●   Table_*_cache: 2

                           www.fromdual.com   10
InnoDB Buffer Pool
●   InnoDB cached: Daten UND Indizes
●   Grösse: innodb_buffer_pool_size
    ●   in Byte (M, G)
    ●   Pages à 16k (5.6: 4k, 8k, 16k)
●   Repräsentation der Platte im             FS Cache


    Speicher:
●   Ca. 80% vom RAM auf dedizier-
    ter InnoDB Maschine

                          www.fromdual.com              11
InnoDB Buffer Pool Informationen
●    Messen:
    SHOW GLOBAL STATUS LIKE 'innodb_buffer_pool_pages%';

    +­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­­­­+
    | Variable_name                    | Value    |
    +­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­­­­+
    | Innodb_buffer_pool_pages_data    | 9175     |
    | Innodb_buffer_pool_pages_misc    | 40       | +
    | Innodb_buffer_pool_pages_free    | 1024     | +
    | Innodb_buffer_pool_pages_total   | 10239    | =

    | Innodb_buffer_pool_pages_dirty   | 289      | 3.1%
    | Innodb_buffer_pool_pages_data    | 9175     |
    +­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­­­­+



                             www.fromdual.com              12
InnoDB Buffer Pool
●    Buffer Pool Hit Ratio:
        read_requests / (read_requests + reads) * 100
        = 99.9%
    SHOW GLOBAL STATUS LIKE 'innodb_buffer_pool%';

    +­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­­­­­­­+
    | Variable_name                         | Value       |
    +­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­­­­­­­+
    | Innodb_buffer_pool_read_requests      | 1507235721  |
    | Innodb_buffer_pool_reads              | 1193121     |

    | Innodb_buffer_pool_wait_free          | 5           |
    +­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­­­­­­­+



                              www.fromdual.com                13
InnoDB Buffer Pool von InnoDB
Status
SHOW ENGINE INNODB STATUSG
­­­­­­­­­­­­­­­­­­­­­­
BUFFER POOL AND MEMORY
­­­­­­­­­­­­­­­­­­­­­­
Total memory allocated 171704320
Dictionary memory allocated 2473598
Buffer pool size   10239
Free buffers       1024
Database pages     9185
Old database pages 3370
Modified db pages  812
Pending reads 0
Pending writes: LRU 0, flush list 0 single page 0
Pages made young 1768431, not young 0
1.00 youngs/s, 0.00 non­youngs/s
Pages read 1197328, created 215334, written 22307309
1.00 reads/s, 1.00 creates/s, 0.00 writes/s
Buffer pool hit rate 1000 / 1000, young­making rate 0 / 1000 not 0 / 1000
Pages read ahead 0.00/s, evicted without access 0.00/s,
Random read ahead 0.00/s
LRU len: 9185, unzip_LRU len: 0
I/O sum[3125]:cur[2], unzip sum[0]:cur[0]

                                 www.fromdual.com                           14
InnoDB Buffer Pool Monitoring
●   Es ist wünschenswert, aber meist
    illusorisch, alle Daten im RAM zu halten!




                     www.fromdual.com           15
InnoDB Buffer Pool Monitoring
●   Einfluss von Partitionierung auf den InnoDB
    Buffer Pool:




                    www.fromdual.com          16
InnoDB Buffer Pool Instanzen
●   InnoDB Buffer Pool Instanzen!
    ●   Neu mit MySQL 5.5
    ●   Bei sehr viel RAM
    ●   Bei hoher Concurrency
        → Locks auf Buffer Pool Verwaltungsstruktur
        → Eigene Free List, Flust List, LRU List, Buffer Pool
        Mutex, etc.
    ●   Hash-Verteilung (random?)
●   innodb_buffer_pool_instances
    ●   Sinnvoll ab 2 Gb
    ●   min. 1 Gb pro Instanz
    ●   max. #cores
                                www.fromdual.com                17
InnoDB Log File
●   innodb_flush_log_at_trx_commit
    ●   0, 2 für Performance, 1 für Sicherheit
        –   0: 1/s + fsync
        –   1: COMMIT + fsync                    FS Cache


        –   2: COMMIT + 1/s fsync
●   innodb_log_file_size
    ●   Grösser = schneller, aber längere
        Recovery Zeiten → 2 x 256 M
●   sync_binlog
    ●   != 0 → langsam(er)
                             www.fromdual.com               18
InnoDB Log File Information
SHOW ENGINE INNODB STATUSG
­­­
LOG
­­­

Log sequence number 404010398185 ­
Log flushed up to   404010198753 = 199432 byte log buffer

Log flushed up to   404010198753 ­
Last checkpoint at  404010110312 =  88441 byte log file

0 pending log writes, 0 pending chkp writes
152844 log i/o's done, 0.50 log i/o's/second

SHOW GLOBAL STATUS LIKE 'innodb_os_log_%';
+­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­­­­­­­+
| Variable_name                | Value       |
+­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­­­­­­­+
| Innodb_os_log_fsyncs         | 153643      |
| Innodb_os_log_pending_fsyncs | 0           |
| Innodb_os_log_pending_writes | 0           |
+­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­­­­­­­+

                                 www.fromdual.com           19
InnoDB Log File Monitoring




             www.fromdual.com   20
MyISAM Key Buffer
●   MyISAM cached nur Indizes!
    → Key Buffer
    → Daten: File System Cache
●   key_buffer_size
    ●   ca. 25 – 33% vom RAM auf dedizierter Maschine
    ●   ca. 67 – 75% vom RAM für File System Cache
●   Üblicherweise 1k pages


                        www.fromdual.com             21
MyISAM Key Buffer Information
●    Key Buffer Hit Ratio:
         read_requests / (read_requests + reads) x 100
●    Key_blocks_used: High Water Mark!
    SHOW GLOBAL STATUS LIKE 'key%';
    +­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­­+
    | Variable_name          | Value  |
    +­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­­+
    | Key_blocks_not_flushed | 0      |
    | Key_blocks_unused      | 1674   |
    | Key_blocks_used        | 9      |
    | Key_read_requests      | 130434 |
    | Key_reads              | 0      |
    +­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­­+

    shell> free
                 total       used       free     shared    buffers     cached
    Mem:      16431960    6190408   10241552          0     408832    1719944

                                     www.fromdual.com                           22
MyISAM Monitoring
●   Key Buffer mehr als genügend gross!




                    www.fromdual.com      23
Query Cache
●   Cached SELECT Queries
    ●   Hash, Tabellen, Resultat
●   Performance Booster bei:
    ●   Lesen >> Schreiben
    ●   Geringer Concurrency
●   query_cache_size / query_cache_type
    ●   Nicht zu gross machen (<= 128 M)
●   Bei sehr hoher Concurrency schädlich!
    ●   Global Query Cache Mutex
                          www.fromdual.com   24
Query Cache Informationen
●    Schlechtes Hits / Inserts Verhältnis:
      ●   Ist: 0.26, Soll: >= 1.2
      ●   Insert: 10 – 20 % Overhead
●    Query Cache Hit Ratio: 16.9%
      ●   Qcache_hits / (Com_select + Qcache_hits) x 100
    SHOW GLOBAL STATUS LIKE 'qcache%';
    +­­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­­­+
    | Variable_name           | Value   |
    +­­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­­­+
    | Com_select              | 5049720 |
    | Qcache_free_memory      | 1995376 |
    | Qcache_hits             | 1026597 |
    | Qcache_inserts          | 3911380 |
    | Qcache_lowmem_prunes    | 2529208 |
    | Qcache_not_cached       | 1138305 |
    | Qcache_queries_in_cache | 1357    |
                                     www.fromdual.com      25
    +­­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­­­+
Query Cache Monitoring
●   Um xx:25 macht „jemand“ den Query Cache
    „kaputt“:




                   www.fromdual.com       26
MySQL Parameter
●   table_open_cache
    ●   Cached File Handles
    ●   Laufende Connections x be-
        nutze Tabellen
        → 2 – 4k ist nicht ungewöhn-
        lich!
    ●   Wenn zu klein → massive Performance-Probleme!
    ●   Hat Einfluss auf open-files-limit!
●   table_definition_cache
    ●   Cached .frm File (Tabellenstruktur)
    ●   512 – 4096 ist nicht ungewöhnlich!
                             www.fromdual.com           27
MySQL Parameter Informationen
SHOW GLOBAL STATUS LIKE 'open%table%s';
+­­­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­+
| Variable_name            | Value |
+­­­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­+
| Open_table_definitions   | 100   |
| Open_tables              | 102   |
| Opened_table_definitions | 100   |
| Opened_tables            | 109   |
+­­­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­+

SHOW GLOBAL STATUS LIKE 'open%table%s';
+­­­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­­­­+
| Variable_name            | Value    |
+­­­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­­­­+
| Open_table_definitions   | 67321    |
| Open_tables              | 131023   |
| Opened_table_definitions | 6177337  |
| Opened_tables            | 12489056 |
+­­­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­­­­+

SHOW OPEN TABLES;
+­­­­­­­­­­­­­­­­­­­­+­­­­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­­+­­­­­­­­­­­­­+
| Database           | Table                     | In_use | Name_locked |
+­­­­­­­­­­­­­­­­­­­­+­­­­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­­+­­­­­­­­­­­­­+
| crm                | saved_search              |      0 |           0 |
| zabbix             | users                     |      0 |           0 |
...


                                          www.fromdual.com                  28
MySQL Parameter Monitoring




            www.fromdual.com   29
Weitere InnoDB Parameter
●   Viele Neuerungen mit MySQL 5.5 und 5.6!
●   InnoDB Log File / Buffer:
●   innodb_log_group_home_dir = ./
    ●   Default datadir
    ●   Trennen von sequentiellem I/O und random I/O
●   innodb_log_buffer_size = 8M
    ●   Für grosse Transaktionen
    ●   Innodb_log_waits > 0

                          www.fromdual.com             30
Weitere InnoDB Parameter
●   innodb_file_per_table = 1
    ●   1 grosses Sytem TS File vs.
    ●   1 kleines System TS File + 1 File pro Tabelle
    ●   Vorteil: Diskplatz wird wieder freigegeben
●   innodb_data_home_dir
    ●   Default datadir
    ●   Splitten von random I/O auf Daten und sequential I/O auf Log Files
●   innodb_data_file_path = ibdata1:10M:autoextend
●   innodb_autoextend_increment = 8
    ●   Achtung: 8 Mbyte!!!
    ●   Gilt nur für System TS File
●   innodb_file_format = Antelope
    ●   Default (= alt)
    ●   Barracuda ermöglicht File compression
                                       www.fromdual.com                      31
Weitere InnoDB Parameter
●   innodb_flush_method =                        data files         log files
    ●   Ausprobieren!                           open      flush  open       flush
                                     default   normal     fsync normal      fsync
    ●
                                     O_DSYNC O_SYNC fsync O_SYNC O_SYNC
                                     O_DIRECT O_DIRECT fsync normal         fsync
●   innodb_io_capacity = 200
    ●   Raid-1/10 #Disks / 2 x 200
●   innodb_read_io_threads = 4
●   innodb_write_io_threads = 4
    ●   Pending reads > innodb_read_io_threads x 64
    ●   Pending writes
●   innodb_use_native_aio = 1
    ●   Linux und Windows
    ●   Pending reads / writes
                                      www.fromdual.com                        32
Weitere MySQL Parameter
●   thread_cache_size    =    8
●   tmp_table_size       =   16M
●   max_heap_table_size  =   16M
●   max_connections      =  151
●   max_user_connections =    0
●   open_files_limit     = 1024


                 www.fromdual.com   33
Weitere MySQL Parameter
●   join_buffer_size       = 128k ­­>  8M
●   read_buffer_size       = 128k ­­>  2M
●   read_rnd_buffer_size   = 256k ­­> 16M
●   sort_buffer_size       = 256k ­­>  8M


●   binlog_format          = ROW
●   binlog_cache_size      = 32k ­­> 1M
●   binlog_stmt_cache_size = 32k ­­> 1M
●   binlog_row_image       = FULL
                    www.fromdual.com        34
Weitere MySQL Parameter
●   datadir                    = /var/lib/mysql/
●   default_storage_engine     = InnoDB
●   default_tmp_storage_engine = InnoDB


●   innodb_old_blocks_pct      = 37
●   innodb_old_blocks_time     = 0  ­­> 500?


●   key_cache_age_threshold    = 300
●   key_cache_division_limit   = 100 ­­> 63?

                     www.fromdual.com              35
Weitere MySQL Parameter
●   long_query_time          = 10.000000 ­­> 0.5?
●   slow_query_log           = OFF ­­> 1
●   slow_query_log_file      = /var/lib/mysql/slow.log


●   optimizer_switch         = index_merge=on,
    index_merge_union=on,index_merge_sort_union=on
●   optimizer_trace          = enabled=off,end_marker=off,
    one_line=off
●   optimizer_trace_features = greedy_search=on,
    range_optimizer=on,dynamic_range=on,repeated


●   performance_schema       = ON

                          www.fromdual.com                   36
Weitere Hilfe
●   Wie messen?
    ●   SHOW GLOBAL STATUS;
    ●   SHOW ENGINE INNODB STATUSG
●   ca. 330 Variablen
●   ca. 310 Status Informationen
●   MySQL Database Health Check:
    ●   http://www.fromdual.com/mysql-database-health-check
●   MySQL Doku, Server Status Variablen:
        http://dev.mysql.com/doc/refman/5.5/en/server-status-variables.html
●   MySQL Performance Monitor:
    ●   http://www.fromdual.ch/mysql-performance-monitor
    ●   Auch als Monitoring as a Service (MaaS) Angebot!
                                     www.fromdual.com                         37
Q&A

                Fragen ?

              Diskussion?

  Wir haben noch Zeit für persönliche und
           indviduelle Beratung

                und bieten

 Support, Schulung und Betrieb für MySQL

                 www.fromdual.com           38

Contenu connexe

Tendances

01 upgrade to my sql8
01 upgrade to my sql8 01 upgrade to my sql8
01 upgrade to my sql8 Ted Wennmark
 
MySQL Tech Tour 2015 - 5.7 Whats new
MySQL Tech Tour 2015 - 5.7 Whats newMySQL Tech Tour 2015 - 5.7 Whats new
MySQL Tech Tour 2015 - 5.7 Whats newMark Swarbrick
 
MySQL 5.7 - What's new and How to upgrade
MySQL 5.7 - What's new and How to upgradeMySQL 5.7 - What's new and How to upgrade
MySQL 5.7 - What's new and How to upgradeAbel Flórez
 
MySQL 5.7 Replication News
MySQL 5.7 Replication News MySQL 5.7 Replication News
MySQL 5.7 Replication News Ted Wennmark
 
My sql5.7 whatsnew_presentedatgids2015
My sql5.7 whatsnew_presentedatgids2015My sql5.7 whatsnew_presentedatgids2015
My sql5.7 whatsnew_presentedatgids2015Sanjay Manwani
 
New awesome features in MySQL 5.7
New awesome features in MySQL 5.7New awesome features in MySQL 5.7
New awesome features in MySQL 5.7Zhaoyang Wang
 
MySQL 5.7 - What's new, How to upgrade and Document Store
MySQL 5.7 - What's new, How to upgrade and Document StoreMySQL 5.7 - What's new, How to upgrade and Document Store
MySQL 5.7 - What's new, How to upgrade and Document StoreAbel Flórez
 
MySQL Performance Tuning. Part 1: MySQL Configuration (includes MySQL 5.7)
MySQL Performance Tuning. Part 1: MySQL Configuration (includes MySQL 5.7)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 5.7: What's New, Nov. 2015
MySQL 5.7: What's New, Nov. 2015MySQL 5.7: What's New, Nov. 2015
MySQL 5.7: What's New, Nov. 2015Mario Beck
 
Introduction to MySQL
Introduction to MySQLIntroduction to MySQL
Introduction to MySQLTed Wennmark
 
MySQL 5.6 Updates
MySQL 5.6 UpdatesMySQL 5.6 Updates
MySQL 5.6 UpdatesDave Stokes
 
MySQL 5.7: Focus on InnoDB
MySQL 5.7: Focus on InnoDBMySQL 5.7: Focus on InnoDB
MySQL 5.7: Focus on InnoDBMario Beck
 
MySQL Performance Metrics that Matter
MySQL Performance Metrics that MatterMySQL Performance Metrics that Matter
MySQL Performance Metrics that MatterMorgan Tocker
 
MySQL Features & Implementation
MySQL Features & ImplementationMySQL Features & Implementation
MySQL Features & ImplementationOSSCube
 
Mysql User Camp : 20th June - Mysql New Features
Mysql User Camp : 20th June - Mysql New FeaturesMysql User Camp : 20th June - Mysql New Features
Mysql User Camp : 20th June - Mysql New FeaturesTarique Saleem
 
NoSQL and MySQL: News about JSON
NoSQL and MySQL: News about JSONNoSQL and MySQL: News about JSON
NoSQL and MySQL: News about JSONMario Beck
 
MySQL Cloud Service Deep Dive
MySQL Cloud Service Deep DiveMySQL Cloud Service Deep Dive
MySQL Cloud Service Deep DiveMorgan Tocker
 

Tendances (20)

01 upgrade to my sql8
01 upgrade to my sql8 01 upgrade to my sql8
01 upgrade to my sql8
 
MySQL Tech Tour 2015 - 5.7 Whats new
MySQL Tech Tour 2015 - 5.7 Whats newMySQL Tech Tour 2015 - 5.7 Whats new
MySQL Tech Tour 2015 - 5.7 Whats new
 
MySQL 5.7 - What's new and How to upgrade
MySQL 5.7 - What's new and How to upgradeMySQL 5.7 - What's new and How to upgrade
MySQL 5.7 - What's new and How to upgrade
 
MySQL Security
MySQL SecurityMySQL Security
MySQL Security
 
MySQL 5.7 Replication News
MySQL 5.7 Replication News MySQL 5.7 Replication News
MySQL 5.7 Replication News
 
My sql5.7 whatsnew_presentedatgids2015
My sql5.7 whatsnew_presentedatgids2015My sql5.7 whatsnew_presentedatgids2015
My sql5.7 whatsnew_presentedatgids2015
 
New awesome features in MySQL 5.7
New awesome features in MySQL 5.7New awesome features in MySQL 5.7
New awesome features in MySQL 5.7
 
MySQL 5.7 - What's new, How to upgrade and Document Store
MySQL 5.7 - What's new, How to upgrade and Document StoreMySQL 5.7 - What's new, How to upgrade and Document Store
MySQL 5.7 - What's new, How to upgrade and Document Store
 
MySQL Performance Tuning. Part 1: MySQL Configuration (includes MySQL 5.7)
MySQL Performance Tuning. Part 1: MySQL Configuration (includes MySQL 5.7)MySQL Performance Tuning. Part 1: MySQL Configuration (includes MySQL 5.7)
MySQL Performance Tuning. Part 1: MySQL Configuration (includes MySQL 5.7)
 
MySQL 5.7: What's New, Nov. 2015
MySQL 5.7: What's New, Nov. 2015MySQL 5.7: What's New, Nov. 2015
MySQL 5.7: What's New, Nov. 2015
 
MySQL Cluster
MySQL ClusterMySQL Cluster
MySQL Cluster
 
Introduction to MySQL
Introduction to MySQLIntroduction to MySQL
Introduction to MySQL
 
MySQL 5.6 Updates
MySQL 5.6 UpdatesMySQL 5.6 Updates
MySQL 5.6 Updates
 
My sql 5.6&MySQL Cluster 7.3
My sql 5.6&MySQL Cluster 7.3My sql 5.6&MySQL Cluster 7.3
My sql 5.6&MySQL Cluster 7.3
 
MySQL 5.7: Focus on InnoDB
MySQL 5.7: Focus on InnoDBMySQL 5.7: Focus on InnoDB
MySQL 5.7: Focus on InnoDB
 
MySQL Performance Metrics that Matter
MySQL Performance Metrics that MatterMySQL Performance Metrics that Matter
MySQL Performance Metrics that Matter
 
MySQL Features & Implementation
MySQL Features & ImplementationMySQL Features & Implementation
MySQL Features & Implementation
 
Mysql User Camp : 20th June - Mysql New Features
Mysql User Camp : 20th June - Mysql New FeaturesMysql User Camp : 20th June - Mysql New Features
Mysql User Camp : 20th June - Mysql New Features
 
NoSQL and MySQL: News about JSON
NoSQL and MySQL: News about JSONNoSQL and MySQL: News about JSON
NoSQL and MySQL: News about JSON
 
MySQL Cloud Service Deep Dive
MySQL Cloud Service Deep DiveMySQL Cloud Service Deep Dive
MySQL Cloud Service Deep Dive
 

Similaire à MySQL configuration - The most important Variables

MySQL Performance Tuning Variables
MySQL Performance Tuning VariablesMySQL Performance Tuning Variables
MySQL Performance Tuning VariablesFromDual GmbH
 
MySQL for Oracle DBAs
MySQL for Oracle DBAsMySQL for Oracle DBAs
MySQL for Oracle DBAsFromDual GmbH
 
UKOUG 2011: Practical MySQL Tuning
UKOUG 2011: Practical MySQL TuningUKOUG 2011: Practical MySQL Tuning
UKOUG 2011: Practical MySQL TuningFromDual GmbH
 
Faster, better, stronger: The new InnoDB
Faster, better, stronger: The new InnoDBFaster, better, stronger: The new InnoDB
Faster, better, stronger: The new InnoDBMariaDB plc
 
MySQL 5.5&5.6 new features summary
MySQL 5.5&5.6 new features summaryMySQL 5.5&5.6 new features summary
MySQL 5.5&5.6 new features summaryLouis liu
 
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 scalabilityWim Godden
 
PL22 - Backup and Restore Performance.pptx
PL22 - Backup and Restore Performance.pptxPL22 - Backup and Restore Performance.pptx
PL22 - Backup and Restore Performance.pptxVinicius M Grippa
 
Ukoug 2011 mysql_arch_for_orcl_dba
Ukoug 2011 mysql_arch_for_orcl_dbaUkoug 2011 mysql_arch_for_orcl_dba
Ukoug 2011 mysql_arch_for_orcl_dbaorablue11
 
Evolution of DBA in the Cloud Era
 Evolution of DBA in the Cloud Era Evolution of DBA in the Cloud Era
Evolution of DBA in the Cloud EraMydbops
 
MariaDB und mehr - MariaDB Roadshow Summer 2014 Hamburg Berlin Frankfurt
MariaDB und mehr - MariaDB Roadshow Summer 2014 Hamburg Berlin FrankfurtMariaDB und mehr - MariaDB Roadshow Summer 2014 Hamburg Berlin Frankfurt
MariaDB und mehr - MariaDB Roadshow Summer 2014 Hamburg Berlin FrankfurtMariaDB Corporation
 
MariaDB Paris Workshop 2023 - Performance Optimization
MariaDB Paris Workshop 2023 - Performance OptimizationMariaDB Paris Workshop 2023 - Performance Optimization
MariaDB Paris Workshop 2023 - Performance OptimizationMariaDB plc
 
Loadays MySQL
Loadays MySQLLoadays MySQL
Loadays MySQLlefredbe
 
MongoDB performance tuning and load testing, NOSQL Now! 2013 Conference prese...
MongoDB performance tuning and load testing, NOSQL Now! 2013 Conference prese...MongoDB performance tuning and load testing, NOSQL Now! 2013 Conference prese...
MongoDB performance tuning and load testing, NOSQL Now! 2013 Conference prese...ronwarshawsky
 
MySQL Performance Tuning London Meetup June 2017
MySQL Performance Tuning London Meetup June 2017MySQL Performance Tuning London Meetup June 2017
MySQL Performance Tuning London Meetup June 2017Ivan Zoratti
 
InnoDB Scalability improvements in MySQL 8.0
InnoDB Scalability improvements in MySQL 8.0InnoDB Scalability improvements in MySQL 8.0
InnoDB Scalability improvements in MySQL 8.0Mydbops
 
PostgreSQL 9.5 - Major Features
PostgreSQL 9.5 - Major FeaturesPostgreSQL 9.5 - Major Features
PostgreSQL 9.5 - Major FeaturesInMobi Technology
 

Similaire à MySQL configuration - The most important Variables (20)

NoSQL with MySQL
NoSQL with MySQLNoSQL with MySQL
NoSQL with MySQL
 
MySQL Performance Tuning Variables
MySQL Performance Tuning VariablesMySQL Performance Tuning Variables
MySQL Performance Tuning Variables
 
MySQL for Oracle DBAs
MySQL for Oracle DBAsMySQL for Oracle DBAs
MySQL for Oracle DBAs
 
UKOUG 2011: Practical MySQL Tuning
UKOUG 2011: Practical MySQL TuningUKOUG 2011: Practical MySQL Tuning
UKOUG 2011: Practical MySQL Tuning
 
Faster, better, stronger: The new InnoDB
Faster, better, stronger: The new InnoDBFaster, better, stronger: The new InnoDB
Faster, better, stronger: The new InnoDB
 
MariaDB 10 and Beyond
MariaDB 10 and BeyondMariaDB 10 and Beyond
MariaDB 10 and Beyond
 
MySQL 5.5&5.6 new features summary
MySQL 5.5&5.6 new features summaryMySQL 5.5&5.6 new features summary
MySQL 5.5&5.6 new features summary
 
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
 
PL22 - Backup and Restore Performance.pptx
PL22 - Backup and Restore Performance.pptxPL22 - Backup and Restore Performance.pptx
PL22 - Backup and Restore Performance.pptx
 
Ukoug 2011 mysql_arch_for_orcl_dba
Ukoug 2011 mysql_arch_for_orcl_dbaUkoug 2011 mysql_arch_for_orcl_dba
Ukoug 2011 mysql_arch_for_orcl_dba
 
Evolution of DBA in the Cloud Era
 Evolution of DBA in the Cloud Era Evolution of DBA in the Cloud Era
Evolution of DBA in the Cloud Era
 
MariaDB und mehr - MariaDB Roadshow Summer 2014 Hamburg Berlin Frankfurt
MariaDB und mehr - MariaDB Roadshow Summer 2014 Hamburg Berlin FrankfurtMariaDB und mehr - MariaDB Roadshow Summer 2014 Hamburg Berlin Frankfurt
MariaDB und mehr - MariaDB Roadshow Summer 2014 Hamburg Berlin Frankfurt
 
MariaDB Paris Workshop 2023 - Performance Optimization
MariaDB Paris Workshop 2023 - Performance OptimizationMariaDB Paris Workshop 2023 - Performance Optimization
MariaDB Paris Workshop 2023 - Performance Optimization
 
Running MySQL on Linux
Running MySQL on LinuxRunning MySQL on Linux
Running MySQL on Linux
 
Loadays MySQL
Loadays MySQLLoadays MySQL
Loadays MySQL
 
MongoDB performance tuning and load testing, NOSQL Now! 2013 Conference prese...
MongoDB performance tuning and load testing, NOSQL Now! 2013 Conference prese...MongoDB performance tuning and load testing, NOSQL Now! 2013 Conference prese...
MongoDB performance tuning and load testing, NOSQL Now! 2013 Conference prese...
 
MySQL Performance Tuning London Meetup June 2017
MySQL Performance Tuning London Meetup June 2017MySQL Performance Tuning London Meetup June 2017
MySQL Performance Tuning London Meetup June 2017
 
InnoDB Scalability improvements in MySQL 8.0
InnoDB Scalability improvements in MySQL 8.0InnoDB Scalability improvements in MySQL 8.0
InnoDB Scalability improvements in MySQL 8.0
 
PostgreSQL 9.5 - Major Features
PostgreSQL 9.5 - Major FeaturesPostgreSQL 9.5 - Major Features
PostgreSQL 9.5 - Major Features
 
MySQL database
MySQL databaseMySQL database
MySQL database
 

Plus de FromDual GmbH

MariaDB/MySQL pitfalls - And how to come out again...
MariaDB/MySQL pitfalls - And how to come out again...MariaDB/MySQL pitfalls - And how to come out again...
MariaDB/MySQL pitfalls - And how to come out again...FromDual GmbH
 
MariaDB / MySQL tripping hazard and how to get out again?
MariaDB / MySQL tripping hazard and how to get out again?MariaDB / MySQL tripping hazard and how to get out again?
MariaDB / MySQL tripping hazard and how to get out again?FromDual GmbH
 
PXC 5.5 to MariaDB 10.4 Galera Cluster Migration Workshop
PXC 5.5 to MariaDB 10.4 Galera Cluster Migration WorkshopPXC 5.5 to MariaDB 10.4 Galera Cluster Migration Workshop
PXC 5.5 to MariaDB 10.4 Galera Cluster Migration WorkshopFromDual GmbH
 
IT Tage 2019 MariaDB 10.4 New Features
IT Tage 2019 MariaDB 10.4 New FeaturesIT Tage 2019 MariaDB 10.4 New Features
IT Tage 2019 MariaDB 10.4 New FeaturesFromDual GmbH
 
MariaDB 10.4 New Features
MariaDB 10.4 New FeaturesMariaDB 10.4 New Features
MariaDB 10.4 New FeaturesFromDual GmbH
 
MariaDB 10.2 New Features
MariaDB 10.2 New FeaturesMariaDB 10.2 New Features
MariaDB 10.2 New FeaturesFromDual GmbH
 
PERFORMANCE_SCHEMA and sys schema
PERFORMANCE_SCHEMA and sys schemaPERFORMANCE_SCHEMA and sys schema
PERFORMANCE_SCHEMA and sys schemaFromDual GmbH
 
MySQL für Oracle DBA's
MySQL für Oracle DBA'sMySQL für Oracle DBA's
MySQL für Oracle DBA'sFromDual GmbH
 
MySQL Backup/Recovery
MySQL Backup/RecoveryMySQL Backup/Recovery
MySQL Backup/RecoveryFromDual GmbH
 
MySQL Beispiele aus der Praxis - Wie setzen Kunden MySQL ein?
MySQL Beispiele aus der Praxis - Wie setzen Kunden MySQL ein?MySQL Beispiele aus der Praxis - Wie setzen Kunden MySQL ein?
MySQL Beispiele aus der Praxis - Wie setzen Kunden MySQL ein?FromDual GmbH
 
MySQL-Server im Teamwork - Replikation und Cluster
MySQL-Server im Teamwork - Replikation und ClusterMySQL-Server im Teamwork - Replikation und Cluster
MySQL-Server im Teamwork - Replikation und ClusterFromDual GmbH
 
Der Datenbank-Backup ist gemacht - was nun?
Der Datenbank-Backup ist gemacht - was nun?Der Datenbank-Backup ist gemacht - was nun?
Der Datenbank-Backup ist gemacht - was nun?FromDual GmbH
 
Weltweite Produktionsdatenverwaltung mit MySQL-Replikation
Weltweite Produktionsdatenverwaltung mit MySQL-ReplikationWeltweite Produktionsdatenverwaltung mit MySQL-Replikation
Weltweite Produktionsdatenverwaltung mit MySQL-ReplikationFromDual GmbH
 
MySQL Performance Tuning für Oracle-DBA's
MySQL Performance Tuning für Oracle-DBA'sMySQL Performance Tuning für Oracle-DBA's
MySQL Performance Tuning für Oracle-DBA'sFromDual GmbH
 
MySQL Security SLAC 2015
MySQL Security SLAC 2015MySQL Security SLAC 2015
MySQL Security SLAC 2015FromDual GmbH
 
MySQL Performance Tuning für Entwickler
MySQL Performance Tuning für EntwicklerMySQL Performance Tuning für Entwickler
MySQL Performance Tuning für EntwicklerFromDual GmbH
 
MySQL Replikation - Die Eier legende Wollmilchsau?
MySQL Replikation - Die Eier legende Wollmilchsau?MySQL Replikation - Die Eier legende Wollmilchsau?
MySQL Replikation - Die Eier legende Wollmilchsau?FromDual GmbH
 
Reading MySQL fingerprints
Reading MySQL fingerprintsReading MySQL fingerprints
Reading MySQL fingerprintsFromDual GmbH
 
High-availability with Galera Cluster for MySQL
High-availability with Galera Cluster for MySQLHigh-availability with Galera Cluster for MySQL
High-availability with Galera Cluster for MySQLFromDual GmbH
 
MySQL always-up with Galera Cluster
MySQL always-up with Galera ClusterMySQL always-up with Galera Cluster
MySQL always-up with Galera ClusterFromDual GmbH
 

Plus de FromDual GmbH (20)

MariaDB/MySQL pitfalls - And how to come out again...
MariaDB/MySQL pitfalls - And how to come out again...MariaDB/MySQL pitfalls - And how to come out again...
MariaDB/MySQL pitfalls - And how to come out again...
 
MariaDB / MySQL tripping hazard and how to get out again?
MariaDB / MySQL tripping hazard and how to get out again?MariaDB / MySQL tripping hazard and how to get out again?
MariaDB / MySQL tripping hazard and how to get out again?
 
PXC 5.5 to MariaDB 10.4 Galera Cluster Migration Workshop
PXC 5.5 to MariaDB 10.4 Galera Cluster Migration WorkshopPXC 5.5 to MariaDB 10.4 Galera Cluster Migration Workshop
PXC 5.5 to MariaDB 10.4 Galera Cluster Migration Workshop
 
IT Tage 2019 MariaDB 10.4 New Features
IT Tage 2019 MariaDB 10.4 New FeaturesIT Tage 2019 MariaDB 10.4 New Features
IT Tage 2019 MariaDB 10.4 New Features
 
MariaDB 10.4 New Features
MariaDB 10.4 New FeaturesMariaDB 10.4 New Features
MariaDB 10.4 New Features
 
MariaDB 10.2 New Features
MariaDB 10.2 New FeaturesMariaDB 10.2 New Features
MariaDB 10.2 New Features
 
PERFORMANCE_SCHEMA and sys schema
PERFORMANCE_SCHEMA and sys schemaPERFORMANCE_SCHEMA and sys schema
PERFORMANCE_SCHEMA and sys schema
 
MySQL für Oracle DBA's
MySQL für Oracle DBA'sMySQL für Oracle DBA's
MySQL für Oracle DBA's
 
MySQL Backup/Recovery
MySQL Backup/RecoveryMySQL Backup/Recovery
MySQL Backup/Recovery
 
MySQL Beispiele aus der Praxis - Wie setzen Kunden MySQL ein?
MySQL Beispiele aus der Praxis - Wie setzen Kunden MySQL ein?MySQL Beispiele aus der Praxis - Wie setzen Kunden MySQL ein?
MySQL Beispiele aus der Praxis - Wie setzen Kunden MySQL ein?
 
MySQL-Server im Teamwork - Replikation und Cluster
MySQL-Server im Teamwork - Replikation und ClusterMySQL-Server im Teamwork - Replikation und Cluster
MySQL-Server im Teamwork - Replikation und Cluster
 
Der Datenbank-Backup ist gemacht - was nun?
Der Datenbank-Backup ist gemacht - was nun?Der Datenbank-Backup ist gemacht - was nun?
Der Datenbank-Backup ist gemacht - was nun?
 
Weltweite Produktionsdatenverwaltung mit MySQL-Replikation
Weltweite Produktionsdatenverwaltung mit MySQL-ReplikationWeltweite Produktionsdatenverwaltung mit MySQL-Replikation
Weltweite Produktionsdatenverwaltung mit MySQL-Replikation
 
MySQL Performance Tuning für Oracle-DBA's
MySQL Performance Tuning für Oracle-DBA'sMySQL Performance Tuning für Oracle-DBA's
MySQL Performance Tuning für Oracle-DBA's
 
MySQL Security SLAC 2015
MySQL Security SLAC 2015MySQL Security SLAC 2015
MySQL Security SLAC 2015
 
MySQL Performance Tuning für Entwickler
MySQL Performance Tuning für EntwicklerMySQL Performance Tuning für Entwickler
MySQL Performance Tuning für Entwickler
 
MySQL Replikation - Die Eier legende Wollmilchsau?
MySQL Replikation - Die Eier legende Wollmilchsau?MySQL Replikation - Die Eier legende Wollmilchsau?
MySQL Replikation - Die Eier legende Wollmilchsau?
 
Reading MySQL fingerprints
Reading MySQL fingerprintsReading MySQL fingerprints
Reading MySQL fingerprints
 
High-availability with Galera Cluster for MySQL
High-availability with Galera Cluster for MySQLHigh-availability with Galera Cluster for MySQL
High-availability with Galera Cluster for MySQL
 
MySQL always-up with Galera Cluster
MySQL always-up with Galera ClusterMySQL always-up with Galera Cluster
MySQL always-up with Galera Cluster
 

Dernier

ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 

Dernier (20)

ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 

MySQL configuration - The most important Variables

  • 1. MySQL Konfiguration - die wichtigsten Parameter DOAG SIG MySQL – Performance 13. März 2012, Wiesbaden Oli Sennhauser Senior MySQL Consultant, FromDual GmbH oli.sennhauser@fromdual.com www.fromdual.com 1
  • 2. FromDual GmbH ● FromDual bietet neutral und unabhängig: ● Beratung für MySQL ● Support für MySQL und Galera Cluster ● Remote-DBA / MySQL Betrieb ● Schulung für MySQL ● Oracle Silber Partner (OPN) www.fromdual.com www.fromdual.com 2
  • 3. Kunden www.fromdual.com 3
  • 4. Inhalt MySQL Konfiguration ➢ FromDual Perfromance Waage ➢ The Big 9! ➢ InnoDB ➢ MyISAM ➢ MySQL ➢ Weitere Parameter www.fromdual.com 4
  • 6. MySQL Tuning ● Welche Storage Engine verwendet Ihr zur Zeit? ● Welchen MySQL Release? (→ 5.1 und neuer) ● Zur Zeit: ca. 330 MySQL Parameter → aber nur ca. 8 (9) davon sind signifikant! → Grob-Tuning ● Alle anderen nur nach ausführlichem Benchmarken → Fine-Tuning www.fromdual.com 6
  • 7. MySQL Architektur Applikation / Client Thread Connection mysqld Cache Manager Parser Optimizer User Au- thentication Access Control Command Table Open Logging Dispatcher Cache (.frm, fh) Table Manager Query Query Cache Table Definition Cache Module Cache (tbl def.) Handler Interface MyISAM InnoDB Memory NDB PBMS Aria XtraDB Federated-X ... www.fromdual.com 7
  • 8. Bevor wir anfangen! ● Kunde fragt mich: Kann mein System 30% mehr Last vertragen? ● Chemische Verfahrenstechnik: ● Gibt es Unterschiede zu eine DB basierten System? ● Was brauche ich um diese Frage zu beantworten? www.fromdual.com 8
  • 9. Messen, messen, messen... ● Messen! ● Idealfall: Nur ein Parameter aufs mal ändern! www.fromdual.com 9
  • 10. The big 9! ● InnoDB: 5 ● InnoDB Buffer Pool: 2 ● InnoDB Log File: 3 ● MyISAM: 1 ● Key Buffer: 1 ● MySQL: 3 ● Query Cache: 1 ● Table_*_cache: 2 www.fromdual.com 10
  • 11. InnoDB Buffer Pool ● InnoDB cached: Daten UND Indizes ● Grösse: innodb_buffer_pool_size ● in Byte (M, G) ● Pages à 16k (5.6: 4k, 8k, 16k) ● Repräsentation der Platte im FS Cache Speicher: ● Ca. 80% vom RAM auf dedizier- ter InnoDB Maschine www.fromdual.com 11
  • 12. InnoDB Buffer Pool Informationen ● Messen: SHOW GLOBAL STATUS LIKE 'innodb_buffer_pool_pages%'; +­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­­­­+ | Variable_name                    | Value    | +­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­­­­+ | Innodb_buffer_pool_pages_data    | 9175     | | Innodb_buffer_pool_pages_misc    | 40       | + | Innodb_buffer_pool_pages_free    | 1024     | + | Innodb_buffer_pool_pages_total   | 10239    | = | Innodb_buffer_pool_pages_dirty   | 289      | 3.1% | Innodb_buffer_pool_pages_data    | 9175     | +­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­­­­+ www.fromdual.com 12
  • 13. InnoDB Buffer Pool ● Buffer Pool Hit Ratio: read_requests / (read_requests + reads) * 100 = 99.9% SHOW GLOBAL STATUS LIKE 'innodb_buffer_pool%'; +­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­­­­­­­+ | Variable_name                         | Value       | +­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­­­­­­­+ | Innodb_buffer_pool_read_requests      | 1507235721  | | Innodb_buffer_pool_reads              | 1193121     | | Innodb_buffer_pool_wait_free          | 5           | +­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­­­­­­­+ www.fromdual.com 13
  • 14. InnoDB Buffer Pool von InnoDB Status SHOW ENGINE INNODB STATUSG ­­­­­­­­­­­­­­­­­­­­­­ BUFFER POOL AND MEMORY ­­­­­­­­­­­­­­­­­­­­­­ Total memory allocated 171704320 Dictionary memory allocated 2473598 Buffer pool size   10239 Free buffers       1024 Database pages     9185 Old database pages 3370 Modified db pages  812 Pending reads 0 Pending writes: LRU 0, flush list 0 single page 0 Pages made young 1768431, not young 0 1.00 youngs/s, 0.00 non­youngs/s Pages read 1197328, created 215334, written 22307309 1.00 reads/s, 1.00 creates/s, 0.00 writes/s Buffer pool hit rate 1000 / 1000, young­making rate 0 / 1000 not 0 / 1000 Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s LRU len: 9185, unzip_LRU len: 0 I/O sum[3125]:cur[2], unzip sum[0]:cur[0] www.fromdual.com 14
  • 15. InnoDB Buffer Pool Monitoring ● Es ist wünschenswert, aber meist illusorisch, alle Daten im RAM zu halten! www.fromdual.com 15
  • 16. InnoDB Buffer Pool Monitoring ● Einfluss von Partitionierung auf den InnoDB Buffer Pool: www.fromdual.com 16
  • 17. InnoDB Buffer Pool Instanzen ● InnoDB Buffer Pool Instanzen! ● Neu mit MySQL 5.5 ● Bei sehr viel RAM ● Bei hoher Concurrency → Locks auf Buffer Pool Verwaltungsstruktur → Eigene Free List, Flust List, LRU List, Buffer Pool Mutex, etc. ● Hash-Verteilung (random?) ● innodb_buffer_pool_instances ● Sinnvoll ab 2 Gb ● min. 1 Gb pro Instanz ● max. #cores www.fromdual.com 17
  • 18. InnoDB Log File ● innodb_flush_log_at_trx_commit ● 0, 2 für Performance, 1 für Sicherheit – 0: 1/s + fsync – 1: COMMIT + fsync FS Cache – 2: COMMIT + 1/s fsync ● innodb_log_file_size ● Grösser = schneller, aber längere Recovery Zeiten → 2 x 256 M ● sync_binlog ● != 0 → langsam(er) www.fromdual.com 18
  • 19. InnoDB Log File Information SHOW ENGINE INNODB STATUSG ­­­ LOG ­­­ Log sequence number 404010398185 ­ Log flushed up to   404010198753 = 199432 byte log buffer Log flushed up to   404010198753 ­ Last checkpoint at  404010110312 =  88441 byte log file 0 pending log writes, 0 pending chkp writes 152844 log i/o's done, 0.50 log i/o's/second SHOW GLOBAL STATUS LIKE 'innodb_os_log_%'; +­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­­­­­­­+ | Variable_name                | Value       | +­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­­­­­­­+ | Innodb_os_log_fsyncs         | 153643      | | Innodb_os_log_pending_fsyncs | 0           | | Innodb_os_log_pending_writes | 0           | +­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­­­­­­­+ www.fromdual.com 19
  • 20. InnoDB Log File Monitoring www.fromdual.com 20
  • 21. MyISAM Key Buffer ● MyISAM cached nur Indizes! → Key Buffer → Daten: File System Cache ● key_buffer_size ● ca. 25 – 33% vom RAM auf dedizierter Maschine ● ca. 67 – 75% vom RAM für File System Cache ● Üblicherweise 1k pages www.fromdual.com 21
  • 22. MyISAM Key Buffer Information ● Key Buffer Hit Ratio: read_requests / (read_requests + reads) x 100 ● Key_blocks_used: High Water Mark! SHOW GLOBAL STATUS LIKE 'key%'; +­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­­+ | Variable_name          | Value  | +­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­­+ | Key_blocks_not_flushed | 0      | | Key_blocks_unused      | 1674   | | Key_blocks_used        | 9      | | Key_read_requests      | 130434 | | Key_reads              | 0      | +­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­­+ shell> free              total       used       free     shared    buffers     cached Mem:      16431960    6190408   10241552          0     408832    1719944 www.fromdual.com 22
  • 23. MyISAM Monitoring ● Key Buffer mehr als genügend gross! www.fromdual.com 23
  • 24. Query Cache ● Cached SELECT Queries ● Hash, Tabellen, Resultat ● Performance Booster bei: ● Lesen >> Schreiben ● Geringer Concurrency ● query_cache_size / query_cache_type ● Nicht zu gross machen (<= 128 M) ● Bei sehr hoher Concurrency schädlich! ● Global Query Cache Mutex www.fromdual.com 24
  • 25. Query Cache Informationen ● Schlechtes Hits / Inserts Verhältnis: ● Ist: 0.26, Soll: >= 1.2 ● Insert: 10 – 20 % Overhead ● Query Cache Hit Ratio: 16.9% ● Qcache_hits / (Com_select + Qcache_hits) x 100 SHOW GLOBAL STATUS LIKE 'qcache%'; +­­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­­­+ | Variable_name           | Value   | +­­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­­­+ | Com_select              | 5049720 | | Qcache_free_memory      | 1995376 | | Qcache_hits             | 1026597 | | Qcache_inserts          | 3911380 | | Qcache_lowmem_prunes    | 2529208 | | Qcache_not_cached       | 1138305 | | Qcache_queries_in_cache | 1357    | www.fromdual.com 25 +­­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­­­+
  • 26. Query Cache Monitoring ● Um xx:25 macht „jemand“ den Query Cache „kaputt“: www.fromdual.com 26
  • 27. MySQL Parameter ● table_open_cache ● Cached File Handles ● Laufende Connections x be- nutze Tabellen → 2 – 4k ist nicht ungewöhn- lich! ● Wenn zu klein → massive Performance-Probleme! ● Hat Einfluss auf open-files-limit! ● table_definition_cache ● Cached .frm File (Tabellenstruktur) ● 512 – 4096 ist nicht ungewöhnlich! www.fromdual.com 27
  • 28. MySQL Parameter Informationen SHOW GLOBAL STATUS LIKE 'open%table%s'; +­­­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­+ | Variable_name            | Value | +­­­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­+ | Open_table_definitions   | 100   | | Open_tables              | 102   | | Opened_table_definitions | 100   | | Opened_tables            | 109   | +­­­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­+ SHOW GLOBAL STATUS LIKE 'open%table%s'; +­­­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­­­­+ | Variable_name            | Value    | +­­­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­­­­+ | Open_table_definitions   | 67321    | | Open_tables              | 131023   | | Opened_table_definitions | 6177337  | | Opened_tables            | 12489056 | +­­­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­­­­+ SHOW OPEN TABLES; +­­­­­­­­­­­­­­­­­­­­+­­­­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­­+­­­­­­­­­­­­­+ | Database           | Table                     | In_use | Name_locked | +­­­­­­­­­­­­­­­­­­­­+­­­­­­­­­­­­­­­­­­­­­­­­­­­+­­­­­­­­+­­­­­­­­­­­­­+ | crm                | saved_search              |      0 |           0 | | zabbix             | users                     |      0 |           0 | ... www.fromdual.com 28
  • 29. MySQL Parameter Monitoring www.fromdual.com 29
  • 30. Weitere InnoDB Parameter ● Viele Neuerungen mit MySQL 5.5 und 5.6! ● InnoDB Log File / Buffer: ● innodb_log_group_home_dir = ./ ● Default datadir ● Trennen von sequentiellem I/O und random I/O ● innodb_log_buffer_size = 8M ● Für grosse Transaktionen ● Innodb_log_waits > 0 www.fromdual.com 30
  • 31. Weitere InnoDB Parameter ● innodb_file_per_table = 1 ● 1 grosses Sytem TS File vs. ● 1 kleines System TS File + 1 File pro Tabelle ● Vorteil: Diskplatz wird wieder freigegeben ● innodb_data_home_dir ● Default datadir ● Splitten von random I/O auf Daten und sequential I/O auf Log Files ● innodb_data_file_path = ibdata1:10M:autoextend ● innodb_autoextend_increment = 8 ● Achtung: 8 Mbyte!!! ● Gilt nur für System TS File ● innodb_file_format = Antelope ● Default (= alt) ● Barracuda ermöglicht File compression www.fromdual.com 31
  • 32. Weitere InnoDB Parameter ● innodb_flush_method = data files log files ● Ausprobieren! open flush open flush default normal fsync normal fsync ● O_DSYNC O_SYNC fsync O_SYNC O_SYNC O_DIRECT O_DIRECT fsync normal fsync ● innodb_io_capacity = 200 ● Raid-1/10 #Disks / 2 x 200 ● innodb_read_io_threads = 4 ● innodb_write_io_threads = 4 ● Pending reads > innodb_read_io_threads x 64 ● Pending writes ● innodb_use_native_aio = 1 ● Linux und Windows ● Pending reads / writes www.fromdual.com 32
  • 33. Weitere MySQL Parameter ● thread_cache_size    =    8 ● tmp_table_size       =   16M ● max_heap_table_size  =   16M ● max_connections      =  151 ● max_user_connections =    0 ● open_files_limit     = 1024 www.fromdual.com 33
  • 34. Weitere MySQL Parameter ● join_buffer_size       = 128k ­­>  8M ● read_buffer_size       = 128k ­­>  2M ● read_rnd_buffer_size   = 256k ­­> 16M ● sort_buffer_size       = 256k ­­>  8M ● binlog_format          = ROW ● binlog_cache_size      = 32k ­­> 1M ● binlog_stmt_cache_size = 32k ­­> 1M ● binlog_row_image       = FULL www.fromdual.com 34
  • 35. Weitere MySQL Parameter ● datadir                    = /var/lib/mysql/ ● default_storage_engine     = InnoDB ● default_tmp_storage_engine = InnoDB ● innodb_old_blocks_pct      = 37 ● innodb_old_blocks_time     = 0  ­­> 500? ● key_cache_age_threshold    = 300 ● key_cache_division_limit   = 100 ­­> 63? www.fromdual.com 35
  • 36. Weitere MySQL Parameter ● long_query_time          = 10.000000 ­­> 0.5? ● slow_query_log           = OFF ­­> 1 ● slow_query_log_file      = /var/lib/mysql/slow.log ● optimizer_switch         = index_merge=on, index_merge_union=on,index_merge_sort_union=on ● optimizer_trace          = enabled=off,end_marker=off, one_line=off ● optimizer_trace_features = greedy_search=on, range_optimizer=on,dynamic_range=on,repeated ● performance_schema       = ON www.fromdual.com 36
  • 37. Weitere Hilfe ● Wie messen? ● SHOW GLOBAL STATUS; ● SHOW ENGINE INNODB STATUSG ● ca. 330 Variablen ● ca. 310 Status Informationen ● MySQL Database Health Check: ● http://www.fromdual.com/mysql-database-health-check ● MySQL Doku, Server Status Variablen: http://dev.mysql.com/doc/refman/5.5/en/server-status-variables.html ● MySQL Performance Monitor: ● http://www.fromdual.ch/mysql-performance-monitor ● Auch als Monitoring as a Service (MaaS) Angebot! www.fromdual.com 37
  • 38. Q&A Fragen ? Diskussion? Wir haben noch Zeit für persönliche und indviduelle Beratung und bieten Support, Schulung und Betrieb für MySQL www.fromdual.com 38