lua-resty-upstream-healthcheck icon indicating copy to clipboard operation
lua-resty-upstream-healthcheck copied to clipboard

Health Checker for Nginx Upstream Servers in Pure Lua

Results 48 lua-resty-upstream-healthcheck issues
Sort by recently updated
recently updated
newest added

I have a few use cases where I need to actually test on a different port than the serving port. My testing set up is currently broken, but this worked...

When does Prometheus metrics support? Have been waiting for a long time!

For each healthcheck, you seem to close the socket, why not put it into the connection pool with `sock:setkeepalive()` instead ? https://github.com/openresty/lua-resty-upstream-healthcheck/blob/346f3a642b6717a26382e4032160aa766af0188c/lib/resty/upstream/healthcheck.lua#L275

Hi, The current usage scenario assumes that the upstream configuration will not change dynamically, we only can change upstream configuration via reload nginx. In some scenarios (see also https://github.com/openresty/lua-resty-upstream-healthcheck/issues/55), we...

I have a cluster that contains two servers. The health check of the first server is down and the second server is OK. When I delete the first server and...

使用场景:当成7层LB替代Nginx使用 目前问题:所有upstream上游都配置了主动检查(tcp检测),但是通过GET v1/healthcheck 只返回了其中一组upstream状态信息。 需求:想要类似于Nginx的check_status页面,实时查看所有upstream的状态。 ![upstream配置界面](https://user-images.githubusercontent.com/42118870/135215370-6f6e98f9-d1e5-4af0-bde8-f4ade7f4fed1.jpg) ![Uploading 接口返回信息.jpg…]()

This PR is based on the work done at https://github.com/openresty/lua-resty-upstream-healthcheck/pull/5. It adds SSL support and addresses all the comments(tests and session reuse) made in the original PR. One significant modification...

when using openresty/openresty:1.15.8.3-2-alpine-fat image I receive an error that ngx_lua 0.9.5+ is required. ``` web_1 | 2020/05/22 21:49:48 [error] 8#8: init_worker_by_lua error: /usr/local/openresty/lualib/resty/upstream/healthcheck.lua:28: ngx_lua 0.9.5+ required web_1 | stack traceback:...

local ok, err = hc.spawn_checker{ shm = "healthcheck", -- defined by "lua_shared_dict" upstream = "foo.com", -- defined by "upstream" type = "tcp", interval = 2000, -- run the check cycle...