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/04/20 14:51:57 UTC

Hopefully, APISIX will enable the management of static resources

hello
&nbsp; &nbsp; Static resource management is split into two nginx in some scenarios, with some performance loss. Is it possible to solve the problem of static resources by means of plug-ins. Also, the A/B testing of static resources needs to be considered along with it.


Thanks,
Wei Guo

Re: Hopefully, APISIX will enable the management of static resources

Posted by YuanSheng Wang <me...@apache.org>.
Talk about my thoughts:

It is a standard feature to help microservices accelerate access to static
files as an API gateway.

The question is how?

1. client-> gateway (proxy cache)-> microservice
2. client-> gateway (static)-> microservice

Of these two cases, case 2 seems to be better. Because it puts some static
files of microservice
 into the API gateway, it destroys the integrity of the microservice
itself. This makes the long-term
management of microservice objects more complicated.

In addition, case 1 can use nginx proxy cache module, and the access
efficiency of cache files is the same as local static files.
The access speed of cache files is the same as local static files.


On Tue, Apr 21, 2020 at 8:48 AM 15717900 <15...@qq.com> wrote:

> hi,
>
>
> Thank you for your reply. I really agree with the positioning problem you
> mentioned. The positioning of a product is very important.
>
>
> On this issue, I would like to add two points, which are also the original
> intention of my discussion.
>
>
> 1. In the Internet scenario, more and more services will be opened in the
> form of pages. which we temporarily call "pages share". In this scenario,
> the definition of services is not limited to the traditional background
> microservices, and wechat mini programs are a good example.
>
>
> 2. If there is a static page in the upstream service, the function of
> APISIX as the entry will degenerate into a "seven layer load with flow
> control". For example, "/ user" microservice, in the traditional scenario,
> we can control the granularity of "/ user / qryinfo"; "/ user / add"; "/
> user / del". However, if there are static pages in the user service, we can
> only forward all / user / * to the upstream, and can't do fine-grained
> control.
>
>
> These are my ideas about static page management. Welcome to discuss.
>
>
>
>
>
> ------------------&nbsp;原始邮件&nbsp;------------------
> 发件人:&nbsp;"Zhang Qiang"<dotslash.lu@gmail.com&gt;;
> 发送时间:&nbsp;2020年4月21日(星期二) 凌晨0:29
> 收件人:&nbsp;"dev"<dev@apisix.apache.org&gt;;
>
> 主题:&nbsp;Re: Hopefully, APISIX will enable the management of static
> resources
>
>
>
> I raised a question similar to this days ago.&nbsp; But I had some
> after-thoughts after the team kindly replied it’s not possible without
> writing some Nginx configurations to serve static content&nbsp; on the
> gateway
> server now.
>
> I thought Apisix it self is not aimed to replace Nginx, it’s an **API**
> Gateway for micro services, serving content on the gateway itself is
> against the best practice of micro-service. In micro-service’s context, you
> do one thing with a component and do it well. To do so I think it’s better
> to create a service which serves static files.
>
> This is just my two cents, if this feature is really implemented by the
> team, I’ll also welcome it.
>
> 15717900 <15717900@qq.com&gt;于2020年4月20日 周一下午10:52写道:
>
> &gt; hello
> &gt; &amp;nbsp; &amp;nbsp; Static resource management is split into two
> nginx in some
> &gt; scenarios, with some performance loss. Is it possible to solve the
> problem
> &gt; of static resources by means of plug-ins. Also, the A/B testing of
> static
> &gt; resources needs to be considered along with it.
> &gt;
> &gt;
> &gt; Thanks,
> &gt; Wei Guo
>
> --
> DSL



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

回复: Hopefully, APISIX will enable the management of static resources

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


Thank you for your reply. I really agree with the positioning problem you mentioned. The positioning of a product is very important.


On this issue, I would like to add two points, which are also the original intention of my discussion.


