Mailinglist Archive: zypp-devel (75 mails)

< Previous Next >
[zypp-devel] [SoC-student] Comments and new ideas about implementation of failover concept
  • From: "Gerard Farràs i Ballabriga" <gfarrasb@xxxxxxxxx>
  • Date: Tue, 20 May 2008 17:44:39 +0200
  • Message-id: <d854767f0805200844i7c9ab89cw4b7065c2e9b35fbb@xxxxxxxxxxxxxx>
Hello, good afternoon :-)

There are some new ideas and changes about implementation details of
the concept of failover [1].

Before, our idea was to modify MediaCurl class [2] to parse a list of
mirrors like this [3].

But now, new idea is to use only metalink files ([4] [5]) and don't
use anymore this type of mirror lists.

Libzypp could download files using an external program (ej. aria2c
[6]) to avoid having to implement all the logic from zero.

Why this change?

- Because we think than we are reinventing the wheel in things like:

* Parse HTTP codes and act according to these.
* To choose the fastest mirror.

How to implement?

I think we can do the implementation with some changes:

- Modify media/MediaAccess.cc [7] and check if there are available
tools like aria2c in the target system.
- If we get a negative response we must use MediaCurl (like now).
- If we get a positive response we can use a "new" class called
MediaArise (or something like this) which uses aria2c to download
files using Medialink from network.

What do you think about this idea? Any comments for this
implementation? Dr. Poeml, please, feel free to correct me if there
are any error.

Obviously, any suggestion or comment will be more than welcome :-).

Thanks :-)

Gerard

[1] http://en.opensuse.org/Libzypp/Failover
[2] http://svn.opensuse.org/svn/zypp/trunk/libzypp/zypp/media/MediaCurl.h
[3]
http://download.opensuse.org/distribution/10.3/repo/oss/suse/repodata/primary.xml.gz?mirrorlist
[4] http://www.metalinker.org/
[5]
http://download.opensuse.org/distribution/10.3/repo/oss/suse/repodata/primary.xml.gz.metalink
[6] http://aria2.sourceforge.net/
[7] http://svn.opensuse.org/svn/zypp/trunk/libzypp/zypp/media/MediaAccess.cc
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx

< Previous Next >