[Pgpool-general] how to migrate services as a group?

Script Head scripthead at gmail.com
Tue Aug 5 21:02:14 UTC 2008


Hello,

I have an ip and pgpool in the same group. When pgpool goes down heartbeat
just restarts it but when the IP goes down, the whole group migrates. I want
the whole group to migrate if either the IP or the pgpool go down. My config
is below. What's wrong?



   <configuration>
     <crm_config>
       <cluster_property_set id="cib-bootstrap-options">
         <attributes>
           <nvpair id="cib-bootstrap-options-dc- version" name="dc-version"
value="2.1.3-node: 552305612591183b1628baa5bc6e903e0f1e26a3"/>
         </attributes>
       </cluster_property_set>
     </crm_config>
     <nodes>
       <node id="c28789f8-1390-4985-bb1d-13a331c4a430"
uname="ksdbp01<http://ksdbp01.kia.com/>"
type="normal"/>
       <node id="061a499f-13aa-4e59-9853-4210ca749403"
uname="ksdbp02<http://ksdbp02.kia.com/>"
type="normal"/>
     </nodes>
     <resources>
       <group id="pgpool_group">
         <primitive id="ip_resource" class="ocf" type="IPaddr"
provider="heartbeat">
           <operations>
             <op id="private-ip-startup" name="monitor" interval="0"
timeout="90s"/>
             <op id="private-ip-start" name="start" interval="0"
timeout="90s"/>
             <op id="private-ip-stop" name="stop" interval="0"
timeout="90s"/>
             <op id="private-ip-check" name="monitor" interval="30s"/>
           </operations>
           <instance_attributes id="6f73349f-63d6-4b02-a211-9a1a387c3e8a">
             <attributes>
               <nvpair name="ip" value="192.168.15.7"
id="476e1608-5a4f-4bb6-97dc-88d8c1a1a46b"/>
             </attributes>
           </instance_attributes>
         </primitive>
         <primitive id="pgpool" class="ocf" type="pgpool"
provider="heartbeat">
           <operations>
             <op id="pgpool-startup" name="monitor" interval="30s"
timeout="90s"/>
           </operations>
         </primitive>
       </group>
     </resources>
     <constraints>
       <rsc_location id="run_pgpool_group" rsc="pgpool_group">
         <rule id="pref_run_pgpool_group" score="100">
           <expression attribute="#uname" operation="eq"
value="ksdbp01<http://ksdbp01.kia.com/>"
id="b00a577a-5ec0-421f-8028-e0ceefedd2e2"/>
         </rule>
       </rsc_location>
     </constraints>
   </configuration>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://pgfoundry.org/pipermail/pgpool-general/attachments/20080805/a9da2022/attachment.html 


More information about the Pgpool-general mailing list