Académique Documents
Professionnel Documents
Culture Documents
Who am I
SchoolFeed, Weebly
S Presented on Flickr Architecture: Doing Billions of Queries Per
Day. Record Every Referral For Flickr Real-time. Scaling to 200K TPS per second with Open Source. Scaling a Widget Company, MySpace Vrs Facebook API Load Patterns. University Of Utah Presentation and various others.
Patterns: Continued
Big Table
S Lets Shard
User 1s Data
User 3s Data
User 2s Data
User Ns Data
Federation
Problems introduced
SSD
Cells.
S SLC can hold a single data bit, MLC can hold multiple
More enterprises are using MLC Its cheaper Fast Enough Endurance improved Write amplification improved (erasure and data wad resends)
S
S
S S S S
Low power usage We consider it the best Its no longer made Everyone wants it
is 12K IOPS
Code Steps
S Have a program that keeps a hashmap of tablename to
federated column
S Lock the federated entity by throwing an error in the application
combined table.
S Update pointers
S Error if any step fails and keep the data locked otherwise
Unlock
S Simply combining the data onto one server will not work
computation
S Md5 based off 1st 16 bits of hex number to produce 8byte
bigint
S Primary KEY is HashId + Hostname(10) S HashId maps to ShardId with range blocks
How to switch
as correct
graph
S Verify that Production and Staging have the same
referrers
S Sample random Pro accounts and make sure numbers
match
user input to the lookup method, yet I stored everything lowercase names
S Turn off new reads with Application config switch S Fix issue and turn on new reads
Clean Up
Some Stats
Next Generation
S 1U Form factor
S Less power 40W-50W S No need to RAID
Questions
S Twitter @dathanvp
S http://mysqldba.blogspot.com
S http://facebook.com/dathan S http://linkedIn.com/in/dathan S http://about.me/dathan S mailto:dathanvp@gmail.com