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

Mailing List Archive: Linux Virtual Server: Users

[lvs-users] How to make LVS Direct Route work for UDP programs?

 

 

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


leonis.wang at gmail

Nov 23, 2011, 1:06 AM

Post #1 of 15 (499 views)
Permalink
[lvs-users] How to make LVS Direct Route work for UDP programs?

Hi, all
I've set up LVS with DR mode for Apache, it worked OK. Then I set
up another Virtual Service for an UDP based program on the same boxes,
but it won't work.

Running Wireshark on the director showed that it got the UDP
packets from client, but responsed these packets with an ICMP message,
Destination unreachable (Port unreachable)

I cannot find any information about this. Anything special about
UDP based program?
Regards.
Leo

_______________________________________________
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


horms at verge

Nov 23, 2011, 2:23 AM

Post #2 of 15 (475 views)
Permalink
Re: [lvs-users] How to make LVS Direct Route work for UDP programs? [In reply to]

On Wed, Nov 23, 2011 at 05:06:34PM +0800, wang yi wrote:
> Hi, all
> I've set up LVS with DR mode for Apache, it worked OK. Then I set
> up another Virtual Service for an UDP based program on the same boxes,
> but it won't work.
>
> Running Wireshark on the director showed that it got the UDP
> packets from client, but responsed these packets with an ICMP message,
> Destination unreachable (Port unreachable)
>
> I cannot find any information about this. Anything special about
> UDP based program?

Hi Wang,

there shouldn't be anything particularly special about UDP.
Do you have a UDP (-u) virtual service configured as well
as the original TCP (-t) virtual service?

_______________________________________________
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


roger at rlmedia

Nov 23, 2011, 2:30 AM

Post #3 of 15 (475 views)
Permalink
Re: [lvs-users] How to make LVS Direct Route work for UDP programs? [In reply to]

Hi,

I think you need to set your application on the real servers to listen to the udp port on all ip's or at least the real ip and then it needs to respond to the client on the vip.

Roger.

On 23/11/2011, at 10:06 PM, wang yi wrote:

> Hi, all
> I've set up LVS with DR mode for Apache, it worked OK. Then I set
> up another Virtual Service for an UDP based program on the same boxes,
> but it won't work.
>
> Running Wireshark on the director showed that it got the UDP
> packets from client, but responsed these packets with an ICMP message,
> Destination unreachable (Port unreachable)
>
> I cannot find any information about this. Anything special about
> UDP based program?
> Regards.
> Leo
>
> _______________________________________________
> 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


leonis.wang at gmail

Nov 23, 2011, 6:39 AM

Post #4 of 15 (473 views)
Permalink
Re: [lvs-users] How to make LVS Direct Route work for UDP programs? [In reply to]

Sure, I've set up the UDP service.

By the way, I'm using Piranha on CentOS 5 to manage the LVS
configuration, maybe that's the problem?
I'll try to manage LVS with other approaches.


On Wed, Nov 23, 2011 at 6:23 PM, Simon Horman <horms [at] verge> wrote:
> On Wed, Nov 23, 2011 at 05:06:34PM +0800, wang yi wrote:
>> Hi, all
>>     I've set up LVS with DR mode for Apache, it worked OK. Then I set
>> up another Virtual Service for an UDP based program on the same boxes,
>> but it won't work.
>>
>>    Running Wireshark on the director showed that it got the UDP
>> packets from client, but responsed these packets with an ICMP message,
>> Destination unreachable (Port unreachable)
>>
>>    I cannot find any information about this. Anything special about
>> UDP based program?
>
> Hi Wang,
>
> there shouldn't be anything particularly special about UDP.
> Do you have a UDP (-u) virtual service configured as well
> as the original TCP (-t) virtual service?
>

_______________________________________________
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


leonis.wang at gmail

Nov 23, 2011, 6:45 AM

Post #5 of 15 (473 views)
Permalink
Re: [lvs-users] How to make LVS Direct Route work for UDP programs? [In reply to]

Yes, I tried to make my application listen to real IP / virtual IP /
INADDR_ANY, not working.

But I think the problem isn't that.
As I mentioned in the original post, the LVS router seemed not
delivering client packets to real servers, instead, it generated ICMP
message(Destination unreachable), and the packets may be dropped.

Wang

On Wed, Nov 23, 2011 at 6:30 PM, Roger Littin <roger [at] rlmedia> wrote:
> Hi,
>
> I think you need to set your application on the real servers to listen to the udp port on all ip's or at least the real ip and then it needs to respond to the client on the vip.
>
> Roger.
>
> On 23/11/2011, at 10:06 PM, wang yi wrote:
>
>> Hi, all
>>    I've set up LVS with DR mode for Apache, it worked OK. Then I set
>> up another Virtual Service for an UDP based program on the same boxes,
>> but it won't work.
>>
>>   Running Wireshark on the director showed that it got the UDP
>> packets from client, but responsed these packets with an ICMP message,
>> Destination unreachable (Port unreachable)
>>
>>   I cannot find any information about this. Anything special about
>> UDP based program?
>>   Regards.
>> Leo
>>
>> _______________________________________________
>> 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
>

_______________________________________________
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


graeme at graemef

Nov 23, 2011, 8:26 AM

Post #6 of 15 (470 views)
Permalink
Re: [lvs-users] How to make LVS Direct Route work for UDP programs? [In reply to]

On Wed, 2011-11-23 at 17:06 +0800, wang yi wrote:
> Running Wireshark on the director showed that it got the UDP
> packets from client, but responsed these packets with an ICMP message,
> Destination unreachable (Port unreachable)

I assume you have an iptables ruleset running there. Is there a hole in
it which lets those packets through?

Graeme


_______________________________________________
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


roger at rlmedia

Nov 23, 2011, 2:16 PM

Post #7 of 15 (465 views)
Permalink
Re: [lvs-users] How to make LVS Direct Route work for UDP programs? [In reply to]

Hi Wang,

I have had similar problems where the director thinks the packet size is larger than mtu of the real server and sends back this message.
Do you see anything in wireshark to indicate this. Overly large udp packet size?

I think when the network layer hands off the packet to lvs, it may have already reassembled any fragments and then when lvs hands it back to the network layer, it is rejected because it is too large.

Roger.

On 24/11/2011, at 3:45 AM, wang yi wrote:

> Yes, I tried to make my application listen to real IP / virtual IP /
> INADDR_ANY, not working.
>
> But I think the problem isn't that.
> As I mentioned in the original post, the LVS router seemed not
> delivering client packets to real servers, instead, it generated ICMP
> message(Destination unreachable), and the packets may be dropped.
>
> Wang
>
> On Wed, Nov 23, 2011 at 6:30 PM, Roger Littin <roger [at] rlmedia> wrote:
>> Hi,
>>
>> I think you need to set your application on the real servers to listen to the udp port on all ip's or at least the real ip and then it needs to respond to the client on the vip.
>>
>> Roger.
>>
>> On 23/11/2011, at 10:06 PM, wang yi wrote:
>>
>>> Hi, all
>>> I've set up LVS with DR mode for Apache, it worked OK. Then I set
>>> up another Virtual Service for an UDP based program on the same boxes,
>>> but it won't work.
>>>
>>> Running Wireshark on the director showed that it got the UDP
>>> packets from client, but responsed these packets with an ICMP message,
>>> Destination unreachable (Port unreachable)
>>>
>>> I cannot find any information about this. Anything special about
>>> UDP based program?
>>> Regards.
>>> Leo
>>>
>>> _______________________________________________
>>> 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
>>
>
> _______________________________________________
> 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


horms at verge

Nov 23, 2011, 4:09 PM

Post #8 of 15 (469 views)
Permalink
Re: [lvs-users] How to make LVS Direct Route work for UDP programs? [In reply to]

