Closed shish closed 2 years ago
It looks like every time the website sends an MQTT command, it opens a new connection and never closes it, so eventually we run out of sockets
Should be fixed by 6d552bc - since paho.Client()
automatically handles request queuing / threading / reconnecting, we could actually make one global Client object rather than opening and closing connections every time
api_queue
opens one MQTT connection in @app.listener('before_server_start')
, so this shouldn't happen
After working fine for a few days, this appeared in the website logs, and all calls to the website got a generic "internal error" response from nginx. Restarting the website container made it work again.