Difference between revisions of "Mirrorlist CGI Script"

From CDOT Wiki
Jump to: navigation, search
(Created page with '= Package the Mirrorlist CGI Script Library = <!-- Replace "Project Name" with the actual name of the project in the line above. --> == Project Description == This project will…')
 
(Package the Mirrorlist CGI Script Library)
Line 25: Line 25:
 
== Project Details ==
 
== Project Details ==
  
CGI
+
Dependencies required:
 +
* ping
 +
* grep
 +
* sed
 +
* awk
 +
 
 +
The following are optional:
 +
* scamper
 +
 
 +
The algorithm for the script measures the speed of each mirrorlist and repository within the yum mirrorlist.
 +
By using the ping command the script will capture the time for an icmp packet to return from the target destination
 +
* The script will capture 4 packets per site
 +
* awk and sed will be used to extract the last two lines of the ping results
 +
 
 +
For each site, the data will be stored in a database for future references.
 +
* The database will be rearranged by using sed by ascending order
 +
* After the rearrangement the data will be append to the current yum static file.
 +
When yum performs an update or installation of a package it will refer to the static file's first line and work its way down the list.
 +
 
 +
This algorithm will execute in the following condtions
 +
* A change in gateway IP address
 +
* Change in DNS server IP address
 +
 
 +
 
 +
 
 +
 
  
  

Revision as of 22:10, 9 October 2013

Package the Mirrorlist CGI Script Library

Project Description

This project will create a script that will optimize the performance of all yum updates and package installation.

Project Leader

Matthew Kam-Man Wong

Project Contributor(s)

  • TBA

Project Details

Dependencies required:

  • ping
  • grep
  • sed
  • awk

The following are optional:

  • scamper

The algorithm for the script measures the speed of each mirrorlist and repository within the yum mirrorlist. By using the ping command the script will capture the time for an icmp packet to return from the target destination

  • The script will capture 4 packets per site
  • awk and sed will be used to extract the last two lines of the ping results

For each site, the data will be stored in a database for future references.

  • The database will be rearranged by using sed by ascending order
  • After the rearrangement the data will be append to the current yum static file.

When yum performs an update or installation of a package it will refer to the static file's first line and work its way down the list.

This algorithm will execute in the following condtions

  • A change in gateway IP address
  • Change in DNS server IP address




Project Plan

Tracking

  • Bugzilla or Trac will be used for review management.


Goals by Release

Goals for each release and plans for reaching those goals:

  • 0.1 - Initial packaging. Package sent for review in Fedora (if this is useful on devices beyond the Pi) or Pidora (if useful only on the Pi)
  • 0.2 - Review issues addressed, package through the review process.
  • 0.3 - Package in Fedora or Pidora.

Communication

Mailing Lists

  • Google group:

Upsteam Wiki and Web

Links/Bugs/Tracking

Source Code Control

Blogs


Project News

  • 2013-10-07: Project started!