lua-resty-upstream-healthcheck
lua-resty-upstream-healthcheck copied to clipboard
Health Checker for Nginx Upstream Servers in Pure Lua
simple string matching implementation , no header/body separation.
Call an optional user-defined function when peer_fail or peer_ok change the status of a peer object via set_peer_down_globally. This allows arbitrarily extending the response to upstream health changes.
配置共享/ share the conf by all worker 留出一个setter接口,方便动态修改配置 / leaving a interface, modify the health check conf dynamicly the latter
if you turn on it, lua_code_cache off; the status page will report (NO checkers) , so modify the readme
Refer to https://github.com/openresty/lua-resty-upstream-healthcheck/pull/36 for description.
this module could not work with consistent_hash module, if I using as following, it is ok. #consistent_hash $key; hash $key consistent;
The health checker can't be used in the stream directive. The snippet of nginx.conf: ``` stream { lua_shared_dict healthcheck 1m; init_worker_by_lua_block { local hc = require "resty.upstream.healthcheck" ``` The error...
Useful in some situation, you want to check something more precise than an http status. [healthcheck.lua.patch.txt](https://github.com/openresty/lua-resty-upstream-healthcheck/files/601624/healthcheck.lua.patch.txt)
i need to dynamic add server and need healthcheck, how to integration
Hello, is there a way to check the contents of the response body in addition to the list of valid statuses? For example, ability to fail it a situation where...