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

Mailing List Archive: Linux Virtual Server: Users

[lvs-users] SOLVED Re: LVS + Xen issue

 

 

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


thias at spam

Aug 8, 2007, 10:13 AM

Post #1 of 3 (445 views)
Permalink
[lvs-users] SOLVED Re: LVS + Xen issue

Matthias Saou wrote :

> I'm setting up various Xen guests, and want to use LVS to load-balance
> web traffic across them. I've tried two similar simple setups, and with
> both I see the same issue where LVS doesn't work properly when the
> director send the request to a real server on the same physical Xen
> host.
>
> Scenario 1 :
> - 3 physical servers (Xen Hosts) with eth0 and eth1
> - 3 web servers (Xen guests), one per host, listening only on eth1
> - LVS NAT is configured using keepalived on the first Xen Host
>
> When I make a web request to the LVS director, it works fine when it
> sends it to the 2nd or 3rd web servers, but only gets about the first
> 12kb of the page when it sends it to the 1st web server (the only one
> on the same Xen Host as LVS). For pages smaller than 12kb, no problem.
>
> Scenario 2 :
> - 3 physical servers (Xen Hosts) with eth0 and eth1
> - 3 web servers (Xen guests), one per host, listening only on eth1
> - 1 LVS director (Xen guest), on the first Xen Host, eth0 and eth1
>
> The exact same problem happens.
>
> Has anyone already seen this issue?
> Here are a few more details :
> - RHEL5 x86_64 with latest 2.6.18-8.1.8.el5xen kernel
> - keepalived package from Fedora recompiled for RHEL5
> - net.ipv4.ip_forward = 1 on the LVS director
> - -A POSTROUTING -s 192.168.0.0/255.255.0.0 -o eth0 -j MASQUERADE
>
> If I remove the "local" web server from the keepalive/LVS
> configuration, it works fine, since it only sends to the real servers
> on the other physical servers, but that would mean not using the first
> physical server's CPU power and memory, which I don't want to be
> wasting.
>
> I'm pretty sure this has something to do with connection tracking
> and/or the bridges Xen configures, but I don't know what to try to fix
> the issue.

Daniel P. Berrange (who hacks extensively on Xen over at Red Hat)
suggested it might be a TCP checksum offload issue... and it was!

The solution is simply to use 'ethtool -K ethX tx off' on all relevant
interfaces, and it all starts working as expected.

I hope this will be useful to others. I'm certainly glad to know it
now :-)

Matthias

--
Clean custom Red Hat Linux rpm packages : http://freshrpms.net/
Fedora release 7 (Moonshine) - Linux kernel 2.6.22.1-41.fc7
Load : 0.56 0.46 0.45

_______________________________________________
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


jmack at wm7d

Aug 8, 2007, 11:19 AM

Post #2 of 3 (422 views)
Permalink
Re: [lvs-users] SOLVED Re: LVS + Xen issue [In reply to]

On Wed, 8 Aug 2007, Matthias Saou wrote:

> Daniel P. Berrange (who hacks extensively on Xen over at Red Hat)
> suggested it might be a TCP checksum offload issue... and it was!
>
> The solution is simply to use 'ethtool -K ethX tx off' on all relevant
> interfaces, and it all starts working as expected.
>
> I hope this will be useful to others. I'm certainly glad to know it
> now :-)

thanks for nutting this out. I'll put it in the HOWTO

Joe

--
Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!

_______________________________________________
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


jmack at wm7d

Aug 31, 2007, 11:03 AM

Post #3 of 3 (361 views)
Permalink
Re: [lvs-users] SOLVED Re: LVS + Xen issue [In reply to]

On Fri, 31 Aug 2007, GS R wrote:

> [root [at] rhl ~]# ethtool -K eth1 tx off
> Cannot set device tx csum settings: Operation not supported
>
> Did I miss anything that I had to do before running this command?
> I googled to solve this error but could not find anything.

don't know, but would guess you can't do this with your
card.

Joe

--
Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!

_______________________________________________
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.