Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <resources>
- <primitive class="ocf" id="reader_vip_1" provider="heartbeat" type="IPaddr2">
- <instance_attributes id="reader_vip_1-instance_attributes">
- <nvpair id="reader_vip_1-instance_attributes-ip" name="ip" value="192.168.74.151"/>
- <nvpair id="reader_vip_1-instance_attributes-nic" name="nic" value="eth1"/>
- </instance_attributes>
- <operations>
- <op id="reader_vip_1-monitor-10s" interval="10s" name="monitor"/>
- </operations>
- </primitive>
- <primitive class="ocf" id="reader_vip_2" provider="heartbeat" type="IPaddr2">
- <instance_attributes id="reader_vip_2-instance_attributes">
- <nvpair id="reader_vip_2-instance_attributes-ip" name="ip" value="192.168.74.152"/>
- <nvpair id="reader_vip_2-instance_attributes-nic" name="nic" value="eth1"/>
- </instance_attributes>
- <operations>
- <op id="reader_vip_2-monitor-10s" interval="10s" name="monitor"/>
- </operations>
- </primitive>
- <primitive class="ocf" id="writer_vip" provider="heartbeat" type="IPaddr2">
- <instance_attributes id="writer_vip-instance_attributes">
- <nvpair id="writer_vip-instance_attributes-ip" name="ip" value="192.168.74.150"/>
- <nvpair id="writer_vip-instance_attributes-nic" name="nic" value="eth1"/>
- </instance_attributes>
- <operations>
- <op id="writer_vip-monitor-10s" interval="10s" name="monitor"/>
- </operations>
- <meta_attributes id="writer_vip-meta_attributes">
- <nvpair id="writer_vip-meta_attributes-target-role" name="target-role" value="Started"/>
- </meta_attributes>
- </primitive>
- <master id="ms_MySQL">
- <meta_attributes id="ms_MySQL-meta_attributes">
- <nvpair id="ms_MySQL-meta_attributes-master-max" name="master-max" value="1"/>
- <nvpair id="ms_MySQL-meta_attributes-master-node-max" name="master-node-max" value="1"/>
- <nvpair id="ms_MySQL-meta_attributes-clone-max" name="clone-max" value="3"/>
- <nvpair id="ms_MySQL-meta_attributes-clone-node-max" name="clone-node-max" value="1"/>
- <nvpair id="ms_MySQL-meta_attributes-notify" name="notify" value="true"/>
- <nvpair id="ms_MySQL-meta_attributes-globally-unique" name="globally-unique" value="false"/>
- <nvpair id="ms_MySQL-meta_attributes-target-role" name="target-role" value="Master"/>
- <nvpair id="ms_MySQL-meta_attributes-is-managed" name="is-managed" value="true"/>
- </meta_attributes>
- <primitive class="ocf" id="p_mysql" provider="percona" type="mysql_prm">
- <instance_attributes id="p_mysql-instance_attributes">
- <nvpair id="p_mysql-instance_attributes-config" name="config" value="/etc/my.cnf"/>
- <nvpair id="p_mysql-instance_attributes-pid" name="pid" value="/var/run/mysql/mysqld.pid"/>
- <nvpair id="p_mysql-instance_attributes-socket" name="socket" value="/var/lib/mysql/mysql.sock"/>
- <nvpair id="p_mysql-instance_attributes-replication_user" name="replication_user" value="repl_user"/>
- <nvpair id="p_mysql-instance_attributes-replication_passwd" name="replication_passwd" value="repluser"/>
- <nvpair id="p_mysql-instance_attributes-max_slave_lag" name="max_slave_lag" value="60"/>
- <nvpair id="p_mysql-instance_attributes-evict_outdated_slaves" name="evict_outdated_slaves" value="false"/>
- <nvpair id="p_mysql-instance_attributes-binary" name="binary" value="/usr/sbin/mysqld"/>
- <nvpair id="p_mysql-instance_attributes-test_user" name="test_user" value="test_user"/>
- <nvpair id="p_mysql-instance_attributes-test_passwd" name="test_passwd" value="testuser"/>
- <nvpair id="p_mysql-instance_attributes-datadir" name="datadir" value="/var/lib/mysql"/>
- </instance_attributes>
- <operations>
- <op id="p_mysql-monitor-5s" interval="5s" name="monitor" role="Master">
- <instance_attributes id="p_mysql-monitor-5s-instance_attributes">
- <nvpair id="p_mysql-monitor-5s-instance_attributes-OCF_CHECK_LEVEL" name="OCF_CHECK_LEVEL" value="1"/>
- </instance_attributes>
- </op>
- <op id="p_mysql-monitor-2s" interval="2s" name="monitor" role="Slave">
- <instance_attributes id="p_mysql-monitor-2s-instance_attributes">
- <nvpair id="p_mysql-monitor-2s-instance_attributes-OCF_CHECK_LEVEL" name="OCF_CHECK_LEVEL" value="1"/>
- </instance_attributes>
- </op>
- <op id="p_mysql-stop-0" interval="0" name="stop" timeout="60s"/>
- </operations>
- </primitive>
- </master>
- </resources>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement