We use RabbitMQ primarily as an MQTT broker.
In our production environment, we observe the unexpected behavior that
multiple MQTT clients may connect to the cluster using the same MQTT client id. This behavior was
not always the case, however we not sure when this started.
In our non-production environment, we observe the expected behavior that multiple MQTT clients may
not use the same client id.
Forensics
In non-prod, where the behavior is
correct we see log messages like the following when we try to open a second connection using the same client id:
2021-10-21 19:14:15.453 [warning] <0.22343.715> MQTT disconnecting client "144.212.3.4:46336 -> 10.98.8.54:1883" with duplicate id 'Dh4lOywmAxYNIQUBLAQJAhI'
In production, where the behavior is incorrect we DO NOT see log messages like this.
Basic detailsRabbitMQ Version: 3.8.5
Erlang Version: 23.3.1
Platform: Ubuntu 16.04.7 LTS on AWS EC2
Cluster of 3 nodes
Thank you,
Alain Kuchta