MYSQL   --------
keynote••                 (       )••                     ,    keynote   ,
mysql               yoursql?• percona server• mariadb• drizzle•          oracle’s sql(MYSQL 5.5)
MYISAM•                      MYISAM ,    OA• MYISAM           ,• INNODB   MYSQL
innodb 1.1•    innodb 1.1,MYSQL               5.5•                        ,          MYSQL 5.1          innodb 1.0 (      ...
•            double write,•                            ,         ,            (          db    ?)
•      log,          table space,    WAL,• fuzzy checkpoint                  ,                    table space•    log     ...
(   MYSQL)
innodb_buffer_pool_size• buffer_pool          80%• insert buffer,   ,
innodb_additional_mem_pool_size•     buffer_pool           200:1,    buffer_pool 200M,                      1M.•          ...
innodb_log_file_size•                ,         ,•            ,       ,   ,1G    10
innodb_log_buffer_size•             ,           ,   ,   ,log    buffer        ....•         ,          ..           (      )
innodb_adaptive_flushing•       flush        ,   redo log               flush• percona                              ,        ...
innodb_max_dirty_pages_pct• google           80•          80% buffer pool,        flush  dirty page table space• adaptive fl...
innodb_flush_method• default(fsync),O_DIRECT,O_DSYNC• fsync linux API,        man• O_DIRECT O_DSYNC open                 , ...
innodb_flush_log_at_trx_commit•           0,1,2,•0   ACID•1     ,        ACID•2   ACID(           ,           )
innodb_io_capacity•         100        ,•           ,                500   ,                X,       ,
innodb_support_xa•                        slave•       binlog   MYSQL•         N        (             )
adaptive hash               ,       ?• ,               ....• innodb                 ,   B+   ,           hash• hash       ...
,   X•••   ,   ...
?• ( explain                   )• flash cache(             )•          (          )• CPU         (               )•        ...
?•   ,   DBA•        ,
Mysql若干参数
Mysql若干参数
Mysql若干参数
Upcoming SlideShare
Loading in...5
×

Mysql若干参数

1,944

Published on

珠三角技术沙龙深圳小沙龙4月份活动小路主题

Published in: Technology, Business
0 Comments
9 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,944
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
130
Comments
0
Likes
9
Embeds 0
No embeds

No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Mysql若干参数

    1. 1. MYSQL --------
    2. 2. keynote•• ( )•• , keynote ,
    3. 3. mysql yoursql?• percona server• mariadb• drizzle• oracle’s sql(MYSQL 5.5)
    4. 4. MYISAM• MYISAM , OA• MYISAM ,• INNODB MYSQL
    5. 5. innodb 1.1• innodb 1.1,MYSQL 5.5• , MYSQL 5.1 innodb 1.0 ( 1.04 , )
    6. 6. • double write,• , , ( db ?)
    7. 7. • log, table space, WAL,• fuzzy checkpoint , table space• log log buffer, , IO IO
    8. 8. ( MYSQL)
    9. 9. innodb_buffer_pool_size• buffer_pool 80%• insert buffer, ,
    10. 10. innodb_additional_mem_pool_size• buffer_pool 200:1, buffer_pool 200M, 1M.• hash meta LRU
    11. 11. innodb_log_file_size• , ,• , , ,1G 10
    12. 12. innodb_log_buffer_size• , , , ,log buffer ....• , .. ( )
    13. 13. innodb_adaptive_flushing• flush , redo log flush• percona , .. .. !
    14. 14. innodb_max_dirty_pages_pct• google 80• 80% buffer pool, flush dirty page table space• adaptive flush ,fuzzy checkpoint
    15. 15. innodb_flush_method• default(fsync),O_DIRECT,O_DSYNC• fsync linux API, man• O_DIRECT O_DSYNC open , man• MYISAM , OS buffer , ....INNODB
    16. 16. innodb_flush_log_at_trx_commit• 0,1,2,•0 ACID•1 , ACID•2 ACID( , )
    17. 17. innodb_io_capacity• 100 ,• , 500 , X, ,
    18. 18. innodb_support_xa• slave• binlog MYSQL• N ( )
    19. 19. adaptive hash , ?• , ....• innodb , B+ , hash• hash ,
    20. 20. , X••• , ...
    21. 21. ?• ( explain )• flash cache( )• ( )• CPU ( )• , DB( )
    22. 22. ?• , DBA• ,
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×