Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support XRootD URLs with multiple servers. #5

Open
chrisburr opened this issue May 16, 2020 · 3 comments
Open

Support XRootD URLs with multiple servers. #5

chrisburr opened this issue May 16, 2020 · 3 comments
Labels
feature New feature or request

Comments

@chrisburr
Copy link
Member

From the TXNetFile docs:

The "url" argument must be of the form

root://server1:port1[,server2:port2,...,serverN:portN]/pathfile,

Note that this means that multiple servers (>= 1) can be specified in the url. The connection will try to connect to the first server:port and if that does not succeed, it will try the second one, and so on until it finds a server that will respond.

I didn't realise this was an pre-existing feature in ROOT but I'd been asking for it for a while. Being able to do this better matches with how data is stored on the grid and makes it easier to when sites are down.

The implementation of this shouldn't only check that the server is alive, it should also fallback if errors are returned when trying to access the data (i.e. only querying the config isn't enough to know if the site is down).

@chrisburr chrisburr added the feature New feature or request label May 16, 2020
@jpivarski
Copy link
Member

Are the fallbacks accessible in the XRootD.client.URL object?

Recovering from a nonexistent URL takes quite a while. The timeout has to be an integer number of seconds and passing "1" means as much as 5‒10 seconds in practice. (Eventually, I'll be turning off unit test #1, or at least making it part of a "long tests" suite.)

@jpivarski
Copy link
Member

@lobis, @nsmith-, is this something that can be done with fsspec-xrootd now?

It could be cool to finish off an issue with a low number like #5!

@nsmith-
Copy link
Collaborator

nsmith- commented Jan 30, 2024

I think this ties very closely with CoffeaTeam/fsspec-xrootd#36 The implementations would share a lot of the same logic w.r.t. keeping open connections to multiple servers and ensuring we use the best server for a file at any given time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants