MySQL High Availability Sprint: Launch the Pacemaker
MySQL High Availability Sprint: Launch the Pacemaker! Florian Haas hastexo
MySQL HA Sprint: Get Prepared!● Please grab a DVD from your table! ● We have 12 in total – please share if needed!● Follow instructions in README.pdf.● If your laptop does not have a DVD drive, please see me for a USB stick.● For any questions, Im the guy in the blue shirt who answers to “Florian”. When in doubt, just holler.
Florian HaasCEO & Principal Consultant, hastexo http://www.hastexo.com/who/florian email@example.com
Visual Cues & CluesHow to follow this talk easily
This layout means: Would you treat meto the courtesy of your kind attention?
This layout means:● Id ask you to do this,● and this,● and this.
Add a DRBD Master/Slave Set● Create the DRBD primitive p_drbd_mysql ● Use the ocf:linbit:drbd RA ● Add 2 monitor operations (role=Master, role=Slave) with non-equal intervals● Wrap it in a master/slave set ● notify=true, clone-max=2, master-max=1● Commit the configuration● Watch the cluster promote
Create a Filesystem● Run mkfs -t ext3 on whichever node is the Master● Add the Filesystem resource ● Name: p_fs_mysql ● Device: /dev/drbd0 ● Directory: /var/lib/mysql ● File system type: ext3● Add required order & colocation constraints
Add the MySQL resource● Run mysql_install_db● Create an ocf:heartbeat:mysql primitive p_mysql● Set additional_parameters: --bind-address 192.168.122.110● Add resource level monitoring● Add it to the g_mysql group● Commit, Rejoice!