<?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: Solving the WordPress Traffic Overload Problem</title>
	<atom:link href="http://technosailor.com/2008/04/10/solving-the-wordpress-traffic-overload-problem/feed/" rel="self" type="application/rss+xml" />
	<link>http://technosailor.com/2008/04/10/solving-the-wordpress-traffic-overload-problem/</link>
	<description>Business and Technology with Common Sense</description>
	<lastBuildDate>Thu, 24 May 2012 21:21:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4-beta4-20883</generator>
	<item>
		<title>By: Epic Alex :: Web Design</title>
		<link>http://technosailor.com/2008/04/10/solving-the-wordpress-traffic-overload-problem/comment-page-1/#comment-43906</link>
		<dc:creator>Epic Alex :: Web Design</dc:creator>
		<pubDate>Sun, 13 Apr 2008 23:08:08 +0000</pubDate>
		<guid isPermaLink="false">http://technosailor.com/?p=2273#comment-43906</guid>
		<description>On the issue of integrating a solution into the core of WordPress, I think its pretty interesting that this measure is being taken. The vast majority of blogs would never need such protection, and the ones that do have probably already prepared for the increase in traffic. Is it worth the development time? We&#039;ll see.

On the plus side, having an integrated system as opposed to a plugin can only improve the situation, I&#039;m sure, but is wp super cache not good enough?</description>
		<content:encoded><![CDATA[<p>On the issue of integrating a solution into the core of WordPress, I think its pretty interesting that this measure is being taken. The vast majority of blogs would never need such protection, and the ones that do have probably already prepared for the increase in traffic. Is it worth the development time? We&#8217;ll see.</p>
<p>On the plus side, having an integrated system as opposed to a plugin can only improve the situation, I&#8217;m sure, but is wp super cache not good enough?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim Hu</title>
		<link>http://technosailor.com/2008/04/10/solving-the-wordpress-traffic-overload-problem/comment-page-1/#comment-43905</link>
		<dc:creator>Jim Hu</dc:creator>
		<pubDate>Fri, 11 Apr 2008 08:20:33 +0000</pubDate>
		<guid isPermaLink="false">http://technosailor.com/?p=2273#comment-43905</guid>
		<description>I don&#039;t use WordPress but I suspect that MySQL goes into a trance with large numbers of hits long before Apache.  Caching will certainly help that.

I&#039;m surprised that an Instalanche or a Slashdotting raises the numbers of hits above the background of spammers.  I don&#039;t get instalanched often, but the last time I got one, it was good for about 8K pageviews, which was only &lt;10% of the total hits on the server for the same period.

By contrast, a recent spam storm on the trackback link, DID bring the same server to its knees.  I implemented some countermeasures and things seem to be OK for now (fingers crossed).</description>
		<content:encoded><![CDATA[<p>I don&#8217;t use WordPress but I suspect that MySQL goes into a trance with large numbers of hits long before Apache.  Caching will certainly help that.</p>
<p>I&#8217;m surprised that an Instalanche or a Slashdotting raises the numbers of hits above the background of spammers.  I don&#8217;t get instalanched often, but the last time I got one, it was good for about 8K pageviews, which was only &lt;10% of the total hits on the server for the same period.</p>
<p>By contrast, a recent spam storm on the trackback link, DID bring the same server to its knees.  I implemented some countermeasures and things seem to be OK for now (fingers crossed).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stacy</title>
		<link>http://technosailor.com/2008/04/10/solving-the-wordpress-traffic-overload-problem/comment-page-1/#comment-43904</link>
		<dc:creator>Stacy</dc:creator>
		<pubDate>Fri, 11 Apr 2008 01:47:05 +0000</pubDate>
		<guid isPermaLink="false">http://technosailor.com/?p=2273#comment-43904</guid>
		<description>From a hosting standpoint, the issue is available apache connections, or available sql connections.  There are only so many that a server is configured to answer at a given time.  And the configuration depends on the power of the server, ie. a dual xeon vs. a single P4, amount of RAM, etc. etc.  We&#039;ve had servers absolutely LUNCHED by sites running Movable Type when a spammer runs a script that hammers at the comment or trackback scripts.  Similarly we&#039;ve had servers lunched by sites running Wordpress that use plugins that make constant queries against the db.

There is no magic bullet for an Instalanche, or a Slashdotting.  When apache/sql are overwhelmed, they&#039;ll restart, which will result in 404s or db connection errors during the restart process, yes.  Failover setups are *expensive,* and reserved for those with excessively deep pockets, ala cnn.com, etc.  The rest of us have to make do.</description>
		<content:encoded><![CDATA[<p>From a hosting standpoint, the issue is available apache connections, or available sql connections.  There are only so many that a server is configured to answer at a given time.  And the configuration depends on the power of the server, ie. a dual xeon vs. a single P4, amount of RAM, etc. etc.  We&#8217;ve had servers absolutely LUNCHED by sites running Movable Type when a spammer runs a script that hammers at the comment or trackback scripts.  Similarly we&#8217;ve had servers lunched by sites running WordPress that use plugins that make constant queries against the db.</p>
<p>There is no magic bullet for an Instalanche, or a Slashdotting.  When apache/sql are overwhelmed, they&#8217;ll restart, which will result in 404s or db connection errors during the restart process, yes.  Failover setups are *expensive,* and reserved for those with excessively deep pockets, ala cnn.com, etc.  The rest of us have to make do.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jacob Santos</title>
		<link>http://technosailor.com/2008/04/10/solving-the-wordpress-traffic-overload-problem/comment-page-1/#comment-43903</link>
		<dc:creator>Jacob Santos</dc:creator>
		<pubDate>Thu, 10 Apr 2008 21:59:58 +0000</pubDate>
		<guid isPermaLink="false">http://technosailor.com/?p=2273#comment-43903</guid>
		<description>Indeed Mark, it is a problem if you are using CGI environment where PHP has to startup and shutdown on each request, but on server environments which only run the PHP startup and shutdown once, have very little overhead with processing scripts. The overhead is pulling in the PHP source files, which is generally small, unless your server configurations are slow, but with Opcaching it pretty much solves that problem as well.

So generally, functions are compiled, which is a fairly quick process for all that PHP has to do. If you think about it, PHP is really fast in compiling large PHP based web applications. So for the functions that aren&#039;t used, you still don&#039;t have that much overhead. You might save a millisecond or two, but that is only a millisecond or two, which is less than a thousandth percent of the total time it takes.

The overhead comes when you have to enter the function stack and that is interesting with its overhead. During the performance tests for the plugin API fix, I encountered that the Plugin API is faster if it had code duplicated in multiple files instead of placing it in one function and used in each of the functions. You see it because the Plugin API is used very often, so not having the code separate would save time, but would require updating more than one area and from past commits and patches, it is known that not every duplicated area is fixed. So if you have three places and only fix one or two, then you still have one area that needs updating. Anyway, that is a tangent, so I&#039;ll get back on topic.

Basically, the PHP Engine is not the problem, unless you really, really have a lot of visitors, like Yahoo, where every millisecond counts. Then you&#039;re better off writing an extension for the slow parts.</description>
		<content:encoded><![CDATA[<p>Indeed Mark, it is a problem if you are using CGI environment where PHP has to startup and shutdown on each request, but on server environments which only run the PHP startup and shutdown once, have very little overhead with processing scripts. The overhead is pulling in the PHP source files, which is generally small, unless your server configurations are slow, but with Opcaching it pretty much solves that problem as well.</p>
<p>So generally, functions are compiled, which is a fairly quick process for all that PHP has to do. If you think about it, PHP is really fast in compiling large PHP based web applications. So for the functions that aren&#8217;t used, you still don&#8217;t have that much overhead. You might save a millisecond or two, but that is only a millisecond or two, which is less than a thousandth percent of the total time it takes.</p>
<p>The overhead comes when you have to enter the function stack and that is interesting with its overhead. During the performance tests for the plugin API fix, I encountered that the Plugin API is faster if it had code duplicated in multiple files instead of placing it in one function and used in each of the functions. You see it because the Plugin API is used very often, so not having the code separate would save time, but would require updating more than one area and from past commits and patches, it is known that not every duplicated area is fixed. So if you have three places and only fix one or two, then you still have one area that needs updating. Anyway, that is a tangent, so I&#8217;ll get back on topic.</p>
<p>Basically, the PHP Engine is not the problem, unless you really, really have a lot of visitors, like Yahoo, where every millisecond counts. Then you&#8217;re better off writing an extension for the slow parts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Donncha O Caoimh</title>
		<link>http://technosailor.com/2008/04/10/solving-the-wordpress-traffic-overload-problem/comment-page-1/#comment-43902</link>
		<dc:creator>Donncha O Caoimh</dc:creator>
		<pubDate>Thu, 10 Apr 2008 21:41:09 +0000</pubDate>
		<guid isPermaLink="false">http://technosailor.com/?p=2273#comment-43902</guid>
		<description>PHP is only really a problem when there&#039;s a very very high load. A PHP cached page will eventually cause the load to rise faster than a static html file served with a mod_rewrite rule.
Of greater concern is the load generated by queries on the db. A rampaging scraper bot hitting 10 uncached archive pages simultaneously can bring my reasonably well equipped VPS to it&#039;s knees. When those pages are cached as html files the server hardly notices of course!</description>
		<content:encoded><![CDATA[<p>PHP is only really a problem when there&#8217;s a very very high load. A PHP cached page will eventually cause the load to rise faster than a static html file served with a mod_rewrite rule.<br />
Of greater concern is the load generated by queries on the db. A rampaging scraper bot hitting 10 uncached archive pages simultaneously can bring my reasonably well equipped VPS to it&#8217;s knees. When those pages are cached as html files the server hardly notices of course!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Jaquith</title>
		<link>http://technosailor.com/2008/04/10/solving-the-wordpress-traffic-overload-problem/comment-page-1/#comment-43901</link>
		<dc:creator>Mark Jaquith</dc:creator>
		<pubDate>Thu, 10 Apr 2008 19:21:35 +0000</pubDate>
		<guid isPermaLink="false">http://technosailor.com/?p=2273#comment-43901</guid>
		<description>&lt;blockquote&gt;From a technical standpoint, the problem is that PHP is entirely loaded into memory for every pageload. That includes the 99% of PHP that is not being used to actually render the page.&lt;/blockquote&gt;

I don&#039;t think PHP itself is the problem.  The most benefit when dealing with high-load situations comes from not having to do a dynamic WordPress load -- even if that caching solution requires PHP.  The WP-Super-Cache solution is nice, and it certainly gives you some incremental benefit above a PHP-powerered output cache, but it requires &lt;code&gt;mod_rewrite&lt;/code&gt;, and thus excludes a certain segment of WordPress users.  Out solution is going to have to be much more generally usable.</description>
		<content:encoded><![CDATA[<blockquote><p>From a technical standpoint, the problem is that PHP is entirely loaded into memory for every pageload. That includes the 99% of PHP that is not being used to actually render the page.</p></blockquote>
<p>I don&#8217;t think PHP itself is the problem.  The most benefit when dealing with high-load situations comes from not having to do a dynamic WordPress load &#8212; even if that caching solution requires PHP.  The WP-Super-Cache solution is nice, and it certainly gives you some incremental benefit above a PHP-powerered output cache, but it requires</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mod_rewrite</div></td></tr></tbody></table></div>
<p>, and thus excludes a certain segment of WordPress users.  Out solution is going to have to be much more generally usable.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

