CN110633085B - Relay protection setting calculation method and device based on micro-service architecture - Google Patents

Relay protection setting calculation method and device based on micro-service architecture Download PDF

Info

Publication number
CN110633085B
CN110633085B CN201910731638.5A CN201910731638A CN110633085B CN 110633085 B CN110633085 B CN 110633085B CN 201910731638 A CN201910731638 A CN 201910731638A CN 110633085 B CN110633085 B CN 110633085B
Authority
CN
China
Prior art keywords
service
micro
services
management
calculation
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
CN201910731638.5A
Other languages
Chinese (zh)
Other versions
CN110633085A (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 JOIN BRIGHT DIGITAL POWER TECHNOLOGY CO LTD
Sgcc East China Branch
Original Assignee
BEIJING JOIN BRIGHT DIGITAL POWER TECHNOLOGY CO LTD
Sgcc East China Branch
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 JOIN BRIGHT DIGITAL POWER TECHNOLOGY CO LTD, Sgcc East China Branch filed Critical BEIJING JOIN BRIGHT DIGITAL POWER TECHNOLOGY CO LTD
Priority to CN201910731638.5A priority Critical patent/CN110633085B/en
Publication of CN110633085A publication Critical patent/CN110633085A/en
Application granted granted Critical
Publication of CN110633085B publication Critical patent/CN110633085B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a method and a device for calculating relay protection setting based on a micro-service architecture, wherein the method comprises the following steps: detecting the current operation performance and the current state of each micro service of the micro service architecture so as to monitor whether the operation of each service is normal or not; if the abnormal operation is detected, searching the abnormal operation service and restarting the abnormal operation service; if the operation parameters are normal, the operation parameters are determined according to preset requirements, corresponding visual interfaces are provided for users by means of subscription management services and authority management services, and a setting calculation result is generated on the basis of the granular service of each function and the configuration of the corresponding function according to the subscribed service. According to the method provided by the embodiment of the invention, based on the virtualized micro service component and the unified micro system platform, the logic independence of the relay protection setting calculation system function, the simplification of the operating system and the flexible subscription of each functional module are realized.

Description

Relay protection setting calculation method and device based on micro-service architecture
Technical Field
The invention relates to the technical field of relay protection, in particular to a method and a device for relay protection setting calculation based on a micro-service architecture.
Background
In the related technology, the existing relay protection setting calculation system has the operation mode of a C/S mode, each function is contained in one or a plurality of executable files, the characteristics of tight integration of all functions and strong coupling among modules are formed, the functions are tightly combined, and the maintainability, the expandability and the performance of the setting calculation system are greatly limited. Meanwhile, the processing of setting calculation data and the calculation analysis resources occupy a user office terminal, and the calculation application requires larger resources, so that the efficiency of other work is influenced to a certain extent; and the existing setting system is integrated, has complex functions and does not meet the simplification requirement of a user on specific functional application of constant value calculation.
In addition, as the construction and application of the setting calculation system develop towards the direction of informatization, digitization, automation and interaction, a new technology needs to be introduced for the relay protection setting system which operates independently, the intellectualization of the relay protection setting system is promoted, and the requirements of wide interconnection and intelligent interaction are met.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, an object of the present invention is to provide a relay protection setting calculation method based on a micro-service architecture, which can implement logic independence of relay protection setting calculation system functions, simplification of an operating system, and flexible subscription of each functional module based on a virtualized micro-service component and a unified micro-system platform.
The invention also aims to provide a relay protection setting calculation device based on the micro-service architecture.
In order to achieve the above object, an embodiment of the present invention provides a relay protection setting calculation method based on a microservice architecture, including the following steps: detecting the current operation performance and the current state of each micro service of the micro service architecture so as to monitor whether the operation of each service is normal or not; if the abnormal operation occurs, searching the abnormal operation service and restarting the abnormal operation service; if the operation parameters are normal, determining the operation parameters according to preset requirements, providing a corresponding visual interface for a user by relying on subscription management service and authority management service, configuring corresponding functions according to the subscribed service based on the granulation service of each function, and generating a setting calculation result.
The relay protection setting calculation method based on the micro-service architecture has the advantages that relay protection setting calculation software based on the micro-service architecture technology has the characteristics of modularization, decentralization, independent deployment and the like, the interaction performance is good, the maintainability and the expandability are strong, and therefore logic independence of the relay protection setting calculation system function, simplification of an operating system and flexible subscription of each function module are achieved based on a virtualized micro-service assembly and a unified micro-system platform, the intellectualization of the relay protection setting calculation system is effectively promoted, and the requirements of wide interconnection and intelligent interaction are met.
In addition, the relay protection setting calculation method based on the micro-service architecture according to the above embodiment of the present invention may further have the following additional technical features:
optionally, in an embodiment of the present invention, the microservice architecture includes a client, a service gateway, a service registry, a plurality of microservices and a database, so as to provide all independent microservices required by tuning calculation and provide an interface, deploy the plurality of microservices, and send a request to a microservice server through a service agent of a corresponding module of tuning calculation.
In an embodiment of the present invention, the plurality of microservices include a primary model maintenance microservice, an equipment fault analysis microservice, a protection device model maintenance microservice, a principle fixed value setting microservice, a device fixed value setting microservice, a fixed value sheet and computer book management microservice and a system data management microservice.
Further, in an embodiment of the present invention, the providing a corresponding visual interface for a user by relying on the subscription management service and the rights management service includes: deploying integral service of parallel computing in a cloud computing platform; customizing services required by different users through subscription services; and establishing a right management system according to different micro services to realize the right management service.
Further, in an embodiment of the present invention, the service for customizing different user requirements through the subscription service includes: establishing an integrated basic framework of the system based on the Spring Cloud micro-service technology; splitting, setting and calculating application services of each service link according to a preset principle, and carrying out calling rule design among services; taking multi-level scheduling and various users into account, and performing hierarchical authorization and refined authorization management service structure design to generate an authority security management system; and upgrading and deploying the micro-service, and performing high-load service transverse expansion by adopting a lightweight mode.
In order to achieve the above object, an embodiment of another aspect of the present invention provides a relay protection setting calculation apparatus based on a microservice architecture, including: the monitoring module is used for detecting the current operation performance and the current state of each micro service of the micro service architecture so as to monitor whether the operation of each service is normal or not; the restarting module is used for searching the abnormal service in operation and restarting the abnormal service in operation when the abnormal service is abnormal; and the calculation module is used for determining the operation parameters according to the preset requirements when the operation is normal, providing a corresponding visual interface for a user by relying on the subscription management service and the authority management service, configuring corresponding functions based on the granulation service of each function and according to the subscribed service, and generating a setting calculation result.
In addition, the relay protection setting calculation device based on the micro-service architecture according to the above embodiment of the present invention may further have the following additional technical features:
optionally, in an embodiment of the present invention, the micro service architecture includes a client, a service gateway, a service registry, a plurality of micro services, and a database, so as to provide all independent micro services required by the tuning calculation and provide an interface, deploy the plurality of micro services, and send a request to the micro service server through a service agent of a corresponding module of the tuning calculation.
In an embodiment of the present invention, the plurality of microservices include a primary model maintenance microservice, an equipment fault analysis microservice, a protection device model maintenance microservice, a principle fixed value setting microservice, a device fixed value setting microservice, a fixed value sheet and computer book management microservice and a system data management microservice.
Further, in an embodiment of the present invention, the computing module is further configured to deploy an overall service of parallel computing in a cloud computing platform, customize services required by different users through a subscription service, and establish an entitlement management system according to different micro-services, so as to implement an entitlement management service.
Further, in one embodiment of the present invention, the calculation module includes: the system comprises an establishing unit, a processing unit and a processing unit, wherein the establishing unit is used for establishing an integrated basic framework of the system based on the Spring Cloud micro-service technology; the computing unit is used for splitting, setting and computing application services of each service link according to a preset principle and carrying out calling rule design among the services; the generating unit is used for taking multi-level scheduling and various users into account, performing hierarchical authorization and refined authorization management service structure design and generating an authority security management system; and the deployment unit is used for upgrading and deploying the micro-service and performing high-load service transverse expansion in a lightweight mode.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a flowchart of a relay protection setting calculation method based on a micro-service architecture according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a microservice infrastructure according to one embodiment of the invention;
FIG. 3 is a schematic diagram of a micro service logic architecture according to one embodiment of the present invention;
FIG. 4 is a schematic diagram of a setting calculation system microservice architecture hierarchy partitioning according to an embodiment of the present disclosure;
fig. 5 is a flowchart of a relay protection setting calculation method based on a microservice architecture according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a relay protection setting calculation device based on a micro-service architecture according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative and intended to explain the present invention and should not be construed as limiting the present invention.
The method and the device for relay protection setting calculation based on the micro-service architecture provided by the embodiment of the invention are described below with reference to the accompanying drawings, and firstly, the method for relay protection setting calculation based on the micro-service architecture provided by the embodiment of the invention is described with reference to the accompanying drawings.
Fig. 1 is a flowchart of a relay protection setting calculation method based on a microservice architecture according to an embodiment of the present invention.
As shown in fig. 1, the relay protection setting calculation method based on the micro-service architecture includes the following steps:
in step S101, a current operation performance and a current state of each microservice of the microservice architecture are detected to monitor whether each microservice operates normally.
Optionally, in an embodiment of the present invention, the micro service architecture includes a client, a service gateway, a service registry, a plurality of micro services, and a database, so as to provide all independent micro services required by the tuning calculation and provide an interface, deploy the plurality of micro services, and send a request to the micro service server through the service agent of the corresponding module of the tuning calculation.
It can be understood that, for the micro-service infrastructure, each micro-service in the micro-service infrastructure needs its own responsibility and task, and returns the processing result in the form of API, the micro-service is a subdivision of the whole setting software function, and the split micro-services operate independently, so that each function architecture of the setting software becomes flexible and customizable, and has low coupling, less mutual influence, and brings extremely high efficiency to the stages of development, test, deployment, etc., and the advantage of the micro-service is more obvious as the setting project is larger in scale. Different micro services are deployed by taking a Docker as an independent container, the Docker container can share the code of one host kernel, and the Docker container is mutually isolated at the process level, so that the execution of the micro service code can be completely independent, and other micro services can also normally run even if one micro service fails.
In the embodiment of the invention, as shown in fig. 2, each function of the client based on relay protection setting calculation is realized by calling micro-services, the function of each client and the required calculation method are intelligently routed through a service gateway zuul, the required services are dynamically called, the processing result of the called micro-services is fed back to the client, the operation process of each micro-service can be monitored and managed through an eureka of a service registration center, and the gateway zuul is registered in the eureka.
Further, as shown in fig. 3, for the micro service logic architecture, the design is performed based on a cloud computing infrastructure, and a data layer of the micro service logic architecture realizes data access, update, deletion and the like through a redis, a database and a file system; the management of monitoring, logs, files, databases and the like of the system based on the cloud computing service mode is established, and the stable operation of the system and the safety of data are guaranteed. The start of the micro service is uniformly monitored and managed by the service center, and all functions including the service registration center erueka of the service, the functional configuration service config, the routing service zuul of the path management of various application functions and the like realize the required micro service.
Further, for the system service monitoring function, according to bottom layer supporting services such as parallel computing services, subscription management services, authority management services and the like, the running state monitoring function of each running service of the system is designed and developed, the running performance and the state of each micro service are mastered in real time, once a problem occurs, the system sends out an alarm signal, and the problem that a front-end program cannot be applied due to service downtime is avoided.
Service management: the method is mainly used for managing each micro-service, providing functions of service logs, service configuration, service monitoring and the like, and ensuring that each micro-service of a setting calculation system based on the micro-service can normally and safely run.
Service log: recording the micro-service operation condition, and timely repairing once abnormality occurs.
Specifically, as shown in fig. 3, for the micro-service architecture hierarchical division of the setting calculation system, various service functions in the function design are designed and developed through a micro-service mode, including basic micro-services such as analysis of a power grid model, topology analysis and parallel calculation, and service services such as device model analysis, fixed value calculation process management and fixed value result verification, so that sufficient background support services and data support are provided for the front-end visualization service function.
The setting calculation system based on the micro-service architecture is divided into three layers from top to bottom: the system comprises a planning layer, an execution layer and a control layer, wherein each function module for setting calculation is positioned on the execution layer, the service of the setting calculation function module is distributed and scheduled according to the condition of the planning layer, and the arrangement of the planning layer on tasks is adjusted by acquiring the information of the control layer, so that the closed-loop control of the setting calculation is finally realized.
The microservice architecture of the setting calculation system at the execution layer is mainly divided into the following layers:
setting a server layer of a computing system: the method mainly provides all independent micro services required by a setting calculation system and provides interfaces, and comprises primary model maintenance micro services, equipment fault analysis micro services, protection device model maintenance micro services, principle fixed value setting micro services, device fixed value setting micro services and the like. The microservices require us to granular subdivide the traffic of the tuning computing system and enable communication between each microservice, so each microservice needs to provide an Application Programming Interface (API) Interface to the outside.
Micro-service management layer: a series of micro services are deployed at the micro service bottom layer, a plurality of micro services share one database, and when the micro services are started, the information of the services is automatically registered to the IP and the port of the corresponding services. When the micro-service client sends a request to the service gateway, the service gateway reads the request data and acquires the IP and the port of the corresponding service from the service registry. And finally, the service gateway calls the corresponding micro-service.
The micro-service client: and sending a request to the micro-service server through the service agent of the corresponding module of the setting calculation system.
Setting and calculating system service granularity division: the granularity of the micro-service is divided according to the service functions, and for some complex services, the granularity is larger, and for simple services, the granularity can be smaller. Setting calculation process is relatively complex, and relates to power grid model, fault calculation, setting value list generation management and the like, the services are related and mutually influenced, and simultaneously, each module has a plurality of functions, so that the micro-service of the services needs to be subdivided. While the services of user management, data management, system configuration and the like are relatively independent and do not influence the whole setting calculation process, so that the services can be divided into one service by the whole module.
Micro services of each functional module are mutually isolated; after the business functions are subdivided, all services are ensured to be isolated and not to influence each other, namely, the execution of micro-service codes can be completely independent, and other micro-services can run normally even if a certain micro-service fails.
In step S102, if the abnormal operation occurs, the abnormal operation service is searched for, and the abnormal operation service is restarted.
In step S103, if the operation is normal, determining an operation parameter according to a preset requirement, providing a corresponding visual interface for the user by relying on the subscription management service and the authority management service, configuring a corresponding function based on the granular service of each function, and generating a setting calculation result according to the subscribed service.
In an embodiment of the present invention, the plurality of micro services include a primary model maintenance micro service, an equipment fault analysis micro service, a protection device model maintenance micro service, a principle fixed value setting micro service, a device fixed value setting micro service, a fixed value list and computer book management micro service, and a system data management micro service.
It can be understood that the granularity of the business application service is divided:
(1) Primary model maintenance function
The power grid graphical interface facing the system carries out corresponding front-stage functional interface development and background data processing logic development to form all micro services which can complete model maintenance required by the system, and the method comprises the following steps:
1) A primitive design service;
2) Drawing service of plant station and equipment graphs;
3) Parameter input service of the plant station and the equipment;
4) Setting service for operation modes of stations and equipment;
5) Service call and data storage service maintained by each graph.
(2) Device failure analysis function
As the system intuitively embodies the analysis algorithm of the power grid model, the method relies on the high efficiency of the analysis and calculation of the parallel computing service guarantee system model, and various equipment algorithms of the functional module provide basic fault parameter guarantee for setting calculation. The method mainly comprises the following services:
1) A grid model generation service;
2) The power grid model is maintained and corrected for algorithm service;
3) A power grid fault calculation algorithm service;
4) Calculating equivalent calculation service of a power grid bus;
5) Reporting and issuing equivalent computing service;
6) And calling and data storage service between the fault analysis interface and the algorithm service.
(3) Protection device model maintenance function
Performing visual design and background service design on the maintenance function of the protection device model according to the device model standardization and rapid modeling design method; the method is directly oriented to the generation of a fixed value list in the development, and the worksheet service compatible with office/wps form controls is designed, so that a highly compatible protection device model worksheet is realized; and a text formula editor is designed in the device model maintenance function, so that the efficiency of formula editing is enhanced, and the system application efficiency and accuracy are improved. The functions include the following services:
1) A formula editor service;
2) Public valuables base maintenance services;
3) A device model modeling service;
4) And the device model maintenance interface is used for calling a background auxiliary tool and performing data interaction service.
(4) Principle constant value setting function
The method is characterized in that a principle level fixed value setting function interface and service are designed for the requirement of a principle level protection fixed value setting calculation service, functions of a principle protection fixed value item calculation principle, a value taking rule, a calculation process record, graphical display of a calculation result and the like are realized, and a simple and easy-to-use function is provided for principle level fixed value setting calculation and result management. The system development mainly comprises the following services:
1) Maintaining service by using a fixed value calculation principle formula;
2) A principle level fixed value configuration setting service;
3) A principle level protection fixed value calculation service;
4) Applying service to the principle protection fixed value configuration diagram;
5) A calculation book generation service;
6) Basic information of principle setting and services of logic application, data access and the like of a calculation process interface and a background.
(5) Device constant value setting function
The setting calculation of the device constant value is designed and developed based on the device model, a one-stop device constant value calculation function is provided for a user, and the problem that the device model cannot be immediately modified according to the calculation requirement due to the fact that the interface between the device model and the calculation process of the conventional setting calculation system is independent is solved. The main services include:
1) A fixed value single template modification service;
2) A device-level protection configuration service;
3) A device protection fixed value calculation service;
4) A fixed value sheet generation service;
5) Device calculation process management, background calculation logic and data processing service.
(6) Constant value list and calculation book management function
The data management functions of the fixed value list and the calculation book are designed and developed facing the management business requirements of the fixed value list and the calculation book, and basic functions of business modification, query, export and the like of the fixed value list and the calculation book are provided. And a management flow interface is reserved, so that a foundation is laid for data interaction between the system and other fixed value sheets and computer book management systems. The main services include:
1) State classification service of a fixed value list;
2) A data editing service for a fixed value sheet;
3) Computing a state classification service for books;
4) A data editing service of the computer book;
5) A fixed value list and a calculation book data export service;
6) And the functional application interface and the background data processing interaction service.
(7) System data management function
The system can generate a large amount of process data and final result data during operation, and the data of business needs and system analysis application are stored and managed, so that an effective means and a visual interface are provided for the overall data of the overview system. The system service comprises:
1) Statistical analysis service of primary equipment;
2) Statistical analysis services of the fixed-value items;
3) A statistical analysis service to protect configuration information;
4) A statistical analysis interface, a background logic algorithm, and data calling and storage services.
Further, in an embodiment of the present invention, providing a corresponding visual interface for a user by relying on a subscription management service and an authority management service includes: deploying integral service of parallel computing in a cloud computing platform; customizing services required by different users through subscription services; and establishing a right management system according to different micro services to realize the right management service.
Specifically, for supporting microservices, the following:
1) Parallel computing service
The cloud computing platform is provided with the integral service of parallel computing, provides an efficient computing platform for various data processing, fault analysis and the like of a power grid, serves as a system public application service, and does not need special subscription of a system user. The method comprises the steps that a basic framework based on distributed parallel computing is built through MapReduce based on Hadoop, scheduling services of computing tasks are built in virtual hardware machines provided by a cloud platform, a computing service scheduling center is built in the cloud computing service platform, and unified management, resource balanced distribution, model sharing synchronization and the like are carried out on scheduling service nodes;
2) Subscription management service
And the autonomous customization of different user requirements is realized through a subscription service. The subscription management service establishes different association management services aiming at the restriction relationship among various services, is convenient for the system user to freely call and subscribe various applications, and provides powerful guarantee for the flexible application of the whole system.
The subscription management service provides different application services for setting calculation service application, each application terminal can apply services through various web pages or special terminals, and can apply for customizing specified services to a system administrator according to different periods or working requirements; the cloud computing platform provides comprehensive business application services on one hand, and simplifies system application functions by enabling personnel to autonomously apply for different application services on the other hand, so that application of the system is closer to application needs and habits of users.
(3) Authority management service
Aiming at the practical business application of the flexible subscription of the micro-service, a comprehensive authority management system needs to be designed, a complete authority control boundary is established aiming at different micro-services, and data errors caused by authority overlapping or conflict are avoided; the rights management service mainly implements the following rights control:
(1) Controlling the authority of a scheduling control range;
(2) Authority control among multiple levels of users;
(3) Controlling the authority between different service modules and users;
(4) And controlling the data read-write authority among different service modules.
Further, in an embodiment of the present invention, the service for customizing different user requirements by the subscription service includes: establishing an integrated basic framework of the system based on the Spring Cloud micro-service technology; splitting, setting and calculating application services of each service link according to a preset principle, and carrying out calling rule design among services; taking multi-level scheduling and various users into account, and performing hierarchical authorization and refined authorization management service structure design to generate an authority security management system; and upgrading and deploying the micro-service, and performing high-load service transverse expansion by adopting a lightweight mode.
It can be enumerated that the main application technologies and development schemes of the subscription management service are as follows:
step S1: and establishing an integrated basic framework of the system based on the Spring Cloud micro-service technology.
Step S2: and the application services of all service links are split, set and calculated by taking the principles of simplification and loose coupling, and the design of calling rules among all services is carried out, so that the flexible subscription of the services is realized.
And step S3: and considering multi-level scheduling and various users, performing hierarchical authorization and refined authorization management service structure design, forming a complete authority security management system, and ensuring the application security of the system.
And step S4: the micro-service is deployed, the high-load service is transversely expanded by adopting a lightweight mode, and the function upgrading and the load influence are reduced.
To sum up, the embodiment of the present invention applies the microservice architecture technology to the relay protection setting calculation system, so as to realize independent function logic, simplified operation system and flexible subscription of each function module of the setting system, and achieve the following purposes:
(1) And (4) performing technical research on a setting calculation microservice architecture, and realizing transverse expansion on application software function splitting.
1) And developing the research of a relay protection setting calculation basic framework of the micro service and building a micro service basic framework.
2) A relay protection setting calculation system is developed by taking simplification and loose coupling as principles, and relates to splitting of each micro service, so that elastic expansion capability is realized.
(2) Based on the technical research of the micro-service organization system, the dynamic and flexible subscription of the service is realized.
1) And developing the research of hierarchical authorization and refined authorization management technologies, forming a complete authority security management system and ensuring the application security of the system.
2) And the working mode of upgrading and deploying is realized, the high-load service transverse expansion is realized in a light-weight mode, and the function upgrading and the load influence are reduced.
3) And an easy-to-use service subscription mode is completed, and dynamic and flexible subscription of the micro-service and subscription of a micro-service package are realized.
The method of an embodiment of the present invention is described in detail below as a specific embodiment.
In the embodiment of the invention, as shown in fig. 4, based on the principles of simplification and loose coupling, the application services of each service link of setting calculation are split, the design of calling rules among the services is carried out, different application services are provided for the setting calculation service application, and the flexible subscription of the services is realized; subscribing management service, each application terminal can apply service through various web pages or special terminals and can apply for customizing specified service to a system administrator according to different periods or working requirements, and the embodiment of the invention comprises the following steps:
step S401: and (4) mastering the running performance and the state of each micro service in real time, monitoring and setting whether the running of each service in the computing system is normal, if so, going to the step S403, and if not, going to the step S402.
Step S402: and searching for running abnormal services and restarting, skipping to the step 3 if the restarting is successful, and skipping to the step S406 after recording abnormal conditions and reasons to the service log if the restarting is failed.
Step S403: according to the requirements of graphic drawing, graphic label generation, calculation result precision, parameter input precision, calculation reference and the like of the system, a basic operation parameter setting function is designed, and a setting tool is provided for a system administrator to provide operation and data reference of the system.
Step S404: by means of subscription management service and authority management service, a visual interface configured by personalized functions is provided for a user, and granular services of all functions of the calculation system are customized and set.
Step S405: and configuring corresponding functions to perform setting calculation related work according to the service subscribed in the step S403.
Step S406: and finishing exiting.
According to the relay protection setting calculation method based on the micro-service architecture, relay protection setting calculation software based on the micro-service architecture technology has the characteristics of modularization, decentralization, independent deployment and the like, is good in interaction performance, and is high in maintainability and expandability, so that logic independence of functions of a relay protection setting calculation system, simplification of an operating system and flexible subscription of each functional module are achieved based on a virtualized micro-service assembly and a unified micro-system platform, intelligence of the relay protection setting calculation system is effectively promoted, and the requirements of wide interconnection and intelligent interaction are met.
Next, a relay protection setting calculation apparatus based on a micro-service architecture according to an embodiment of the present invention is described with reference to the drawings.
Fig. 6 is a schematic block diagram of a relay protection setting calculation device based on a micro-service architecture according to an embodiment of the present invention.
As shown in fig. 6, the relay protection setting calculation apparatus 10 based on the micro-service architecture includes: a monitoring module 100, a restarting module 200 and a calculating module 300.
The monitoring module 100 is configured to detect a current operation performance and a current state of each microservice of the microservice architecture, so as to monitor whether each microservice operates normally.
And the restarting module 200 is used for searching the abnormal service in operation and restarting the abnormal service in operation when the abnormal service is abnormal.
The calculation module 300 is configured to, during normal operation, determine an operation parameter according to a preset requirement, provide a corresponding visual interface for a user by relying on a subscription management service and an authority management service, configure a corresponding function according to a subscribed service based on a granular service of each function, and generate a setting calculation result.
Optionally, in an embodiment of the present invention, the microservice architecture includes a client, a service gateway, a service registry, a plurality of microservices and a database, so as to provide all independent microservices required by the tuning calculation and provide an interface, deploy the plurality of microservices, and send a request to the microservice server through a service agent of a corresponding module of the tuning calculation.
In an embodiment of the present invention, the plurality of micro services include a primary model maintenance micro service, an equipment fault analysis micro service, a protection device model maintenance micro service, a principle fixed value setting micro service, a device fixed value setting micro service, a fixed value list and computer book management micro service, and a system data management micro service.
Further, in an embodiment of the present invention, the computing module 300 is further configured to deploy an overall service of parallel computing in a cloud computing platform, customize services required by different users through a subscription service, and establish a rights management system according to different micro services to implement a rights management service.
Further, in one embodiment of the present invention, the calculation module 300 includes: the device comprises an establishing unit, a calculating unit, a generating unit and a deploying unit.
The establishing unit is used for establishing an integrated basic framework of the system based on the Spring Cloud micro-service technology.
And the calculating unit is used for splitting, setting and calculating the application service of each service link according to a preset principle and carrying out calling rule design among services.
And the generating unit is used for taking multi-level scheduling and various users into account, carrying out hierarchical authorization and refined authorization management service structure design and generating an authority security management system.
And the deployment unit is used for upgrading and deploying the micro-service and performing high-load service transverse expansion in a lightweight mode.
It should be noted that the explanation of the embodiment of the relay protection setting calculation method based on the micro service architecture is also applicable to the relay protection setting calculation device based on the micro service architecture of the embodiment, and details are not described here.
According to the relay protection setting calculation device based on the micro-service architecture, relay protection setting calculation software based on the micro-service architecture technology has the characteristics of modularization, decentralization, independent deployment and the like, is good in interaction performance, and is high in maintainability and expandability, so that logic independence of functions of a relay protection setting calculation system, simplification of an operating system and flexible subscription of each functional module are realized based on a virtualized micro-service assembly and a unified micro-system platform, intelligence of the relay protection setting calculation system is effectively promoted, and the requirements of wide interconnection and intelligent interaction are met.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Although embodiments of the present invention have been shown and described above, it will be understood that the above embodiments are exemplary and not to be construed as limiting the present invention, and that changes, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (2)

