all data everywhere
Upcoming SlideShare
Loading in...5
×
 

all data everywhere

on

  • 575 views

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.

Statistics

Views

Total Views
575
Views on SlideShare
574
Embed Views
1

Actions

Likes
0
Downloads
1
Comments
0

1 Embed 1

https://www.linkedin.com 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • 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

all data everywhere all data everywhere Presentation Transcript

  • MySQL replication (all data everywhere; is it a good idea?) sarah novotny – sarah@bluegecko.net MySQL and LAMP services www .BlueGecko . net
    • 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
    • master/slave
    www .BlueGecko . net READ ONLY
    • Master/relay slave/slave
    www .BlueGecko . net READ ONLY READ ONLY
    • active/passive multi-master
    www .BlueGecko . net READ ONLY
    • active/passive multi-master
    www .BlueGecko . net READ ONLY
  • www .BlueGecko . net
    • active/active multi-master
    www .BlueGecko . net read/write read/write
  • www .BlueGecko . net And now we come to rings
    • rings
    www .BlueGecko . net read/write read/write read/write read/write
    • oh, my
    www .BlueGecko . net
    • oh, my
    www .BlueGecko . net Boston -> London -> DC -> Seattle ->
    • oh, my
    www .BlueGecko . net Boston -> London -> DC -> Seattle ->
    • oh, my
    www .BlueGecko . net n n application servers writable ring readable spokes
    • oh, my
    www .BlueGecko . net n application servers writable ring readable spokes
    • oh, my
    www .BlueGecko . net
    • challenges
    • good things
    • why 5.0 still
    • tools
    www .BlueGecko . net
    • challenges
    • when things go wrong, they go very, very wrong
    www .BlueGecko . net
    • challenges
    www .BlueGecko . net data drift
    • challenges
    www .BlueGecko . net application servers in one datacenter may have different data than another for some amount of time
    • challenges
    • scaling writes
    www .BlueGecko . net
    • good things
    www .BlueGecko . net never a dull moment
    • good things
    www .BlueGecko . net nearly infinite read scaling
    • good things
    www .BlueGecko . net 4 (usually) identical copies of data
    • why 5.0 still?
    www .BlueGecko . net replication bugs
    • why 5.0 still?
    www .BlueGecko . net
    • tools we use to manage
    • this insanity—
    • Innotop
    • maatkit
    • MySQL proxy
    • cacti templates
    • nagios
    www .BlueGecko . net
  • 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
  • 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.