-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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-lock in nginx image #2172
Conversation
@@ -32,7 +32,7 @@ export OPENTRACING_CPP_VERSION=1.2.0 | |||
export ZIPKIN_CPP_VERSION=0.2.0 | |||
export JAEGER_VERSION=0.2.0 | |||
export MODSECURITY_VERSION=1.0.0 | |||
export LUA_VERSION=0.10.12rc2 | |||
export LUA_NGX_VERSION=0.10.12rc2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not directly related to the PR but I thought it is simple enough that does not require an additional separate PR. The reason I'm changing it is because all lua-resty-*
libraries uses LUA_VERSION
in the Makefile(for example: https://github.com/openresty/lua-resty-lock/blob/master/Makefile#L5) and they expect it to be the version of Lua interpreter running in the machine not the version of lua-nginx-module.
/assign @aledbf |
/approve |
@ElvinEfendi thanks! |
[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:
We need a synchronization/locking primitive available in Lua land to properly implement load balancing algorithms. You can see how is this being used for Round Robin implementation at https://github.com/Shopify/ingress/pull/16/files?w=1#diff-b00d77a6df9c8c05a483044b08e6bc50R38. But all the other algorithms that are in the roadmap will need some kind of locking. The PR adds https://github.com/openresty/lua-resty-lock to the Nginx image.
Which issue this PR fixes: N/A
Special notes for your reviewer: N/A