CN114911573A - Operation and maintenance processing method, system and device, storage medium and electronic equipment - Google Patents

Operation and maintenance processing method, system and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN114911573A
CN114911573A CN202210526981.8A CN202210526981A CN114911573A CN 114911573 A CN114911573 A CN 114911573A CN 202210526981 A CN202210526981 A CN 202210526981A CN 114911573 A CN114911573 A CN 114911573A
Authority
CN
China
Prior art keywords
work order
maintenance work
processing
maintenance
state information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210526981.8A
Other languages
Chinese (zh)
Inventor
卢承灏
彭琪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202210526981.8A priority Critical patent/CN114911573A/en
Publication of CN114911573A publication Critical patent/CN114911573A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • 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
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45591Monitoring or debugging support

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The disclosure relates to the field of container cloud, and in particular relates to an operation and maintenance processing method, system, device, storage medium and electronic equipment. The operation and maintenance processing method is applied to application program interface service and comprises the following steps: responding to a processing request of an operation and maintenance work order sent by a processing engine, and determining a target server corresponding to the operation and maintenance work order; establishing remote connection with the target server to obtain an execution result of the operation and maintenance work order returned by the target server; and determining state information according to the execution result, and transmitting the state information back to the processing engine, so that the processing engine generates a processing result corresponding to the operation and maintenance work order according to the state information and returns the processing result to a work order system. The operation and maintenance processing method can decouple the engine service and the business service of the operation and maintenance processing, and realize the automatic processing of the operation and maintenance work order.

Description

