repox icon indicating copy to clipboard operation
repox copied to clipboard

Determine the fastest repo dynamically?

Open freewind opened this issue 10 years ago • 3 comments

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

freewind avatar Dec 15 '14 03:12 freewind

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.

Centaur avatar Dec 15 '14 03:12 Centaur

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.

freewind avatar Dec 15 '14 03:12 freewind

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.

Centaur avatar Dec 15 '14 04:12 Centaur