Skip to content

Instantly share code, notes, and snippets.

@pandemicsyn
Created April 21, 2011 03:23
Show Gist options
  • Select an option

  • Save pandemicsyn/933647 to your computer and use it in GitHub Desktop.

Select an option

Save pandemicsyn/933647 to your computer and use it in GitHub Desktop.
Openstack Swift /healthcheck
# Make sure you've got the "healthcheck" pipeline entry in your [proxy|account|container|object]-server.conf:
[pipeline:main]
pipeline = catch_errors healthcheck cache ratelimit auth proxy-server
# And that you've added the filter for it as well (in the same config of course):
[filter:healthcheck]
use = egg:swift#healthcheck
# Now reload the service and you're ready to roll:
syn@masada:~$ nc proxy1.masada 80 -vv
Connection to proxy1.masada 80 port [tcp/www] succeeded!
GET /healthcheck
HTTP/1.1 200 OK
Content-Type: text/plain; charset=UTF-8
Content-Length: 2
Date: Thu, 21 Apr 2011 03:11:06 GMT
Connection: close
OK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment