2. Who, What, When?
● April 14-17, 2008
● Santa Clara, CA
● Over 2000 people (more than last year)
● 160 speakers
● 16 tutorials
● 128 sessions
3. What's New?
● Sun
● MySQL 5.1 GA (still)
● MySQL Workbench GA
– Windows only right now
● Hot backup extension http://www.theopenforce.com/2008/04/burning-the-
boa.html
● Monty's talk:
– http://monty-says.blogspot.com/2008/04/mysql-
conference-good-bad-and-ugly.html
– http://www.scribd.com/doc/2575733/The-future-of-
MySQL-The-Project
4. memcached
● Memcached storage engine
● Memcached functions for MySQL
– SELECT memc_set('fruit', 'apple');
– SELECT memc_get('fruit');
5. Testing
● DBUnit for database - http://www.dbunit.org
– PHPUnit for PHP - http://phpunit.de
– phpUnderControl - http://www.phpundercontrol.org
v
6. EC2
● New! Persistent storage
● Storage caching mysteries
● High availability is difficult
– Can't do heartbeat
● Previous machine's host remnants
– Need to zero out drive... can take 5 hours!
7. Gearman
● Server daemon than can do back-end stuff
● http://www.danga.com/gearman/
– From the people that made memcached
● netgearman – PHP library for Gearman
– http://code.google.com/p/netgearman/
8. Query Cache
● Only SELECT statements
● Viewing cache statistics:
– SHOW GLOBAL STATUS LIKE 'qcache%';
– SHOW GLOBAL STATUS LIKE 'query_cache%';
● 16MB by default
● Invalidates easily
● Can become fragmented
9. LVM Snapshots for Backups
● Linux ● mylvmbackup
● Procedure – http://lenz.homelinux.
org/mylvmbackup/
– flush tables
– flush tables with read lock
– Perl script
– lvcreate -s
– show master/slave status
– unlock tables
– mount snapshot, perform
backup
– unmount and discard the
snapshot
10. innodb
● Google actively improving it
– Updated mutex code (CAS instead of mutex)
● New release! 1.0!
– Data compression
– Fast index creation
– information_schema tables
11. Flickr Stats – Massive Inserts
● Tracks images
● HTTP_REFERRER
● Custom Java daemon to pool, bulk insert
12. Hardware Stuff
● Use 64-bit ● Storage
● Use lots of RAM – SAN, DAS, NAS
– 32GB is cheap – Independent storage
– Allocate all RAM to – RAID 10
innodb except 2GB – SAS vs. SATA
● 2 x dual core or 1 x – Battery backed cache
quad core ● Write through vs. write
back
14. Scaling MySQL: Up or Out?
● MySQL, Sun, Flickr,
FotoLog, Wikipedia,
Facebook, YouTube
● Facebook has over 1800
MySQL servers!
http://www.flickr.com/photos/x180/2419466880/
15. Other stuff
● High Availability – DRBD
● information_schema
– Alternative to MySQL's SHOW command
– Make plugins
● PrimeBase – PBXT Storage Engine
● High Performance MySQL
– June 19, 2008