Skip to content
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

if the connection from proxy to broker is down, it will cause many client connections to be closed #675

Open
hujie6 opened this issue Jun 21, 2022 · 4 comments

Comments

@hujie6
Copy link
Contributor

hujie6 commented Jun 21, 2022

Is your enhancement request related to a problem? Please describe.
If one thousand devices are connected to the proxy node, and the connection pool size from proxy to broker is one. that means one thousand devices share one connection. if the connection from proxy to broker is closed due to some exceptions, it will cause 1000 devices to go offline at the same time. This may not be what the user expects to see.

Describe the solution you'd like

  1. If an exception occurs from the proxy to the broker, we may not close the shared connection, or do not close the device client connection.
@Technoboy-
Copy link
Contributor

In this case, you'd better set the pool size more than 1.

@hujie6
Copy link
Contributor Author

hujie6 commented Jun 21, 2022

In this case, you'd better set the pool size more than 1.

Yes, in a production environment, the pool size must be greater than 1. but one of the connections is closed,it will also cause a large number of devices disconenction or connection.

@mattisonchao
Copy link
Member

mattisonchao commented Jun 24, 2022

Hi, @hujie6
That is a great idea, but we should consider how to process continuous publishing messages. (In some high-rate conditions).

@Technoboy-
Copy link
Contributor

In this case, you'd better set the pool size more than 1.

Yes, in a production environment, the pool size must be greater than 1. but one of the connections is closed,it will also cause a large number of devices disconenction or connection.

yes, right, but reconnection will not have much impact on the business in the MQTT scenario.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants