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  July 2012

XROOTD-DEV July 2012

Subject:

Re: Thoughts on redirection plugins

From:

Andrew Hanushevsky <[log in to unmask]>

Reply-To:

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

Date:

Thu, 12 Jul 2012 21:56:01 -0700

Content-Type:

TEXT/PLAIN

Parts/Attachments:

Parts/Attachments

TEXT/PLAIN (61 lines)

Hi Brian,

I think what you really want, on the first order, is time-zone selection. 
That is on our short-term plan. All servers currently report time-zone the 
old client does not but the new client will (we obviously can back-port to 
the old client). While this doesn't solve Nort/South issues it gets close 
enough for now. Our longer term plan is to have the client rebroker the 
selection based on actual server performance; which as you have noted is 
more important than the place your getting data from.

Andy

On Fri, 6 Jul 2012, Brian Bockelman wrote:

> Hi,
>
> Yesterday, two different people bugged me about smarter redirection algorithms, so I figured I should start thinking about them again.  I have come up with a slight modification of the existing redirection algorithm.  This modification, explained in detail below, reuses most of the existing, is effectively a no-op in the default case, and is hopefully a very small modification.
>
> Basically, it seems we need to be able to do three things:
>
> (0) Pass client information to the cmsd.  [Pretty easy - this can be added to the opaque information by the cmsd client.]
> (1) Make a decision about which nodes to query on behalf of a client.  I.e., there may be some nodes that are too costly for a particular client, and should only be queried as a last-resort.  The obvious example is not querying sites across the Atlantic if there are sites on this side not yet queried.  Reducing the number of sites queried reduces the load on the entire system.
> (2) Of the nodes with the file, the cmsd should be able to prefer one set over another according to which ones are least costly.  If there are nodes on both sides of the Atlantic available to serve the file, the cmsd should select the local one.
>
> Right now, there is an XMI interface that allows us to bypass the entire cmsd stack and implement our own.  I'd *really* like to avoid that, because the first thing I would need to do is re-implement most of the existing cmsd stack.
>
> Instead, I propose a new XMI callout to provide a "preference mask".  The preference mask is a fixed-size array of Smask_t.  A node's preference is the highest position in the array where it is selected.  So, if bit 3 is in mask[N], but not mask[N+1], its preference is N (highest preference "wins").
>
> The default preference mask is, when no callout is provided, [0xFFFFFFFF, 0x0].  The preference mask is determined based on the path and opaque information (which will be extended to, at least, contain the client hostname), and passed to the XrdCmsCluster.Select method.
>
> XrdCmsSelect can be extended to keep track of all nodes which have been queried.  For a new query, only nodes with the highest preference are queried.  Each time the client returns back to XrdCmsCluster.Select, it iterates backwards through the preference masks until it finds one that does not have nodes queried.
>
> For example - suppose a client is determined to be on the US West coast.  The preference mask would be (1) all known nodes, (2) all US nodes, (3) all California nodes.  The first time it asks for a file, the server will broadcast the request to (3).  It will either (a) find the file and go to SelNode, (b) not get back responses within the fast-lookup time and delay the client or (c) determine all nodes of preference 3 do not have the file.  In the case of (c), it will immediately broadcast a query to nodes of preference (2) and delay the client.
>
> The next time the client returns, the preference mask is calculated from the opaque info.  Assuming case (b) above for illustration, if the file location is still not known, XrdCmsCluster will see that all the nodes in preference (3) are already queried and broadcast a query to nodes of preference (2).  Note that we do not wait until the query has timed-out for nodes of preference (3) before querying (2); we just wait until the next client re-connect.
>
> To make sure you understand how it works, figure out what happens if a client from the west coast and a client from Germany (assume their preferences for 2 and 3 are non-overlapping) both query within a second of each other.
>
> Now, when one or more nodes are found, we also reuse the preference mask in SelNode to determine which one is returned to the client.  Iterate through the preference masks - most specific to least specific - to find the first case where the intersection of the mask and the available nodes is nonzero.  Then, apply the "normal" weighted selection criteria to this set.
>
> For example - suppose we've determined a file is in Lincoln, Chicago and London; the client is again on the US West coast.  The intersection of preference (3) nodes and the file locations is null.  Then, we consider the intersection of (3) and the locations; this returns only Lincoln and Chicago.  These two sites are used for the remainder of the logic in SelNode.
>
> While I don't think our region-based system is going away anytime soon, I think this will help with clients starting at the global redirector.  This should also help us grow as we wouldn't need to maintain many layers of regions.  We could have a three layer scheme (Global, Continental, Local) with sufficiently smart redirectors so we don't need to add another layer of the hierarchy between Continental and Local.
>
> Thoughts?  I think this is simple enough I can implement it within the existing code.
>
> Brian
>
> ########################################################################
> 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