Operation and maintenance processing method, system, device, storage medium and electronic equipment
Technical Field
The disclosure relates to the field of container cloud, and in particular relates to an operation and maintenance processing method, an operation and maintenance processing system, an operation and maintenance processing device, a storage medium and electronic equipment.
Background
StackStorm (open source engine system, also known as St2) is a powerful open source automation platform that can link all applications, services and workflows, has extensibility, flexibility, and can tie existing infrastructure and application environments together so that the environment can be automated more easily.
In the prior art, although the StackStorm provides a kubernets (container arrangement management platform) scheme, a high-availability scheme is not actively provided, the design is required by a user, and meanwhile, the problems that unit testing and integration testing steps are complicated, the development efficiency is low, complex logic is easy to crash and the like exist.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The present disclosure aims to provide an operation and maintenance processing method, an operation and maintenance processing system, an operation and maintenance processing apparatus, a storage medium, and an electronic device, and aims to decouple an engine service and a business service of operation and maintenance processing and implement automatic processing of an operation and maintenance work order.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
According to an aspect of the embodiments of the present disclosure, an operation and maintenance processing method is provided, which is applied to an application program interface service, and includes: responding to a processing request of an operation and maintenance work order sent by a processing engine, and determining a target server corresponding to the operation and maintenance work order; establishing remote connection with the target server to obtain an execution result of the operation and maintenance work order returned by the target server; and determining state information according to the execution result, and transmitting the state information back to the processing engine, so that the processing engine generates a processing result corresponding to the operation and maintenance work order according to the state information and returns the processing result to a work order system.
According to some embodiments of the present disclosure, based on the foregoing solution, the method further comprises: acquiring a unit test case of the application program interface service, and developing a simulation client; and debugging by using the development simulation client and the unit test case.
According to some embodiments of the present disclosure, based on the foregoing solution, the method further comprises: constructing a request body based on the application program interface service to obtain an integrated test case; and debugging by using the integrated test case.
According to some embodiments of the present disclosure, based on the foregoing solution, the method further comprises: and configuring the monitoring index of the application program interface service to obtain processing monitoring data corresponding to the monitoring index.
According to some embodiments of the present disclosure, based on the foregoing solution, the method further comprises: and creating a connection with a database of a processing engine to extract a processing result corresponding to the operation and maintenance work order based on the database and generate operation and maintenance processing audit data.
According to a second aspect of the embodiments of the present disclosure, there is provided another operation and maintenance processing method applied to a processing engine, including: periodically extracting a pre-stored operation and maintenance work order from a database; sending a processing request of the operation and maintenance work order to an application program interface service so that the application program interface service establishes remote connection with a target server corresponding to the operation and maintenance work order to obtain state information corresponding to the operation and maintenance work order; and receiving state information corresponding to the operation and maintenance work order returned by the application program interface service, generating a processing result corresponding to the operation and maintenance work order according to the state information, and returning the processing result to a work order system.
According to some embodiments of the present disclosure, based on the foregoing solution, before periodically extracting the pre-stored operation and maintenance work order from the database, the method further includes: sending an acquisition request to the work order system to acquire an original operation and maintenance work order returned by the work order system; searching whether an operation and maintenance work order matched with the work order identification exists in the database based on the work order identification of the original operation and maintenance work order; and when the operation and maintenance work order matched with the work order identifier does not exist in the database, configuring a data structure of the original operation and maintenance work order to obtain a corresponding operation and maintenance work order, and adding a processing identifier for the operation and maintenance work order.
According to some embodiments of the present disclosure, based on the foregoing scheme, after the generating a processing result corresponding to the operation and maintenance work order according to the state information, the method further includes: and deleting the processing identification of the operation and maintenance work order, and storing the processing information of the operation and maintenance work order.
According to some embodiments of the present disclosure, based on the foregoing scheme, after obtaining the original operation and maintenance work order returned by the work order system, the method further includes: and configuring a private key corresponding to the operation and maintenance work order based on the work order information of the original operation and maintenance work order, and generating a hypertext transfer protocol request according to the private key to serve as a processing request corresponding to the operation and maintenance work order.
According to a third aspect of the embodiments of the present disclosure, there is provided an operation and maintenance processing system, including: the work order system is used for receiving a processing result corresponding to the operation and maintenance work order returned by the processing engine and displaying the processing result; the processing engine is used for periodically extracting a prestored operation and maintenance work order from a database and sending a processing request of the operation and maintenance work order to an application program interface service so as to receive state information corresponding to the operation and maintenance work order returned by the application program interface service, and generating a processing result corresponding to the operation and maintenance work order according to the state information and returning the processing result to a work order system; the application program interface service is used for responding to a processing request of an operation and maintenance work order sent by a processing engine, determining a target server corresponding to the operation and maintenance work order, establishing remote connection with the target server to obtain an execution result of the operation and maintenance work order returned by the target server, determining state information according to the execution result, and transmitting the state information back to the processing engine; and the target server is used for establishing remote connection with the application program interface service, executing the operation and maintenance work order to obtain an execution result and returning the execution result to the application program interface service.
According to some embodiments of the disclosure, based on the foregoing, the processing engine is further configured to: sending an acquisition request to the work order system to acquire an original operation and maintenance work order returned by the work order system; searching whether an operation and maintenance work order matched with the work order identification exists in the database based on the work order identification of the original operation and maintenance work order; and when the operation and maintenance work order matched with the work order identification does not exist in the database, configuring the data structure of the original operation and maintenance work order to obtain a corresponding operation and maintenance work order, and adding a processing identification for the operation and maintenance work order.
According to a fourth aspect of the embodiments of the present disclosure, there is provided an operation and maintenance processing apparatus applied to an application program interface service, including: the response module is used for responding to a processing request of the operation and maintenance work order sent by the processing engine and determining a target server corresponding to the operation and maintenance work order; the connection module is used for establishing remote connection with the target server so as to obtain an execution result of the operation and maintenance work order returned by the target server; and the return module is used for determining state information according to the execution result and returning the state information to the processing engine so that the processing engine generates a processing result corresponding to the operation and maintenance work order according to the state information and returns the processing result to the work order system.
According to a fifth aspect of the embodiments of the present disclosure, there is provided another operation and maintenance processing apparatus applied to a processing engine, including: the extraction module is used for periodically extracting the operation and maintenance work orders stored in advance from the database; the processing module is used for sending a processing request of the operation and maintenance work order to an application program interface service so as to enable the application program interface service to establish remote connection with a target server corresponding to the operation and maintenance work order to obtain state information corresponding to the operation and maintenance work order; and the result module is used for receiving the state information corresponding to the operation and maintenance work order returned by the application program interface service, generating a processing result corresponding to the operation and maintenance work order according to the state information and returning the processing result to the work order system.
According to a sixth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the operation and maintenance processing method as in the above embodiments.
According to a fourth aspect of the embodiments of the present disclosure, there is provided an electronic apparatus, including: one or more processors; a storage device, configured to store one or more programs, which when executed by the one or more processors, cause the one or more processors to implement the operation and maintenance processing method as in the above embodiments.
Exemplary embodiments of the present disclosure may have some or all of the following benefits:
in the technical solutions provided in some embodiments of the present disclosure, a part of the operation and maintenance processing is decoupled separately, a part of the execution service is encapsulated as an application program interface service, the application program interface service is used to respond to an operation and maintenance work order processing request sent by a processing engine, so as to establish a remote connection with a target server to obtain an execution result, and finally, state information is determined according to the execution result and is transmitted back to the processing engine, thereby implementing automatic processing of the operation and maintenance work order. On one hand, operation and maintenance personnel can pay more attention to the development of logic in the application program interface service, the adjustment of engine behaviors is reduced, the testing difficulty of a processing system is reduced, and the production efficiency is improved; on the other hand, engine service and service are decoupled, and the problem of inconvenient use of the engine is repaired and avoided in a targeted manner, so that the whole engine assembly is highly available and elastically stretches; on the other hand, the whole set of architecture is suitable for a public cloud environment or a private cloud environment and other cloud environments, code transformation is not needed, the processing result is connected to the work order system in an abutting mode, automatic work order processing can be achieved without human intervention, operation and maintenance cost is reduced, and work order states are updated automatically.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty. In the drawings:
FIG. 1 is a flow chart diagram schematically illustrating an operation and maintenance processing method according to an exemplary embodiment of the present disclosure;
FIG. 2 is a flow diagram schematically illustrating another operation and maintenance processing method in an exemplary embodiment of the present disclosure;
FIG. 3 is a flow chart diagram schematically illustrating a method for pre-storing an operation and maintenance work order in an exemplary embodiment of the present disclosure;
FIG. 4 is a schematic diagram illustrating an operation and maintenance processing system according to an exemplary embodiment of the present disclosure;
FIG. 5 is a schematic diagram illustrating data interaction of an operation and maintenance processing system according to an exemplary embodiment of the present disclosure;
FIG. 6 is a schematic diagram illustrating components of an operation and maintenance processing apparatus according to an exemplary embodiment of the disclosure;
FIG. 7 is a schematic diagram illustrating another exemplary embodiment of an operation and maintenance processing apparatus according to the present disclosure
FIG. 8 schematically illustrates a schematic diagram of a computer-readable storage medium in an exemplary embodiment of the disclosure;
fig. 9 schematically shows a structural diagram of a computer system of an electronic device in an exemplary embodiment of the disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the disclosure.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
Details of implementation of the technical solution of the embodiments of the present disclosure are set forth below.
Fig. 1 schematically illustrates a flowchart of an operation and maintenance processing method in an exemplary embodiment of the present disclosure, which is applied to an application program interface service. As shown in fig. 1, the operation and maintenance processing method includes steps S101 to S103:
step S101, responding to a processing request of an operation and maintenance work order sent by a processing engine, and determining a target server corresponding to the operation and maintenance work order;
step S102, establishing remote connection with the target server to obtain the execution result of the operation and maintenance work order returned by the target server;
step S103, determining state information according to the execution result, and returning the state information to the processing engine, so that the processing engine generates a processing result corresponding to the operation and maintenance work order according to the state information and returns the processing result to the work order system.
In the technical solutions provided in some embodiments of the present disclosure, a part of the operation and maintenance processing is decoupled separately, a part of the execution service is encapsulated as an application program interface service, the application program interface service is used to respond to an operation and maintenance work order processing request sent by a processing engine, so as to establish a remote connection with a target server to obtain an execution result, and finally, state information is determined according to the execution result and is transmitted back to the processing engine, thereby implementing automatic processing of the operation and maintenance work order. On one hand, operation and maintenance personnel can pay more attention to the development of logic in the application program interface service, the adjustment of engine behaviors is reduced, the testing difficulty of a processing system is reduced, and the production efficiency is improved; on the other hand, engine service and service are decoupled, and the problem of inconvenient use of the engine is repaired and avoided in a targeted manner, so that the whole engine assembly is highly available and elastically stretches; on the other hand, the whole set of architecture is suitable for a multi-cloud environment such as a public cloud or a private cloud, code transformation is not needed, the processing result is connected to the work order system in an abutting mode, automatic work order processing can be achieved without human intervention, operation and maintenance cost is reduced, and work order states are updated automatically.
Hereinafter, the operation and maintenance processing method in the present exemplary embodiment will be described in more detail with reference to the drawings and examples.
It should be noted that, the container orchestration management platform kubernets may deploy a processing engine and an application program interface service, and steps S101 to S103 are performed by an api service (i.e., api-server) provided by the decoupled application program interface service.
Specifically, a golang gin framework can be used as a back-end api service, a lightweight web service framework such as a python flash can be used as an api-server, and api-server code logic is controlled by the api-server, so that problems occurring in complex business logic are easy to solve, and the problem can be conveniently and quickly provided for other systems to call.
In step S101, in response to a processing request of the operation and maintenance work order sent by the processing engine, a target server corresponding to the operation and maintenance work order is determined.
In one embodiment of the present disclosure, the processing engine may be a StackStorm that stores the operation and maintenance work order to be processed in the mongo database of the engine in advance, and the operation and maintenance work order is filled out and applied by the user, wherein the server authority is designated.
The processing engine executes the operation and maintenance work orders to be processed according to a certain period, so that the processing requests corresponding to the operation and maintenance work orders are sequentially sent to the api-server, and the api-server determines a corresponding target server for processing the work order according to the server authority in the operation and maintenance work order.
In step S102, a remote connection is established with the target server to obtain an execution result of the operation and maintenance work order returned by the target server.
In one embodiment of the present disclosure, the api-server may include a remote ssh command module, which is capable of remotely connecting to a designated target server, and executing user adding logic, such as determining whether a user exists, whether a user group exists, what permissions a user needs, what initial environment variables are needed, and the like.
Meanwhile, the api-server can also comprise an scp module which is used for transmitting necessary user files to a specified server through the api-server designation to perform necessary server initialization operation.
In step S103, status information is determined according to the execution result, and the status information is transmitted back to the processing engine, so that the processing engine generates a processing result corresponding to the operation and maintenance work order according to the status information and returns the processing result to the work order system.
In an embodiment of the disclosure, after the api-server remotely creates the user flow on the target server, the target server returns the created execution result, returns the status code agreed by the processing engine as the status information according to the execution result, and also can judge whether the execution result is returned normally or abnormally, and returns the result to the processing engine after being packaged.
In one embodiment of the present disclosure, the method further comprises: acquiring a unit test case of the application program interface service, and developing a simulation client; and debugging by using the development simulation client and the unit test case.
Specifically, since the service part in the engine is decoupled, the service logic can be implemented at the api-server, which is a common webserver, and the unit test of the api-server is not limited by any environment. Therefore, unit test case codes can be written, simulation ssh clients can be developed, and the codes can be debugged locally in development.
Based on the method, compared with the prior art that the unit test needs to be specified by python3, the processing engine StackStorm3.6 version is more than that, and the method depends on the test requirements of specific operating system environments such as centros, ubuntu, st2 basic components and the like, the test requirements are reduced, the test and development efficiency can be improved, and the method is friendly to rapid development.
In one embodiment of the present disclosure, the method further comprises: constructing a request body based on the application program interface service to obtain an integrated test case; and debugging by using the integrated test case.
Specifically, for the integration test, only the api needs to be called, and the function is verified without depending on the component of the processing engine StackStorm itself, so that the method can be realized by the following steps: developing an integration test automation code, initializing an environment by starting a service, constructing a common request body request api-server api cleaning environment, and judging a return result. The idempotency of all the steps is guaranteed, i.e. within controllable result return no matter how many times execution is carried out.
Based on the method, compared with the integrated test in the k8s environment, the complex steps of logging in a cluster, entering the pod of an action module, executing a specified action command, inputting a large number of work order parameters or logging in a page, finding out a corresponding action to execute and the like can be avoided, the steps of the integrated test are simplified, page blockage is optimized, and the development efficiency is improved.
In one embodiment of the present disclosure, the method further comprises: and configuring the monitoring index of the application program interface service to obtain processing monitoring data corresponding to the monitoring index.
In particular, prometheus-client can be integrated. For example, a custom monitoring prometheus index can be set and added according to an intermediate process, for example, custom index behaviors such as counting of task execution success, executing a time-consuming instrument panel, function performance time consumption in the process and the like are set, and processing monitoring data corresponding to the prometheus index can be obtained and used for subsequently warning behaviors such as system performance judgment, task processing failure and the like.
Based on the method, the service execution logic monitoring index can be added in the api-server in a user-defined mode, so that the monitoring index is customized in a personalized mode.
In one embodiment of the present disclosure, the method further comprises: and creating a connection with a database of a processing engine to extract a processing result corresponding to the operation and maintenance work order based on the database and generate operation and maintenance processing audit data.
In particular, audit data api may be developed. And pulling an execution record of the execution table from a mongo database of a processing engine StackStorm, applying for a user, expiration time and the like, and generating a personalized statistical report for monthly and quarterly auditing requirements.
Based on the method, the application program interface service api-server and the processing engine StackStorm design share a back-end mongo database, data can be directly acquired to obtain an audit report, and the format type of the audit data can be generated in a customized mode.
In one embodiment of the present disclosure, a middleware layer authentication framework may also be developed, i.e., invoking this api requires passing in a specified authentication token for invocation by the processing engine StackStorm for authentication.
In one embodiment of the present disclosure, continuation apps may also be developed. Namely, pulling a user key value from mongo according to a specified prefix ssh; if no user exists, the key value of the user is automatically cleared by the mongo. If yes, the user key and the user value stored in the monogo are rearranged into a data structure, and the data structure is remotely arranged to the server for continuation.
Fig. 2 schematically illustrates a flow chart of another operation and maintenance processing method applied to a processing engine in an exemplary embodiment of the disclosure. As shown in fig. 2, the operation and maintenance processing method includes steps S201 to S203:
step S201, periodically extracting a prestored operation and maintenance work order from a database;
step S202, sending a processing request of the operation and maintenance work order to an application program interface service so as to enable the application program interface service to establish remote connection with a target server corresponding to the operation and maintenance work order to obtain state information corresponding to the operation and maintenance work order;
step S203, receiving the state information corresponding to the operation and maintenance work order returned by the application program interface service, and generating a processing result corresponding to the operation and maintenance work order according to the state information and returning the processing result to the work order system.
It should be noted that, steps S201 to S203 are executed by the decoupled processing engine StackStorm, and the processing engine StackStorm and the application program interface service api-server are deployed in a kubernets cluster of the container arrangement management platform.
Next, step S201 to step S203 are explained in detail.
In step S201, a pre-stored operation and maintenance work order is periodically extracted from the database.
In one embodiment of the present disclosure, the processing engine StackStorm may obtain the operation and maintenance work order in advance, and store the operation and maintenance work order in the mongo database in advance. The mongo database is written by C + + language and is an open source non-relational database system based on distributed file storage. Under the condition of high load, more nodes are added, the performance of the server can be ensured, and an extensible high-performance data storage solution is provided for WEB application. The mongo database is used for replacing a common relational database, rapid development is easier to carry out, and full-link series connection with a work order system can be carried out.
A cronjob module is developed in the processing engine StackStorm to ensure that rights are honored on a periodic basis. Specifically, the server of the StackStorm is set to reset login permissions of all users every day, and the cronjob module periodically executes cronjob action codes according to a self-defined preset period (for example, 8 hours), and covers the reset time of the server to obtain an operation and maintenance work order in the mongo database to regularly call the back-end api-server to perform permission for resuming.
In addition, a retry strategy can be added to the cronjob module, namely, the execution fails, the execution is retried for a certain number of times after waiting for a certain time, the execution result can be printed to a log for collection by a log collection component, or if a log of a specified error word is collected, an alarm is set to a system administrator.
In step S202, a processing request of the operation and maintenance work order is sent to an application program interface service, so that the application program interface service establishes a remote connection with a target server corresponding to the operation and maintenance work order to obtain state information corresponding to the operation and maintenance work order.
In an embodiment of the disclosure, the processing engine StackStorm can implement automated processing of the operation and maintenance work order, so that the StackStorm calls the api-server according to the operation and maintenance work order to obtain state information corresponding to the operation and maintenance work order returned by the api-server.
Specifically, the processing engine StackStorm may include an action module, and since the service has been decoupled into the application program interface service, the action will be encapsulated as an http initiation module, and the request is transmitted to the api-server at the back end for logic processing.
The detailed description of the api-server returning status information in steps S101 to S103 is already provided, and is not repeated here.
Based on the method, complicated development is not carried out on the action of the StackStorm, the function of decoupling is changed, and http is sent to the backend api-server, so that code prompt generated by the fact that an engine cannot normally refer to a script written by a st2 non-standard library in the prior art can be avoided.
In step S203, receiving the state information corresponding to the operation and maintenance work order returned by the application program interface service, and generating a processing result corresponding to the operation and maintenance work order according to the state information and returning the processing result to the work order system.
In an embodiment of the disclosure, the api-server returns state information corresponding to the operation and maintenance work order, and the processing engine StackStorm judges a subsequent execution process according to the state information returned by the api-server to obtain a processing result.
Specifically, the processing engine StackStorm may include a Workflow module, and if the state information returned by the api-service is success (True), it indicates that the flow is successfully executed, and then the flow enters a success code module of the Workflow module, and if the flow is failed (False), then the flow enters a failure code module of the Workflow module.
The successful code module of the Workflow module processes as follows: and calling the api successfully finished by the work order system, finishing the work order, commenting the work order, successfully executing the work order, and prompting subsequent operation.
If the user side reason is known after entering the failure code module of the Workflow module, calling a work order system rollback api, returning the work order, commenting specific errors and allowing the user to correct the work order.
If the work order enters the failure code module of the Workflow module and is of unknown reason, calling the work order system transfer api, transferring the work order to a system administrator, and printing a log to allow the system administrator to check.
In an embodiment of the present disclosure, before step S201, the operation and maintenance work order needs to be obtained in advance and written into the database of the processing engine. Fig. 3 is a schematic flow chart illustrating a method for pre-storing an operation and maintenance work order in an exemplary embodiment of the disclosure, where as shown in fig. 3, the method for pre-storing an operation and maintenance work order includes the following steps:
step S301, sending an acquisition request to the work order system to acquire an original operation and maintenance work order returned by the work order system;
step S302, searching whether an operation and maintenance work order matched with the work order identifier exists in the database based on the work order identifier of the original operation and maintenance work order;
and step S303, when the operation and maintenance work order matched with the work order identifier does not exist in the database, configuring a data structure of the original operation and maintenance work order to obtain a corresponding operation and maintenance work order, and adding a processing identifier for the operation and maintenance work order.
Specifically, in step S301, an acquisition request is sent to the work order system to acquire the original operation and maintenance work order returned by the work order system.
The user can fill related information in the work order system and designate the authority of the server to obtain the original operation and maintenance work order. The StackStorm processing engine may include a sensor module for periodically scanning the work order system to obtain the original operation and maintenance work orders filled by the user.
In one embodiment of the present disclosure, the processing request parameter is further configured to periodically retrieve a pre-stored operation and maintenance work order from the database based on the processing request parameter. For example, the request parameter may be configured to be 60 seconds, so that the sensor module of the processing engine StackStorm pulls the original operation and maintenance work order from the work order system through the api of the work order system every 60 seconds.
In one embodiment of the present disclosure, the processing engine StackStorm may also set a signature algorithm. According to the authentication requirement of the work order system, before each request, signature is carried out according to request data, and the signature is used for calling the subsequent work order api.
In addition, the pulled data may be processed. And (4) useless data of the work order system is optimized, and only id, project, content, title, creator, handler, mailbox, handler mailbox and requirement type (such as application server login type) of the work order are reserved.
And (4) compiling rule.
In step S302, based on the work order identifier of the original operation and maintenance work order, searching the database for whether an operation and maintenance work order matching the work order identifier exists.
Specifically, the mongo database stores the operation and maintenance work order being processed, in order to avoid repeated processing, a search can be performed from the mongo database based on the key according to a specified unique work order identifier (such as a work order id), and if the search already exists, the work order is already processed, and subsequent writing is not needed; and if the work order is not searched, namely no other sensors are in processing, the work order is written into the mongo database.
In step S303, when there is no operation and maintenance work order matching with the work order identifier in the database, configuring the data structure of the original operation and maintenance work order to obtain a corresponding operation and maintenance work order, and adding a processing identifier to the operation and maintenance work order.
Specifically, when the corresponding work order is not searched in the mongo database, the work order needs to be written into the mongo database, and the data structure is configured to guarantee successful writing into the mongo database by guaranteeing the transactional property. And simultaneously, a distributed lock is developed, and identifications similar to 'processing' and the like are added to the work order based on the work order identification, so that other sensor instances can be informed, and the work order is processed normally.
At this point, the processing engine StackStorm needs to be configured to write a specific number of days to the mongo database via the ttl index using sdk for the mongo database. The key values are respectively: the key is the prefix "ssh" plus "user", the value: "list of servers: [10.1.1.1,10.2.2.2.] "", "" character: xx "," rights: xx ", the expiration time is the specific time of the user application, and if the number of days is not specified, the expiration time is 1 day. And then the application data of the user is managed in the mongo in a centralized way.
In an embodiment of the present disclosure, after the generating a processing result corresponding to the operation and maintenance work order according to the state information, the method further includes: and deleting the processing identification of the operation and maintenance work order, and storing the processing information of the operation and maintenance work order.
Specifically, the distributed lock of the operation and maintenance work order is a temporary lock added for communicating messages with other sensor instances, so that after the operation and maintenance work order is processed, the distributed lock based on the work order id written by the sensor can be deleted at the python script level of st2 action, which represents that the work order flow is ended. In addition, after the processing identifier is deleted, the identifier of the work order can still be kept, so that the work order can still be executed again under the condition of need.
In one embodiment of the present disclosure, after obtaining the original operation and maintenance work order returned by the work order system, the method further includes: and configuring a private key corresponding to the operation and maintenance work order based on the work order information of the original operation and maintenance work order, and generating a hypertext transfer protocol request according to the private key to serve as a processing request corresponding to the operation and maintenance work order.
Specifically, the server authentication adopts a public key and private key mode, the private key is stored in a mongo database used by the Stackstorm by adopting a symmetric encryption method provided by a processing engine, then the private key is packaged into a request body of an http request initiated by action to initiate the http request, and a back-end api-server is called.
It should be noted that, by using a kubernets container orchestration management platform as an infrastructure platform layer, the deployment processing engine StackStorm and the application program interface service api-server can be completely adapted to various cloud environments.
Kubernetes is a container orchestration engine for Google open sources that supports automated deployment, large-scale scalable, application containerization management. When an application is deployed in a production environment, multiple instances of the application are typically deployed to load balance application requests. In the container arrangement management platform, a plurality of containers can be created, an application instance runs in each container, and then management, discovery and access of the group of application instances are realized through a built-in load balancing strategy, and the details do not need operation and maintenance personnel to perform complicated manual configuration and processing.
Helm can also be deployed at the same time. Helm is a client tool under the command line, and is mainly used for creating, packaging, issuing and creating and managing a local and remote Chart warehouse of a Kubernets application program Chart. Tiller is a server of Helm, and is deployed in a kubernets cluster. And (4) performing rapid template rendering on Kubernets by using Helm to specify different configurations, and performing StackStorm deployment. And kubernets HPA may also be configured so that each core component can be dynamically scaled.
Based on the method, the engine service and the business service are decoupled and split into 2 micro-services, on one hand, the problem of multiple instances of the st2 sensor can be solved, the scheme of high availability of the whole assembly, elastic expansion and retraction and on a multi-cloud platform is realized, the work order of the whole process is automated, any link does not need to be manually participated in, on the other hand, the api-server can pertinently replace the engine function, operation and maintenance personnel only need to pay attention to the business development, the purpose of realizing the function at the fastest speed can be achieved, and a large number of codes can be multiplexed, can be continuously called by other platforms, and are easy to expand; secondly, the mongo database and the cronjob task function provided by st2 are used, user data with time limit are managed in a centralized mode, and the problems that records such as the cronjob exist on tens of thousands of machines and user authority operation is dispersed are solved; thirdly, the whole framework realizes the scheme on the multi-cloud platform through a Kubernets container arrangement management platform, the work order of the whole process is automatic, and any link is not required to be manually participated in.
Fig. 4 schematically illustrates a structural diagram of an operation and maintenance processing system in an exemplary embodiment of the present disclosure. As shown in fig. 4, the operation and maintenance processing system may include a work order system 41, a container orchestration management platform kubernets deployed processing engine 42 and application program interface service 43, and a target server 44, where the processing engine 42 may include a sensor module (sensor)421, an initiating module (action)422, a workflow module (workflow)423, and a database (mongo) 424.
Specifically, the work order system 41 is configured to receive a processing result corresponding to the operation and maintenance work order returned by the processing engine, and display the processing result; the processing engine 42 is configured to periodically extract a pre-stored operation and maintenance work order from a database and send a processing request of the operation and maintenance work order to an application program interface service, so as to receive state information corresponding to the operation and maintenance work order returned by the application program interface service, and generate a processing result corresponding to the operation and maintenance work order according to the state information and return the processing result to a work order system; the application program interface service 43 is configured to determine, in response to a processing request of an operation and maintenance work order sent by a processing engine, a target server corresponding to the operation and maintenance work order, establish a remote connection with the target server to obtain an execution result of the operation and maintenance work order returned by the target server, determine state information according to the execution result, and return the state information to the processing engine; and the target server 44 is configured to establish a remote connection with the application program interface service, execute the operation and maintenance work order to obtain an execution result, and return the execution result to the application program interface service.
In one embodiment of the disclosure, the processing engine may be further configured to: sending an acquisition request to the work order system to acquire an original operation and maintenance work order returned by the work order system; searching whether an operation and maintenance work order matched with the work order identification exists in the database based on the work order identification of the original operation and maintenance work order; and when the operation and maintenance work order matched with the work order identifier does not exist in the database, configuring a data structure of the original operation and maintenance work order to obtain a corresponding operation and maintenance work order, and adding a processing identifier for the operation and maintenance work order.
Fig. 5 schematically illustrates a data interaction diagram of an operation and maintenance processing system in an exemplary embodiment of the disclosure. The operation and maintenance processing method of the present disclosure is described in detail below with reference to fig. 5.
Py periodically scans step S501. The work order system is scanned by the sensor module in the processing engine StackStorm according to the requested parameters.
And step S502, returning to the original operation and maintenance work order. The work order system returns the original operation and maintenance work order in response to the request of the processing engine Stackstorm.
And step S503, writing the data structure into mongo. The processing engine StackStorm writes the data structure of the operation and maintenance work order to store the data structure into the mongo database of the StackStorm.
Step S504, action sends http request. The action module of the processing engine StackStorm calls an application program interface service api-service after extracting the operation and maintenance work order from the database, and initiates an http request.
And step S505, establishing a user flow remotely. The action module of the processing engine StackStorm determines a target server according to the server authority specified by the user when filling in the work order, and then remotely creates a user flow.
And step S506, returning an execution result. Returning the result of the operation and maintenance work order by the target server
And step S507, determining state information. And the application program interface service api-service returns state information such as the action appointed state code of the Stackstorm according to the execution result.
And step S508, returning the state information. The application interface service api-service returns state information to the processing engine StackStorm.
Step S509, determine the processing result. And the Workflow module of the processing engine StackStorm judges whether the code module is successfully or unsuccessfully entered according to the returned state information.
And step S510, writing back the processing result. The processing engine StackStorm writes back the processing result to the work order system so that the work order system shows the processing result or notifies the user of the processing result.
Fig. 6 schematically illustrates a composition diagram of an operation and maintenance processing apparatus in an exemplary embodiment of the disclosure, and as shown in fig. 6, the operation and maintenance processing apparatus 600 may include a response module 601, a connection module 602, and a backhaul module 603. Wherein:
the response module 601 is configured to determine, in response to a processing request of an operation and maintenance work order sent by a processing engine, a target server corresponding to the operation and maintenance work order;
a connection module 602, configured to establish a remote connection with the target server to obtain an execution result of the operation and maintenance work order returned by the target server;
and a returning module 603, configured to determine state information according to the execution result, and return the state information to the processing engine, so that the processing engine generates a processing result corresponding to the operation and maintenance work order according to the state information and returns the processing result to the work order system.
According to an exemplary embodiment of the present disclosure, the operation and maintenance processing apparatus 600 further includes a unit test module, configured to obtain a unit test case of the application program interface service, and develop a simulation client; and debugging by using the development simulation client and the unit test case.
According to an exemplary embodiment of the present disclosure, the operation and maintenance processing apparatus 600 further includes an integration test module, configured to build a request body based on the application program interface service to obtain an integration test case; and debugging by using the integrated test case.
According to an exemplary embodiment of the present disclosure, the operation and maintenance processing apparatus 600 further includes a monitoring module, configured to configure a monitoring index of the application program interface service, so as to obtain processing monitoring data corresponding to the monitoring index.
According to an exemplary embodiment of the present disclosure, the operation and maintenance processing apparatus 600 further includes an auditing module, configured to create a connection with a database of a processing engine, so as to extract a processing result corresponding to the operation and maintenance work order based on the database and generate operation and maintenance processing auditing data.
The details of each module in the operation and maintenance processing apparatus 600 are already described in detail in the corresponding operation and maintenance processing method, and therefore are not described herein again.
Fig. 7 schematically illustrates a composition diagram of another operation and maintenance processing apparatus in an exemplary embodiment of the disclosure, and as shown in fig. 7, the operation and maintenance processing apparatus 700 may include an extraction module 701, a processing module 702, and a result module 703. Wherein:
an extracting module 701, configured to periodically extract a pre-stored operation and maintenance work order from a database;
a processing module 702, configured to send a processing request of the operation and maintenance work order to an application program interface service, so that the application program interface service establishes a remote connection with a target server corresponding to the operation and maintenance work order to obtain state information corresponding to the operation and maintenance work order;
and the result module 703 is configured to receive state information corresponding to the operation and maintenance work order returned by the application program interface service, generate a processing result corresponding to the operation and maintenance work order according to the state information, and return the processing result to the work order system.
According to an exemplary embodiment of the present disclosure, the operation and maintenance processing apparatus 700 may be further configured to send an obtaining request to the work order system, so as to obtain an original operation and maintenance work order returned by the work order system; searching whether an operation and maintenance work order matched with the work order identification exists in the database based on the work order identification of the original operation and maintenance work order; and when the operation and maintenance work order matched with the work order identifier does not exist in the database, configuring a data structure of the original operation and maintenance work order to obtain a corresponding operation and maintenance work order, and adding a processing identifier for the operation and maintenance work order.
According to an exemplary embodiment of the present disclosure, the operation and maintenance processing apparatus 700 may be further configured to delete the processing identifier of the operation and maintenance work order, and store the processing information of the operation and maintenance work order.
According to an exemplary embodiment of the present disclosure, the operation and maintenance processing apparatus 700 may be further configured to, after obtaining the original operation and maintenance work order returned by the work order system, configure a private key corresponding to the operation and maintenance work order based on the work order information of the original operation and maintenance work order, and generate a hypertext transfer protocol request according to the private key as the processing request corresponding to the operation and maintenance work order.
The details of each module in the operation and maintenance processing apparatus 700 are already described in detail in the corresponding operation and maintenance processing method, and therefore are not described herein again.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
In an exemplary embodiment of the present disclosure, there is also provided a storage medium capable of implementing the above-described method. Fig. 8 schematically illustrates a schematic diagram of a computer-readable storage medium in an exemplary embodiment of the disclosure, and as shown in fig. 8, a program product 800 for implementing the above method according to an embodiment of the disclosure is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a mobile phone. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided. Fig. 9 schematically shows a structural diagram of a computer system of an electronic device in an exemplary embodiment of the disclosure.
It should be noted that the computer system 900 of the electronic device shown in fig. 9 is only an example, and should not bring any limitation to the functions and the scope of the application of the embodiments of the present disclosure.
As shown in fig. 9, a computer system 900 includes a Central Processing Unit (CPU)901 that can perform various appropriate actions and processes in accordance with a program stored in a Read-Only Memory (ROM) 902 or a program loaded from a storage section 908 into a Random Access Memory (RAM) 903. In the RAM 903, various programs and data necessary for system operation are also stored. The CPU 901, ROM 902, and RAM 903 are connected to each other via a bus 904. An Input/Output (I/O) interface 905 is also connected to bus 904.
The following components are connected to the I/O interface 905: an input portion 906 including a keyboard, a mouse, and the like; an output section 907 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage portion 908 including a hard disk and the like; and a communication section 909 including a Network interface card such as a LAN (Local Area Network) card, a modem, or the like. The communication section 909 performs communication processing via a network such as the internet. The drive 910 is also connected to the I/O interface 905 as necessary. A removable medium 911 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 910 as necessary, so that a computer program read out therefrom is mounted into the storage section 908 as necessary.
In particular, the processes described below with reference to the flowcharts may be implemented as computer software programs, according to embodiments of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 909, and/or installed from the removable medium 911. The computer program executes various functions defined in the system of the present disclosure when executed by a Central Processing Unit (CPU) 901.
It should be noted that the computer readable medium shown in the embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM), a flash Memory, an optical fiber, a portable Compact Disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer-readable signal medium may include a propagated data signal with computer-readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
As another aspect, the present disclosure also provides a computer-readable medium, which may be contained in the electronic device described in the above embodiments; or may be separate and not incorporated into the electronic device. The computer readable medium carries one or more programs which, when executed by an electronic device, cause the electronic device to implement the method described in the above embodiments.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (15)

