all data everywhere

  • 461 views
Uploaded on

MySQL's replication system has been a core feature often touted for scaling (sort of) and redundancy (sort of). I'll describe a client's extensive use of MySQL replication (they have more than 200 …

MySQL's replication system has been a core feature often touted for scaling (sort of) and redundancy (sort of). I'll describe a client's extensive use of MySQL replication (they have more than 200 MySQL instances replicating to one another) as a reference for the many uses and misuses of replication.

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
461
On Slideshare
0
From Embeds
0
Number of Embeds
1

Actions

Shares
Downloads
1
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide
  • Not locked into proprietary space… many options. Based from the same code tree Lib mysql vs lib drizzle – licensing gotcha libmysql gpl libdrizz bsd drizzle Maria Our delta Google patches Percona xtradb
  • Google patches include a better malloc And completely changed locking
  • Choose 5.1 or 5.4 only if you need the featuresets.
  • Much performance pain come into play with lock contention
  • Understand
  • Understand
  • Understand
  • Understand
  • API SHOULD KNOW THE DIFF proxy as an option if API not possible. scale writes. write own interfaces? check on it. btree index larger than memory -- writes get _slow_ Memcached – good for short lived data and caching wafflegrid -- patches to mysql -- innodb bufferpool over memcached
  • LVM and slaves give easy opportunities for creating clones for testing
  • •❑ disk•❑memory•❑up/down•❑cachehit -- baseline defiinition•❑replication •❑ mktablesync•❑mkchecksum

Transcript

  • 1. MySQL replication (all data everywhere; is it a good idea?) sarah novotny – sarah@bluegecko.net MySQL and LAMP services www .BlueGecko . net
  • 2.
    • master/slave
    • master/relay slave/slave
    • active/passive multi-master
    • active/active multi-master
    • rings
    • rings + reporting spurs + hot standbys + relay slaves + read slaves, oh my
    www .BlueGecko . net
  • 3.
    • master/slave
    www .BlueGecko . net READ ONLY
  • 4.
    • Master/relay slave/slave
    www .BlueGecko . net READ ONLY READ ONLY
  • 5.
    • active/passive multi-master
    www .BlueGecko . net READ ONLY
  • 6.
    • active/passive multi-master
    www .BlueGecko . net READ ONLY
  • 7. www .BlueGecko . net
  • 8.
    • active/active multi-master
    www .BlueGecko . net read/write read/write
  • 9. www .BlueGecko . net And now we come to rings
  • 10.
    • rings
    www .BlueGecko . net read/write read/write read/write read/write
  • 11.
    • oh, my
    www .BlueGecko . net
  • 12.
    • oh, my
    www .BlueGecko . net Boston -> London -> DC -> Seattle ->
  • 13.
    • oh, my
    www .BlueGecko . net Boston -> London -> DC -> Seattle ->
  • 14.
    • oh, my
    www .BlueGecko . net n n application servers writable ring readable spokes
  • 15.
    • oh, my
    www .BlueGecko . net n application servers writable ring readable spokes
  • 16.
    • oh, my
    www .BlueGecko . net
  • 17.
    • challenges
    • good things
    • why 5.0 still
    • tools
    www .BlueGecko . net
  • 18.
    • challenges
    • when things go wrong, they go very, very wrong
    www .BlueGecko . net
  • 19.
    • challenges
    www .BlueGecko . net data drift
  • 20.
    • challenges
    www .BlueGecko . net application servers in one datacenter may have different data than another for some amount of time
  • 21.
    • challenges
    • scaling writes
    www .BlueGecko . net
  • 22.
    • good things
    www .BlueGecko . net never a dull moment
  • 23.
    • good things
    www .BlueGecko . net nearly infinite read scaling
  • 24.
    • good things
    www .BlueGecko . net 4 (usually) identical copies of data
  • 25.
    • why 5.0 still?
    www .BlueGecko . net replication bugs
  • 26.
    • why 5.0 still?
    www .BlueGecko . net
  • 27.
    • tools we use to manage
    • this insanity—
    • Innotop
    • maatkit
    • MySQL proxy
    • cacti templates
    • nagios
    www .BlueGecko . net
  • 28. credits
    • flickr
    • icons – timothymorgan
    • MySQL mints – jimwinstead
    • license plate – severud
    • vodka – masochismtango
    • 1 – sarahajohnson
    • arthur – sierratierra
    • drift – jarylcabuco
    • dull -- pagedooley
    • tools – meanestindian
    • other
    • special thanks to unnamed staff from my unnamed client for suggestions on content and slides
    www .BlueGecko . net flickr
    • sadface – mlostracco
    • quadruplets – evilerin
    • reading – stevecadman
    • bugs -- bruneskine
  • 29. Blue Gecko and contact info
    • [email_address]
    • [email_address]
    • @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.