Skip to content

Commit

Permalink
bugfix: Each upstream service only needs to create a health check ins…
Browse files Browse the repository at this point in the history
…tance, otherwise each work will periodically detect the upstream service (#586)

每个上游服务只需要创建一个健康检查实例,否则每个work都会定时探活上游服务
  • Loading branch information
wanghui1125 authored and membphis committed Sep 24, 2019
1 parent 03f5029 commit 14a31a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/apisix/balancer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ end

local function create_checker(upstream, healthcheck_parent)
local checker = healthcheck.new({
name = "upstream#" .. tostring(upstream),
name = "upstream#" .. healthcheck_parent.key,
shm_name = "upstream-healthcheck",
checks = upstream.checks,
})
Expand Down

0 comments on commit 14a31a8

Please sign in to comment.