Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 359826

Summary: Feature request: Mirror redirect page for automated downloads
Product: Community Reporter: Ville Oikarinen <ville>
Component: WebsiteAssignee: phoenix.ui <phoenix.ui-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: ville, webmaster
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Ville Oikarinen CLA 2011-10-04 07:49:48 EDT
Build Identifier: 

Hi.

The current eclipse download page already does some kind of load balancing by automatically selecting a mirror. This seems to be meant for humans only, though. There seems to be no id or anything that could make it possible to reliably automate downloading from the autoselected mirror.

Load balancing downloader scripts would work best, if there was a dedicated link that returns a redirect to the autoselected mirror. Some other download sites have this.

Currently my eclipse downloader/installer script 
(http://iwant.svn.sourceforge.net/viewvc/iwant/trunk/iwant-core/src/main/bash/new-eclipse-env/) uses a hard-coded mirror, but this won't be fair to the mirror maintainers, if more people start using it.

Plan B would be to add an id to the link that points to the autoselected mirror. This way the downloader script could parse the link. But this means more work for the script authors, so the redirect page would be better.

Reproducible: Always

Steps to Reproduce:
1. Navigate to download page
2. Autoselected mirror only available as human-clickable link
3.
Comment 1 Eclipse Webmaster CLA 2011-10-04 09:23:08 EDT
Just add "&r=1" to the downloads url and that should automatically redirect to the 'best' mirror.  Or have you tired this and it's not working?

-M.
Comment 2 Ville Oikarinen CLA 2011-10-04 10:04:15 EDT
No, I was not aware of any r query parameter. Thanks, I'll try it tomorrow.

Is this documented somewhere?
Comment 3 Eclipse Webmaster CLA 2011-10-04 10:30:25 EDT
As I recall it was added a couple of years ago in response to a bug request(and documented there).  Can't seem to find it though.

I'll resolve this as 'worksforme' feel free to reopen if it's broken.

-M.
Comment 4 Eclipse Webmaster CLA 2011-10-04 10:30:41 EDT
Sigh.

-M.
Comment 5 Denis Roy CLA 2011-10-04 10:40:14 EDT
> Is this documented somewhere?

It's documented in the code? 

I've added a "Options for this file" section which gives you some options:

http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/indigo/SR1/eclipse-java-indigo-SR1-linux-gtk-x86_64.tar.gz
Comment 6 Ville Oikarinen CLA 2011-11-08 06:19:45 EST
Thanks, not only does the r=1 trick work for me, but now it also seems to be documented in an optimal way: The link "Direct link to file (download starts immediately from best mirror)" on the download page.

I guess now nobody will request it again :)