|
Update in the backgroundUpdate in the backgroundPosted Oct 13, 2005 4:07 UTC (Thu) by csamuel (subscriber, #2624)In reply to: Update in the background by szoth Parent article: Review: Ubuntu 5.10 Breezy Badger (Linux.com)
Don't suppose you'd care to share that bit of the config for those of us
(Log in to post comments)
Update in the background Posted Oct 13, 2005 15:00 UTC (Thu) by maney (subscriber, #12630) [Link] Set maximum_object_size large enough that it will cache, oh, the biggest chunk of OOo, and restart squid. Works well enough for my home/office setup that I've never gotten around to addng Ubuntu sources to the existing apt-cache setup (which I'm now using with only a single Sarge server box... well, and the other one that I'm fiddling with). You can get this working right from the start with a kernel option to the installer along the lines of http_proxy=http://cache.two14.net:3128/, though IIRC you'll need to add that to your user environment or add a parallel setting in /etc/apt/apt.conf for post-install use. AndOfCourse change the cache's address and port as needed for local conditions in both.As best I recall (can't easily check it from here), the home/office's squid has a max size setting of 50 or 60 MB, and there's been no visible detriment to normal caching of web pages. It's got about 1G of disk space allocated, which might be a bit on the short side if you like to install all the desktops and everything you think you might ever need (viz., a Red Hat style install) you might want to allow more cache space...
Squid as a cache for APT Posted Oct 13, 2005 17:43 UTC (Thu) by szoth (subscriber, #14825) [Link] Set maximum object size in squid.conf to the size of the largest dpkg you wish to cache.
http://wiki.squid-cache.org/config/maximum_object_size
In my setup I had two gigs of RAM, so I also increased maximum object size
http://wiki.squid-cache.org/config/maximum_object_size_in...
Then you probably want to use the LFUDA cache replacement policy to get a better byte hit rate.
http://squid.visolve.com/squid/squid24s1/cache_size.htm#c...
There's also a policy decision for memory replacement; I used LFUDA here too because of my large supply of RAM and willingness to suffer higher latency for some small files in return for better overall download speed.
http://squid.visolve.com/squid/squid24s1/cache_size.htm#m...
On your clients put a line like this in /etc/apt/apt.conf
Acquire::http::Proxy "http://proxy.mydomain.com:8080";
apt.conf usually doesn't exist yet, so you will have to create it, with just that line in it. Without editing apt.conf you can also use the http_proxy environment variable before running apt-get, e.g.:
export http_proxy="http://proxy.mydomain.com:8080"
|
Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds
Powered by Rackspace Managed Hosting.