You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apisix.apache.org by 15717900 <15...@qq.com> on 2020/12/04 03:51:24 UTC

the problem of upstream log printing

hello,


&nbsp; &nbsp; &nbsp; The upstream address printed in the log ($upstream_addr field) sometimes prints all configured upstream addresses. May I ask if it is a configuration problem or a bug in the program. How should I solve it?


&nbsp; &nbsp; &nbsp; for example&nbsp;
&nbsp; &nbsp; &nbsp; upstreams config: 192.168.1.1:11000,192.168.1.2:11000,11000,192.168.1.3:11000&nbsp;
&nbsp; &nbsp; &nbsp; normal log:192.168.1.1:11000
&nbsp; &nbsp; &nbsp; problem log:192.168.1.1:11000,192.168.1.2:11000,11000,192.168.1.3:11000&nbsp;


Looking forward to answer,thanks

Re: master deps error【20210219】

Posted by YuanSheng Wang <me...@apache.org>.
it is not easy to read your email.
please check the mail setting, or you can use another email system.

On Fri, Feb 19, 2021 at 9:37 AM 15717900 <15...@qq.com> wrote:

> hello,
> &nbsp; &nbsp; &nbsp; I use Tencent virtual machine to compile the master
> version.
> &nbsp; &nbsp; &nbsp; the error message is
>
>
> ---------------------------this is err
> begin-----------------------------------
> &nbsp; &nbsp; &nbsp; inflating: luasocket-3.0-rc1/test/udpconnectsrvr.lua
> &nbsp; inflating: luasocket-3.0-rc1/test/unixclnt.lua
> &nbsp; inflating: luasocket-3.0-rc1/test/unixsrvr.lua
> &nbsp; inflating: luasocket-3.0-rc1/test/upload.html
> &nbsp; inflating: luasocket-3.0-rc1/test/urltest.lua
> &nbsp; inflating: luasocket-3.0-rc1/test/utestclnt.lua
> &nbsp; inflating: luasocket-3.0-rc1/test/utestsrvr.lua
> &nbsp; inflating: luasocket-3.0-rc1/win32.cmd
> gcc -O2 -fPIC -I/usr/include -c src/mime.c -o src/mime.o
> -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG
> -DLUASOCKET_API=__attribute__((visibility("default"))) -D&nbsp; &nbsp;
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
> &nbsp; UNIX_API=__attribute__((visibility("default")))
> -DMIME_API=__attribute__((visibility("default")))
> src/mime.c:7:17: fatal error: lua.h: No such file or directory
> &nbsp;#include "lua.h"
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^
> compilation terminated.
>
>
> Error: Failed installing dependency:
> https://luarocks.org/luasec-0.9-1.src.rock - Failed installing
> dependency: https://luarocks.org/luasocket-3.0rc1-2.src.r&nbsp; &nbsp;
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
> &nbsp; ock - Build error: Failed compiling object src/mime.o
> make: *** [deps] Error 1
> ---------------------------this is err
> end-----------------------------------
> (1)openresty -v(Both versions have the same error message)
> nginx version: openresty/1.19.3.1
> nginx version: openresty/1.17.8.2
> openssl-1.1.1g
> &nbsp;
> (2)lua -v
> Lua 5.1.4&nbsp; Copyright (C) 1994-2008 Lua.org, PUC-Rio
>
>
>
> (3)luarocks
> LuaRocks 2.3.0, a module deployment system for Lua
>
>
>
> (4)uname -a
> Linux VM-0-14-centos 3.10.0-1127.19.1.el7.x86_64 #1 SMP Tue Aug 25
> 17:23:54 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
>
>
>
> Looking forward to answer,thanks



-- 

*MembPhis*
My GitHub: https://github.com/membphis
Apache APISIX: https://github.com/apache/apisix

Re: Hope to be able to support the processing of static resources

Posted by Zhiyuan Ju <ju...@apache.org>.
Hi,

Please take a look at this issue:
https://github.com/apache/apisix/issues/4889, let me know if it
makes sense to you :)

Also, we have a mail subscription guide[1], please follow this guide to
subscribe to the mailing list.

Have a good day!

[1] https://apisix.apache.org/docs/general/subscribe-guide

Best Regards!
@ Zhiyuan Ju <https://github.com/juzhiyuan>


15717900 <15...@qq.com.invalid> 于2021年12月14日周二 09:56写道:

> hello everyone
> &nbsp; &nbsp;&nbsp;
> &nbsp; &nbsp; &nbsp;I suggested to increase the processing mechanism of
> static resources.
>
>
> &nbsp; &nbsp; &nbsp;Nginx processing static requests is a very common
> scenario. If APIs IX can handle static resource requests, it can reduce
> resource usage in the production environment .
>
>
>
> Looking forward to answer,thanks

Hope to be able to support the processing of static resources

Posted by 15717900 <15...@qq.com.INVALID>.
hello everyone
&nbsp; &nbsp;&nbsp;
&nbsp; &nbsp; &nbsp;I suggested to increase the processing mechanism of static resources.


&nbsp; &nbsp; &nbsp;Nginx processing static requests is a very common scenario. If APIs IX can handle static resource requests, it can reduce resource usage in the production environment .



Looking forward to answer,thanks

Re: About cookie sticky

Posted by Zexuan Luo <sp...@apache.org>.
PR is welcome. You can refer to the sticky implementation of ingress-nginx
https://github.com/kubernetes/ingress-nginx/tree/master/rootfs/etc/nginx/lua/balancer

15717900 <15...@qq.com> 于2021年3月24日周三 上午11:21写道:
>
> hello,
>
>
> &nbsp; &nbsp; &nbsp;The current solution is to set hash_on is vars_combinations and choose $remote_ Addr and a value in the cookie to simulate cookie sticky, but in the VPN scenario, because the remote_addr is the same, this way will lead to load imbalance, and there is no other way to achieve cookie sticky load balancing effect.
>
>
> &nbsp; &nbsp; &nbsp;I suggest adding cookie sticky as a native implementation to the product code, or providing an official recommended configuration standard. Thank you very much.
>
>
> Looking forward to answer,thanks

About cookie sticky

Posted by 15717900 <15...@qq.com>.
hello,


&nbsp; &nbsp; &nbsp;The current solution is to set hash_on is vars_combinations and choose $remote_ Addr and a value in the cookie to simulate cookie sticky, but in the VPN scenario, because the remote_addr is the same, this way will lead to load imbalance, and there is no other way to achieve cookie sticky load balancing effect.


&nbsp; &nbsp; &nbsp;I suggest adding cookie sticky as a native implementation to the product code, or providing an official recommended configuration standard. Thank you very much.


Looking forward to answer,thanks

Re: master deps error【20210219】

Posted by Wesley Peng <we...@pengfamily.de>.
QQ MIME sucks. please use a standard email product such as Gmail.


On Fri, Feb 19, 2021, at 9:37 AM, 15717900 wrote:
> hello,
> &nbsp; &nbsp; &nbsp; I use Tencent virtual machine to compile the master version.
> &nbsp; &nbsp; &nbsp; the error message is
> 
> 
> ---------------------------this is err begin-----------------------------------
> &nbsp; &nbsp; &nbsp; inflating: luasocket-3.0-rc1/test/udpconnectsrvr.lua
> &nbsp; inflating: luasocket-3.0-rc1/test/unixclnt.lua
> &nbsp; inflating: luasocket-3.0-rc1/test/unixsrvr.lua
> &nbsp; inflating: luasocket-3.0-rc1/test/upload.html
> &nbsp; inflating: luasocket-3.0-rc1/test/urltest.lua
> &nbsp; inflating: luasocket-3.0-rc1/test/utestclnt.lua
> &nbsp; inflating: luasocket-3.0-rc1/test/utestsrvr.lua
> &nbsp; inflating: luasocket-3.0-rc1/win32.cmd
> gcc -O2 -fPIC -I/usr/include -c src/mime.c -o src/mime.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DLUASOCKET_API=__attribute__((visibility("default"))) -D&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; UNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
> src/mime.c:7:17: fatal error: lua.h: No such file or directory
> &nbsp;#include "lua.h"
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^
> compilation terminated.
> 
> 
> Error: Failed installing dependency: https://luarocks.org/luasec-0.9-1.src.rock - Failed installing dependency: https://luarocks.org/luasocket-3.0rc1-2.src.r&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ock - Build error: Failed compiling object src/mime.o
> make: *** [deps] Error 1
> ---------------------------this is err end-----------------------------------
> (1)openresty -v(Both versions have the same error message)
> nginx version: openresty/1.19.3.1
> nginx version: openresty/1.17.8.2
> openssl-1.1.1g
> &nbsp;
> (2)lua -v
> Lua 5.1.4&nbsp; Copyright (C) 1994-2008 Lua.org, PUC-Rio
> 
> 
> 
> (3)luarocks
> LuaRocks 2.3.0, a module deployment system for Lua
> 
> 
> 
> (4)uname -a
> Linux VM-0-14-centos 3.10.0-1127.19.1.el7.x86_64 #1 SMP Tue Aug 25 17:23:54 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
> 
> 
> 
> Looking forward to answer,thanks

master deps error【20210219】

Posted by 15717900 <15...@qq.com>.
hello,
&nbsp; &nbsp; &nbsp; I use Tencent virtual machine to compile the master version.
&nbsp; &nbsp; &nbsp; the error message is


---------------------------this is err begin-----------------------------------
&nbsp; &nbsp; &nbsp; inflating: luasocket-3.0-rc1/test/udpconnectsrvr.lua
&nbsp; inflating: luasocket-3.0-rc1/test/unixclnt.lua
&nbsp; inflating: luasocket-3.0-rc1/test/unixsrvr.lua
&nbsp; inflating: luasocket-3.0-rc1/test/upload.html
&nbsp; inflating: luasocket-3.0-rc1/test/urltest.lua
&nbsp; inflating: luasocket-3.0-rc1/test/utestclnt.lua
&nbsp; inflating: luasocket-3.0-rc1/test/utestsrvr.lua
&nbsp; inflating: luasocket-3.0-rc1/win32.cmd
gcc -O2 -fPIC -I/usr/include -c src/mime.c -o src/mime.o -DLUA_COMPAT_APIINTCASTS -DLUASOCKET_DEBUG -DLUASOCKET_API=__attribute__((visibility("default"))) -D&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; UNIX_API=__attribute__((visibility("default"))) -DMIME_API=__attribute__((visibility("default")))
src/mime.c:7:17: fatal error: lua.h: No such file or directory
&nbsp;#include "lua.h"
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^
compilation terminated.


Error: Failed installing dependency: https://luarocks.org/luasec-0.9-1.src.rock - Failed installing dependency: https://luarocks.org/luasocket-3.0rc1-2.src.r&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ock - Build error: Failed compiling object src/mime.o
make: *** [deps] Error 1
---------------------------this is err end-----------------------------------
(1)openresty -v(Both versions have the same error message)
nginx version: openresty/1.19.3.1
nginx version: openresty/1.17.8.2
openssl-1.1.1g
&nbsp;
(2)lua -v
Lua 5.1.4&nbsp; Copyright (C) 1994-2008 Lua.org, PUC-Rio



(3)luarocks
LuaRocks 2.3.0, a module deployment system for Lua



(4)uname -a
Linux VM-0-14-centos 3.10.0-1127.19.1.el7.x86_64 #1 SMP Tue Aug 25 17:23:54 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux



Looking forward to answer,thanks

Re: the problem of upstream log printing

Posted by YuanSheng Wang <me...@apache.org>.
what is the version of your APISIX?
what is the mini case to reproduce this issue?

and please provide a full error log, only part of them is not easy to
confirm the issue.


On Fri, Dec 4, 2020 at 11:51 AM 15717900 <15...@qq.com> wrote:

> hello,
>
>
> &nbsp; &nbsp; &nbsp; The upstream address printed in the log
> ($upstream_addr field) sometimes prints all configured upstream addresses.
> May I ask if it is a configuration problem or a bug in the program. How
> should I solve it?
>
>
> &nbsp; &nbsp; &nbsp; for example&nbsp;
> &nbsp; &nbsp; &nbsp; upstreams config: 192.168.1.1:11000,192.168.1.2:11000
> ,11000,192.168.1.3:11000&nbsp;
> &nbsp; &nbsp; &nbsp; normal log:192.168.1.1:11000
> &nbsp; &nbsp; &nbsp; problem log:192.168.1.1:11000,192.168.1.2:11000
> ,11000,192.168.1.3:11000&nbsp;
>
>
> Looking forward to answer,thanks



-- 

*MembPhis*
My GitHub: https://github.com/membphis
Apache APISIX: https://github.com/apache/apisix