Xiaochen Wang

Results 223 comments of Xiaochen Wang

also need lua-nginx-module: ``` export LUAJIT_LIB=/path/to/openresty_luajit/output/lib export LUAJIT_INC=/path/to/openresty_luajit/output/include/luajit-2.1 ./configure \ --with-http_lua_module \ --with-http_upstream_check_module \ --with-http_dyups_module \ --with-http_dyups_lua_api ```

fixed https://github.com/alibaba/tengine/pull/1255

hi all I think this module can work with fastcgi like proxy module, although I didnt test. This module works with nginx upstream logic directly, not with proxy/fastcgi module. So...

第三步,post数据的时候需要把其他模块指令也push上去。 同时注意,改模块的兼容列表中未写明有chash模块,所以不保证100%兼容。不过可以自行测试下。

那应该就是不兼容了,因为该模块没有测试过。 --- 自行调试可以这样: 你可以看下 第二步 `通过curl测试,无论怎么变url参数,请求会一直固定的打到一台机器上。` 这个步骤对应的访问请求的debug log 查看其中的upstream chash模块是否work

only support http upstream module:)

hi all I think this module can work with grpc like proxy module, although I didnt test. This module works with nginx upstream logic directly, not with proxy/grpc module. So...

If we want to support stream module, we should implement a new module for dynamic stream upstream, like ngx_stream_dyups_module. Current dyups module is based on __http__ upstream module. For nginx.conf,...

dyups模块可以保证 请求使用 老的upstream状态 和 新的upstream状态其一,可以保证不会查不到upstream。所以只要新老upstream描述的后端列表无异常,即不会出现损伤。 * 使用老的upstream状态:更新后又一定延时才能把所有新的upstream同步到所有worker,所以部分worker的会出现使用老的upstream状态

To enable dyups LUA API, you MUST put `--add-module=./lua-nginx-module` in front of `--add-module=./ngx_http_dyups_module` in the ./configure command. 在`./configure`编译命令的时候,请把lua-nginx-module放在dyups module之前