URL Redirection System for the Mirror Network
- Status: Brain storming
The OpenOffice.org Mirror Network consists of several mirror servers spreading over the world. Each mirror server has its own URL. Meanwhile, Download Central could not list all mirror servers in its Web page.
One of the possible solutions is to utilize URL Redirection. URL Redirection is one of the techniques to guide users to appropriate Web site based on certain criteria.
With URL Redirection, a download request by a user could be automatically transferred to one of the mirror servers closely located to the user.
- Running 24 hours, 7 days.
- Ease of use for users, mirror server administrators, operators, members of release engineering team network administrators, and staffs of the mirror project.
- Ability to measure statistics of requests.
- others, ...
URL Redirection System
To keep the system run around 24 hours, 7 days, at least two servers would be necessary. Each server could be located in individual county for some reasons:
- System might crash, parts might get broken, ...
- Load balancing.
The URL Redirection system would be composed of several servers:
- Mirror servers
- Subversion server
- URL Redirection servers
- DNS servers
- Some PCs
- A user visits a download Web page such as Download Central, OpenOffice.org download, and click on one of the links to download a OpenOffice.org.
- User's PC make a DNS query to resolve an IP address.
- DNS server responses with two IP addresses: IPs of Redirector #1 and #2.
- User's PC randomly choose one of the IP addresses and make a request to the Redirector addressed by the IP address.
- Redirector #x processes the request and responses with a HTML page if the request pointing to a directory or responses with a new location addressing to one of the mirror server.
- User's Web browser does rendering the HTML page or starting to download the file.
Mirror server administrators' view
- An administrator checks out a Subversion repository of mirror site configurations.
- The administrator locally update the configurations and then checks in the modifications.
- The SVN module in each redirection server periodically updates its local repository by getting the modifications.
- The SVN module updates DB with the latest data.
- Activities of modification are openly kept under surveillance with Subversion Web browsing system.
Staffs and developers' view
- A staff updates mirror site configuration with Subversion.
- A developer creates new version of the system and upload the program to the staging server in the redirection server.
- Testers conduct a test of the new version.
- An operator switches the production server and staging server.
- The operator switches back them if something goes wrongly.
Network administrators' view
- A network administrator tweak DNS entries to make all requests address to one of the redirection servers if planed blackout is coming or a task of maintenance is scheduled.
- The network administrator makes it back after the things are finished.
- Migration to MirrorBrain, launching the initial small system.
- Migration of mirror site configurations to OpenOffice.org Subversion server.
- Launching the second redirection server.
- Enhancing the system.
- Closing when the system becomes no longer needed.