upstream-hash-by should override load-balance annotation

This commit is contained in:
Elvin Efendi 2018-05-10 13:47:02 -04:00
parent 6cb28e059c
commit 992a68de23
3 changed files with 11 additions and 5 deletions

View file

@ -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