1. In the Internet scenario, more and more services will be opened in the form of pages. which we temporarily call "pages share". In this scenario, the definition of services is not limited to the traditional background microservices, and wechat mini programs are a good example.


2. If there is a static page in the upstream service, the function of APISIX as the entry will degenerate into a "seven layer load with flow control". For example, "/ user" microservice, in the traditional scenario, we can control the granularity of "/ user / qryinfo"; "/ user / add"; "/ user / del". However, if there are static pages in the user service, we can only forward all / user / * to the upstream, and can't do fine-grained control.


These are my ideas about static page management. Welcome to discuss.





------------------&nbsp;原始邮件&nbsp;------------------
发件人:&nbsp;"Zhang Qiang"<dotslash.lu@gmail.com&gt;;
发送时间:&nbsp;2020年4月21日(星期二) 凌晨0:29
收件人:&nbsp;"dev"<dev@apisix.apache.org&gt;;

主题:&nbsp;Re: Hopefully, APISIX will enable the management of static resources



I raised a question similar to this days ago.&nbsp; But I had some
after-thoughts after the team kindly replied it’s not possible without
writing some Nginx configurations to serve static content&nbsp; on the gateway
server now.

I thought Apisix it self is not aimed to replace Nginx, it’s an **API**
Gateway for micro services, serving content on the gateway itself is
against the best practice of micro-service. In micro-service’s context, you
do one thing with a component and do it well. To do so I think it’s better
to create a service which serves static files.

This is just my two cents, if this feature is really implemented by the
team, I’ll also welcome it.

15717900 <15717900@qq.com&gt;于2020年4月20日 周一下午10:52写道:

&gt; hello
&gt; &amp;nbsp; &amp;nbsp; Static resource management is split into two nginx in some
&gt; scenarios, with some performance loss. Is it possible to solve the problem
&gt; of static resources by means of plug-ins. Also, the A/B testing of static
&gt; resources needs to be considered along with it.
&gt;
&gt;
&gt; Thanks,
&gt; Wei Guo

-- 
DSL

Re: Hopefully, APISIX will enable the management of static resources

Posted by Zhang Qiang <do...@gmail.com>.
I raised a question similar to this days ago.  But I had some
after-thoughts after the team kindly replied it’s not possible without
writing some Nginx configurations to serve static content  on the gateway
server now.

I thought Apisix it self is not aimed to replace Nginx, it’s an **API**
Gateway for micro services, serving content on the gateway itself is
against the best practice of micro-service. In micro-service’s context, you
do one thing with a component and do it well. To do so I think it’s better
to create a service which serves static files.

This is just my two cents, if this feature is really implemented by the
team, I’ll also welcome it.

15717900 <15...@qq.com>于2020年4月20日 周一下午10:52写道:

> hello
> &nbsp; &nbsp; Static resource management is split into two nginx in some
> scenarios, with some performance loss. Is it possible to solve the problem
> of static resources by means of plug-ins. Also, the A/B testing of static
> resources needs to be considered along with it.
>
>
> Thanks,
> Wei Guo

-- 
DSL

Re: About proxy configuration

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

Your mail may lose some important information, please have a check.

15717900 <15...@qq.com>于2020年6月10日 周三上午10:21写道:

> hello
>
>
> &nbsp; &nbsp;&nbsp;We meet a scene&nbsp;when Apisix is in use
>
>
> &nbsp; &nbsp; location /abc {
>         ...
>         proxy_pass&nbsp; http://IP:端口/user;
>         ...
> &nbsp; &nbsp; }
> &nbsp; &nbsp; &nbsp;Proxy to http://IP:端口/user&nbsp;&nbsp;when user
> requests /abc
>
>
> &nbsp; &nbsp; &nbsp;How does Apisix support such a similar configuration
>
>
>
>
> Looking forward to answer,thanks
> Wei&nbsp;Guo

-- 
来自 琚致远

Re: How to implement routing according to some information in the request body?

