Download presentation
Presentation is loading. Please wait.
Published byTobias Shepherd Modified over 9 years ago
1
scaling MySQL in 3d sarah novotny – sarah@bluegecko.net sarah@bluegecko.net open databases and LAMP services www.BlueGecko. net
2
things you’ve heard about scale write 1 / read many partitioning / sharding multimaster / rings memcached / nosql www.BlueGecko. net
3
①large datasets ②high volume reads ③high volume writes www.BlueGecko. net http://www.flickr.com/photos/elbragon
4
storage choices engine options storage engine filesystem volume manager hardware www.BlueGecko. net http://www.flickr.com/photos/shuttercat7
5
①large datasets large objects many rows www.BlueGecko. net http://www.flickr.com/photos/olivander
6
storage flexibility, reliability, clone-ability www.BlueGecko. net http://www.flickr.com/photos/wwworks
7
www.BlueGecko. net http://www.flickr.com/photos/alreadytaken
8
②high volume reads more memory fast disks more memory www.BlueGecko. net http://www.flickr.com/photos/teclasorg
9
www.BlueGecko. net myisam vs innodb http://www.flickr.com/photos/redjar
10
www.BlueGecko. net not to be obvious, but -- read less data! compress data (if you can) don’t use limit http://www.flickr.com/photos/rogersmith
11
use thoughtful primary keys www.BlueGecko. net
12
a short diversion to swap or not to swap that is the question www.BlueGecko. net
13
③high volume reads writes more memory fast disks more memory fast disks www.BlueGecko. net http://www.flickr.com/photos/teclasorg
14
③high volume writes choose your filesystem well understand how your filesystem and raid controller work together tune them to work in concert www.BlueGecko. net
15
facebook game case: highly concurrent writes low risk of -- omg, i lost my most recent score! www.BlueGecko. net
16
shard data innodb_log_flush_at_trx_commit=0 benchmark i/o schedulers 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 swap image – http://www.vocw.edu.vn/cont ent/m10106/latest/ http://www.vocw.edu.vn/cont ent/m10106/latest/ special thanks to gabriel cain and mike hamrick for suggestions on content and slides www.BlueGecko. net
20
Blue Gecko and contact info sarah@bluegecko.net sarah.novotny@gmail.com @sarahnovotny @bluegecko 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.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.