<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Random Musings of an Insane Mind &#187; Nginx</title>
	<atom:link href="http://cd34.com/blog/tag/nginx/feed/" rel="self" type="application/rss+xml" />
	<link>http://cd34.com/blog</link>
	<description>This is my blog, there are many others like it but this one is mine.</description>
	<lastBuildDate>Tue, 29 Jun 2010 04:22:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Pylons and Facebook Application Layout</title>
		<link>http://cd34.com/blog/programming/python/pylons-and-facebook-application-layout/</link>
		<comments>http://cd34.com/blog/programming/python/pylons-and-facebook-application-layout/#comments</comments>
		<pubDate>Sun, 30 May 2010 21:51:08 +0000</pubDate>
		<dc:creator>cd34</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[pylons]]></category>
		<category><![CDATA[uwsgi]]></category>

		<guid isPermaLink="false">http://cd34.com/blog/?p=964</guid>
		<description><![CDATA[While I spent quite a bit of time deciphering the Graph API documentation and the OAuth guides that Facebook puts forth and submitted three documentation fixes for examples that call non-existent parameters and consequently don&#8217;t work, I came to the realization that my original layout really only works if you use a single Pylons instance [...]]]></description>
			<content:encoded><![CDATA[<p>While I spent quite a bit of time deciphering the Graph API documentation and the OAuth guides that Facebook puts forth and submitted three documentation fixes for examples that call non-existent parameters and consequently don&#8217;t work, I came to the realization that my original layout really only works if you use a single Pylons instance per Facebook application.  Since we&#8217;re focused on Don&#8217;t Repeat Yourself (DRY) Principles, some thought needs to go into things.</p>
<p>First, our platform needs to be designed.  For this set of projects we&#8217;re going to use Nginx with uwsgi.  Since we&#8217;re serving static content, we&#8217;re going to set up our directories on Nginx to allow that content to be served outside our Pylons virtual environment.  Tony Landis was one of the first to provide an <a href="http://tonylandis.com/python/deployment-howt-pylons-nginx-and-uwsgi/">implementation guide</a> for uwsgi with Nginx for Pylons which provided some of the information needed to get things working.</p>
<p>Our theoretical layout looks like the following:</p>
<pre>
/webroot
  |--- /static
  |--- /fb
/virtualenv
  |--- /fbappone
  |--- /fbapptwo
</pre>
<p>Later we&#8217;ll add a CDN that does origin pulls from /webroot/static.  This application would have worked wonderfully with Varnish and ESI if the ESI could be compressed, but, setting up Nginx -> Varnish -> Nginx -> uwsgi seemed somewhat inefficient just to add compression.  The Facebook application we&#8217;ve developed is an IFrame canvas which took roughly fifteen hours to debug after the original concept was decided.  The majority of that time was spent dealing with the IFrame canvas issues.  FBML was much easier to get working properly.</p>
<p>What we end up with is a url structure like:</p>
<pre>

http://basedomain.com/

     /static/ (xd_receiver.html, jquery support modules, CSS files)
     /fb/ (Generic facebook files, support, tos, help)
     /(fbapp)/application_one/
     /(fbapp)/application_two/
</pre>
<p>As a result of this structure, we don&#8217;t need to manipulate config/routing.py as the default&#8217;s set by Pylons map things the way we want.  In the /static/ directory, we can put our CSS, js and static media files.  Remember to minify the CSS and js files and combine them if possible.</p>
<p>Our nginx config looks like:</p>
<pre>
server {
    listen   1.2.3.4:80;
    server_name  xxxxxx.com;
    access_log /var/log/nginx/xxxxxx.com-access.log;

    location ~* (css|js|png|jpe?g|gif|ico|swf|flv)$ {
        expires max;
    }

    gzip on;
    gzip_min_length 500;
    gzip_types text/plain application/xml text/html text/javascript;
    gzip_disable "MSIE [1-6]\.";

    location ^~ /static/ {
    	alias   /var/www/xxxxxx.com/static/;
    }
    location ^~ /fb/ {
    	alias   /var/www/xxxxxx.com/fb/;
    }
    location / {
        uwsgi_pass  unix:/tmp/uwsgi.sock;
        include     uwsgi_params;
    }
}
</pre>
<p>We could modify the nginx config to pull / from the static page, but, we&#8217;re actually capturing that with a root controller that knows what applications reside below it as a directory of sorts.</p>
<p>We used Debian which doesn&#8217;t support uwsgi yet.  A brief set of instructions follows which should work on any Debian based distribution as well:</p>
<pre>
apt-get install libxml2-dev dpkg-dev debhelper
cd /usr/src
apt-get source nginx
wget http://projects.unbit.it/downloads/uwsgi-0.9.4.4.tar.gz
tar xzf uwsgi-0.9.4.4.tar.gz
cd nginx
vi debian/rules
  add:  --add-module=/usr/src/uwsgi-0.9.4.4/nginx/ \
dpkg-buildpackage
dpkg -i ../nginx_0.7.65-5_i386.deb
mkdir /usr/local/nginx/
cp /usr/src/uwsgi-0.9.4.4/nginx/uwsgi_params /etc/nginx
</pre>
<p>/etc/nginx/uwsgi_params, add:</p>
<pre>
uwsgi_param  SCRIPT_NAME        /;
</pre>
<p>Note: I had problems with 0.9.5.1 and paster enabled wsgi applications which caused issues with Pylons.</p>
<p>Our uwsgi command line for development:</p>
<pre>
/usr/src/uwsgi-0.9.4.4/uwsgi -s /tmp/uwsgi.sock -C -iH /var/www/facebook/ --paste config:/var/www/facebook/fpapp/development.ini
</pre>
<p>One of the things that made Facebook integration difficult was somewhat incomplete documentation or even incorrect documentation on Facebook&#8217;s site.  While the Graph API is new, it is quite a bit more powerful.  While they do have official support, I think I&#8217;ll use <a href="http://github.com/bbangert/velruse">velruse</a> for OAuth integration next time and use the Python-SDK for the Graph API integration.  See my previous post on using <a href="/blog/framework/using-pylons-for-a-facebook-application/">Pylons for a Facebook Application</a> for a little more detailed information on how to get the application working.</p>
]]></content:encoded>
			<wfw:commentRss>http://cd34.com/blog/programming/python/pylons-and-facebook-application-layout/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Nginx to Apache?</title>
		<link>http://cd34.com/blog/infrastructure/nginx-to-apache/</link>
		<comments>http://cd34.com/blog/infrastructure/nginx-to-apache/#comments</comments>
		<pubDate>Sun, 23 May 2010 16:20:29 +0000</pubDate>
		<dc:creator>cd34</dc:creator>
				<category><![CDATA[Web Infrastructure]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[deadline]]></category>
		<category><![CDATA[fastcgi]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://cd34.com/blog/?p=939</guid>
		<description><![CDATA[A few months ago we had a client that wanted to run Nginx/FastCGI rather than Apache because it was known to be faster. While we&#8217;ve had extensive experience performance tuning various webserver combinations, the workload proposed would really have been better served with Apache. While we inherited this problem from another hosting company &#8212; he [...]]]></description>
			<content:encoded><![CDATA[<p>A few months ago we had a client that wanted to run Nginx/FastCGI rather than Apache because it was known to be faster.  While we&#8217;ve had extensive experience performance tuning various webserver combinations, the workload proposed would really have been better served with Apache.  While we inherited this problem from another hosting company &#8212; he moved because they couldn&#8217;t fix the performance issues &#8212; he maintained that Nginx/FastCGI for PHP was the fastest because of all of the benchmarks that had been run on the internet.</p>
<p>While the conversion to or from one server to another is usually painful, much of the pain can be avoided by running Apache on an alternate port, testing, then, swapping the configuration around.  The graph below shows when we changed from Nginx to Apache:</p>
<p><img src="http://cd34.colocdn.com/blog/wp-content/uploads/2010/05/nginxtoapache.png" alt="" title="nginxtoapache" width="497" height="224" class="aligncenter size-full wp-image-940" /></p>
<p>We made the conversion from Nginx to Apache on Friday.  Once we made the conversion, there were issues with the machine which was running an older kernel.  After reviewing the workload, we migrated from 2.6.31.1 with the Anticipatory Scheduler to 2.6.34 with the Deadline Scheduler.  Three other machines had been running 2.6.33.1 with the CFQ scheduler and showed no issues at the 10mb/sec mark, but, we felt that we might benchmark his workload using deadline.  We&#8217;ve run a number of high-end webservers with both Anticipatory and CFQ prior to 2.6.33 and for most of our workloads, Anticipatory seemed to win.  With 2.6.33, Anticipatory was removed, leaving NOOP, CFQ and Deadline.  While we have a few MySQL servers running Deadline, this is probably the first heavy-use webserver that we&#8217;ve moved from CFQ/AS to Deadline.</p>
<p><img src="http://cd34.colocdn.com/blog/wp-content/uploads/2010/05/2.6.31.1-to-2.6.34.png" alt="" title="2.6.31.1-to-2.6.34" width="497" height="224" class="aligncenter size-full wp-image-941" /></p>
<p>The dips in the daily graph were during times where a cron job was running.  The two final dips were during the kernel installation.</p>
<p>All in all, the conversion went well. The machine never really appeared to be slow, but, it is obvious that it is now handling more traffic.  The load averages are roughly the same as they were before.  CPU utilization is roughly the same, but, more importantly, Disk I/O is about half what it was and System now hovers around 3-4%.  During the hourly cron job, the machine is not having issues like it was before.</p>
<p>Nginx isn&#8217;t always the best solution.  In this case, 100% of the traffic is serving an 8k-21k php script to each visitor.  Static content is served from another machine running Nginx.</p>
<p>While I do like Nginx, it is always best to use the right tool for the job.  In this case, Apache happened to be the right tool.</p>
]]></content:encoded>
			<wfw:commentRss>http://cd34.com/blog/infrastructure/nginx-to-apache/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>DDOS attack mitigation</title>
		<link>http://cd34.com/blog/webserver/ddos-attack-mitigation/</link>
		<comments>http://cd34.com/blog/webserver/ddos-attack-mitigation/#comments</comments>
		<pubDate>Mon, 26 Apr 2010 06:02:58 +0000</pubDate>
		<dc:creator>cd34</dc:creator>
				<category><![CDATA[Webserver Software]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[ddos]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[Varnish]]></category>

		<guid isPermaLink="false">http://cd34.com/blog/?p=937</guid>
		<description><![CDATA[Today we had a DDOS attack on one of our clients. They were running prefork with mod_php5 with a rather busy application. While we initially started filtering IP addresses using iptables and a few crudely hacked rules, we knew something had to be done that was a little more permanent. Moving to MPM-Worker with PHP [...]]]></description>
			<content:encoded><![CDATA[<p>Today we had a DDOS attack on one of our clients.  They were running prefork with mod_php5 with a rather busy application.  While we initially started filtering IP addresses using iptables and a few crudely hacked rules, we knew something had to be done that was a little more permanent.  Moving to MPM-Worker with PHP served with FastCGI seemed reasonable, but, looking at the history of the attacks on this machine, I believe Apache still would have been vulnerable since we cannot filter the requests early enough in Apache&#8217;s request handler.</p>
<p>Apache does have the ability to fight some DDOS attacks using <a href="http://www.modsecurity.org/">mod_security</a> and <a href="http://www.zdziarski.com/blog/?page_id=442">mod_evasive</a>, but, this particular attack was designed to affect apache prior to the place where these modules hook into the request.  This also precludes using fail2ban.  We could run mod_forensic or mod_logio to assist fail2ban, but, it is still a stopgap measure.</p>
<p>We could have used some Snort rules and tied those to iptables, but, that is a rather bad solution to the problem.</p>
<p>While we could have used <a href="http://varnish-cache.org/">Varnish</a>, their application would have had some issues.  <a href="http://stderr.net/apache/rpaf/">mod_rpaf</a> can help by adjusting the REMOTE_ADDR to take the value from X-Forwarded-For that Varnish sets.  mod_geoip actually inserts itself before mod_rpaf, so, we would have needed to make a modification to mod_geoip and recompiled it.  I&#8217;m not sure how Varnish would have handled <a href="http://ha.ckers.org/slowloris/">Slowloris</a> and we had to fix this now. </p>
<p>Putting them behind a Layer 7 load balancer would have isolated the origin server and handled the brunt of the attack on the load balancer, but, again we would have needed mod_rpaf and some modifications to their code.</p>
<p>In the end, Lighttpd and Nginx appeared to be the only documented solution.  After the conversion, we did find documentation that said Varnish and Squid were immune to Slowloris.  With Nginx or Lighttpd, we didn&#8217;t have IP address issues to contend with, it would be easy enough to modify the fastcgi config to pass the GEOIP information in the same request variable that their application expected.  We knew we had to run PHP under FastCGI, so, we might as well pick a tool where we can block the attack in the webserver without having to worry about firewall rules.  We did put a few firewall rules in place to block the larger offenders.</p>
<p>in the http { } section of our nginx config, we added:</p>
<pre>
    client_body_timeout 10;
    client_header_timeout 10;
    keepalive_timeout 10;
    send_timeout 10;
    limit_zone limit_per_ip $binary_remote_addr 16m;
</pre>
<p>and in the server { } section, we added:</p>
<pre>
    limit_conn limit_per_ip 5;
</pre>
<p>Since each server was expecting to handle one or two requests from each IP, this gave us a little headroom while solving the problem in the right place.</p>
<p>I believe Varnish would have held the connection and wouldn&#8217;t have sent a request to the backend which makes it fairly versatile as a tool to deal with DDOS attacks.  While I do like the ability to block certain requests in VCL, the methods listed to fight this type of attack appeared to favor a non-threaded webserver.  Varnish in front of Apache would have worked, but, we already knew we needed to move from Apache at some point with this client and this gave us an opportunity to shift them while under the gun.</p>
<p>Wouldn&#8217;t have had it any other way.</p>
]]></content:encoded>
			<wfw:commentRss>http://cd34.com/blog/webserver/ddos-attack-mitigation/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Varnish and Nginx with Joomla</title>
		<link>http://cd34.com/blog/webserver/varnish-and-nginx-with-joomla/</link>
		<comments>http://cd34.com/blog/webserver/varnish-and-nginx-with-joomla/#comments</comments>
		<pubDate>Sun, 28 Jun 2009 17:01:30 +0000</pubDate>
		<dc:creator>cd34</dc:creator>
				<category><![CDATA[Webserver Software]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[Varnish]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://cd34.com/blog/?p=685</guid>
		<description><![CDATA[Recently we had a client that had some performance issues with a Joomla installation. The site wasn&#8217;t getting an incredible amount of traffic, but, the traffic it was getting was just absolutely overloading the server. Since the machine hadn&#8217;t been having issues before, the first thing we did was contact the client and ask what [...]]]></description>
			<content:encoded><![CDATA[<p>Recently we had a client that had some performance issues with a Joomla installation.  The site wasn&#8217;t getting an incredible amount of traffic, but, the traffic it was getting was just absolutely overloading the server.</p>
<p>Since the machine hadn&#8217;t been having issues before, the first thing we did was contact the client and ask what had changed.  We already knew the site and database that was using most of the CPU time, but, the bandwidth graph didn&#8217;t suggest that it was traffic overrunning the server.  Our client rescued this client from another hosting company because the site was unusable in during prime time.  So, we&#8217;ve inherited a problem.  During the move, the site was upgraded from 1.0 to 1.5, so, we didn&#8217;t even have a decent baseline to revert to.</p>
<p>The stopgap solution was to move the .htaccess mod_rewrite rules into the apache configuration which helped somewhat.  We identified a few sections of the code that were getting hit really hard and wrote a mod_rewrite rule to serve those images direct from disk &#8212; bypassing Joomla serving those images through itself.  This made a large impact and at least got the site responsive enough that we could leave it online and work through the admin to figure out what had gone wrong.</p>
<p>Some of the modules that had been enabled contributed to quite a bit of the performance headache.  One chat module generated 404s every second for each person logged in to see if there were any pending messages.  Since Joomla is loaded for each 404 file, this added quite a bit of extra processing.  Another quick modification to the configuration eliminated dozens of bad requests.  At this point, the server is responsive, the client is happy and we make notes in the trouble ticket system and our internal documentation for reference.</p>
<p>Three days later the machine alerts and our load problem is back.  After all of the changes, something is still having problems.  Upon deeper inspection, we find that portions of the system dealing with the menus are being recreated each time.  There&#8217;s no built in caching, so, the decision is to try Varnish.  Varnish has worked in the past for WordPress sites that have gotten hit hard, so, we figured if we could cache the images, css and some of the static pages that don&#8217;t require authentication, we can get the server to be responsive again.</p>
<p>Apart from the basic configuration, our varnish.vcl file looked like this:</p>
<pre>
sub vcl_recv {
  if (req.http.host ~ "^(www.)?domain.com$") {
     set req.http.host = "domain.com";
  }

 if (req.url ~ "\.(png|gif|jpg|ico|jpeg|swf|css|js)$") {
    unset req.http.cookie;
  }
}

sub vcl_fetch {
 set obj.ttl = 60s;
 if (req.url ~ "\.(png|gif|jpg|ico|jpeg|swf|css|js)$") {
      set obj.ttl = 3600s;
 }
}
</pre>
<p>To get the apache logs to report the IP, you need to modify the VirtualHost config to log the <a href="/blog/infrastructure/varnish-and-apache2/">forwarded IP</a>.</p>
<p>The performance of the site after running Varnish in front of Apache was quite good.  Apache was left with handling only .php and the server is again responsive.  It runs like this for a week or more without any issues and only a slight load spike here or there.</p>
<p>However, Joomla doesn&#8217;t like the fact that every request&#8217;s REMOTE_ADDR is 127.0.0.1 and some addons stop working.  In particular an application that allows the client to upload .pdf files into a library requires a valid IP address for some reason.  Another module to add a sub-administration panel for a manager/editor also requires an IP address other than 127.0.0.1.  </p>
<p>With some reservation, we decide to switch to Nginx + FastCGI which removes the reverse proxy and should fix the IP address problems.</p>
<p>Our configuration for Nginx with Joomla:</p>
<pre>
server {
        listen 66.55.44.33:80;
	server_name  www.domain.com;
 	rewrite ^(.*) http://domain.com$1 permanent;
}
server {
        listen 66.55.44.33:80;
	server_name  domain.com;

	access_log  /var/log/nginx/domain.com-access.log;

	location / {
		root   /var/www/domain.com;
		index  index.html index.htm index.php;

           if ( !-e $request_filename ) {
             rewrite (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ /index.php last;
             break;
           }

	}

	error_page   500 502 503 504  /50x.html;
	location = /50x.html {
		root   /var/www/nginx-default;
	}

	location ~ \.php$ {
		fastcgi_pass   unix:/tmp/php-fastcgi.socket;
		fastcgi_index  index.php;
		fastcgi_param  SCRIPT_FILENAME  /var/www/domain.com/$fastcgi_script_name;
		include	fastcgi_params;
	}

        location = /modules/mod_oneononechat/chatfiles/ {
           if ( !-e $request_filename ) {
             return 404;
           }
        }
}
</pre>
<p>With this configuration, Joomla was handed any URL for a file that didn&#8217;t exist.  This was to allow the Search Engine Friendly (SEF) links.  The second 404 handler was to handle the oneononechat module which looks for messages destined for the logged in user.</p>
<p>With Nginx, the site is again responsive.  Load spikes occur from time to time, but, the site is stable and has a lot less trouble dealing with the load.  However, once in a while the load spikes, but, the server seems to recover pretty well.</p>
<p>However, a module called Rokmenu which was included with the template design appears to have issues.  Running php behind FastCGI sometimes gives different results than running as mod_php and it appears that Rokmenu is relying on the path being passed and doesn&#8217;t normalize it properly.  So, when the menu is generated, with SEF on or off, urls look like /index.php/index.php/index.php/components/com_docman/themes/default/images/icons/16&#215;16/pdf.png.</p>
<p>Obviously this creates a broken link and causes more 404s.  We installed a fresh Joomla on Apache, imported the data from the copy running on Nginx, and Apache with mod_php appears to work properly.  However, the performance is quite poor.</p>
<p>In order to troubleshoot, we made a list of every addon and ran through some debugging.  With apachebench, we wrote up a quick command line that could be pasted in at the ssh prompt and decided upon some metrics.  Within minutes, our first test revealed 90% of our performance issue.  Two of the addons required compatibility mode because they were written for 1.0 and hadn&#8217;t been updated.  Turning on compatibility mode on our freshly installed site resulted in 10x worse performance.  As a test, we disabled the two modules that relied on compatibility mode and turned off compatibility mode and the load dropped immensely.  We had disabled SEF early on thinking it might be the issue, but, we found the performance problem almost immediately.  Enabling other modules and subsequent tests showed marginal performance changes.  Compatibility mode was our culprit the entire time.</p>
<p>The client started a search for two modules to replace the two that required compatibility mode and disabled them temporarily while we moved the site back to Apache to fix the url issue in Rokmenu.  At this point, the site was responsive, though, pageloads with lots of images were not as quick as they had been with Nginx or Varnish.  At a later point, images and static files will be served from Nginx or Varnish, but, the site is fairly responsive and handles the load spikes reasonably well when Googlebot or another spider hits.</p>
<p>In the end the site ended up running on Apache because Varnish and Nginx had minor issues with the deployment.  Moving to Apache alternatives doesn&#8217;t always fix everything and may introduce side-effects that you cannot work around.</p>
]]></content:encoded>
			<wfw:commentRss>http://cd34.com/blog/webserver/varnish-and-nginx-with-joomla/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Nginx impresses yet again</title>
		<link>http://cd34.com/blog/infrastructure/nginx-impresses-yet-again/</link>
		<comments>http://cd34.com/blog/infrastructure/nginx-impresses-yet-again/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 02:52:25 +0000</pubDate>
		<dc:creator>cd34</dc:creator>
				<category><![CDATA[Web Infrastructure]]></category>
		<category><![CDATA[Nginx]]></category>

		<guid isPermaLink="false">http://cd34.com/blog/?p=622</guid>
		<description><![CDATA[First three machines went pretty well without a hitch.  Another client machine was having some issues with apache performance.  They were still running prefork, not our typical mpm-worker/fastcgid php setup when machines need that extra push. The client&#8217;s application was able to be modified quickly to replace the url of images, so, we ran nginx [...]]]></description>
			<content:encoded><![CDATA[<p>First three machines went pretty well without a hitch.  Another client machine was having some issues with apache performance.  They were still running prefork, not our typical mpm-worker/fastcgid php setup when machines need that extra push.</p>
<p>The client&#8217;s application was able to be modified quickly to replace the url of images, so, we ran nginx in more of a Content Delivery Network capacity where it overlaid their static images directories allowing them to make a tiny change to their code and the images would be served from Nginx while their code ran untouched on Apache.</p>
<p>I am amazed Apache held up as well as it did.  Within minutes of the conversion, apache dropped from 740 active processes to roughly 300.  During its normal peak times, Apache is still handing about 400 processes, but, the machine has roughly 2gb cached up from about 600mb when running pure Apache.  That alone has got to be helping things considerably.</p>
<p>Two minor issues in the logs that were fixed by fixing ulimit -n and</p>
<blockquote><p>events {<br />
worker_connections  8192;<br />
}</p></blockquote>
<p>With those two changes, the machine has performed flawlessly.  Even with our settings at 1024, only in times of extreme traffic, did we get a handful of warnings.</p>
<p>The load has dropped, the machine has much more idle cpu time and did seem to hit a new traffic record today.</p>
]]></content:encoded>
			<wfw:commentRss>http://cd34.com/blog/infrastructure/nginx-impresses-yet-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nginx after one day and conversion of two more machines</title>
		<link>http://cd34.com/blog/scalability/nginx-after-one-day-and-conversion-of-two-more-machines/</link>
		<comments>http://cd34.com/blog/scalability/nginx-after-one-day-and-conversion-of-two-more-machines/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 20:16:59 +0000</pubDate>
		<dc:creator>cd34</dc:creator>
				<category><![CDATA[Scalability]]></category>
		<category><![CDATA[Webserver Software]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[openx]]></category>
		<category><![CDATA[phpadsnew]]></category>

		<guid isPermaLink="false">http://cd34.com/blog/?p=617</guid>
		<description><![CDATA[Nginx impressed me with the way it was written and its performance has impressed me as well. This one client has 3 machines that ran Apache2-mpm-worker with php5 running under fastcgi.  While page response time was good, the machines constantly ran at roughly 15% idle cpu time, with roughly 600mb-700mb of the ram used for [...]]]></description>
			<content:encoded><![CDATA[<p>Nginx impressed me with the way it was written and its performance has impressed me as well.</p>
<p>This one client has 3 machines that ran Apache2-mpm-worker with php5 running under fastcgi.  While page response time was good, the machines constantly ran at roughly 15% idle cpu time, with roughly 600mb-700mb of the ram used for cache.  All of the machines are quadcore with 4gb RAM and have been running for quite a while and have been tweaked and tuned along the way.</p>
<p>We started with the conversion of one site on one machine which resulted in the client being so impressed that we converted a second site on that machine which resulted in about 80mb/sec being served from nginx within minutes of deployment.  The next morning after we glanced over everything and confirmed that nginx was holding up, we converted the rest of that machine over to Nginx.  Traffic grew almost 20% after that change.</p>
<p>We started looking at the other machines, one of which runs phpadsnew on a relatively large network of his sites and the banners that are served from two of the main sites on one machine.  Converting those two over to nginx meant another 50mb/sec of traffic swapped from Apache.  Immediately he saw results with faster pageloads of his sites that pulled content from a central domain and with the banner ads being displayed more quickly.  After a few moments of analysis, it was decided to swap the entire machine from Apache2 to Nginx.  That process took a few hours due to the number of virtual hosts and the lack of any real script to migrate the configurations.  Response time on the sites was definitely faster.  After a little more discussion, rather than give that machine a day to settle in to see if we would find any problems, we converted his third machine.</p>
<p>First response in the morning:</p>
<blockquote><p>yesterday we sent 69.1k unique surfers to sponsors, that is the highest we have ever done.</p></blockquote>
<p>While only one of three machines was running Nginx for the entire day, one machine had about 8 hours under Nginx and the other about 2 hours under Nginx for that &#8216;day.&#8217;</p>
<p>Today, the results are somewhat clear.  Traffic is up overall, the machines are much more responsive.  Each machine is now roughly 80% idle and has roughly 2.4gb of memory reserved for cache.</p>
<p><a href="http://cd34.colocdn.com/blog/wp-content/uploads/2009/04/75.png"><img class="aligncenter size-medium wp-image-618" src="http://cd34.colocdn.com/blog/wp-content/uploads/2009/04/75-300x135.png" alt="75" width="300" height="135" /></a></p>
<p><a href="http://cd34.colocdn.com/blog/wp-content/uploads/2009/04/76.png"><img class="aligncenter size-medium wp-image-619" src="http://cd34.colocdn.com/blog/wp-content/uploads/2009/04/76-300x135.png" alt="76" width="300" height="135" /></a></p>
<p><a href="http://cd34.colocdn.com/blog/wp-content/uploads/2009/04/861.png"><img class="aligncenter size-medium wp-image-620" src="http://cd34.colocdn.com/blog/wp-content/uploads/2009/04/861-300x135.png" alt="861" width="300" height="135" /></a></p>
<p>Backups are scheduled at 3am on the boxes, a few rsync jobs are run to keep some content directories synced between the machines.  Overall you can see the impact on the first graph as the right hand side shows a bit more growth.  The last graph was running nginx, but, struggled to push more than 85mb/sec or so.  The middle graph shows a decline, but, they believe that is external to the process.  The sites are loading more quickly and they expect that the sites will grow quite a bit.  So far, they are reporting roughly an 18% increase in clicks to their sponsor.</p>
]]></content:encoded>
			<wfw:commentRss>http://cd34.com/blog/scalability/nginx-after-one-day-and-conversion-of-two-more-machines/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Varnish and Apache2</title>
		<link>http://cd34.com/blog/scalability/varnish-and-apache2/</link>
		<comments>http://cd34.com/blog/scalability/varnish-and-apache2/#comments</comments>
		<pubDate>Tue, 07 Apr 2009 20:07:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Scalability]]></category>
		<category><![CDATA[Webserver Software]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[Varnish]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://cd34.com/blog/?p=615</guid>
		<description><![CDATA[One client had some issues with Apache2 and a WordPress site. While WordPress isn&#8217;t really a great performer, this client had multiple domains on the same IP and dropping Nginx in didn&#8217;t seem like it would make sense to solve the immediate problem. First things first, we evaluated where the issue was with WordPress and [...]]]></description>
			<content:encoded><![CDATA[<p>One client had some issues with Apache2 and a WordPress site.  While WordPress isn&#8217;t really a great performer, this client had multiple domains on the same IP and dropping Nginx in didn&#8217;t seem like it would make sense to solve the immediate problem.</p>
<p>First things first, we evaluated where the issue was with WordPress and installed db-cache and wp-cache-2.  We had tried wp-super-cache but had seen some issues with it in some configurations.  Immediately the pageload time dropped from 41 seconds to 11 seconds.  Since the machine was running on a quadcore with 4gb ram and was running mostly idle, the only thing left was the 91 page elements being served.  Each pageload, even with pipelining still seemed to cause some stress.  Two external javascripts and one external flash object caused some delay in rendering the page.  The javascripts were actually responsible for holding up the page rendering which made the site seem even slower than it was.  We made some minor modifications, but, while apache2 was configured to serve things as best it could, we felt there was still some room for improvement.</p>
<p>While I had tested <a href="/blog/infrastructure/apache-varnish-nginx-and-lighttpd/">Varnish in front of Apache2</a>, I knew it would make an impact in this situation due to the number of elements on the page and the fact that apache did a lot of work to serve each request.  Varnish and its VCL eliminated a lot of the overhead Apache had and should result in the capacity for roughly 70% better performance.  For this installation, we removed the one IP that was in use by the problem domain from Apache and used that for Varnish and ran Varnish on that IP, using 127.0.0.1 port 80 as the backend.</p>
<p>Converting a site that is in production and live is not for the fainthearted, but, here are a few notes.</p>
<p>For Apache you&#8217;ll want to add a line like this to make sure your logs show the remote IP rather than the IP of the Varnish server:</p>
<pre>
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-A
gent}i\"" varnishcombined
</pre>
<p>Modify each of the VirtualHost configs to say:</p>
<pre>
&lt;VirtualHost 127.0.0.1:80>
</pre>
<p>and change the line for the logfile to say:</p>
<pre>
CustomLog /var/log/apache2/domain.com-access.log varnishcombined
</pre>
<p>Add Listen Directives to prevent Apache from listening to port 80 on the IP address that you want varnish to answer and comment out the default Listen 80:</p>
<pre>
#Listen 80
Listen 127.0.0.1:80
Listen 66.55.44.33:80
</pre>
<p>Configuration changes for Varnish:</p>
<pre>
backend default {
.host = "127.0.0.1";
.port = "80";
}

sub vcl_recv {
  if (req.url ~ "\.(jpg|jpeg|gif|png|tiff|tif|svg|swf|ico|mp3|mp4|m4a|ogg|mov|avi|wmv)$") {
      lookup;
  }

  if (req.url ~ "\.(css|js)$") {
      lookup;
  }
}
sub vcl_fetch {
        if( req.request != "POST" )
        {
                unset obj.http.set-cookie;
        }

        set obj.ttl = 600s;
        set obj.prefetch =  -30s;
        deliver;
}
</pre>
<p>Shut down Apache, Restart Apache, Start Varnish.</p>
<p>tail -f the logfile for Apache for one of the domains that you have moved.  Go to the site.  Varnish will load everything the first time, but, successive reloads shouldn&#8217;t show requests for images, javascript, css.  For this client we opted to hold things in cache for 10 minutes (600 seconds).</p>
<p>Overall, the process was rather seamless.  Unlike converting a site to Nginx, we are not required to make changes to the rewrite config or worry about setting up a fastcgi server to answer .php requests.  Overall, varnish is quite seamless to the end product.  Clients will lose the ability to do some things like deny hotlinking, but, Varnish will run almost invisibly to the client.  Short of the page loading considerably quicker, the client was not aware we had made any server changes and that is the true measure of success.</p>
]]></content:encoded>
			<wfw:commentRss>http://cd34.com/blog/scalability/varnish-and-apache2/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>First Impressions of Nginx</title>
		<link>http://cd34.com/blog/webserver/first-impressions-of-nginx/</link>
		<comments>http://cd34.com/blog/webserver/first-impressions-of-nginx/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 06:22:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Webserver Software]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[tux]]></category>

		<guid isPermaLink="false">http://cd34.com/blog/?p=613</guid>
		<description><![CDATA[When I did the testing last week, I didn&#8217;t expect overly dramatic results. Yes, replacing apache and moving to a FastCGI/PHP installation did seem to make sense and nginx definitely is designed to handle things well. The conversion of one virtualhost on that machine resulted in a few minor hitches. Rewrite rules are a little [...]]]></description>
			<content:encoded><![CDATA[<p>When I did the testing last week, I didn&#8217;t expect overly dramatic results.  Yes, replacing apache and moving to a FastCGI/PHP installation did seem to make sense and nginx definitely is designed to handle things well.</p>
<p>The conversion of one virtualhost on that machine resulted in a few minor hitches.  Rewrite rules are a little different and while our conversion of those rules mostly worked, a few minor differences in the syntax cropped up and needed slight adjustments.  </p>
<pre>
RewriteRule ^external/([0-9]+)/? external.php?vid=$1 [L]
</pre>
<p>changes to</p>
<pre>
rewrite "^/external/([0-9]+)/?" /external.php?vid=$1 last;
</pre>
<p>The leading / is now required in both places but the rule converts over fairly nicely.</p>
<p>Performance tuning is tricky at best since there aren&#8217;t too many documents that explain the different config arguments, and, very few that explain how to diagnose and tune.  Most is done through trial and error watching the processes, watching logs, seeing the system react and making adjustments.</p>
<p>Virtual Host configuration was a challenge at first as the documentation assumes that the machine will just listen on port 80.  When the machine shares the IPs with Apache which is also answering on port 80 and you&#8217;re just moving a few things over, you need to make some minor changes.</p>
<pre>
server {
        listen 66.55.44.33:80 default;
        server_name  _;

        access_log  /var/log/nginx/access.log;

        location / {
                root   /var/www/uc;
                index  index.html;
        }
}

server {
        listen 66.55.44.33:80;
        server_name  www.domain.com domain.com;
</pre>
<p>made virtual hosting work when you are only able to listen to a few IPs.</p>
<p>Overall, I am reasonably impressed with Nginx.  The machine we upgraded was pushing about 65mb/sec, with a load of 15 and roughly 15% idle CPU.  After moving 2 domains over to Nginx, the machine almost instantly climbed to 80mb/sec with a load of 2 and roughly 85% idle.  System Cache went from 880mb to 2.7gb and the number of Apache processes dropped from 350 to 40.  The machine is incredibly responsive now and the pages load almost instantly.</p>
<p>I&#8217;ll continue to monitor it, but, at this point it looks like a userland process will challenge Tux&#8217;s performance.</p>
]]></content:encoded>
			<wfw:commentRss>http://cd34.com/blog/webserver/first-impressions-of-nginx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache, Varnish, nginx and lighttpd</title>
		<link>http://cd34.com/blog/infrastructure/apache-varnish-nginx-and-lighttpd/</link>
		<comments>http://cd34.com/blog/infrastructure/apache-varnish-nginx-and-lighttpd/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 15:33:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Infrastructure]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Lighttpd]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[Varnish]]></category>

		<guid isPermaLink="false">http://cd34.com/blog/?p=606</guid>
		<description><![CDATA[I&#8217;ve never been happy with Apache&#8217;s performance.  It seemed that it always had problems with high volume sites.  Even extremely tweaked configurations resulted in decent performance to a point which then required more hardware to continue going.  While I had been a huge fan of Tux, sadly, Tux doesn&#8217;t work with Linux 2.6 kernels very [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve never been happy with Apache&#8217;s performance.  It seemed that it always had problems with high volume sites.  Even extremely tweaked configurations resulted in decent performance to a point which then required more hardware to continue going.  While I had been a huge fan of Tux, sadly, Tux doesn&#8217;t work with Linux 2.6 kernels very well.</p>
<p>So, the search was on.  I&#8217;ve used many webservers over the years ranging from AOLServer to Paster to Caudium looking for a robust, high-performance solution.  I&#8217;ve debated caching servers in front of Apache, a server to handle just static files and coding the web sites to utilize that, but, I never really found the ultimate solution to handle particular requirements.</p>
<p>This current problem is a php driven site with roughly 100 page elements plus the generated page itself.  The site receives quite a bit of traffic and we&#8217;ve had to tweak Apache quite a bit from our default configuration to keep the machine performing well.</p>
<p>Apache can be run many different ways.  Generally when a site uses php, we&#8217;ll run mod_php because it is faster.  Eaccelerator can help sometimes &#8212; though, does create a few small problems, but, in general, Apache-mpm-prefork runs quite well.  On sites where we&#8217;ve had issues with traffic, we&#8217;ve switched over to Apache-mpm-worker with a fastcgi php process.  This works quite well even though php scripts are slightly slower.</p>
<p>After considerable testing, I came up with three decent metrics that I used to judge things.  Almost all testing was done with ab (apachebench) running 10000 connections with keepalives and 50 concurrent sessions from a dual quad-core xeon machine to a gigE connected machine on the same switch running a core2quad machine.  On the first IP was bare apache, the second IP had lighttpd, the third IP ran nginx and the fourth IP ran Varnish in front of Apache.  Everything was set up so that no restarts of daemons would need to be made, the tests were run twice with the second result generally being the higher of the two which was used.  The linux kernel does some caching and we&#8217;re after the performance after the kernel has done its caching, apache has forked its processes and hasn&#8217;t killed off the children, etc.</p>
<p>First impressions from Apache-mpm-prefork were that it handled php exceedingly well, but, has never had great performance with static files.  This is why Tux prevailed for us as Apache handled what it did best and Tux handled what it did best.  Regrettably, Tux didn&#8217;t keep up with the 2.6 kernel and development ceased.  With new hardware, the 2.6 kernel and the ability for userland processes to get access to sendfile, large file transfer should be almost the same for all of the processes so, startup latency of the tiny files was what really seemed to harm Apache.  Apache-mpm-worker with php running as fastcgi has always been a fallback for us to gain a little more serving capacity as most sites have a relatively heavy static file to dynamic file construction.</p>
<p>But, Apache seemed to have problems with the type of traffic our clients are putting through and we felt that there had to be a better way.  I&#8217;ve read page after page of people complaining about their Drupal installation being able to take 50 users and then they upgraded to nginx or lighttpd and now their site doesn&#8217;t run into swap issues.  If your server is having problems with 50 simultaneous users with apache, you have serious problems with your setup.  It is not uncommon for us to push a P4/3.0ghz with 2gb ram with 80mb/sec traffic and MySQL running 1000 queries per second.  Where your apache logfile reaches 6gb/day for a domain not including the other 30 domains configured on the machine.  VBulletin will easily run 350 online users and 250 guests on the same hardware without any difficulties.  The same with Joomla, Drupal and the other CMS products out there.  If you can&#8217;t run 50 simultaneous users, with any of those products, dig into the configs FIRST so that you are comparing a tuned configuration to a tuned configuration.</p>
<blockquote><p>Uptime: 593254  Threads: 571  Questions: 609585858  Slow queries: 1680967  Opens: 27182  Flush tables: 1  Open tables: 2337  Queries per second avg: 1027.529</p></blockquote>
<p><a href="http://cd34.colocdn.com/blog/wp-content/uploads/2009/04/86.png"><img class="aligncenter size-full wp-image-607" title="86" src="http://cd34.colocdn.com/blog/wp-content/uploads/2009/04/86.png" alt="86" width="497" height="224" /></a></p>
<p>Based on all of my reading, I expected Varnish -&gt; Apache2 to be the fastest followed by nginx, lighttpd and bare Apache.  Lighttpd has some interesting design issues that I believed would put it behind nginx, I really expected Varnish would do really well.  For this client, we needed the FLV streaming so, I knew I would be running nginx or lighttpd for a backend for the .flv files and contemplated running Varnish in front of whichever of those performed best.  Splitting things so that the .flv files were served from a different domain was no problem for this client, so, we weren&#8217;t having to put a solution in place where we couldn&#8217;t make changes.</p>
<p>The testing methodology was based on numerous runs of ab where I tested and tweaked each setup.  I am reasonably sure that someone with vast knowledge of Varnish, nginx or lighttpd would not be able to substantially change the results.  Picking out the three or four valid pieces of information from all of the testing to give me a generalized result was difficult.</p>
<p>The first thing I was concerned with was the raw speed on a small 6.3kb file.  With keepalives enabled, that was a good starting point.  The second test was to run a page that called phpinfo();.  Not an exceedingly difficult test, it does at least start the php engine, process a page and return the result.  The third test was to download a 21mb flv file.  All of the tests were run with 10000 iterations and 50 concurrent threads except the 21mb flv file which ran 100 iterations and 10 concurrent threads due to the time it took.</p>
<table border="0">
<tbody>
<tr>
<td>Server</td>
<td>Small File Requests Per Second</td>
<td>phpinfo() Requests Per Second</td>
<td>.flv MB/Sec</td>
<td>Min/Max time to serve .flv</td>
<td>Time to run ab for .flv test</td>
</tr>
<tr>
<td>Apache-mpm-prefork</td>
<td>1000</td>
<td>164</td>
<td>11.5MB/sec</td>
<td>10-26 seconds</td>
<td>182 seconds</td>
</tr>
<tr>
<td>Apache-mpm-worker</td>
<td>1042</td>
<td>132</td>
<td>11.5MB</td>
<td>11-25 seconds</td>
<td>181 seconds</td>
</tr>
<tr>
<td>Lighttpd</td>
<td>1333</td>
<td>181</td>
<td>11.4MB</td>
<td>13-23 seconds</td>
<td>190 seconds</td>
</tr>
<tr>
<td>nginx</td>
<td>1800</td>
<td>195</td>
<td>11.5MB</td>
<td>14-24 seconds</td>
<td>187 seconds</td>
</tr>
<tr>
<td>Varnish</td>
<td>1701</td>
<td>198</td>
<td>11.3MB</td>
<td>18-30 seconds</td>
<td>188 seconds</td>
</tr>
</tbody>
</table>
<p>Granted, I expected more from Varnish and it&#8217;s caching nature does shine through.  It is considerably more powerful than nginx due to some of the internal features it has for load balancing, multiple backends, etc.  However, based on the results above, I have to believe that in this case, nginx wins.</p>
<p>There are a number of things about the nginx documentation that were confusing.  First was that they used inet rather than a local socket for communication with the php-cgi process.  That alone bumped up php almost 30 transactions per second.  The documentation for nginx is sometimes very terse and it required a bit more time to get configured correctly.  While I do have both php and perl cgi working with nginx natively, some perl cgi scripts do have minor issues which I&#8217;m still working out.</p>
<p>Lighttpd performed about as well as I expected.  Due to some backend design issues, there are some things that made me believe it wouldn&#8217;t be the top performer.  It is also older and more mature than Nginx and Varnish which use today&#8217;s tricks to accomplish their magic.  File transfer speed is going to be somewhat capped because the Linux kernel opens up some APIs that allow a userspace application to ask the kernel to handle the transfer.  Every application tested takes advantage of this.</p>
<p>Given the choice of Varnish or Nginx for a project that didn&#8217;t require .flv streaming, I might consider Varnish.  Lighttpd did have one very interesting module that prevented hotlinking of files in a much different manner than normal &#8212; I&#8217;ll be testing that for another application. If you are used to Apache mod_rewrite rules, Nginx and Lighttpd have a completely different structure for these.  They work in almost the same manner with some minor syntax changes.  Varnish runs as a cache to the frontend of your site, so, everything works with it the same way it does under Apache since Varnish merely connects to your Apache backend and caches what it can.  Its configuration language allows considerable control over the process.</p>
<p>Short of a few minor configuration tweaks, this particular client will be getting nginx.</p>
<ul>
<li><a href="http://httpd.apache.org/" target="_blank">Apache 2</a></li>
<li><a href="http://www.lighttpd.net/" target="_blank">Lighttpd</a></li>
<li><a href="http://nginx.net/" target="_blank">Nginx</a> (<a href="http://wiki.nginx.org/Main" target="_blank">Documentation</a>)</li>
<li><a href="http://varnish.projects.linpro.no/" target="_blank">Varnish</a></li>
</ul>
<p>Overall, I don&#8217;t believe you can take an agnostic approach to webservers.  Every client&#8217;s requirements are different and they don&#8217;t all fit into the same category.  If you run your own web server, you can make choices to make sure your site runs as well as it can.  From the number of pages showing stellar performance gains from switching from Apache to something else, if most of those writers spent the same time debugging their apache installation as they did migrating to a new web server, I would imagine 90% of them would find Apache meets their needs just fine.</p>
<p>The default out of the box configuration of MySQL and Apache in most Linux distributions leaves a lot to be desired.  To compare those configurations with a more sane default supplied by the software developers of competing products doesn&#8217;t really give a good comparison.  I use Debian, and their default configurations for Apache, MySQL and a number of other applications are terrible for any sort of production use.  Even Redhat has some fairly poor default configurations for many of the applications you would use to serve your website.  Do yourself a favor and do a little performance tuning with your current setup before you start making changes.  You might find the time invested well worth it.</p>
]]></content:encoded>
			<wfw:commentRss>http://cd34.com/blog/infrastructure/apache-varnish-nginx-and-lighttpd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
