Open thibaultcha opened 4 years ago
I need this function exactly,But not yet merged.
I need this function exactly,But not yet merged. @onlonely refer to https://github.com/stallion5632/apisix-nginx-module
this repository is a part of https://github.com/api7/apisix-nginx-module To realize the openresty/meta-lua-nginx-module#76
how to use base openresty official 1.19.9.1 version Follow the steps below:
cd apisix-nginx-module/patch ./patch.sh ThePathOfYourOpenRestySrcDirectory /configure --add-module=../apisix-nginx-module/src/meta make -j10
Bump. Can this be merged?
This PR introduces a new NGINX core module: ngx_meta_lua_module.
This new module aims to:
lua_shared_dict
between thehttp {}
andstream {}
subsystems (with some code cleanup along the way).ngx_meta_lua_module offers a new
nginx.conf
configuration block:lua {}
.New lua {} conf block
In the below example, we specify
lua_shared_dict
in the newlua {}
block to share the allocated shm zone between all subsystems:Currently,
lua_shared_dict
is the only directive supported inside of thelua {}
configuration block. Many more could follow when settings could be applied globally to all subsystems' Lua VMs (e.g.lua_package_path
,lua_max_pending_timers
, etc...). In some cases, it would also make sense to only allow some Lua directives to be specified from within thelua {}
block, e.g.lua_sa_restart
.Current state
For the time being, this PR is opened for feedback and reviews without an estimated timeline for merging.
That said, all tests are passing for:
See also
For this module to work, it must be compiled with updated versions of ngx_http_lua_module, ngx_stream_lua_module, and lua-resty-core. See the following branches:
The tt2 templates of this repositories have also been updated to support the ngx_meta_lua_module, and produce valid ngx_stream_lua_module/ngx_http_lua_module targets.
A list of topics requesting this feature:
TODOs
A non-exhaustive list: