SlideShare a Scribd company logo
5 things you need to know about MySQL (if you don’t have a DBA) sarah novotny –  [email_address] MySQL and LAMP services www .BlueGecko . net
changing ecosystem versions storage engines and locking backups scaling free tools www .BlueGecko . net
changing ecosystem MySQL -> Sun -> Oracle Monty Program AB OpenDB Alliance www .BlueGecko . net
www .BlueGecko . net
versions 5.0 – stable.  (do i need to say more?) 5.1 – fresh feature set   –  many open bugs   –  partitioning   –  row base replication   –  mysqlslap 5.4 – 5.1 ++ google patches  –  scalability improvements -> multicore  –  enhanced monitoring / diagnostic  –  sane defaults for my.cnf out of the box  www .BlueGecko . net
www .BlueGecko . net
a short diversion from High Performance  MySQL 2 nd  Edition  (HPM2e) -Baron Schwartz, Peter Zaitsev,  Vadim Tkachenko, and Jeremy  Zawodny (don’t mistake 1 st  Edition for 2 nd.   1 st  is dangerously out of date  unless you’re running version 4.0) www .BlueGecko . net
storage engines innodb myisam merge blackhole archive federated www .BlueGecko . net
and locking innodb myisam www .BlueGecko . net
and locking www .BlueGecko . net
backups take them and test a restore www .BlueGecko . net
backups mysqldump is not always a valid backup replication is easiest  (and it gets you a warm standby) InnoDB hot backup XtraBackup mylvmbackup www .BlueGecko . net
backups www .BlueGecko . net
scale when it’s time to go big, what are the options? separate reads  from writes www .BlueGecko . net
scale write 1 / read many partitioning / sharding multimaster / rings memcached  wafflegrid www .BlueGecko . net
another short diversion to swap or not  to swap that is the  question www .BlueGecko . net
free tools Innotop maatkit MySQL proxy monitoring/trending cacti templates $monitoring_server   –  the one you know www .BlueGecko . net
additional resources irc.freenode.org #mysql #maatkit mysql.com HPM2e - Baron Schwartz, Peter Zaitsev, Vadim Tkachenko, and Jeremy Zawodny www .BlueGecko . net
credits flickr Make: biosphere  - kevino MySQL mints - jimwinstead 5 – losmininos storage- shuttercat7 clones - adactio Bell Labs - sodapop81 License plate - severud tools – meanestindian console - hermzz other swap image http://www.vocw.edu.vn/content/m10106/latest/ special thanks to mike hamrick for suggestions on content and slides www .BlueGecko . net
Blue Gecko and contact info [email_address] [email_address] @sarahnovotny @bluegeckodba senk on #mysql www .BlueGecko . net Blue Gecko provides Remote DBA services for companies around the world  7x24x365 support including monitoring, performance analysis, proactive maintenance and architectural guidance for small and large datasets.

More Related Content

What's hot (20)

PDF
Happy Browser, Happy User! WordSesh 2019
Katie Sylor-Miller
 
PDF
Mongo performance tuning: tips and tricks
Vladimir Malyk
 
PDF
Engage 2013 - Multi Channel Data Collection
Webtrends
 
PDF
Backing up thousands of containers
Marian Marinov
 
PPTX
Managing and Scaling Puppet - PuppetConf 2014
Puppet
 
PDF
Nginx: Accelerate Rails, HTTP Tricks
Adam Wiggins
 
PPTX
Managing and Scaling Puppet - PuppetConf 2014
Miguel Zuniga
 
PPTX
Reverse proxy & web cache with NGINX, HAProxy and Varnish
El Mahdi Benzekri
 
PPTX
Александр Сергиенко, Senior Android Developer, DataArt
Alina Vilk
 
PDF
From One to a Cluster
guestd34230
 
PDF
Rihards Olups - Zabbix 3.0: Excited for new features?
Zabbix
 
PPT
High Performance Wordpress: “Faster, Cheaper, Easier : Pick Three”
Valent Mustamin
 
PDF
WordPress Need For Speed
pdeschen
 
PDF
Scaling WordPress
Mark Jaquith
 
PDF
Phorum MySQL tricks
guestd34230
 
PPTX
Usenix LISA 2012 - Choosing a Proxy
Leif Hedstrom
 
PPTX
Xdebug, KCacheGrind and Webgrind with WampServer
Mediovski Technology
 
PDF
Care and feeding notes
Perrin Harkins
 
PDF
Screaming Fast Wpmu
djcp
 
PDF
Event Driven Architecture Concepts in Web Technologies - Part 1
Hamidreza Soleimani
 
Happy Browser, Happy User! WordSesh 2019
Katie Sylor-Miller
 
Mongo performance tuning: tips and tricks
Vladimir Malyk
 
Engage 2013 - Multi Channel Data Collection
Webtrends
 
Backing up thousands of containers
Marian Marinov
 
Managing and Scaling Puppet - PuppetConf 2014
Puppet
 
Nginx: Accelerate Rails, HTTP Tricks
Adam Wiggins
 
Managing and Scaling Puppet - PuppetConf 2014
Miguel Zuniga
 
Reverse proxy & web cache with NGINX, HAProxy and Varnish
El Mahdi Benzekri
 
Александр Сергиенко, Senior Android Developer, DataArt
Alina Vilk
 
From One to a Cluster
guestd34230
 
Rihards Olups - Zabbix 3.0: Excited for new features?
Zabbix
 
High Performance Wordpress: “Faster, Cheaper, Easier : Pick Three”
Valent Mustamin
 
WordPress Need For Speed
pdeschen
 
Scaling WordPress
Mark Jaquith
 
Phorum MySQL tricks
guestd34230
 
Usenix LISA 2012 - Choosing a Proxy
Leif Hedstrom
 
Xdebug, KCacheGrind and Webgrind with WampServer
Mediovski Technology
 
Care and feeding notes
Perrin Harkins
 
Screaming Fast Wpmu
djcp
 
Event Driven Architecture Concepts in Web Technologies - Part 1
Hamidreza Soleimani
 

Viewers also liked (20)

PDF
Message Queues : A Primer - International PHP Conference Fall 2012
Mike Willbanks
 
PPTX
Wiki Technology By It Rocks
naveenv
 
PPTX
What do you do when facing unfamiliar challenge?
Clint Walters
 
PPT
Cpmarativesquiz2
lola guillen
 
PPT
Schoolobjects
lola guillen
 
PDF
Come fare un Pitch a Innova Day
Francesco Baruffi
 
KEY
Thanksgiving Poem
Glenn Kenyon
 
PDF
Rwservlet
Haas Colby
 
PDF
Co jsme se naučili od spuštění Fakturoidu
jan korbel
 
PPT
Power Point Polmoni
mapaa
 
PDF
Innova day motorsporttech_eng_b
Francesco Baruffi
 
PDF
Startup_10_Mosse_140215
Francesco Baruffi
 
PPT
Success Magazine
payitearly
 
PDF
Unit 2
lola guillen
 
PPT
Unidad 4
lola guillen
 
PPT
Marriott Miami Airport Campus Updated
dlopez9
 
PPTX
Plc day ppt
klindholm
 
PPT
Les 2 Informatieverzorging
Mediena Business School
 
PPT
you know databases, how hard can MySQL be?
sarahnovotny
 
Message Queues : A Primer - International PHP Conference Fall 2012
Mike Willbanks
 
Wiki Technology By It Rocks
naveenv
 
What do you do when facing unfamiliar challenge?
Clint Walters
 
Cpmarativesquiz2
lola guillen
 
Schoolobjects
lola guillen
 
Come fare un Pitch a Innova Day
Francesco Baruffi
 
Thanksgiving Poem
Glenn Kenyon
 
Rwservlet
Haas Colby
 
Co jsme se naučili od spuštění Fakturoidu
jan korbel
 
Power Point Polmoni
mapaa
 
Innova day motorsporttech_eng_b
Francesco Baruffi
 
Startup_10_Mosse_140215
Francesco Baruffi
 
Success Magazine
payitearly
 
Unit 2
lola guillen
 
Unidad 4
lola guillen
 
Marriott Miami Airport Campus Updated
dlopez9
 
Plc day ppt
klindholm
 
Les 2 Informatieverzorging
Mediena Business School
 
you know databases, how hard can MySQL be?
sarahnovotny
 
Ad

Similar to 5 things MySql (20)

PDF
MySQL Scalability and Reliability for Replicated Environment
Jean-François Gagné
 
PDF
MariaDB 5.5 and what comes next - Percona Live NYC 2012
Colin Charles
 
PPT
Maria db the new mysql (Colin Charles)
Ontico
 
PPT
Planning For High Performance Web Application
Yue Tian
 
ODP
Caching and tuning fun for high scalability
Wim Godden
 
PDF
DrupalCampLA 2011: Drupal backend-performance
Ashok Modi
 
PDF
Exploring mysql cluster 7.4
Ivan Ma
 
ODP
MySQL Monitoring Shoot Out
Kris Buytaert
 
PPTX
MariaDB Galera Cluster
Abdul Manaf
 
PPTX
Maria DB Galera Cluster for High Availability
OSSCube
 
PDF
MySQL Scalability and Reliability for Replicated Environment
Jean-François Gagné
 
PDF
A26 MariaDB : The New&Implemented MySQL Branch by Colin Charles
Insight Technology, Inc.
 
PDF
MySQL InnoDB Cluster - New Features in 8.0 Releases - Best Practices
Kenny Gryp
 
PPT
Oreilly Webcast Jan 09, 2009
Sean Hull
 
PDF
MySQL Group Replication
Bogdan Kecman
 
ODP
Caching and tuning fun for high scalability @ FrOSCon 2011
Wim Godden
 
ODP
MySQL 101 PHPTek 2017
Dave Stokes
 
PPTX
Planning to Fail #phpne13
Dave Gardner
 
ODP
Drupal Efficiency using open source technologies from Sun
smattoon
 
PDF
Drupal Performance : DrupalCamp North
Philip Norton
 
MySQL Scalability and Reliability for Replicated Environment
Jean-François Gagné
 
MariaDB 5.5 and what comes next - Percona Live NYC 2012
Colin Charles
 
Maria db the new mysql (Colin Charles)
Ontico
 
Planning For High Performance Web Application
Yue Tian
 
Caching and tuning fun for high scalability
Wim Godden
 
DrupalCampLA 2011: Drupal backend-performance
Ashok Modi
 
Exploring mysql cluster 7.4
Ivan Ma
 
MySQL Monitoring Shoot Out
Kris Buytaert
 
MariaDB Galera Cluster
Abdul Manaf
 
Maria DB Galera Cluster for High Availability
OSSCube
 
MySQL Scalability and Reliability for Replicated Environment
Jean-François Gagné
 
A26 MariaDB : The New&Implemented MySQL Branch by Colin Charles
Insight Technology, Inc.
 
MySQL InnoDB Cluster - New Features in 8.0 Releases - Best Practices
Kenny Gryp
 
Oreilly Webcast Jan 09, 2009
Sean Hull
 
MySQL Group Replication
Bogdan Kecman
 
Caching and tuning fun for high scalability @ FrOSCon 2011
Wim Godden
 
MySQL 101 PHPTek 2017
Dave Stokes
 
Planning to Fail #phpne13
Dave Gardner
 
Drupal Efficiency using open source technologies from Sun
smattoon
 
Drupal Performance : DrupalCamp North
Philip Norton
 
Ad

More from sarahnovotny (13)

PPTX
Interconnecting containers at scale #Dockercon
sarahnovotny
 
PPTX
NGINX 101 - now with more Docker
sarahnovotny
 
PPTX
5 things you didn't know nginx could do velocity
sarahnovotny
 
PPTX
5 things you didn't know nginx could do
sarahnovotny
 
PDF
Building a Learning Culture
sarahnovotny
 
PPTX
0 to enterprise
sarahnovotny
 
PPTX
Lessons Learned and Best Practices for Game Development in the Cloud
sarahnovotny
 
PDF
under the covers -- chef in 20 minutes or less
sarahnovotny
 
PPTX
people hacking: opensource biz etiquette
sarahnovotny
 
PDF
IRL: How Geeks Undermine Their Presentations & Conversations With Body Language
sarahnovotny
 
PPTX
geek_lifestyle
sarahnovotny
 
PPT
nursing for future transhumanist
sarahnovotny
 
PDF
IGNITE MySQL - Backups Don't Make Me Money
sarahnovotny
 
Interconnecting containers at scale #Dockercon
sarahnovotny
 
NGINX 101 - now with more Docker
sarahnovotny
 
5 things you didn't know nginx could do velocity
sarahnovotny
 
5 things you didn't know nginx could do
sarahnovotny
 
Building a Learning Culture
sarahnovotny
 
0 to enterprise
sarahnovotny
 
Lessons Learned and Best Practices for Game Development in the Cloud
sarahnovotny
 
under the covers -- chef in 20 minutes or less
sarahnovotny
 
people hacking: opensource biz etiquette
sarahnovotny
 
IRL: How Geeks Undermine Their Presentations & Conversations With Body Language
sarahnovotny
 
geek_lifestyle
sarahnovotny
 
nursing for future transhumanist
sarahnovotny
 
IGNITE MySQL - Backups Don't Make Me Money
sarahnovotny
 

Recently uploaded (20)

PDF
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
PDF
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PDF
The Future of Artificial Intelligence (AI)
Mukul
 
PPTX
AI Code Generation Risks (Ramkumar Dilli, CIO, Myridius)
Priyanka Aash
 
PDF
Per Axbom: The spectacular lies of maps
Nexer Digital
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PPTX
Agentic AI in Healthcare Driving the Next Wave of Digital Transformation
danielle hunter
 
PPTX
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
PDF
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
PPTX
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
PDF
Researching The Best Chat SDK Providers in 2025
Ray Fields
 
PPTX
AVL ( audio, visuals or led ), technology.
Rajeshwri Panchal
 
PDF
NewMind AI Weekly Chronicles – July’25, Week III
NewMind AI
 
PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
PDF
Brief History of Internet - Early Days of Internet
sutharharshit158
 
PPTX
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
PPTX
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
The Future of Artificial Intelligence (AI)
Mukul
 
AI Code Generation Risks (Ramkumar Dilli, CIO, Myridius)
Priyanka Aash
 
Per Axbom: The spectacular lies of maps
Nexer Digital
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
Agentic AI in Healthcare Driving the Next Wave of Digital Transformation
danielle hunter
 
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
Researching The Best Chat SDK Providers in 2025
Ray Fields
 
AVL ( audio, visuals or led ), technology.
Rajeshwri Panchal
 
NewMind AI Weekly Chronicles – July’25, Week III
NewMind AI
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
Brief History of Internet - Early Days of Internet
sutharharshit158
 
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 

5 things MySql

  • 1. 5 things you need to know about MySQL (if you don’t have a DBA) sarah novotny – [email_address] MySQL and LAMP services www .BlueGecko . net
  • 2. changing ecosystem versions storage engines and locking backups scaling free tools www .BlueGecko . net
  • 3. changing ecosystem MySQL -> Sun -> Oracle Monty Program AB OpenDB Alliance www .BlueGecko . net
  • 5. versions 5.0 – stable. (do i need to say more?) 5.1 – fresh feature set – many open bugs – partitioning – row base replication – mysqlslap 5.4 – 5.1 ++ google patches – scalability improvements -> multicore – enhanced monitoring / diagnostic – sane defaults for my.cnf out of the box www .BlueGecko . net
  • 7. a short diversion from High Performance MySQL 2 nd Edition (HPM2e) -Baron Schwartz, Peter Zaitsev, Vadim Tkachenko, and Jeremy Zawodny (don’t mistake 1 st Edition for 2 nd. 1 st is dangerously out of date unless you’re running version 4.0) www .BlueGecko . net
  • 8. storage engines innodb myisam merge blackhole archive federated www .BlueGecko . net
  • 9. and locking innodb myisam www .BlueGecko . net
  • 10. and locking www .BlueGecko . net
  • 11. backups take them and test a restore www .BlueGecko . net
  • 12. backups mysqldump is not always a valid backup replication is easiest (and it gets you a warm standby) InnoDB hot backup XtraBackup mylvmbackup www .BlueGecko . net
  • 14. scale when it’s time to go big, what are the options? separate reads from writes www .BlueGecko . net
  • 15. scale write 1 / read many partitioning / sharding multimaster / rings memcached wafflegrid www .BlueGecko . net
  • 16. another short diversion to swap or not to swap that is the question www .BlueGecko . net
  • 17. free tools Innotop maatkit MySQL proxy monitoring/trending cacti templates $monitoring_server – the one you know www .BlueGecko . net
  • 18. additional resources irc.freenode.org #mysql #maatkit mysql.com HPM2e - Baron Schwartz, Peter Zaitsev, Vadim Tkachenko, and Jeremy Zawodny www .BlueGecko . net
  • 19. credits flickr Make: biosphere - kevino MySQL mints - jimwinstead 5 – losmininos storage- shuttercat7 clones - adactio Bell Labs - sodapop81 License plate - severud tools – meanestindian console - hermzz other swap image http://www.vocw.edu.vn/content/m10106/latest/ special thanks to mike hamrick for suggestions on content and slides www .BlueGecko . net
  • 20. Blue Gecko and contact info [email_address] [email_address] @sarahnovotny @bluegeckodba senk on #mysql www .BlueGecko . net Blue Gecko provides Remote DBA services for companies around the world 7x24x365 support including monitoring, performance analysis, proactive maintenance and architectural guidance for small and large datasets.

Editor's Notes

  • #4: Not locked into proprietary space… many options. Based from the same code tree Lib mysql vs lib drizzle – licensing gotcha libmysql gpl libdrizz bsd drizzle Maria Our delta Google patches Percona xtradb
  • #6: Google patches include a better malloc And completely changed locking
  • #7: Choose 5.1 or 5.4 only if you need the featuresets.
  • #9: •❑ inno - row with exception •❑ myi - table -- fast in some cases and search cases ( fast inserts? without lock )•❑federated - replication not multiple master. •❑ blackhole handy for logging without inserting into db or skipping a db for fake muliple master
  • #10: Much performance pain come into play with lock contention
  • #11: Much performance pain come into play with lock contention Names changed to protect the innocent
  • #12: Understand MTR and see if you meet that goal. tarball /dump / cpio not a valid backup
  • #13: •❑ tarball /dump / cpio not a valid backup •❑ replication•❑innohot•❑lvm backup script... lvmbackup? •❑ mysqldump = 100% inno ok. single transaction .•❑xtrabackup -- free innohot
  • #14: LVM and slaves give easy opportunities for creating clones for testing
  • #15: Begin with having your application understand that reads and writes are different
  • #16: API SHOULD KNOW THE DIFF proxy as an option if API not possible. scale writes. write own interfaces? check on it. btree index larger than memory -- writes get _slow_ Memcached – good for short lived data and caching wafflegrid -- patches to mysql -- innodb bufferpool over memcached
  • #17: If you’re worried about swapping, use huge page support for mysql (linux doesn’t swap out huge pages
  • #18: •❑ disk•❑memory•❑up/down•❑cachehit -- baseline defiinition•❑replication •❑ mktablesync•❑mkchecksum