1. A relay protection setting calculation method based on a micro-service architecture is characterized by comprising the following steps:
detecting the current operation performance and the current state of each micro service of the micro service architecture so as to monitor whether the operation of each service is normal or not;
if the abnormal operation occurs, searching the abnormal operation service, and restarting the abnormal operation service;
if the operation parameters are normal, determining the operation parameters according to preset requirements, providing a corresponding visual interface for a user by relying on subscription management services and authority management services, configuring corresponding functions according to the subscribed services based on the granular services of each function, and generating a setting calculation result;
the micro-service architecture comprises a client, a service gateway, a service registration center, a plurality of micro-services and a database, all independent micro-services required by setting calculation are provided, an interface is provided, the plurality of micro-services are deployed, and a request is sent to a micro-service server side through a service agent of a corresponding module of the setting calculation;
the micro services comprise a primary model maintenance micro service, an equipment fault analysis micro service, a protection device model maintenance micro service, a principle fixed value setting micro service, a device fixed value setting micro service, a fixed value sheet and computer book management micro service and a system data management micro service; the method for providing a corresponding visual interface for a user by relying on subscription management service and authority management service comprises the following steps:
deploying integral service of parallel computing in a cloud computing platform;
customizing services required by different users through subscription services;
establishing an authority management system according to different micro services to realize authority management service;
the service for customizing different user requirements through the subscription service comprises the following steps:
establishing an integrated basic framework of the system based on the Spring Cloud micro-service technology;
splitting, setting and calculating application services of each service link according to a preset principle, and carrying out calling rule design among services;
taking multi-level scheduling and various users into account, and performing hierarchical authorization and refined authorization management service structure design to generate an authority security management system;
and upgrading and deploying the micro-service, and performing high-load service transverse expansion by adopting a lightweight mode.
2. A relay protection setting calculation device based on a micro-service architecture is characterized by comprising:
the system comprises a monitoring module, a micro service server and a micro service server, wherein the monitoring module is used for detecting the current operation performance and the current state of each micro service of a micro service framework so as to monitor whether the operation of each service is normal or not, the micro service framework comprises a client, a service gateway, a service registration center, a plurality of micro services and a database so as to provide all independent micro services required by setting calculation and provide interfaces, deploy the plurality of micro services, and send a request to the micro service server through a service agent of a corresponding module of the setting calculation; the multiple micro services comprise a primary model maintenance micro service, an equipment fault analysis micro service, a protection device model maintenance micro service, a principle fixed value setting micro service, a device fixed value setting micro service, a fixed value list and computer book management micro service and a system data management micro service;
the restarting module is used for searching the abnormal service in operation and restarting the abnormal service in operation when the abnormal service is abnormal; and
the calculation module is used for determining operation parameters according to preset requirements when the operation parameters are normal, providing a corresponding visual interface for a user by relying on subscription management service and authority management service, configuring corresponding functions according to subscribed service based on granulation service of each function, and generating a setting calculation result;
the computing module is further used for deploying the whole parallel computing service in the cloud computing platform, customizing services required by different users through subscription service, and establishing an authority management system according to different micro-services to realize authority management service;
the calculation module comprises:
the system comprises an establishing unit, a processing unit and a processing unit, wherein the establishing unit is used for establishing an integrated basic framework of the system based on a Spring Cloud micro-service technology;
the computing unit is used for splitting, setting and computing application services of each service link according to a preset principle and carrying out calling rule design among the services;
the generating unit is used for taking multi-level scheduling and various users into account, performing hierarchical authorization and refined authorization management service structure design and generating an authority security management system;
and the deployment unit is used for upgrading and deploying the micro-services and performing high-load service transverse expansion by adopting a lightweight mode.
CN201910731638.5A 2019-08-08 2019-08-08 Relay protection setting calculation method and device based on micro-service architecture Active CN110633085B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910731638.5A CN110633085B (en) 2019-08-08 2019-08-08 Relay protection setting calculation method and device based on micro-service architecture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910731638.5A CN110633085B (en) 2019-08-08 2019-08-08 Relay protection setting calculation method and device based on micro-service architecture

