Here is the details ,
https://github.com/Kong/kong/issues/5604#issuecomment-619501171
local function create_balancer_exclusive(upstream, history, start)
local health_threshold = upstream.healthchecks and
upstream.healthchecks.threshold or nil
local balancer, err = balancer_types[upstream.algorithm].new({
log_prefix = "upstream:" .. upstream.name,
wheelSize = upstream.slots, -- will be ignored by least-connections
dns = dns_client,
healthThreshold = health_threshold,
})
if not balancer then
return nil, "failed creating balancer:" .. err
end
singletons.core_cache:invalidate_local("balancer:upstreams:" .. upstream.id)
singletons.core_cache:invalidate_local("balancer:targets:" .. upstream.id)
target_histories[balancer] = {}