all data everywhere
Post on 17-Jan-2015
479 Views
Preview:
DESCRIPTION
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/writeread/write
www.BlueGecko.net
And now we come to rings
⑤rings
www.BlueGecko.net
read/write read/write
read/writeread/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
datadrift
⑦challenges
www.BlueGecko.net
application servers in one datacenter may have different data than anotherfor some amount of time
⑦challenges
scaling writes
www.BlueGecko.net
⑧good things
www.BlueGecko.net
never a dullmoment
⑧good things
www.BlueGecko.net
nearly infiniteread scaling
⑧good things
www.BlueGecko.net
4 (usually) identical copies of data
⑧why 5.0 still?
www.BlueGecko.net
replicationbugs
www.BlueGecko.net
⑧why 5.0 still?
tools we use to managethis insanity—
InnotopmaatkitMySQL proxycacti templatesnagios
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
• 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.
top related