You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have created a template to launch mosquitto instances through autoscaling. When two instances are created, one of the instance getting disconnected automatically. I am assuming the reason to be issue with client_id. As client_id is same for both the instances, so while using more than instance with same client_id, one of the mosquitto broker is getting disconnected.
I have following queries: 1. How to configure client_id dynamically so that for each instance launched through autoscaling have a distinct client_id?
2. If reason for disconnecting is something else then please let me know.
The text was updated successfully, but these errors were encountered:
Not sure, if AWS IoT does allow connections without a clientid. If AWS IoT does require a clientid you would need to generate one in your autoscaling script (e.g generate a UUID).
I have made a template for mosquitto mqtt broker to connect to AWS IoT using the information provided on
https://aws.amazon.com/blogs/iot/how-to-bridge-mosquitto-mqtt-broker-to-aws-iot/
I have created a template to launch mosquitto instances through autoscaling. When two instances are created, one of the instance getting disconnected automatically. I am assuming the reason to be issue with client_id. As client_id is same for both the instances, so while using more than instance with same client_id, one of the mosquitto broker is getting disconnected.
I have following queries:
1. How to configure client_id dynamically so that for each instance launched through autoscaling have a distinct client_id?
2. If reason for disconnecting is something else then please let me know.
The text was updated successfully, but these errors were encountered: