bugfix: set canary attributes when initializing balancer
This commit is contained in:
parent
4e4ec8b9b4
commit
41c925f390
4 changed files with 8 additions and 0 deletions
|
@ -9,6 +9,8 @@ function _M.new(self, backend)
|
|||
local o = {
|
||||
instance = self.factory:new(nodes),
|
||||
hash_by = backend["upstream-hash-by"],
|
||||
traffic_shaping_policy = backend.trafficShapingPolicy,
|
||||
alternative_backends = backend.alternativeBackends,
|
||||
}
|
||||
setmetatable(o, self)
|
||||
self.__index = self
|
||||
|
|
|
@ -120,6 +120,8 @@ end
|
|||
function _M.new(self, backend)
|
||||
local o = {
|
||||
peers = backend.endpoints,
|
||||
traffic_shaping_policy = backend.trafficShapingPolicy,
|
||||
alternative_backends = backend.alternativeBackends,
|
||||
}
|
||||
setmetatable(o, self)
|
||||
self.__index = self
|
||||
|
|
|
@ -8,6 +8,8 @@ function _M.new(self, backend)
|
|||
local nodes = util.get_nodes(backend.endpoints)
|
||||
local o = {
|
||||
instance = self.factory:new(nodes),
|
||||
traffic_shaping_policy = backend.trafficShapingPolicy,
|
||||
alternative_backends = backend.alternativeBackends,
|
||||
}
|
||||
setmetatable(o, self)
|
||||
self.__index = self
|
||||
|
|
|
@ -18,6 +18,8 @@ function _M.new(self, backend)
|
|||
cookie_expires = backend["sessionAffinityConfig"]["cookieSessionAffinity"]["expires"],
|
||||
cookie_max_age = backend["sessionAffinityConfig"]["cookieSessionAffinity"]["maxage"],
|
||||
digest_func = digest_func,
|
||||
traffic_shaping_policy = backend.trafficShapingPolicy,
|
||||
alternative_backends = backend.alternativeBackends,
|
||||
}
|
||||
setmetatable(o, self)
|
||||
self.__index = self
|
||||
|
|
Loading…
Reference in a new issue