<?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: HAProxy: Reloading Your Config With Minimal Service Impact</title>
	<atom:link href="http://www.mgoff.in/2010/04/18/haproxy-reloading-your-config-with-minimal-service-impact/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mgoff.in/2010/04/18/haproxy-reloading-your-config-with-minimal-service-impact/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=haproxy-reloading-your-config-with-minimal-service-impact</link>
	<description>geek</description>
	<lastBuildDate>Thu, 12 Jan 2012 21:38:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Manisha Mahawar</title>
		<link>http://www.mgoff.in/2010/04/18/haproxy-reloading-your-config-with-minimal-service-impact/comment-page-1/#comment-240</link>
		<dc:creator>Manisha Mahawar</dc:creator>
		<pubDate>Thu, 12 Jan 2012 21:38:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.mgoff.in/?p=77#comment-240</guid>
		<description>Hi Micheal,

I am using HAProxy on RedHat and have below configuration.
 global
        daemon
        maxconn 1024
        log  127.0.0.1  local1 info

    defaults
        log global
        balance roundrobin
        mode http
        retries    3
        option redispatch
        timeout connect 300000ms
        timeout client  300000ms
        timeout server  300000ms

    listen epgs
        bind *:80
        server server1 127.0.0.1:8080 maxconn 1 check
        server server2 epg01.lab.mystrotv.com:8080 maxconn 1 check
        stats uri /stats

I started firing 5000 request to HAProxy using JMeter. While JMeter is firing the request I removed the server2 from configuration file and fired &quot;haproxy -f /etc/haproxy.cfg -p /var/run/haproxy.pid -sf $(cat /var/run/haproxy.pid) command. I noticed connection refused for 2 requests in my JMeter log. 

Do you know which configuration I should use to make HAProxy not drop any request?

Thanks for your help in advance.
Manisha</description>
		<content:encoded><![CDATA[<p>Hi Micheal,</p>
<p>I am using HAProxy on RedHat and have below configuration.<br />
 global<br />
        daemon<br />
        maxconn 1024<br />
        log  127.0.0.1  local1 info</p>
<p>    defaults<br />
        log global<br />
        balance roundrobin<br />
        mode http<br />
        retries    3<br />
        option redispatch<br />
        timeout connect 300000ms<br />
        timeout client  300000ms<br />
        timeout server  300000ms</p>
<p>    listen epgs<br />
        bind *:80<br />
        server server1 127.0.0.1:8080 maxconn 1 check<br />
        server server2 epg01.lab.mystrotv.com:8080 maxconn 1 check<br />
        stats uri /stats</p>
<p>I started firing 5000 request to HAProxy using JMeter. While JMeter is firing the request I removed the server2 from configuration file and fired &#8220;haproxy -f /etc/haproxy.cfg -p /var/run/haproxy.pid -sf $(cat /var/run/haproxy.pid) command. I noticed connection refused for 2 requests in my JMeter log. </p>
<p>Do you know which configuration I should use to make HAProxy not drop any request?</p>
<p>Thanks for your help in advance.<br />
Manisha</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Goffin</title>
		<link>http://www.mgoff.in/2010/04/18/haproxy-reloading-your-config-with-minimal-service-impact/comment-page-1/#comment-200</link>
		<dc:creator>Michael Goffin</dc:creator>
		<pubDate>Mon, 27 Jun 2011 13:12:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.mgoff.in/?p=77#comment-200</guid>
		<description>Musa - that directory structure doesn&#039;t exist in Ubuntu. My best guess is that you&#039;ve installed a version of HAProxy (or the init script itself) that is not meant to be used on Ubuntu, and it is looking for a file that would normally be in that place in the OS it was meant for. I don&#039;t have a box right now to confirm, but I think that path is one you would find in Redhat and Redhat-derived distros.</description>
		<content:encoded><![CDATA[<p>Musa &#8211; that directory structure doesn&#8217;t exist in Ubuntu. My best guess is that you&#8217;ve installed a version of HAProxy (or the init script itself) that is not meant to be used on Ubuntu, and it is looking for a file that would normally be in that place in the OS it was meant for. I don&#8217;t have a box right now to confirm, but I think that path is one you would find in Redhat and Redhat-derived distros.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Musa</title>
		<link>http://www.mgoff.in/2010/04/18/haproxy-reloading-your-config-with-minimal-service-impact/comment-page-1/#comment-199</link>
		<dc:creator>Musa</dc:creator>
		<pubDate>Mon, 27 Jun 2011 12:02:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.mgoff.in/?p=77#comment-199</guid>
		<description>Hi Michael,

I have been bugged by the error i face when i try to restart the HAproxy :P
Could you kindly tell me which specific changes i need to make in my HAproxy/ubuntu 10.04 to solve the following error:

# /etc/init.d/haproxy restart
.: 12: Can&#039;t open /etc/rc.d/init.d/functions

(i am running it as root)</description>
		<content:encoded><![CDATA[<p>Hi Michael,</p>
<p>I have been bugged by the error i face when i try to restart the HAproxy :P<br />
Could you kindly tell me which specific changes i need to make in my HAproxy/ubuntu 10.04 to solve the following error:</p>
<p># /etc/init.d/haproxy restart<br />
.: 12: Can&#8217;t open /etc/rc.d/init.d/functions</p>
<p>(i am running it as root)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcus Bointon</title>
		<link>http://www.mgoff.in/2010/04/18/haproxy-reloading-your-config-with-minimal-service-impact/comment-page-1/#comment-160</link>
		<dc:creator>Marcus Bointon</dc:creator>
		<pubDate>Tue, 11 Jan 2011 18:17:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.mgoff.in/?p=77#comment-160</guid>
		<description>Nicely observed. For everyone&#039;s peace of mind, you might like to know that the stock haproxy package in Ubuntu 10.04 does indeed use the -sf option when you ask it to reload, and the init script uses &#039;$(cat $PIDFILE)&#039;, which seems good to me.</description>
		<content:encoded><![CDATA[<p>Nicely observed. For everyone&#8217;s peace of mind, you might like to know that the stock haproxy package in Ubuntu 10.04 does indeed use the -sf option when you ask it to reload, and the init script uses &#8216;$(cat $PIDFILE)&#8217;, which seems good to me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guadalupe Cudan</title>
		<link>http://www.mgoff.in/2010/04/18/haproxy-reloading-your-config-with-minimal-service-impact/comment-page-1/#comment-155</link>
		<dc:creator>Guadalupe Cudan</dc:creator>
		<pubDate>Wed, 29 Dec 2010 15:55:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.mgoff.in/?p=77#comment-155</guid>
		<description>nice work indeed. Subscribing to your feeds</description>
		<content:encoded><![CDATA[<p>nice work indeed. Subscribing to your feeds</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Goffin</title>
		<link>http://www.mgoff.in/2010/04/18/haproxy-reloading-your-config-with-minimal-service-impact/comment-page-1/#comment-120</link>
		<dc:creator>Michael Goffin</dc:creator>
		<pubDate>Thu, 02 Dec 2010 14:01:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.mgoff.in/?p=77#comment-120</guid>
		<description>Sure!</description>
		<content:encoded><![CDATA[<p>Sure!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ronald</title>
		<link>http://www.mgoff.in/2010/04/18/haproxy-reloading-your-config-with-minimal-service-impact/comment-page-1/#comment-119</link>
		<dc:creator>Ronald</dc:creator>
		<pubDate>Thu, 02 Dec 2010 08:56:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.mgoff.in/?p=77#comment-119</guid>
		<description>Yes thanks working now, your a savior.... Can I ask you 1 more thing regarding multiple routing of domain and subdomain in haproxy?</description>
		<content:encoded><![CDATA[<p>Yes thanks working now, your a savior&#8230;. Can I ask you 1 more thing regarding multiple routing of domain and subdomain in haproxy?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Goffin</title>
		<link>http://www.mgoff.in/2010/04/18/haproxy-reloading-your-config-with-minimal-service-impact/comment-page-1/#comment-118</link>
		<dc:creator>Michael Goffin</dc:creator>
		<pubDate>Thu, 02 Dec 2010 06:21:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.mgoff.in/?p=77#comment-118</guid>
		<description>Hello Ronald! Are you using the init script to restart haproxy? If so, it should handle everything you need by just running `/etc/init.d/haproxy restart` from the command line (or in a script if you want to wrap the command for any reason). But it sounds like haproxy isn&#039;t being shut down properly when doing a restart if the socket is still being used. You can try the modifications I noted to the init script and use the &quot;reload&quot; option to see if that helps. Good luck!</description>
		<content:encoded><![CDATA[<p>Hello Ronald! Are you using the init script to restart haproxy? If so, it should handle everything you need by just running `/etc/init.d/haproxy restart` from the command line (or in a script if you want to wrap the command for any reason). But it sounds like haproxy isn&#8217;t being shut down properly when doing a restart if the socket is still being used. You can try the modifications I noted to the init script and use the &#8220;reload&#8221; option to see if that helps. Good luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ronald</title>
		<link>http://www.mgoff.in/2010/04/18/haproxy-reloading-your-config-with-minimal-service-impact/comment-page-1/#comment-117</link>
		<dc:creator>Ronald</dc:creator>
		<pubDate>Thu, 02 Dec 2010 04:06:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.mgoff.in/?p=77#comment-117</guid>
		<description>Hi Michael, I&#039;m having issue with haproxy restart, I can&#039;t restart my load balancer  it says socket port are being used, I was wondering if above script need to put on another script to execute or just type it in command line?</description>
		<content:encoded><![CDATA[<p>Hi Michael, I&#8217;m having issue with haproxy restart, I can&#8217;t restart my load balancer  it says socket port are being used, I was wondering if above script need to put on another script to execute or just type it in command line?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: A custom init.d start-up script for HAProxy: start, stop, restart, reload, checkconfig ~ Mattias Geniar</title>
		<link>http://www.mgoff.in/2010/04/18/haproxy-reloading-your-config-with-minimal-service-impact/comment-page-1/#comment-112</link>
		<dc:creator>A custom init.d start-up script for HAProxy: start, stop, restart, reload, checkconfig ~ Mattias Geniar</dc:creator>
		<pubDate>Thu, 04 Nov 2010 18:02:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.mgoff.in/?p=77#comment-112</guid>
		<description>[...] reload option was created based on the excellent post titled &quot;HAProxy: Reloading Your Config With Minimal Service Impact&quot;, by Michael [...]</description>
		<content:encoded><![CDATA[<p>[...] reload option was created based on the excellent post titled &quot;HAProxy: Reloading Your Config With Minimal Service Impact&quot;, by Michael [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

