<?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>Phusion Corporate Blog &#187; Phusion Passenger</title>
	<atom:link href="http://blog.phusion.nl/category/passenger/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.phusion.nl</link>
	<description></description>
	<lastBuildDate>Mon, 06 Sep 2010 12:01:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>The Road to Passenger 3: Technology Preview 4 &#8211; Adding new features and removing old limitations</title>
		<link>http://blog.phusion.nl/2010/07/29/the-road-to-passenger-3-technology-preview-4-adding-new-features-and-removing-old-limitations/</link>
		<comments>http://blog.phusion.nl/2010/07/29/the-road-to-passenger-3-technology-preview-4-adding-new-features-and-removing-old-limitations/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 21:31:35 +0000</pubDate>
		<dc:creator>Hongli Lai</dc:creator>
				<category><![CDATA[Phusion Passenger]]></category>

		<guid isPermaLink="false">http://blog.phusion.nl/?p=813</guid>
		<description><![CDATA[In the past two years that we&#8217;ve been developing Phusion Passenger, we&#8217;ve received not only many feature requests but also many criticisms about certain limitations. Some feature requests have been implemented in Phusion Passenger 2.x, some have not. Some limitations were solved in the life time of Phusion Passenger 2, others were not because they [...]]]></description>
			<content:encoded><![CDATA[<p>In the past two years that we&#8217;ve been developing Phusion Passenger, we&#8217;ve received not only many feature requests but also many criticisms about certain limitations. Some feature requests have been implemented in Phusion Passenger 2.x, some have not. Some limitations were solved in the life time of Phusion Passenger 2, others were not because they require a lot of refactoring first. In Phusion Passenger 3 we&#8217;ve extensively refactored the code to not only make a lot of new cool features possible, but also to lift a lot of the old limitations. In this Technology Preview we are pleased to announce these changes.</p>
<h2>Asynchronous spawning</h2>
<p><img src="http://blog.phusion.nl/wp-content/uploads/2010/07/synchronous-spawning.jpg" alt="" title="" width="350" height="201" class="alignnone size-full wp-image-832 exhibit"></p>
<p>Previously, when application processes are being spawned, Phusion Passenger is unable to handle HTTP requests until the processes are done spawning, because Phusion Passenger is holding the lock on the application pool while this is happening. Some websites have apps that need a very long time to spawn (30+ seconds) and this would be a problem for them. This behavior would also cause a &#8220;thundering herd&#8221; problem: suppose that a traffic spike appears, then the first request will cause Phusion Passenger to spawn a process. The other requests in the spike are blocked until that&#8217;s done, and then all of a sudden they are processed. Phusion Passenger thinks it needs to spawn more, so it spawns another one and blocks the rest, and so on. This can cause a large number of processes to be spawned all of a sudden, causing a long delay.</p>
<p><img src="http://blog.phusion.nl/wp-content/uploads/2010/07/asynchronous-spawning.jpg" alt="" title="" width="350" height="200" class="alignnone size-full wp-image-830 exhibit"></p>
<p>In Phusion Passenger 3 spawning happens in the background so that no clients have to be blocked. This turns out to work so well that application process spawning is now virtually unnoticeable, except when spawning the first application process.</p>
<h2 class="clear-float">Ability to configure minimum number of processes</h2>
<p>Phusion Passenger automatically shuts down processes that haven&#8217;t been accessed for a while, where &#8220;a while&#8221; is configurable through the PassengerPoolIdleTime directive. Many web applications are rarely accessed during the night, so what happens is that all application processes are shut down during the night and the first person in the morning who accesses the web application has to wait for some time while the first application process is being spawned. This problem could be solved by setting PassengerPoolIdleTime to 0 or to a large number which means that processes are kept around forever or for a long time, but this also means that application processes are not shut down during the night, which might still be desirable for resource utilization reasons.</p>
<p>Phusion Passenger 3 introduces a new, long-awaited configuration directive: PassengerMinInstances. As its name implies, PassengerMinInstances makes sure that at least the given number of processes will be started and kept around. This, in combination with asynchronous spawning, turns out to work so well that we&#8217;ve assigned a default value of 1 for PassengerMinInstances. With Phusion Passenger 3, spawning delays should become a thing of the past!</p>
<h2>Smart spawning support for all Rack applications</h2>
<p><a href="http://www.modrails.com/documentation/Users%20guide%20Apache.html#spawning_methods_explained">Smart spawning</a> is a core feature of Phusion Passenger since version 1.0. It can reduce the spawning time of Rails processes by as much as 90%, and in combination with Ruby Enterprise Edition it allows you to save 33% memory on average.</p>
<p>However, smart spawning was limited to Rails applications only, not for Rack applications. Starting from Rails 3, all Rails 3 applications are also Rack applications, and Phusion Passenger 2 only supports smart spawning of Rails 3 applications if you remove config.ru (thereby forcing Phusion Passenger to detect it as a Rails app, not a Rack app).</p>
<p>Phusion Passenger 3 now supports smart spawning for all Rack applications. This works transparently and without further configuration.</p>
<h2>Ability to access individual application processes over HTTP</h2>
<p><img src="http://blog.phusion.nl/wp-content/uploads/2010/07/individual-http.jpg" alt="" title="" width="300" height="167" class="alignnone size-full wp-image-837 exhibit"></p>
<p>When one sends a request to the web server, Phusion Passenger routes the request to one of the application processes, but one never knows up front which one that&#8217;s going to be, nor is there a way to control it. This is fine for normal requests, but sometimes one wants to send a request to a specific application process, e.g. to debug something. Another use case for accessing individual application processes directly is broadcasting messages: e.g. telling every application process to clear some local in-memory caches.</p>
<p>This has always been possible with reverse proxy app servers like Mongrel and Thin because each of their processes listen on their own port. Phusion Passenger 3 now also allows one to access individual application processes directly. Each application process can now be accessed through its own TCP socket port. The port numbers are randomly allocated by the operating system and the protocol is plain HTTP, so you can use existing tools like &#8216;curl&#8217;.</p>
<p>We take security very seriously. These sockets are bound to 127.0.0.1 so it&#8217;s not possible to access them from remote computers. Furthermore, each socket is protected by its own unique randomly generated secure password. One can use &#8216;passenger-status&#8217; to query the ports and passwords.</p>
<h2>Global queuing now on by default</h2>
<p>Many people with web apps that have long-running requests are familiar with the &#8220;slow Mongrel queue problem&#8221;. When one sets up Mongrel or Thin behind Nginx or Apache, it&#8217;s possible for new requests to be queued behind a Mongrel/Thin instance which is currently processing a long-running request. When other Mongrel/Thin instances become available, this new request is already queued behind the long-running request and cannot migrate to the other free instances. The more long-running requests one has the bigger of a problem this can become, resulting to very long response times for some users.</p>
<p>There are multiple ways to solve this problem, but Phusion Passenger has already solved this problem for a long time with a feature that we call <a href="http://www.modrails.com/documentation/Users%20guide%20Apache.html#PassengerUseGlobalQueue">global queuing</a>. It was disabled by default because turning global queuing off would yield a little bit of extra performance in microbenchmarks. However for version 3.0 we&#8217;ve decided to turn it on by default: rather than saving those few milliseconds in benchmarks, we believe it&#8217;s much more important that all users get to have fair response times.</p>
<h2>Ability to disable friendly error pages</h2>
<p>One of the innovations that Phusion Passenger has brought us is the ability to show friendly error messages directly in the browser, e.g. when the web application fails to spawn because of a syntax error. This dramatically improves usability for developers, new and experienced alike, because one doesn&#8217;t have to manually dig into log files anymore. However this is not always desirable in production: although the error page is developer-friendly, it isn&#8217;t necessarily user-friendly. It might also expose information that the system administrator would rather not expose such as filenames.</p>
<p>Phusion Passenger 3 introduces a new configuration directive for controlling whether friendly error pages should be shown: &#8216;PassengerFriendlyErrorPages&#8217;. When turned off, Phusion Passenger will display the standard Apache/Nginx 500 Internal Server Error page instead, but all error messages are still logged to the web server error log file.</p>
<h2>Nginx-specific improvements</h2>
<p><img src="http://blog.phusion.nl/wp-content/uploads/2010/07/nginx-passenger.png" alt="" title="" width="400" height="161" class="alignnone size-full wp-image-843"></p>
<p>In Phusion Passenger 3, Nginx is compiled with SSL support by default due to popular demand.</p>
<p>We&#8217;ve also introduced the following new configuration options:</p>
<dl>
<dt>passenger_set_cgi_param (name) (value)</dt>
<dd>This is the Phusion Passenger equivalent of proxy_module&#8217;s proxy_set_header. It allows you to pass arbitrary CGI environment parameters the web application.</dd>
<dt>passenger_buffer_response (on|off)</dt>
<dd>This is the Phusion Passenger equivalent of proxy_buffer. It was and still is off by default to allow streaming responses, but when streaming responses aren&#8217;t necessary one can turn this option on so that Nginx can gracefully handling clients that are slow at receiving responses.</dd>
<dt>passenger_ignore_client_abort (on|off)</dt>
<dd>This is the Phusion Passenger equivalent of proxy_ignore_client_abort.</dd>
</dl>
<h2>In other news</h3>
<p>In Technology Preview 3 we unveiled Phusion Passenger Lite. Based on various feedback that we&#8217;ve gotten since then, we&#8217;ve decided to rename this thing to <b>Phusion Passenger Standalone</b> in order to reduce confusion about what it is.</p>
<h2>Towards the future</h2>
<p>If there is one thing we&#8217;ve come to understand over time is that different businesses have different needs and constraints when it comes to deploying their applications. In order to provide the best experience and support to these businesses, we&#8217;re working on different versions of Phusion Passenger to accommodate them even better in their respective environments. In light of this, we want to underline that the technology previews we&#8217;re currently writing about will and have described the cool stuff that will be incorporated in the version intended for the most high demand environments. More information on this will follow. Having said that, almost everything we&#8217;ve blogged about up till this point will be included in the version that&#8217;s available for everybody.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.phusion.nl/2010/07/29/the-road-to-passenger-3-technology-preview-4-adding-new-features-and-removing-old-limitations/feed/</wfw:commentRss>
		<slash:comments>36</slash:comments>
		</item>
		<item>
		<title>The Road to Passenger 3: Technology Preview 3 &#8211; Closing the gap between development and production &amp; rethinking the word &#8220;easy&#8221;</title>
		<link>http://blog.phusion.nl/2010/07/01/the-road-to-passenger-3-technology-preview-3-closing-the-gap-between-development-and-production-rethinking-the-word-easy/</link>
		<comments>http://blog.phusion.nl/2010/07/01/the-road-to-passenger-3-technology-preview-3-closing-the-gap-between-development-and-production-rethinking-the-word-easy/#comments</comments>
		<pubDate>Thu, 01 Jul 2010 10:52:35 +0000</pubDate>
		<dc:creator>Hongli Lai</dc:creator>
				<category><![CDATA[Phusion Passenger]]></category>

		<guid isPermaLink="false">http://blog.phusion.nl/?p=764</guid>
		<description><![CDATA[Before Phusion Passenger came along, the most widely used Ruby app servers all implemented the same model which we refer to as the reverse proxy model. In this model, the user had to manually setup a bunch of app server processes and had to configure the web server to proxy requests to the app server [...]]]></description>
			<content:encoded><![CDATA[<p>Before Phusion Passenger came along, the most widely used Ruby app servers all implemented the same model which we refer to as the <em>reverse proxy model</em>. In this model, the user had to manually setup a bunch of app server processes and had to configure the web server to proxy requests to the app server processes. The technically inclined understand this model, but it is confusing to e.g. newcomers and to people who in general don&#8217;t have a lot of system administration skills or a reasonable understanding of HTTP. Most people were and still are much more familiar with PHP&#8217;s model, where you tell the web server where your app is and then have the web server take care of the rest for you. It was this confusion that caused all the uproar about sucky Rails deployment back in 2008.</p>
<p>While developing Phusion Passenger for Apache, we decided to follow a PHP-like model because ease of use was one of our main goals. No manual setups of app servers. No manual proxy configuration. Upload and go. For Phusion Passenger for Nginx, we continued to follow this model. Let&#8217;s call this the <em>automatic model</em>. As of 2010, Phusion Passenger appears to be the only widely-used Ruby app server that implements this model; the other widely-used Ruby app servers implement the reverse proxy model.</p>
<h2>Reverse proxy vs automatic model: which one is better?</h2>
<p>Ever since Phusion Passenger was first released, debates popped up about which one is superior. We believe that no model is inherently superior to the other. They are just <em>different</em>, meaning that both models have their own pros and cons. Which one is better for you depends a lot on your server infrastructure and your system administrators&#8217; preferences.</p>
<p>Phusion Passenger&#8217;s automatic model:</p>
<ul>
<li>Integrated into the web server. Processes are managed along with the web server itself, and configuration happens in the web server config file.</li>
<li>Easier to comprehend for most people. Appears more &#8220;standard stack&#8221; to system administrators who are not familiar with Ruby specifically.</li>
<li>Can spawn and shutdown processes dynamically according to traffic patterns.</li>
<li>Processes are automatically monitored: if they crash they are automatically restarted.</li>
<li>Less manual control over individual processes because they can come and go at any time.</li>
</ul>
<p>Reverse proxy model as implemented by most other Ruby app servers:</p>
<ul>
<li>App server is a separate entity. Processes are managed distinctly from the web server itself. Configuration happens outside the web server.</li>
<li>Many people have a hard time comprehending this and they generally find setups like this cumbersome, but to experts this model can be seen as simple, elegant and sensible.</li>
<li>Most app servers do not automatically restart crashed processes and one needs to monitor processes separately with things like Monit.</li>
<li>One needs to specify the number of processes up front: no dynamic process count scaling according to traffic.</li>
<li>Allows fine-grained manual control over individual processes.</li>
</ul>
<p>We are not commenting on which points are supposed to be pros and which points are supposed to be cons because they are highly subjective. For us, integration into the web server is a strong plus because we host dozens of apps on our server(s) and we don&#8217;t like to spend time managing app server processes for each app, but other people are uncomfortable with having the web server manage things automatically and would prefer to keep a close eye on everything.</p>
<p>The automatic model can also be problematic to people who were on the reverse proxy model because they already had their web servers and infrastructures configured in a certain way. Switching to Phusion Passenger could mean changing a lot of web server configuration.</p>
<h2>The hidden but unutilized potential</h2>
<p>Reverse proxy model app servers can potentially have an extra advantage, but for some reason this hasn&#8217;t been implemented to its full potential so far:<br />
Reverse proxy app servers are just easier to get started with. When you&#8217;ve just created a new Rails app, you can start it with <code>script/server</code> and you&#8217;re ready to go.</p>
<p>This works great in development but totally blows up in production. Reverse proxy model app servers must be put behind a reverse proxy e.g. Nginx or HAProxy for a variety of reasons such as security, load balancing between processes, handling of slow clients, etc. In production environments nobody exposes Mongrel or Thin directly to the Internet. Unicorn even explicitly documents that it is designed to be put behind a reverse proxy and that it doesn&#8217;t bother with slow clients at all.</p>
<p>In contrast, Phusion Passenger 2.x requires one to configure the web server, meaning the user must first install a web server. This is cumbersome when you&#8217;re in development and just want to get started. It is also cumbersome if you&#8217;re a newcomer and aren&#8217;t familiar with Apache or Nginx, and you just want to get your app running on your server.</p>
<p>Do you type <code>script/server</code> in development instead of creating a virtual host in the Apache or Nginx? Well you&#8217;re not the only one: we also do this until we eventually get sick of it, but there&#8217;s always a mental blockade that tells us that editing the web server configuration file is too much work to bother with.</p>
<p>Well, until Phusion Passenger 3 comes along.</p>
<h2>Phusion Passenger Lite: fusion between the reverse proxy and the automatic model</h2>
<p>In addition to Phusion Passenger for Apache and Phusion Passenger for Nginx, Phusion Passenger 3 introduces a new component to the existing lineup: Phusion Passenger Lite.</p>
<p><object width="660" height="405"><param name="movie" value="http://www.youtube.com/v/nGne_Miqiwc&#038;hl=en_US&#038;fs=1&#038;hd=1&#038;border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/nGne_Miqiwc&#038;hl=en_US&#038;fs=1&#038;hd=1&#038;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="405"></embed></object></p>
<p>When it comes to usage, its interface is almost identical to that of Mongrel and Thin. To run your Ruby web app, just type this in the terminal and you&#8217;re ready to go:</p>
<pre>passenger start</pre>
<h3>Closing the gap between development and production</h3>
<p>Phusion Passenger Lite consists of an <b>Nginx core</b>. Nginx is known to be extremely scalable, high-performance and lightweight. You do not need to have Nginx already installed; this is automatically taken care of. You also do not need to have any Nginx experience: Nginx is hidden from the user but its power is automatically utilized.</p>
<p>Unlike Mongrel, Thin and Unicorn, Phusion Passenger Lite can be directly exposed to the Internet. It can serve static files at blazing speeds thanks to the Nginx core. Mongrel and Thin can serve static files but they aren&#8217;t very good at it. Unicorn doesn&#8217;t even try.</p>
<h3>Easy migration from existing reverse proxy app servers</h3>
<p>Because the interface is so similar, you can easily swap Mongrel, Thin or Unicorn in your existing reverse proxy setup and replace it with Phusion Passenger Lite. Unlike Mongrel and Thin, Phusion Passenger Lite only has to listen on a single socket instead of multiple, vastly simplifying your reverse proxy configurations. Phusion Passenger Lite can listen on a Unix domain socket instead of a TCP socket, just like Thin and Unicorn. In reverse proxy setups this can yield much higher performance than TCP sockets.</p>
<h3>Advantages over existing reverse proxy app servers</h3>
<p>Unlike Mongrel, Thin and Unicorn, Phusion Passenger Lite can dynamically spawn and shutdown processes according to traffic. However you can <em>also</em> configure it to use a static number of processes! In fact you can configure a minimum and a maximum and have Phusion Passenger Lite automatically figure out the number of processes to use for the current traffic.</p>
<p>Like Phusion Passenger for Apache/Nginx and Unicorn, worker processes that have crashed are automatically restarted.</p>
<p>That said, bear in mind that this advantage can be a disadvantage to some people. At its heart, Phusion Passenger Lite still manages processes for you, so you don&#8217;t have as much fine-grained control over the processes as you do with other reverse proxy app servers.</p>
<h3>Advantage over Phusion Passenger for Apache and Phusion Passenger for Nginx</h3>
<p>Another unintended advantage of Phusion Passenger Lite is that it runs as the same user as the shell and respects environment variables that are defined for your shell, e.g. things like PATH, LD_LIBRARY_PATH, RUBYOPT, GEM_PATH and GEM_HOME.</p>
<ul>
<li>Some people find that their app cannot load a certain library when the app is started in Phusion passenger, but can when the app is started with e.g. Mongrel or Thin. This is almost always caused by some environment variable that&#8217;s set in the shell but not in the web server: everything you set in /etc/bashrc and friends don&#8217;t have effect on processes started from the web server.</li>
<li>Some people say that their application does not start on Phusion Passenger, but does under Mongrel/Thin. Very often this turns out to be just a permission issue or some web server configuration issue.</li>
</ul>
<p>With Phusion Passenger Lite, even confusion like this will be a thing of the past.</p>
<h2>Rethinking the word &#8220;easy&#8221;: automatic mass deployment</h2>
<p>Phusion Passenger is considered by many people the easiest Ruby app server out there. But can it be easier? After some heavy thinking outside the box, we believe the answer is yes, it certainly can!</p>
<p>Imagine having a directory full of Ruby web apps, e.g. <em>~/Sites</em>. To deploy an app, just drop your application&#8217;s directory into <em>~/Sites</em>. To undeploy it, remove the application&#8217;s directory. The application directory&#8217;s name is used as the domain name. No manually signaling the web server for a restart.</p>
<p>This is exactly what we&#8217;ve done with Phusion Passenger Lite. We call this feature <b>automatic mass deployment</b>. Check out this demo.</p>
<p><object width="660" height="405"><param name="movie" value="http://www.youtube.com/v/NsTeDTw9Lg8&#038;hl=en_US&#038;fs=1&#038;hd=1&#038;border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/NsTeDTw9Lg8&#038;hl=en_US&#038;fs=1&#038;hd=1&#038;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="405"></embed></object></p>
<p>So from now on, if you have a bunch of Ruby web apps in the same directory, just run this command in that directory</p>
<pre>sudo passenger start -p 80 -u (some_unprivileged_username)</pre>
<p>and you&#8217;ve immediately deployed every single app!</p>
<h2>Conclusion</h2>
<p>Phusion Passenger Lite does not replace Phusion Passenger for Apache or Phusion Passenger for Nginx. Rather, it is a complement to our existing lineup of Phusion Passenger products, optimized for different use cases. Phusion Passenger Lite closes the gap between development and production and can be used comfortably and easily in both. It can act as a drop-in replacement for your existing reverse proxy based setup. It makes Ruby web app deployment even easier than before: now you don&#8217;t even need a separate web server. On the other hand, if you need integration into the web server, then Phusion Passenger for Apache/Nginx is for you.</p>
<p>We hope you&#8217;ve enjoyed this Technology Preview. Please stay tuned for the next one because we have more exciting news for you!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.phusion.nl/2010/07/01/the-road-to-passenger-3-technology-preview-3-closing-the-gap-between-development-and-production-rethinking-the-word-easy/feed/</wfw:commentRss>
		<slash:comments>48</slash:comments>
		</item>
		<item>
		<title>Phusion Passenger 2.2.15 released</title>
		<link>http://blog.phusion.nl/2010/06/24/phusion-passenger-2-2-15-released/</link>
		<comments>http://blog.phusion.nl/2010/06/24/phusion-passenger-2-2-15-released/#comments</comments>
		<pubDate>Thu, 24 Jun 2010 12:34:19 +0000</pubDate>
		<dc:creator>Hongli Lai</dc:creator>
				<category><![CDATA[Phusion Passenger]]></category>

		<guid isPermaLink="false">http://blog.phusion.nl/?p=760</guid>
		<description><![CDATA[We know that many people are eagerly awaiting Phusion Passenger 3, but we ask these people to be patient for a while longer. We want to ensure that the initial version is of sufficient quality before we release it to the world. But for now, we haven&#8217;t forgotten about all the people who are still [...]]]></description>
			<content:encoded><![CDATA[<p>We know that many people are eagerly awaiting Phusion Passenger 3, but we ask these people to be patient for a while longer. We want to ensure that the initial version is of sufficient quality before we release it to the world. But for now, we haven&#8217;t forgotten about all the people who are still on 2.2, and so we&#8217;re releasing this bug fix release.</p>
<h2>What&#8217;s new in version 2.2.15?</h2>
<dl>
<dt>[Apache] Fixed incorrect temp dir cleanup by passenger-status</dt>
<dd>
<p>On some systems, running passenger-status could print the following message:</p>
<p>*** Cleaning stale folder /tmp/passenger.1234</p>
<p>&#8230;after which Phusion Passenger breaks because that directory is necessary for it to function properly. The cause of this problem has been found and has been fixed.</p>
</dd>
<dt>[Apache] Fixed some upload handling problems</dt>
<dd>Previous versions of Phusion Passenger check whether the size of the received upload data matches the contents of the Content-Length header as sent by the client. It turns out that there could be a mismatch e.g. because of mod_deflate input compression, so we can&#8217;t trust Content-Length anyway and we were being too strict. The check has now been removed.</dd>
<dt>[Nginx] Fixed compilation issues with Nginx >= 0.7.66</dt>
<dd>Thanks to Potamianos Gregory for reporting this issue. <a href="http://code.google.com/p/phusion-passenger/issues/detail?id=500">Issue #500</a>.</dd>
<dt>[Nginx] Default Nginx version changed to 0.7.67</dt>
<dd>The previous default version was 0.7.65.</dd>
<dt>Fixed more Bundler problems</dt>
<dd>Previous versions of Phusion Passenger would preload some popular libraries such as mysql and sqlite3 in order to utilize copy-on-write optimizations better. However this behavior conflicts with Bundler so we&#8217;ve removed it.</dd>
</dl>
<h2>How do I upgrade to 2.2.15?</h2>
<h3>Via a gem</h3>
<p>Please install it with the following command:</p>
<pre>gem install passenger</pre>
<p>Next, run:</p>
<pre>passenger-install-apache2-module</pre>
<p>Or, if you&#8217;re an Nginx user:</p>
<pre>passenger-install-nginx-module</pre>
<p>Please don&#8217;t forget to copy &#038; paste the Apache/Nginx config snippet that the installer gives you.</p>
<h3>Via a native Linux package</h3>
<p>John Leach from <a href="http://www.brightbox.co.uk/">Brightbox</a> has kindly provided Ubuntu packages for Phusion Passenger. These packages are available from the Brightbox repository which you can find at:</p>
<pre>http://apt.brightbox.net</pre>
<p>Add the following line to the Third Party Software Sources:</p>
<pre>deb http://apt.brightbox.net hardy main</pre>
<p>(The simplest way to do that is to create a file in /etc/apt/sources.list.d/ containing the deb instruction, and then run &#8216;apt-get update&#8217;).</p>
<p>Once you’ve done this then you can install Phusion Passenger by running:</p>
<pre>sudo apt-get install libapache2-mod-passenger</pre>
<p>-or-</p>
<pre>sudo apt-get install nginx-brightbox</pre>
<p>(Note that John is currently packaging 2.2.15, so it might take a while before this release shows up in the apt repository.)</p>
<h2>Final</h2>
<p>Phusion Passenger is provided to the community for free. If you like Phusion Passenger, please consider sending us a <a href="http://www.modrails.com/enterprise.html">donation</a>. Thank you!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.phusion.nl/2010/06/24/phusion-passenger-2-2-15-released/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>The Road to Passenger 3: Technology Preview 2 &#8211; Stability, robustness, availability, self-healing</title>
		<link>http://blog.phusion.nl/2010/06/18/the-road-to-passenger-3-technology-preview-2-stability-robustness-availability-self-healing/</link>
		<comments>http://blog.phusion.nl/2010/06/18/the-road-to-passenger-3-technology-preview-2-stability-robustness-availability-self-healing/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 13:13:04 +0000</pubDate>
		<dc:creator>Hongli Lai</dc:creator>
				<category><![CDATA[Phusion Passenger]]></category>

		<guid isPermaLink="false">http://blog.phusion.nl/?p=709</guid>
		<description><![CDATA[In Technology Preview 1 we&#8217;ve shown that Phusion Passenger 3 can be up to 55% faster on OS X. Performance is good and all, but it won&#8217;t do you any good unless the software keeps running. When Phusion Passenger goes down it&#8217;s an annoyance at best, but in the worst case any amount of down [...]]]></description>
			<content:encoded><![CDATA[<p>In <a href="http://blog.phusion.nl/2010/06/10/the-road-to-passenger-3-technology-preview-1-performance-2/">Technology Preview 1</a> we&#8217;ve shown that Phusion Passenger 3 can be <a href="http://blog.phusion.nl/2010/06/10/the-road-to-passenger-3-technology-preview-1-performance-2/">up to 55% faster on OS X</a>. Performance is good and all, but it won&#8217;t do you any good unless the software keeps running. When Phusion Passenger goes down it&#8217;s an annoyance at best, but in the worst case any amount of down time can cost your organization real money. Any HTTP request that&#8217;s dropped can mean a lost transaction.</p>
<p>Although stability, robustness and availability aren&#8217;t as hot and fashionable as performance, for Phusion Passenger 3 we have not neglected these areas. In fact we&#8217;ve been working on hard on implementing additional safeguards, as well as refactoring our designs to make things more stable, robust and available.</p>
<h2>Self-healing</h2>
<p>In Phusion Passenger 2.2&#8242;s architecture, there are a number of processes that work together. At the very front there is the web server, which could consist of multiple processes. If you&#8217;ve ever typed <code>passenger-memory-stats</code> then you&#8217;ve seen the web server processes at work. Apache typically has a dozen of processes (prefork MPM) and Nginx typically has 3.</p>
<p>For Phusion Passenger to work, there must be some kind of global state, shared by all web server processes. In this global state information is stored such as which Ruby app processes exist, which ones are currently handling requests, etc. This allows Phusion Passenger to make decisions such as which Ruby app process to route a request to, whether there is any need to spawn another process, etc. This global state exists in a separate process which all web server processes communicate with. On Apache this is the ApplicationPoolServerExecutable, on Nginx this is the HelperServer. For simplicity&#8217;s sake, let&#8217;s call both of them HelperServer (in Passenger 3 they&#8217;ve both been renamed to PassengerHelperAgent). The HelperServer is written in C++ and is extremely fast and lightweight, consuming only about 500 KB of real memory.</p>
<p><a href="http://blog.phusion.nl/wp-content/uploads/2010/06/old-architecture.jpg"><img src="http://blog.phusion.nl/wp-content/uploads/2010/06/old-architecture.jpg" alt="" title="Phusion Passenger 2.2 architecture" width="500" height="329" class="alignnone size-full wp-image-713 exhibit" /></a></p>
<p>As you can see the HelperServer is essentially the core of Phusion Passenger. The problem with 2.2 is that if the HelperServer goes down, Phusion Passenger goes down with it entirely. Phusion Passenger will stay down until the web server is restarted. For various architectural reasons in Apache and Nginx, it is not easily possible to restart the HelperServer upon a crash in a reliable way.</p>
<p>Now, why would the HelperServer ever crash?</p>
<ol>
<li>Bugs. We are humans too and we can make mistakes, so it&#8217;s possible that there are crasher bugs in the HelperServer. In the past 2 years we&#8217;ve spent a lot of effort into making the HelperServer stable. For example we check <b>all</b> system calls for error results, and we&#8217;ve spent a lot of effort into making sure that uncaught exceptions are properly logged and handled. However one can never prove that a system is entirely bug free. We aren&#8217;t aware of any crasher bugs at this time but they might still exist.</li>
<li>Limited system resources. For example if the system is very low on memory, the kernel will invoke the Out-Of-Memory Killer (OOM Killer). Properly selecting a process to kill in low-memory conditions is actually a pretty hard problem, and more often than not the OOM Killer selects the wrong process, e.g. our HelperServer.</li>
<li>System administrator mistakes. Passing the wrong PID to the kill command and things like that.</li>
<li>System configuration problems, hardware problems (faulty RAM and stuff) and operating system bugs.</li>
</ol>
<p>There are some people who have reported problems with the HelperServer. Their HelperServer crashes tend to happen sporadically and they usually cannot reproduce the problem reliably themselves. For many people (2) is often the cause of HelperServer crashes, and increasing the amount of swap is reported to help, but for other people the problems lie elsewhere.</p>
<p><b>The crashes aren&#8217;t always our fault (i.e. not bugs), but they are always our problem.</b> It saddens us to say that we&#8217;ve been unable to help these people so far because we simply cannot reproduce their problems even when we mimic their system configuration.</p>
<p>But this is going to change.</p>
<h3>Enter Phusion Passenger 3 with self-healing architecture</h3>
<p>Phusion Passenger 3 now introduces a lightweight <b>watchdog</b> process into the architecture. It monitors both the web server and the HelperServer. If the HelperServer crashes, then the watchdog restarts the HelperServer immediately.</p>
<p><a href="http://blog.phusion.nl/wp-content/uploads/2010/06/new-architecture.jpg"><img src="http://blog.phusion.nl/wp-content/uploads/2010/06/new-architecture.jpg" alt="" title="Phusion Passenger 3 architecture" width="500" height="396" class="alignnone size-full wp-image-716 exhibit" /></a></p>
<p>Of course if the watchdog is killed then it&#8217;s still game over, but we&#8217;ve taken extra care in terms of code to try to make this extremely unlikely to happen. The watchdog for starters is extremely lightweight, even more so than the HelperServer. It is written in C++ and uses about 150-200 KB of memory. Its only job is to start the HelperServer and other Phusion Passenger helper processes and to monitor them. The codebase extensively uses C++ idioms that promote code stability, such as smart pointers and RAII. By employing heavy testing as well, we&#8217;re expecting to have brought the possibility that the watchdog contains crashing bugs to a minimum. The small footprint and the fact that it does nothing most of the time minimizes the chances that it&#8217;s killed by the OOM Killer. In fact, if the watchdog is running on Linux and has root access, it will register itself as not OOM-killable.</p>
<p>No longer will HelperServer crashes take down Phusion Passenger, even if the crash isn&#8217;t our fault.</p>
<h3>Restarts are fast</h3>
<p>It only takes a few hundred miliseconds to restart the HelperServer.</p>
<h3>Crashing signals are logged</h3>
<p>If the HelperServer crashes then the watchdog will tell you whether it crashed because of a signal, e.g. SIGSEGV. This makes it much easier for system administrators to see why a component crashed so that they might fix the underlying cause. In Phusion Passenger 2.2 this was not possible.</p>
<h3>Guaranteed cleanup</h3>
<p>Upon shutting down or restarting the web server, Phusion Passenger 2.2 gracefully notifies application processes to shut down. It does not force them to. This would pose a problem for broken web applications that don&#8217;t shut down properly, e.g. web applications that are stuck in an infinite loop, stuck in a database call, etc.</p>
<p>Phusion Passenger 3 guarantees that all application processes are properly shut down when you shutdown/restart the web server. It gives application processes a deadline of 30 seconds to shutdown gracefully; if any of them fail to do that, they&#8217;ll be terminated with SIGKILL.</p>
<p>This mechanism works so well that it even extends to background processes that have been spawned off by the web application processes. All of those processes belong to the same process group. Phusion Passenger sends SIGKILL to the entire process group and terminates everything. No longer will you have to manually clean up processes; you can be confident that everything is gone if you shutdown/restart the web server.</p>
<h2>Zero-downtime web server restart</h2>
<div class="float-right"><a href="http://blog.phusion.nl/wp-content/uploads/2010/06/restart-dropped.jpg"><img src="http://blog.phusion.nl/wp-content/uploads/2010/06/restart-dropped-small.jpg" alt="" title="" width="200" height="149" class="alignnone size-full wp-image-728 exhibit" /></a></div>
<p>In Phusion Passenger 2.2, whenever you restart the web server, HTTP requests that are currently in progress are dropped and the clients receive ugly &#8220;Connection reset by server&#8221; or similar error messages. This can be a major problem for large websites, because during the 1 second that Phusion Passenger is restarting hundreds of people could be getting errors. If your visitor happens to be clicking on that &#8220;Buy&#8221; button, well, tough luck.</p>
<div class="clear-float"></div>
<div class="float-right"><a href="http://blog.phusion.nl/wp-content/uploads/2010/06/restarting-web-server.jpg"><img src="http://blog.phusion.nl/wp-content/uploads/2010/06/restarting-web-server1.jpg" alt="" title="" width="200" height="172" class="alignnone size-full wp-image-730 exhibit" /></a></div>
<p>In Phusion Passenger 3 we&#8217;ve implemented zero-downtime web server restart. Phusion Passenger and the web server are restarted in the background, and while this is happening, the old web server instance (with the old Phusion Passenger instance) will continue to process requests.</p>
<p>The architecture is actually a little bit more complicated than what&#8217;s shown in the diagram because behind the web server there are a bunch of Phusion Passenger processes, but you get the gist of it.</p>
<div class="clear-float"></div>
<div class="float-right"><a href="http://blog.phusion.nl/wp-content/uploads/2010/06/restarted-web-server.jpg"><img src="http://blog.phusion.nl/wp-content/uploads/2010/06/restarted-web-server-small.jpg" alt="" title="" width="200" height="208" class="alignnone size-full wp-image-724 exhibit" /></a></div>
<p>When the new web server (along with the new Phusion Passenger) has been started, it will immediately begin accepting new requests. Old requests that aren&#8217;t finished yet will continue to be processed by the old web server and Phusion Passenger instance. The old instance will shut down 5 seconds after all requests have been finished, to counter the possibility that the kernel still has leftover requests in the socket backlog that hit the old instance after its done processing everything already in its queue.</p>
<div class="clear-float"></div>
<p>This works so well that we can restart the web server while running an &#8216;ab&#8217; benchmark with 100 concurrent users without dropping a single request!</p>
<div style="text-align: center"><a href="http://blog.phusion.nl/wp-content/uploads/2010/06/ab.jpg"><img src="http://blog.phusion.nl/wp-content/uploads/2010/06/ab.jpg" alt="" title="" width="600" height="228" class="alignnone size-full wp-image-741 exhibit" /></a></div>
<h2>Zero-downtime application shutdown</h2>
<p>Suppose that a Ruby application process has gone rogue and you want to shut it down. The most obvious way to do that is by sending it a SIGTERM or SIGKILL signal. However this would also abort whatever request it is currently processing.</p>
<p>In Phusion Passenger 2.2, you could also send SIGUSR1 to the process, causing it to shut down gracefully after it has processed all requests in its socket backlog. However this introduces two problems:</p>
<ul>
<li>If the website is very busy then the process&#8217;s socket backlog will never be empty, and so the process will never exit.</li>
<li>Exiting after the process has detected an empty backlog can introduce a race condition. Suppose that, right after the process has determined that its backlog is empty but before it has shutdown completely, Phusion Passenger tries to send another request to the process. This request would be lost.</li>
</ul>
<p>In Phusion Passenger 3, SIGUSR1 will now cause the application process to first unregister itself so that Phusion Passenger won&#8217;t route any new requests to it anymore. It will then proceed with exiting 5 seconds after its socket backlog has become empty. This way you can gracefully shutdown a process without losing a single request.</p>
<h2>Conclusion</h2>
<p>Although Phusion Passenger has been powering many high-traffic Ruby websites for a while now, some people still have some doubts about whether Phusion Passenger is fit for production. Instead of using words convince them, we would rather convince them with real results. Phusion Passenger 3 raises the bar in the areas of performance, stability, robustness and availability yet higher, but it doesn&#8217;t stop here. Please stay tuned for the next Technology Preview in which will unveil even more of Phusion Passenger 3.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.phusion.nl/2010/06/18/the-road-to-passenger-3-technology-preview-2-stability-robustness-availability-self-healing/feed/</wfw:commentRss>
		<slash:comments>38</slash:comments>
		</item>
		<item>
		<title>The Road to Passenger 3: Technology Preview 1 – Performance</title>
		<link>http://blog.phusion.nl/2010/06/10/the-road-to-passenger-3-technology-preview-1-performance-2/</link>
		<comments>http://blog.phusion.nl/2010/06/10/the-road-to-passenger-3-technology-preview-1-performance-2/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 13:11:59 +0000</pubDate>
		<dc:creator>Hongli Lai</dc:creator>
				<category><![CDATA[Phusion Passenger]]></category>

		<guid isPermaLink="false">http://blog.phusion.nl/?p=703</guid>
		<description><![CDATA[It has already been two years since we&#8217;ve first released Phusion Passenger. Time sure flies and we&#8217;ve come a long way since then. We were the first to implement a working Ruby web app deployment solution that integrates seamlessly in the web server, and all the features that we&#8217;ve developed over time &#8211; smart spawning [...]]]></description>
			<content:encoded><![CDATA[<p>It has already been two years since we&#8217;ve first released Phusion Passenger. Time sure flies and we&#8217;ve come a long way since then. We were the first to implement a working Ruby web app deployment solution that integrates seamlessly in the web server, and all the features that we&#8217;ve developed over time &#8211; smart spawning and memory reduction, upload buffering, Nginx support, etc &#8211; have served us for a long time. Nevertheless, it is time to say goodbye to the old Phusion Passenger 2.2 codebase. In the past we had focused primarily on three things:</p>
<ul>
<li>Ease of use.</li>
<li>Stability.</li>
<li>Robustness.</li>
</ul>
<p>Notice that <b>&#8220;performance&#8221;</b> is not on the above list. We strived to make Phusion Passenger &#8220;fast enough&#8221;, e.g. not ridiculously slower than the alternatives. Lately it would appear that competitors are once again focusing on performance. We can of course not afford to stay behind. We&#8217;ve been working on Phusion Passenger 3 for a while now. Today we will begin unveiling the technology behind this new major Phusion Passenger version. This blog post is the first of the multiple technology previews to come.<br />
<span id="more-703"></span></p>
<h2>The performance test</h2>
<p>It&#8217;s not very useful to benchmark Phusion Passenger performance using a Rails application because most of the time is spent in Rails and the application itself. Therefore we&#8217;ll benchmark with a simple Rack application. Consider the following hello world Rack application:</p>
<pre>app = proc do |env|
  [200, { "Content-Type" => "text/html" }, ["hello world\n"]]
end

run app</pre>
<p>How fast does this run on Phusion Passenger 2.2?</p>
<ul>
<li>Operating system: OS X Snow Leopard</li>
<li><code>ab -c 25 -n 10000 http://rack.test/</code>, pool size 25</li>
<li><b>Apache:</b> 1628 req/sec</li>
<li><b>Nginx:</b> 1843 req/sec</li>
</ul>
<p>Now let&#8217;s look at Phusion Passenger 3:</p>
<ul>
<li>Operating system: OS X Snow Leopard</li>
<li><b>Apache:</b> 2225 req/sec; <b>36% faster</b></li>
<li><b>Nginx:</b> 2864 req/sec; <b>55% faster</b></li>
</ul>
<p>That&#8217;s right, the Nginx version is over 50% faster than 2.2 on OS X!</p>
<h2>A graph is worth more than a thousand words</h2>
<p><img src="http://blog.phusion.nl/wp-content/uploads/2010/01/performance.jpg" alt="" title="performance" width="731" height="492" class="alignnone size-full wp-image-468" /></p>
<p>Suffice it to say, even though Phusion Passenger was already pretty fast, we believe we&#8217;ve created some pretty significant improvements in terms of performance and it will be interesting to see how the final version of Phusion Passenger 3 will stack up against the competition. Needless to say, we&#8217;ve performed our own benchmarks already and have concluded that &#8220;the self-proclaimed fastest deployment solution&#8221; really isn&#8217;t the fastest deployment solution compared to Phusion Passenger 3. <img src='http://blog.phusion.nl/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  That said, benchmarks are lies, lies, lies, damn lies of course and your mileage may definitely vary so we will encourage you to perform any kind of benchmark you&#8217;d like when we release 3. For us, the most important issue still lies in the trade off of how much time you have to spend actually maintaining your setup, but as the graphs indicate, we&#8217;ve made some pretty monstrous improvements to performance as well.</p>
<h2>How did we do it?</h2>
<p>When it comes to optimizing software, there&#8217;s the saying that 20% of the code is responsible for 80% of the time. Not so with Phusion Passenger: we&#8217;ve found that there were no obvious performance bottlenecks. Even profilers turned out to be totally useless because all the times are so small and so close to each other. Phusion Passenger was already pretty fast.</p>
<p>Instead, we optimized the hard way: with lots and lots of micro-optimizations. 2% here, 3% there, etc etc. In other words, <b>blood, sweat, tears and lots of sleepless nights</b>. The optimizations can be summed up as follows:</p>
<dl>
<dt>Reducing system calls</dt>
<dd>System calls are pretty expensive compared to userspace computation. They require a context switch to the kernel. For example, all I/O operations (read(), write()) are system calls. We&#8217;ve performed an extensive code inspection and removed and coalesced a lot of redundant system calls.</dd>
<dt>The beginning of a zero-copy I/O architecture</dt>
<dd>The CPU is very fast nowadays. In fact it is so fast that RAM speed cannot keep up with the CPU. This makes memory access very expensive. In case of I/O intensive applications such as web servers, one would benefit from copying I/O data as little as possible. In order to optimize memory access, we&#8217;ve implemented the beginning of a zero-copy I/O architecture. This architecture covers both the C++ and the Ruby parts of Phusion Passenger.</dd>
<dt>Less Ruby garbage production</dt>
<dd>The garbage collector in Ruby can be a significant bottleneck. We&#8217;ve heavily optimized the Ruby part of the request handler and reduced creation of Ruby objects to a minimum. This made the request handler significantly faster in our tests.</dd>
<dt>Optimizing algorithms and optimizing Ruby code in C</dt>
<dd>Some algorithms have been optimized, e.g. some O(N) algorithms have been replaced by O(log N) or O(1) algorithms. Some key Ruby code has been replaced by C code. The former didn&#8217;t give us a lot of performance because all the O(N) algorithms weren&#8217;t doing a lot of work in the first place, but the latter gave us a much more noticeable boost.</dd>
<dt>Reducing context switches</dt>
<dd>Phusion Passenger is heavily multithreaded and consists of multiple threads and service processes. However, some communication between threads and processes required round trips, which caused more context switches than necessary. We&#8217;ve optimized our internal protocols and reduced context switching to a minimum.</dd>
</dl>
<h2>The future</h2>
<p>As stated in this blog post, this is just a glimpse of what we&#8217;ve got in store for you and as you&#8217;ve come to expect from us, we want to make sure that our findings will hold up in real life scenarios as well. With close to two years of field testing with Phusion Passenger 2, witnessing some of the most high demanding environments in web hosting of our clients, we&#8217;ve been working for the last few months now on forging this experience back into Phusion Passenger 3. Through beta testing in these high-demand Rails environments, we hope to ensure that they will give you the best experience both in an enterprise environment as well as for your personal use. Performance has been touched upon in this blog post, and in the coming period leading up to the release of Phusion Passenger 3, we&#8217;ll start to unveil bit by bit what we&#8217;ve been tinkering on for the last few months. In particular, we&#8217;re looking forward how the zero-copy I/O architecture will unfold in a real life scenario as well as the optimizations we&#8217;ve performed over the last months. Even though we&#8217;re not done yet in terms of optimizing, we will likely hit a ceiling at some point where optimizations will get harder and harder  and this in particular is true if you want to retain features such as ease of use that define Phusion Passenger. One thing is for sure, we want this release to be nothing less than stunning so we encourage you to submit your wish list to us as well. We&#8217;ve likely implemented a lot of them already, but we just want to make sure that we&#8217;re not missing anything.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.phusion.nl/2010/06/10/the-road-to-passenger-3-technology-preview-1-performance-2/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
		<item>
		<title>The Road to Passenger 3: Technology Preview 1 &#8211; Performance</title>
		<link>http://blog.phusion.nl/2010/06/08/the-road-to-passenger-3-technology-preview-1-performance/</link>
		<comments>http://blog.phusion.nl/2010/06/08/the-road-to-passenger-3-technology-preview-1-performance/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 21:31:18 +0000</pubDate>
		<dc:creator>Hongli Lai</dc:creator>
				<category><![CDATA[Phusion Passenger]]></category>

		<guid isPermaLink="false">http://blog.phusion.nl/?p=464</guid>
		<description><![CDATA[This post has been moved: http://blog.phusion.nl/2010/06/10/the-road-to-passenger-3-technology-preview-1-performance-2/]]></description>
			<content:encoded><![CDATA[<p>This post has been moved: <a href="http://blog.phusion.nl/2010/06/10/the-road-to-passenger-3-technology-preview-1-performance-2/">http://blog.phusion.nl/2010/06/10/the-road-to-passenger-3-technology-preview-1-performance-2/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.phusion.nl/2010/06/08/the-road-to-passenger-3-technology-preview-1-performance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Phusion Passenger 2.2.14 released</title>
		<link>http://blog.phusion.nl/2010/06/04/phusion-passenger-2-2-14-released/</link>
		<comments>http://blog.phusion.nl/2010/06/04/phusion-passenger-2-2-14-released/#comments</comments>
		<pubDate>Fri, 04 Jun 2010 10:36:55 +0000</pubDate>
		<dc:creator>Hongli Lai</dc:creator>
				<category><![CDATA[Phusion Passenger]]></category>

		<guid isPermaLink="false">http://blog.phusion.nl/?p=629</guid>
		<description><![CDATA[Just hours after releasing 2.2.12 some changes have been made that would warrant a new release. And so we uploaded the 2.2.13 gem, but before we could post the announcement some people contributed patches that would warrant another release. So we&#8217;ve decided to skip the 2.2.13 announcement altogether and jump straight to 2.2.14. Changes since [...]]]></description>
			<content:encoded><![CDATA[<p>Just hours after releasing 2.2.12 some changes have been made that would warrant a new release. And so we uploaded the 2.2.13 gem, but before we could post the announcement some people contributed patches that would warrant <em>another</em> release. So we&#8217;ve decided to skip the 2.2.13 announcement altogether and jump straight to 2.2.14.</p>
<h2>Changes since 2.2.12</h2>
<dl>
<dt>Fixed some Rails 3 compatibility issues that were recently introduced.</dt>
<dd>About a week ago the Rails team committed a change which broke our Rails loader. This has now been fixed. Rails 3 remains to be a moving target but we&#8217;ll keep moving along with it.</dd>
<dt>[Nginx] Fix a localtime() crash on FreeBSD</dt>
<dd>This was caused by insufficient stack space for threads. <a href="http://code.google.com/p/phusion-passenger/issues/detail?id=499">Issue #499</a>.</dd>
<dt>Added support for Rubinius</dt>
<dd>Patch contributed by Evan Phoenix.</dd>
<dt>Fixed a mistake in the SIGQUIT backtrace message.</dt>
<dd>Patch contributed by Christoffer Sawicki.</dd>
<dt>Fixed a typo that causes config/setup_load_paths.rb not to be loaded correctly.</dt>
<dd>This is related to the new Bundler support.</dd>
</dl>
]]></content:encoded>
			<wfw:commentRss>http://blog.phusion.nl/2010/06/04/phusion-passenger-2-2-14-released/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Phusion Passenger 2.2.12 released</title>
		<link>http://blog.phusion.nl/2010/05/31/phusion-passenger-2-2-12-released/</link>
		<comments>http://blog.phusion.nl/2010/05/31/phusion-passenger-2-2-12-released/#comments</comments>
		<pubDate>Mon, 31 May 2010 19:36:30 +0000</pubDate>
		<dc:creator>Hongli Lai</dc:creator>
				<category><![CDATA[Phusion Passenger]]></category>

		<guid isPermaLink="false">http://blog.phusion.nl/?p=608</guid>
		<description><![CDATA[Phusion Passenger is an Apache and Nginx module for deploying Ruby on Rails web applications, and is mainly focused on ease of use and stability. Recent changes Phusion Passenger is under constant maintenance and development. We are pleased to announce Phusion Passenger version 2.2.11. This is a bug fix release. Improved Bundler support. Previous versions [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.modrails.com/">Phusion Passenger</a> is an Apache and Nginx module for deploying Ruby on Rails web applications, and is mainly focused on ease of use and stability.</p>
<h2>Recent changes</h2>
<p>Phusion Passenger is under constant maintenance and development. We are pleased to announce Phusion Passenger version 2.2.11. This is a bug fix release.</p>
<dl>
<dt>Improved Bundler support.</dt>
<dd>Previous versions might not be able to correctly load gems bundled by Bundler. We&#8217;ve also documented how our Bundler support works and how to override our support if you need special behavior. Please refer to <a href="http://www.modrails.com/documentation/Users%20guide%20Apache.html#bundler_support">the Phusion Passenger Users Guide, section &quot;Bundler support&quot;</a>.</dd>
<dt>Worked around some user account handling bugs in Ruby.</dt>
<dd><a href="http://code.google.com/p/phusion-passenger/issues/detail?id=192">Issue #192</a>.</dt>
<dt>[Apache] Suppress bogus mod_xsendfile-related error messages.</dt>
<dd>When mod_xsendfile is being used, Phusion Passenger might print bogus error messages like &quot;EPIPE&quot; or &quot;Apache stopped forwarding the backend&#8217;s response&quot; to the log file. These messages are normal, are harmless and can be safely ignored, but they pollute the log file. So in this release we&#8217;ve added code to suppress these messages when mod_xsendfile is being used. <a href="http://code.google.com/p/phusion-passenger/issues/detail?id=474">Issue #474</a>.</dd>
<dt>[Nginx] Fixed &#8220;passenger_user_switching off&#8221; permission problems</dt>
<dd>If Nginx is running as root and passenger_user_switching is turned off, then Phusion Passenger would fail to initialize because of a permission problem. This has been fixed. <a href="http://code.google.com/p/phusion-passenger/issues/detail?id=458">Issue #458</a>.</dd>
<dt>[Nginx] Nginx >= 0.8.38 is now supported.</dt>
<dd>Thanks to Sergey A. Osokin for reporting the problem.</dd>
<dt>[Nginx] passenger-install-nginx-module upgraded</dt>
<dd>It now defaults to installing Nginx 0.7.65 instead of 0.7.64.</dd>
<dt>Others</dt>
<dd>
<ul>
<li>Fixed some Ruby 1.9 tempfile.rb compatibility problems.</li>
<li>Fixed some compilation problems on some ARM Linux platforms.</li>
</ul>
</dd>
</dl>
<h2>How do I upgrade to 2.2.12?</h2>
<h3>Via a gem</h3>
<p>Please install it with the following command:</p>
<pre>gem install passenger</pre>
<p>Next, run:</p>
<pre>passenger-install-apache2-module</pre>
<p>Or, if you&#8217;re an Nginx user:</p>
<pre>passenger-install-nginx-module</pre>
<p>Please don&#8217;t forget to copy &#038; paste the Apache/Nginx config snippet that the installer gives you.</p>
<h3>Via a native Linux package</h3>
<p>John Leach from <a href="http://www.brightbox.co.uk/">Brightbox</a> has kindly provided an Ubuntu 8.04 package for Phusion Passenger. The package is available from the Brightbox repository which you can find at:</p>
<pre>http://apt.brightbox.net</pre>
<p>Add the following line to the Third Party Software Sources:</p>
<pre>deb http://apt.brightbox.net hardy main</pre>
<p>(The simplest way to do that is to create a file in /etc/apt/sources.list.d/ containing the deb instruction, and then run &#8216;apt-get update&#8217;).</p>
<p>Once you’ve done this then you can install Phusion Passenger by running:</p>
<pre>sudo apt-get install libapache2-mod-passenger</pre>
<p>-or-</p>
<pre>sudo apt-get install nginx-brightbox</pre>
<p>(Note that John is currently packaging 2.2.12, so it might take a while before this release shows up in the apt repository.)</p>
<h2>Final</h2>
<p>Phusion Passenger is provided to the community for free. If you like Phusion Passenger, please consider sending us a <a href="http://www.modrails.com/enterprise.html">donation</a>. Thank you!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.phusion.nl/2010/05/31/phusion-passenger-2-2-12-released/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Phusion Passenger 2.2.11 released</title>
		<link>http://blog.phusion.nl/2010/03/05/phusion-passenger-2-2-11-released/</link>
		<comments>http://blog.phusion.nl/2010/03/05/phusion-passenger-2-2-11-released/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 10:24:12 +0000</pubDate>
		<dc:creator>Hongli Lai</dc:creator>
				<category><![CDATA[Phusion Passenger]]></category>

		<guid isPermaLink="false">http://blog.phusion.nl/?p=500</guid>
		<description><![CDATA[This release fixes a regression that appeared in 2.2.10 which only affects Apache. When under high load, Apache might freeze and stop responding to requests. The regression was caused by an attempt in 2.2.10 to fix various file descriptor passing problems. The fix introduced a race condition in one of the Phusion Passenger components, and [...]]]></description>
			<content:encoded><![CDATA[<p>This release fixes a regression that appeared in 2.2.10 which only affects Apache. When under high load, Apache might freeze and stop responding to requests. The regression was caused by an attempt in 2.2.10 to fix various file descriptor passing problems. The fix introduced a race condition in one of the Phusion Passenger components, and since the problem only occurs under certain high-concurrency workloads it escaped our last release testing.</p>
<p>This problem does not affect Nginx; you only have to upgrade if you&#8217;re using Apache.</p>
<p>More information about the problem can be found at the following discussion thread: <a href="http://groups.google.com/group/phusion-passenger/t/d5bb2f17c8446ea0">http://groups.google.com/group/phusion-passenger/t/d5bb2f17c8446ea0</a></p>
<h2>How do I upgrade to 2.2.11?</h2>
<h3>Via a gem</h3>
<p>Please install it with the following command:</p>
<pre>gem install passenger</pre>
<p>Next, run:</p>
<pre>passenger-install-apache2-module</pre>
<p>Or, if you&#8217;re an Nginx user:</p>
<pre>passenger-install-nginx-module</pre>
<p>Please don&#8217;t forget to copy &#038; paste the Apache/Nginx config snippet that the installer gives you.</p>
<h3>Via a native Linux package</h3>
<p>John Leach from <a href="http://www.brightbox.co.uk/">Brightbox</a> has kindly provided an Ubuntu 8.04 package for Phusion Passenger. The package is available from the Brightbox repository which you can find at:</p>
<pre>http://apt.brightbox.net</pre>
<p>Add the following line to the Third Party Software Sources:</p>
<pre>deb http://apt.brightbox.net hardy main</pre>
<p>(The simplest way to do that is to create a file in /etc/apt/sources.list.d/ containing the deb instruction, and then run &#8216;apt-get update&#8217;).</p>
<p>Once you’ve done this then you can install Phusion Passenger by running:</p>
<pre>sudo apt-get install libapache2-mod-passenger</pre>
<p>-or-</p>
<pre>sudo apt-get install nginx-brightbox</pre>
<p>(Note that John is currently packaging 2.2.11, so it might take a while before this release shows up in the apt repository.)</p>
<h2>Final</h2>
<p>Phusion Passenger is provided to the community for free. If you like Phusion Passenger, please consider sending us a <a href="http://www.modrails.com/enterprise.html">donation</a>. Thank you!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.phusion.nl/2010/03/05/phusion-passenger-2-2-11-released/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Phusion Passenger 2.2.10 released</title>
		<link>http://blog.phusion.nl/2010/02/22/phusion-passenger-2-2-10-released/</link>
		<comments>http://blog.phusion.nl/2010/02/22/phusion-passenger-2-2-10-released/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 12:53:20 +0000</pubDate>
		<dc:creator>Hongli Lai</dc:creator>
				<category><![CDATA[Phusion Passenger]]></category>

		<guid isPermaLink="false">http://blog.phusion.nl/?p=497</guid>
		<description><![CDATA[Phusion Passenger is an Apache and Nginx module for deploying Ruby on Rails web applications, and is mainly focused on ease of use and stability. Recent changes Phusion Passenger is under constant maintenance and development. We are pleased to announce Phusion Passenger version 2.2.10. This is a bug fix release. Fixed some Bundler compatibility problems. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.modrails.com/">Phusion Passenger</a> is an Apache and Nginx module for deploying Ruby on Rails web applications, and is mainly focused on ease of use and stability.</p>
<h2>Recent changes</h2>
<p>Phusion Passenger is under constant maintenance and development. We are pleased to announce Phusion Passenger version 2.2.10. This is a bug fix release.</p>
<ul>
<li>Fixed some Bundler compatibility problems.</li>
<li>Fixed some file descriptor passing problems, which previously could lead to mysterious crashes.</li>
<li>Fixed some compilation problems on newer GCC versions. <a href="http://code.google.com/p/phusion-passenger/issues/detail?id=430">Issue #430</a>.</li>
<li>Support #size method in rack.input.</li>
</ul>
<h2>How do I upgrade to 2.2.10?</h2>
<h3>Via a gem</h3>
<p>Please install it with the following command:</p>
<pre>gem install passenger</pre>
<p>Next, run:</p>
<pre>passenger-install-apache2-module</pre>
<p>Or, if you&#8217;re an Nginx user:</p>
<pre>passenger-install-nginx-module</pre>
<p>Please don&#8217;t forget to copy &#038; paste the Apache/Nginx config snippet that the installer gives you.</p>
<h3>Via a native Linux package</h3>
<p>John Leach from <a href="http://www.brightbox.co.uk/">Brightbox</a> has kindly provided an Ubuntu 8.04 package for Phusion Passenger. The package is available from the Brightbox repository which you can find at:</p>
<pre>http://apt.brightbox.net</pre>
<p>Add the following line to the Third Party Software Sources:</p>
<pre>deb http://apt.brightbox.net hardy main</pre>
<p>(The simplest way to do that is to create a file in /etc/apt/sources.list.d/ containing the deb instruction, and then run &#8216;apt-get update&#8217;).</p>
<p>Once you’ve done this then you can install Phusion Passenger by running:</p>
<pre>sudo apt-get install libapache2-mod-passenger</pre>
<p>-or-</p>
<pre>sudo apt-get install nginx-brightbox</pre>
<p>(Note that John is currently packaging 2.2.10, so it might take a while before this release shows up in the apt repository.)</p>
<h2>Final</h2>
<p>Phusion Passenger is provided to the community for free. If you like Phusion Passenger, please consider sending us a <a href="http://www.modrails.com/enterprise.html">donation</a>. Thank you!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.phusion.nl/2010/02/22/phusion-passenger-2-2-10-released/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
