mirror of
https://gitee.com/iresty/apisix.git
synced 2024-12-14 17:01:20 +08:00
bugfix: Each upstream service only needs to create a health check instance, otherwise each work will periodically detect the upstream service (#586)
每个上游服务只需要创建一个健康检查实例,否则每个work都会定时探活上游服务
This commit is contained in:
parent
03f5029970
commit
14a31a8dc1
@ -73,7 +73,7 @@ end
|
|||||||
|
|
||||||
local function create_checker(upstream, healthcheck_parent)
|
local function create_checker(upstream, healthcheck_parent)
|
||||||
local checker = healthcheck.new({
|
local checker = healthcheck.new({
|
||||||
name = "upstream#" .. tostring(upstream),
|
name = "upstream#" .. healthcheck_parent.key,
|
||||||
shm_name = "upstream-healthcheck",
|
shm_name = "upstream-healthcheck",
|
||||||
checks = upstream.checks,
|
checks = upstream.checks,
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user