Rail transit comprehensive monitoring method, device and equipment and storage medium
By configuring the main and backup service nodes in the rail transit system and using external heartbeat services to realize the main and backup node switching, the reliability and stability of the comprehensive rail transit monitoring system is solved to ensure that the system can still operate normally in the event of a failure.
Patent Information
- Application Number
- CN202510202896.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-24
- Publication Date
- 2025-07-11
AI Technical Summary
The existing comprehensive rail transit monitoring system has poor reliability and stability, especially in the event of network failure or server equipment abnormality, the station comprehensive monitoring system is unavailable.
The master-support mechanism is adopted to configure the main service node and the backup service node in the station, and the main and backup nodes are switched and monitored and alerted through external heartbeat services to ensure that the main node fails to switch to the backup node to maintain the normal operation of the system.
It improves the reliability and stability of the station's comprehensive monitoring system and ensures the safe and efficient operation of the rail transit system.
Smart Images

Figure CN120301759A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of rail transit monitoring, and particularly to a comprehensive monitoring method, device, equipment and storage medium for rail transit. Background Art
[0002] In today's society, the rail transit industry plays a crucial role. It not only provides a convenient means of transportation for the rapid development of cities, but is also an indispensable part of people's lives. However, with the increasing complexity and scale of the rail transit system, how to ensure its safe and efficient operation has become an important issue to be solved urgently. In this context, the alarm function in the comprehensive monitoring system is particularly important. An effective alarm mechanism is the core of the monitoring system. When an abnormality is detected in the equipment, an alarm signal can be immediately issued.
[0003] In the traditional comprehensive monitoring system for rail transit, generally, a comprehensive monitoring system is deployed at each station. When network failures, server equipment abnormalities and other disasters occur, the station comprehensive monitoring system becomes unavailable, resulting in poor reliability and stability of the station comprehensive monitoring system. Summary of the Invention
[0004] The present invention provides a comprehensive monitoring method, device, equipment and storage medium for rail transit, which is used to solve the defect of poor reliability and stability of the station comprehensive monitoring system in the prior art, and improves the reliability and stability of the station comprehensive monitoring system.
[0005] In a first aspect, the present invention provides a comprehensive monitoring method for rail transit, which is applied to the main service node in the comprehensive monitoring system for rail transit. The comprehensive monitoring system for rail transit includes the main service node, the standby service node, the lower-level equipment and the external heartbeat service. Monitoring systems are respectively deployed on each of the service nodes, and the external heartbeat service has been pre-configured in each of the service nodes; the method includes the following steps: Receiving the device status data of the lower-level equipment; the device status data of the lower-level equipment is sent by the lower-level equipment to the main service node and the standby service node simultaneously through the message passing system, and the device status data of the lower-level equipment is also used for the standby service node to read data; Monitoring and alarming the lower-level equipment according to the device status data of the lower-level equipment and the preset alarm rules.
[0006] According to a comprehensive monitoring method provided by the present invention, the monitoring and alarming the lower-level equipment according to the device status data of the lower-level equipment and the preset alarm rules includes: Judging whether the lower-level equipment meets the preset alarm rules according to the device status data of the lower-level equipment; When it is determined that the subordinate device meets the preset alarm rule, determine the alarm status of the subordinate device as abnormal; Generate the alarm information of the subordinate device and store the alarm information of the subordinate device in the database; When it is determined that the subordinate device does not meet the preset alarm rule, query in the database whether there is alarm information about the abnormal status of the subordinate device; When it is determined that there is alarm information about the abnormal status of the subordinate device in the database, determine the alarm status of the subordinate device as normal.
[0007] According to a comprehensive monitoring method for rail transit provided by the present invention, before receiving the device status data of the subordinate device, it further includes: Receive the heartbeat signal sent by the external heartbeat service at a configured time interval; the heartbeat signal includes a network request or a custom protocol message; the parameters of the external heartbeat service include the frequency of sending the heartbeat signal, the timeout period, and the number of retries, and the configured time interval is determined based on the frequency of sending the heartbeat signal; Send a first response signal to the external heartbeat service; the first response signal is used for the external heartbeat service to determine the status of each service node according to the first response signal and the second response signal; the second response signal is sent after the standby service node responds to the heartbeat signal sent by the external heartbeat service at the configured time interval; the status of each service node is used for the external heartbeat service to allocate the primary and standby nodes.
[0008] In a second aspect, the present invention further provides a comprehensive monitoring method for rail transit, characterized in that it is applied to an external heartbeat service in a rail transit comprehensive monitoring system. The rail transit comprehensive monitoring system includes a primary service node, a standby service node, subordinate devices, and the external heartbeat service. Monitoring systems are respectively deployed on each service node, and external heartbeat service parameters have been pre-configured in each service node. The parameters of the external heartbeat service include the frequency of sending the heartbeat signal and the timeout period; the method includes the following steps: Send heartbeat signals to the primary service node and the standby service node at a configured time interval through a message passing system; the configured time interval is determined based on the frequency of sending the heartbeat signal; Determine the active status of the primary service node according to the timeout period; the active primary service node is used to monitor and alarm the subordinate device according to the device status data of the subordinate device and the preset alarm rule.
[0009] A rail transit integrated monitoring method provided by the present invention, the parameters of the external heartbeat service further include the number of retries; determining the active state of the primary service node according to the timeout period includes: When a first response signal of the primary service node is received within the timeout period, determining the active state of the primary service node as active; When a first response signal of the primary service node is not received within the timeout period, resending a heartbeat signal to the primary service node according to the number of retries; When a third response signal to the resent heartbeat signal of the primary service node is not received within the timeout period and a second response signal of the standby service node is received within the timeout period, determining the active state of the primary service node as faulty.
[0010] A rail transit integrated monitoring method provided by the present invention, the method further includes: When the active state of the primary service node is faulty, triggering a service node failover operation; The triggering of the service node failover operation includes: Sending a failover signal to the standby service node; the failover signal is used for the standby service node to be promoted to a new primary service node in response to the failover signal and sending the state of the new primary service node to the subordinate device.
[0011] In a third aspect, the present invention further provides a rail transit integrated monitoring device, which is applied to the primary service node in a rail transit integrated monitoring system. The rail transit integrated monitoring system includes the primary service node, the standby service node, the subordinate device, and the external heartbeat service. A monitoring system is respectively deployed on each service node, and the external heartbeat service has been pre-configured in each service node; the device includes the following modules: A receiving module, configured to receive the device status data of the subordinate device; the device status data of the subordinate device is sent by the subordinate device to the primary service node and the standby service node simultaneously through a message passing system, and the device status data of the subordinate device is further used for the standby service node to read data; A monitoring and alarming module, configured to monitor and alarm the subordinate device according to the device status data of the subordinate device and a preset alarm rule.
[0012] Fourth aspect, the present invention further provides a comprehensive monitoring device for rail transit, which is applied to an external heartbeat service in a comprehensive monitoring system for rail transit. The comprehensive monitoring system for rail transit includes a primary service node, a standby service node, subordinate devices, and the external heartbeat service. Monitoring systems are respectively deployed on each service node, and external heartbeat service parameters have been pre-configured in each service node. The parameters of the external heartbeat service include the frequency of sending heartbeat signals and the timeout period. The device includes the following modules: A sending module, configured to send heartbeat signals to the primary service node and the standby service node at a configured time interval through a message passing system; the configured time interval is determined based on the frequency of sending the heartbeat signals. A determining module, configured to determine the active state of the primary service node according to the timeout period; the active primary service node is configured to monitor and alarm the subordinate devices according to the device status data of the subordinate devices and a preset alarm rule.
[0013] Fifth aspect, the present invention further provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the above-mentioned comprehensive monitoring method for rail transit is implemented.
[0014] Sixth aspect, the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned comprehensive monitoring method for rail transit is implemented.
[0015] Seventh aspect, the present invention further provides a computer program product, including a computer program. When the computer program is executed by a processor, the above-mentioned comprehensive monitoring method for rail transit is implemented.
[0016] The comprehensive monitoring method, device, equipment, and storage medium provided by the present invention. The method is applied to the primary service node in a comprehensive monitoring system for rail transit. The comprehensive monitoring system for rail transit includes a primary service node, a standby service node, subordinate devices, and an external heartbeat service. Monitoring systems are respectively deployed on each service node, and an external heartbeat service has been pre-configured in each service node. The method includes: First, receiving the device status data of the subordinate devices. Among them, the device status data of the subordinate devices is sent to the primary service node and the standby service node simultaneously by the subordinate devices through a message passing system, and the device status data of the subordinate devices is also used for the standby service node to read data. Then, monitoring and alarming the subordinate devices according to the device status data of the subordinate devices and a preset alarm rule.
[0017] In the present invention, the integrated monitoring system for rail transit includes a primary service node and a standby service node. The primary service node receives the device status data of the lower-level devices, and then monitors and alarms the lower-level devices according to the device status data of the lower-level devices and the preset alarm rules. The primary and standby nodes are switched through a heartbeat service, which can ensure that the integrated monitoring system for rail transit can promptly enable the standby node to maintain the normal operation of the station monitoring system in the event of a server outage, improving the reliability and stability of the station integrated monitoring system. Description of the Drawings
[0018] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0019] Figure 1 is one of the flow diagrams of the rail transit integrated monitoring method provided by the present invention.
[0020] Figure 2 is the structural diagram of the rail transit integrated monitoring system provided by the present invention.
[0021] Figure 3 is the second flow diagram of the rail transit integrated monitoring method provided by the present invention.
[0022] Figure 4 is the third flow diagram of the rail transit integrated monitoring method provided by the present invention.
[0023] Figure 5 is the first structural diagram of the rail transit integrated monitoring device provided by the present invention.
[0024] Figure 6 is the second structural diagram of the rail transit integrated monitoring device provided by the present invention.
[0025] Figure 7 is the structural diagram of the electronic device provided by the present invention. Detailed Embodiments
[0026] To make the objectives, technical solutions, and advantages of the present invention clearer, the following will clearly and completely describe the technical solutions in the present invention in conjunction with the drawings in the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present invention.
[0027] The terms "first", "second", etc. in the description and claims of this application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that such terms can be interchanged under appropriate circumstances, so that the embodiments of this application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first" and "second" are generally of the same type, and the number of objects is not limited. For example, the first node can be one or more. In addition, "and / or" in the description and claims means at least one of the connected objects, and the character " / " generally indicates an "or" relationship between the associated objects before and after.
[0028] The following combines Figures 1 - 7 to describe the integrated monitoring method, device, equipment and storage medium of the present invention.
[0029] Figure 1 is one of the flow schematic diagrams of the integrated monitoring method for rail transit provided by the present invention. This method is applied to the main service node in the integrated monitoring system for rail transit. The integrated monitoring system for rail transit includes a main service node, a standby service node, lower-level devices, and an external heartbeat service. The monitoring system is deployed on each service node, and the external heartbeat service has been pre-configured in each service node; as Figure 1 shown, this method includes the following: Step 101, receive the device status data of the lower-level device; the device status data of the lower-level device is sent by the lower-level device to the main service node and the standby service node simultaneously through the message passing system, and the device status data of the lower-level device is also used for the standby service node to read data; Specifically, it should be noted that in order to prevent the station integrated monitoring system from being unavailable due to network failures, server device anomalies, and other disasters, the present invention adopts a primary-standby mechanism, that is, a monitoring system with dual primary and standby nodes is configured at the station, aiming to quickly switch to the standby node monitoring system in the event of a failure of the primary node monitoring system to maintain the normal operation of the station system. Furthermore, the reliability and stability of the station integrated monitoring system are improved, and the safe operation of the rail transit system is guaranteed.
[0030] The execution subject of this embodiment is the main service node in the integrated monitoring system for rail transit, where Figure 2 is the structural schematic diagram of the integrated monitoring system for rail transit provided by the present invention, as Figure 2As shown in the figure, the integrated monitoring system for rail transit includes lower-level devices, an external heartbeat service, a primary service node, a standby service node, and a message passing system. The lower-level devices and the external heartbeat service send information to the primary service node and the standby service node through the message passing system. Among them, the lower-level devices of the rail transit system mainly include the following categories: 1. Signal system devices: including on-vehicle signal devices and trackside signal devices. The on-vehicle signal devices are responsible for automatic train protection (ATP), automatic train operation (ATO), etc., while the trackside signal devices involve signal lights, switch machines, train position detection devices, etc. These devices jointly complete the operation control of the train. 2. Communication system devices: vehicle-ground communication devices, such as wireless communication networks, are used for information exchange between the train and the control center to ensure the operation safety and efficiency of the train control system. 3. Traction power supply devices: devices that provide power for the train, including substations, catenaries or third rails, etc. 4. Automatic fare collection system (AFC): including automatic ticket vending machines, ticket gates at stations, etc., to provide convenient ticketing services for passengers. 5. Platform screen doors and vehicle air conditioners: platform screen doors are used to ensure the safety of passengers, while the vehicle air conditioning system provides a comfortable riding environment for passengers. 6. Switch turnout devices: devices used to control the train's entry and exit from the station or its turning, which are an important part of the station operation. 7. Power control system: devices that provide stable power for the signal system, communication system, etc. 8. Maintenance monitoring devices: devices used to monitor and maintain the rail transit system to ensure the stable operation of the system. These devices jointly constitute the foundation of the rail transit system and ensure the safe and efficient operation of the train.
[0031] Specifically, for the primary service node, during the business processing, it first receives the device status data of the lower-level devices. It should be noted that in order to ensure the consistency of the data source, the lower-level devices send the device status data of the lower-level devices to both the primary service node and the standby service node through the message passing system. That is, the data received by the primary service node and the standby service node is the same, but only the primary service node processes the device data, and the standby service node only reads the data without performing any data processing operations.
[0032] In the present invention, message sending and distribution are carried out through a message passing system, such as the message middleware Kafka. Kafka is used to build real-time data pipelines and streaming applications. It is a high-throughput, distributed, publish-subscribe based message queue system with the following characteristics: 1. High throughput and low latency: Kafka can process hundreds of thousands of messages per second, with a minimum latency of up to a few milliseconds. 2. Scalability: Kafka clusters support hot expansion. 3. Persistence and reliability: Messages are persisted to local disks and data backup is supported to prevent data loss. 4. Fault tolerance: Allows nodes in the cluster to fail. If the number of replicas is n, then n - 1 nodes are allowed to fail. 5. High concurrency: Supports thousands of clients to read and write simultaneously. 6. Supports real-time online processing and offline processing: Can be combined with real-time stream processing systems such as Storm or Spark Streaming, and batch processing systems such as Hadoop.
[0033] Step 102: Monitor and alarm the lower-level device according to the device status data of the lower-level device and the preset alarm rules.
[0034] Specifically, one of the most important business processes in the monitoring system of the service node is monitoring and alarming. After the main service node receives the device status of the lower-level device, it combines the preset alarm rules to implement monitoring and alarming processing.
[0035] Among them, the preset alarm rules can be customized according to requirements. For example, the alarm rules of the signal system: The signal system should have alarm functions such as train safety protection distance control, train positioning and speed measurement, train overspeed protection, train reverse and rollback protection, train integrity monitoring, and the opening and closing status supervision and protection of doors and platform screen doors. When a fault occurs in the signal system, it should be able to automatically switch to the standby system and give an alarm prompt; the alarm rules of the communication system: The communication system should monitor the operation status of the equipment in real time, alarm for abnormal equipment conditions, classify them, and check, confirm and process them in a timely manner. The communication system should also include regular maintenance items such as the bit error rate and optical power test of the standby channel of the transmission equipment.
[0036] The method provided in this embodiment is applied to the main service node in the integrated rail transit monitoring system. The integrated rail transit monitoring system includes a main service node, a standby service node, lower-level devices, and an external heartbeat service. Monitoring systems are respectively deployed on each service node, and the external heartbeat service has been pre-configured in each service node; the method includes: First, receive the device status data of the lower-level device. Among them, the device status data of the lower-level device is sent to the main service node and the standby service node simultaneously by the lower-level device through the message passing system, and the device status data of the lower-level device is also used for the standby service node to read data; then, monitor and alarm the lower-level device according to the device status data of the lower-level device and the preset alarm rules.
[0037] In the rail transit integrated monitoring system of the present invention, it includes a primary service node and a standby service node. The primary service node receives the device status data of the subordinate devices, and then monitors and alarms the subordinate devices according to the device status data of the subordinate devices and the preset alarm rules. The primary and standby nodes realize the switch through the heartbeat service, which can ensure that the rail transit integrated monitoring system can promptly enable the standby node to maintain the normal operation of the station monitoring system in the case of a server crash, improving the reliability and stability of the station integrated monitoring system.
[0038] According to a rail transit integrated monitoring method provided by the present invention, monitoring and alarming the subordinate devices according to the device status data of the subordinate devices and the preset alarm rules includes: Judging whether the subordinate device conforms to the preset alarm rules according to the device status data of the subordinate device; When it is determined that the subordinate device conforms to the preset alarm rules, determining the alarm status of the subordinate device as abnormal; Generating the alarm information of the subordinate device and storing the alarm information of the subordinate device in the database; When it is determined that the subordinate device does not conform to the preset alarm rules, querying whether there is alarm information of the abnormal status of the subordinate device in the database; When it is determined that there is alarm information of the abnormal status of the subordinate device in the database, determining the alarm status of the subordinate device as normal.
[0039] Specifically, in some embodiments, the implementation process of the primary service node monitoring and alarming the subordinate devices according to the device status data of the subordinate devices and the preset alarm rules in step 102 can be realized through the following steps, including: First, judge whether the subordinate device conforms to the preset alarm rules. Specifically, for example, compare the device status data of the subordinate device with the alarm threshold of the status data in the preset alarm rules. If the alarm threshold is reached, the alarm rules are satisfied. Another example is that the preset alarm rule is to alarm when the data within a specific range is satisfied, etc. The alarm rules are not limited in this embodiment.
[0040] Further, when it is determined that the subordinate device meets the preset alarm rules, the alarm status of the subordinate device is determined to be abnormal. Furthermore, the main service node generates the alarm information of the subordinate device and stores the alarm information of the subordinate device in the database. The alarm information usually includes the following content: 1. Device identification information of the subordinate device: including device name, location, type, etc., so as to quickly locate the faulty device. 2. Time tag: The specific time when the alarm occurs, which helps with event recording and analysis. 3. Alarm type: Clearly define the nature of the alarm, such as fault, abnormality, safety warning, etc. 4. Alarm level: Classify according to the severity of the alarm, such as emergency, high, medium, low, etc. 5. Alarm description: A detailed description of the alarm situation, including possible causes and impacts. 6. Handling suggestions: Provide handling measures or recommended operations for the alarm situation. 7. Linkage information: If there is a chain reaction or the need for other systems to cooperate in handling, it will include the alarm information of the linkage system. 8. Report information: May include a summary report of the alarm, which is convenient for management personnel to review and statistics. 9. User permissions: The reception and handling of alarm information may be related to the roles and permissions of the operators.
[0041] Further, when it is determined that the subordinate device does not meet the preset alarm rules, further query in the database whether there is alarm information about the abnormal state of the subordinate device based on the device status data, that is, determine whether the subordinate device has alarmed and has now returned to normal. When it is determined that there is alarm information about the abnormal state of the subordinate device in the database, the alarm status of the subordinate device is determined to be normal.
[0042] The method provided in this embodiment first determines whether the subordinate device meets the preset alarm rules according to the device status data of the subordinate device; then, when it is determined that the subordinate device meets the preset alarm rules, the alarm status of the subordinate device is determined to be abnormal, the alarm information of the subordinate device is generated, and the alarm information of the subordinate device is stored in the database; correspondingly, when it is determined that the subordinate device does not meet the preset alarm rules, query in the database whether there is alarm information about the abnormal state of the subordinate device; when it is determined that there is alarm information about the abnormal state of the subordinate device in the database, the alarm status of the subordinate device is determined to be normal. In the present invention, only the monitoring system of the main service node processes the operation situation of the station. Once an abnormality is found, the monitoring system can immediately issue an alarm or take preset countermeasures to ensure that the equipment is maintained and repaired in a timely manner, thereby reducing the impact of potential faults on the operation of the equipment.
[0043] According to an integrated monitoring method for rail transit provided by the present invention, before receiving the device status data of the subordinate device, it further includes: Receive heartbeat signals sent by an external heartbeat service at configured time intervals; the heartbeat signals include network requests or custom protocol messages; the parameters of the external heartbeat service include the frequency of sending heartbeat signals, the timeout period, and the number of retries, and the configured time interval is determined based on the frequency of sending heartbeat signals; Send a first response signal to the external heartbeat service; the first response signal is used for the external heartbeat service to determine the status of each service node based on the first response signal and the second response signal; the second response signal is sent after the standby service node responds to the heartbeat signal sent by the external heartbeat service at the configured time interval; the status of each service node is used for the external heartbeat service to allocate the primary and standby nodes.
[0044] Specifically, in some embodiments, before receiving the device status data of the lower-level device, it further includes receiving the heartbeat signal sent by the external heartbeat service and making a response, which is convenient for determining whether it is necessary to transfer the primary service node. Specifically, the process example is as follows: It should be noted that the external heartbeat service adopts a heartbeat mechanism, which generally refers to a mechanism in a distributed system where each node or service detects whether the other is alive and operating normally by sending periodic messages (heartbeat signals). This mechanism is crucial for maintaining the effectiveness of long connections, especially in complex or unstable network environments. The basic principle of the heartbeat mechanism is that if one party (client or server) does not receive the heartbeat packet from the other within the set time, it will consider that the other party may have gone offline or malfunctioned. At this time, the system will perform corresponding processing according to the preset strategy, such as attempting to reconnect, notifying the system administrator, or removing the service instance from the registration center. The implementation of the heartbeat mechanism usually includes the following key points: 1. Heartbeat interval: That is, the time interval for sending heartbeat packets, which needs to be set according to the specific application scenario and network conditions. 2. Timeout period: If the heartbeat packet is not received within the timeout period, it is considered that the connection has been disconnected. 3. Retry mechanism: In the case of not receiving the heartbeat packet, the system may attempt to resend the heartbeat packet several times and will make a decision to disconnect the connection only after reaching a certain number of times. 4. Heartbeat content: The heartbeat packet usually contains some basic information, such as the identifier of the sender, timestamp, etc., and sometimes also carries some status information or monitoring data. Correspondingly, the parameters of the external heartbeat service include the frequency of sending heartbeat signals, the timeout period, and the number of retries, and the configured time interval is determined based on the frequency of sending heartbeat signals.
[0045] The primary service node receives heartbeat signals sent by an external heartbeat service at a configured time interval. Among them, the heartbeat signals include network requests or custom protocol messages. After receiving the heartbeat signals (such as heartbeat packets), a first response signal is sent to the external heartbeat service according to the network conditions of the primary service node, etc. The first response signal is used for the external heartbeat service to determine the status of each service node based on the first response signal and the second response signal sent by the standby service node after responding to the heartbeat signals sent by the external heartbeat service at a configured time interval. For example, it is judged whether responses from each service node are received within the timeout period. If a service node does not respond, it is judged that the service node has failed. In addition, when both the primary and standby service nodes are operating normally, only the primary node processes the data to ensure that the system does not generate duplicate data.
[0046] The method provided in this embodiment uses an external heartbeat service to distinguish between the primary and standby nodes. After receiving the heartbeat signals, the primary and standby nodes respond according to their own network conditions. The external heartbeat service uses the heartbeat mechanism to allocate the primary and standby nodes, improving the reliability and stability of the integrated monitoring system. In addition, when both the standby service nodes are operating normally, only the primary node processes the data to ensure that the system does not generate duplicate data.
[0047] Figure 3 is the third flowchart of the rail transit integrated monitoring method provided by the present invention. As Figure 3 shown, the method includes: Data collection; specifically, the status data of the lower-level devices is collected.
[0048] The message middleware simultaneously sends the collected data to the integrated monitoring system (primary service node) and the integrated monitoring system (standby service node).
[0049] Judge whether it is the primary service node.
[0050] If it is judged to be the primary service node, it is judged whether the alarm condition is reached according to the alarm rules; if it is judged that the alarm condition is reached, an alarm message is generated; and the alarm status is stored in the station database; if it is judged that the alarm condition is not reached, the alarm is restored (i.e., the normal state); and the restored state is stored in the station database; If it is judged to be the standby service node, the standby service node only reads the data and does not process the data.
[0051] Figure 4This is the third flowchart diagram of the integrated monitoring method for rail transit provided by the present invention. This method is applied to the external heartbeat service in the integrated monitoring system for rail transit. The integrated monitoring system for rail transit includes a primary service node, a standby service node, subordinate devices, and an external heartbeat service. Monitoring systems are respectively deployed on each service node, and external heartbeat service parameters have been pre-configured in each service node. The parameters of the external heartbeat service include the frequency of sending heartbeat signals and the timeout period. The method includes the following steps: Step 401: Send heartbeat signals to the primary service node and the standby service node through the message passing system at a configured time interval. The configured time interval is determined based on the frequency of sending heartbeat signals. Specifically, the execution entity of this embodiment is the external heartbeat service in the integrated monitoring system for rail transit. Among them, as Figure 2 shown, the integrated monitoring system for rail transit includes subordinate devices, an external heartbeat service, a primary service node, a standby service node, and a message passing system. External heartbeat service parameters have been pre-configured in each service node. The subordinate devices and the external heartbeat service send information to the primary service node and the standby service node through the message passing system.
[0052] The present invention adopts a primary-standby mechanism, that is, a monitoring system with dual primary and standby nodes is configured at the station, aiming to quickly switch to the standby node monitoring system in case of a failure of the primary node monitoring system to maintain the normal operation of the station system. Furthermore, the reliability and stability of the station integrated monitoring system are improved, and the safe operation of the rail transit system is guaranteed. The allocation of the primary and standby nodes is performed by the external heartbeat service.
[0053] First, send heartbeat signals to the primary service node and the standby service node through the message passing system at a configured time interval. The heartbeat packet is used to detect the active state of the service node. Among them, the configured time interval is determined based on the frequency of sending heartbeat signals.
[0054] Step 402: Determine the active state of the primary service node according to the timeout period. The active primary service node is used to monitor and alarm the subordinate devices according to the device status data of the subordinate devices and the preset alarm rules.
[0055] Specifically, determine the active state of the primary service node according to the timeout period. For example, if a response signal from the primary service node is received within the timeout period, it is determined that the primary service node is in an active state. The active primary service node is used to monitor and alarm the subordinate devices according to the device status data of the subordinate devices and the preset alarm rules, that is, to implement data monitoring, alarm, etc. At this time, only the integrated monitoring system of the primary service node processes the operation situation of the station, while the standby service node does not process.
[0056] The method provided in this embodiment is applied to the external heartbeat service in the integrated monitoring system of rail transit. The integrated monitoring system of rail transit includes a main service node, a backup service node, a lower device and an external heartbeat service. A monitoring system is deployed on each service node respectively. External heartbeat service parameters are pre-configured in each service node. The parameters of the external heartbeat service include the frequency and timeout period of sending heartbeat signals. The method includes: first, sending a heartbeat signal to the main service node and the backup service node at a configured time interval through a message transmission system, wherein the configured time interval is determined based on the frequency of sending the heartbeat signal, and then determining the active state of the main service node according to the timeout period; the main service node in the active state is used to monitor and alarm the lower device according to the device status data of the lower device and the preset alarm rules.
[0057] In the present invention, an external heartbeat service is used to allocate the main node integrated monitoring system and the backup node integrated monitoring system. Only the main node integrated monitoring system processes the station operation status, while the backup node does not process it, ensuring that the system does not generate duplicate data and can ensure the reliability and stability of the integrated monitoring system.
[0058] According to a rail transit integrated monitoring method provided by the present invention, the parameters of the external heartbeat service also include the number of retries; determining the active state of the main service node according to the timeout time includes: When a first response signal from the primary service node is received within a timeout period, determining the active state of the primary service node as active; If the first response signal from the primary service node is not received within the timeout period, the heartbeat signal is resent to the primary service node according to the number of retries; If the third response signal of the active service node to the retransmitted heartbeat signal is not received within the timeout period, and if the second response signal of the standby service node is received within the timeout period, the active state of the active service node is determined to be faulty.
[0059] Specifically, in some embodiments, step 402 of determining the active state of the primary service node may be implemented by the following steps, including: First, if the first response signal from the primary service node is received within the timeout period, the active state of the primary service node is determined to be active. The heartbeat service sends a heartbeat signal and waits for a response from the service node. If the service node responds to the heartbeat signal within the predetermined timeout period, the node is considered active. If the primary node responds to the heartbeat signal within the timeout period, the heartbeat service will continue to monitor without triggering any failover action. Correspondingly, in the case where the first response signal from the primary service node is not received within the timeout period, the heartbeat signal is re-sent to the primary service node according to the number of retries. The parameters of the external heartbeat service further include the number of retries. In the case where the third response signal to the re-sent heartbeat signal from the primary service node is not received within the timeout period, and in the case where the second response signal from the standby service node is received within the timeout period, the active status of the primary service node is determined to be faulty. That is, if the primary service node does not respond within the timeout period, the external heartbeat service will retry a certain number of times according to the configuration. If there is still no response after the retries, the heartbeat service will consider that the primary service node may have failed. Once it is determined that the primary service node has failed, the heartbeat service will trigger a failover process to notify the standby service node or automatically promote the standby service node to be the new primary node.
[0060] With the method provided in this embodiment, through the heartbeat mechanism, the external heartbeat service can effectively monitor the status of the primary and standby service nodes and perform failover in a timely manner when the primary node fails, ensuring the high availability of the system.
[0061] According to a comprehensive monitoring method for rail transit provided by the present invention, the method further includes: Triggering a service node failover operation when the active status of the primary service node is faulty; Triggering a service node failover operation includes: Sending a failover signal to the standby service node; the failover signal is used for the standby service node to be promoted to the new primary service node in response to the failover signal and send the status of the new primary service node to the lower-level devices.
[0062] Specifically, in some embodiments, the method further includes performing a failover operation in a timely manner when the primary node fails. The process is exemplified as follows: Sending a failover signal to the standby service node, where the failover signal is used for the standby service node to be promoted to the new primary service node in response to the failover signal and send the status of the new primary service node to the lower-level devices. After receiving the failover signal, the standby node will start to take over the service requests and become the new primary service node. At the same time, the new primary node will update its status and broadcast its new primary node status to other system components or services.
[0063] With the method provided in this embodiment, when the heartbeat service detects that the current primary node of the comprehensive monitoring system has crashed, it will actively switch to the standby service node. At this time, the standby node will be upgraded to the new primary service node to monitor, control, etc. the operation of the station. That is, through the heartbeat mechanism, the status of the primary and standby service nodes is effectively monitored, and failover is performed in a timely manner when the primary node fails, ensuring the high availability of the system and improving the reliability and stability of the comprehensive monitoring.
[0064] The rail transit integrated monitoring device provided by the present invention will be described below. The rail transit integrated monitoring device described below can be correspondingly referred to the rail transit integrated monitoring method described above.
[0065] Figure 5 is one of the structural schematic diagrams of the rail transit integrated monitoring device provided by the present invention. This device is applied to the main service node in the rail transit integrated monitoring system. The rail transit integrated monitoring system includes the main service node, standby service node, subordinate devices, and external heartbeat service. Monitoring systems are respectively deployed on each service node, and the external heartbeat service has been pre-configured in each service node; the rail transit integrated monitoring device 500 includes the following modules: A receiving module 510, configured to receive the device status data of the subordinate devices; the device status data of the subordinate devices is sent by the subordinate devices to the main service node and the standby service node simultaneously through a message passing system, and the device status data of the subordinate devices is also used for the standby service node to read data. A monitoring and alarming module 520, configured to monitor and alarm the subordinate devices according to the device status data of the subordinate devices and a preset alarm rule.
[0066] The device provided in this embodiment is applied to the main service node in the rail transit integrated monitoring system. The rail transit integrated monitoring system includes a main service node, a standby service node, subordinate devices, and an external heartbeat service. Monitoring systems are respectively deployed on each service node, and the external heartbeat service has been pre-configured in each service node; this device includes a receiving module 510 and a monitoring and alarming module 520. The receiving module 510 receives the device status data of the subordinate devices. Among them, the device status data of the subordinate devices is sent by the subordinate devices to the main service node and the standby service node simultaneously through a message passing system, and the device status data of the subordinate devices is also used for the standby service node to read data; then, the monitoring and alarming module 520 monitors and alarms the subordinate devices according to the device status data of the subordinate devices and a preset alarm rule.
[0067] In the present invention, the rail transit integrated monitoring system includes a main service node and a standby service node. The main service node receives the device status data of the subordinate devices, and then monitors and alarms the subordinate devices according to the device status data of the subordinate devices and a preset alarm rule. The main and standby nodes are switched through the heartbeat service, which can ensure that the rail transit integrated monitoring system can promptly enable the standby node to maintain the normal operation of the station monitoring system in the case of a server crash, improving the reliability and stability of the station integrated monitoring system.
[0068] According to the rail transit integrated monitoring device 500 provided by the present invention, the monitoring and warning module 520 is specifically used for: Judging whether the subordinate device conforms to the preset alarm rule according to the device status data of the subordinate device; When it is determined that the subordinate device conforms to the preset alarm rule, determining the alarm status of the subordinate device as abnormal; Generating the alarm information of the subordinate device and storing the alarm information of the subordinate device in the database; When it is determined that the subordinate device does not conform to the preset alarm rule, querying in the database whether there is alarm information about the abnormal state of the subordinate device; When it is determined that there is alarm information about the abnormal state of the subordinate device in the database, determining the alarm status of the subordinate device as normal.
[0069] According to the rail transit integrated monitoring device 500 provided by the present invention, the device further includes a heartbeat response module; The heartbeat response module is used for: Receiving the heartbeat signal sent by the external heartbeat service at the configured time interval; the heartbeat signal includes a network request or a custom protocol message; the parameters of the external heartbeat service include the frequency of sending the heartbeat signal, the timeout time, and the number of retries, and the configured time interval is determined based on the frequency of sending the heartbeat signal; Sending a first response signal to the external heartbeat service; the first response signal is used for the external heartbeat service to determine the status of each service node according to the first response signal and the second response signal; the second response signal is sent after the standby service node responds to the heartbeat signal sent by the external heartbeat service at the configured time interval; the status of each service node is used for the external heartbeat service to allocate the primary and standby nodes.
[0070] Figure 6 This is the second structural schematic diagram of the rail transit integrated monitoring device provided by the present invention. This device is applied to the external heartbeat service in the rail transit integrated monitoring system. The rail transit integrated monitoring system includes a primary service node, a standby service node, subordinate devices, and the external heartbeat service. Monitoring systems are respectively deployed on each service node, and external heartbeat service parameters have been pre-configured in each service node. The parameters of the external heartbeat service include the frequency of sending the heartbeat signal and the timeout time; the rail transit integrated monitoring device 600 includes the following modules: The sending module 610 is used for sending heartbeat signals to the primary service node and the standby service node at the configured time interval through the message passing system; the configured time interval is determined based on the frequency of sending the heartbeat signal; A determination module 620, configured to determine the active state of the primary service node according to the timeout period; the active primary service node is configured to monitor and alarm the subordinate devices according to the device status data of the subordinate devices and a preset alarm rule.
[0071] The device provided in this embodiment is applied to an external heartbeat service in an integrated rail transit monitoring system. The integrated rail transit monitoring system includes a primary service node, a standby service node, subordinate devices, and an external heartbeat service. A monitoring system is respectively deployed on each service node, and external heartbeat service parameters have been pre-configured in each service node. The parameters of the external heartbeat service include the frequency of sending heartbeat signals and the timeout period; a sending module 610 sends heartbeat signals to the primary service node and the standby service node through a message passing system at a configured time interval, where the configured time interval is determined based on the frequency of sending heartbeat signals. Then, a determination module 620 determines the active state of the primary service node according to the timeout period; the active primary service node is configured to monitor and alarm the subordinate devices according to the device status data of the subordinate devices and a preset alarm rule.
[0072] In the present invention, an external heartbeat service is used to allocate the primary node integrated monitoring system and the standby node integrated monitoring system. Only the primary node integrated monitoring system processes the station operation conditions, while the standby node does not, ensuring that the system does not generate duplicate data and can ensure the reliability and stability of the integrated monitoring system.
[0073] According to the rail transit integrated monitoring device 600 provided by the present invention, the parameters of the external heartbeat service further include the number of retry times; the determination module 620 is specifically configured to: When a first response signal of the primary service node is received within the timeout period, determine the active state of the primary service node as active; When the first response signal of the primary service node is not received within the timeout period, re-send a heartbeat signal to the primary service node according to the number of retry times; When a third response signal to the re-sent heartbeat signal of the primary service node is not received within the timeout period, and a second response signal of the standby service node is received within the timeout period, determine the active state of the primary service node as faulty.
[0074] According to the rail transit integrated monitoring device 600 provided by the present invention, the device further includes: a failover module; The failover module is configured to: When the active state of the primary service node is faulty, trigger a service node failover operation; The triggering of the service node failover operation includes: Sending a failover signal to the standby service node; the failover signal is used for the standby service node to be promoted to a new primary service node in response to the failover signal and send the status of the new primary service node to the subordinate device.
[0075] Figure 7 Illustrates a schematic physical structure diagram of an electronic device, as Figure 7 shown. The electronic device may include: a processor 710, a communication interface 720, a memory 730, and a communication bus 740. Among them, the processor 710, the communication interface 720, and the memory 730 communicate with each other through the communication bus 740. The processor 710 can call the logical instructions in the memory 730 to execute the integrated rail transit monitoring method. This method is applied to the primary service node in the integrated rail transit monitoring system. The integrated rail transit monitoring system includes the primary service node, the standby service node, the subordinate device, and the external heartbeat service. A monitoring system is deployed on each of the service nodes, and the external heartbeat service has been pre-configured in each of the service nodes; the method includes the following steps: Receiving the device status data of the subordinate device; the device status data of the subordinate device is sent by the subordinate device to the primary service node and the standby service node simultaneously through the message passing system, and the device status data of the subordinate device is also used for the standby service node to read data; Monitoring and alarming the subordinate device according to the device status data of the subordinate device and the preset alarm rules.
[0076] Or, This method is applied to the external heartbeat service in the integrated rail transit monitoring system. The integrated rail transit monitoring system includes the primary service node, the standby service node, the subordinate device, and the external heartbeat service. A monitoring system is deployed on each of the service nodes, and the external heartbeat service parameters have been pre-configured in each of the service nodes. The parameters of the external heartbeat service include the frequency of sending the heartbeat signal and the timeout period; the method includes the following steps: Sending heartbeat signals to the primary service node and the standby service node through the message passing system at a configured time interval; the configured time interval is determined based on the frequency of sending the heartbeat signal; Determining the active status of the primary service node according to the timeout period; the active primary service node is used to monitor and alarm the subordinate device according to the device status data of the subordinate device and the preset alarm rules.
[0077] In addition, when the logical instructions in the memory 730 described above can be implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs that can store program codes.
[0078] On the other hand, the present invention also provides a computer program product. The computer program product includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the integrated rail transit monitoring method provided by the above-mentioned various methods. This method is applied to the main service node in the integrated rail transit monitoring system. The integrated rail transit monitoring system includes the main service node, the standby service node, the lower-level devices, and the external heartbeat service. Monitoring systems are respectively deployed on each of the service nodes, and the external heartbeat service has been pre-configured in each of the service nodes; the method includes the following steps: Receiving the device status data of the lower-level devices; the device status data of the lower-level devices is sent by the lower-level devices to both the main service node and the standby service node through the message passing system at the same time, and the device status data of the lower-level devices is also used for the standby service node to read data; Monitoring and alarming the lower-level devices according to the device status data of the lower-level devices and the preset alarm rules.
[0079] Or, This method is applied to the external heartbeat service in the integrated rail transit monitoring system. The integrated rail transit monitoring system includes the main service node, the standby service node, the lower-level devices, and the external heartbeat service. Monitoring systems are respectively deployed on each of the service nodes, and external heartbeat service parameters have been pre-configured in each of the service nodes. The parameters of the external heartbeat service include the frequency of sending heartbeat signals and the timeout period; the method includes the following steps: Sending heartbeat signals to the main service node and the standby service node through the message passing system at the configured time interval; the configured time interval is determined based on the frequency of sending heartbeat signals; Determine the active state of the master service node according to the timeout period; the active master service node is used to monitor and alarm the subordinate devices according to the device status data of the subordinate devices and preset alarm rules.
[0080] In another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it is configured to execute the rail transit integrated monitoring method provided by the above-mentioned various methods. This method is applied to the master service node in the rail transit integrated monitoring system. The rail transit integrated monitoring system includes the master service node, the standby service node, the subordinate devices, and the external heartbeat service. Monitoring systems are respectively deployed on each of the service nodes, and the external heartbeat service has been pre-configured in each of the service nodes; the method includes the following steps: Receive the device status data of the subordinate devices; the device status data of the subordinate devices is sent by the subordinate devices to both the master service node and the standby service node through the message passing system, and the device status data of the subordinate devices is also used for the standby service node to read data. Monitor and alarm the subordinate devices according to the device status data of the subordinate devices and preset alarm rules.
[0081] Or, This method is applied to the external heartbeat service in the rail transit integrated monitoring system. The rail transit integrated monitoring system includes the master service node, the standby service node, the subordinate devices, and the external heartbeat service. Monitoring systems are respectively deployed on each of the service nodes, and external heartbeat service parameters have been pre-configured in each of the service nodes. The parameters of the external heartbeat service include the frequency and timeout period of sending heartbeat signals; the method includes the following steps: Send heartbeat signals to the master service node and the standby service node through the message passing system at a configured time interval; the configured time interval is determined based on the frequency of sending heartbeat signals. Determine the active state of the master service node according to the timeout period; the active master service node is used to monitor and alarm the subordinate devices according to the device status data of the subordinate devices and preset alarm rules.
[0082] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. A person of ordinary skill in the art can understand and implement it without creative work.
[0083] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the essence of the above technical solution, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0084] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit them. Although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments or equivalently replace some of the technical features. These modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. An integrated monitoring method for rail transit, characterized in that, Applied to the main service node in the integrated monitoring system of rail transit. The integrated monitoring system of rail transit includes the main service node, standby service node, subordinate devices, and external heartbeat service. Monitoring systems are respectively deployed on each of the service nodes, and the external heartbeat service has been pre-configured in each of the service nodes; the method includes: Receiving the device status data of the subordinate devices; the device status data of the subordinate devices is sent by the subordinate devices to both the main service node and the standby service node simultaneously through a message passing system, and the device status data of the subordinate devices is also used for the standby service node to read data. Monitoring and alarming the subordinate devices according to the device status data of the subordinate devices and preset alarm rules.
2. The integrated monitoring method for rail transit according to claim 1, characterized in that The monitoring and alarming the subordinate devices according to the device status data of the subordinate devices and preset alarm rules includes: Judging whether the subordinate devices conform to the preset alarm rules according to the device status data of the subordinate devices; When it is determined that the subordinate devices conform to the preset alarm rules, determining the alarm status of the subordinate devices as abnormal; Generating the alarm information of the subordinate devices and storing the alarm information of the subordinate devices in the database; When it is determined that the subordinate devices do not conform to the preset alarm rules, querying in the database whether there is alarm information of the abnormal status of the subordinate devices; When it is determined that there is alarm information of the abnormal status of the subordinate devices in the database, determining the alarm status of the subordinate devices as normal.
3. The integrated monitoring method for rail transit according to claim 1, wherein Before receiving the device status data of the subordinate devices, it further includes: Receiving the heartbeat signal sent by the external heartbeat service at the configured time interval; the heartbeat signal includes a network request or a custom protocol message; the parameters of the external heartbeat service include the frequency of sending the heartbeat signal, timeout time, and number of retries, and the configured time interval is determined based on the frequency of sending the heartbeat signal; Sending a first response signal to the external heartbeat service; the first response signal is used for the external heartbeat service to determine the status of each service node according to the first response signal and the second response signal; the second response signal is sent after the standby service node responds to the heartbeat signal sent by the external heartbeat service at the configured time interval; the status of each service node is used for the external heartbeat service to allocate the primary and standby nodes.
4. An integrated monitoring method for rail transit, characterized in that, Applied to the external heartbeat service in the integrated monitoring system of rail transit. The integrated monitoring system of rail transit includes the main service node, standby service node, subordinate devices, and the external heartbeat service. Monitoring systems are respectively deployed on each of the service nodes, and the external heartbeat service parameters have been pre-configured in each of the service nodes. The parameters of the external heartbeat service include the frequency of sending the heartbeat signal and the timeout time; The method includes: Sending a heartbeat signal to the main service node and the standby service node through a message passing system at the configured time interval; the configured time interval is determined based on the frequency of sending the heartbeat signal; Determine the active state of the primary service node according to the timeout period; the active primary service node is used to monitor and alarm the subordinate devices according to the device status data of the subordinate devices and preset alarm rules.
5. The integrated monitoring method for rail transit according to claim 4, wherein The parameters of the external heartbeat service further include the number of retries; the determining the active state of the primary service node according to the timeout period includes: When a first response signal of the primary service node is received within the timeout period, determine the active state of the primary service node as active; When the first response signal of the primary service node is not received within the timeout period, resend the heartbeat signal to the primary service node according to the number of retries; When a third response signal to the resent heartbeat signal of the primary service node is not received within the timeout period, and when a second response signal of the standby service node is received within the timeout period, determine the active state of the primary service node as faulty.
6. The integrated monitoring method for rail transit according to claim 4 or 5, characterized in that The method further includes: When the active state of the primary service node is faulty, trigger a service node failover operation; The triggering the service node failover operation includes: Send a failover signal to the standby service node; the failover signal is used for the standby service node to be promoted to a new primary service node in response to the failover signal and send the state of the new primary service node to the subordinate devices.
7. An integrated monitoring device for rail transit, characterized in that, Applied to the primary service node in the rail transit integrated monitoring system, the rail transit integrated monitoring system includes the primary service node, the standby service node, the subordinate devices and the external heartbeat service. Monitoring systems are respectively deployed on each service node, and the external heartbeat service has been pre-configured in each service node; the device includes: A receiving module, configured to receive the device status data of the subordinate devices; the device status data of the subordinate devices is sent by the subordinate devices to the primary service node and the standby service node simultaneously through a message passing system, and the device status data of the subordinate devices is also used for the standby service node to read data; A monitoring and alarming module, configured to monitor and alarm the subordinate devices according to the device status data of the subordinate devices and preset alarm rules.
8. An integrated monitoring device for rail transit, characterized in that, Applied to the external heartbeat service in the rail transit integrated monitoring system, the rail transit integrated monitoring system includes the primary service node, the standby service node, the subordinate devices and the external heartbeat service. Monitoring systems are respectively deployed on each service node, and the parameters of the external heartbeat service have been pre-configured in each service node. The parameters of the external heartbeat service include the frequency of sending heartbeat signals and the timeout period; The device includes: A sending module, configured to send heartbeat signals to the primary service node and the standby service node through the message passing system at a configured time interval; the configured time interval is determined based on the frequency of sending heartbeat signals; A determination module, configured to determine the active state of the master service node according to the timeout period; the active master service node is configured to monitor and alarm the subordinate device according to the device status data of the subordinate device and a preset alarm rule.
9. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the computer program, the rail transit integrated monitoring method according to any one of claims 1 to 3, or the rail transit integrated monitoring method according to any one of claims 4 to 6 is implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, the rail transit integrated monitoring method according to any one of claims 1 to 3, or the rail transit integrated monitoring method according to any one of claims 4 to 6 is implemented.
11. A computer program product comprising a computer program, characterized in that, When the computer program is executed by the processor, the rail transit integrated monitoring method according to any one of claims 1 to 3, or the rail transit integrated monitoring method according to any one of claims 4 to 6 is implemented.