On 1/17/06, Anuradha Ratnaweera <
gnu.slash.linux@...> wrote:
>
> After going through apt-cacher and apt-proxy, i came to believe that
> apt-cacher is a better solution
Apt-cacher cleans the cache based on the Packages.gz file. This is
good. Here is an example - think of a hypothetical package called x
which has version 6.8.2 in testing and 6.9.0 in unstable. This is
what happens in apt-proxy if the max number of versions is set to 3 if
the users are using both testing and unstable (and if my understanding
is correct, of course).
- User A users testing and B users unstable
- A downloads testing 6.8.2-1
- B downloads unstable 6.9.0-1
- A upgrades to testing 6.8.2-2 (a new version released)
- Now apt-proxy has 3 versions in the cache
- B upgrades to 6.9.0-2 (a new version release)
- Apt-proxy deletes the oldest version 6.8.2-1 to keep only 3 versions
- B upgrades to 6.9.0-3 (another new version - unstable is moving faster)
- Apt-proxy deletes the oldest version 6.8.2-2
Now there are three versions, 6.9.0-{1,2,3} and no 6.8.2 versions.
The first two are useless and the needed version 6.8.2-2 is deleted.
If cleaning up is donw with Packages.gz file, there will be only two
pakcages left (6.8.2-2 and 6.9.0-3) which is exactly what we want.
Also apt-cacher runs under apache, so it doesn't need to handle HTTP
and scaling complexities - which is one reason for "503 service
unavailable" errors in apt-proxy.
Anyway, more testing and feedback is highly appriciated.
Anuradha
--
http://anuradha-ratnaweera.blogspot.comhttp://www.linux.lk/~anuradha/-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642_______________________________________________
taprobane-general mailing list
taprobane-general@...
https://lists.sourceforge.net/lists/listinfo/taprobane-general