-
Notifications
You must be signed in to change notification settings - Fork 8.4k
include lua-resty-balancer in nginx image #2385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
include lua-resty-balancer in nginx image #2385
Conversation
/approve |
/lgtm |
@ElvinEfendi you need to rebase (.travis is not up to date) |
hmm it should be up-to-date though, I'd rebased after your PR merged. |
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aledbf, ElvinEfendi The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
The PR includes https://github.com/openresty/lua-resty-balancer in the base Nginx image. The library has both Round Robin and consistent hashing load balancing implementations. In subsequent PRs I'll make use of consistent hashing to support https://github.com/kubernetes/ingress-nginx/blob/master/docs/user-guide/annotations.md#custom-nginx-upstream-hashing when dynamic configuration is enabled and then refactor balancer.lua to use Round Robin implementation from this library instead of reimplementing it ourselves.
Which issue this PR fixes: n/a
Special notes for your reviewer: n/a