<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.nginx.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.nginx.org/index.php?title=HttpHealthcheckModule&amp;feed=atom&amp;action=history</id>
		<title>HttpHealthcheckModule - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.nginx.org/index.php?title=HttpHealthcheckModule&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://wiki.nginx.org/index.php?title=HttpHealthcheckModule&amp;action=history"/>
		<updated>2013-05-19T06:35:19Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.0</generator>

	<entry>
		<id>http://wiki.nginx.org/index.php?title=HttpHealthcheckModule&amp;diff=473&amp;oldid=prev</id>
		<title>MichaelLustfield: moved NginxHttpHealthcheckModule to HttpHealthcheckModule:&amp;#32;Removing Nginx prefix from page titles</title>
		<link rel="alternate" type="text/html" href="http://wiki.nginx.org/index.php?title=HttpHealthcheckModule&amp;diff=473&amp;oldid=prev"/>
				<updated>2010-09-22T19:26:18Z</updated>
		
		<summary type="html">&lt;p&gt;moved &lt;a href=&quot;/NginxHttpHealthcheckModule&quot; class=&quot;mw-redirect&quot; title=&quot;NginxHttpHealthcheckModule&quot;&gt;NginxHttpHealthcheckModule&lt;/a&gt; to &lt;a href=&quot;/HttpHealthcheckModule&quot; title=&quot;HttpHealthcheckModule&quot;&gt;HttpHealthcheckModule&lt;/a&gt;: Removing Nginx prefix from page titles&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= ngx_http_healthcheck_module =&lt;br /&gt;
&lt;br /&gt;
''This module is not distributed with the Nginx source. Installation instructions are below.  You can get the module [http://github.com/cep21/healthcheck_nginx_upstreams here]''&lt;br /&gt;
&lt;br /&gt;
Healthcheck plugin for nginx.  It polls backends and if they respond with&lt;br /&gt;
HTTP 200 + an optional request body, they are marked good.  Otherwise, they&lt;br /&gt;
are marked bad.&lt;br /&gt;
&lt;br /&gt;
Note this also gives you access to a health status page that lets you see&lt;br /&gt;
how well your healthcheck are doing.&lt;br /&gt;
&lt;br /&gt;
The docs on this wiki can get out of date.  For the authoritative information, please see the README file inside the plugin's [http://github.com/cep21/healthcheck_nginx_upstreams git repository].&lt;br /&gt;
&lt;br /&gt;
== Directives ==&lt;br /&gt;
&lt;br /&gt;
=== healthcheck_enabled ===&lt;br /&gt;
'''syntax''' ''healthcheck_enabled''&lt;br /&gt;
&lt;br /&gt;
'''context''' ''upstream''&lt;br /&gt;
&lt;br /&gt;
Enables health checking of an upstream&lt;br /&gt;
&lt;br /&gt;
=== healthcheck_delay ===&lt;br /&gt;
'''syntax''' ''healthcheck_delay''&lt;br /&gt;
&lt;br /&gt;
'''default''' ''10000''&lt;br /&gt;
&lt;br /&gt;
'''context''' ''upstream''&lt;br /&gt;
&lt;br /&gt;
Delay in msec between healthchecks for a single peer.&lt;br /&gt;
&lt;br /&gt;
=== healthcheck_timeout ===&lt;br /&gt;
'''syntax''' ''healthcheck_timeout''&lt;br /&gt;
&lt;br /&gt;
'''default''' ''2000''&lt;br /&gt;
&lt;br /&gt;
'''context''' ''upstream''&lt;br /&gt;
&lt;br /&gt;
How long in msec a healthcheck is allowed to take place&lt;br /&gt;
&lt;br /&gt;
=== healthcheck_failcount ===&lt;br /&gt;
'''syntax''' ''healthcheck_failcount''&lt;br /&gt;
&lt;br /&gt;
'''default''' ''2''&lt;br /&gt;
&lt;br /&gt;
'''context''' ''upstream''&lt;br /&gt;
&lt;br /&gt;
Number of healthchecks good or bad in a row it takes to switch from down to up and back. Good to prevent flapping&lt;br /&gt;
&lt;br /&gt;
=== healthcheck_send ===&lt;br /&gt;
'''syntax''' ''healthcheck_send''&lt;br /&gt;
&lt;br /&gt;
'''default''' ''&amp;lt;empty&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
'''context''' ''upstream''&lt;br /&gt;
&lt;br /&gt;
Required directive.  What to send for the healthcheck.  Each argument is appended by \r\n and the entire thing is suffixed with another \r\n. For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;geshi lang=&amp;quot;nginx&amp;quot;&amp;gt;&lt;br /&gt;
  healthcheck_send 'GET /health HTTP/1.0'&lt;br /&gt;
   'Host: www.yourhost.com';&lt;br /&gt;
&amp;lt;/geshi&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that you probably want to end your health check with some directive that closes the connection, like Connection: close.&lt;br /&gt;
&lt;br /&gt;
=== healthcheck_expected ===&lt;br /&gt;
'''syntax''' ''healthcheck_expected''&lt;br /&gt;
&lt;br /&gt;
'''default''' ''&amp;lt;UNSET&amp;gt;''&lt;br /&gt;
&lt;br /&gt;
'''context''' ''upstream''&lt;br /&gt;
&lt;br /&gt;
What to expect in the HTTP BODY, (meaning not the headers), in a correct response.  If unset, just a HTTP 200 status code is required for a peer&lt;br /&gt;
&lt;br /&gt;
=== healthcheck_buffer ===&lt;br /&gt;
'''syntax''' ''healthcheck_buffer''&lt;br /&gt;
&lt;br /&gt;
'''default''' ''1000''&lt;br /&gt;
&lt;br /&gt;
'''context''' ''upstream''&lt;br /&gt;
&lt;br /&gt;
How big a buffer to use for the health check. Remember to include headers PLUS body, not just body.&lt;br /&gt;
&lt;br /&gt;
=== healthcheck_status ===&lt;br /&gt;
'''syntax''' ''healthcheck_status''&lt;br /&gt;
&lt;br /&gt;
'''context''' ''upstream''&lt;br /&gt;
&lt;br /&gt;
When inside a /location block, replaced the HTTP body with backend health status. Use similarly to the stub_status module.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
This module is not distributed with the Nginx source. You can download the module from [http://github.com/cep21/healthcheck_nginx_upstreams here].  Read the installation instructions inside the README file.&lt;br /&gt;
&lt;br /&gt;
== Bugs ==&lt;br /&gt;
&lt;br /&gt;
Please report bugs to [http://github.com/cep21/healthcheck_nginx_upstreams/issues here]&lt;/div&gt;</summary>
		<author><name>MichaelLustfield</name></author>	</entry>

	</feed>