<?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: To persist or not to persist?</title>
	<atom:link href="http://maggienelson.com/2008/08/to-persist-or-not-to-persist/feed/" rel="self" type="application/rss+xml" />
	<link>http://maggienelson.com/2008/08/to-persist-or-not-to-persist/</link>
	<description>databases and code goodness</description>
	<lastBuildDate>Thu, 28 Jan 2010 22:17:15 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: M. van der Klip</title>
		<link>http://maggienelson.com/2008/08/to-persist-or-not-to-persist/comment-page-1/#comment-29</link>
		<dc:creator>M. van der Klip</dc:creator>
		<pubDate>Fri, 22 Aug 2008 10:35:30 +0000</pubDate>
		<guid isPermaLink="false">http://maggienelson.com/blog/?p=43#comment-29</guid>
		<description>Actually, I&#039;d say it depends on the use case. We&#039;re running some ad delivery software which does about 2k inserts per second at peak times. We have been running this without persistent connections for a long time under Apache. We had long learned that enabling persistent connections under Apache is a no-go.
However when we made the switch from Apache to lighttpd several years ago, we got loads more control of the number of running PHP processes. Previously we were running hundreds of Apache processes on one single webserver, which got replaced by one single lighttpd process and a fixed amount of 20 PHP FastCGI processes.
Recently we decided to evaluate persistent connections again because we realized that the math had became easy: servers * 20 = max_connections. The number of connections to our MySQL server is now constant and the system load has gone down by about 20%.
</description>
		<content:encoded><![CDATA[<p>Actually, I&#8217;d say it depends on the use case. We&#8217;re running some ad delivery software which does about 2k inserts per second at peak times. We have been running this without persistent connections for a long time under Apache. We had long learned that enabling persistent connections under Apache is a no-go.<br />
However when we made the switch from Apache to lighttpd several years ago, we got loads more control of the number of running PHP processes. Previously we were running hundreds of Apache processes on one single webserver, which got replaced by one single lighttpd process and a fixed amount of 20 PHP FastCGI processes.<br />
Recently we decided to evaluate persistent connections again because we realized that the math had became easy: servers * 20 = max_connections. The number of connections to our MySQL server is now constant and the system load has gone down by about 20%.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Smith</title>
		<link>http://maggienelson.com/2008/08/to-persist-or-not-to-persist/comment-page-1/#comment-28</link>
		<dc:creator>Daniel Smith</dc:creator>
		<pubDate>Fri, 22 Aug 2008 08:30:25 +0000</pubDate>
		<guid isPermaLink="false">http://maggienelson.com/blog/?p=43#comment-28</guid>
		<description>Maggie,
Don&#039;t forget that with persistent connections, MySQL won&#039;t know to drop temporary tables if you use them in the connection.  It&#039;s bit me in the past.  Good luck making your decision!
Daniel
</description>
		<content:encoded><![CDATA[<p>Maggie,<br />
Don&#8217;t forget that with persistent connections, MySQL won&#8217;t know to drop temporary tables if you use them in the connection.  It&#8217;s bit me in the past.  Good luck making your decision!<br />
Daniel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carsten Pedersen</title>
		<link>http://maggienelson.com/2008/08/to-persist-or-not-to-persist/comment-page-1/#comment-27</link>
		<dc:creator>Carsten Pedersen</dc:creator>
		<pubDate>Fri, 22 Aug 2008 08:19:17 +0000</pubDate>
		<guid isPermaLink="false">http://maggienelson.com/blog/?p=43#comment-27</guid>
		<description>Good run-down of the issues and documentation available. I&#039;ve been teaching &quot;don&#039;t bother with persistent connections&quot; for years, but haven&#039;t had a good source. Now I do. Thanks!
</description>
		<content:encoded><![CDATA[<p>Good run-down of the issues and documentation available. I&#8217;ve been teaching &#8220;don&#8217;t bother with persistent connections&#8221; for years, but haven&#8217;t had a good source. Now I do. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Harrison</title>
		<link>http://maggienelson.com/2008/08/to-persist-or-not-to-persist/comment-page-1/#comment-26</link>
		<dc:creator>Richard Harrison</dc:creator>
		<pubDate>Thu, 21 Aug 2008 21:58:11 +0000</pubDate>
		<guid isPermaLink="false">http://maggienelson.com/blog/?p=43#comment-26</guid>
		<description>My experience with persistent connections is from years ago (circa 2001) but the problem we found was that on  a very busy server the Apache processes would get so numerous that they would suck up all of the available MySQL connections and then the next Apache process was screwed because it&#039;s connection would then get refused.
This was mostly because Apache was used to serve all static content, so a process serving a static image would still have it&#039;s own persistent connection.
</description>
		<content:encoded><![CDATA[<p>My experience with persistent connections is from years ago (circa 2001) but the problem we found was that on  a very busy server the Apache processes would get so numerous that they would suck up all of the available MySQL connections and then the next Apache process was screwed because it&#8217;s connection would then get refused.<br />
This was mostly because Apache was used to serve all static content, so a process serving a static image would still have it&#8217;s own persistent connection.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
