[taprobane] Caching: apt-cacher vs apt-proxy

View: New views
4 Messages — Rating Filter:   Alert me  

[taprobane] Caching: apt-cacher vs apt-proxy

by Anuradha Ratnaweera :: Rate this Message:

| View Threaded | Show Only this Message

Hi all,

After going through apt-cacher and apt-proxy, i came to believe that
apt-cacher is a better solution, especially considering it's
maintained (sarge has 0.9, etch has 1.1 and sid has 1.4).  If nobody
has objectives, I'll go forth and make apt-cacher the recommended way
of caching packages.

        Anuradha
--
http://anuradha-ratnaweera.blogspot.com
http://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

Re: [taprobane] Caching: apt-cacher vs apt-proxy

by Pradeeper :: Rate this Message:

| View Threaded | Show Only this Message

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, especially considering it's
> maintained (sarge has 0.9, etch has 1.1 and sid has 1.4).  If nobody
> has objectives, I'll go forth and make apt-cacher the recommended way
> of caching packages.
I think we'd better to move with apt-cacher. we (sahana core team)
have very bad experience with apt-proxy.

Regards!

Pradeeper
--

Don't live to geek; geek to live


-------------------------------------------------------
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

[taprobane] Re: Caching: apt-cacher vs apt-proxy

by Anuradha Ratnaweera :: Rate this Message:

| View Threaded | Show Only this Message

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.com
http://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

Parent Message unknown Re: [taprobane] Re: Caching: apt-cacher vs apt-proxy

by Chamindra de Silva :: Rate this Message:

| View Threaded | Show Only this Message

Anuradha Ratnaweera wrote:
> 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.
+1 for moving to apt-cacher. apt-proxy has proven to be very buggy and
sensitive to the configuration values. Additionally this is a much
better way of handling multiple versions as you described.

--
chamindra
http://www.linux.lk/~chamindra


-------------------------------------------------------
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&kid=103432&bid=230486&dat=121642
_______________________________________________
taprobane-general mailing list
taprobane-general@...
https://lists.sourceforge.net/lists/listinfo/taprobane-general