[Linux-HA] how to config a 3+1 cluster .
huang mingyou
therods at gmail.com
Fri Aug 19 02:43:00 MDT 2005
I want make a cluster for our cache servers,about 4 servers,so I want
do a 4+2 nodes or 4+1 nodes. to do this,are you have a good idea ? :)
2005/8/19, Andrew Beekhof (GMail) <beekhof at gmail.com>:
>
> On Aug 19, 2005, at 8:50 AM, huang mingyou wrote:
>
> > hello,list.
> > I want config a 3+1 structure cluster use heartbeat 2.0 .3
> > nodes work and 1 nodes is backup.
> > I have make this cluster ,the nodes is m2,m3,m5 and m7(backup).the
> > resources run this cluster is
> > 3 ip.them is vip1,vip2,vip3.
> > my cib.xml is Conversion from this content.
> > ------------------------------------------------------------
> > m2 192.168.0.1/24/eth1
> > m3 192.168.0.2/24/eth2
> > m4 192.168.0.3/24/eth3
> > -------------------------------------------------------------
> >
> > I want let the vip on the work node only one, but no limit on
> > the backup node(m7) so , I change the cib.xml 's location like this.
> > -------------------------------------------------------------
> > <constraints>
> > <rsc_location id="rsc_location_IPaddr_1"
> > rsc="IPaddr_1">
> > <rule id="prefered_location_IPaddr_1"
> > score="-100" boolean_op="and">
> > <expression attribute="#uname"
> > operation="ne" value="m2"/>
> > <expression attribute="#uname"
> > operation="ne" value="m7"/>
> > </rule>
> > </rsc_location>
> > <rsc_location id="rsc_location_IPaddr_2"
> > rsc="IPaddr_2">
> > <rule id="prefered_location_IPaddr_2"
> > score="-100" boolean_op="and">
> > <expression attribute="#uname"
> > operation="ne" value="m3"/>
> > <expression attribute="#uname"
> > operation="ne" value="m7"/>
> > </rule>
> > </rsc_location>
> > <rsc_location id="rsc_location_IPaddr_3"
> > rsc="IPaddr_3">
> > <rule id="prefered_location_IPaddr_3"
> > score="-100" boolean_op="and">
> > <expression attribute="#uname"
> > operation="ne" value="m5"/>
> > <expression attribute="#uname"
> > operation="ne" value="m7"/>
> > </rule>
> > </rsc_location>
> > </constraints>
> > -----------------------------------------------------------------
> >
> > But ,When I start the cluster,the vip1 whill run on m7, Why? and will
> > how to config the cib.xml let the cluster run my way.
> > hmy
>
> you may want to try giving extra preference to you're "primary" nodes
> - otherwise they will be considered equal.
>
> if i understand you correctly, you want to set up the weights/scores
> something like this:
>
> m2 m3 m4 m7
> ip_1 200 -INFINITY -INFINITY 100
> ip_2 -INFINITY 200 -INFINITY 100
> ip_3 -INFINITY -INFINITY 200 100
>
> though i must ask, if they can all run together on m7, why can they
> not run together on any other node?
>
> > _______________________________________________
> > Linux-HA mailing list
> > Linux-HA at lists.linux-ha.org
> > http://lists.linux-ha.org/mailman/listinfo/linux-ha
> > See also: http://linux-ha.org/ReportingProblems
> >
>
> --
> Andrew Beekhof
>
> "Ooo Ahhh, Glenn McRath" - TISM
>
> _______________________________________________
> Linux-HA mailing list
> Linux-HA at lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
--
-------------------------------------------
hmy
More information about the Linux-HA
mailing list