pyvo icon indicating copy to clipboard operation
pyvo copied to clipboard

Feature request : requesting VO services with mirrors

Open bmatthieu3 opened this issue 7 years ago • 4 comments

It could be great if the user could give a list of mirrors for requesting a specific VO service like this :

scs_srv = vo.dal.SCSService([ 'mirror_1', ..., 'mirror_n']) scs_results = scs_srv.search(pos=pos, radius=size)

Something like, if the first mirror does not respond (DALServiceError raised) one can ask the second etc...

bmatthieu3 avatar Apr 17 '18 08:04 bmatthieu3

I won't put mirror support directly into the service classes, but i'll think about a proxy object or something...

funbaker avatar Apr 21 '18 08:04 funbaker

Just tried this with variable arguments, but without python3's keyword only arguments this won't work. And tbh i don't really like the list argument solution.

funbaker avatar Jun 11 '18 16:06 funbaker

I'm not sure about the merit of letting users put this information in, but RegTAP 1.1 (so far only in WD, but implemented in our default registry at https://reg.g-vo.org/tap) has a mirror_url column in rr.interface that would let us automatically configure mirrors.

If someone puts in the necessary code for fallback query URLs in the service objects, I'll do the registry side...

msdemlei avatar Jan 25 '23 09:01 msdemlei

in, but RegTAP 1.1 (so far only in WD, but implemented in our default

Ummm. Rubbish. Marco just corrects me that while mirror_url did indeed go in in RegTAP 1.1, what is in WD right now is RegTAP 1.2. RegTAP 1.1 is REC (and implemented also at STScI); hence mirror_url (and there are a lot of them in the Registry,

9select count(*) from rr.interface where mirror_url is not null

gives 73170 at the moment) would be available rather reliably.

msdemlei avatar Jan 25 '23 09:01 msdemlei