Advertisement
Guest User

Untitled

a guest
Aug 13th, 2013
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.71 KB | None | 0 0
  1.     <resources>
  2.       <primitive class="ocf" id="reader_vip_1" provider="heartbeat" type="IPaddr2">
  3.         <instance_attributes id="reader_vip_1-instance_attributes">
  4.           <nvpair id="reader_vip_1-instance_attributes-ip" name="ip" value="192.168.74.151"/>
  5.           <nvpair id="reader_vip_1-instance_attributes-nic" name="nic" value="eth1"/>
  6.         </instance_attributes>
  7.         <operations>
  8.           <op id="reader_vip_1-monitor-10s" interval="10s" name="monitor"/>
  9.         </operations>
  10.       </primitive>
  11.       <primitive class="ocf" id="reader_vip_2" provider="heartbeat" type="IPaddr2">
  12.         <instance_attributes id="reader_vip_2-instance_attributes">
  13.           <nvpair id="reader_vip_2-instance_attributes-ip" name="ip" value="192.168.74.152"/>
  14.           <nvpair id="reader_vip_2-instance_attributes-nic" name="nic" value="eth1"/>
  15.         </instance_attributes>
  16.         <operations>
  17.           <op id="reader_vip_2-monitor-10s" interval="10s" name="monitor"/>
  18.         </operations>
  19.       </primitive>
  20.       <primitive class="ocf" id="writer_vip" provider="heartbeat" type="IPaddr2">
  21.         <instance_attributes id="writer_vip-instance_attributes">
  22.           <nvpair id="writer_vip-instance_attributes-ip" name="ip" value="192.168.74.150"/>
  23.           <nvpair id="writer_vip-instance_attributes-nic" name="nic" value="eth1"/>
  24.         </instance_attributes>
  25.         <operations>
  26.           <op id="writer_vip-monitor-10s" interval="10s" name="monitor"/>
  27.         </operations>
  28.         <meta_attributes id="writer_vip-meta_attributes">
  29.           <nvpair id="writer_vip-meta_attributes-target-role" name="target-role" value="Started"/>
  30.         </meta_attributes>
  31.       </primitive>
  32.       <master id="ms_MySQL">
  33.         <meta_attributes id="ms_MySQL-meta_attributes">
  34.           <nvpair id="ms_MySQL-meta_attributes-master-max" name="master-max" value="1"/>
  35.           <nvpair id="ms_MySQL-meta_attributes-master-node-max" name="master-node-max" value="1"/>
  36.           <nvpair id="ms_MySQL-meta_attributes-clone-max" name="clone-max" value="3"/>
  37.           <nvpair id="ms_MySQL-meta_attributes-clone-node-max" name="clone-node-max" value="1"/>
  38.           <nvpair id="ms_MySQL-meta_attributes-notify" name="notify" value="true"/>
  39.           <nvpair id="ms_MySQL-meta_attributes-globally-unique" name="globally-unique" value="false"/>
  40.           <nvpair id="ms_MySQL-meta_attributes-target-role" name="target-role" value="Master"/>
  41.           <nvpair id="ms_MySQL-meta_attributes-is-managed" name="is-managed" value="true"/>
  42.         </meta_attributes>
  43.         <primitive class="ocf" id="p_mysql" provider="percona" type="mysql_prm">
  44.           <instance_attributes id="p_mysql-instance_attributes">
  45.             <nvpair id="p_mysql-instance_attributes-config" name="config" value="/etc/my.cnf"/>
  46.             <nvpair id="p_mysql-instance_attributes-pid" name="pid" value="/var/run/mysql/mysqld.pid"/>
  47.             <nvpair id="p_mysql-instance_attributes-socket" name="socket" value="/var/lib/mysql/mysql.sock"/>
  48.             <nvpair id="p_mysql-instance_attributes-replication_user" name="replication_user" value="repl_user"/>
  49.             <nvpair id="p_mysql-instance_attributes-replication_passwd" name="replication_passwd" value="repluser"/>
  50.             <nvpair id="p_mysql-instance_attributes-max_slave_lag" name="max_slave_lag" value="60"/>
  51.             <nvpair id="p_mysql-instance_attributes-evict_outdated_slaves" name="evict_outdated_slaves" value="false"/>
  52.             <nvpair id="p_mysql-instance_attributes-binary" name="binary" value="/usr/sbin/mysqld"/>
  53.             <nvpair id="p_mysql-instance_attributes-test_user" name="test_user" value="test_user"/>
  54.             <nvpair id="p_mysql-instance_attributes-test_passwd" name="test_passwd" value="testuser"/>
  55.             <nvpair id="p_mysql-instance_attributes-datadir" name="datadir" value="/var/lib/mysql"/>
  56.           </instance_attributes>
  57.           <operations>
  58.             <op id="p_mysql-monitor-5s" interval="5s" name="monitor" role="Master">
  59.               <instance_attributes id="p_mysql-monitor-5s-instance_attributes">
  60.                 <nvpair id="p_mysql-monitor-5s-instance_attributes-OCF_CHECK_LEVEL" name="OCF_CHECK_LEVEL" value="1"/>
  61.               </instance_attributes>
  62.             </op>
  63.             <op id="p_mysql-monitor-2s" interval="2s" name="monitor" role="Slave">
  64.               <instance_attributes id="p_mysql-monitor-2s-instance_attributes">
  65.                 <nvpair id="p_mysql-monitor-2s-instance_attributes-OCF_CHECK_LEVEL" name="OCF_CHECK_LEVEL" value="1"/>
  66.               </instance_attributes>
  67.             </op>
  68.             <op id="p_mysql-stop-0" interval="0" name="stop" timeout="60s"/>
  69.           </operations>
  70.         </primitive>
  71.       </master>
  72.     </resources>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement