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 think we need to be able to change the client id in MQTT configuration.
Use case:
Single MQTT server with 2 Gladys containers ( Prod / Preprod )
Problem:
For now only one instance can be connected to mosquitto ( Connection is closed if same client id is used )
Logs:
1609587948: New connection from 192.168.1.42 on port 1883.
1609587948: Client gladys-assistant-main-instance already connected, closing old connection.
1609587948: New client connected from 192.168.1.42 as gladys-assistant-main-instance (p2, c1, k60, u'gladysmain').
1609587953: New connection from 192.168.1.42 on port 1883.
1609587953: Client gladys-assistant-main-instance already connected, closing old connection.
1609587953: New client connected from 192.168.1.42 as gladys-assistant-main-instance (p2, c1, k60, u'gladysdev').
1609587958: New connection from 192.168.1.42 on port 1883.
The text was updated successfully, but these errors were encountered:
Client ID lenght must be limited in lenght ( MQTT Spec say 23 but majority of mqtt servers can handle more)
So I've used Math.random because uuid is too long
New client connected from 192.168.1.23 as gladys-main-instance-155267 (p2, c1, k60, u'gladysmain').
I think we need to be able to change the client id in MQTT configuration.
Use case:
Single MQTT server with 2 Gladys containers ( Prod / Preprod )
Problem:
For now only one instance can be connected to mosquitto ( Connection is closed if same client id is used )
Logs:
The text was updated successfully, but these errors were encountered: