Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux Virtual Server: Users

[lvs-users] Load Balancing Server on Same Network

 

 

Linux Virtual Server users RSS feed   Index | Next | Previous | View Threaded


elmic11111 at gmail

Apr 5, 2012, 7:05 PM

Post #1 of 4 (533 views)
Permalink
[lvs-users] Load Balancing Server on Same Network

I'm attempting to load balance two windows servers using a Linux
server. They are all on the same network and share a router and I
prefer not to have to setup a sub network behind the load balancer.
Ideal I'd like the traffic to come in through the load balancer, go to
the web servers and then go back out through the load balancer.

I've been going through the documentation. I can get it using direct
routing to send the request to the web servers. I can see the request
in the logs, but it appears the response isn't coming back as I keep
getting timeout in my browser.

Any suggestions of where to go look or any tutorials I should read
would be appreciated.

David

_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


reet.vyas28 at gmail

Apr 5, 2012, 9:19 PM

Post #2 of 4 (492 views)
Permalink
Re: [lvs-users] Load Balancing Server on Same Network [In reply to]

Hi david,

Use tcpdump utility to check network traffic . Analyzing n/w you can check
where packets are going.please give the outpuch of command ipvsadm -l -n



On Fri, Apr 6, 2012 at 7:35 AM, David Hofmann <elmic11111 [at] gmail> wrote:

> I'm attempting to load balance two windows servers using a Linux
> server. They are all on the same network and share a router and I
> prefer not to have to setup a sub network behind the load balancer.
> Ideal I'd like the traffic to come in through the load balancer, go to
> the web servers and then go back out through the load balancer.
>
> I've been going through the documentation. I can get it using direct
> routing to send the request to the web servers. I can see the request
> in the logs, but it appears the response isn't coming back as I keep
> getting timeout in my browser.
>
> Any suggestions of where to go look or any tutorials I should read
> would be appreciated.
>
> David
>
> _______________________________________________
> Please read the documentation before posting - it's available at:
> http://www.linuxvirtualserver.org/
>
> LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
> Send requests to lvs-users-request [at] LinuxVirtualServer
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>
_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


malcolm at loadbalancer

Apr 6, 2012, 1:37 AM

Post #3 of 4 (495 views)
Permalink
Re: [lvs-users] Load Balancing Server on Same Network [In reply to]

David,

If you are using DR then the return traffic will not go back through
the load balancer (it will go via the default gateway).

As for Windows.. Have you setup the loopback adapter with the VIP?
i.e.
http://blog.loadbalancer.org/direct-server-return-on-windows-2008-using-loopback-adpter/
or for other versions of Windows:
Page 20-27 of our quick start guide:
http://loadbalancer.org/pdf/quickstartguideLBv7.pdf






On 6 April 2012 03:05, David Hofmann <elmic11111 [at] gmail> wrote:
> I'm attempting to load balance two windows servers using a Linux
> server.  They are all on the same network and share a router and I
> prefer not to have to setup a sub network behind the load balancer.
> Ideal I'd like the traffic to come in through the load balancer, go to
> the web servers and then go back out through the load balancer.
>
> I've been going through the documentation. I can get it using direct
> routing to send the request to the web servers. I can see the request
> in the logs, but it appears the response isn't coming back as I keep
> getting timeout in my browser.
>
> Any suggestions of where to go look or any tutorials I should read
> would be appreciated.
>
> David
>
> _______________________________________________
> Please read the documentation before posting - it's available at:
> http://www.linuxvirtualserver.org/
>
> LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
> Send requests to lvs-users-request [at] LinuxVirtualServer
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users



--
Regards,

Malcolm Turnbull.

Loadbalancer.org Ltd.
Phone: +44 (0)870 443 8779
http://www.loadbalancer.org/

_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


leon at linux

Apr 6, 2012, 1:40 AM

Post #4 of 4 (494 views)
Permalink
Re: [lvs-users] Load Balancing Server on Same Network [In reply to]

On Fri, 2012-04-06 at 02:05 +0000, David Hofmann wrote:
> I'm attempting to load balance two windows servers using a Linux
> server. They are all on the same network and share a router and I
> prefer not to have to setup a sub network behind the load balancer.

Then your options would be either LVS-DR or a one-network LVS-NAT

> Ideal I'd like the traffic to come in through the load balancer, go to
> the web servers and then go back out through the load balancer.

That only works with LVS-NAT. LVS-DR is:

client -> lvs -> webserver -> client

> I've been going through the documentation. I can get it using direct
> routing to send the request to the web servers. I can see the request
> in the logs, but it appears the response isn't coming back as I keep
> getting timeout in my browser.

> Any suggestions of where to go look or any tutorials I should read
> would be appreciated.

main howto:

http://www.austintek.com/LVS/LVS-HOWTO/HOWTO/

in particular:

http://www.austintek.com/LVS/LVS-HOWTO/HOWTO/LVS-HOWTO.LVS-NAT.html#one_network



Léon



_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

Linux Virtual Server users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.