~/talk

The Low Hanging Fruits of MySQL

Talkat Percona Community Live 2022 · 2022-06-21..06-23· [databases]
links:none on file
slides:none on file

Tune InnoDB buffer pool to 75–80% memory, split it with buffer_pool_instances to avoid mutex contention, and use O_DIRECT with large innodb_log_file_size (even up to buffer pool size) plus increased innodb_log_buffer_size for big transactions. Drop query cache, set log_output=FILE, raise table_open_cache, reduce swappiness to 1 and use noatime/noop. Protect MySQL from OOM with oom_score_adj -800. Prefer InnoDB with primary keys, short unsigned integers, properly ordered composite and covering indexes. Use pt-online-schema-change and pt-query-digest, run PMM monitoring, test backups and restores, and enable RDS/Aurora parameter groups, multi-AZ, encryption and backtrack.

AI-written summary · about

  1. 0:00Introduction
  2. 1:25Overview
  3. 2:05Common Knowledge
  4. 4:05Agenda
  5. 5:12MySQL Configuration
  6. 7:12RBflush
  7. 9:58IODB
  8. 12:17Table Cache
  9. 15:47Out of Memory
  10. 18:00How to Avoid Out of Memory
  11. 20:05Database Design
  12. 23:56Secondary Keys
  13. 27:36Querying
  14. 30:38Replication
  15. 33:56Backup
  16. 35:50Business Objectives
  17. 36:57Backups
  18. 38:32Percona Tools
  19. 41:47PMM
  20. 45:33Conclusions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.