LISTSERV mailing list manager LISTSERV 16.5

Help for XROOTD-DEV Archives


XROOTD-DEV Archives

XROOTD-DEV Archives


XROOTD-DEV@LISTSERV.SLAC.STANFORD.EDU


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

XROOTD-DEV Home

XROOTD-DEV Home

XROOTD-DEV  August 2013

XROOTD-DEV August 2013

Subject:

Re: Connections from XrdCl hanging on xrootd proxy server

From:

Matevz Tadel <[log in to unmask]>

Reply-To:

xrootd developers' list for Scalla/xrootd repository and related issues <[log in to unmask]>

Date:

Sat, 31 Aug 2013 21:01:00 -0700

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (119 lines)

Hi Andy,

Thanks for bearing with us through all this thread :)

On 08/31/13 20:28, Andrew Hanushevsky wrote:
> OK, this is what started the whole problem and a dive into the wrong direction
> of serializing everything in the proxy server. Indeed, a long time ago Lukasz
> and I discussed whether the client should close idle connections and I said why
> bother, it would simplify the code by just allowing the server to do it. While
> that was the right response for standard client jobs it was wrong for long-lived
> servers that act like clients (i.e. proxy server). First, the server-side
> timeout is set off by default. You need to enable it and few people do as it
> rarely causes a problem (sites with badly behaving VM hypervisors normally turn
> the timeout on). Second, I didn't consider the side-effect on the proxy server.
> So, what to do? I suspect the only real solution to this issue is to implement
> an idle timeout in the new client. It's likely that we would need two timeouts
> (just like in the old client) -- one for redirectors (a longish timeout) and one
> for servers (a shortisj timeout). The actual values would be controlled by some
> "envar".

Keep in mind that if we force creation of sockets for each client, it might not
make much sense to keep them alive ... or old, non-used sockets can get reused
by new clients? Will this be properly reported in the monitoring 'u' stream?

Andy, within the discussion I also asked for 't' stream to be flushed on close
event. This way monitoring can be done with the file even though the session
still remains opened for unknown period of time.

> Lukasz, what's the possibility of adding this?

I'd also like to ask for this special case ... if timeouts are set to 0, the all
sockets used by a client should be closed on the spot. In the old client there
were weird interferences that practically made sockets live for hours, sometimes
days, even if the timeout was set to 10 minutes.

Matevz

> Andy
> 
> On Thu, 22 Aug 2013, Matevz Tadel wrote:
> 
>> Hi Lukasz, Andy,
>>
>> On 8/22/13 7:52 AM, Lukasz Janyst wrote:
>>> Hi Alja,
>>>
>>>     that's a feature. The connection manager used to have idle time after which
>>> the connections were closed but Andy's preference was to manage connection life
>>> from the server-side.
>>
>> Hmmh ... then it seems the servers are not doing a too good job :( If you look
>> at the netstat dump, there are 105 connections to CMS meta-manager at
>> xrootd.unl.edu alone and 150 connections to various data servers ... and this
>> is after replaying a one-day-worth of access from UCSD (320 files) and waiting
>> for /three days/. So, the servers don't close all of them.
>>
>> The problem here is that proxy process stays up for a long time and it
>> instantiates a new XrdCl for every file it is downloading.
>>
>> Andy, another problem here is with detailed monitoring ... I never get the
>> last message of the 't' stream, the one containing the close so monitor thinks
>> the files are still kept opened. As there is no disconnect and there are is no
>> new activity on the channel, the buffers keeps sitting on the server. If this
>> stays like this ... can I ask for 'close' event to cause flushing of the 't'
>> stream when io[v] is in effect?
>>
>> Cheers,
>> Matevz
>>
>>
>>> Cheers,
>>>     Lukasz
>>>
>>> On 22.08.2013 16:15, Alja Mrak-Tadel wrote:
>>>> Hello,
>>>>
>>>> I'm testing a proxy server with new client (branch xrdposixcl) and I
>>>> noticed that socket connections stay open for days. Here is an example
>>>> of netstat command on the machine I run xrootd proxy:
>>>>    http://uaf-2.t2.ucsd.edu/~alja/netstat.txt
>>>> Notice also there are several connections to the meta manager,
>>>> xrootd.unl.edu.
>>>>
>>>>  From xrootd log http://uaf-2.t2.ucsd.edu/~alja/proxy.log I can see
>>>> XrdCl::File::Close() is called but it is difficult to trace why sockets
>>>> are left open.
>>>>
>>>> I'm working on a caching proxy server, where it is important that
>>>> connections get closed reasonably soon ... the proxy is potentially
>>>> accessing all Xrootd servers in a federation.
>>>>
>>>> Thanks,
>>>> Alja
>>>>
>>>> ########################################################################
>>>> Use REPLY-ALL to reply to list
>>>>
>>>> To unsubscribe from the XROOTD-DEV list, click the following link:
>>>> https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1
>>>
>>> ########################################################################
>>> Use REPLY-ALL to reply to list
>>>
>>> To unsubscribe from the XROOTD-DEV list, click the following link:
>>> https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1
>>
>> ########################################################################
>> Use REPLY-ALL to reply to list
>>
>> To unsubscribe from the XROOTD-DEV list, click the following link:
>> https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1
>>

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1

Top of Message | Previous Page | Permalink

Advanced Options


Options

Log In

Log In

Get Password

Get Password


Search Archives

Search Archives


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010

ATOM RSS1 RSS2



LISTSERV.SLAC.STANFORD.EDU

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager

Privacy Notice, Security Notice and Terms of Use