The main operation flow of my Node-RED program is as follows:
- Act as a client to connect to access control systems and elevators, and conduct command interaction with them.
- Act as a scheduling center to subscribe to door opening/closing and elevator commands from system P; after receiving the commands, send them to access control systems or elevators via TCP output, and then publish MQTT messages to notify system P.
- Subscribe to business-related MQTT messages, process the data, and then synchronize and update it to the MySQL database.
- Call HTTP interfaces to handle related business processes, which also include connecting to MySQL for database queries and other operations.
After the program runs for a period of time, problems such as unresponsiveness, freezing or delays will occur in the business processes related to access control systems and elevators. Restarting the Node-RED service will restore normal operation. I would like to ask if anyone has encountered similar problems, and how to locate the root cause and solve it? Thank you very much!