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

Mailing List Archive: Linux Virtual Server: Users

[lvs-users] Keepalive timeout

 

 

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


achapela.rexistros at gmail

Oct 1, 2009, 6:28 AM

Post #1 of 5 (515 views)
Permalink
[lvs-users] Keepalive timeout

Hello,

I am getting problems with keepalive timeout. I have a visual basic
application that is opening a connection to another Windows Server
across the LVS director. This connection will be an idle connection.
This is the reason why the VB application needs to reconnect and why the
server has a lot of open connections.

Then I am thinking on using keepalive to maintain alive the connection
but the problem is that VB hasn't keepalive socket option modifying.
Then I am thinking on do some tweak on the director but I don't know
what because I don't want to waste resource maintaining connections on
all virtual servers configured on the LVS director. Maybe someone has
resolved this issue or has a workaround.

Regards,

Thank you!

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

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


jmack at wm7d

Oct 1, 2009, 7:12 AM

Post #2 of 5 (477 views)
Permalink
Re: [lvs-users] Keepalive timeout [In reply to]

On Thu, 1 Oct 2009, Adrian Chapela wrote:

> Hello,
>
> I am getting problems with keepalive timeout.

which keepalive?

> I have a visual basic application

where? client, realserver?

> that is opening a connection to another Windows Server
> across the LVS director.

why is the director in the path?

> This connection will be an idle connection. This is the
> reason why the VB application needs to reconnect and why
> the server

what is the server? the realserver? some other box?

Do you know about setting idle timeouts (see 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!

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

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


achapela.rexistros at gmail

Oct 1, 2009, 11:39 PM

Post #3 of 5 (469 views)
Permalink
Re: [lvs-users] Keepalive timeout [In reply to]

Joseph Mack NA3T escribió:
> On Thu, 1 Oct 2009, Adrian Chapela wrote:
>
>
>> Hello,
>>
>> I am getting problems with keepalive timeout.
>>
>
> which keepalive?
>
>
>> I have a visual basic application
>>
>
> where? client, realserver?
>
>
>> that is opening a connection to another Windows Server
>> across the LVS director.
>>
>
> why is the director in the path?
>
>
>> This connection will be an idle connection. This is the
>> reason why the VB application needs to reconnect and why
>> the server
>>
>
> what is the server? the realserver? some other box?
>
> Do you know about setting idle timeouts (see the HOWTO)
>

Don't get angry please. I am searching and If I am asking is because I
am lost in found the real problem. In your lines you have tell me the
real problem. A tcp timeout that is reaching in all connections on the
director.

Re-reading the HOWTO I found the next command:

$ipvsadm --set tcp tcpfin udp

With this command I think on a problem. If I modify the tcp timeout I
will affect all tcp connections (If I only modify tcp parameter...) and
if you have a lot of connections you could waste all of your machine
resources. Is there any way (I think that the HOWTO doesn't mention
this possibility ;) ) to apply a timeout to a virtual server.


Thank you!

Happy weekend!!
> Joe
>
>


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

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


horms at verge

Oct 3, 2009, 1:28 AM

Post #4 of 5 (459 views)
Permalink
Re: [lvs-users] Keepalive timeout [In reply to]

On Fri, Oct 02, 2009 at 08:39:55AM +0200, Adrian Chapela wrote:
> Joseph Mack NA3T escribió:
> > On Thu, 1 Oct 2009, Adrian Chapela wrote:
> >
> >
> >> Hello,
> >>
> >> I am getting problems with keepalive timeout.
> >>
> >
> > which keepalive?
> >
> >
> >> I have a visual basic application
> >>
> >
> > where? client, realserver?
> >
> >
> >> that is opening a connection to another Windows Server
> >> across the LVS director.
> >>
> >
> > why is the director in the path?
> >
> >
> >> This connection will be an idle connection. This is the
> >> reason why the VB application needs to reconnect and why
> >> the server
> >>
> >
> > what is the server? the realserver? some other box?
> >
> > Do you know about setting idle timeouts (see the HOWTO)
> >
>
> Don't get angry please. I am searching and If I am asking is because I
> am lost in found the real problem. In your lines you have tell me the
> real problem. A tcp timeout that is reaching in all connections on the
> director.
>
> Re-reading the HOWTO I found the next command:
>
> $ipvsadm --set tcp tcpfin udp
>
> With this command I think on a problem. If I modify the tcp timeout I
> will affect all tcp connections (If I only modify tcp parameter...) and
> if you have a lot of connections you could waste all of your machine
> resources. Is there any way (I think that the HOWTO doesn't mention
> this possibility ;) ) to apply a timeout to a virtual server.

Hi Adrian,

the ipvsadm command above will set the timeouts for all connections to
virtual services, but not for connections to the director that are not
being handled by LVS. Does that suit your needs?


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

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


achapela.rexistros at gmail

Oct 5, 2009, 11:22 PM

Post #5 of 5 (435 views)
Permalink
Re: [lvs-users] Keepalive timeout [In reply to]

Simon Horman escribió:
> On Fri, Oct 02, 2009 at 08:39:55AM +0200, Adrian Chapela wrote:
>
>> Joseph Mack NA3T escribió:
>>
>>> On Thu, 1 Oct 2009, Adrian Chapela wrote:
>>>
>>>
>>>
>>>> Hello,
>>>>
>>>> I am getting problems with keepalive timeout.
>>>>
>>>>
>>> which keepalive?
>>>
>>>
>>>
>>>> I have a visual basic application
>>>>
>>>>
>>> where? client, realserver?
>>>
>>>
>>>
>>>> that is opening a connection to another Windows Server
>>>> across the LVS director.
>>>>
>>>>
>>> why is the director in the path?
>>>
>>>
>>>
>>>> This connection will be an idle connection. This is the
>>>> reason why the VB application needs to reconnect and why
>>>> the server
>>>>
>>>>
>>> what is the server? the realserver? some other box?
>>>
>>> Do you know about setting idle timeouts (see the HOWTO)
>>>
>>>
>> Don't get angry please. I am searching and If I am asking is because I
>> am lost in found the real problem. In your lines you have tell me the
>> real problem. A tcp timeout that is reaching in all connections on the
>> director.
>>
>> Re-reading the HOWTO I found the next command:
>>
>> $ipvsadm --set tcp tcpfin udp
>>
>> With this command I think on a problem. If I modify the tcp timeout I
>> will affect all tcp connections (If I only modify tcp parameter...) and
>> if you have a lot of connections you could waste all of your machine
>> resources. Is there any way (I think that the HOWTO doesn't mention
>> this possibility ;) ) to apply a timeout to a virtual server.
>>
>
> Hi Adrian,
>
> the ipvsadm command above will set the timeouts for all connections to
> virtual services, but not for connections to the director that are not
> being handled by LVS. Does that suit your needs?
>
Yes because the service doesn't do any connection management. Only
listening a connection and then open the connection but never close the
connection. This is a problem because the service (but it is not a
keepalived problem ;) ) is wasting a lot of server resources by old
connections, failure connections.

thank you!


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

LinuxVirtualServer.org mailing list - lvs-users[at]LinuxVirtualServer.org
Send requests to lvs-users-request[at]LinuxVirtualServer.org
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 lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.