On Sep 5, 2013, at 5:15 PM, Scott Harris <[email protected]> wrote:
> I have a multi node cluster with a F5 Loadbalancer providing a vip and > balancing requests across the cluster, as part of the F5 config a healthcheck > is required to validate each node is alive and ready to take requests. > > Is there any light weight healthcheck urls ats provides for this? > > I found an internal url test url using a remap mappping to http://{test} but > the response is about 63KB. There's a plugin in experimental, that's intended for this purpose. It'll watch a file (or files) on your file system, and return the content of that upon request. The idea is that if you remove that file, the plugin will return e.g. a 404 (configurable), telling the load balancer to take the box out of rotation. This allows you to check both the health of the server, and manage its participation in the rotation. -- Leif E.g. loki (15:53) 580/1 $ cat plugins/experimental/healthchecks/README This is a simple plugin, to provide basic (but configurable) health checks. This is a server intercept plugin, and it takes one single configuration option in plugin.config, the configuration file name. This configuration contains one, or several, lines of the format <URI-path> <file-path> <mime> <file-exists-code> <file-missing-code> For example, /__hc /var/run/ts-alive text/plain 200 403 The content of the file, if any, is sent as the body of the response.
