CN111404653B - Monitoring service system, method and device - Google Patents

Monitoring service system, method and device Download PDF

Info

Publication number
CN111404653B
CN111404653B CN202010152606.2A CN202010152606A CN111404653B CN 111404653 B CN111404653 B CN 111404653B CN 202010152606 A CN202010152606 A CN 202010152606A CN 111404653 B CN111404653 B CN 111404653B
Authority
CN
China
Prior art keywords
service
server
task
station
control server
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
CN202010152606.2A
Other languages
Chinese (zh)
Other versions
CN111404653A (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.)
Beijing Helishi System Integration Co Ltd
Original Assignee
Beijing Helishi System Integration 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 Beijing Helishi System Integration Co ltd filed Critical Beijing Helishi System Integration Co ltd
Priority to CN202010152606.2A priority Critical patent/CN111404653B/en
Publication of CN111404653A publication Critical patent/CN111404653A/en
Application granted granted Critical
Publication of CN111404653B publication Critical patent/CN111404653B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/22Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability
    • 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/16Error detection or correction of the data by redundancy in hardware
    • G06F11/20Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
    • G06F11/202Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant
    • G06F11/2023Failover techniques
    • G06F11/2028Failover techniques eliminating a faulty processor or activating a spare
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Health & Medical Sciences (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Hardware Redundancy (AREA)

Abstract

The invention provides a monitoring service system, a monitoring service method and a monitoring service device, which are characterized in that tasks sent by a client are obtained; determining services required by the task from a second service group of a control server in communication connection with the monitoring node where the operation station is located, and splitting the task into at least one task unit corresponding to each determined required service; judging whether the control server is in a service state, if so, obtaining the determined services required by each item from the control server by the operation station so as to process the task unit; otherwise, the operation station obtains the determined services required by each item from the standby server to process the task unit, wherein the service state is a state that the control server can normally provide the services for the operation station; and combining the processing results of the task units and sending the processing results to the client. The control server can directly provide service for the operation station, and when the control server fails, the standby server can replace the control server to provide service, so that the reliability is high.

Description

Monitoring service system, method and device
Technical Field
The present invention relates to the field of monitoring, and in particular, to a monitoring service system, method, and apparatus.
Background
At present, the existing station integrated monitoring system is generally divided into a monitoring system of a station and a monitoring system of a monitoring control center, the monitoring system of the station monitors and controls equipment in the station through a real-time server in the station, the monitoring system of the monitoring control center monitors and controls equipment of all stations through a control server in the center, the control server of the monitoring control center and the real-time server of the station perform data interaction, so that the monitoring and control of the monitoring control center on the station are realized, and data interaction is performed between the station and the station through the monitoring control center.
According to the existing scheme, the existing station comprehensive monitoring system adopts a cascaded data deployment mode, the data flow is too long, a fault-tolerant mechanism is not provided, and the reliability is not high. That is, only one control server is provided in the monitoring control center, and the equipment in each station is connected with only one real-time server, so that if the control server or the real-time server is broken down, the monitoring system in the whole line or the station cannot normally operate, and the system reliability is not high.
Disclosure of Invention
In view of this, the present invention provides a monitoring service system, method and device, which can realize that a monitoring control center includes at least two control servers, each control server directly provides data service, calculation service, control service, and the like to a device at a station, and each station has a standby server.
In order to achieve the above object, the present invention provides the following technical solutions:
in a first aspect, a monitoring service system includes: control center and a plurality of control node, every above-mentioned control node all includes: operation station, standby server and front-end processing equipment, above-mentioned control center includes: at least two control servers;
any control server is in communication connection with an operation station and front-end processing equipment in at least one monitoring node, and any standby server is in communication connection with the operation station and the front-end processing equipment in the monitoring node where the standby server is located;
at least one operating station is in communication connection with a standby server in at least one other monitoring node, wherein the operating station and the at least one operating station in the at least one other monitoring node are both in communication connection with the same control server;
the standby server has a first service group;
the control server has a second service group including services that the backup servers in all the monitoring nodes to which the control server is connected have.
In a second aspect, a monitoring service method is applied to an operation station in the monitoring service system, and the method includes:
acquiring a task sent by a client;
determining services required for the task from a second service group of a control server which is in communication connection with the monitoring node where the operation station is located, and splitting the task into at least one task unit corresponding to each determined required service;
judging whether the control server is in a service state, if so, acquiring the determined services required by each item from the control server by the operation station so as to process the task unit; otherwise, the operation station obtains the determined services required by each item from the standby server to process the task unit, wherein the service state is a state in which the control server can normally provide services to the operation station;
and combining the processing results of the task units and sending the processing results to the client.
With reference to the second aspect, in some optional embodiments, the determining whether the control server is in a service state includes:
periodically reading the state mark of the control server;
if the times of successfully reading the state marks in the preset time length before the current time are more than the preset times and the state marks successfully read in the preset time length before the current time are all online marks, determining that the control server is in a service state;
otherwise, determining that the control server is not in a service state.
With reference to the second aspect, in some optional embodiments, the obtaining, by the operation station, the determined services required by the items from the standby server to process the task unit includes:
the operation station determines a standby server for providing the determined services from the standby servers according to a service chain table group pre-stored in the operation station; the service linked list group comprises a plurality of service linked lists, one service linked list corresponds to one service, and each service linked list at least comprises information of a control server providing the service corresponding to the service linked list and information of a standby server providing the service corresponding to the service linked list;
and obtaining the required services of the determined items from the determined standby server.
With reference to the second aspect, in some optional embodiments, the obtaining, from the determined standby server, the determined services required by the determined items includes:
and setting the determined standby server as a main server of the operation station, and obtaining the determined services required by each item from the main server by the operation station.
With reference to the second aspect, in some optional embodiments, after the determined standby server is set as the active server of the operation station, the method further includes:
and setting the determined standby server as a data reporting mode, and setting a control server in communication connection with the monitoring node where the operation station is located as a data sampling mode.
With reference to the second aspect, in some optional embodiments, the obtaining, by the operation station, the determined services required by the items from the control server to process the task unit includes:
and setting a control server in communication connection with the monitoring node where the operation station is located as an active server, wherein the operation station obtains the determined services required by each item from the active server.
With reference to the second aspect, in some optional embodiments, after setting, as the active server, a control server in communication connection with the monitoring node where the operation station is located, the method further includes:
and setting the control server to be in a data reporting mode, and setting the standby server to be in a data sampling mode.
In a third aspect, a monitoring service apparatus includes: the system comprises a task obtaining unit, a task splitting unit, a service state judging unit, a first service obtaining unit, a second service obtaining unit and a result returning unit;
the task obtaining unit is used for obtaining a task sent by a client;
the task splitting unit is configured to determine services required by the task from a second service group of a control server communicatively connected to the monitoring node where the operation station is located, and split the task into at least one task unit corresponding to each determined required service;
the service state determining unit is configured to determine whether the control server is in a service state, if so, trigger the first service obtaining unit, otherwise, trigger the second service obtaining unit, where the service state is a state in which the control server can normally provide a service to the operation station;
the first service obtaining unit is configured to obtain, by the operating station, the determined services required by the items from the control server to process the task unit;
the second service obtaining unit is used for the operating station to obtain the determined services required by each item from the standby server so as to process the task unit;
and the result returning unit is used for combining the processing results of the task units and sending the processing results to the client.
In a fourth aspect, a storage medium stores a program that implements any one of the monitoring service methods described above when executed by a processor.
The invention provides a monitoring service system, a monitoring service method and a monitoring service device, which are used for acquiring a task sent by a client; determining services required for the task from a second service group of a control server which is in communication connection with the monitoring node where the operation station is located, and splitting the task into at least one task unit corresponding to each determined required service; judging whether the control server is in a service state, if so, acquiring the determined services required by each item from the control server by the operation station so as to process the task unit; otherwise, the operation station obtains the determined services required by each item from the standby server to process the task unit, wherein the service state is a state in which the control server can normally provide services to the operation station; and combining the processing results of the task units and sending the processing results to the client. Therefore, the control server of the monitoring control center can directly provide service for the operation station in the monitoring node, when the control server of the monitoring control center fails to provide service for the operation station in the monitoring node, the standby server in the monitoring node can replace the control server to provide service for the operation station in the monitoring node, and the monitoring system of the monitoring node can still continue to operate to complete the monitoring task even if the control server fails. When one control server fails, the monitoring node connected with the failed server starts the standby server, and the monitoring node connected with the other control server continues to use the service provided by the control server, so that the condition that the whole monitoring system stops working is avoided. In summary, the monitoring service system, the monitoring service method and the monitoring service device provided by the invention have a certain fault-tolerant mechanism and higher system reliability.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is a schematic structural diagram of a monitoring service system provided by the present invention;
FIG. 2 is a flow chart illustrating a method for monitoring services provided by the present invention;
fig. 3 shows a schematic structural diagram of a monitoring service device provided by the present invention.
Detailed Description
The invention discloses a monitoring service system, a monitoring service method and a monitoring service device, and a person skilled in the art can appropriately improve technological parameters by referring to the contents in the text. It is expressly intended that all such similar substitutes and modifications which would be obvious to one skilled in the art are deemed to be included in the invention. While the methods and applications of this invention have been described in terms of preferred embodiments, it will be apparent to those of ordinary skill in the art that variations and modifications in the methods and applications described herein, as well as other suitable variations and combinations, may be made to implement and use the techniques of this invention without departing from the spirit and scope of the invention.
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
In the description of the embodiments of the present application, the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present embodiment, "a plurality" means two or more unless otherwise specified.
At present, the existing station integrated monitoring system is generally divided into a monitoring system of a station and a monitoring system of a monitoring control center, the monitoring system of the station monitors and controls equipment in the station through a real-time server in the station, the monitoring system of the monitoring control center monitors and controls equipment of all stations of the whole line through a control server, the control server of the monitoring control center and the real-time server of the station perform data interaction, so that the monitoring and control of the monitoring control center on the station are realized, and data interaction is performed between the station and the station through the monitoring control center. According to the existing scheme, the existing station comprehensive monitoring system adopts a cascaded data deployment mode, data of a monitoring control center is from a real-time server of a station, instructions of the monitoring control center can only be sent to equipment of the station through the real-time server of the station, when the monitoring control center server breaks down, the data of the whole line cannot be uploaded to the monitoring control center, and the monitoring control center loses control over the equipment of the whole line; if the real-time server of the station fails, the monitoring system of the station cannot operate, that is, the data flow of the existing station comprehensive monitoring system is too long, and the reliability is not high because of no fault-tolerant mechanism.
As shown in fig. 1, a monitoring service system provided by the present invention includes: control center and a plurality of control node, every above-mentioned control node all includes: operation station, standby server and front-end processing equipment, above-mentioned control center includes: at least two control servers;
any control server is in communication connection with an operation station and front-end processing equipment in at least one monitoring node, and any standby server is in communication connection with the operation station and the front-end processing equipment in the monitoring node where the standby server is located;
at least one operating station is in communication connection with a standby server in at least one other monitoring node, wherein the operating station and the at least one operating station in the at least one other monitoring node are both in communication connection with the same control server;
the standby server has a first service group;
the control server has a second service group including services that the backup servers in all the monitoring nodes to which the control server is connected have.
Optionally, the monitoring node may be a monitoring system of a station, that is, the monitoring system of a station may be regarded as a monitoring node, and an operation station, a standby server, a front-end processing device, and the like in the station may be regarded as an operation station, a standby server, a front-end processing device, and the like in the monitoring node corresponding to the station.
Optionally, the monitoring control center described herein may monitor and control data and devices of all stations, which is equivalent to a general monitoring center, and the monitoring control center may also be provided with a corresponding control center operating station, and may view the monitoring data through the control center operating station, or may follow a control instruction for devices of each station, which is not limited in this invention.
Optionally, the operation station in the station may be used to monitor the device in the station, and all data monitored by the station may be checked through the operation station. Meanwhile, the operator can issue some control instructions, such as instructions for opening or closing the equipment, through the operation station.
Optionally, the standby server in the station may have a capability of providing all services required by the monitoring system of the station, and may also have historical data of all data points monitored by the station, and when the control server providing services to the station cannot provide services, the standby server in the station may be started, so that the monitoring system of the station can still continue to complete the monitoring task.
Optionally, the front-end processing device in the station may be connected to the external device, and is configured to collect data of the external device or control the external device.
It should be understood that the monitoring system of the station in the existing station integrated monitoring system is connected with the monitoring system of the monitoring control center through the server, resulting in a long data flow. Therefore, the control server of the monitoring control center can be connected with the operation station of the station and the front-end processing equipment, the control server directly provides services for the operation station and the front-end processing equipment, and data of the operation station and the front-end processing equipment can also be directly uploaded to the control server, so that the data flow can be shortened, and the system is more flat.
It should be understood that, since an actual station integrated monitoring system may cover a plurality of stations, each station has a large number of devices to provide services for the server, if a monitoring control center uses one control server to provide services for the devices of all stations, the operation burden of the control server may be too large, and a fault may easily occur. Therefore, a plurality of control servers can be deployed in the monitoring control center, each control server is connected with part of stations and provides services for the equipment in the connected stations, and therefore the operation burden of the control servers can be reduced. Meanwhile, one control server is only connected with part of stations, when the control server fails and cannot provide service, only the connected part of stations can be influenced, monitoring systems of other stations cannot be influenced, and the reliability of the system can be improved to a certain extent. For example, a certain station integrated monitoring system may need to monitor data of four stations, so the station integrated monitoring system may have four monitoring nodes and one monitoring control center, the monitoring control center may be provided with two control servers, each control server may be connected to devices of the two monitoring nodes, that is, one monitoring server is responsible for providing services to devices of the two stations.
Optionally, a plurality of control center operation stations may be deployed in the monitoring control center, and each control center operation station may be connected to all the control servers of the monitoring control center, or to a part of the control servers, which is not limited in this invention. The operator of the monitoring control center can monitor the data of the whole line equipment or issue some control instructions through the control center operation station, which is not limited by the invention.
It should be understood that in practice, the monitoring system of each station may know which data points and control points the monitoring system of the station needs to monitor and control when being established, and some of the data points and control points may be in the station and some may be in other stations. Therefore, the monitoring nodes with the cross-station monitoring relation can be connected to the same control server, and when cross-station data of data points in other monitoring nodes needs to be acquired or cross-station control instructions are issued to control points in other monitoring nodes, scheduling can be carried out through the control server. For example, station a and station B in fig. 1 have the above-mentioned cross-station monitoring relationship, that is, station a may need to monitor data of some data points in station B, station a's operating station a1 and front-end processing device a1 may be connected to control server 1, station B's operating station B1 and front-end processing device B1 are also connected to control server 1, so that station a1 in station a can obtain data in station B through control server 1, and vice versa.
Optionally, because the cross-station monitoring relationship may exist between the stations, in order to avoid that the cross-station monitoring cannot be implemented when the control server connected to the station having the cross-station monitoring relationship fails, a connection may be established between the stations having the cross-station monitoring relationship, for example, the operator a1 of the station a may be connected to the standby server B1 of the station B, and when the control server 1 cannot provide a service, the operator a1 of the station a may directly obtain data that the station a needs to monitor from the standby server B1 of the station B.
It should be understood that the second service group may include: a plurality of types of services such as data service, calculation service, and control service, for example, the station a may need to obtain data of the data point 1 of the station B and control the control point 1 of the station B, and the second service group may include: the present invention is not limited to this, and the present invention includes a storage service for storing data of data point 1 of station B, a data providing service for providing data of data point 1 to station a, a related calculation service, and a control service for communicating station a to control point 1 of station B.
Optionally, the monitoring system of the station generally performs data acquisition and control on related devices, and the front-end processing device described herein is a general description, and may include a data acquisition device, an execution device, or an underlying controller, and the invention is not limited thereto. These front-end processing devices can perform the functions of data collection and control devices, for example, the front-end device a1 can collect the data of the data point 1, and then the control server 1 and the standby server a1 to which the corresponding front-end processing device a1 is connected can provide the corresponding service for storing and reading the data of the data point 1, that is, the second service group of the control server 1 and the first service group of the standby server a1 can include the service for storing the data of the data point 1 and the service for providing the data of the data point 1. Similarly, for the control command, if the operating station a1 of the station a needs to control the control point 2 in the station and the control command may need to be issued to the outside through the front-end processing device a1 of the station a, the control server 1 and the standby server a1 connected to the operating station a1 of the station a may provide the control logic service for the control point 2, that is, the second service group of the control server 1 and the first service group of the standby server a1 connected to the operating station a1 of the station a may include the control logic service of the control point 2, and this may also be the case for cross-station control.
As shown in fig. 2, a monitoring service method provided by the present invention is applied to an operation station in the monitoring service system, and the method includes:
s100, obtaining a task sent by a client;
s200, determining services required by the task from a second service group of a control server in communication connection with the monitoring node where the operation station is located, and splitting the task into at least one task unit corresponding to each determined required service;
s300, judging whether the control server is in a service state, if so, executing S400, otherwise, executing S500, wherein the service state is a state that the control server can normally provide service for the operation station;
s400, the operation station obtains the determined services required by each item from the control server to process the task unit;
s500, the operation station obtains the determined services required by each item from the standby server to process the task unit;
and S600, combining the processing results of the task units and sending the processing results to the client.
It should be understood that the monitoring service method provided by the present invention is applied to the operation station of each monitoring node of the above-mentioned monitoring service system, that is, the operation station of each station.
Alternatively, the client may be an operation station itself of each station, or may be a control server or a standby server connected to the operation station, which is not limited in the present invention. For example, the client of the operator station a1 of the station a may be itself, or may be the control server 1 communicatively connected thereto.
It should be understood that when the client is the operator station a1 itself of the station a, the operator may input some control commands or data reading commands or the like at the operator station a1 of the station a, and after the operator station a1 obtains the commands, the subsequent steps in the embodiment may be performed.
It should be understood that, when the client is the control server 1 connected to the operating station a1 of the station a, the task sent by the control service 1 may be a task issued by an operator or a pre-program through the control center operating station of the monitoring control center, a task sent by an operating station of another station connected to the control server, or a task sent by a pre-program built in the control server in advance, which is not limited in this embodiment of the invention.
Alternatively, the second service group of the control server may include all services of the standby servers of all monitoring nodes connected thereto. For example, the control server 1 may have connected to it a backup server a1 and a backup server B1, which may be located in different stations, i.e. in different monitoring nodes, and the second service group of the control server 1 may be the sum of the services provided by the backup server a1 and the services provided by the backup server B1, i.e. the control server 1 may provide all the services of both the backup server a1 and the backup server B1.
It should be understood that the second service group of each control server may be the same or different, since the backup server to which each control server is connected may be different, and accordingly, the services included in the second service group may also be different, which is not limited by the present invention.
Optionally, the operation station in the monitoring node connected to the control server may store the second service group in a local storage in a form of a list, so that after the operation station in the monitoring node obtains a task, the obtained task may be split into different task units, that is, different subtasks, according to the list of the second service group stored in the local storage in advance, and one task unit may correspond to a service included in one second service group. The task unit may be device-based, for example, the task completed by the front-end processing device a1 may be regarded as the task unit a1, and when the obtained task includes a task that can be completed by the front-end processing device a1, the task may be split to include the task unit a 1.
It should be understood that the role of task splitting is to make the control server know to which devices the obtained task should be handed to for completion, so as to facilitate subsequent distribution of task units to the respective devices for completion.
Optionally, the relationship between these task units may be discrete, that is, the execution order of these task units may not have a precedence relationship. Of course, the relationship between these task units may be continuous, that is, there is a sequential execution order between the task units, and for such a sequential task unit, the task units may be distributed to different devices for execution in a time-sharing manner according to the sequential relationship between the task units. For example, the task unit a1 is first sent to the front-end processing device a1, and after receiving the result of executing the task unit a1 fed back by the front-end processing device a1, the task unit a2 is sent to other devices, such as the front-end processing device B1, and so on. Of course, the task units with the precedence order may also be distributed to the corresponding devices at the same time, and after the processing results corresponding to each task unit are obtained, the processing results are merged according to the precedence order of the task units and fed back to the client, which is not limited in the present invention.
Optionally, the service information of the second service group may also be stored in other forms, so that the operation station in the monitoring node may split the task according to the service information of the second service, which is not limited in the present invention.
Alternatively, the list of the second service group may be a list in which services included in the second service group are divided and arranged according to stations and specialties. For example, the first block of the list may be a service list of station a, and the first block of the list may be divided into different areas according to different functions, which is not limited by the present invention. Since the list is divided and arranged according to the station and the specialty, splitting the task according to the list of the second service group is also divided according to the station and the specialty, which is not limited by the present invention.
Optionally, the operation station obtains the determined services required by each item from the control server to process the task unit, where the operation station obtains all the determined services required by each item from the control server, and one service may correspond to one task unit, and the obtained service may process and complete the corresponding task unit. For example, the operator station a1 may obtain services that the control server 1 provides data for obtaining data point 1 and control point 1 to 0, obtain service that provides data for data point 1 may represent that the operator station a1 obtains data for data point 1 through the control server 1, and obtain control point 1 to 0 service may represent that the operator station a1 sets control point 1 to 0 through the control server 1, thereby processing a task unit that sets control point 1 to 0.
Optionally, the control server being in the service state may refer to a state where the control server itself has no fault and can provide a service normally, and a communication link between the control server and the connected operation station is normal and can communicate normally.
Optionally, the relationship between the results processed by each task unit may be discrete and has no precedence relationship, and at this time, the corresponding relationship between the processing result and the task unit may be retained, that is, the processing result indicates which task unit the processing result is, and then all the processing results are merged and fed back to the client. The relationship between the processing results of the task units may also be continuous, that is, the processing results have a sequence, and the processing results may be merged according to the execution sequence of each task unit corresponding to each processing result and fed back to the client.
Optionally, in some optional embodiments, the determining whether the control server is in a service state includes:
periodically reading the state mark of the control server;
if the times of successfully reading the state marks in the preset time length before the current time are more than the preset times and the state marks successfully read in the preset time length before the current time are all online marks, determining that the control server is in a service state;
otherwise, determining that the control server is not in a service state.
Optionally, whether the control server is in the service state or not may be determined periodically, that is, the state of the control server is continuously monitored, so that it can be found that the control server cannot provide the service in time, and a corresponding standby server is started in time to replace the control server, so as to continue providing the service for each monitoring node, thereby avoiding an interruption situation in the monitoring process.
Optionally, each control server may have a status flag, where the status flag may be a data bit, and the data bit may represent an online identifier when the data bit is "1" and represent an offline identifier when the data bit is "0", or the other way around, or other feasible flags may be used to distinguish the control servers in the online status and the offline status, which is not limited in this disclosure.
Optionally, the operating station connected to the control server may periodically read the status flag of the control server, and if the operating station successfully reads the status flag a certain number of times within a preset time period, it may be stated that the communication between the operating station and the control server is normal, and there is no fault of delay or communication interruption. If the read state marks are all online identifications, it can be shown that the control server has no fault and can normally provide service. In summary, the control server itself has no failure and the communication with the operation station is normal, i.e. the control server is considered to be in the service state.
Whether the communication is normal and the control server is normal are respectively judged, the condition that the control server cannot provide service can be timely and effectively found, so that the standby server can be started in time to provide service, and the method is reliable.
Optionally, in some optional embodiments, the obtaining, by the operation station, the determined services required by the items from the standby server to process the task unit includes:
the operation station determines a standby server for providing the determined services from the standby servers according to a service chain table group pre-stored in the operation station; the service linked list group comprises a plurality of service linked lists, one service linked list corresponds to one service, and each service linked list at least comprises information of a control server providing the service corresponding to the service linked list and information of a standby server providing the service corresponding to the service linked list;
and obtaining the required services of the determined items from the determined standby server.
It should be understood that the point that each monitoring node needs to monitor and control can know when the monitoring system of the corresponding station is built, that is, which data needs to be monitored at each station and which devices need to be controlled can be known in advance, so that the service that the tasks that need to monitor the data or the tasks that control the devices correspond to needs can be established as a service linked list group, the service linked list group can include a plurality of service linked lists, and one service linked list can correspond to one service, that is, one task unit.
Optionally, one service linked list may include information of a control server and information of a standby server that provide services corresponding to the linked list, and if there are multiple levels of standby servers, the information of the multiple levels of standby servers may also be stored. For example, the information of the control server may be at the beginning of the linked list, the information of the multi-stage standby servers may be behind the beginning of the linked list, and the information of the service may be at the end of the list in a stage-by-stage arrangement.
Optionally, when the control server cannot provide the service, the operation station may find the backup server where the service is located according to the service linked list corresponding to the required service and obtain the service, where the backup server may be a backup server of the monitoring node where the operation station is located, or a backup server of another monitoring node, which is not limited in the present invention.
The standby server providing the service can be quickly and accurately determined according to the service linked list, and the service linked list is pre-stored in the operation station of the monitoring node, is not affected by the failure of the control server, and is safe and reliable.
Optionally, in some optional embodiments, the obtaining of the determined services required by the determined items from the determined standby server includes:
and setting the determined standby server as a main server of the operation station, and obtaining the determined services required by each item from the main server by the operation station.
It will be appreciated that upon determining the backup server that provides the desired service, the backup server may be set as the primary server so that the operator station knows to obtain the service from the backup server.
Optionally, the manner of setting the standby server as the primary server may be to set the standby service as a data reporting mode as described below, and certainly, other manners may also be used to indicate that the standby server is set as the primary server and then set the standby server as the data reporting mode.
Optionally, after the standby server is set as the primary server, other servers having the service may be set as secondary servers. For example, according to different services, the standby server device a1 in the monitoring node where the operation station a1 is located may be set as the active server, and for example, according to the needs of other services, the standby servers of other monitoring nodes may be set as the active server of the operation station 1, for example, the standby server B1, so as to obtain corresponding services.
Optionally, in some optional embodiments, after setting the determined standby server as the active server of the operation station, the method further includes:
and setting the determined standby server as a data reporting mode, and setting a control server in communication connection with the monitoring node where the operation station is located as a data sampling mode.
Optionally, all the main servers of a certain operation station may be set to a data reporting mode, so as to ensure that the operation station can obtain the service provided by the main servers in real time; the secondary servers of the operation station except the primary server can also be set to be in a data sampling mode, that is, although the operation station does not obtain services from the secondary servers, part or all of the data of the secondary servers can be consistent with part or all of the data of the primary server. Namely, the data sampling mode can be a continuous data acquisition mode, so that when the original main server is switched to the secondary server and the original secondary server is switched to the main server, the new main server can provide corresponding data service, the data fault condition cannot occur, and the reliability is high.
Optionally, for the subscription-type data, the mode of the primary server is a data reporting mode, the primary server performs periodic sampling on the data and reports the changed data, the mode of the secondary server is a data acquisition mode, the secondary server only samples and does not report the data, and the present invention is not limited thereto.
Optionally, the mode switching of the server may be a setting mode, and subscription is not created again, so that there is no time difference for upper layer application, and a large amount of data interaction in the switching process is not caused, and the switching process is relatively short and relatively reliable.
Optionally, for data of the subscription class, the subscribed subscription item may be cached in the corresponding operation station in advance, and when the primary server is changed, the primary server registers again with the newly changed primary server, and subscribes the corresponding subscription item to obtain the corresponding subscription data, which is not limited in the present invention.
Optionally, in some optional embodiments, the obtaining, by the operation station, the determined services required by the items from the control server to process the task unit includes:
and setting a control server in communication connection with the monitoring node where the operation station is located as an active server, wherein the operation station obtains the determined services required by each item from the active server.
It should be understood that, setting the control server in communication connection with the monitoring node where the operation station is located as the active server, the operation station may obtain certain required services from the active server in two cases:
the first is to obtain a new task and split the task, and then judge that the control server is in a service state, and then directly obtain various required services from the control server.
The second is that the control server can not provide service before, the standby server in the monitoring node is set as the main server, the operation station obtains corresponding service from the corresponding standby server, during this period, the control server can be continuously monitored and reconnected, whether the control server is in service state or not is judged, if the control server recovers the service state, the control server can be set as the main server, and the operation station obtains various required services from the main server.
Optionally, in some optional embodiments, after setting, as the active server, a control server in communication connection with the monitoring node where the operation station is located, the method further includes:
and setting the control server to be in a data reporting mode, and setting the standby server to be in a data sampling mode.
It should be understood that the data reporting mode and the data reporting mode may be the same mode, and the data sampling mode may also be the same mode.
As shown in fig. 3, the monitoring service apparatus provided by the present invention includes: the task management system comprises a task obtaining unit 100, a task splitting unit 200, a service state judging unit 300, a first service obtaining unit 400, a second service obtaining unit 500 and a result returning unit 600;
the task obtaining unit 100 is configured to obtain a task sent by a client;
the task splitting unit 200 is configured to determine services required by the task from a second service group of a control server communicatively connected to the monitoring node where the operation station is located, and split the task into at least one task unit corresponding to each determined required service;
the service state determining unit 300 is configured to determine whether the control server is in a service state, if so, trigger the first service obtaining unit 400, otherwise, trigger the second service obtaining unit 500, where the service state is a state in which the control server can normally provide a service to the operation station;
the first service obtaining unit 400, configured to obtain, by the operating station, the determined services required by the items from the control server to process the task unit;
the second service obtaining unit 500, configured to obtain, by the operating station, the determined services required by the items from the standby server to process the task unit;
the result returning unit 600 is configured to combine the processing results of the task units and send the processing results to the client.
Optionally, in some optional embodiments, the service status determining unit 300 includes: a status flag reading unit and a service status judging subunit;
the state flag reading unit is configured to periodically read a state flag of the control server;
the service state judgment subunit is configured to determine that the control server is in a service state if the number of times that the status flag is successfully read within a preset time period before the current time is greater than a preset number of times and the status flags that are successfully read within the preset time period before the current time are all online identifiers; otherwise, determining that the control server is not in a service state.
Optionally, in some optional embodiments, the second service obtaining unit 500 includes: determining a standby server unit and a second service acquisition subunit;
the identified backup server unit is used for the operation station to identify a backup server providing the services required by the identified items from the backup servers according to a service chain table group pre-stored in the operation station; the service linked list group comprises a plurality of service linked lists, one service linked list corresponds to one service, and each service linked list at least comprises information of a control server providing the service corresponding to the service linked list and information of a standby server providing the service corresponding to the service linked list;
and the second service obtaining subunit is configured to obtain the services required by the determined items from the determined standby server.
Optionally, in some optional embodiments, the second service obtaining subunit is specifically configured to: and setting the determined standby server as a main server of the operation station, and obtaining the determined services required by each item from the main server by the operation station.
Optionally, in some optional embodiments, the apparatus further comprises: a first mode switching unit;
the first mode switching unit is configured to set the determined standby server as a data reporting mode after the determined standby server is set as the active server of the operation station, and set a control server in communication connection with the monitoring node where the operation station is located as a data sampling mode.
Optionally, the first service obtaining unit is specifically configured to: and setting a control server in communication connection with the monitoring node where the operation station is located as an active server, wherein the operation station obtains the determined services required by each item from the active server.
Optionally, in some optional embodiments, the apparatus further comprises: a second mode switching unit;
the second mode switching unit is configured to set, after setting a control server in communication connection with the monitoring node where the operation station is located as the active server, the control server as a data reporting mode, and the standby server as a data sampling mode.
The present invention provides a storage medium for storing a program, wherein the program realizes any one of the monitoring service methods when executed by a processor.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (9)

1. A monitoring service system, comprising: the monitoring control center and a plurality of monitoring nodes, every monitoring node all includes: operation station, standby server and front-end processing equipment, the control center includes: at least two control servers;
any one control server is in communication connection with an operation station and front-end processing equipment in at least one monitoring node, and any one standby server is in communication connection with the operation station and the front-end processing equipment in the monitoring node where the standby server is located;
the at least one operating station is in communication connection with a standby server in at least one other monitoring node, wherein the operating station and the at least one operating station in the at least one other monitoring node are both in communication connection with the same control server;
the standby server has a first service group;
the control server has a second service group that includes services that the backup servers within all monitoring nodes to which the control server is connected have.
2. A monitoring service method applied to an operation station in the monitoring service system of claim 1, the method comprising:
acquiring a task sent by a client;
determining services required by the task from a second service group of a control server which is in communication connection with the monitoring node where the operation station is located, and splitting the task into at least one task unit respectively corresponding to each determined required service;
judging whether the control server is in a service state, if so, acquiring the determined services required by each item from the control server by the operation station so as to process the task unit; otherwise, the operation station obtains the determined services required by each item from the standby server to process the task unit, wherein the service state is a state in which the control server can normally provide services to the operation station;
combining the processing results of the task units and sending the processing results to the client;
wherein the operating station obtains the determined services required by the items from the standby server to process the task unit, and the method comprises the following steps:
the operation station determines a standby server for providing each determined service according to a service chain table group pre-stored in the operation station; the service linked list group comprises a plurality of service linked lists, one service linked list corresponds to one service, and each service linked list at least comprises information of a control server providing the service corresponding to the service linked list and information of a standby server providing the service corresponding to the service linked list;
and obtaining the determined services required by the items from the determined standby server to process the task unit.
3. The method of claim 2, wherein the determining whether the control server is in a service state comprises:
periodically reading a state mark of the control server;
if the times of successfully reading the state marks in the preset time length before the current time are more than the preset times and the successfully read state marks in the preset time length before the current time are all online marks, determining that the control server is in a service state;
otherwise, determining that the control server is not in a service state.
4. The method of claim 2, wherein obtaining the determined services required by the determined items from the determined standby server comprises:
and setting the determined standby server as a main server of the operation station, and obtaining the determined services required by each item from the main server by the operation station.
5. The method of claim 4, wherein after setting the determined standby server as the primary server of the operator station, the method further comprises:
and setting the determined standby server as a data reporting mode, and setting a control server in communication connection with the monitoring node where the operation station is located as a data sampling mode.
6. The method of claim 2, wherein the operator station obtains the determined services required by the items from the control server to process the task unit, comprising:
and setting a control server in communication connection with the monitoring node where the operation station is located as an active server, wherein the operation station obtains the determined services required by each item from the active server to process the task unit.
7. The method according to claim 6, wherein after setting a control server communicatively connected to the monitoring node where the operation station is located as the active server, the method further comprises:
and setting a control server in communication connection with the monitoring node where the operation station is located into a data reporting mode, and setting the standby server into a data sampling mode.
8. A monitoring service apparatus applied to an operation station in the monitoring service system according to claim 1, the monitoring service apparatus comprising: the system comprises a task obtaining unit, a task splitting unit, a service state judging unit, a first service obtaining unit, a second service obtaining unit and a result returning unit;
the task obtaining unit is used for obtaining a task sent by a client;
the task splitting unit is used for determining services required by the task from a second service group of a control server in communication connection with the monitoring node where the operation station is located, and splitting the task into at least one task unit corresponding to each determined required service;
the service state judging unit is used for judging whether the control server is in a service state, if so, the first service obtaining unit is triggered, otherwise, the second service obtaining unit is triggered, wherein the service state is a state that the control server can normally provide services for the operation station;
the first service obtaining unit is used for obtaining the determined services required by each item from the control server so as to process the task unit;
the second service obtaining unit is used for obtaining the determined services required by each item from the standby server so as to process the task unit;
the result returning unit is used for combining the processing results of the task units and sending the processing results to the client;
wherein the second service obtaining unit includes: determining a standby server unit and a second service acquisition subunit;
the determined standby server unit is used for determining a standby server for providing the determined services according to a service chain table group pre-stored in the operation station by the operation station; the service linked list group comprises a plurality of service linked lists, one service linked list corresponds to one service, and each service linked list at least comprises information of a control server providing the service corresponding to the service linked list and information of a standby server providing the service corresponding to the service linked list;
and the second service obtaining subunit is configured to obtain, from the determined standby server, the determined services required by the items to process the task unit.
9. A storage medium for storing a program which, when executed by a processor, implements the monitoring service method of any one of claims 2 to 7.
CN202010152606.2A 2020-03-06 2020-03-06 Monitoring service system, method and device Active CN111404653B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010152606.2A CN111404653B (en) 2020-03-06 2020-03-06 Monitoring service system, method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010152606.2A CN111404653B (en) 2020-03-06 2020-03-06 Monitoring service system, method and device

Publications (2)

Publication Number Publication Date
CN111404653A CN111404653A (en) 2020-07-10
CN111404653B true CN111404653B (en) 2022-04-26

Family

ID=71430570

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010152606.2A Active CN111404653B (en) 2020-03-06 2020-03-06 Monitoring service system, method and device

Country Status (1)

Country Link
CN (1) CN111404653B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113037845B (en) * 2021-03-17 2022-05-27 青岛海信网络科技股份有限公司 Cloud platform architecture system and operation mode switching method, device, equipment and medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102394873A (en) * 2011-10-26 2012-03-28 青岛海信网络科技股份有限公司 Authority management system of track traffic integration monitoring and method thereof
CN102497279B (en) * 2011-11-11 2014-06-04 青岛海信网络科技股份有限公司 Component management method applicable to tract traffic comprehensive monitoring system
KR102486704B1 (en) * 2016-01-15 2023-01-10 엘에스일렉트릭(주) Client and server in supervisory control and data acquisition system
CN109510730B (en) * 2017-09-15 2022-04-26 阿里巴巴集团控股有限公司 Distributed system, monitoring method and device thereof, electronic equipment and storage medium
CN108282540A (en) * 2018-02-11 2018-07-13 广州地铁设计研究院有限公司 A kind of subway monitoring system and its monitoring method
CN110104033A (en) * 2019-04-26 2019-08-09 南京南瑞继保电气有限公司 Rail traffic monitoring method and system based on cloud platform
CN110654428A (en) * 2019-09-27 2020-01-07 北京和利时系统工程有限公司 Automatic system is synthesized in driving

Also Published As

Publication number Publication date
CN111404653A (en) 2020-07-10

Similar Documents

Publication Publication Date Title
DE102004001031B4 (en) Redundant application terminals for process control systems
CN107707377B (en) A kind of method and system for analyzing network node availability
DE102004052270A1 (en) Processing device management system
CN102045192A (en) Apparatus and system for estimating network configuration
EP3958508A1 (en) Data processing method and device, storage medium and electronic device
US20150103643A1 (en) Transmission network and transmission network management system
CN102318270A (en) Access node monitoring control apparatus, access node monitoring system, method, and program
CN111404653B (en) Monitoring service system, method and device
CN109039795A (en) A kind of Cloud Server resource monitoring method and system
US20060114819A1 (en) Information processing system, control method of same, supervisory apparatus, signal carrying supervisory program, and signal carrying maintenance management program
US20220066436A1 (en) Industrial field device replacement system
CN113422696B (en) Monitoring data updating method, system, equipment and readable storage medium
CN110119314A (en) A kind of server calls method, apparatus, server and storage medium
JP2006195554A (en) Integrated supervision system
CN108092829A (en) Processing method, SDN controllers and the storage medium of cluster division
JP2006318036A (en) Obstacle monitoring system
CN117271227A (en) Database cluster master node switching method, system and management and control platform
JP2011013870A (en) Load distribution system
CN115842860A (en) Monitoring method, device and system for data link
KR101750673B1 (en) Redundant system and communication unit
WO2016114092A1 (en) Electric power system monitoring device, electric power system monitoring method, and electric power system monitoring program
CN113890850B (en) Route disaster recovery system and method
WO2002021188A1 (en) Monitoring control network system
WO2018108594A1 (en) Method, monitoring node and computer program of monitoring usage of a power tool
CN114070736A (en) Multi-cluster service route management control method and device based on nginx

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
TA01 Transfer of patent application right

Effective date of registration: 20211110

Address after: 100176 room 3412, floor 4, building 3, yard 2, Desheng Middle Road, Beijing Economic and Technological Development Zone, Daxing District, Beijing

Applicant after: Beijing Helishi system integration Co., Ltd

Address before: 100176 Yard 2, Desheng Middle Road, economic and Technological Development Zone, Daxing District, Beijing

Applicant before: Beijing Helishi System Engineering Co., Ltd

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant