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