apisix icon indicating copy to clipboard operation
apisix copied to clipboard

How can I reuse connections in dubbo-proxy?

Open heyaochun opened this issue 2 years ago • 5 comments

Description

I've tested to find that, apisix establishes a short connection to dubbo backend service when proxying a http request.

Environment

  • APISIX version (run apisix version): 3.1.0
  • Operating system (run uname -a): centos7
  • OpenResty / Nginx version (run openresty -V or nginx -V): 1.21.4
  • etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info): 3.4.0
  • APISIX Dashboard version, if relevant:
  • Plugin runner version, for issues related to plugin runners:
  • LuaRocks version, for installation issues (run luarocks --version):

heyaochun avatar Mar 26 '23 11:03 heyaochun

It seems that ngx_stream_multi_upstream_module in Tengine(which is not maintained any more) controls connections.
Any suggestions or help will be much appreciated. Thanks in advance.

heyaochun avatar Mar 26 '23 11:03 heyaochun

The dubbo feature is powered by ngx_stream_multi_upstream which is maintained by APISIX: https://github.com/api7/ngx_multi_upstream_module And I see that the connection pool is supported: https://github.com/apache/apisix/pull/4506/files

monkeyDluffy6017 avatar Mar 27 '23 02:03 monkeyDluffy6017

The dubbo feature is powered by ngx_stream_multi_upstream which is maintained by APISIX: https://github.com/api7/ngx_multi_upstream_module And I see that the connection pool is supported: https://github.com/apache/apisix/pull/4506/files

Thank you for reply.

  1. /api7/ngx_multi_upstream_module is actually exacted from tengine-2.3.2 (https://github.com/alibaba/tengine/tree/master/modules/ngx_multi_upstream_module) , as you can see it in readme.md
  2. keepalive doesn't work with dubbo, mentioned in nginx.conf (or cli/ngx_tpl.lua).

In my current conlusion, dubbo_proxy is not suitable for prod env. since its weakness in:dubbo group not support\short connection\original module not maintained. Any further discussions are welcomed.

heyaochun avatar Mar 27 '23 02:03 heyaochun

does dubbo_proxy support keepalive or multi ?

huntkalio avatar Oct 27 '23 04:10 huntkalio

This issue has been marked as stale due to 350 days of inactivity. It will be closed in 2 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the [email protected] list. Thank you for your contributions.

github-actions[bot] avatar Oct 11 '24 10:10 github-actions[bot]

This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.

github-actions[bot] avatar Oct 25 '24 10:10 github-actions[bot]