<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Bandwith optimization: squid, apt-cacher and jesred</title>
	<atom:link href="http://www.porcheron.info/bandwith-optimization-squid-apt-cacher-and-jesred/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.porcheron.info/bandwith-optimization-squid-apt-cacher-and-jesred/</link>
	<description></description>
	<lastBuildDate>Fri, 11 Nov 2011 14:56:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: www.porcheron.info</title>
		<link>http://www.porcheron.info/bandwith-optimization-squid-apt-cacher-and-jesred/comment-page-1/#comment-58244</link>
		<dc:creator>www.porcheron.info</dc:creator>
		<pubDate>Tue, 22 Mar 2011 11:41:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.porcheron.info/?p=64#comment-58244</guid>
		<description>Bandwith optimization squid apt cacher and jesred.. Keen :)</description>
		<content:encoded><![CDATA[<p>Bandwith optimization squid apt cacher and jesred.. Keen <img src='http://www.porcheron.info/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ehcache.net</title>
		<link>http://www.porcheron.info/bandwith-optimization-squid-apt-cacher-and-jesred/comment-page-1/#comment-57258</link>
		<dc:creator>ehcache.net</dc:creator>
		<pubDate>Wed, 23 Feb 2011 09:01:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.porcheron.info/?p=64#comment-57258</guid>
		<description>&lt;strong&gt;Bandwith optimization: squid, apt-cacher and jesred...&lt;/strong&gt;

At work, I now have around 50 desktops running Ubuntu and around 40 servers (including customers machines) also running Ubuntu. As you can imagine, when you have a security update of X, this represents a lot of bandwith usage! Not to speak about Hardy ...</description>
		<content:encoded><![CDATA[<p><strong>Bandwith optimization: squid, apt-cacher and jesred&#8230;</strong></p>
<p>At work, I now have around 50 desktops running Ubuntu and around 40 servers (including customers machines) also running Ubuntu. As you can imagine, when you have a security update of X, this represents a lot of bandwith usage! Not to speak about Hardy &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ike Mccaman</title>
		<link>http://www.porcheron.info/bandwith-optimization-squid-apt-cacher-and-jesred/comment-page-1/#comment-54842</link>
		<dc:creator>Ike Mccaman</dc:creator>
		<pubDate>Sun, 07 Nov 2010 19:24:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.porcheron.info/?p=64#comment-54842</guid>
		<description>Thanks so much for the article. Great.</description>
		<content:encoded><![CDATA[<p>Thanks so much for the article. Great.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Portablejim</title>
		<link>http://www.porcheron.info/bandwith-optimization-squid-apt-cacher-and-jesred/comment-page-1/#comment-53533</link>
		<dc:creator>Portablejim</dc:creator>
		<pubDate>Fri, 09 Jul 2010 07:32:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.porcheron.info/?p=64#comment-53533</guid>
		<description>Thanks Andras Korn. I have created a How-to based on the rules you gave on my website called &quot;Using apt-cacher-ng to handle deb files instead of squid&quot; (http://portablejim.site-hosts.net/tips/95-squidandaptcacherng.html)</description>
		<content:encoded><![CDATA[<p>Thanks Andras Korn. I have created a How-to based on the rules you gave on my website called &#8220;Using apt-cacher-ng to handle deb files instead of squid&#8221; (<a href="http://portablejim.site-hosts.net/tips/95-squidandaptcacherng.html" rel="nofollow">http://portablejim.site-hosts.net/tips/95-squidandaptcacherng.html</a>)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andras Korn</title>
		<link>http://www.porcheron.info/bandwith-optimization-squid-apt-cacher-and-jesred/comment-page-1/#comment-44032</link>
		<dc:creator>Andras Korn</dc:creator>
		<pubDate>Mon, 13 Jul 2009 09:57:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.porcheron.info/?p=64#comment-44032</guid>
		<description>The ulrpath_regex acl is really only intended for non-apt-clients, such as ordinary browsers, that browse repositories. You can of course remove the requirement for .debs to be under a pool/ directory to make the matching broader, for example.

APT and its ilk should be detected by the &quot;aptget&quot; browser acl and thus redirected to the apt proxy.

BTW, with the appropriate refresh_pattern (e.g. by matching Packages and .deb and giving them high expiry times) you may be able to dispense with a dedicated apt proxy entirely as squid will happily cache the package files itself.</description>
		<content:encoded><![CDATA[<p>The ulrpath_regex acl is really only intended for non-apt-clients, such as ordinary browsers, that browse repositories. You can of course remove the requirement for .debs to be under a pool/ directory to make the matching broader, for example.</p>
<p>APT and its ilk should be detected by the &#8220;aptget&#8221; browser acl and thus redirected to the apt proxy.</p>
<p>BTW, with the appropriate refresh_pattern (e.g. by matching Packages and .deb and giving them high expiry times) you may be able to dispense with a dedicated apt proxy entirely as squid will happily cache the package files itself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lionel</title>
		<link>http://www.porcheron.info/bandwith-optimization-squid-apt-cacher-and-jesred/comment-page-1/#comment-44025</link>
		<dc:creator>lionel</dc:creator>
		<pubDate>Mon, 13 Jul 2009 08:39:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.porcheron.info/?p=64#comment-44025</guid>
		<description>Hi Andras,

Thanks for your comment. I&#039;m not a squid expert, but the rules you have given does not make the job: you are catching all repositories (maybe we can check more than urlpath_regex). But looks promising.
For apt-cacher-ng, I&#039;ll give a try. Lot of comments seems to indicate this is a good competitor. I have to admit that I did not had problem with apt-cacher on my Ubuntu hardy, and as it is used by the whole company, I haven&#039;t touch it since.</description>
		<content:encoded><![CDATA[<p>Hi Andras,</p>
<p>Thanks for your comment. I&#8217;m not a squid expert, but the rules you have given does not make the job: you are catching all repositories (maybe we can check more than urlpath_regex). But looks promising.<br />
For apt-cacher-ng, I&#8217;ll give a try. Lot of comments seems to indicate this is a good competitor. I have to admit that I did not had problem with apt-cacher on my Ubuntu hardy, and as it is used by the whole company, I haven&#8217;t touch it since.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andras Korn</title>
		<link>http://www.porcheron.info/bandwith-optimization-squid-apt-cacher-and-jesred/comment-page-1/#comment-44007</link>
		<dc:creator>Andras Korn</dc:creator>
		<pubDate>Sun, 12 Jul 2009 22:38:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.porcheron.info/?p=64#comment-44007</guid>
		<description>You don&#039;t need jesred.

Something like the following in squid.conf does the trick just fine (substitute the hostname of your apt cache for &quot;aptcacher&quot; everwhere):

cache_peer aptcacher parent 3142 7 proxy-only no-query no-netdb-exchange connect-timeout=15

acl aptget browser -i apt-get apt-http apt-cacher apt-proxy
acl deburl urlpath_regex /(Packages&#124;Sources&#124;Release&#124;Translations-.*)\(.(gpg&#124;gz&#124;bz2))?$ /pool/.*/\.deb$ /(Sources&#124;Packages)\.diff/ /dists/[^/]*/[^/]*/(binary-.*&#124;source)/.

cache_peer_access aptcacher allow aptget
cache_peer_access aptcacher allow deburl
cache_peer_access aptcacher deny all

never_direct allow aptget
never_direct allow deburl
never_direct deny all


The urlpath_regex may be too broad and/or too narrow and/or unnecessary, based on your exact needs.

FWIW, my experience with apt-cacher-ng has been a lot better than with apt-cacher (which used a lot of resources in addition to being slow and unstable).</description>
		<content:encoded><![CDATA[<p>You don&#8217;t need jesred.</p>
<p>Something like the following in squid.conf does the trick just fine (substitute the hostname of your apt cache for &#8220;aptcacher&#8221; everwhere):</p>
<p>cache_peer aptcacher parent 3142 7 proxy-only no-query no-netdb-exchange connect-timeout=15</p>
<p>acl aptget browser -i apt-get apt-http apt-cacher apt-proxy<br />
acl deburl urlpath_regex /(Packages|Sources|Release|Translations-.*)\(.(gpg|gz|bz2))?$ /pool/.*/\.deb$ /(Sources|Packages)\.diff/ /dists/[^/]*/[^/]*/(binary-.*|source)/.</p>
<p>cache_peer_access aptcacher allow aptget<br />
cache_peer_access aptcacher allow deburl<br />
cache_peer_access aptcacher deny all</p>
<p>never_direct allow aptget<br />
never_direct allow deburl<br />
never_direct deny all</p>
<p>The urlpath_regex may be too broad and/or too narrow and/or unnecessary, based on your exact needs.</p>
<p>FWIW, my experience with apt-cacher-ng has been a lot better than with apt-cacher (which used a lot of resources in addition to being slow and unstable).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc Tardif</title>
		<link>http://www.porcheron.info/bandwith-optimization-squid-apt-cacher-and-jesred/comment-page-1/#comment-35847</link>
		<dc:creator>Marc Tardif</dc:creator>
		<pubDate>Wed, 22 Oct 2008 18:12:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.porcheron.info/?p=64#comment-35847</guid>
		<description>It seems that one solution is the limit the number of redirector processes to spawn from squid with the following configuration:

redirect_children 1</description>
		<content:encoded><![CDATA[<p>It seems that one solution is the limit the number of redirector processes to spawn from squid with the following configuration:</p>
<p>redirect_children 1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc Tardif</title>
		<link>http://www.porcheron.info/bandwith-optimization-squid-apt-cacher-and-jesred/comment-page-1/#comment-35843</link>
		<dc:creator>Marc Tardif</dc:creator>
		<pubDate>Wed, 22 Oct 2008 15:53:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.porcheron.info/?p=64#comment-35843</guid>
		<description>After implementing the above configuration, I seem to be getting a lot of corruption errors:

Wed Oct 22 11:53:18 2008&#124;127.0.0.1&#124; ALARM! /var/cache/apt-cacher/packages/archive.ubuntu.com_ubuntu_dists_intrepid_universe_binary-i386_Packages.bz2 file size mismatch (found 212992, expected 4541620). Renaming to /var/cache/apt-cacher/packages/archive.ubuntu.com_ubuntu_dists_intrepid_universe_binary-i386_Packages.bz2.corrupted.</description>
		<content:encoded><![CDATA[<p>After implementing the above configuration, I seem to be getting a lot of corruption errors:</p>
<p>Wed Oct 22 11:53:18 2008|127.0.0.1| ALARM! /var/cache/apt-cacher/packages/archive.ubuntu.com_ubuntu_dists_intrepid_universe_binary-i386_Packages.bz2 file size mismatch (found 212992, expected 4541620). Renaming to /var/cache/apt-cacher/packages/archive.ubuntu.com_ubuntu_dists_intrepid_universe_binary-i386_Packages.bz2.corrupted.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