1. An operation and maintenance processing method is applied to application program interface services, and comprises the following steps:
responding to a processing request of an operation and maintenance work order sent by a processing engine, and determining a target server corresponding to the operation and maintenance work order;
establishing remote connection with the target server to obtain an execution result of the operation and maintenance work order returned by the target server;
and determining state information according to the execution result, and transmitting the state information back to the processing engine, so that the processing engine generates a processing result corresponding to the operation and maintenance work order according to the state information and returns the processing result to a work order system.
2. The operation and maintenance processing method according to claim 1, further comprising:
acquiring a unit test case of the application program interface service, and developing a simulation client;
and debugging by using the development simulation client and the unit test case.
3. The operation and maintenance processing method according to claim 1, further comprising:
constructing a request body based on the application program interface service to obtain an integrated test case;
and debugging by using the integrated test case.
4. The operation and maintenance processing method according to claim 1, further comprising:
and configuring the monitoring index of the application program interface service to acquire processing monitoring data corresponding to the monitoring index.
5. The operation and maintenance processing method according to claim 1, further comprising:
and creating a connection with a database of a processing engine to extract a processing result corresponding to the operation and maintenance work order based on the database and generate operation and maintenance processing audit data.
6. An operation and maintenance processing method is applied to a processing engine, and comprises the following steps:
periodically extracting a pre-stored operation and maintenance work order from a database;
sending a processing request of the operation and maintenance work order to an application program interface service so that the application program interface service establishes remote connection with a target server corresponding to the operation and maintenance work order to obtain state information corresponding to the operation and maintenance work order;
and receiving state information corresponding to the operation and maintenance work order returned by the application program interface service, generating a processing result corresponding to the operation and maintenance work order according to the state information, and returning the processing result to a work order system.
7. The operation and maintenance processing method according to claim 6, wherein before periodically extracting the pre-stored operation and maintenance work order from the database, the method further comprises:
sending an acquisition request to the work order system to acquire an original operation and maintenance work order returned by the work order system;
searching whether an operation and maintenance work order matched with the work order identification exists in the database based on the work order identification of the original operation and maintenance work order;
and when the operation and maintenance work order matched with the work order identifier does not exist in the database, configuring a data structure of the original operation and maintenance work order to obtain a corresponding operation and maintenance work order, and adding a processing identifier for the operation and maintenance work order.
8. The operation and maintenance processing method according to claim 7, wherein after the processing result corresponding to the operation and maintenance work order is generated according to the state information, the method further comprises:
and deleting the processing identification of the operation and maintenance work order, and storing the processing information of the operation and maintenance work order.
9. The operation and maintenance processing method according to claim 7, wherein after obtaining the original operation and maintenance work order returned by the work order system, the method further comprises:
and configuring a private key corresponding to the operation and maintenance work order based on the work order information of the original operation and maintenance work order, and generating a hypertext transfer protocol request according to the private key to serve as a processing request corresponding to the operation and maintenance work order.
10. An operation and maintenance processing system, comprising:
the work order system is used for receiving a processing result corresponding to the operation and maintenance work order returned by the processing engine and displaying the processing result;
the processing engine is used for periodically extracting a prestored operation and maintenance work order from a database and sending a processing request of the operation and maintenance work order to an application program interface service so as to receive state information corresponding to the operation and maintenance work order returned by the application program interface service, and generating a processing result corresponding to the operation and maintenance work order according to the state information and returning the processing result to a work order system;
the application program interface service is used for responding to a processing request of an operation and maintenance work order sent by a processing engine, determining a target server corresponding to the operation and maintenance work order, establishing remote connection with the target server to obtain an execution result of the operation and maintenance work order returned by the target server, determining state information according to the execution result, and transmitting the state information back to the processing engine;
and the target server is used for establishing remote connection with the application program interface service, executing the operation and maintenance work order to obtain an execution result and returning the execution result to the application program interface service.
11. The operation and maintenance processing system of claim 10, wherein the processing engine is further configured to:
sending an acquisition request to the work order system to acquire an original operation and maintenance work order returned by the work order system;
searching whether an operation and maintenance work order matched with the work order identification exists in the database based on the work order identification of the original operation and maintenance work order;
and when the operation and maintenance work order matched with the work order identifier does not exist in the database, configuring a data structure of the original operation and maintenance work order to obtain a corresponding operation and maintenance work order, and adding a processing identifier for the operation and maintenance work order.
12. An operation and maintenance processing device applied to application program interface services, comprising:
the response module is used for responding to a processing request of the operation and maintenance work order sent by the processing engine and determining a target server corresponding to the operation and maintenance work order;
the connection module is used for establishing remote connection with the target server so as to obtain an execution result of the operation and maintenance work order returned by the target server;
and the return module is used for determining state information according to the execution result and returning the state information to the processing engine so that the processing engine generates a processing result corresponding to the operation and maintenance work order according to the state information and returns the processing result to the work order system.
13. An operation and maintenance processing device applied to a processing engine, comprising:
the extraction module is used for periodically extracting the operation and maintenance work orders stored in advance from the database;
the processing module is used for sending a processing request of the operation and maintenance work order to an application program interface service so as to enable the application program interface service to establish remote connection with a target server corresponding to the operation and maintenance work order to obtain state information corresponding to the operation and maintenance work order;
and the result module is used for receiving the state information corresponding to the operation and maintenance work order returned by the application program interface service, generating a processing result corresponding to the operation and maintenance work order according to the state information and returning the processing result to the work order system.
14. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the operation and maintenance processing method according to any one of claims 1 to 9.
15. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the operation and maintenance processing method of any of claims 1 to 9.
CN202210526981.8A 2022-05-16 2022-05-16 Operation and maintenance processing method, system and device, storage medium and electronic equipment Pending CN114911573A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210526981.8A CN114911573A (en) 2022-05-16 2022-05-16 Operation and maintenance processing method, system and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210526981.8A CN114911573A (en) 2022-05-16 2022-05-16 Operation and maintenance processing method, system and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN114911573A true CN114911573A (en) 2022-08-16

Family

ID=82766391

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210526981.8A Pending CN114911573A (en) 2022-05-16 2022-05-16 Operation and maintenance processing method, system and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN114911573A (en)

Similar Documents

Publication Publication Date Title
US10095499B2 (en) Optimization for multi-project package manager
CN109120678B (en) Method and apparatus for service hosting of distributed storage system
US10540209B2 (en) Event-driven blockchain workflow processing
US10909186B2 (en) Multi-tenant customizable composites
US9817645B2 (en) Reusable application configuration with dynamic resource determination
US11729174B2 (en) Triggering and controlling workflows across applications and services used in cloud computing systems
US10949196B2 (en) Composite instance patching
US20100205475A1 (en) Meta-data driven, service-oriented architecture (soa)-enabled, application independent interface gateway
US10901804B2 (en) Apparatus and method to select services for executing a user program based on a code pattern included therein
US11797273B2 (en) System and method for enhancing component based development models with auto-wiring
KR20140047580A (en) Method and system for synchronization mechanism on multi-server reservation system
CN102187314A (en) Interactive design environments to visually model, debug and execute resource oriented programs
US11392366B1 (en) Optimized compilation of pipelines for continuous delivery of services on datacenters configured in cloud platforms
JP2016143423A (en) Computer program, apparatus, and method for providing multifunctional peripheral device with access to external web services
CN111126948A (en) Processing method and device for approval process
CN110851355B (en) Front-end engineering implementation method and device, storage medium and electronic equipment
CN112947992B (en) Code version management method and device
CN110443034B (en) Risk program file identification method and device, computing equipment and medium
CN116737662A (en) Method, device, electronic equipment and storage medium for processing business data
TWI571754B (en) Method for performing file synchronization control, and associated apparatus
CN114911573A (en) Operation and maintenance processing method, system and device, storage medium and electronic equipment
CN113918525A (en) Data exchange scheduling method, system, electronic device, medium, and program product
CN109683942B (en) Script management method, script management device, script management medium and electronic equipment
CN111143408B (en) Event processing method and device based on business rule
CN115955409B (en) Method and related device for changing arrangement

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