<?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: how to use nginx to create static files from dynamic content</title>
	<atom:link href="http://mark.ossdl.de/2009/07/nginx-to-create-static-files-from-dynamic-content/feed/" rel="self" type="application/rss+xml" />
	<link>http://mark.ossdl.de/2009/07/nginx-to-create-static-files-from-dynamic-content/</link>
	<description>de arte technologiæ</description>
	<lastBuildDate>Fri, 03 Sep 2010 16:12:50 +0200</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: wp-popular.com &#187; Blog Archive &#187; Mark&#8217;s Blog » how to use nginx to create static files from dynamic content</title>
		<link>http://mark.ossdl.de/2009/07/nginx-to-create-static-files-from-dynamic-content/comment-page-1/#comment-10619</link>
		<dc:creator>wp-popular.com &#187; Blog Archive &#187; Mark&#8217;s Blog » how to use nginx to create static files from dynamic content</dc:creator>
		<pubDate>Tue, 24 Aug 2010 21:24:22 +0000</pubDate>
		<guid isPermaLink="false">http://mark.ossdl.de/?p=347#comment-10619</guid>
		<description>[...] from: Mark&#8217;s Blog » how to use nginx to create static files from dynamic content Tags: caching, content, nginx, [...]</description>
		<content:encoded><![CDATA[<p>[...] from: Mark&#8217;s Blog » how to use nginx to create static files from dynamic content Tags: caching, content, nginx, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mark</title>
		<link>http://mark.ossdl.de/2009/07/nginx-to-create-static-files-from-dynamic-content/comment-page-1/#comment-7249</link>
		<dc:creator>mark</dc:creator>
		<pubDate>Thu, 26 Nov 2009 12:48:19 +0000</pubDate>
		<guid isPermaLink="false">http://mark.ossdl.de/?p=347#comment-7249</guid>
		<description>Vito, I do always cache in shared memory/tmpfs. ;-)
If you do so, don&#039;t forget to tweak &lt;cite&gt;vm.swappiness&lt;/cite&gt;:

&lt;pre class=&quot;brush: bash&quot;&gt;sysctl vm.swappiness
sysctl -w vm.swappiness=5&lt;/pre&gt;

The higher &lt;i&gt;swappiness&lt;/i&gt; is, the more aggressive memory pages are swapped out. If you have a lot of RAM dedicated for cacheing and daemons demanding a predicable amount of RAM, better set a lower value. 

The default is 60 for &lt;i&gt;swappiness&lt;/i&gt; and 30% of total RAM for &lt;i&gt;tmpfs&lt;/i&gt;.

And you&#039;re right. One could&#039;ve used caching abilities of &lt;a href=&quot;http://wiki.nginx.org/NginxHttpProxyModule#proxy_cache&quot; rel=&quot;nofollow&quot;&gt;Nginx http_proxy&lt;/a&gt;, but as soon as you use fastcgi this won&#039;t work (not covered by this example, though). And, sometimes you just want that mirror files, e.g. for archival purposes.</description>
		<content:encoded><![CDATA[<p>Vito, I do always cache in shared memory/tmpfs. <img src='http://cdn.ww.ossdl.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /><br />
If you do so, don&#8217;t forget to tweak <cite>vm.swappiness</cite>:</p>
<pre class="brush: bash">sysctl vm.swappiness
sysctl -w vm.swappiness=5</pre>
<p>The higher <i>swappiness</i> is, the more aggressive memory pages are swapped out. If you have a lot of RAM dedicated for cacheing and daemons demanding a predicable amount of RAM, better set a lower value. </p>
<p>The default is 60 for <i>swappiness</i> and 30% of total RAM for <i>tmpfs</i>.</p>
<p>And you&#8217;re right. One could&#8217;ve used caching abilities of <a href="http://wiki.nginx.org/NginxHttpProxyModule#proxy_cache" rel="nofollow">Nginx http_proxy</a>, but as soon as you use fastcgi this won&#8217;t work (not covered by this example, though). And, sometimes you just want that mirror files, e.g. for archival purposes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vito Botta</title>
		<link>http://mark.ossdl.de/2009/07/nginx-to-create-static-files-from-dynamic-content/comment-page-1/#comment-7242</link>
		<dc:creator>Vito Botta</dc:creator>
		<pubDate>Wed, 25 Nov 2009 22:43:21 +0000</pubDate>
		<guid isPermaLink="false">http://mark.ossdl.de/?p=347#comment-7242</guid>
		<description>Have you tried Nginx&#039;s built in caching + using a tmpfs location as cache store? :)</description>
		<content:encoded><![CDATA[<p>Have you tried Nginx&#8217;s built in caching + using a tmpfs location as cache store? <img src='http://cdn.ww.ossdl.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mark</title>
		<link>http://mark.ossdl.de/2009/07/nginx-to-create-static-files-from-dynamic-content/comment-page-1/#comment-7202</link>
		<dc:creator>mark</dc:creator>
		<pubDate>Mon, 23 Nov 2009 19:40:51 +0000</pubDate>
		<guid isPermaLink="false">http://mark.ossdl.de/?p=347#comment-7202</guid>
		<description>I don&#039;t have benchmarks for &lt;a href=&quot;http://varnish.projects.linpro.no/&quot; rel=&quot;nofollow&quot;&gt;Varnish&lt;/a&gt; at hand and have only installed it once. It does &#039;feel&#039; a bit slower on images, but don&#039;t hesitate do tell us about any benchmarks or usage scenarios you come across. 
(&lt;i&gt;Varnishd&lt;/i&gt; has the advantage of being able to cache parts of pages, which Nginx cannot.)
http://deserialized.com/reverse-proxy-performance-varnish-vs-squid-part-1/

Squid would be my last choice, because it is rather slow compared to Nginx in this scenario (configuring it is just a pain), most cases slow to a third. Almost every benchmark out in the net points this out. But we&#039;re talking about serving static files here, and Squid and Nginx have more options than that.
http://www.peterbe.com/plog/nginx-vs-squid - ~7100 Nginx, ~2300 Squid RPS</description>
		<content:encoded><![CDATA[<p>I don&#8217;t have benchmarks for <a href="http://varnish.projects.linpro.no/" rel="nofollow">Varnish</a> at hand and have only installed it once. It does &#8216;feel&#8217; a bit slower on images, but don&#8217;t hesitate do tell us about any benchmarks or usage scenarios you come across.<br />
(<i>Varnishd</i> has the advantage of being able to cache parts of pages, which Nginx cannot.)<br />
<a href="http://deserialized.com/reverse-proxy-performance-varnish-vs-squid-part-1/" rel="nofollow">http://deserialized.com/reverse-proxy-performance-varnish-vs-squid-part-1/</a></p>
<p>Squid would be my last choice, because it is rather slow compared to Nginx in this scenario (configuring it is just a pain), most cases slow to a third. Almost every benchmark out in the net points this out. But we&#8217;re talking about serving static files here, and Squid and Nginx have more options than that.<br />
<a href="http://www.peterbe.com/plog/nginx-vs-squid" rel="nofollow">http://www.peterbe.com/plog/nginx-vs-squid</a> &#8211; ~7100 Nginx, ~2300 Squid RPS</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dennyhalim.com</title>
		<link>http://mark.ossdl.de/2009/07/nginx-to-create-static-files-from-dynamic-content/comment-page-1/#comment-7124</link>
		<dc:creator>dennyhalim.com</dc:creator>
		<pubDate>Thu, 19 Nov 2009 18:19:14 +0000</pubDate>
		<guid isPermaLink="false">http://mark.ossdl.de/?p=347#comment-7124</guid>
		<description>imho, varnish or even squid can manage and serve cache better??</description>
		<content:encoded><![CDATA[<p>imho, varnish or even squid can manage and serve cache better??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luca's forge &#183; Caching dynamic contents using Nginx as reverse proxy cache server</title>
		<link>http://mark.ossdl.de/2009/07/nginx-to-create-static-files-from-dynamic-content/comment-page-1/#comment-6310</link>
		<dc:creator>Luca's forge &#183; Caching dynamic contents using Nginx as reverse proxy cache server</dc:creator>
		<pubDate>Mon, 21 Sep 2009 12:26:10 +0000</pubDate>
		<guid isPermaLink="false">http://mark.ossdl.de/?p=347#comment-6310</guid>
		<description>[...] Links: - Nginx wiki - how to use nginx to create static files from dynamic content - Page-level caching with [...]</description>
		<content:encoded><![CDATA[<p>[...] Links: &#8211; Nginx wiki &#8211; how to use nginx to create static files from dynamic content &#8211; Page-level caching with [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark&#8217;s Blog &#187; rewriting URLs for using a CDN for your Wordpress blog</title>
		<link>http://mark.ossdl.de/2009/07/nginx-to-create-static-files-from-dynamic-content/comment-page-1/#comment-5869</link>
		<dc:creator>Mark&#8217;s Blog &#187; rewriting URLs for using a CDN for your Wordpress blog</dc:creator>
		<pubDate>Sat, 29 Aug 2009 19:35:18 +0000</pubDate>
		<guid isPermaLink="false">http://mark.ossdl.de/?p=347#comment-5869</guid>
		<description>[...] choice. That could be e.g. a second domain for static files only, Amazon S3 or CludFront storage, Nginx caching statics or even a dedicated CDN. By that you can decrease load on the server hosting your blog. [...]</description>
		<content:encoded><![CDATA[<p>[...] choice. That could be e.g. a second domain for static files only, Amazon S3 or CludFront storage, Nginx caching statics or even a dedicated CDN. By that you can decrease load on the server hosting your blog. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
