CN115484290A - Service integrated monitoring system supporting main-standby switching - Google Patents

Service integrated monitoring system supporting main-standby switching Download PDF

Info

Publication number
CN115484290A
CN115484290A CN202211125882.5A CN202211125882A CN115484290A CN 115484290 A CN115484290 A CN 115484290A CN 202211125882 A CN202211125882 A CN 202211125882A CN 115484290 A CN115484290 A CN 115484290A
Authority
CN
China
Prior art keywords
module
service module
topology
topology calculation
information
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.)
Pending
Application number
CN202211125882.5A
Other languages
Chinese (zh)
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.)
Guodian Nanjing Automation Co Ltd
Original Assignee
Guodian Nanjing Automation 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 Guodian Nanjing Automation Co Ltd filed Critical Guodian Nanjing Automation Co Ltd
Priority to CN202211125882.5A priority Critical patent/CN115484290A/en
Publication of CN115484290A publication Critical patent/CN115484290A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • 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/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • 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/12Discovery or management of network topologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation
    • H04L43/045Processing captured monitoring data, e.g. for logfile generation for graphical visualisation of monitoring data

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Hardware Redundancy (AREA)

Abstract

The invention discloses a service comprehensive monitoring system supporting main-standby switching, which comprises a state server module, a topology calculation service module, a message bus module, a state service client module and a picture client module, wherein the state server module and the topology calculation service module are deployed on a server, the state service client module and the picture client module are deployed on a workstation, and the message bus module is deployed on the server and the workstation simultaneously; the state server module and the message bus module in the server are in communication connection with the topology calculation service module, and the state service client module and the message bus module in the workstation are in communication connection with the picture client module; the workstation is in communication connection with the servers through the message bus module, and the servers are in communication connection through the state server module; the invention can stably, reliably and simply realize topology service design and active-standby switching.

Description

Service integrated monitoring system supporting main-standby switching
Technical Field
The invention relates to a service-based integrated monitoring system supporting main-standby switching, belonging to the technical field of automatic systems.
Background
The integrated monitoring system is widely applied to various automatic systems such as rail transit, mines, industrial scheduling, electric power and the like, and the construction and operation of the current integrated monitoring system begin to adopt a main control center mode, a standby control center mode and a layered distributed architecture. The electric automation monitoring part is an indispensable ring in the comprehensive monitoring system, and the electric network can be visually displayed in a monitoring picture through real-time topological analysis of electric network data.
Under the framework of a master-slave dual-control center and a layered distributed type, in order to facilitate the management of a data set, a configuration source domain which belongs to the partition attribute of data is artificially divided into a central domain and a sub-domain, data which is subjected to topological calculation and analysis of a server is uniformly and externally issued through a message bus module to form a framework facing to a service and thin client, and the topological server provides required data results such as equipment live calculation, a power supply point power supply path, electric island analysis and the like for each client node; the calculation result is stored in the internal memory of the topology server and is uniformly released to the outside through the message bus, the calculation result is not stored in a real-time library any more, the data synchronization pressure of each node is reduced, and each picture client subscribes data through the message bus, so that the consistency of the acquired calculation result data is ensured;
under the condition that the synchronization strategy of the real-time data of the integrated monitoring system is divided into synchronous summarization from a sub-domain to a central domain and synchronous distribution from the central domain to the sub-domain, priority configuration is provided for the client nodes in the sub-domains to acquire the data of the topology servers in different domains; and when the running main topology service has a fault, the standby topology service is quickly started, so that the normal display of the coloring of the client monitoring picture equipment in the central domain and the sub-domain is realized, the stability and the reliability of the whole comprehensive monitoring system are improved, and a stable and reliable fault-tolerant mechanism is realized. In the specific design implementation, the topology analysis service and active/standby switching control logic of the integrated monitoring system needs to consider various factors such as network and software service, and needs to be flexibly adjusted and expanded according to different application scenarios, and how to stably, reliably and simply implement the topology service design and the active/standby switching, and keep good adaptability and flexibility becomes a key technical problem and implementation difficulty.
Disclosure of Invention
The invention aims to overcome the defects in the prior art, provides a service integrated monitoring system supporting the main-standby switching, and can stably, reliably and simply realize the topology service design and the main-standby switching.
In order to achieve the purpose, the invention is realized by adopting the following technical scheme:
in a first aspect, the invention provides a service-oriented integrated monitoring system supporting active-standby switching, which comprises a state server module, a topology calculation service module, a message bus module, a state service client module and a picture client module, wherein the state server module and the topology calculation service module are deployed on a server, the state service client module and the picture client module are deployed on a workstation, and the message bus module is deployed on the server and the workstation at the same time; the state server module and the message bus module in the server are in communication connection with the topology calculation service module, and the state service client module and the message bus module in the workstation are in communication connection with the picture client module; the workstation is in communication connection with the servers through the message bus module, and the servers are in communication connection through the state server module.
Optionally, the state service module is used for collecting and managing various kinds of operation state information of the integrated monitoring system and issuing the information through the whole network; the state service module also supports a configurable conflict detection arbitration and task fault tolerance mechanism in the whole network and the cluster; the topology calculation service module is used for acquiring state information from the state service module through the message bus module and carrying out analysis and calculation; the topology calculation service module sets a main and standby working mode according to the fault-tolerant arbitration result of the state service module, and the topology calculation service module in the main working mode externally releases the calculation result; the state service client module is used for acquiring the main and standby working modes of the topology calculation service module and issuing the working modes to the picture client module; and the picture client module acquires a calculation result from the topology calculation service module in the main working mode through the message bus module and displays a picture.
In a second aspect, the present invention provides a topology calculation analysis servitization method based on the above-mentioned servitization integrated monitoring system, including:
a public calling header file of a message bus module is predefined, input and output parameters are determined, and a dynamic library file is generated;
a dynamic library file is quoted in a picture client module and a topological computing service module code project pro file;
registering topology calculation data required by subscription to the message bus module through the picture client module;
reading required real-time data from a real-time library through a topology calculation service module, analyzing a topological structure of the electric network based on a breadth-first search algorithm of the adjacency matrix, and generating a calculation result;
calling a monitoring interface of the message bus module through the topology calculation service module, and calling a data publishing interface to distribute a calculation result when a notification of subscribing and registering a picture client exists;
and obtaining a calculation result from the message bus module through the picture client and displaying a picture.
In a third aspect, the present invention provides a topology service active/standby switching method based on the above-mentioned service integrated monitoring system, including:
registering key name information of a registered main and standby working mode to a state service module through a topology calculation service module, and subscribing the key name;
processing the change of the main and standby working modes of the topology calculation service module based on the callback function of the key name, and processing the flag bit of the main and standby working modes;
when a plurality of servers are all provided with a topology calculation service module, the state service module carries out arbitration to select a main/standby working mode and releases the working mode in the whole network;
when the topology calculation service module receives callback information corresponding to the registered key name, the primary and standby working modes and the primary and standby display flag bits of the topology calculation service module are updated;
if the updating result is the main working mode, the topology calculation service module normally performs topology analysis calculation, and if the updating result is the standby working mode, the topology calculation service module enters a dormant state.
In a fourth aspect, the present invention provides a method for switching data of a picture client accessing a topology host based on the above-mentioned service-oriented integrated monitoring system, including:
the picture client subscribes the key name of the topology calculation service module of the main working mode of the local domain and the central domain, and processes the main and standby working modes based on the callback mechanism of the state service module;
reading the connection priority configuration information of the picture client, and determining information used by the picture client based on the connection priority configuration information;
the picture client subscribes the calculation result of the topology calculation service module of the main working mode through the message bus module;
the picture client accesses a calculation result issued by the topology calculation service module corresponding to the main working mode according to the used information;
and if the main/standby working modes of the topology calculation service module change, returning information for determining the use of the picture client based on the connection priority configuration information.
Optionally, the determining, based on the connection priority configuration information, information used by the screen client includes:
the picture client in the central domain only reads and uses the information of the topology calculation service module of the main working mode in the central domain;
the information read and used by the picture client in the subdomain meets the following requirements:
when the topology calculation service module is configured to be preferentially connected with the topology calculation service module of the main working mode of the central domain, if the information of the topology calculation service modules of the main working modes of the central domain and the subdomains can be obtained, the information of the topology calculation service module of the main working mode of the central domain is used; if the information of the topology calculation service module of the main working mode of the central domain or the sub-domain can only be obtained, the information of the topology calculation service module of the main working mode of the corresponding central domain or the sub-domain is used;
when the topology calculation service module is configured to be preferentially connected with the main working mode of the subdomain, if the information of the topology calculation service modules of the central domain and the main working mode of the subdomain can be obtained, the information of the topology calculation service module of the main working mode of the subdomain is used; and if the information of the topology calculation service module of the main working mode of the central domain or the subdomain can be obtained only, using the information of the topology calculation service module of the main working mode of the corresponding central domain or the subdomain.
Compared with the prior art, the invention has the following beneficial effects:
the invention provides a service integrated monitoring system supporting main-standby switching, which adopts a modularized and service-oriented core design concept, services the real-time topology analysis and calculation functions of an electric network on the basis of an integrated monitoring system software platform, uniformly provides calculation results to the outside through a message bus module, newly adds a topology server module and a message bus module supporting a layered distributed architecture, brings state information of a topology server program, communication network, client connection priority and the like into a uniform real-time state service management module, supports whole-network subscription release and flexible expansion, and accordingly constitutes a complete, flexible and fault-tolerant integrated monitoring system topology service and main-standby switching solution.
Drawings
Fig. 1 is a schematic diagram of a service-oriented integrated monitoring system supporting active/standby switching according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a deployment structure of a topology service calculation module and a picture client module in a central domain and a sub-domain according to an embodiment of the present invention.
Detailed Description
The invention is further described below with reference to the accompanying drawings. The following examples are only for illustrating the technical solutions of the present invention more clearly, and the protection scope of the present invention is not limited thereby.
The first embodiment is as follows:
as shown in fig. 1, the present invention provides a service-oriented integrated monitoring system supporting active/standby switching, which includes a state server module, a topology calculation service module, a message bus module, a state service client module and a picture client module, where the state server module and the topology calculation service module are deployed on a server, the state service client module and the picture client module are deployed on a workstation, and the message bus module is deployed on the server and the workstation at the same time; the state server module and the message bus module in the server are in communication connection with the topology calculation service module, and the state service client module and the message bus module in the workstation are in communication connection with the picture client module; the workstation is in communication connection with the servers through the message bus module, and the servers are in communication connection through the state server module.
(1) The state service module is used for being responsible for the collection management and the whole-network release of various kinds of running state information of the comprehensive monitoring system; the state service module also supports a configurable conflict detection arbitration and task fault tolerance mechanism in the whole network and the cluster; the state service module provides an open and unified state information registration, read-write updating and subscription publishing interface, supports various programming calling modes such as API, IPC and Web service, and is flexibly used by other application software modules.
(2) The topology calculation service module is used for acquiring the state information from the state service module through the message bus module and carrying out analysis and calculation; the topology calculation service module sets a main and standby working mode according to the fault-tolerant arbitration result of the state service module, and the topology calculation service module in the main working mode externally releases the calculation result; and the topology calculation service module provides services such as power supply point result query, electrical equipment live state query, power supply path query and the like for the outside uniformly through the message bus module. The topology calculation service module supports a master-slave fault-tolerant mechanism, reads and writes state information and subscription state notification through information interaction with the state service module, sets a master-slave working mode according to a fault-tolerant arbitration result of the state service, and externally releases a calculation result by a topology host (namely the topology calculation service module in the master working mode).
(3) The state service client module is used for acquiring the main and standby working modes of the topology calculation service module and issuing the working modes to the picture client module; the picture client module obtains the calculation result from the topology calculation service module in the main working mode through the message bus module and displays the picture, and the data source consistency obtained by each node can be ensured by obtaining the calculation result from the topology calculation service module in the main working mode, so that the data synchronization pressure caused by the fact that the calculation result is stored in a real-time library is reduced. When the picture client subscribes the required data to the message bus module, the registration to a plurality of servers is supported at one time, the source of the data can be effectively distinguished by acquiring the topology host information from the state service client module, the influence of network abnormity on the monitoring of the system picture is reduced, and meanwhile, when the topology host information is changed, the process of accessing the server data by the picture client can realize the non-inductive switching.
Example two:
based on the service integrated monitoring system supporting the master-slave switching provided in the first embodiment, in order to reduce the synchronization pressure of a real-time library and ensure the consistency of the topology calculation data source obtained by the picture client under the layered and distributed high-capacity system architecture, the original topology calculation program is subjected to service transformation by adopting the design idea of modularization and service-oriented, and the calculation result of the server is subjected to data distribution through the message bus module; a topology calculation analysis servitization method is provided, which comprises the following steps:
2.1, predefining a public calling header file of a message bus module, determining input and output parameters, and generating a dynamic library file;
2.2, a dynamic library file is quoted in a picture client module and a topological computing service module code project pro file;
2.3, registering topology calculation data required by subscription to the message bus module through the picture client module;
2.4, reading required real-time data from a real-time library through a topology calculation service module, analyzing the topological structure of the electric network based on the breadth-first search algorithm of the adjacent matrix, and generating a calculation result;
2.5, calling a monitoring interface of the message bus module through the topology calculation service module, and calling a data publishing interface to distribute a calculation result when a notification that the picture client subscribes for registration is available;
and 2.6, obtaining a calculation result from the message bus module through the picture client and displaying a picture.
Example three:
based on the service-oriented integrated monitoring system supporting the primary/standby switching provided in the first embodiment, in order to ensure stable operation of the integrated monitoring system platform, it is a key point to be comprehensively considered how to effectively and accurately arbitrate the primary/standby application programs by using a primary/standby fault-tolerant mechanism, and whether the standby operation program has an ability to immediately start external restoration services when the primary operation program exits abnormally. The topology calculation service program supports a master-slave deployment operation mode; a topology service active/standby switching method is provided, which comprises the following steps:
3.1, registering key name information of the registered main and standby working modes to a state service module through a topology calculation service module, and subscribing key names;
3.2, processing the change of the main and standby working modes of the topology calculation service module based on the callback function of the key name, and processing the flag bit of the main and standby working modes;
the process of calling the function B in other functions a by means of a function B pointer (the source of the B function pointer can be obtained by, but is not limited to, parameter passing) is called a callback, and the called B function is called a callback function of a.
When key name information of a topology host state is registered to the state service module, one item of function interface parameters provided by the state service module needs to be transferred to a callback function address, the callback function address defined by the application module is transferred to the state service module in a parameter transfer mode, then the state service module calls the callback function of the key name through a transferred function pointer when a certain condition is met, and a user processes the information of the primary and standby working modes of the topology in the callback function.
As shown in fig. 2, when the topology service program runs on machines sac1, sac2, and sac3, one and only one machine is a main running machine providing services, for example, sac1 is a main machine, the remaining machines sac2 and sac3 are standby machines, and the election of the main/standby states is completed by the state service module. And the state service module informs the picture client module of the main and standby working modes of the topology calculation service module through the registered callback function. The state service module serves as a communication bridge between the topology calculation service module and the picture client module. In the customized callback function, the state service module informs the key value of the key name of the currently subscribed message, so that the screen client can know that the current sac1 machine is the running main node. Then, a string-type variable is used as a flag in the user program to record information of a host node (i.e., a host of the topology) currently providing the topology calculation service module, and the frame client should perform network communication with the host when connecting. If the host is switched in the callback function, if the host is already switched to sac2, the client should be switched to sac2 in time, otherwise, when sac1 is still connected, the screen client cannot acquire the calculation data of the required server because sac1 becomes the standby computer and no longer provides the service data of topology calculation.
3.3, when a plurality of servers are all provided with a topology calculation service module, arbitrating and selecting a main/standby working mode through a state service module, and releasing the main/standby working mode through the whole network;
as shown in fig. 2, when only the sac1 machine runs the topology program, the state service module arbitrates the sac1 machine as the topology master. When the sac2 machine starts the topology program, the sac2 machine is the topology standby machine.
When the host operation topology program exits and cannot provide the service due to the fact that accidental power failure occurs to the sac1 server, the state service module conducts arbitration, and the sac2 is elected as a host operation node of the topology. When the main and standby program operating modes are switched, the state service module will notify the application program of the message through the callback function to perform corresponding processing.
When the sac1 machine is powered back and the topology program is started, the sac1 and the sac2 both run the topology program, and the sac2 is the host at present. According to different configuration strategies, if sac1 is configured to have a high priority, after the sac1 topology program is started, the state service switches the topology host from sac2 to sac1 at the moment, and sac1 is the main sac for standby. If the configured policy is first come first get mode, then since sac2 is already the host, the time priority of the topology program started by sac1 is low, and then sac1 is standby and sac2 still keeps the host unchanged.
3.4, when the topology calculation service module receives callback information corresponding to the registered key name, updating the main/standby working mode and the main/standby display flag bit;
and 3.5, if the updating result is in the main working mode, the topology calculation service module normally performs topology analysis calculation, and if the updating result is in the standby working mode, the topology calculation service module enters a dormant state.
In a fourth aspect, based on the service-oriented integrated monitoring system supporting active/standby switching provided in the first embodiment, for a situation of machine and service deployment in a layered distributed architecture, topology services can be run in both the active/standby center and each sub-domain, and an architecture diagram is shown in fig. 2. The topology service carries out intra-domain fault-tolerant processing through the state service module, supports the state message distribution of the whole network universe, and has flexible and configurable connection priority between the picture client and the host; the embodiment provides a method for switching data of a picture client accessing a topology host based on the service-based integrated monitoring system, which comprises the following steps:
4.1, the picture client subscribes the key name of the topology calculation service module of the main working mode of the local domain and the central domain, and processes the main and standby working modes based on the callback mechanism of the state service module;
4.2, reading the connection priority configuration information of the picture client, and determining information used by the picture client based on the connection priority configuration information;
4.3, the picture client subscribes a calculation result of the topology calculation service module of the main working mode through the message bus module;
4.4, the picture client accesses the calculation result issued by the topology calculation service module corresponding to the main working mode according to the used information;
and 4.5, if the main and standby working modes of the topology calculation service module change, returning information for determining the use of the picture client based on the connection priority configuration information.
Wherein determining information used by the screen client based on the connection priority configuration information comprises:
the picture client in the central domain only reads and uses the information of the topology calculation service module of the main working mode in the central domain;
the information read and used by the picture client in the subdomain meets the following requirements:
when the topology calculation service module is configured to be preferentially connected with the topology calculation service module of the main working mode of the central domain, if the information of the topology calculation service modules of the main working modes of the central domain and the subdomains can be obtained, the information of the topology calculation service module of the main working mode of the central domain is used; if the information of the topology calculation service module of the main working mode of the central domain or the sub-domain can only be obtained, the information of the topology calculation service module of the main working mode of the corresponding central domain or the sub-domain is used;
when the topology calculation service module is configured to be preferentially connected with the main working mode of the subdomain, if the information of the topology calculation service modules of the central domain and the main working mode of the subdomain can be obtained, the information of the topology calculation service module of the main working mode of the subdomain is used; and if the information of the topology calculation service module of the main working mode of the central domain or the sub-domain can be obtained only, using the information of the topology calculation service module of the main working mode of the corresponding central domain or the sub-domain.
To sum up, the present invention includes:
1) The method comprises the following steps that a modularized and service-oriented design idea is adopted, a topology calculation program runs on a server, and a subscription and release function of data is provided to the outside through a message bus module; the topology server side ensures the consistency of the source of the topology calculation data obtained by each client side, and reduces the real-time database data synchronization pressure of each machine;
2) A configurable program fault tolerance mechanism in the whole network or the cluster is constructed through a state service module, and the switching of the main and standby working modes of the computing service of a topology server is realized;
3) Through the state service module, the topology service end can realize the whole-network publishing and subscribing of the messages of the topology service host;
4) The client module subscribes host messages of the topology server through the state service, actively senses the change of the messages and timely makes a response, and switches the calculation data source more timely through the message bus, so that the efficiency and the accuracy are higher.
5) The strategy can be configured according to the client connection priority in the subdomain, and the topological hosts connected to the corresponding domains can be switched and connected more flexibly to obtain data, so that the influence of abnormal conditions on the monitoring system picture is reduced.
Compared with the existing scheme:
1) The power grid topology real-time analysis and calculation functions are serviced, result data calculated by the server side are distributed to the outside in a unified mode through the message bus module, and the client side obtains the calculation result of the server side through the message bus module, so that the data consistency is guaranteed, and the synchronization pressure of a large amount of data of a real-time library is relieved;
2) When the subdomain and the central domain are subjected to failure separation, the client in the subdomain is supported to preferentially access data issued by the corresponding host according to the priority, and the configuration is flexible;
3) By adopting the state service module, the deployment and operation of the topological server program support a master multi-standby mode, a stable and reliable fault-tolerant mechanism is provided, the application scenes of the server and the client are flexible and easy to expand, and the adverse effect of abnormal conditions on the monitoring system picture is effectively avoided;
4) The state service module supporting the layered distributed architecture is used as a basic service newly added to a software platform of the comprehensive monitoring system, and can provide effective technical support for other upper-layer comprehensive monitoring high-level applications in the aspects of state information subscription and release of topology computing services, program-master-slave fault-tolerant mechanism management and the like.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, several modifications and variations can be made without departing from the technical principle of the present invention, and these modifications and variations should also be regarded as the protection scope of the present invention.

Claims (6)

1. A service comprehensive monitoring system supporting main-standby switching is characterized by comprising a state server module, a topology calculation service module, a message bus module, a state service client module and a picture client module, wherein the state server module and the topology calculation service module are deployed on a server, the state service client module and the picture client module are deployed on a workstation, and the message bus module is deployed on the server and the workstation at the same time; the system comprises a server internal state server module, a topology calculation service module, a workstation internal state server client module, a message bus module, a picture client module and a topology calculation service module, wherein the server internal state server module and the message bus module are both in communication connection with the topology calculation service module; the workstation is in communication connection with the servers through the message bus module, and the servers are in communication connection through the state server module.
2. The system according to claim 1, wherein the status service module is configured to be responsible for collecting, managing and publishing various types of operation status information of the integrated monitoring system over the whole network; the state service module also supports a configurable conflict detection arbitration and task fault tolerance mechanism in the whole network and the cluster; the topology calculation service module is used for acquiring state information from the state service module through the message bus module and carrying out analysis and calculation; the topology calculation service module sets a main and standby working mode according to the fault-tolerant arbitration result of the state service module, and the topology calculation service module in the main working mode externally issues a calculation result; the state service client module is used for acquiring the main and standby working modes of the topology calculation service module and issuing the working modes to the picture client module; and the picture client module acquires a calculation result from the topology calculation service module in the main working mode through the message bus module and displays a picture.
3. A topology calculation analysis servization method based on the servization integrated monitoring system according to any one of claims 1 or 2, characterized by comprising:
a public calling header file of a message bus module is predefined, input and output parameters are determined, and a dynamic library file is generated;
a dynamic library file is quoted in a picture client module and a topological computing service module code project;
registering topology calculation data required by subscription to the message bus module through the picture client module;
reading required real-time data from a real-time library through a topology calculation service module, analyzing a topological structure of the electric network based on a breadth-first search algorithm of the adjacency matrix, and generating a calculation result;
calling a monitoring interface of the message bus module through the topology calculation service module, and calling a data publishing interface to distribute a calculation result when a notification that the picture client subscribes for registration exists;
and obtaining a calculation result from the message bus module through the picture client and displaying a picture.
4. A topology service active/standby switching method based on the service integrated monitoring system according to any one of claims 1 or 2, comprising:
registering key name information of a registered main and standby working mode to a state service module through a topology calculation service module, and subscribing the key name;
processing the change of the main and standby working modes of the topology calculation service module based on the callback function of the key name, and processing the flag bit of the main and standby working modes;
when a plurality of servers are all provided with a topology calculation service module, the state service module carries out arbitration to select a main/standby working mode and releases the working mode in the whole network;
when the topology calculation service module receives callback information corresponding to the registered key name, the primary and standby working modes and the primary and standby display flag bits of the topology calculation service module are updated;
if the updating result is the main working mode, the topology calculation service module normally performs topology analysis calculation, and if the updating result is the standby working mode, the topology calculation service module enters a dormant state.
5. The picture client access topology host data switching method based on the service integrated monitoring system according to any one of claims 1 or 2, characterized by comprising the following steps:
the picture client subscribes the key name of the topology calculation service module of the main working mode of the local domain and the central domain, and processes the main and standby working modes based on the callback mechanism of the state service module;
reading the connection priority configuration information of the picture client, and determining information used by the picture client based on the connection priority configuration information;
the picture client subscribes the calculation result of the topology calculation service module of the main working mode through the message bus module;
the picture client accesses a calculation result issued by the topology calculation service module corresponding to the main working mode according to the used information;
and if the main and standby working modes of the topology calculation service module are changed, returning information for determining the use of the picture client based on the connection priority configuration information.
6. The method for switching picture client access topology host data of a service integrated monitoring system according to claim 5, wherein said determining information used by the picture client based on the connection priority configuration information comprises:
the picture client in the central domain only reads and uses the information of the topology calculation service module of the main working mode in the central domain;
the information read and used by the picture client in the subdomain meets the following requirements:
when the topology calculation service module is configured to be preferentially connected with the topology calculation service module of the main working mode of the central domain, if the information of the topology calculation service modules of the main working modes of the central domain and the subdomains can be obtained, the information of the topology calculation service module of the main working mode of the central domain is used; if the information of the topology calculation service module of the main working mode of the central domain or the subdomain can be obtained only, the information of the topology calculation service module of the main working mode of the corresponding central domain or the subdomain is used;
when the topology calculation service module is configured to be preferentially connected with the main working mode of the subdomain, if the information of the topology calculation service modules of the central domain and the main working mode of the subdomain can be obtained, the information of the topology calculation service module of the main working mode of the subdomain is used; and if the information of the topology calculation service module of the main working mode of the central domain or the sub-domain can be obtained only, using the information of the topology calculation service module of the main working mode of the corresponding central domain or the sub-domain.
CN202211125882.5A 2022-09-16 2022-09-16 Service integrated monitoring system supporting main-standby switching Pending CN115484290A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211125882.5A CN115484290A (en) 2022-09-16 2022-09-16 Service integrated monitoring system supporting main-standby switching

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211125882.5A CN115484290A (en) 2022-09-16 2022-09-16 Service integrated monitoring system supporting main-standby switching

Publications (1)

Publication Number Publication Date
CN115484290A true CN115484290A (en) 2022-12-16

Family

ID=84424410

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211125882.5A Pending CN115484290A (en) 2022-09-16 2022-09-16 Service integrated monitoring system supporting main-standby switching

Country Status (1)

Country Link
CN (1) CN115484290A (en)

Similar Documents

Publication Publication Date Title
CN111917846A (en) Kafka cluster switching method, device and system, electronic equipment and readable storage medium
CN108270726B (en) Application instance deployment method and device
US20030131141A1 (en) Method and system for property notification
US20060031856A1 (en) Method and system for managing software components
CN104679604A (en) Method and device for switching between master node and standby node
US10726042B2 (en) Replication control using eventually consistent meta-data
CN110795503A (en) Multi-cluster data synchronization method and related device of distributed storage system
CN110661641B (en) Virtual network function VNF deployment method and device
JP2005531864A (en) System event filtering and notification to OPC clients
CN112653734B (en) Real-time master-slave control and data synchronization system and method for server cluster
CN111064626B (en) Configuration updating method, device, server and readable storage medium
CN111858190B (en) Method and system for improving availability of cluster
CN112217847A (en) Micro service platform, implementation method thereof, electronic device and storage medium
CN111198662A (en) Data storage method and device and computer readable storage medium
CN114500257A (en) Network configuration distribution method, device, control node and storage medium
CN113157701A (en) Dual-activity mechanism deployment method and device of ORACLE database
CN113658351A (en) Product production method and device, electronic equipment and storage medium
CN115484290A (en) Service integrated monitoring system supporting main-standby switching
CN116594752A (en) Flow scheduling method, device, equipment, medium and program product
CN114610817B (en) Data synchronization method and device, multi-activity system, electronic equipment and storage medium
CN114500289B (en) Control plane recovery method, device, control node and storage medium
CN116319841A (en) Distributed storage dynamic capacity expansion method and device and electronic equipment
CN116633724A (en) System and deployment method for multidimensional current limiting and dynamic routing
CN115225645A (en) Service updating method, device, system and storage medium
CN111581033B (en) Load balancing method, system and device

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