CN113127343B - Power grid code test analysis system based on micro-service architecture - Google Patents

Power grid code test analysis system based on micro-service architecture Download PDF

Info

Publication number
CN113127343B
CN113127343B CN202110339191.4A CN202110339191A CN113127343B CN 113127343 B CN113127343 B CN 113127343B CN 202110339191 A CN202110339191 A CN 202110339191A CN 113127343 B CN113127343 B CN 113127343B
Authority
CN
China
Prior art keywords
service
micro
code
module
test
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
CN202110339191.4A
Other languages
Chinese (zh)
Other versions
CN113127343A (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.)
Guangdong Power Grid Co Ltd
Original Assignee
Guangdong Power Grid 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 Guangdong Power Grid Co Ltd filed Critical Guangdong Power Grid Co Ltd
Priority to CN202110339191.4A priority Critical patent/CN113127343B/en
Publication of CN113127343A publication Critical patent/CN113127343A/en
Application granted granted Critical
Publication of CN113127343B publication Critical patent/CN113127343B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3644Software debugging by instrumenting at runtime
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S10/00Systems supporting electrical power generation, transmission or distribution
    • Y04S10/50Systems or methods supporting the power network operation or management, involving a certain degree of interaction with the load-side end user applications

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention provides a power grid code test analysis system based on a micro-service architecture, which comprises an access part, a service part and a maintenance part, wherein the access part externally provides a unified address for a client to access the system, the access part receives a test request sent by the client and distributes the request to the service part, the service part calls corresponding micro-services based on the test request to complete execution of the test task, each micro-service is an independent service unit with single function, and the maintenance part monitors the running state and call link of the micro-service in the system. The invention realizes modularization of function application in a micro-service mode and improves the efficiency of testing the electric power information system.

Description

Power grid code test analysis system based on micro-service architecture
Technical Field
The invention relates to a power grid code test analysis system based on a micro-service architecture, which can be used for code test analysis, software defect detection and system code test analysis under development of the micro-service architecture in a power information system.
Background
With the rapid development of power grid informatization, the application range of software related to a power information system is increasingly enlarged, the scale of the software is also increasingly increased, and the functions and the architecture are also increasingly complex. In many business scenarios, the technology contained in one piece of software is more and more, and the application of single architecture business is more and more huge, and system elements not only comprise an information system, but also relate to a large number of systems coupled with the information system; the coupling incidence relation between the system elements is dynamically changed and is gradually complicated; the behavior of the whole system is difficult to characterize by simple superposition of single autonomous system features; the logic of codes is more and more complex, and the coupling degree between codes and between modules is higher and higher.
The code test analysis technology detects the software quality by designing test cases, and finds out possible software defects, which is one of important means for ensuring the software quality. Along with the expansion of the software scale and the improvement of the software complexity, the simple modification of any test case of the software test can lead to the recompilation, jar packing, uploading of the server and redeployment of the test application, but the compiling and deploying period is long, the flexibility of the test application is low, the continuous delivery capability is weak, and the continuous change of the code test analysis service can not be responded in time. Under the traditional working mode of the host cluster, the code test analysis tool has low resource utilization rate for the host cluster, and meanwhile, has serious problems in the aspects of management maintenance, application migration efficiency and the like of the system.
Disclosure of Invention
The invention aims to: the invention aims to provide a power grid code testing and analyzing system based on a micro-service architecture, which improves the testing efficiency, expansibility and maintainability of the code testing system.
The technical scheme is as follows: the utility model provides a grid code test analysis system based on micro-service architecture, includes access portion, service portion and maintenance portion, and access portion provides the unified address outward and supplies the customer end to visit the system, and access portion receives the test request that the customer end sent and distributes the request to service portion, and service portion is based on test request call corresponding micro-service, accomplishes the execution of test task, and wherein each micro-service is the independent service unit of function singleness, and maintenance portion monitors the running state and the call link of micro-service in the system.
In a preferred embodiment, the micro services include a user management micro service, an application system micro service, a code engineering micro service and a code detection micro service, wherein the user management micro service is responsible for unified management of system users, the application system micro service provides allocation of application systems under different authorities for different users, the code engineering micro service provides a function that a user inquires engineering of each application system, a high authority user can authorize authority to a low authority user, a granted authority user can conduct code detection, the code detection micro service conducts effective code detection through a configuration pipeline detection method, and finally a report of the code test is output.
In a preferred embodiment, the service part includes a service discovery and registration module and a configuration module, where the service discovery and registration module is used to implement call between micro services, and after the micro service example is started, register the micro service example in a service center, compare the service address registered each time to access the service regularly, determine whether the service is available according to the health status of the service, and implement decoupling between the micro services; the configuration module is used for carrying out centralized configuration management on parameters and switches of the whole service group and providing storage of unified dynamic configuration information under a plurality of environments for micro services.
In a preferred embodiment, the maintenance part comprises a monitoring module, a safety control module and a link tracking module, wherein the monitoring module, the safety control module and the link tracking module are respectively connected with the micro-service assembly module, and the monitoring module is used for monitoring the running state of the service and the calling link and guaranteeing the running of the micro-service in a healthy state; the safety control module is used for immediately processing abnormal conditions of the service; the link tracking module is used for recording and managing service calling conditions.
The beneficial effects are that: the power grid code test analysis system based on the micro-service architecture can effectively achieve the aim of optimizing the code test analysis efficiency, and in the process of code test analysis, the function module of the code test analysis system is split into a plurality of micro-services according to service functions by utilizing the advantages of the micro-service architecture in the aspects of agile development and rapid deployment, so that a complete single service logic unit is realized, the effective service function logic combination is realized, and the expansibility and maintainability of the code test analysis system are improved. Meanwhile, the code test analysis system based on the micro-service architecture can be configured once and deployed for a plurality of times, can be quickly migrated according to the change of the requirement, can be quickly expanded, and effectively improves the efficiency of the informationized test of the power grid.
Drawings
FIG. 1 is a schematic diagram of a micro-service code test analysis system according to an embodiment of the present invention;
FIG. 2 is a block diagram of a micro-service code test analysis system according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of user rights management in a code test analysis system according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a code detection process in the code test analysis system according to the embodiment of the present invention;
FIG. 5 is a flow chart of creating containers in the code test analysis system provided by the embodiment of the invention;
fig. 6 is a schematic diagram of a micro-service based on container deployment in the code test analysis system according to the embodiment of the present invention.
Detailed Description
The technical scheme of the invention is further described below with reference to the accompanying drawings.
Aiming at the defects that the prior code test analysis system has low resource utilization rate of a host cluster by a code test analysis tool, management maintenance of the system, application migration efficiency and the like in a host cluster working mode, the invention provides a power grid code test analysis system based on a micro-service architecture, which solves the defect of low test efficiency of the prior code test system on one hand, and splits a functional module of the code test analysis system into a plurality of micro-services according to service functions by utilizing the advantage of the micro-service architecture in quick development and quick deployment on the other hand, realizes complete single service logic unit, realizes effective service function logic combination, and improves the expansibility and maintainability of the code test analysis system.
Referring to fig. 1, a micro-service architecture-based power grid code test analysis system generally includes an access part 100, a service part 200 and a maintenance part 300, wherein the access part 100 provides a unified address for a client to access the system, the access part 100 receives a power grid information system software or code test request sent by the client, distributes the request to the service part 200, the service part 200 invokes a corresponding micro-service based on the test request to complete execution of the test task, and the maintenance part 300 monitors an operation state and an invoking link of the micro-service in the system.
In the following, each component of the system is specifically described with reference to fig. 2, as shown in fig. 1 and fig. 2, the access unit 100 includes a gateway 110, where the gateway 110 provides a unified service call portal, isolates external access from an internal system through a routing policy, effectively guarantees dynamic routing of micro services, accesses a client through a system foreground through a unified gateway address, submits a test request, distributes the request to a specific service, and returns a processing result in a unified manner. Because of the large scale, high complexity, wide territory, different protocols and other features of the power information system, any request of accessing the server needs to be distributed to a specific micro service through the micro service gateway scheduling in order to improve the security and reliability of the system. Optionally, the access portion 100 further includes an authentication module 120, where legal user information is stored in the authentication module 120 for the gateway 110 to perform user authentication. For a request initiated from a client, gateway 110 invokes authentication module 120 to verify according to the specified information of the user request, ensuring that the request is reasonable.
The service part 200 is a core component of the system, and provides a response to a test request in a micro-service manner. The invention fully utilizes the mode of supporting the segmentation system by the micro-services, divides boundaries for the functional modules of the system, and combines the services with lower cost through the cooperation of a plurality of micro-services. The system converts the single application of the power grid code testing and analyzing system into a group of micro-services, wherein each micro-service is a subset of the provided services, and each micro-service is an independent service unit with single function. With continued reference to FIG. 2, the micro-service component module 210 includes a user management micro-service 212, an application system micro-service 214, a code engineering micro-service 216, and a code detection micro-service 218, which are independently managed as small granularity components, with the service interior communicating through an RPC or message driven API, and with the information interacting lightly through a RESTful API. The user management micro service 212 is responsible for unified management of system users, and the user management micro service 212 receives unique identification codes registered by the users through mobile phone numbers and mailboxes by a system administrator, and different identification code information has different rights, and transmits the unique identification codes to the application system micro service 214 after logging in by the correct identification codes. The application system micro service 214 provides for the allocation of application systems under different rights for different users, the code engineering micro service 216 provides for the user to query and view the engineering of each application system, wherein the high-rights user can grant rights to the low-rights user, the granted rights user can perform code detection, the code detection micro service 218 performs effective code detection through the configuration pipeline detection method, and finally, the report of the code test is output.
Referring to fig. 3, the users in the micro-service architecture based grid code test analysis system include three classes: the service manager, the responsible person of the application system and the common user (also called as general personnel), unless explicitly indicated otherwise, the "user" in the description refers to the collective name of the three types of users, and the specific situation is to correspondingly execute different operations according to different authorities, so that the common user or the general personnel is not necessarily specified. The service manager is built in the system, has the authority of creating the application, can add and modify responsible persons for the application, and can view all information. The service manager can perform operations such as user creation, password reset and the like, and can effectively count all user information in the platform. The responsible person of the application system is designated by a service manager, has high-level authority in the responsible application, can create engineering and branches, adds member operations for the application, and the like, and checks the information of the application. The general personnel can be added to the independent application by the responsible person of the application system, have partial operation authority of the application, and can view the information of the application. The service manager takes charge of integral user addition, platform configuration, application creation and appointing an application system responsible person, and then the application system responsible person can create engineering and branches and add members for the application in the application after being distributed with the application; according to different data authorities, a common user can newly add a pipeline to each branch of the application and construct the pipeline; in the tested task, checking the corresponding pipeline construction task progress according to different data authorities; in the code analysis, the submitted codes are analyzed, checked and the analysis result is exported according to different data authorities.
In an alternative embodiment, the application system microservice 214 includes a version management unit and a member management unit, where the version management unit is used to perform version engineering branch management under the iteration of compilation package, and an application system responsible person can effectively perform version iteration update management through the version management unit; the member management unit is used for managing the common user personnel by the high-authority management personnel, the high-authority management personnel can set the authority of the common user through the member management unit, and the common user can enter the corresponding code engineering module and the code detection module based on the set authority.
In an alternative embodiment, the code engineering micro service 216 includes a code engineering unit, a branch management unit, and an authorization management unit, where the code engineering unit is used for different authorities to view the engineering of different levels of application systems, where the application system responsible person and the application system common member can see all the engineering under the responsible or involved application system, and can create new code engineering; the branch management unit is used for managing branches of users with different levels, and for a management flow of a complex system, participants with different levels enter projects, and the branch management unit can effectively monitor the projects; the authorization management unit is used for authorizing the code engineering, and an application system responsible person can conduct corresponding code engineering authorization on members in the application system of different code engineering through the authorization management unit.
In an alternative embodiment, code detection micro service 218 includes pipeline units for arranging test tasks in a pipeline, wherein the same pipeline can only allow one test task to execute or queue, and test task execution capacity is full, and test task units for arranging newly built test tasks into a queuing list; if the test task is in full queuing and the pipeline has full capacity in execution or task is in execution, the task is not allowed to be built, the pipeline has task in execution and the task is in queuing, and the task is not allowed to be built. The test task unit is used for executing the steps of the test task, and further can check the log of the test operation.
Referring to fig. 4, in the process of code detection, an application system, a relevant version of the system, an engineering file, an engineering branch, etc. are effectively selected to select a compiled file, and then the compiled file is executed through a pipeline, and tasks are effectively executed through micro services such as Check Engine scanning, software scanning, fortify scanning, dependency checking, etc. are effectively executed.
The service discovery and registration module 220 may implement invocation between micro services, and after the micro service instance is started, register the micro service instance in a service center, compare the service address registered each time to access the service regularly, and determine whether the service is available according to the health status of the service, so as to implement decoupling between the micro services. The configuration module 230 is a centralized configuration management for configuring parameters and switches of the whole service group, provides storage of unified dynamic configuration information under a plurality of environments for micro services, synchronizes updated history record information of each time of newly-added and modified configuration into the micro services in a push-pull mode under each running environment through unified API specification configuration items, and realizes flexible deployment.
According to the power grid code testing and analyzing system based on the micro-service architecture, provided by the invention, the boundary is divided for the functional modules of the system by fully utilizing the mode that the micro-service supports the segmentation system, and on the other hand, the services are combined with lower cost through the cooperation of a plurality of service modules.
However, micro-service architecture is difficult to locate if it fails due to the dispersion of the single application across multiple services, e.g., one service failure may lead to an overall system failure. Therefore, considering timeliness and convenience of fault handling, a system needs to be monitored and managed comprehensively. With continued reference to fig. 2, the maintenance portion 300 includes a monitoring module 310, a security control module 320, and a link tracking module 330. The monitoring module 310 monitors the running state of the service and the call link, and ensures that the micro-service runs in a healthy state. The monitoring module 310 may be implemented, for example, by each component providing an interface (metrics interface) reporting its current status, and the data format output by the interface remaining consistent, and then deploying an index collector component, periodically retrieving and maintaining component status from these interfaces, while providing query services. The security control module 320 immediately handles the abnormal situation of the service. For example, when a service stops responding for various reasons, the caller will typically wait for a period of time and then timeout or receive an error return. If the call link is long, this may result in a request being piled up, and the entire link occupies a lot of resources while waiting for downstream responses. So when multiple accesses to a service fail, the security control module 320 immediately marks that the service has stopped working, returns an error directly, and reestablishes the connection until the service returns to normal. The link tracking module 330 is used for recording and managing service call conditions. A user's request often involves multiple internal service calls. In order to facilitate the positioning problem, it is necessary to be able to record how many service calls and their call relations are generated inside the micro-service when each user requests, i.e. link tracking. The link tracking module 330 may implement link tracking based on a record of information such as time of request, response time, service identification, etc. Each service component can synchronously realize agile development iteration, and effectively store the state information into a database or an external cache when the state information needs to be stored according to the service condition of the code test analysis tool.
In one embodiment, a layering mode of front-end and back-end separation of a Spring Cloud architecture is adopted, user management micro-service, application system micro-service, code engineering micro-service and code detection micro-service are realized in a service layer, and unified operation and security management is carried out through components in the Spring Cloud architecture. Spring Cloud Gateway is adopted as a micro-service gateway, and any request for accessing the server needs to be distributed to specific micro-services through the dispatching of the micro-service gateway. And the Eureka is adopted for service discovery and registration, so that the distributed and high availability of service discovery registration is effectively ensured. The microservice configuration adopts Spring Cloud Config to uniformly manage all configuration files, and effectively obtains the latest configuration information in a non-shutdown state.
The service discovery and registration module 220 in the present invention adopts Eureka as a service registration center, which can realize high availability of the service center and effective service discovery and registration for each micro service. The method comprises the steps that a service registration center is built, a self-registration mode is adopted by a Eureka client, a spring-closed-starter-Eureka-server dependency relationship is added in a pore. Note that the client here refers to a client of Eureka. Service configuration is performed on service names, port numbers, rights, service URLs and the like of the service centers, so that other services can register the service centers. The dependence spring-closed-starter-netflix-eureka is added to each micro-service, and the @ EnableDisoveryClient annotation is added to the main class, indicating that the services of these clients need to be registered in the registry service center. Then, the service of the client is effectively configured, so that the service of the client can be registered into the service center.
In a preferred embodiment, the invention uses Eureka as a service registry, and uses cluster deployment mode to modify and deploy the operation port into 3 nodes at deployment time. The three nodes are master-slave, so that a cluster with data circulation replication is effectively formed, registration information received from one node is synchronously and incrementally replicated on the other two nodes, and the consistency of data of all the registration center nodes of the cluster is ensured. After one of the nodes fails, the client can automatically and circularly retry the other nodes until the available node is found and then continuously used. When a certain node in the cluster recovers from the fault, the full data can be acquired from the rest nodes, and the service can be continuously provided for the outside.
According to the invention, the micro service configuration module 230 stores configuration files in a git mode aiming at a large number of micro services by using Spring-Cloud-Config, so that unified management of the micro service configuration files and real-time updating of the configuration files are effectively ensured, and version management and control of the configuration files are effectively performed. After the micro-service is started, the service center service is found according to the configuration file, the git address configured by the configuration center is found, and then the data of the git address is acquired to configure the micro-service. Load balancing in the architecture is realized by adding spring-closed-starter-fabric dependence and adopting Spring Cloud Ribbon. By adopting the Spring Boot Admin component to monitor the running state of each micro-service, the heartbeat is tracked to find available service examples, the examples are registered and logged out of the registry, the service discovery component and the micro-service architecture are decoupled, and abnormal services are effectively maintained. In addition, detailed information and version information of the micro service can be monitored through Admin, and information such as logs and other memory use, threads and the like of the micro service can be effectively monitored.
In order to improve the continuous integration capability of the service, the invention adopts a Docker container engine, realizes resource isolation through a lightweight virtualization technology, and packages various environment dependent items and application programs so as to promote the migration and deployment of the application programs. The microservices are packaged into separate Docker images, which are then pushed into a private image database. And each time the service is deployed, a corresponding mirror image is extracted from the private mirror image library, and the mirror image is operated according to a preset micro service. The fault self-repairing is realized through the built-in service discovery and load balancing module of the Docker, the collapsed container is replaced under the condition of no service interruption, the capacity can be expanded and contracted at any time, and the elasticity of system management is increased. And dynamically creating a container according to service requirements, and ensuring optimal dynamic utilization of software and hardware resources. In the micro-service work of the system, firstly, monitoring real-time indexes of resource use of software and hardware of a service container through a monitoring device, and enabling a Docker agent to periodically inquire and mark an idle container in operation; then, under the condition of resource permission, preferentially distributing the idle container to the current request, and simultaneously recording the container state and other related container information; if there is no free container, a new container instance is started by the Docker container mirror for allocation. And finally, reading code security inspection analysis service through the Volume mounted in the container catalog, updating a code security inspection analysis component in the container through data analysis, and supporting the provision of code measurement items such as code circle complexity, basic circle complexity, function fan-in, function fan-out, code annotation rate, code line number and the like after the code analysis is completed so as to evaluate the code quality, and comparing the quality of codes of different versions. The flow of dynamically creating a security audit analysis container for micro-service code is shown in fig. 5.
Aiming at the complex and complete business processing flow in the power grid code-oriented test analysis system, the system is split into a plurality of services, each service has a single function and simple business logic, after the Docker mirror image is constructed, because each container runs different micro-service examples, the containers are isolated and deployed with services, each micro-service is registered in the Eureka Server, and the micro-service can be called through a declarative RESTful API. The micro-services deployed based on containers are shown in fig. 6.
According to the code test analysis system, modularization of function application is achieved based on Spring Cloud in a micro-service mode, development and maintenance of functions and reasonable utilization of data resources are facilitated, the characteristics of light weight and dynamic creation of a Docker technology are fully utilized, and efficient utilization of Cloud resources is achieved. Therefore, the efficiency of the informatization test of the power grid is effectively improved.

Claims (7)

1. The utility model provides a power grid code test analysis system based on a micro-service architecture, which is characterized by comprising an access part, a service part and a maintenance part, wherein the access part provides a unified address for a client to access the system, receives a test request sent by the client and distributes the request to the service part; the service part comprises a micro service component module, wherein the micro service component module provides a group of micro services, each micro service is an independent service unit with single function, and the micro service component module calls the corresponding micro service based on the test request to complete the execution of the test task; the maintenance part monitors the running state of the micro-service and the calling link in the system,
the micro service component module comprises a user management micro service, an application system micro service, a code engineering micro service and a code detection micro service, wherein the user management micro service is responsible for unified management of system users, the application system micro service provides the functions of realizing distribution of application systems under different authorities for different users, the code engineering micro service provides the functions of inquiring the engineering of each application system for users, the high authority user can carry out authority authorization for the low authority user, the granted authority user can carry out code detection, the code detection micro service carries out effective code detection through a configuration pipeline detection method, and finally, a report of the code test is output;
the service part comprises a service discovery and registration module and a configuration module, wherein the service discovery and registration module is used for realizing the call between micro services, registering the micro service example to a service center after the micro service example is started, comparing the service address registered each time to access the service regularly, judging whether the service is available or not according to the health state of the service, and realizing the decoupling between the micro services; the configuration module is used for carrying out centralized configuration management on parameters and switches of the whole service group and providing storage of unified dynamic configuration information under a plurality of environments for micro services;
the maintenance part comprises a monitoring module, a safety control module and a link tracking module, wherein the monitoring module, the safety control module and the link tracking module are respectively connected with the micro-service assembly module, and the monitoring module is used for monitoring the running state of the service and the calling link and guaranteeing the micro-service to run in a healthy state; the safety control module is used for immediately processing abnormal conditions of the service; the link tracking module is used for recording and managing service calling conditions.
2. The micro-service architecture-based power grid code test analysis system according to claim 1, wherein the application system micro-service comprises a version management unit and a member management unit, and the version management unit is used for performing version engineering branch management under compiling package iteration; the member management unit is used for managing common user personnel by high-authority management personnel, and the common user can enter corresponding code engineering micro-service and code detection micro-service based on the set authority.
3. The micro-service architecture-based power grid code test analysis system according to claim 1, wherein the code engineering micro-service comprises a code engineering unit, a branch management unit and an authorization management unit, wherein the code engineering unit is used for different authority personnel to check engineering of application systems of different levels; the branch management unit is used for managing branches of users in different levels; the authorization management unit is used for carrying out corresponding code engineering authorization on members in the application systems of different code engineering.
4. The micro-service architecture-based power grid code test analysis system according to claim 1, wherein the code detection micro-service comprises a pipeline unit and a test task unit, the pipeline unit is used for arranging the test tasks in a pipeline form, and the same pipeline can only allow one test task to be executed or queued; the test task unit is used for executing the steps of the test task and checking the log of the test operation.
5. The micro-service architecture-based power grid code test analysis system according to claim 1, wherein the service discovery and registration module uses Eureka as a service registry, wherein three registration nodes are set to be master-slave, a cluster in which data is circularly replicated is formed, and registration information received from one of the nodes can be synchronously and incrementally replicated on the other two nodes.
6. The micro-service architecture-based grid code test analysis system according to claim 1, wherein the access part comprises a gateway, the gateway provides a unified service call entry, external access and internal systems are isolated through a routing policy, a client accesses through a unified gateway address via a system foreground, submits a test request, the gateway distributes the request to a specific service, and a processing result is unified and returned.
7. The micro-service architecture-based power grid code test analysis system according to claim 6, wherein the access part further comprises an authentication module, legal user information is stored in the authentication module for user authentication by the gateway, and for a request initiated from a client, the gateway invokes the authentication module to verify according to the specified information of the user request, so that the rationality of the request is ensured.
CN202110339191.4A 2021-03-30 2021-03-30 Power grid code test analysis system based on micro-service architecture Active CN113127343B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110339191.4A CN113127343B (en) 2021-03-30 2021-03-30 Power grid code test analysis system based on micro-service architecture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110339191.4A CN113127343B (en) 2021-03-30 2021-03-30 Power grid code test analysis system based on micro-service architecture

Publications (2)

Publication Number Publication Date
CN113127343A CN113127343A (en) 2021-07-16
CN113127343B true CN113127343B (en) 2023-11-28

Family

ID=76774922

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110339191.4A Active CN113127343B (en) 2021-03-30 2021-03-30 Power grid code test analysis system based on micro-service architecture

Country Status (1)

Country Link
CN (1) CN113127343B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113742227B (en) * 2021-09-02 2024-01-23 上海浦东发展银行股份有限公司 Control method, device, equipment and medium for software testing process
CN114157464B (en) * 2021-11-23 2022-11-08 北京永信至诚科技股份有限公司 Network test monitoring method and monitoring system
CN114389970A (en) * 2021-12-03 2022-04-22 浙江时空道宇科技有限公司 Link monitoring method and device
CN114615251B (en) * 2022-03-24 2024-05-03 中电科思仪科技股份有限公司 Signal testing instrument cloud control system and method for realizing acquisition and calculation separation
CN114866598B (en) * 2022-04-29 2023-09-19 安徽宝葫芦信息科技集团股份有限公司 Module dynamic expansion and authorization system based on micro-service architecture and USB interface

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106991035A (en) * 2017-04-06 2017-07-28 北京计算机技术及应用研究所 A kind of Host Supervision System based on micro services framework
CN111147322A (en) * 2019-12-13 2020-05-12 中盈优创资讯科技有限公司 Test system and method for micro service architecture of 5G core network
CN112511608A (en) * 2020-11-19 2021-03-16 中国平安财产保险股份有限公司 Micro-service module registration and test method, device, equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10592402B2 (en) * 2017-11-20 2020-03-17 International Business Machines Corporation Automated integration testing with mock microservices
US20190332522A1 (en) * 2018-04-27 2019-10-31 Satori Worldwide, Llc Microservice platform with messaging system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106991035A (en) * 2017-04-06 2017-07-28 北京计算机技术及应用研究所 A kind of Host Supervision System based on micro services framework
CN111147322A (en) * 2019-12-13 2020-05-12 中盈优创资讯科技有限公司 Test system and method for micro service architecture of 5G core network
CN112511608A (en) * 2020-11-19 2021-03-16 中国平安财产保险股份有限公司 Micro-service module registration and test method, device, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于微服务的电力信息***架构研究与设计;陈酌灼等;《南方能源建设》;第7卷;18-24 *

Also Published As

Publication number Publication date
CN113127343A (en) 2021-07-16

Similar Documents

Publication Publication Date Title
CN113127343B (en) Power grid code test analysis system based on micro-service architecture
AU2020200723B2 (en) Systems and methods for blueprint-based cloud management
US11520639B2 (en) Method for allocating and managing cluster resource on cloud platform
US11372749B2 (en) Dependency mapping between program code and tests to rapidly identify error sources
US9413604B2 (en) Instance host configuration
US7502850B2 (en) Verifying resource functionality before use by a grid job submitted to a grid environment
AU2014209611B2 (en) Instance host configuration
US10268574B2 (en) Deployment testing for infrastructure delivery automation
US8966025B2 (en) Instance configuration on remote platforms
Rodriguez-Martinez et al. Open source cloud computing tools: A case study with a weather application
CN108494582A (en) A kind of lower coupling automation operational system and method
CN114661622A (en) Test middleware and test management system
CN110795344A (en) Distributed high-performance computing cluster-oriented debugging system
US10534640B2 (en) System and method for providing a native job control language execution engine in a rehosting platform
Zeng et al. A Novel Construction Technology of Enterprise Business Deployment Architecture Based on Containerized Microservice
US20240111524A1 (en) Configuration Items for Supporting Automations and Efficacies Thereof
CN116991674B (en) High concurrency service architecture for real estate registration information and data processing method thereof
US11989538B2 (en) Orchestration for robotic process automation
US20240022640A1 (en) Rapid Error Detection through Command Validation
US20230394038A1 (en) Dynamic Knowledgebase Generation with Machine Learning
Ramos Pérez A design for an advanced architecture of satellite ground segments
Koval et al. Cluster Management Processes Organization and Handling
Pot’vin et al. Managing Engineered Systems

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