<div><br></div>Please check you nginx_upstream_hash with this command, <div><br></div><div>grep HEALTHCHECK ngx_http_upstream_hash_module.c </div><div>#if (NGX_HTTP_HEALTHCHECK)</div><div>#if (NGX_HTTP_HEALTHCHECK)</div><div>
#if (NGX_HTTP_HEALTHCHECK)</div><div>#if (NGX_HTTP_HEALTHCHECK)</div><div>#if (NGX_HTTP_HEALTHCHECK)</div><div>#if (NGX_HTTP_HEALTHCHECK)</div><div><br></div><div>if you have compiled with right hash module,  Health check should be worked.  I have used this module for 2 months.</div>
<div> <div><br><div class="gmail_quote">On Mon, Aug 1, 2011 at 7:15 PM, gidrobaton <span dir="ltr"><<a href="mailto:nginx-forum@nginx.us">nginx-forum@nginx.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">>Hi,<br>
>You should compile upstream hash module which cep12 patched, See:<br>
><a href="https://github.com/cep21/nginx_upstream_hash/tree/support_http_healthchecks" target="_blank">https://github.com/cep21/nginx_upstream_hash/tree/support_http_healthchecks</a><br>
<br>
</div>nginx-1.0.5 was compiled with both patches:<br>
<br>
root@true:/tmp/nginx-1.0.5# patch -p0 <<br>
../nginx_upstream_hash-0.3.1/nginx.patch<br>
patching file src/http/ngx_http_upstream.h<br>
Hunk #1 succeeded at 106 (offset 1 line).<br>
<br>
root@true:/tmp/nginx-1.0.5# patch -p1 <<br>
../healthcheck_nginx_upstreams/nginx.patch<br>
patching file src/http/ngx_http_upstream.c<br>
patching file src/http/ngx_http_upstream.h<br>
Hunk #1 succeeded at 110 with fuzz 2 (offset 4 lines).<br>
patching file src/http/ngx_http_upstream_round_robin.c<br>
patching file src/http/ngx_http_upstream_round_robin.h<br>
<div class="im"><br>
root@true:/tmp/nginx-1.0.5# ./configure<br>
--add-module=/tmp/nginx_upstream_hash-0.3.1/<br>
--add-module=/tmp/healthcheck_nginx_upstreams/ --with-debug<br>
</div>root@true:/tmp/nginx-1.0.5# make -j5 && make install<br>
<br>
But if I use "hash" options, error.log is empty after nginx reload, even<br>
if I use "server" option, which indicates to closed port.<br>
<br>
error_log  /usr/local/nginx/logs/error.log;<br>
upstream backend {<br>
#ip_hash;<br>
server <a href="http://172.16.0.130:181" target="_blank">172.16.0.130:181</a>;<br>
server <a href="http://172.16.0.130:182" target="_blank">172.16.0.130:182</a>;<br>
server <a href="http://172.16.0.130:122" target="_blank">172.16.0.130:122</a>;<br>
<div class="im">hash $remote_addr;<br>
hash_again 0;<br>
healthcheck_enabled;<br>
healthcheck_delay 5000;<br>
healthcheck_timeout 1500;<br>
healthcheck_failcount 1;<br>
healthcheck_send "GET /PingAction.do HTTP/1.0" 'Host: ivis0';<br>
}<br>
<br>
</div>Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,191445,213176#msg-213176" target="_blank">http://forum.nginx.org/read.php?2,191445,213176#msg-213176</a><br>
<div><div></div><div class="h5"><br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br></div></div>