Publications (2)

Publication Number Publication Date
CN110633085A CN110633085A (en) 2019-12-31
CN110633085B true CN110633085B (en) 2022-11-18

Family

ID=68969620

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910731638.5A Active CN110633085B (en) 2019-08-08 2019-08-08 Relay protection setting calculation method and device based on micro-service architecture

Country Status (1)

Country Link
CN (1) CN110633085B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11397630B2 (en) 2020-01-02 2022-07-26 Kyndryl, Inc. Fault detection and correction of API endpoints in container orchestration platforms
CN112818065A (en) * 2020-11-25 2021-05-18 辽宁振兴银行股份有限公司 Distributed architecture based on springclosed + mysql + eureka
CN112988122B (en) * 2021-03-26 2023-07-18 南京大学 Monomer application decomposition tool and method based on functional characteristics and microservice association degree
CN114002981A (en) * 2021-10-29 2022-02-01 广东电力信息科技有限公司 Computer room monitoring method, device, equipment and storage medium based on micro-service

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104504485A (en) * 2014-11-18 2015-04-08 国家电网公司 Integrative power system relay protection setting calculation method
CN107491858A (en) * 2017-07-05 2017-12-19 北京科东电力控制***有限责任公司 A kind of electric power transaction platform based on micro services application architecture
CN108898912A (en) * 2018-07-16 2018-11-27 国网江苏省电力有限公司 Dispatching of power netwoks person's Simulated training method and system based on cloud

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10656929B2 (en) * 2015-08-11 2020-05-19 International Business Machines Corporation Autonomously healing microservice-based applications

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104504485A (en) * 2014-11-18 2015-04-08 国家电网公司 Integrative power system relay protection setting calculation method
CN107491858A (en) * 2017-07-05 2017-12-19 北京科东电力控制***有限责任公司 A kind of electric power transaction platform based on micro services application architecture
CN108898912A (en) * 2018-07-16 2018-11-27 国网江苏省电力有限公司 Dispatching of power netwoks person's Simulated training method and system based on cloud

