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

Feature request: open source script that mirrors the Julia Computing storage servers and serves them statically #79

Open
DilumAluthge opened this issue Sep 8, 2020 · 2 comments

Comments

@DilumAluthge
Copy link
Member

I do think that we should have an open source script that mirrors the Julia Computing storage servers and serves them statically. That will act as a backup in case the JC storage servers go down.

Originally posted by @StefanKarpinski in JuliaRegistries/General#16777 (comment)

@johnnychen94
Copy link
Contributor

johnnychen94 commented Sep 8, 2020

https://github.com/johnnychen94/StorageMirrorServer.jl is used to build the mirror storage server in BFSU, TUNA and SJTUG.

Unlike the previous gen_static.jl script, this one doesn't build any tarball locally, it simply downloads the resources from the existing upstream.

@StefanKarpinski
Copy link
Collaborator

I'm not sure this is the right place for this issue since it's not really a PkgServer feature, but I'm not sure where is the right place, so this will do. The basic idea is for storage servers to (optionally) add /packages and /artifacts end-points that list all the package versions and artifacts that they know about in the same way that /registries lists the current heads of all registries that they serve (one resource per line). Then you can mirror a storage server simply by fetching those lists and fetching each item (and there's never any eed to fetch items that you already have).

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

No branches or pull requests

3 participants