Posted by YuanSheng Wang <me...@apache.org>.
>  How to implement routing according to some information in the request
body?

you can make a try with the `filter_func` of route[1].

[1] https://github.com/apache/apisix/blob/master/doc/admin-api.md#route


On Tue, Sep 22, 2020 at 2:30 PM Ming Wen <we...@apache.org> wrote:

> hello, Wei Guo,
> The mailing list does not support image attachments, can you describe it in
> text?
>
> Thanks,
> Ming Wen, Apache APISIX & Apache SkyWalking
> Twitter: _WenMing
>
>
> 15717900 <15...@qq.com> 于2020年9月22日周二 下午2:08写道:
>
> > hello,
> >
> >  How to implement routing according to some information in the request
> > body?
> >  for example
> >
> >
> >
> > Looking forward to answer,thanks
> > Wei Guo
> >
>


-- 

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

Re: How to implement routing according to some information in the request body?

Posted by Ming Wen <we...@apache.org>.
hello, Wei Guo,
The mailing list does not support image attachments, can you describe it in
text?

Thanks,
Ming Wen, Apache APISIX & Apache SkyWalking
Twitter: _WenMing


15717900 <15...@qq.com> 于2020年9月22日周二 下午2:08写道:

> hello,
>
>  How to implement routing according to some information in the request
> body?
>  for example
>
>
>
> Looking forward to answer,thanks
> Wei Guo
>

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

the problem of upstream log printing

Posted by 15717900 <15...@qq.com>.
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

How to implement routing according to some information in the request body?

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


&nbsp;How to implement routing according to some information in the request body?&nbsp;
&nbsp;for example&nbsp;





Looking forward to answer,thanks
Wei Guo

Re: In the process of using apifix, we encountered two problems,about lua 5.2.2 and balance

Posted by Ming Wen <we...@apache.org>.
> 1.Can apifix run on Lua 5.2.2?
No, Apache APISIX is based on Nginx and LuaJIT.
LuaJIT and lua are two completely different things, LuaJIT is compatible
with the syntax of lua 5.1, not lua 5.2.

> 2.In the case of using a customized cookie as the upstream hash key, if
the cookie value is empty, load balancing will not be achieved, and all
requests will go to an upstream node. Can the cookie value be automatically
generated without the cookie value?
It depends on you. You can write a custom plug-in, if the cookie value is
empty, it will automatically generate one

Thanks,
Ming Wen, Apache APISIX & Apache SkyWalking
Twitter: _WenMing


15717900 <15...@qq.com> 于2020年8月14日周五 上午10:25写道:

> hello,
>
>
> In the process of using apifix, we encountered two problems
>
>
> 1.Can apifix run on Lua 5.2.2?
>
>
> 2.In the case of using a customized cookie as the upstream hash key, if
> the cookie value is empty, load balancing will not be achieved, and all
> requests will go to an upstream node. Can the cookie value be automatically
> generated without the cookie value?
>
>
> Looking forward to answer,thanks
> Wei Guo

In the process of using apifix, we encountered two problems,about lua 5.2.2 and balance

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


In the process of using apifix, we encountered two problems


1.Can apifix run on Lua 5.2.2?


2.In the case of using a customized cookie as the upstream hash key, if the cookie value is empty, load balancing will not be achieved, and all requests will go to an upstream node. Can the cookie value be automatically generated without the cookie value?


Looking forward to answer,thanks
Wei Guo

About proxy configuration

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


&nbsp; &nbsp;&nbsp;We meet a scene&nbsp;when Apisix is in use


&nbsp; &nbsp; location /abc {
	...
	proxy_pass&nbsp; http://IP:端口/user;
	...
&nbsp; &nbsp; }
&nbsp; &nbsp; &nbsp;Proxy to http://IP:端口/user&nbsp;&nbsp;when user requests /abc


&nbsp; &nbsp; &nbsp;How does Apisix support such a similar configuration




Looking forward to answer,thanks
Wei&nbsp;Guo