I'm keen to try this module out.Could I get the steps to build it in? I'm building open resty from the full bundle which I download from openresty.org
I think I figured it out.- clone the repo, checkout the branch.- unpack the tarball: ngx_openresty-1.9.3.1.tar.gz - remove the bundle/ngx_lua-0.9.16 - create a symlink bundle/ngx_lua-0.9.18 (last version bump on that branch) to the checkout- build normally?
On Thu, Nov 19, 2015 at 3:06 PM, David Birdsong <david....@gmail.com> wrote:I'm keen to try this module out.Could I get the steps to build it in? I'm building open resty from the full bundle which I download from openresty.org .
Hello,2015-11-20 8:30 GMT+08:00 David Birdsong <david....@gmail.com>:I think I figured it out.- clone the repo, checkout the branch.- unpack the tarball: ngx_openresty-1.9.3.1.tar.gz - remove the bundle/ngx_lua-0.9.16 - create a symlink bundle/ngx_lua-0.9.18 (last version bump on that branch) to the checkout- build normally?yes, and you need to cp branch/lua/ngx to /path/to/lualib (/usr/local/openresty/lualib default)
cjson.so rds/ redis/ resty/
I can easily copy in lua/ngx/ from the feature branch into that path. I'm just wondering what the authors envision as the require path string to be if/when this branch ever gets merged into master:
local balancer = require('ngx/balancer')
or would it be
local balancer = require('resty/balancer')
On Thu, Nov 19, 2015 at 3:06 PM, David Birdsong <david....@gmail.com> wrote:I'm keen to try this module out.Could I get the steps to build it in? I'm building open resty from the full bundle which I download from openresty.org . agentzh Hello! On Tue, Dec 22, 2015 at 12:16 PM, David Birdsong wrote: > > just curious where balancer.lua will go in the future. It will go into the lua-resty-core library as the "ngx.balancer" module. > The current set of > top-level dirs after ./configure && make && make install are: > > cjson.so rds/ redis/ resty/ > balancer.lua will be under ngx/ here. > local balancer = require('ngx/balancer') > > or would it be > > local balancer = require('resty/balancer') > Neither. It would be local balancer = require "ngx.balancer" Hope it helps :) Just a small caveat: we may do some (minor) modifications to the existing Lua API in ngx.balancer or may not. We usually preserve that right before merging. Thanks for your understanding. I can assure you that we won't change the module name though. It'll always be "ngx.balancer" :) Best regards, -agentzh wojonstech agentzh,wanted to know if u can provide a built version of this that you used for testing having a little bit of an issue trying to get one to install i am replacing in the util/mirror-tarballs with the version from ur balancer branch.On Tuesday, December 22, 2015 at 12:20:43 PM UTC-8, agentzh wrote:Hello! On Tue, Dec 22, 2015 at 12:16 PM, David Birdsong wrote: > > just curious where balancer.lua will go in the future. It will go into the lua-resty-core library as the "ngx.balancer" module. > The current set of > top-level dirs after ./configure && make && make install are: > > cjson.so rds/ redis/ resty/ > balancer.lua will be under ngx/ here. > local balancer = require('ngx/balancer') > > or would it be > > local balancer = require('resty/balancer') > Neither. It would be local balancer = require "ngx.balancer" Hope it helps :) Just a small caveat: we may do some (minor) modifications to the existing Lua API in ngx.balancer or may not. We usually preserve that right before merging. Thanks for your understanding. I can assure you that we won't change the module name though. It'll always be "ngx.balancer" :) Best regards, -agentzh agentzh Hello! On Sun, Jan 3, 2016 at 10:20 PM, Alexis Okuwa wrote: > wanted to know if u can provide a built version of this that you used for > testing having a little bit of an issue trying to get one to install i am > replacing in the util/mirror-tarballs with the version from ur balancer > branch. > Just try the following preview version: https://openresty.org/download/ngx_openresty-1.9.7.2rc0.tar.gz It includes balancer_by_lua*, ngx.balancer, and ngx.semaphore already. This is not even a release candidate since I'm still busy working incorporating ssl_certificate_by_lua*: https://github.com/openresty/lua-resty-core/pull/12 https://github.com/openresty/lua-nginx-module/pull/637 Regards, -agentzh wojonstech I will use ur download and not the one that i have forced to work i got it to work last night and it was working great. We are going to start benchmarking it shortly. is there anytime line you have for this?On Monday, January 4, 2016 at 10:52:03 AM UTC-8, agentzh wrote:Hello! On Sun, Jan 3, 2016 at 10:20 PM, Alexis Okuwa wrote: > wanted to know if u can provide a built version of this that you used for > testing having a little bit of an issue trying to get one to install i am > replacing in the util/mirror-tarballs with the version from ur balancer > branch. > Just try the following preview version: https://openresty.org/download/ngx_openresty-1.9.7.2rc0.tar.gz It includes balancer_by_lua*, ngx.balancer, and ngx.semaphore already. This is not even a release candidate since I'm still busy working incorporating ssl_certificate_by_lua*: https://github.com/openresty/lua-resty-core/pull/12 https://github.com/openresty/lua-nginx-module/pull/637 Regards, -agentzh agentzh Hello! On Mon, Jan 4, 2016 at 5:56 PM, Alexis Okuwa wrote: > I will use ur download and not the one that i have forced to work i got it > to work last night and it was working great. We are going to start > benchmarking it shortly. Cool. Just remember to use the flame graph tools to validate your benchmark results :) See https://openresty.org/#Profiling > is there anytime line you have for this? > Sorry, timeline for what? For the next OpenResty formal release? If you mean that, then it would be in later this month. Regards, -agentzh xiaokai.wangz Maybe, you can try the module: nginx-upsync-module, https://github.com/weibocom/nginx-upsync-module .Thanks.在 2015年11月20日星期五 UTC+8上午7:06:27,David Birdsong写道:I'm keen to try this module out.Could I get the steps to build it in? I'm building open resty from the full bundle which I download from openresty.org david.birdsong On Sat, Jan 9, 2016 at 4:30 AM, Xiaokai Wang <xiaoka...@gmail.com> wrote:Maybe, you can try the module: nginx-upsync-module, https://github.com/weibocom/nginx-upsync-module .wow, this is very, very cool. Thanks.在 2015年11月20日星期五 UTC+8上午7:06:27,David Birdsong写道:I'm keen to try this module out.Could I get the steps to build it in? I'm building open resty from the full bundle which I download from openresty.org -- .
Hello! On Tue, Dec 22, 2015 at 12:16 PM, David Birdsong wrote: > > just curious where balancer.lua will go in the future. It will go into the lua-resty-core library as the "ngx.balancer" module. > The current set of > top-level dirs after ./configure && make && make install are: > > cjson.so rds/ redis/ resty/ > balancer.lua will be under ngx/ here. > local balancer = require('ngx/balancer') > > or would it be > > local balancer = require('resty/balancer') > Neither. It would be local balancer = require "ngx.balancer" Hope it helps :) Just a small caveat: we may do some (minor) modifications to the existing Lua API in ngx.balancer or may not. We usually preserve that right before merging. Thanks for your understanding. I can assure you that we won't change the module name though. It'll always be "ngx.balancer" :) Best regards, -agentzh
Hello! On Sun, Jan 3, 2016 at 10:20 PM, Alexis Okuwa wrote: > wanted to know if u can provide a built version of this that you used for > testing having a little bit of an issue trying to get one to install i am > replacing in the util/mirror-tarballs with the version from ur balancer > branch. > Just try the following preview version: https://openresty.org/download/ngx_openresty-1.9.7.2rc0.tar.gz It includes balancer_by_lua*, ngx.balancer, and ngx.semaphore already. This is not even a release candidate since I'm still busy working incorporating ssl_certificate_by_lua*: https://github.com/openresty/lua-resty-core/pull/12 https://github.com/openresty/lua-nginx-module/pull/637 Regards, -agentzh
Hello! On Mon, Jan 4, 2016 at 5:56 PM, Alexis Okuwa wrote: > I will use ur download and not the one that i have forced to work i got it > to work last night and it was working great. We are going to start > benchmarking it shortly. Cool. Just remember to use the flame graph tools to validate your benchmark results :) See https://openresty.org/#Profiling > is there anytime line you have for this? > Sorry, timeline for what? For the next OpenResty formal release? If you mean that, then it would be in later this month. Regards, -agentzh
Maybe, you can try the module: nginx-upsync-module, https://github.com/weibocom/nginx-upsync-module .
Thanks.在 2015年11月20日星期五 UTC+8上午7:06:27,David Birdsong写道:I'm keen to try this module out.Could I get the steps to build it in? I'm building open resty from the full bundle which I download from openresty.org -- .