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

Determine the fastest repo dynamically? #3

Open
freewind opened this issue Dec 15, 2014 · 3 comments
Open

Determine the fastest repo dynamically? #3

freewind opened this issue Dec 15, 2014 · 3 comments
Labels

Comments

@freewind
Copy link
Contributor

Sometimes, I have to connect to the VPN of our client in order to download some dependencies from client's private server, which is in another country. But I found repox is still trying to read dependences from some repos in China first, which is slow at this case.

Is there any way to resolve it? I have an option (which is not best though):

Let repox check the response time of each server consistently, and try the fastest one for each request

@Centaur
Copy link
Owner

Centaur commented Dec 15, 2014

Please read wiki page
https://github.com/Centaur/repox/wiki/%E5%85%A5%E9%97%A8%E6%8C%87%E5%8D%97
https://github.com/Centaur/repox/wiki/%E9%85%8D%E7%BD%AE%E4%B8%8A%E6%B8%B8%E4%BB%93%E5%BA%93
Repox has a web admin interface, you can change upstream repo priority according to your network configuration.

@freewind
Copy link
Contributor Author

Thanks, I've read that, but the problem is I switch my network frequently (maybe more than 10 times a day, switch from non-vpn/my-own-vpn/client-vpn), that adjust the orders of them each time will be a hard work.

@Centaur
Copy link
Owner

Centaur commented Dec 15, 2014

I see. Dynamiclly adjust repo priority is not very practical in my opinion. As for your case, maybe we can implement a multiple-profile strategy? You save each profile once, and every time you change your network profile, you can switch repo profile on repox web admin page by just click a button. I'll think about it.

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

No branches or pull requests

2 participants