RE: Load balancing - Using only 2 servers-RH9.0
"Sumesh" <[email protected]> Tue, 19 Aug 2003 19:49:13 +0530
| Newsgroups | gmane.linux.redhat.piranha |
|---|---|
| Message-ID | <[email protected]> |
Dear Edward, Right now I am looking for Load balancing of Web servers with 2 Servers both acting as Director/Real Server. This is different from my earlier requirement of Failover of Samba service.Sorry if I confused you. In fact I have received a patch for doing this ( below mentioned) from Sebastien and I have applied this patch to the piranha source given by you. Out of 2 servers Node1 and Node2 I have installed piranha in Node 1 only. Node 1 - IP address : 151.8.26.201 Node 2 - IP Address : 151.8.26.202 Node1 2nd NIC: 10.0.0.1(Real Server address) Node 2 2nd NIC : 10.0.02(Real Address server) Virtual Server: 151.8.26.210 NAT Router IP:10.0.0.254 Configured the default gateway as 10.0.0.254 for both Real Server IPs. Edited /etc/httpd/conf/httpd.conf on both the servers as Server name 10.0.0.1 & 10.0.0.2 respectively. Started httpd service on both the numbers. Started pulse on the Node1 and checked the ipvsadm -L and it has given a proper IP Virtual Server version 1.0.4 (size=65536) Prot LocalAddress:Port Scheduler Flags RemoteAddress:Port Forward Weight ActiveConn InActConn TCP 151.8.26.210:http wlc -> 10.0.0.1:http Masq 2 0 0 -> 10.0.0.2:http Masq 1 0 0 when I have checked from an outside client (http://151.8.26.210) it has given the page on Node1 But when I have stopped the httpd service from Node1 and tried above URL on client , it shown connection refused and taking the page from Node2. Please let me know what actually went wrong and what this patch is doing. Thanks n Regards, Sumesh -----Original Message----- From: [email protected] [mailto:[email protected]]On Behalf Of Edward Croft Sent: Tuesday, August 19, 2003 6:49 PM To: [email protected] Subject: RE: Load balancing - Using only 2 servers-RH9.0 On Tue, 2003-08-19 at 05:10, Sumesh wrote: > Dear Sebastien, Edward, > > I have got the patch (piranha-0.7.0.diff) for making 2 Servers to work as LVS router and Real servers. > To start with, I wanted to make one of the server as LVS Router (without any back up router) > And webserver (httpd) will be running on both the servers.In fact I am not clear when to apply this > patch, most probably it will be before Piranha installation and it will require piranha sources also. > Please correct me if I am wrong.I have tried patch -p1 < piranha-0.7.0.diff on piranha installed machine > but it asks us to enter File to pach. > > Kindly help me for applying this patch.. > > Thanks®ards, > Sumesh > Sumesh, if you got the tar file that I sent you, then that is the patched version of piranha. Untar it in the /usr/src/redhat/SOURCES directory. cd /usr/src/redhat/SOURCES ; tar xzvf redhat.tar.gz Then cd into the redhat/piranha directory and do the following: make clean make make install However, I noted that you said that you wanted to do LVS not FOS. You do not need to recompile piranha if you do not need scripting in FOS. You can use the version that comes with RHAS 2.1 if you only need scripting with LVS. When you first asked, you said that you needed scripting in failover, that is why I sent you the tar file. Ed _______________________________________________ Piranha-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/piranha-list _______________________________________________ Piranha-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/piranha-list