Mais conteúdo relacionado Semelhante a MySQL HA with PaceMaker (20) Mais de Kris Buytaert (20) MySQL HA with PaceMaker5. Specializing in Automated , Large Scale Deployments , Highly Available infrastructures, since 2008 also known as “the Cloud” 34. If those partitions each try and take control of the cluster, then it's called a split-brain condition 80. It waits for the master to notify it of new update s 86. In case of master crash the slave is more likely to have all statements 94. Show slave status Slave_IO_State: Waiting for master to send event Master_Host: 172.16.0.1 Master_User: repli Master_Port: 3306 Connect_Retry: 60 Master_Log_File: XMS-1-bin.000014 Read_Master_Log_Pos: 106 Relay_Log_File: XMS-2-relay.000033 Relay_Log_Pos: 251 Relay_Master_Log_File: XMS-1-bin.000014 Slave_IO_Running: Yes Slave_SQL_Running: Yes Replicate_Do_DB: xpol Replicate_Ignore_DB: Replicate_Do_Table: Replicate_Ignore_Table: Replicate_Wild_Do_Table: Replicate_Wild_Ignore_Table: Last_Errno: 0 Last_Error: Skip_Counter: 0 Exec_Master_Log_Pos: 106 Relay_Log_Space: 547 Until_Condition: None Until_Log_File: Until_Log_Pos: 0 Master_SSL_Allowed: No Master_SSL_CA_File: Master_SSL_CA_Path: Master_SSL_Cert: Master_SSL_Cipher: Master_SSL_Key: Seconds_Behind_Master: 0 Master_SSL_Verify_Server_Cert: No Last_IO_Errno: 0 Last_IO_Error: Last_SQL_Errno: 0 Last_SQL_Error: 1 row in set (0.00 sec) 134. Flipper allows you to move these IP addresses between the nodes in a safe and controlled manner. 146. Lrmd : Local Resource Management Daemon. Interacts directly with resource agents (scripts). 147. pengine Policy Engine. Computes the next state of the cluster based on the current state and the configuration. 148. cib Cluster Information Base. Contains definitions of all cluster options, nodes, resources, their relationships to one another and current status. Synchronizes updates to all cluster nodes. 149. crmd Cluster Resource Management Daemon. Largely a message broker for the PEngine and LRM, it also elects a leader to co-ordinate the activities of the cluster. 150. openais messaging and membership layer. 151. heartbeat messaging layer, an alternative to OpenAIS. 152. ccm Short for Consensus Cluster Membership. The Heartbeat membership layer. 166. Configuring Heartbeat heartbeat::hacf {"clustername": hosts => ["host-a","host-b"], hb_nic => ["bond0"], hostip1 => ["10.0.128.11"], hostip2 => ["10.0.128.12"], ping => ["10.0.128.4"], } heartbeat::authkeys {"ClusterName": password => “ClusterName ", } http://github.com/jtimberman/puppet/tree/master/heartbeat/ 180. Crm configure property $id="cib-bootstrap-options" stonith-enabled="FALSE" no-quorum-policy=ignore start-failure-is-fatal="FALSE" rsc_defaults $id="rsc_defaults-options" migration-threshold="1" failure-timeout="1" primitive d_mysql ocf:local:mysql op monitor interval="30s" params test_user="sure" test_passwd="illtell" test_table="test.table" primitive ip_db ocf:heartbeat:IPaddr2 params ip="172.17.4.202" nic="bond0" op monitor interval="10s" group svc_db d_mysql ip_db commit 181. Hardware Cluster Stack Resource MySQL Replication Adding MySQL to the stack Node A Node B HeartBeat Pacemaker “ MySQLd” “ MySQLd” Service IP MySQL 191. ` Kris Buytaert < [email_address] > Further Reading http://www.krisbuytaert.be/blog/ http://www.inuits.be/ http://www.virtualization.com/ http://www.oreillygmt.com/ ? !