On Thu, Nov 24, 2011 at 11:16:10AM +1300, Roger Littin wrote:
> Hi Wang,
>
> I have had similar problems where the director thinks the packet size is larger than mtu of the real
> server and sends back this message. Do you see anything in wireshark to indicate this. Overly
> large udp packet size?
>
> I think when the network layer hands off the packet to lvs, it may have already reassembled any
> fragments and then when lvs hands it back to the network layer, it is rejected because it is too
> large.

Hi Roger,

if you are seeing that problem then I suggest turning off
both GRO and LRO on the interface on the director that receives
the packets.

e.g.
# ethtool -k eth0 | egrep '(receive-offload)'
generic-receive-offload: on
large-receive-offload: on

# ethtool -K eth0 lro off
# ethtool -K eth0 gro off

# ethtool -k eth0 | egrep '(receive-offload)'
generic-receive-offload: off
large-receive-offload: off


IPVS may be used in conjunction with GRO since 2.6.39,
so it should not be necessary to disable GRO if
a 2.6.39 is used.

IPVS is not compatible with LRO as of 3.1 (or 3.2, when it is released)

LRO is specific to TCP.
GRO affects both TCP and UDP (and other protocols IIRC).

_______________________________________________
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


leonis.wang at gmail

Nov 23, 2011, 4:57 PM

Post #9 of 15 (465 views)
Permalink
Re: [lvs-users] How to make LVS Direct Route work for UDP programs? [In reply to]

Nope. There's no iptables ruleset running there, and I think we do not
need to do extra iptables work to let those packets through, right?
I even disabled firewall and SELinux, but no luck.

Wang

On Thu, Nov 24, 2011 at 12:26 AM, Graeme Fowler <graeme [at] graemef> wrote:
> On Wed, 2011-11-23 at 17:06 +0800, wang yi wrote:
>>    Running Wireshark on the director showed that it got the UDP
>> packets from client, but responsed these packets with an ICMP message,
>> Destination unreachable (Port unreachable)
>
> I assume you have an iptables ruleset running there. Is there a hole in
> it which lets those packets through?
>
> Graeme
>
>
> _______________________________________________
> 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


leonis.wang at gmail

Nov 23, 2011, 5:08 PM

Post #10 of 15 (466 views)
Permalink
Re: [lvs-users] How to make LVS Direct Route work for UDP programs? [In reply to]

Now I'm testing a trivial UDP-based program with LVS, just a few bytes
in the packet.

Wireshark on the director shows the size of UDP packet is 520 bytes,
no overly large udp packet size message, and still I got "Destination
unreachable" ICMP.

I'm suspecting the network layer never pass these UDP packets to LVS...


Wang

On Thu, Nov 24, 2011 at 6:16 AM, Roger Littin <roger [at] rlmedia> wrote:
> Hi Wang,
>
> I have had similar problems where the director thinks the packet size is larger than mtu of the real server and sends back this message.
> Do you see anything in wireshark to indicate this.  Overly large udp packet size?
>
> I think when the network layer hands off the packet to lvs, it may have already reassembled any fragments and then when lvs hands it back to the network layer, it is rejected because it is too large.
>
> Roger.
>
> On 24/11/2011, at 3:45 AM, wang yi wrote:
>
>> Yes, I tried to make my application listen to real IP / virtual IP /
>> INADDR_ANY, not working.
>>
>> But I think the problem isn't that.
>> As I mentioned in the original post, the LVS router seemed not
>> delivering client packets to real servers, instead, it generated ICMP
>> message(Destination unreachable), and the packets may be dropped.
>>
>> Wang
>>
>> On Wed, Nov 23, 2011 at 6:30 PM, Roger Littin <roger [at] rlmedia> wrote:
>>> Hi,
>>>
>>> I think you need to set your application on the real servers to listen to the udp port on all ip's or at least the real ip and then it needs to respond to the client on the vip.
>>>
>>> Roger.
>>>
>>> On 23/11/2011, at 10:06 PM, wang yi wrote:
>>>
>>>> Hi, all
>>>>    I've set up LVS with DR mode for Apache, it worked OK. Then I set
>>>> up another Virtual Service for an UDP based program on the same boxes,
>>>> but it won't work.
>>>>
>>>>   Running Wireshark on the director showed that it got the UDP
>>>> packets from client, but responsed these packets with an ICMP message,
>>>> Destination unreachable (Port unreachable)
>>>>
>>>>   I cannot find any information about this. Anything special about
>>>> UDP based program?
>>>>   Regards.
>>>> Leo
>>>>
>>>> _______________________________________________
>>>> 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
>>>
>>
>> _______________________________________________
>> 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
>

_______________________________________________
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


leonis.wang at gmail

Nov 23, 2011, 6:15 PM

Post #11 of 15 (467 views)
Permalink
Re: [lvs-users] How to make LVS Direct Route work for UDP programs? [In reply to]

On Thu, Nov 24, 2011 at 8:09 AM, Simon Horman <horms [at] verge> wrote:
> On Thu, Nov 24, 2011 at 11:16:10AM +1300, Roger Littin wrote:
>> Hi Wang,
>>
>> I have had similar problems where the director thinks the packet size is larger than mtu of the real
>> server and sends back this message.  Do you see anything in wireshark to indicate this.  Overly
>> large udp packet size?
>>
>> I think when the network layer hands off the packet to lvs, it may have already reassembled any
>> fragments and then when lvs hands it back to the network layer, it is rejected because it is too
>> large.
>
> Hi Roger,
>
> if you are seeing that problem then I suggest turning off
> both GRO and LRO on the interface on the director that receives
> the packets.
>
> e.g.
> # ethtool -k eth0 | egrep '(receive-offload)'
> generic-receive-offload: on
> large-receive-offload: on
>
> # ethtool -K eth0 lro off
> # ethtool -K eth0 gro off
>
> # ethtool -k eth0 | egrep '(receive-offload)'
> generic-receive-offload: off
> large-receive-offload: off
>
>
> IPVS may be used in conjunction with GRO since 2.6.39,
> so it should not be necessary to disable GRO if
> a 2.6.39 is used.
>
> IPVS is not compatible with LRO as of 3.1 (or 3.2, when it is released)
>
> LRO is specific to TCP.
> GRO affects both TCP and UDP (and other protocols IIRC).
>
> _______________________________________________
> 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
>



Hi, Simon

Since you have mentioned kernel version here, I checked about that
and I'm running 2.6.18-238.19.1.el5.centos.plus, is that a bit too
old?

Wang

_______________________________________________
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


horms at verge

Nov 23, 2011, 7:29 PM

Post #12 of 15 (459 views)
Permalink
Re: [lvs-users] How to make LVS Direct Route work for UDP programs? [In reply to]

On Thu, Nov 24, 2011 at 10:15:30AM +0800, wang yi wrote:
> On Thu, Nov 24, 2011 at 8:09 AM, Simon Horman <horms [at] verge> wrote:
> > On Thu, Nov 24, 2011 at 11:16:10AM +1300, Roger Littin wrote:
> >> Hi Wang,
> >>
> >> I have had similar problems where the director thinks the packet size is larger than mtu of the real
> >> server and sends back this message.  Do you see anything in wireshark to indicate this.  Overly
> >> large udp packet size?
> >>
> >> I think when the network layer hands off the packet to lvs, it may have already reassembled any
> >> fragments and then when lvs hands it back to the network layer, it is rejected because it is too
> >> large.
> >
> > Hi Roger,
> >
> > if you are seeing that problem then I suggest turning off
> > both GRO and LRO on the interface on the director that receives
> > the packets.
> >
> > e.g.
> > # ethtool -k eth0 | egrep '(receive-offload)'
> > generic-receive-offload: on
> > large-receive-offload: on
> >
> > # ethtool -K eth0 lro off
> > # ethtool -K eth0 gro off
> >
> > # ethtool -k eth0 | egrep '(receive-offload)'
> > generic-receive-offload: off
> > large-receive-offload: off
> >
> >
> > IPVS may be used in conjunction with GRO since 2.6.39,
> > so it should not be necessary to disable GRO if
> > a 2.6.39 is used.
> >
> > IPVS is not compatible with LRO as of 3.1 (or 3.2, when it is released)
> >
> > LRO is specific to TCP.
> > GRO affects both TCP and UDP (and other protocols IIRC).
> >
> > _______________________________________________
> > 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
> >
>
>
>
> Hi, Simon
>
> Since you have mentioned kernel version here, I checked about that
> and I'm running 2.6.18-238.19.1.el5.centos.plus, is that a bit too
> old?

No, I don't think it is too old for the features you are using to work.

_______________________________________________
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


leonis.wang at gmail

Nov 24, 2011, 10:48 PM

Post #13 of 15 (438 views)
Permalink
Re: [lvs-users] How to make LVS Direct Route work for UDP programs? [In reply to]

On Wed, Nov 23, 2011 at 6:23 PM, Simon Horman <horms [at] verge> wrote:
> On Wed, Nov 23, 2011 at 05:06:34PM +0800, wang yi wrote:
>> Hi, all
>>     I've set up LVS with DR mode for Apache, it worked OK. Then I set
>> up another Virtual Service for an UDP based program on the same boxes,
>> but it won't work.
>>
>>    Running Wireshark on the director showed that it got the UDP
>> packets from client, but responsed these packets with an ICMP message,
>> Destination unreachable (Port unreachable)
>>
>>    I cannot find any information about this. Anything special about
>> UDP based program?
>
> Hi Wang,
>
> there shouldn't be anything particularly special about UDP.
> Do you have a UDP (-u) virtual service configured as well
> as the original TCP (-t) virtual service?
>

Hi, all

It turned out that the UDP service configured with the
nice-looking Piranha is not working!
OMG!!!

Simon's post inspired me, so I reconfigured UDP-based virtual
service with ipvsadm in a console, and it worked.

So, a lesson for those who have problems with LVS using Piranha,
forget about Piranha and try other ways to configure your service.

cheers
Wang

_______________________________________________
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


graeme at graemef

Nov 25, 2011, 8:06 AM

Post #14 of 15 (436 views)
Permalink
Re: [lvs-users] How to make LVS Direct Route work for UDP programs? [In reply to]

On Fri, 2011-11-25 at 14:48 +0800, wang yi wrote:
> It turned out that the UDP service configured with the
> nice-looking Piranha is not working!

I find that rather surprising, considering one of the documented use
cases for Piranha is to load balance DNS requests!

Did you specify "protocol = udp" in the configuration?

Graeme


_______________________________________________
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


leonis.wang at gmail

Nov 30, 2011, 10:45 PM

Post #15 of 15 (391 views)
Permalink
Re: [lvs-users] How to make LVS Direct Route work for UDP programs? [In reply to]

On Sat, Nov 26, 2011 at 12:06 AM, Graeme Fowler <graeme [at] graemef> wrote:
> On Fri, 2011-11-25 at 14:48 +0800, wang yi wrote:
>> It turned out that the UDP service configured with the
>> nice-looking Piranha is not working!
>
> I find that rather surprising, considering one of the documented use
> cases for Piranha is to load balance DNS requests!
>
> Did you specify "protocol = udp" in the configuration?
>
> Graeme

Sure, I checked the "protocol = udp" option many, many times.

For what I know now is that I tried to configure a udp-based program
with Piranha for a lot of times, but it did not work, while at the
same time, tcp based service(Apache) worked fine.
But, it could be my fault, I just don't know what's it :-)


Wang

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

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.