upstream-hash-by should override load-balance annotation
This commit is contained in:
parent
6cb28e059c
commit
992a68de23
3 changed files with 11 additions and 5 deletions
|
|
@ -32,6 +32,7 @@ end
|
|||
function _M.balance(backend)
|
||||
local instance = instances[backend.name]
|
||||
if not instance then
|
||||
ngx.log(ngx.ERR, "no LB algorithm instance was found")
|
||||
return nil
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue