gpt4 book ai didi

nginx 流模式重新连接到上游而不关闭下游连接

转载 作者:可可西里 更新时间:2023-11-01 02:55:11 25 4
gpt4 key购买 nike

您好,我正在使用nginx 流模式来代理tcp 连接。如果我在上游重启我的应用程序,这是否可能,nginx 可以自动重新连接到上游而不会丢失下游的 tcp 连接?

最佳答案

我从这个 HiveMQ blog post comment 中找到了一些线索,希望对您有所帮助。我将它们复制如下:

Hi Sourav,

the load balancer doesn’t have any knowledge of MQTT; at least I don’t know any MQTT-aware load balancer.

HiveMQ replicates its state automatically in the cluster. If a cluster node goes down and the client reconnects (and is assigned to another broker instance by the LB), it can resume its complete session. The client does not need to resubscribe.

Hope this helps, Dominik from the HiveMQ Team

关于nginx 流模式重新连接到上游而不关闭下游连接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41322339/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com