<?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>Involution &#187; HAProxy</title>
	<atom:link href="http://involution.com/category/haproxy/feed/" rel="self" type="application/rss+xml" />
	<link>http://involution.com</link>
	<description>Tony Perrie&#039;s Weblog</description>
	<lastBuildDate>Fri, 19 Aug 2011 19:46:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Using Phusion Passenger with HAProxy</title>
		<link>http://involution.com/2009/02/25/using-phusion-passenger-with-haproxy/</link>
		<comments>http://involution.com/2009/02/25/using-phusion-passenger-with-haproxy/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 21:14:33 +0000</pubDate>
		<dc:creator>Tony Perrie</dc:creator>
				<category><![CDATA[HAProxy]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://involution.com/?p=1196</guid>
		<description><![CDATA[Today I decided to turn on HAProxy to load-balance between Apache instances running Phusion Passenger on two separate machines. The results are clear. Doing this nearly doubled our ApacheBench throughput scores. This config was adaped from the 37Signals blog post here. # /etc/haproxy/haproxy.cfg global maxconn 4096 defaults mode http retries 3 option redispatch maxconn 2000 [...]]]></description>
			<content:encoded><![CDATA[<p>Today I decided to turn on HAProxy to load-balance between Apache instances running Phusion Passenger on two separate machines.  The results are clear.  Doing this nearly doubled our ApacheBench throughput scores.</p>
<p>This config was adaped from the 37Signals blog post <a href="http://www.37signals.com/svn/posts/1073-nuts-bolts-haproxy">here</a>.</p>
<pre># /etc/haproxy/haproxy.cfg
global
        maxconn 4096

defaults
        mode    http
        retries 3
        option redispatch
        maxconn 2000
        contimeout	5000
        clitimeout	50000
        srvtimeout	50000

listen web1 XXX.XXX.XXX.210:80
       mode http
       balance roundrobin
       server web1 XXX.XXX.XXX.210:8080
       server web2 XXX.XXX.XXX.211:8080
</pre>
<p>Passenger is configured the normal way. </p>
<pre><code>&lt;VirtualHost *:8080&gt;
        ServerName www.example.com
        DocumentRoot /var/www/rails_project/current/public
&lt;/VirtualHost&gt;
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://involution.com/2009/02/25/using-phusion-passenger-with-haproxy/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

