CN112698989B - Dual-computer mutual backup method and system of data acquisition system - Google Patents

Dual-computer mutual backup method and system of data acquisition system Download PDF

Info

Publication number
CN112698989B
CN112698989B CN202011631801.XA CN202011631801A CN112698989B CN 112698989 B CN112698989 B CN 112698989B CN 202011631801 A CN202011631801 A CN 202011631801A CN 112698989 B CN112698989 B CN 112698989B
Authority
CN
China
Prior art keywords
data
acquisition module
acquisition
mode
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011631801.XA
Other languages
Chinese (zh)
Other versions
CN112698989A (en
Inventor
王敬卿
欧志伟
魏鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Kehua Hengsheng Co Ltd
Zhangzhou Kehua Technology Co Ltd
Original Assignee
Xiamen Kehua Hengsheng Co Ltd
Zhangzhou Kehua Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiamen Kehua Hengsheng Co Ltd, Zhangzhou Kehua Technology Co Ltd filed Critical Xiamen Kehua Hengsheng Co Ltd
Priority to CN202011631801.XA priority Critical patent/CN112698989B/en
Publication of CN112698989A publication Critical patent/CN112698989A/en
Application granted granted Critical
Publication of CN112698989B publication Critical patent/CN112698989B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Hardware Redundancy (AREA)

Abstract

The invention is suitable for the technical field of monitoring, and provides a dual-computer mutual backup method and a system of a data acquisition system, wherein the method is applied to a first acquisition module of the data acquisition system and comprises the following steps: in a monitoring mode, monitoring target data of the second acquisition module; judging whether the second acquisition module is in an abnormal state according to the target data; if the second acquisition module is in an abnormal state, a first port switching signal is sent to the data management system, a first mode switching signal is sent to the second acquisition module, and the working mode is switched from a monitoring mode to an acquisition mode. The state of the second acquisition module is monitored in real time through the first acquisition module, and master-slave switching of the first acquisition module and the second acquisition module can be realized when the second acquisition module is abnormal, so that the problem that data of target operation equipment cannot be acquired after the failure of the acquisition equipment is solved, and safe and stable operation of a data center is ensured.

Description

Dual-computer mutual backup method and system of data acquisition system
Technical Field
The invention belongs to the technical field of monitoring, and particularly relates to a dual-computer mutual backup method and system of a data acquisition system.
Background
To maintain a safe, stable, orderly operating state in a large power system, many monitoring, control, detection, communication systems and devices must be relied upon, including each terminal metering device and each centralized acquisition device upstream thereof. The data acquisition system is used as a bridge for connecting an upper layer data management system with physical layer equipment, plays a role in the whole system, and once the data acquisition module fails, the data management system cannot acquire the operation data of the target operation equipment.
Disclosure of Invention
In view of the above, the embodiment of the invention provides a dual-computer mutual backup method and a dual-computer mutual backup system for a data acquisition system, so as to solve the problem that data acquisition cannot be realized after the data acquisition system fails in the prior art.
The first aspect of the embodiment of the invention provides a dual-computer mutual backup method of a data acquisition system, wherein the data acquisition system comprises a first acquisition module and a second acquisition module; the method is applied to the first acquisition module and comprises the following steps:
in a monitoring mode, monitoring target data of the second acquisition module;
judging whether the second acquisition module is in an abnormal state according to the target data;
if the second acquisition module is in an abnormal state, a first port switching signal is sent to a data management system, a first mode switching signal is sent to the second acquisition module, and a working mode is switched from a monitoring mode to an acquisition mode;
the first port switching signal is used for instructing the data management system to switch a data acquisition port from a communication port corresponding to the second acquisition module to a communication port corresponding to the first acquisition module; the first mode switching signal is used for indicating the second acquisition module to switch the working mode from the acquisition mode to the monitoring mode.
A second aspect of the embodiment of the present invention provides a dual-computer mutual backup method of a data acquisition system, where the data acquisition system includes a first acquisition module and a second acquisition module, and the method is applied to the second acquisition module and includes:
in an acquisition mode, acquiring data of target operation equipment as second acquisition data, and transmitting the second acquisition data to a data management system;
sending target data to the first acquisition module;
and if the first mode switching signal sent by the first acquisition module is monitored, switching the working mode from the acquisition mode to the monitoring mode.
A third aspect of an embodiment of the present invention provides a data acquisition system, including: the device comprises a first acquisition module and a second acquisition module;
the second acquisition module is used for acquiring data of the target operation equipment as second acquisition data in an acquisition mode and sending the second acquisition data to the data management system; and sending target data to the first acquisition module;
the first acquisition module is used for monitoring target data of the second acquisition module in a monitoring mode; judging whether the second acquisition module is in an abnormal state according to the target data; if the second acquisition module is in an abnormal state, a first port switching signal is sent to a data management system, a first mode switching signal is sent to the second acquisition module, and a working mode is switched from a monitoring mode to an acquisition mode; the first port switching signal is used for instructing the data management system to switch a data acquisition port from a communication port corresponding to the second acquisition module to a communication port corresponding to the first acquisition module;
the second acquisition module is further used for switching the working mode from the acquisition mode to the monitoring mode if the first mode switching signal sent by the first acquisition module is monitored.
Compared with the prior art, the embodiment of the invention has the beneficial effects that: in the embodiment, a first acquisition module of the data acquisition system monitors target data of a second acquisition module in a monitoring mode; judging whether the second acquisition module is in an abnormal state according to the target data; if the second acquisition module is in an abnormal state, a first port switching signal is sent to the data management system, a first mode switching signal is sent to the second acquisition module, and the working mode is switched from a monitoring mode to an acquisition mode. According to the method, the state of the second acquisition module is monitored in real time through the first acquisition module, so that master-slave switching of the first acquisition module and the second acquisition module can be realized when the second acquisition module is abnormal, the problem that data of target operation equipment cannot be acquired after the acquisition equipment fails is solved, and safe and stable operation of a data center is guaranteed.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a dual-machine standby method of a data acquisition system according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a data monitoring system according to an embodiment of the present invention;
FIG. 3 is another flow chart of a dual-computer standby method of the data acquisition system according to the embodiment of the invention;
fig. 4 is a schematic diagram of a terminal device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another data monitoring system according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to illustrate the technical scheme of the invention, the following description is made by specific examples.
As shown in fig. 1, fig. 1 shows a flow of a dual-computer mutual backup method of a data acquisition system provided in this embodiment, where the data acquisition system includes a second acquisition module and a first acquisition module; the execution main body of the method is a first acquisition module, and the method is described in detail as follows:
s101: in a monitoring mode, monitoring target data of the second acquisition module;
s102: judging whether the second acquisition module is in an abnormal state according to the target data;
s103: if the second acquisition module is in an abnormal state, a first port switching signal is sent to a data management system, a first mode switching signal is sent to the second acquisition module, and a working mode is switched from a monitoring mode to an acquisition mode;
the first port switching signal is used for instructing the data management system to switch a data acquisition port from a communication port corresponding to the second acquisition module to a communication port corresponding to the first acquisition module; the first mode switching signal is used for indicating the second acquisition module to switch the working mode from the acquisition mode to the monitoring mode.
In this embodiment, as shown in fig. 2, fig. 2 shows a structure of a data monitoring system, which includes: the system comprises a data management system 100, a data acquisition system 200 and a target running device 300, wherein the data acquisition system 200 comprises a first acquisition module 210 and a second acquisition module 220. The first collecting module 210 and the second collecting module 220 are in communication connection, the first collecting module 210 and the second collecting module 220 are also respectively connected with the data management system 100, and the first collecting module 210 and the second collecting module 220 are respectively connected with the corresponding target running device 300. Wherein the data management system 100 may include, but is not limited to, a data center infrastructure management device DCIM; the target operating device 300 may include, but is not limited to, a UPS (Uninterruptible Power System, uninterruptible power supply), an air conditioner, and a server.
In this embodiment, the hardware structures and software programs of the first acquisition module 210 and the second acquisition module 220 are identical, so that the same data transceiving function can be realized. When the first acquisition module executes a monitoring mode, the first acquisition module works as a slave acquisition module, and the second acquisition module operates in an acquisition mode as a master acquisition module; when the first acquisition module executes an acquisition mode, the first acquisition module is used as a master acquisition module, and the second acquisition module is used as a slave acquisition module to run in a monitoring mode, so that the dual-computer mutual backup of the data acquisition system can be realized through the mode of complementation of the modes of the first acquisition module and the second acquisition module.
In this embodiment, in the listening mode, the first acquisition module first sends a listening request to the second acquisition module, and receives target data returned by the second acquisition module based on the listening request. When it is determined that the second acquisition module 220 is abnormal according to the target data, the first acquisition module sends a first port switching signal to the data management system 100, and the data management system 100 converts the data acquisition port from the communication port corresponding to the second acquisition module to the communication port corresponding to the first acquisition module according to the first port switching signal. Optionally, if the data acquisition system 200 is in wireless communication connection with the data management system 100, the communication port corresponding to the first acquisition module is the communication address of the first acquisition module 210, and the communication port corresponding to the second acquisition module is the communication address of the second acquisition module 220. After completing the switching of the data collection ports, the data management system 100 sends a data request to the first collection module 210, and the first collection module collects the data of the target operation device 300 in the collection mode and sends the data of the target operation device 300 to the data management system 100 when the data request is obtained.
On the other hand, when the first acquisition module determines that the second acquisition module is abnormal, the first acquisition module also sends a first mode switching signal to the second acquisition module so as to enable the second acquisition module to switch from the acquisition mode to the monitoring mode.
As can be seen from the foregoing embodiments, in this embodiment, the first collecting module 210 monitors the target data of the second collecting module 220 in real time, so that the master-slave switching between the first collecting module and the second collecting module can be implemented when the second collecting module 220 is abnormal, thereby solving the problem that the second collecting module 220 cannot collect the data of the target running device 300 after failure, and ensuring safe and stable running of the data center.
In one embodiment, the target data includes operation data, and the specific implementation procedure of S102 in fig. 1 is as follows:
s201: calculating the health degree of the second acquisition module according to the operation data and a preset scoring rule;
s202: and if the health degree is smaller than a preset health threshold, judging that the second acquisition module is in an abnormal state.
In this embodiment, the operation data includes a CPU utilization, a memory utilization, and at least one alert message. The method comprises the following steps:
determining a CPU score, a memory score and an alarm score of the second acquisition module according to the CPU utilization rate, the memory utilization rate, the alarm information and a preset scoring rule of the second acquisition module, and carrying out weighted summation on the CPU score, the memory score and the alarm score to obtain the health degree of the second acquisition module.
Specifically, the preset scoring rules include a CPU scoring rule, a memory scoring rule, and an alarm scoring rule, where the CPU scoring rule is: determining the CPU score according to the corresponding relation between the CPU utilization rate and the CPU score, wherein the CPU score is a preset maximum value corresponding to the CPU when the CPU utilization rate is smaller than or equal to a preset CPU threshold value, and the higher the CPU utilization rate is, the lower the CPU score is when the CPU utilization rate is larger than the preset CPU threshold value. The memory scoring rule is: and determining the memory score according to the corresponding relation between the memory utilization rate and the memory score, wherein the memory score is a preset maximum value corresponding to the memory when the memory utilization rate is smaller than or equal to a preset memory threshold value, and the memory score is lower when the memory utilization rate is larger than the preset memory threshold value. The alarm scoring rule is as follows: and searching the corresponding grade scores according to the alarm grades of the alarm information, and summing the grade scores corresponding to the alarm information to obtain the alarm scores. Further, the grade scores of the alarm information are negative scores, and the higher the alarm grade is, the lower the grade score is.
As can be seen from the above embodiments, the present embodiment determines the operation state of the second acquisition module by the method of calculating the health degree, so that the second acquisition module can be switched to the first acquisition module to work in time when an abnormality occurs in the second acquisition module, thereby avoiding the problem of data acquisition gear interruption caused by switching to the first acquisition module after the second acquisition module has failed, and ensuring the continuity of data acquisition.
In one embodiment, the target data includes heartbeat data, and the specific implementation procedure of S102 includes:
s301: acquiring the interval between two adjacent heartbeat data;
s302: if the intervals with N time lengths larger than the preset time length threshold value are monitored in the first preset time, the second acquisition module is judged to be in an abnormal state, and N is more than or equal to 1.
In this embodiment, under normal conditions, the heartbeat data acquired by the first acquisition module is of a fixed periodic characteristic, and the interval between every two heartbeat data is basically kept constant. If the intervals with N time periods larger than the preset time period threshold value are monitored in the first preset time, the fact that the heartbeat fluctuation of the second acquisition module is large is indicated, and therefore the second acquisition module can be judged to be in an abnormal state.
Further, the implementation process of S102 may further include: if the heartbeat data is not acquired within the second preset time, the second acquisition module is judged to be in an abnormal state.
In one embodiment, before S102, the dual-machine mutual backup method of the data acquisition system further includes:
s401: acquiring operation data in the first acquisition module, and judging whether the first acquisition module is in an abnormal state or not according to the operation data in the first acquisition module;
s402: if the first acquisition module is not in an abnormal state, executing the step of judging whether the second acquisition module is in an abnormal state according to the target data;
s403: if the first acquisition module is in an abnormal state, stopping executing the monitoring mode, and sending fault prompt information of the first acquisition module to the target terminal.
Specifically, the operation data in the first acquisition module comprises CPU utilization rate, memory utilization rate and alarm information. The first acquisition module firstly needs to determine whether the first acquisition module is in a normal state before judging whether the second acquisition module is normal or not, and through the processes of S401-S403, the first acquisition module can judge the state of the first acquisition module, continues to execute S102 after judging that the first acquisition module is normal, stops a monitoring mode when judging that the first acquisition module is abnormal, and controls the first acquisition module to restart. The first acquisition module acquires the internal operation data of the first acquisition module again after restarting, if the first acquisition module is judged to be in an abnormal state according to the internal operation data, fault prompt information of the first acquisition module is sent to the target terminal, and after the user checks the fault prompt information through the target terminal, the first acquisition module can be maintained. And after the abnormality is eliminated, the first acquisition module continues to execute the monitoring mode.
In one embodiment, the target data includes second acquisition data and heartbeat data, and S102 in fig. 1 further includes:
s501: collecting data of target operation equipment, and taking the data of the target operation equipment as first collected data;
s502: acquiring the interval between two adjacent heartbeat data;
s503: if the second acquired data is different from the first acquired data corresponding to the same moment and N time periods longer than the intervals of the preset time period threshold value are monitored in the first preset time period, the second acquired module is judged to be in an abnormal state, and N is more than or equal to 1.
In this embodiment, the first acquisition module also acquires the data of the target operation device in real time in the listening mode, but the first acquisition module does not upload the data to the data management system after acquiring the data, but stores the data acquired in the current time period in the internal storage unit of the first acquisition module. Considering that the space of the storage unit in the first acquisition module is limited, and the data stored in the first acquisition module is only used for checking the second acquisition data, the first acquisition data acquired in the current time period is deleted after the first acquisition data acquired in the next time period is acquired by the internal storage unit, so that the continuous normal operation of the storage unit in the first acquisition module is ensured.
Based on the functions of the first acquisition module, if the first acquisition module already judges that the first acquisition module runs normally, the first acquisition data of the first acquisition module is used as a reference, and if the second acquisition data of the second acquisition module is different from the first acquisition data corresponding to the same moment, the abnormal acquisition function of the second acquisition module is indicated. At this time, in order to ensure the accuracy of the judgment, the first acquisition module can judge whether the second acquisition module is normal or not according to the result of the acquired data correction and the fluctuation condition of the heartbeat data.
Further, in order to ensure the accuracy of the judgment, the abnormality judgment process of the first acquisition module may further be: and judging the state of the second acquisition module according to any two or three of acquisition data proofreading, fluctuation judgment of heartbeat data of the second acquisition module and health judgment.
In one embodiment, the dual-computer mutual backup method of the data acquisition system further comprises:
s601: in a monitoring mode, acquiring data of target operation equipment as first acquisition data, and storing the first acquisition data acquired in a current time period;
s602: after entering the acquisition mode, if an interrupt data request signal sent by the data management system is monitored, according to the data interrupt time carried in the interrupt data request signal, sending first acquired data after the data interrupt time to the data management system.
In this embodiment, the duration of the current time period may be set to be the total time of N data acquisition periods, where the data interruption time is carried in the interruption data request signal, and the data interruption time is the time of the data of the target operation device acquired by the data management system last time.
Specifically, since master-slave exchange of the acquisition modules can cause that the data management system cannot receive the acquired data in a period of time, the first acquisition module can send the data acquired in a period of time after the second acquisition module stops sending the data to the data management system after receiving the data interruption request signal by storing the first acquired data in a current period of time, so that the integrity of the received data of the data management system is ensured not to be lost.
Further, after the first acquisition module enters the acquisition mode, the continuous data storage of the storage unit is stopped.
In one embodiment, if the second acquisition module is in an abnormal state, the first acquisition module generates and transmits a fault prompt message of the second acquisition module to the target terminal.
In this embodiment, the target terminal may be a data management system, or may be a terminal device of an operation and maintenance person.
In one embodiment, as shown in fig. 3, fig. 3 shows a flow of implementing a dual-machine mutual backup method of the data acquisition system provided in this embodiment, where the data acquisition system includes a first acquisition module and a second acquisition module, and the method is applied to the second acquisition module, and includes:
s701: in an acquisition mode, acquiring data of target operation equipment as second acquisition data, and transmitting the second acquisition data to a data management system;
s702: sending target data to the first acquisition module;
s703: and if the first mode switching signal sent by the first acquisition module is monitored, switching the working mode from the acquisition mode to the monitoring mode.
Specifically, the implementation flow of S703 specifically includes:
if a first mode switching signal sent by the first acquisition module is monitored, stopping executing the acquisition mode;
and if the fault removal signal is detected, starting to execute the monitoring mode.
In this embodiment, after stopping executing the acquisition mode, the second acquisition module may restart first, monitor its own operation data after restarting, determine whether to resume normal according to the internal operation data, and if it is determined that its own is resume normal, generate a fault removal signal, and start executing the monitoring mode; if the failure is not recovered, the fault prompt information of the second acquisition module is sent to the target terminal, and the user repairs the second acquisition module according to the fault prompt information sent by the second acquisition module or the fault prompt information of the second acquisition module sent by the first acquisition module, and inputs a fault removal signal after the second acquisition module is repaired.
In this embodiment, in order to avoid that the second acquisition module is directly paralyzed and cannot send a fault prompt signal, the first acquisition module may send the fault prompt information to the target terminal when the second acquisition module is in an abnormal state. When the first acquisition module and the second acquisition module both have the function of sending fault prompt information when the second acquisition module fails, if the second acquisition module can recover to be normal through self-starting, the second acquisition module needs to send fault cancellation information to the target terminal so that a user can know the current state of the second acquisition module.
In this embodiment, in addition to executing the function of the above-mentioned monitoring mode, the second acquisition module may compete with the first acquisition module for the role of the main acquisition module according to the operation data inside the second acquisition module and the operation data sent by the first acquisition module.
Specifically, the second acquisition module acquires operation data inside the second acquisition module and operation data sent by the first acquisition module; calculating a second health degree according to the operation data in the second acquisition module, and calculating a first health degree according to the operation data of the first acquisition module; subtracting the first health degree from the second health degree to obtain a health degree difference value; if the health degree is greater than the preset health difference value, a second port switching signal is sent to the data management system, a second mode switching signal is sent to the first acquisition module, and the working mode is switched from a monitoring mode to an acquisition mode; the second port switching signal is used for instructing the data management system to switch a data acquisition port from a communication port corresponding to the first acquisition module to a communication port corresponding to the second acquisition module; the second mode switching signal is used for indicating the first acquisition module to switch the working mode from the acquisition mode to the monitoring mode.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present invention.
The embodiment of the invention provides a data acquisition system, which comprises: the device comprises a first acquisition module and a second acquisition module;
the first acquisition module is used for monitoring target data of the second acquisition module in a monitoring mode; judging whether the second acquisition module is in an abnormal state according to the target data; if the second acquisition module is in an abnormal state, a first port switching signal is sent to a data management system, a first mode switching signal is sent to the second acquisition module, and a working mode is switched from a monitoring mode to an acquisition mode; the first port switching signal is used for instructing the data management system to switch a data acquisition port from a communication port corresponding to the second acquisition module to a communication port corresponding to the first acquisition module;
the second acquisition module is used for acquiring data of the target operation equipment as second acquisition data in an acquisition mode and sending the second acquisition data to the data management system; and if the first mode switching signal sent by the first acquisition module is monitored, switching the working mode from the acquisition mode to the monitoring mode.
In one embodiment, as shown in fig. 5, fig. 5 illustrates a structure of another data monitoring system according to an embodiment of the present invention, which includes:
a data management system 100, a data acquisition system 200, and a target operation device 300;
the data acquisition system 200 includes a first acquisition module 210 and a second acquisition module 220; the data management system 100 includes a first device 110 and a second device 120.
The first acquisition module 210 is configured to monitor the target data of the second acquisition module 220 in a monitoring mode; judging whether the second acquisition module 220 is in an abnormal state according to the target data; if the second acquisition module 220 is in an abnormal state, sending a first port switching signal to the first device 110 and the second device 120 of the data management system 100, sending a first mode switching signal to the second acquisition module 220, and switching the working mode from the monitoring mode to the acquisition mode;
the second collection module 220 is configured to obtain, in a collection mode, data of the target operation device 300 as second collection data, and send the second collection data to the first device 110 and the second device 120 of the data management system 100; if the first mode switching signal sent by the first acquisition module 210 is monitored, switching the working mode from the acquisition mode to the monitoring mode;
the second device 120 is configured to obtain, in a working mode, data sent by the first acquisition module 210/the second acquisition module 220, and take the data sent by the first acquisition module 210/the second acquisition module 220 as third acquired data; processing the third acquired data by adopting a data processing program; and transmitting target data to the first device 110; when the first port switching signal is monitored, the data acquisition port is switched from the communication port corresponding to the second acquisition module 220 to the communication port corresponding to the first acquisition module 210;
the first device 110 is configured to monitor, in a monitor mode, specified data of the second device 120; judging whether the second device 120 is in an abnormal state according to the specified data; if the second device 120 is in an abnormal state, a third mode switching signal is sent to the second device 120, and the operation mode is switched from the monitoring mode to the working mode; when the first port switching signal is monitored, the data acquisition port is switched from the communication port corresponding to the second acquisition module 220 to the communication port corresponding to the first acquisition module 210;
the second device 120 is further configured to switch the operation mode from the working mode to the listening mode if the third mode switching signal sent by the first device 110 is detected.
Specifically, the first device 110 and the second device 120 implement master-slave mutual backup of the data management system 100, and the first acquisition module 210 and the second acquisition module 220 implement master-slave mutual backup of the data acquisition system 200, and since the first device 110 and the second device 120 both acquire acquired data, when the modes of the first acquisition module 210 and the second acquisition module 220 are switched, the first device 110 and the second device 120 only need to replace data acquisition ports at the same time. When the first acquisition module 210 and the second acquisition module 220 perform mode switching, the data acquisition ports of the first device 110 and the second device 120 need to be switched from the communication ports corresponding to the second acquisition module 220 to the communication ports corresponding to the first acquisition module 210.
In this embodiment, the specified data may include operation data and heartbeat data, and the first device 110 determines whether the second device 120 is in an abnormal state according to the operation data and/or the heartbeat data, and the determination process is similar to S201 to S202 and S301 to S302 in this embodiment.
As can be seen from the above embodiments, the data monitoring system provided in this embodiment can ensure the integrity of data in the data monitoring process and further improve the security of the data center by adopting the dual-computer mutual backup method in the data management system 100 and the data acquisition system 200.
Fig. 4 is a schematic diagram of a terminal device according to an embodiment of the present invention. As shown in fig. 4, the terminal device 4 of this embodiment includes: a processor 40, a memory 41 and a computer program 42 stored in the memory 41 and executable on the processor 40. The processor 40, when executing the computer program 42, implements the steps of the dual computer mutually standby method embodiment of each data acquisition system described above, such as steps 101 through 103 shown in fig. 1.
The computer program 42 may be divided into one or more modules/units which are stored in the memory 41 and executed by the processor 40 to complete the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions for describing the execution of the computer program 42 in the terminal device 4.
The terminal device 4 may be a computing device such as a desktop computer, a notebook computer, a palm computer, a cloud server, etc. The terminal device may include, but is not limited to, a processor 40, a memory 41. It will be appreciated by those skilled in the art that fig. 4 is merely an example of the terminal device 4 and does not constitute a limitation of the terminal device 4, and may include more or less components than illustrated, or may combine certain components, or different components, e.g., the terminal device may further include an input-output device, a network access device, a bus, etc.
The processor 40 may be a central processing unit (Central Processing Unit, CPU), other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 41 may be an internal storage unit of the terminal device 4, such as a hard disk or a memory of the terminal device 4. The memory 41 may be an external storage device of the terminal device 4, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the terminal device 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the terminal device 4. The memory 41 is used for storing the computer program as well as other programs and data required by the terminal device. The memory 41 may also be used for temporarily storing data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other manners. For example, the apparatus/terminal device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical function division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present invention may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the computer readable medium contains content that can be appropriately scaled according to the requirements of jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is subject to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention.

Claims (9)

1. The double-machine mutual standby method of the data acquisition system is characterized in that the data acquisition system comprises a first acquisition module and a second acquisition module; the method is applied to the first acquisition module and comprises the following steps:
in a monitoring mode, monitoring target data of the second acquisition module;
judging whether the second acquisition module is in an abnormal state according to the target data;
if the second acquisition module is in an abnormal state, a first port switching signal is sent to a data management system, a first mode switching signal is sent to the second acquisition module, and a working mode is switched from a monitoring mode to an acquisition mode;
the first port switching signal is used for instructing the data management system to switch a data acquisition port from a communication port corresponding to the second acquisition module to a communication port corresponding to the first acquisition module; the first mode switching signal is used for indicating the second acquisition module to switch the working mode from the acquisition mode to the monitoring mode;
the method further comprises the steps of:
in a monitoring mode, acquiring data of target operation equipment as first acquisition data, and storing the first acquisition data acquired in a current time period;
after entering the acquisition mode, if an interrupt data request signal sent by the data management system is monitored, according to the data interrupt time carried in the interrupt data request signal, sending first acquired data after the data interrupt time to the data management system.
2. The method of dual-machine mutual backup of a data acquisition system of claim 1, wherein the target data comprises operational data; the judging whether the second acquisition module is in an abnormal state according to the target data comprises the following steps:
calculating the health degree of the second acquisition module according to the operation data and a preset scoring rule;
and if the health degree is smaller than a preset health threshold, judging that the second acquisition module is in an abnormal state.
3. The method of dual-machine mutual backup of a data acquisition system of claim 1, wherein the target data comprises heartbeat data; the judging whether the second acquisition module is in an abnormal state according to the target data comprises the following steps:
acquiring the interval between two adjacent heartbeat data;
if the intervals with N time lengths larger than the preset time length threshold value are monitored in the first preset time, the second acquisition module is judged to be in an abnormal state, and N is more than or equal to 1.
4. The method of dual-standby of a data acquisition system according to claim 1, wherein before said determining whether the second acquisition module is in an abnormal state according to the target data, the method further comprises:
acquiring operation data in the first acquisition module, and judging whether the first acquisition module is in an abnormal state or not according to the operation data in the first acquisition module;
if the first acquisition module is not in an abnormal state, executing the step of judging whether the second acquisition module is in an abnormal state according to the target data;
if the first acquisition module is in an abnormal state, stopping executing the monitoring mode, and sending fault prompt information of the first acquisition module to the target terminal.
5. The method for dual-computer mutual backup of a data acquisition system according to claim 4, wherein the target data comprises second acquisition data and heartbeat data, and the second acquisition data is data of target operation equipment acquired by the second acquisition module;
the judging whether the second acquisition module is in an abnormal state according to the target data comprises the following steps:
collecting data of target operation equipment, and taking the data of the target operation equipment as first collected data;
acquiring the interval between two adjacent heartbeat data;
if the second acquired data is different from the first acquired data corresponding to the same moment and N time periods longer than the intervals of the preset time period threshold value are monitored in the first preset time period, the second acquired module is judged to be in an abnormal state, and N is more than or equal to 1.
6. The method for dual-standby of a data acquisition system according to claim 1, wherein after the second acquisition module is in an abnormal state, the method further comprises:
generating and sending fault prompt information of the second acquisition module to the target terminal.
7. The double-machine mutual standby method of the data acquisition system is characterized in that the data acquisition system comprises a first acquisition module and a second acquisition module, and the method is applied to the second acquisition module and comprises the following steps:
in an acquisition mode, acquiring data of target operation equipment as second acquisition data, and transmitting the second acquisition data to a data management system;
sending target data to the first acquisition module;
if a first mode switching signal sent by the first acquisition module is monitored, switching the working mode from the acquisition mode to a monitoring mode;
in a monitoring mode, acquiring data of target operation equipment as first acquisition data, and storing the first acquisition data acquired in a current time period;
after entering the acquisition mode, if an interrupt data request signal sent by the data management system is monitored, according to the data interrupt time carried in the interrupt data request signal, sending first acquired data after the data interrupt time to the data management system.
8. The method for dual-standby of a data acquisition system according to claim 7, wherein if the first mode switching signal sent by the first acquisition module is detected, switching the working mode from the acquisition mode to the monitoring mode comprises:
if a first mode switching signal sent by the first acquisition module is monitored, stopping executing the acquisition mode;
and if the fault removal signal is detected, starting to execute the monitoring mode.
9. A data acquisition system, comprising: the device comprises a first acquisition module and a second acquisition module;
the second acquisition module is used for acquiring data of the target operation equipment as second acquisition data in an acquisition mode and sending the second acquisition data to the data management system; and sending target data to the first acquisition module;
the first acquisition module is used for monitoring target data of the second acquisition module in a monitoring mode; judging whether the second acquisition module is in an abnormal state according to the target data; if the second acquisition module is in an abnormal state, a first port switching signal is sent to a data management system, a first mode switching signal is sent to the second acquisition module, and a working mode is switched from a monitoring mode to an acquisition mode; the first port switching signal is used for instructing the data management system to switch a data acquisition port from a communication port corresponding to the second acquisition module to a communication port corresponding to the first acquisition module;
the first acquisition module is also used for acquiring data of the target operation equipment as first acquisition data in a monitoring mode and storing the first acquisition data acquired in the current time period;
after entering an acquisition mode, if an interruption data request signal sent by the data management system is monitored, according to the data interruption time carried in the interruption data request signal, sending first acquired data after the data interruption time to the data management system;
the second acquisition module is further used for switching the working mode from the acquisition mode to the monitoring mode if the first mode switching signal sent by the first acquisition module is monitored.
CN202011631801.XA 2020-12-31 2020-12-31 Dual-computer mutual backup method and system of data acquisition system Active CN112698989B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011631801.XA CN112698989B (en) 2020-12-31 2020-12-31 Dual-computer mutual backup method and system of data acquisition system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011631801.XA CN112698989B (en) 2020-12-31 2020-12-31 Dual-computer mutual backup method and system of data acquisition system

Publications (2)

Publication Number Publication Date
CN112698989A CN112698989A (en) 2021-04-23
CN112698989B true CN112698989B (en) 2024-01-02

Family

ID=75513565

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011631801.XA Active CN112698989B (en) 2020-12-31 2020-12-31 Dual-computer mutual backup method and system of data acquisition system

Country Status (1)

Country Link
CN (1) CN112698989B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114020569A (en) * 2021-11-02 2022-02-08 广州城建职业学院 Big data real-time monitoring system
CN115065589A (en) * 2022-06-06 2022-09-16 广州汇智通信技术有限公司 Data traffic acquisition disaster recovery backup processing method, device, equipment, system and medium
CN117311136B (en) * 2023-11-28 2024-03-01 中国船舶集团有限公司第七一九研究所 Dual-computer operation method and device based on interconnection heartbeat monitoring mechanism

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1715956A (en) * 2004-06-30 2006-01-04 上海神开科技工程有限公司 Double collecting machine system and it double collecting method for double machine hot back-up
CN101388567A (en) * 2007-09-13 2009-03-18 上海宝信软件股份有限公司 Electric apparatus monitoring method and system
CN103257350A (en) * 2012-05-07 2013-08-21 中国交通通信信息中心 Double-computer duplex automatic switching method
CN104579774A (en) * 2014-12-31 2015-04-29 北京山石网科信息技术有限公司 Switching method and device for main control equipment
CN106655504A (en) * 2016-11-29 2017-05-10 国网河南省电力公司安阳供电公司 Safe and reliable data acquisition system
CN107872359A (en) * 2016-09-28 2018-04-03 华为数字技术(苏州)有限公司 Network health degree appraisal procedure, device and system
CN111490903A (en) * 2020-04-14 2020-08-04 广州汇智通信技术有限公司 Network data acquisition and processing method and device
CN111586082A (en) * 2019-02-18 2020-08-25 深圳市物联微电子有限公司 Data acquisition method and device, computer equipment and readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8504526B2 (en) * 2010-06-04 2013-08-06 Commvault Systems, Inc. Failover systems and methods for performing backup operations

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1715956A (en) * 2004-06-30 2006-01-04 上海神开科技工程有限公司 Double collecting machine system and it double collecting method for double machine hot back-up
CN101388567A (en) * 2007-09-13 2009-03-18 上海宝信软件股份有限公司 Electric apparatus monitoring method and system
CN103257350A (en) * 2012-05-07 2013-08-21 中国交通通信信息中心 Double-computer duplex automatic switching method
CN104579774A (en) * 2014-12-31 2015-04-29 北京山石网科信息技术有限公司 Switching method and device for main control equipment
CN107872359A (en) * 2016-09-28 2018-04-03 华为数字技术(苏州)有限公司 Network health degree appraisal procedure, device and system
CN106655504A (en) * 2016-11-29 2017-05-10 国网河南省电力公司安阳供电公司 Safe and reliable data acquisition system
CN111586082A (en) * 2019-02-18 2020-08-25 深圳市物联微电子有限公司 Data acquisition method and device, computer equipment and readable storage medium
CN111490903A (en) * 2020-04-14 2020-08-04 广州汇智通信技术有限公司 Network data acquisition and processing method and device

Also Published As

Publication number Publication date
CN112698989A (en) 2021-04-23

Similar Documents

Publication Publication Date Title
CN112698989B (en) Dual-computer mutual backup method and system of data acquisition system
CN112685236A (en) Dual-computer mutual backup method and system of data management system
CN113014634B (en) Cluster election processing method, device, equipment and storage medium
CN103425553B (en) Duplicated hot-standby system and method for detecting faults of duplicated hot-standby system
CN100394394C (en) Fault tolerant duplex computer system and its control method
US10725519B1 (en) Power control based on power controller configuration records
CN110119128B (en) Monitoring management system for laboratory electrical equipment
CN104050061A (en) Multi-main-control-panel redundant backup system based on PCIe bus
CN104333093B (en) Electric cabinet management method and device and battery management system
CN112885093A (en) Edge calculation device for monitoring highway traffic incident
CN117135343A (en) Fault analysis method, device, equipment and storage medium
WO2019129196A1 (en) Fault-tolerant control method, system and device for electric motor controller, and storage medium
CN117271234A (en) Fault diagnosis method and device, storage medium and electronic device
CN111221683A (en) Double-flash hot backup method, system, terminal and storage medium for data center switch
KR20130087357A (en) Control system and log delivery method
JP2021120827A (en) Control system and control method
CN110275120A (en) Power failure monitoring method and system applied to data center and terminal equipment
CN111083003A (en) Monitoring system and method, storage medium and processor
CN114301050B (en) Control method, terminal and storage medium of uninterruptible power supply rectifying module
CN116483613B (en) Processing method and device of fault memory bank, electronic equipment and storage medium
CN116401106A (en) Method, system and device for detecting power supply state of server
CN116208468A (en) Network fault dredging method, device and storage medium
CN117743008A (en) Multi-core processor fault diagnosis and exception handling method, main control board card and equipment
CN115793829A (en) Intelligent monitoring system, method and device for PSU module and readable storage medium
CN115550635A (en) Video shunting fault processing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant