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

health checker does not support stream directive

Open vesafb opened this issue 8 years ago • 0 comments

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 message is: nginx: [emerg] "lua_shared_dict" directive is not allowed here in ./conf/nginx.conf:121

vesafb avatar Mar 20 '17 03:03 vesafb