3 messages in ru.sysoev.nginxExternal health checking - OPTIONS re...
FromSent OnAttachments
Pedro Mata-Mouros FonsecaJul 3, 2009 9:44 am 
merlin coreyJul 4, 2009 12:46 pm 
Pedro Mata-Mouros FonsecaJul 6, 2009 4:57 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:External health checking - OPTIONS returns 405Actions...
From:Pedro Mata-Mouros Fonseca (pedr@sapo.pt)
Date:Jul 3, 2009 9:44:53 am
List:ru.sysoev.nginx

Greetings,

The following is an HAProxy option httpchk check request. It's purpose is to check a server's health by means of issuing a very lightweight request to it. It does this, by default, using OPTIONS (it's possible to configure it to perform any type of request, but OPTIONS is aparently the most lightweight).

Nginx unfortunately returns a 405 to this. It's not really a big deal, but is there anyway to "force" Nginx to return a 200 with an empty payload or as small as possible? Would you still consider this a lightweight check to perform every 2 or so seconds, on a few hundred reqs/sec website?

127.0.0.1 - - [03/Jul/2009:17:34:21 +0100] "OPTIONS / HTTP/1.0" 405 166 "-" "-"

Thanks for your time.

Pedro.