Skip to content

Commit b1e74f0

Browse files
committed
feature: implemented the balancer_by_lua_block and balancer_by_lua_file directives to allow NGINX load balancers written in Lua
Also added pure C API to support the ngx.balancer Lua API implemented in the lua-resty-core library.
1 parent e527417 commit b1e74f0

10 files changed

+832
-3
lines changed

config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,7 @@ NGX_ADDON_SRCS="$NGX_ADDON_SRCS \
306306
$ngx_addon_dir/src/ngx_stream_lua_directive.c \
307307
$ngx_addon_dir/src/ngx_stream_lua_lex.c \
308308
$ngx_addon_dir/src/ngx_stream_lua_contentby.c \
309+
$ngx_addon_dir/src/ngx_stream_lua_balancer.c \
309310
$ngx_addon_dir/src/ngx_stream_lua_util.c \
310311
$ngx_addon_dir/src/ngx_stream_lua_cache.c \
311312
$ngx_addon_dir/src/ngx_stream_lua_clfactory.c \
@@ -343,6 +344,7 @@ NGX_ADDON_DEPS="$NGX_ADDON_DEPS \
343344
$ngx_addon_dir/src/ngx_stream_lua_common.h \
344345
$ngx_addon_dir/src/ngx_stream_lua_lex.h \
345346
$ngx_addon_dir/src/ngx_stream_lua_contentby.h \
347+
$ngx_addon_dir/src/ngx_stream_lua_balancer.h \
346348
$ngx_addon_dir/src/ngx_stream_lua_util.h \
347349
$ngx_addon_dir/src/ngx_stream_lua_cache.h \
348350
$ngx_addon_dir/src/ngx_stream_lua_clfactory.h \

src/api/ngx_stream_lua_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
/* Public API for other Nginx modules */
2020

2121

22-
#define ngx_stream_lua_version 10001
22+
#define ngx_stream_lua_version 10006
2323

2424

2525
typedef struct {

0 commit comments

Comments
 (0)