Date post: | 02-Jul-2015 |
Category: |
Technology |
Upload: | yelp-engineering |
View: | 505 times |
Download: | 1 times |
MySQL at Yelp!
Jenni S.
MySQL
MySQL + Yelp
MySQL + You
What
First released in 1995
InnoBase -> Oracle in 2005
Sun acquired in 2008
Sun -> Oracle in 2009
MySQL - history
Percona
MariaDB
Drizzle
MySQL - forks
Community Edition
vs Enterprise/Support
Consulting
MySQL - model
Relational
Replication
Transactions
Performance
MySQL - overall features
Portable
Stored Procedures
Triggers
Full-text searching
MySQL - features
ANSI SQL*
ACID compliant*
Foreign Keys*
MySQL - asterisks
Large Community
Free
"it was here when I got here"
MySQL - reasons to use it
~100 MySQL Servers
InnoDB + Replication
puppet for configuration
MySQL 5.5+
MySQL + Yelp - we use
MySQLdb python connector
Foreign Keys
Simple SQL
Separate Search, Caching
MySQL + Yelp we use
Master Data Center
Replicate to read-only DCs
"Local" masters in each DC
MySQL + Yelp - replication
MySQL + Yelp - replication
Nagios/Sensu
Ganglia/Grafana
Percona Toolkit
home-grown
MySQL + Yelp - tools
schema changes!
rollback-safe
MySQL + Yelp - changes happen
schema changes!
online vs offline
MySQL + Yelp - changes happen
monitoring, easy resolution
gross query checker
pt-kill
MySQL + Yelp - developer automation
ReviewBoard - automation
oncall/onpoint DBA
DBA Office Hours
MySQL + Yelp - developer support
install MySQL
mysql cli/guiCREATE DATABASE foo
MySQL + You - new project
mysql -u user -p -h host DBshow databases ;show tables ;show variables like 'log_error' ;
MySQL + You - existing project
MySQL + You - errors
perrorjsnyder@nnnnnnnnnn:~$ mysql -usdlfkj ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
jsnyder@nnnnnnnnnn:~$ perror 2OS error code 2: No such file or directory
Or, web search.
the slow logshow processlist ;host health
MySQL + you - "it's slow"
don't get bitten twice
lots of open source tools
MySQL + You - monitoring rocks
LVM
xtrabackup
monitor your backups
test restore
MySQL + you - if you like it then you
should have put backups on it
DBA Stack Exchange
lists.mysql.com
good ol' online search
MySQL + You - online community
Troubleshooting MySQL -
Sveta Smirnova
MySQL - Paul DuBois
High Performance MySQL -
Baron Schwartz, Peter Zaitsev
MySQL + You - books
Questions?
manual - http://dev.mysql.com/doc/
percona toolkit
http://www.percona.com/software/percona-toolkit
MySQL Utilities
http://dev.mysql.com/downloads/utilities/
MySQL/Percona tools
GitHub
https://github.com/Yelp
https://github.com/Yelp/ybinlogp
Blog
http://engineeringblog.yelp.com/
MySQL + Yelp - links