Also Published As

Publication number Publication date
CN110633085A (en) 2019-12-31

Similar Documents

Publication Publication Date Title
CN110633085B (en) Relay protection setting calculation method and device based on micro-service architecture
CN109600269A (en) A kind of cloud management platform based on DCOS
CN112000448A (en) Micro-service architecture-based application management method
CN112424750A (en) Multi-cluster supply and management method on cloud platform
CN111274001B (en) Micro-service management platform
CN101099132A (en) Verifying resource functionality before use by a grid job submitted to a grid environment
CN112104723A (en) Multi-cluster data processing system and method
CN105468500A (en) Timing task monitoring method and device
US20220404810A1 (en) Visualization of A software defined process control system for industrial process plants
CN112948063B (en) Cloud platform creation method and device, cloud platform and cloud platform implementation system
US20090070425A1 (en) Data processing system, method of updating a configuration file and computer program product
CN113971095A (en) KUBERNETES application program interface in extended process
US20240036553A1 (en) I/O Server Services for Selecting and Utilizing Active Controller Outputs from Containerized Controller Services in a Process Control Environment
US20130340051A1 (en) Method of managing usage rights in a share group of servers
CN114168179A (en) Micro-service management method, device, computer equipment and storage medium
Betancourt et al. Model-based development of a dynamic container-based edge computing system
CN113419818A (en) Basic component deployment method, device, server and storage medium
CN117614825A (en) Cloud primary platform of intelligent coal preparation plant
US20230336407A1 (en) Automated server restoration construct for cellular networks
CN114996352B (en) Database management system and method
CN114721827A (en) Data processing method and device
CN113824801B (en) Intelligent integration terminal unified access management component system
EP3757701A1 (en) High availability for container based control execution
EP3719599B1 (en) Network-distributed process control system and method for managing redundancy thereof
CN115103007A (en) Service discovery method and device based on distributed cloud and readable storage medium

Legal Events

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