-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to support multiple nodes balance on MQTT proxy? #5304
Comments
@juzhiyuan 有方法没? |
I just took a look at https://github.com/apache/apisix/blob/master/apisix/stream/plugins/mqtt-proxy.lua#L31-L43 . It only supports one node 🤔 need @tzssangglass's confirm. |
I'm not sure,a all I see in the test cases of MQTT plugin is single node in upstream, maybe you could configure multiple nodes in upstream to try it? |
Currently, only one endpoint can be configured in the MQTT plugin, a feasible work around plan is add another indirect L4 proxy (we can just use the apisix itself), and let the MQTT proxy to the L4 proxy, configure an Upstream with multiple nodes in L4 proxy. Of course, PR's welcome to extend the MQTT plugin. |
Thanks for your explanation! |
1 similar comment
Thanks for your explanation! |
Solved by #5666 |
Issue description
mqtt 代理如何配置可以支持多节点负载均衡?
Environment
apisix version
): 2.10.0uname -a
): macosnginx -V
oropenresty -V
):curl http://127.0.0.1:9090/v1/server_info
to get the info from server-info API):luarocks --version
):The text was updated successfully, but these errors were encountered: