<?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: Zero-Downtime Restarts with HAProxy</title>
	<atom:link href="http://www.igvita.com/2008/12/02/zero-downtime-restarts-with-haproxy/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.igvita.com/2008/12/02/zero-downtime-restarts-with-haproxy/</link>
	<description>A goal is a dream with a deadline.</description>
	<pubDate>Mon, 15 Mar 2010 07:29:42 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Don Ferguson</title>
		<link>http://www.igvita.com/2008/12/02/zero-downtime-restarts-with-haproxy/comment-page-1/#comment-231884</link>
		<dc:creator>Don Ferguson</dc:creator>
		<pubDate>Fri, 26 Feb 2010 01:05:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/?p=199#comment-231884</guid>
		<description>Ilya, great stuff.  There's one part I don't understand.  webA and bkpA refer to the same process; when the iptable rule is removed, old sessions continue to be served by bkpA.  Presumably new requests are served by webB.  Now if we shut down webA (which is bkpA), won't those sessions be intererupted?  If we leave bkpA running to continue serving old sessions, won't we have trouble restarting webA, since it'll want to listen on port 1000, which bkpA is still listening to?</description>
		<content:encoded><![CDATA[<p>Ilya, great stuff.  There&#8217;s one part I don&#8217;t understand.  webA and bkpA refer to the same process; when the iptable rule is removed, old sessions continue to be served by bkpA.  Presumably new requests are served by webB.  Now if we shut down webA (which is bkpA), won&#8217;t those sessions be intererupted?  If we leave bkpA running to continue serving old sessions, won&#8217;t we have trouble restarting webA, since it&#8217;ll want to listen on port 1000, which bkpA is still listening to?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mattias Berge</title>
		<link>http://www.igvita.com/2008/12/02/zero-downtime-restarts-with-haproxy/comment-page-1/#comment-230847</link>
		<dc:creator>Mattias Berge</dc:creator>
		<pubDate>Tue, 09 Feb 2010 12:48:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/?p=199#comment-230847</guid>
		<description>Wouldn't a simple REJECT for TCP state NEW have the same effect? ESTABLISHED connections finishing, new connections will be rejected and haproxy will detect it as down immediately?

:-)</description>
		<content:encoded><![CDATA[<p>Wouldn&#8217;t a simple REJECT for TCP state NEW have the same effect? ESTABLISHED connections finishing, new connections will be rejected and haproxy will detect it as down immediately?</p>
<p>:-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: findchris</title>
		<link>http://www.igvita.com/2008/12/02/zero-downtime-restarts-with-haproxy/comment-page-1/#comment-230631</link>
		<dc:creator>findchris</dc:creator>
		<pubDate>Fri, 05 Feb 2010 22:05:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/?p=199#comment-230631</guid>
		<description>Someone stole your post, FYI:
http://titopanicker.net/blog/?p=59</description>
		<content:encoded><![CDATA[<p>Someone stole your post, FYI:<br />
<a href="http://titopanicker.net/blog/?p=59" rel="nofollow">http://titopanicker.net/blog/?p=59</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nowayjose</title>
		<link>http://www.igvita.com/2008/12/02/zero-downtime-restarts-with-haproxy/comment-page-1/#comment-228234</link>
		<dc:creator>nowayjose</dc:creator>
		<pubDate>Thu, 07 Jan 2010 18:03:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/?p=199#comment-228234</guid>
		<description>You are using HA proxy and assuming it solves a problem that does not exist. Please don't.

For years people have been deploying applications with ZERO downtime and WITHOUT HA PROXY.</description>
		<content:encoded><![CDATA[<p>You are using HA proxy and assuming it solves a problem that does not exist. Please don&#8217;t.</p>
<p>For years people have been deploying applications with ZERO downtime and WITHOUT HA PROXY.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oliver</title>
		<link>http://www.igvita.com/2008/12/02/zero-downtime-restarts-with-haproxy/comment-page-1/#comment-201989</link>
		<dc:creator>oliver</dc:creator>
		<pubDate>Thu, 02 Jul 2009 13:59:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/?p=199#comment-201989</guid>
		<description>Hi Ilya,

I quickly added a stateless page so no session are created and now it works perfectly! Sorry for the post but as the server were marked as down even without the option httpchk I thougt it is sufficient. 

Oliver</description>
		<content:encoded><![CDATA[<p>Hi Ilya,</p>
<p>I quickly added a stateless page so no session are created and now it works perfectly! Sorry for the post but as the server were marked as down even without the option httpchk I thougt it is sufficient. </p>
<p>Oliver</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ilya Grigorik</title>
		<link>http://www.igvita.com/2008/12/02/zero-downtime-restarts-with-haproxy/comment-page-1/#comment-201984</link>
		<dc:creator>Ilya Grigorik</dc:creator>
		<pubDate>Thu, 02 Jul 2009 13:20:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/?p=199#comment-201984</guid>
		<description>Oliver: Ah, you do need the option httpchk in there! That's how HAProxy determines that the server is down (after two unsuccessful hits to your server). Otherwise it'll continue dispatching requests to that host, and will redispatch (if you have it enabled) once it determines that server is down.</description>
		<content:encoded><![CDATA[<p>Oliver: Ah, you do need the option httpchk in there! That&#8217;s how HAProxy determines that the server is down (after two unsuccessful hits to your server). Otherwise it&#8217;ll continue dispatching requests to that host, and will redispatch (if you have it enabled) once it determines that server is down.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oliver</title>
		<link>http://www.igvita.com/2008/12/02/zero-downtime-restarts-with-haproxy/comment-page-1/#comment-201979</link>
		<dc:creator>oliver</dc:creator>
		<pubDate>Thu, 02 Jul 2009 12:59:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/?p=199#comment-201979</guid>
		<description>Hi Ilya,
I rechecked your recommended chapter and the only difference is that I do not declare "option httpchk HEAD / HTTP/1.0" as this creates a new jsession every 2 seconds on my tomcat servers.

if I start the maintenance mode for the server then it is marked as down in the haproxy interface while the backup instance is still up. The chapter "4.2 Soft-stop using backup server" states that clients with a valid cookie will still reach the backup server. So if I already got a cookie assigned and my server is in maintenance mode what will take care that I do nor reach the backup again? Does the cookie expire?

This is my test:
1. Loggin in my application
2. check which server I got assigned
3. put the server server in maintenance mode
4. logout of my application - &gt; invalidate the jsession
5. if log in again im still get the same server which is in maintenance.

Thank you for your help,
Oliver</description>
		<content:encoded><![CDATA[<p>Hi Ilya,<br />
I rechecked your recommended chapter and the only difference is that I do not declare &#8220;option httpchk HEAD / HTTP/1.0&#8243; as this creates a new jsession every 2 seconds on my tomcat servers.</p>
<p>if I start the maintenance mode for the server then it is marked as down in the haproxy interface while the backup instance is still up. The chapter &#8220;4.2 Soft-stop using backup server&#8221; states that clients with a valid cookie will still reach the backup server. So if I already got a cookie assigned and my server is in maintenance mode what will take care that I do nor reach the backup again? Does the cookie expire?</p>
<p>This is my test:<br />
1. Loggin in my application<br />
2. check which server I got assigned<br />
3. put the server server in maintenance mode<br />
4. logout of my application - &gt; invalidate the jsession<br />
5. if log in again im still get the same server which is in maintenance.</p>
<p>Thank you for your help,<br />
Oliver</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ilya Grigorik</title>
		<link>http://www.igvita.com/2008/12/02/zero-downtime-restarts-with-haproxy/comment-page-1/#comment-201748</link>
		<dc:creator>Ilya Grigorik</dc:creator>
		<pubDate>Wed, 01 Jul 2009 03:28:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/?p=199#comment-201748</guid>
		<description>Oliver, it sounds like something may have gone wrong in the way you disabled the server (guessing: routing). Take a close look at section "&lt;a href="http://haproxy.1wt.eu/download/1.3/doc/architecture.txt" rel="nofollow"&gt;4.2 Soft-stop using backup servers&lt;/a&gt;" in the HAProxy doc, it describes the scenario you're looking for in great detail.</description>
		<content:encoded><![CDATA[<p>Oliver, it sounds like something may have gone wrong in the way you disabled the server (guessing: routing). Take a close look at section &#8220;<a href="http://haproxy.1wt.eu/download/1.3/doc/architecture.txt" rel="nofollow">4.2 Soft-stop using backup servers</a>&#8221; in the HAProxy doc, it describes the scenario you&#8217;re looking for in great detail.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oliver</title>
		<link>http://www.igvita.com/2008/12/02/zero-downtime-restarts-with-haproxy/comment-page-1/#comment-201630</link>
		<dc:creator>oliver</dc:creator>
		<pubDate>Tue, 30 Jun 2009 15:10:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/?p=199#comment-201630</guid>
		<description>Hi,
I followed your example with sticky sessions but clients
who's session are expired and the related server is in maintenance mode are directed to the server again
and new sessions are created. So I can not restart the server. 

I think this is because of the cookie usage in the backup server definition?</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I followed your example with sticky sessions but clients<br />
who&#8217;s session are expired and the related server is in maintenance mode are directed to the server again<br />
and new sessions are created. So I can not restart the server. </p>
<p>I think this is because of the cookie usage in the backup server definition?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: till</title>
		<link>http://www.igvita.com/2008/12/02/zero-downtime-restarts-with-haproxy/comment-page-1/#comment-192164</link>
		<dc:creator>till</dc:creator>
		<pubDate>Fri, 08 May 2009 10:48:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/?p=199#comment-192164</guid>
		<description>We got a coyotepoint loadbalancer and what we do is, we quiesce the server which was assigned to a cluster, watch the status until connections are cleared and then restart the server, or take it down for maintenance, etc..

Everything else seems super complicated.</description>
		<content:encoded><![CDATA[<p>We got a coyotepoint loadbalancer and what we do is, we quiesce the server which was assigned to a cluster, watch the status until connections are cleared and then restart the server, or take it down for maintenance, etc..</p>
<p>Everything else seems super complicated.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
