<div>Hello Geek,</div>
<div> </div>
<div>I just stared the same project in el5 itself yesterday. I wonder if we could go on as explained in Andrew's 'Cluster from scratch', it will give you an active/active cluster. Wouldn't it gives you loadbalancing. </div>
<div> </div>
<div>Pardon me if this is a stupid suggestion!!</div>
<div> </div>
<div>-- <br>Regards,<br><br>Jayakrishnan. L<br><br>Visit: </div>
<div><a href="http://www.foralllinux.blogspot.com/">www.foralllinux.blogspot.com</a></div>
<div><a href="http://www.jayakrishnan.bravehost.com">www.jayakrishnan.bravehost.com</a><br><br><br></div>
<div class="gmail_quote">On Wed, Apr 7, 2010 at 7:51 PM, <span dir="ltr"><<a href="mailto:geek@lenux.mine.nu">geek@lenux.mine.nu</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hello<br><br>I have installed pacemaker and corosync on my redhat el5 with the<br>clusterlabs repository:<br>
<a href="http://clusterlabs.org/rpm/epel-5/clusterlabs.repo" target="_blank">http://clusterlabs.org/rpm/epel-5/clusterlabs.repo</a><br><br>The installation worked fine, just needed to install some dependencies but<br>all ok :)<br>
<br>So now my question. I need the build a high-available web cluster with<br>loadbalancing,<br>on my old machines I used heartbeat version 1, ldirectord and ipvsadm,<br>works great :)<br>Now I need to replace heartbeat version 1 with corosync+pacemaker (please<br>
don't ask why)<br><br>Here more details about my infrastructure<br><br>The 2 loadbalancer that I need to configure with pacemaker/corosync<br>pacemaker1.lenux.local IP: 192.168.33.210 (live)<br>pacemaker2.lenux.local IP: 192.168.33.211 (stand-by)<br>
virtual IP: 192.168.33.240<br><br>3 webserver (are in the same network)<br>www1.lenux.local IP: 192.168.33.241 (virtual IP: 192.168.33.240)<br>www2.lenux.local IP: 192.168.33.242 (virtual IP: 192.168.33.240)<br>www3.lenux.local IP: 192.168.33.243 (virtual IP: 192.168.33.240)<br>
<br>Ok, installed pacemaker and corosync on both loadbalancer..after that I<br>configure corosync like this (also on both loadbalancer):<br><br>aisexec {<br> user: root<br> group: root<br> }<br><br>totem {<br>
<br> version: 2<br> token: 5000<br> token_retransmits_before_loss_const: 20<br> join: 1000<br> consensus: 7500<br> vsftype: none<br> max_messages: 20<br>
secauth: off<br> threads: 0<br> clear_node_high_bit: yes<br><br> interface {<br> ringnumber: 0<br><br> bindnetaddr: 192.168.33.0<br> mcastaddr: 226.94.1.1<br>
mcastport: 5404<br> }<br> }<br><br> logging {<br> fileline: off<br> to_syslog: no<br> to_stderr: no<br> debug: on<br> timestamp: on<br> }<br><br> service {<br> # Load the Pacemaker Cluster Resource Manager<br>
name: pacemaker<br> ver: 0<br> }<br><br><br><br>now I need to add the ldirectord (already configured and located in<br>/etc/ha.d/<a href="http://ldirectord.cf/" target="_blank">ldirectord.cf</a>) resource to pacemaker with the crm tool...but I<br>
don't know how? I need to add the virtual IP and the ldirectord service<br>that can swap to the other loadbalancer on failure. I read the hole wiki<br>without finding the right answear..I hope someone can help me!<br>
<br>Thanks<br><br>Regards<br>Juan<br><br>_______________________________________________<br>Pacemaker mailing list<br><a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br><a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
</blockquote></div><br><br clear="all"><br>