CN115150291A - Operation and maintenance system and method based on event driving - Google Patents

Operation and maintenance system and method based on event driving Download PDF

Info

Publication number
CN115150291A
CN115150291A CN202210783331.1A CN202210783331A CN115150291A CN 115150291 A CN115150291 A CN 115150291A CN 202210783331 A CN202210783331 A CN 202210783331A CN 115150291 A CN115150291 A CN 115150291A
Authority
CN
China
Prior art keywords
agent
automatic operation
task
event
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210783331.1A
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.)
Bank of China Ltd
Original Assignee
Bank of China 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202210783331.1A priority Critical patent/CN115150291A/en
Publication of CN115150291A publication Critical patent/CN115150291A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5041Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the time relationship between creation and deployment of a service

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides an operation and maintenance system and method based on event driving, which can be used in the field of distributed technology, and the system comprises: and (3) web page side: the system comprises a scheduling server, a task execution event server and a task execution module, wherein the scheduling server is used for sending an automatic operation and maintenance task execution event to the scheduling server; the scheduling server: the system comprises a server, a server and a server, wherein the server is used for acquiring target servers and registering an Agent for each target server; triggering an initialization Agent event and sending an initialization Agent instruction to a target server; clearing Agent registration information; triggering an Agent cleaning event and sending an Agent cleaning instruction to a target server; the target server: the method is used for initializing Agent operation; cleaning an Agent working space; agent: the system is used for executing the automatic operation and maintenance task after being started; and after the automatic operation and maintenance task is executed, an Agent success event is sent to the scheduling server, and the Agent process is quitted. The invention has the advantages of high effective utilization rate of resources, low maintenance and upgrade cost and small potential safety hazard.

Description

Operation and maintenance system and method based on event driving
Technical Field
The invention relates to the field of distributed technology, in particular to an operation and maintenance system and method based on event driving.
Background
With the prevalence of the X86 distributed architecture, the server deployment scale of IT products is multiplied, and the server scale of large-scale internet company computer rooms is many tens of thousands, with the consequent higher and higher manual operation and maintenance costs, and greater demands for automated operation and maintenance. At present, when the industry implements automatic operation and maintenance operations, an Agent needs to be installed in advance in a target server, a long link between a scheduling server and an Agent end is established, and the Agent is always in a monitoring state and waits for the scheduling server to send an instruction; and the scheduling server executes related operation and maintenance operations by sending related task instructions to the Agent and feeds back an execution result. However, the above method requires Agent to reside in the target server, and occupies hardware resources of the target server for a long time, resulting in low effective utilization rate of resources, and meanwhile, the method also has the problems of high maintenance and upgrade cost and great potential safety hazard.
In summary, how to realize the life cycle self-management of the automatic operation and maintenance device without resident target server is a problem to be solved, and a convenient and fast maintenance method needs to be provided to reduce the potential safety hazard.
Disclosure of Invention
The embodiment of the invention provides an operation and maintenance system based on event driving, which is used for realizing a life cycle self-management automatic operation and maintenance scheme without a resident target server, and has the advantages of high effective utilization rate of resources, low maintenance and upgrade cost and small potential safety hazard, and the system comprises:
and (3) web page side: the system comprises a scheduling server and a user interface, wherein the scheduling server is used for receiving an automatic operation and maintenance task instruction initiated by the user on the basis of a selected automatic operation and maintenance task on a visual page and sending an automatic operation and maintenance task execution event to the scheduling server;
a scheduling server: the automatic operation and maintenance task management system is used for acquiring target servers related to the automatic operation and maintenance task after receiving an execution event of the automatic operation and maintenance task, registering agents for each target server and generating Agent registration information; after the Agent is successfully registered, triggering an initialization Agent event, pushing an Agent installation package and an automatic operation and maintenance task to a target server, and sending an initialization Agent instruction to the target server; after an Agent success event is received, agent registration information is cleared; triggering an Agent cleaning event and sending an Agent cleaning instruction to a target server;
the target server: the terminal is used for carrying out initialization Agent operation after receiving an initialization Agent instruction and starting an Agent on the target server; after an Agent cleaning instruction is received, cleaning an Agent working space;
agent: the system is used for executing the automatic operation and maintenance task on the target server after being started; and after the automatic operation and maintenance task is executed, an Agent success event is sent to the scheduling server, and the Agent process is quitted.
The embodiment of the invention provides an operation and maintenance method based on event driving, which is used for realizing an automatic operation and maintenance scheme with self-management of a life cycle and without resident target servers, and has the advantages of high effective utilization rate of resources, low maintenance and upgrade cost and small potential safety hazard, and the method comprises the following steps:
after receiving an execution event of an automatic operation and maintenance task, acquiring target servers related to the automatic operation and maintenance task, registering an Agent for each target server, and generating Agent registration information; the automatic operation and maintenance task execution event is initiated by a webpage end after receiving an automatic operation and maintenance task instruction of a user, and the automatic operation and maintenance task instruction is initiated by the user on the basis of a selected automatic operation and maintenance task on a visual page;
after the Agent is successfully registered, triggering an initialization Agent event, pushing an Agent installation package and an operation and maintenance task to be executed to a target server, and sending an initialization Agent instruction to the target server; after receiving an initialization Agent command, the target server performs initialization Agent operation and starts up the Agent on the target server; after the Agent is started, executing an automatic operation and maintenance task on a target server, after the automatic operation and maintenance task is executed, feeding back an Agent success event, and exiting an Agent process;
after an Agent success event is received, agent registration information is cleared;
triggering an Agent cleaning event, and sending an Agent cleaning instruction to a target server, wherein the target server cleans an Agent working space after receiving the Agent cleaning instruction.
The embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and when the processor executes the computer program, the event-driven operation and maintenance method is implemented.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the method for operation and maintenance based on event driving is implemented.
The embodiment of the present invention further provides a computer program product, where the computer program product includes a computer program, and when the computer program is executed by a processor, the above operation and maintenance method based on event driving is implemented.
In the embodiment of the invention, the webpage end: the system comprises a scheduling server and a user interface, wherein the scheduling server is used for receiving an automatic operation and maintenance task instruction initiated by the user on the basis of a selected automatic operation and maintenance task on a visual page and sending an automatic operation and maintenance task execution event to the scheduling server; a scheduling server: the automatic operation and maintenance task management system is used for acquiring target servers related to the automatic operation and maintenance task after receiving an execution event of the automatic operation and maintenance task, registering agents for each target server and generating Agent registration information; after the Agent is successfully registered, triggering an initialization Agent event, pushing an Agent installation package and an automatic operation and maintenance task to a target server, and sending an initialization Agent instruction to the target server; after an Agent success event is received, agent registration information is cleared; triggering an Agent cleaning event and sending an Agent cleaning instruction to a target server; the target server: the terminal is used for carrying out initialization Agent operation after receiving an initialization Agent instruction and starting an Agent on the target server; after an Agent cleaning instruction is received, cleaning an Agent working space; the Agent: the system is used for executing the automatic operation and maintenance task on the target server after being started; and after the automatic operation and maintenance task is executed, an Agent success event is sent to the scheduling server, and the Agent process is quitted. In the process, the Agent does not need to be installed in the target server in advance, and the Agent installation, the task execution and the Agent destruction are carried out in an event-driven mode, so that the life cycle management of the Agent is realized. The scheduling server is responsible for task scheduling and event processing, the Agent is responsible for task execution, and the Agent process automatically exits after the task execution is finished, so that the target server resource is not occupied. In addition, the Agent only runs during the task execution period, so that the safety risk is effectively reduced, and the safety is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
FIG. 1 is a first schematic diagram of an event-driven operation and maintenance system according to an embodiment of the present invention;
FIG. 2 is a second schematic diagram of an event-driven operation and maintenance system according to an embodiment of the present invention;
FIG. 3 is a flow chart of performing automatic operation and maintenance according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating an event process for automatic operation and maintenance according to an embodiment of the present invention;
FIG. 5 is a flowchart of an event-driven operation and maintenance method according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a computer device in an embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention.
In the description of the present specification, the terms "comprising," "including," "having," "containing," and the like are used in an open-ended fashion, i.e., to mean including, but not limited to. Reference to the description of the terms "one embodiment," "a particular embodiment," "some embodiments," "for example," etc., means that a particular feature, structure, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. The sequence of steps involved in the embodiments is for illustrative purposes to illustrate the implementation of the present application, and the sequence of steps is not limited and can be adjusted as needed.
Terms related to the embodiments of the present invention are explained below.
Event-driven: simply, it is what button to click (i.e., what event to generate), and what operation the computer performs (i.e., what function to call). The event is not limited to the operation of the user. The core of event-driven is naturally an event. From the event perspective, the basic structure of the event driver is composed of an event collector, an event sender and an event processor. The event collector is specifically responsible for collecting all events, including those from the user (e.g., mouse, keyboard events, etc.), from hardware (e.g., clock events, etc.), and from software (e.g., operating system, applications themselves, etc.). The event sender is responsible for distributing the events collected by the collector into the target object. The event handler does specific event response work, which is often determined completely by the implementation phase, and therefore a virtual function mechanism (function name is often taken to be a name similar to HandleMsg) needs to be applied.
C/S model: the C/S is the Client (Agent) and the Server (Server). And the Agent establishes connection with the server to complete communication and complete C/S information transmission or instruction sending under the condition of knowing the ip and the port of the server.
The scheduling server: the Server in the C/S model is responsible for task scheduling, event receiving, sending and processing.
Agent: the client (Agent) in the C/S model is responsible for specific task execution.
The target server: the application server of the business product refers to a target node which needs to execute the operation and maintenance task in the invention.
A resident process: the system is operated on a server as a fixed process, and occupies hardware resources such as partial CPU, internal memory, disk space and the like.
Fig. 1 is a first schematic diagram of an event-driven operation and maintenance system according to an embodiment of the present invention, as shown in fig. 1, including:
the webpage side 101: the system comprises a scheduling server and a user interface, wherein the scheduling server is used for receiving an automatic operation and maintenance task instruction initiated by the user on the basis of a selected automatic operation and maintenance task on a visual page and sending an automatic operation and maintenance task execution event to the scheduling server;
the dispatch server 102: the automatic operation and maintenance task management system is used for acquiring target servers related to the automatic operation and maintenance task after receiving an execution event of the automatic operation and maintenance task, registering agents for each target server and generating Agent registration information; after the Agent is successfully registered, triggering an initialization Agent event, pushing an Agent installation package and an automatic operation and maintenance task to a target server, and sending an initialization Agent instruction to the target server; after an Agent success event is received, agent registration information is cleared; triggering an Agent cleaning event and sending an Agent cleaning instruction to a target server;
the target server 103: the terminal is used for carrying out initialization Agent operation after receiving an initialization Agent instruction and starting an Agent on the target server; after an Agent cleaning instruction is received, cleaning an Agent working space;
and (6) Agent104: the system is used for executing the automatic operation and maintenance task on the target server after being started; and after the automatic operation and maintenance task is executed, an Agent success event is sent to the scheduling server, and the Agent process is quitted.
In the embodiment of the invention, the Agent does not need to be installed in the target server in advance, and the Agent installation, the task execution and the Agent destruction are carried out in an event-driven mode, so that the life cycle management of the Agent is realized. The scheduling server is responsible for task scheduling and event processing, the Agent is responsible for task execution, and the Agent process automatically exits after the task execution is finished, so that the target server resource is not occupied. In addition, the Agent only runs during the task execution period, so that the safety risk is effectively reduced, and the safety is improved.
Wherein, the Agent is deployed on the target server.
Fig. 2 is a second schematic diagram of the event-driven operation and maintenance system according to an embodiment of the present invention, in which the system further includes a database 105;
the scheduling server is specifically configured to: agents are registered in a registry for agents of each target server stored in the database, and Agent registration information is generated.
In an embodiment, the scheduling server is specifically configured to:
after an Agent success event is received, a task state table in a database is updated, whether Agent registration information in an Agent registration table exists or not is inquired, and if yes, the Agent registration information is cleared.
In an embodiment, the Agent is further configured to: the method comprises the steps that when an automatic operation and maintenance task is executed, synchronization is kept between the automatic operation and maintenance task and a scheduling server through a heartbeat event, and a task execution state and a task execution log are synchronized to the scheduling server;
the dispatch server is further configured to: updating a task state table in a database according to the task execution state, and storing a task execution log into the database;
the webpage end is also used for: inquiring a task execution state table from a database and displaying the current task execution state; and querying a task execution log from a database and displaying.
In the above embodiment, it can be concluded that there are three threads inside the Agent: the system is used for (1) being responsible for automatic operation and maintenance task execution; (2) is responsible for heartbeat synchronization; (3) And the task execution state and the task execution log are synchronized.
In an embodiment, the scheduling server is further configured to:
and after all the automatic operation and maintenance tasks are finished, sending a task success event to the webpage end.
In one embodiment, the web page side is further configured to:
and receiving an automatic operation and maintenance task configured on the visual page by the user.
In an embodiment, the target server is specifically configured to:
after receiving the pushed Agent installation package and the automatic operation and maintenance task each time, changing the account password of the target server;
the scheduling server is specifically configured to: and pushing an Agent installation package and an automatic operation and maintenance task to the target server according to the changed account password of the target server.
Based on the above embodiment, fig. 3 is a flowchart of performing automatic operation and maintenance in the embodiment of the present invention, including:
s1: the method comprises the steps that a webpage end receives an automatic operation and maintenance task configured on a visual page by a user;
s2: the method comprises the steps that a webpage end receives an automatic operation and maintenance task instruction initiated by a user on a visual page based on a selected automatic operation and maintenance task;
s3: the webpage end sends an automatic operation and maintenance task execution event to the scheduling server;
s4: the method comprises the steps that a scheduling server obtains a target server related to an automatic operation and maintenance task, registers an Agent in a registry for the Agent of each target server stored in a database, and generates Agent registration information;
s5: after the scheduling server successfully registers the Agent, triggering an initialization Agent event, pushing an Agent installation package and an automatic operation and maintenance task to a target server, and sending an initialization Agent instruction to the target server;
s6: the target server carries out initialization Agent operation and starts the Agent on the target server;
s7: after the Agent is started, executing an automatic operation and maintenance task on a target server;
s8: the Agent keeps synchronization with the scheduling server through a heartbeat event while executing the automatic operation and maintenance task, and synchronizes a task execution state and a task execution log to the scheduling server;
s9: the scheduling server updates a task state table in the database according to the task execution state and stores the task execution log into the database;
s10: the webpage end inquires a task execution state table from a database and displays the current task execution state; inquiring a task execution log from a database and displaying the task execution log;
s11: after the Agent executes the automatic operation and maintenance task, an Agent success event is sent to a scheduling server, and the Agent process is quitted;
s12: the scheduling server updates a task state table in the database and clears Agent registration information;
s13: the scheduling server triggers an Agent cleaning event and sends an Agent cleaning instruction to the target server;
s14: the target server cleans up the Agent working space;
s15: and after all the automatic operation and maintenance tasks are finished, the scheduling server sends a task success event to the webpage end.
Through the process, the scheduling server manages the agents in an event-driven mode, completes full life cycle management of initialization, starting, task execution, state synchronization and destruction, and realizes a lightweight automatic operation and maintenance system.
For the system, technicians need to develop and schedule the Server in an event-driven mode to complete the development of the event receiver, the event distributor and the event processing function. The events to be processed include, but are not limited to, an automation operation and maintenance task execution event, an initialization Agent event, an Agent success event, an Agent failure event, a heartbeat event, an Agent cleaning event, a task success event, and the like. Fig. 4 is a flowchart of event processing of automatic operation and maintenance in the embodiment of the present invention. The process specifically comprises the following contents:
first, developing an Agent program requires support for event-driven, agents need to provide multiple threads: (1) responsible for task execution; (2) is responsible for heartbeat synchronization; (3) And the task execution state and the task execution log are synchronized.
And secondly, preparing the operating environment of the Agent program, packaging the operating environment and the Agent program into an Agent installation package, and placing the Agent installation package on the Server.
And thirdly, completing the process design driven by the event, and ensuring the closed loop of the event flow.
Fourthly, aiming at the data interaction between the Server and the Agent, a database table structure is designed, the database table structure comprises an Agent registry and a task state table, and the registry information and the state data of the related automatic operation and maintenance task are stored.
Among them, the most important and difficult parts are the deployment of servers, the development of agents, and the event-driven flow design.
In summary, the system provided by the embodiment of the present invention has the following beneficial effects:
firstly, the Agent is installed and destroyed and the task is scheduled and executed in an event-driven mode, the Agent does not need to be installed in advance and resident in a target Server, the Agent automatically exits after the task is executed, a scheduling Server executes the working space cleaning on the target Server, the Agent installation package and temporary files generated in the execution process are deleted, the target Server is not invaded, and the resource utilization rate is improved.
Secondly, the Agent installation package has a running environment and does not have strong dependence on a target server. Agent installation does not need privileged accounts (root, admin), and can be completed only by a common user, and the user password supports regular change, thereby reducing the security risk.
And thirdly, when the Agent needs to be upgraded and installed, only the installation package of the scheduling server needs to be updated, the maintenance target server is not involved, and the later maintenance cost is reduced.
The embodiment of the invention also provides an operation and maintenance method based on event driving, the principle of which is similar to that of an operation and maintenance system based on event driving, and details are not repeated here.
Fig. 5 is a flowchart of an operation and maintenance method based on event driving in an embodiment of the present invention, including:
step 501, after receiving an execution event of an automatic operation and maintenance task, acquiring target servers related to the automatic operation and maintenance task, registering agents for each target server, and generating Agent registration information; the automatic operation and maintenance task execution event is initiated by a webpage end after receiving an automatic operation and maintenance task instruction of a user, and the automatic operation and maintenance task instruction is initiated by the user on the basis of a selected automatic operation and maintenance task on a visual page;
step 502, after the Agent is successfully registered, triggering an initialization Agent event, pushing an Agent installation package and an operation and maintenance task to be executed to a target server, and sending an initialization Agent instruction to the target server; after receiving an initialization Agent instruction, the target server performs initialization Agent operation and starts up the Agent on the target server; after the Agent is started, executing an automatic operation and maintenance task on a target server, after the automatic operation and maintenance task is executed, feeding back an Agent success event, and exiting an Agent process;
step 503, after an Agent success event is received, agent registration information is cleared;
and step 504, triggering an Agent cleaning event, and sending an Agent cleaning instruction to a target server, wherein the target server cleans an Agent working space after receiving the Agent cleaning instruction.
In one embodiment, registering an Agent for each target server, and generating Agent registration information includes:
agents for each target server stored in the database are registered in a registry, and Agent registration information is generated.
In one embodiment, cleaning Agent registration information includes:
after an Agent success event is received, a task state table in a database is updated, whether Agent registration information in an Agent registration table exists or not is inquired, and if yes, the Agent registration information is cleared.
In an embodiment, the method further comprises:
updating a task state table in a database according to the task execution state, and storing a task execution log into the database; the webpage side inquires a task execution state table from a database and displays the current task execution state, and inquires a task execution log from the database and displays the task execution log;
and the task execution state and the task execution log are synchronized by the Agent through a heartbeat event while the Agent executes the automatic operation and maintenance task.
In one embodiment of the present invention, the substrate is, the method further comprises the following steps:
and after all the automatic operation and maintenance tasks are finished, sending a task success event to the webpage end.
In an embodiment, the method further comprises:
and receiving an automatic operation and maintenance task configured on a visual page by a user through a webpage end.
In an embodiment, the method further comprises:
according to the changed account password of the target server, pushing an Agent installation package and an automatic operation and maintenance task to a target server;
and the target server changes the account password of the target server after receiving the pushed Agent installation package and the automatic operation and maintenance task each time.
In summary, the method provided by the embodiment of the invention has the following beneficial effects:
firstly, an event-driven mode is adopted to carry out the installation and destruction of the Agent and the scheduling execution of the task, the Agent does not need to be installed in advance, the Agent does not need to reside in a target Server, the Agent exits automatically after the task is executed, the scheduling Server executes the working space cleaning on the target Server, the Agent installation package, temporary files generated in the executing process and the like are deleted, the target Server is not invaded, and the resource utilization rate is improved.
Secondly, the Agent installation package has a running environment and does not have strong dependence on a target server. Agent installation does not need privileged accounts (root, admin), and can be completed only by a common user, and the user password supports regular change, thereby reducing the security risk.
And thirdly, when the Agent needs to be upgraded and installed, only the installation package of the scheduling server needs to be updated, the maintenance target server is not involved, and the later maintenance cost is reduced.
Fig. 6 is a schematic diagram of a computer device in an embodiment of the present invention, where the computer device includes a memory 610, a processor 620, and a computer program 630 stored in the memory 610 and capable of running on the processor 620, and when the processor 620 executes the computer program 630, the above-mentioned operation and maintenance method based on event driving is implemented.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the operation and maintenance method based on event driving is implemented.
An embodiment of the present invention further provides a computer program product, where the computer program product includes a computer program, and when the computer program is executed by a processor, the above operation and maintenance method based on event driving is implemented.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (17)

1. An event-driven operation and maintenance system, comprising:
a webpage end: the system comprises a scheduling server and a user interface, wherein the scheduling server is used for receiving an automatic operation and maintenance task instruction initiated by the user on the basis of a selected automatic operation and maintenance task on a visual page and sending an automatic operation and maintenance task execution event to the scheduling server;
a scheduling server: the automatic operation and maintenance task management system is used for acquiring target servers related to an automatic operation and maintenance task after receiving an execution event of the automatic operation and maintenance task, registering agents for each target server and generating Agent registration information; after the Agent is successfully registered, triggering an initialization Agent event, pushing an Agent installation package and an automatic operation and maintenance task to a target server, and sending an initialization Agent instruction to the target server; after an Agent success event is received, agent registration information is cleared; triggering an Agent cleaning event and sending an Agent cleaning instruction to a target server;
the target server: the Agent initializing unit is used for carrying out initializing Agent operation after receiving an initializing Agent command and starting the Agent on the target server; after an Agent cleaning instruction is received, cleaning an Agent working space;
agent: the system is used for executing the automatic operation and maintenance task on the target server after being started; and after the automatic operation and maintenance task is executed, an Agent success event is sent to the scheduling server, and the Agent process is quitted.
2. The system of claim 1, further comprising a database;
the scheduling server is specifically configured to: agents are registered in a registry for agents of each target server stored in the database, and Agent registration information is generated.
3. The system of claim 2, wherein the scheduling server is specifically configured to:
after an Agent success event is received, a task state table in a database is updated, whether Agent registration information in an Agent registration table exists or not is inquired, and if yes, the Agent registration information is cleared.
4. The system of claim 3, wherein the Agent is further to: the method comprises the steps that when an automatic operation and maintenance task is executed, synchronization is kept between the automatic operation and maintenance task and a scheduling server through a heartbeat event, and a task execution state and a task execution log are synchronized to the scheduling server;
the dispatch server is further configured to: updating a task state table in a database according to the task execution state, and storing a task execution log into the database;
the webpage end is also used for: inquiring a task execution state table from a database and displaying the current task execution state; and querying a task execution log from a database and displaying.
5. The system of claim 1, wherein the dispatch server is further to:
and after all the automatic operation and maintenance tasks are finished, sending a task success event to the webpage end.
6. The system of claim 1, wherein the web site is further configured to:
and receiving an automatic operation and maintenance task configured on the visual page by the user.
7. The system of claim 1, wherein the target server is specifically configured to:
after receiving the pushed Agent installation package and the automatic operation and maintenance task each time, changing the account password of the target server;
the scheduling server is specifically configured to: and pushing an Agent installation package and an automatic operation and maintenance task to the target server according to the changed account password of the target server.
8. An operation and maintenance method based on event driving is characterized by comprising the following steps:
after receiving an execution event of the automatic operation and maintenance task, acquiring target servers related to the automatic operation and maintenance task, registering agents for each target server, and generating Agent registration information; the automatic operation and maintenance task execution event is initiated by a webpage end after receiving an automatic operation and maintenance task instruction of a user, and the automatic operation and maintenance task instruction is initiated by the user on the basis of a selected automatic operation and maintenance task on a visual page;
after the Agent is successfully registered, triggering an initialization Agent event, pushing an Agent installation package and an operation and maintenance task to be executed to a target server, and sending an initialization Agent instruction to the target server; after receiving an initialization Agent instruction, the target server performs initialization Agent operation and starts up the Agent on the target server; after the Agent is started, executing an automatic operation and maintenance task on a target server, after the automatic operation and maintenance task is executed, feeding back an Agent success event, and exiting an Agent process;
after an Agent success event is received, agent registration information is cleared;
triggering an Agent cleaning event, and sending an Agent cleaning instruction to a target server, wherein the target server cleans an Agent working space after receiving the Agent cleaning instruction.
9. The method of claim 8, wherein registering an Agent for each target server, generating Agent registration information, comprises:
agents are registered in a registry for agents of each target server stored in the database, and Agent registration information is generated.
10. The method of claim 9, wherein cleaning Agent registration information comprises:
after an Agent success event is received, a task state table in a database is updated, whether Agent registration information in an Agent registration table exists or not is inquired, and if yes, the Agent registration information is cleared.
11. The method of claim 10, further comprising:
updating a task state table in a database according to the task execution state, and storing a task execution log into the database; the webpage side inquires a task execution state table from a database and displays the current task execution state, and inquires a task execution log from the database and displays the task execution log;
and the task execution state and the task execution log are synchronized by the Agent through a heartbeat event while the Agent executes the automatic operation and maintenance task.
12. The method of claim 8, further comprising:
and after all the automatic operation and maintenance tasks are finished, sending a task success event to the webpage end.
13. The method of claim 8, further comprising:
and receiving an automatic operation and maintenance task configured on a visual page by a user through a webpage end.
14. The method of claim 8, further comprising:
according to the account password changed by the target server, an Agent installation package and an automatic operation and maintenance task are pushed to the target server;
and the target server changes the account password of the target server after receiving the pushed Agent installation package and the automatic operation and maintenance task each time.
15. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 8 to 14 when executing the computer program.
16. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, implements the method of any of claims 8 to 14.
17. A computer program product, characterized in that the computer program product comprises a computer program which, when being executed by a processor, carries out the method of any one of claims 8 to 14.
CN202210783331.1A 2022-07-05 2022-07-05 Operation and maintenance system and method based on event driving Pending CN115150291A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210783331.1A CN115150291A (en) 2022-07-05 2022-07-05 Operation and maintenance system and method based on event driving

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210783331.1A CN115150291A (en) 2022-07-05 2022-07-05 Operation and maintenance system and method based on event driving

Publications (1)

Publication Number Publication Date
CN115150291A true CN115150291A (en) 2022-10-04

Family

ID=83410300

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210783331.1A Pending CN115150291A (en) 2022-07-05 2022-07-05 Operation and maintenance system and method based on event driving

Country Status (1)

Country Link
CN (1) CN115150291A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103124293A (en) * 2012-12-31 2013-05-29 中国人民解放军理工大学 Cloud data safe auditing method based on multi-Agent
CN104158906A (en) * 2014-08-29 2014-11-19 五八同城信息技术有限公司 Server agent manipulation system and manipulation method
CN111679888A (en) * 2020-06-04 2020-09-18 深圳前海微众银行股份有限公司 Deployment method and device of agent container
CN111679887A (en) * 2020-06-04 2020-09-18 深圳前海微众银行股份有限公司 Configuration method and device of proxy container
CN112235130A (en) * 2020-09-23 2021-01-15 建信金融科技有限责任公司 Method and device for realizing operation and maintenance automation based on SDN network
CN113204352A (en) * 2021-06-07 2021-08-03 中国银行股份有限公司 Application deployment method, target server, scheduling engine and distributed system
CN113626047A (en) * 2021-08-27 2021-11-09 中国银行股份有限公司 System and method for FLUME automatic deployment
CN114070736A (en) * 2021-11-09 2022-02-18 中交智运有限公司 Multi-cluster service route management control method and device based on nginx
CN114416200A (en) * 2022-01-11 2022-04-29 浪潮云信息技术股份公司 System and method for monitoring, acquiring, configuring and dynamically managing and loading configuration of declarative cloud platform

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103124293A (en) * 2012-12-31 2013-05-29 中国人民解放军理工大学 Cloud data safe auditing method based on multi-Agent
CN104158906A (en) * 2014-08-29 2014-11-19 五八同城信息技术有限公司 Server agent manipulation system and manipulation method
CN111679888A (en) * 2020-06-04 2020-09-18 深圳前海微众银行股份有限公司 Deployment method and device of agent container
CN111679887A (en) * 2020-06-04 2020-09-18 深圳前海微众银行股份有限公司 Configuration method and device of proxy container
CN112235130A (en) * 2020-09-23 2021-01-15 建信金融科技有限责任公司 Method and device for realizing operation and maintenance automation based on SDN network
CN113204352A (en) * 2021-06-07 2021-08-03 中国银行股份有限公司 Application deployment method, target server, scheduling engine and distributed system
CN113626047A (en) * 2021-08-27 2021-11-09 中国银行股份有限公司 System and method for FLUME automatic deployment
CN114070736A (en) * 2021-11-09 2022-02-18 中交智运有限公司 Multi-cluster service route management control method and device based on nginx
CN114416200A (en) * 2022-01-11 2022-04-29 浪潮云信息技术股份公司 System and method for monitoring, acquiring, configuring and dynamically managing and loading configuration of declarative cloud platform

Similar Documents

Publication Publication Date Title
US10735345B2 (en) Orchestrating computing resources between different computing environments
US8099720B2 (en) Translating declarative models
CN111338784B (en) Method and system for realizing integration of code warehouse and computing service
US10613853B2 (en) Updating software components through online stores
EP1679602B1 (en) Shared memory based monitoring for application servers
US6549932B1 (en) System, method and computer program product for discovery in a distributed computing environment
WO2016183545A1 (en) Distributed and optimized garbage collection of remote and exported table handle links to update propagation graph nodes
US20090113407A1 (en) Managing software lifecycle
CN108170448B (en) System for automatically and efficiently releasing software update version
CN111399897A (en) Application issuing method and system based on kubernets
WO2011156922A1 (en) Method and system for workload distributing and processing across a network of replicated virtual machines
CN103092670A (en) Cross-platform virtual computing resource management method under cloud computing environment
EP1276047A2 (en) System controller for use in a distributed processing framework system and methods for implementing the same
CN111897638A (en) Distributed task scheduling method and system
US7877695B2 (en) Tailored object
CN113742031A (en) Node state information acquisition method and device, electronic equipment and readable storage medium
CN112346926A (en) Resource state monitoring method and device and electronic equipment
EP3230865B1 (en) Recovery execution system using programatic generation of actionable workflows
CN110413388A (en) Multi-task processing method, device, equipment and storage medium based on operation system
CN112153126A (en) Deployment and node management method and system for K8S cluster
CN111526049A (en) Operation and maintenance system, operation and maintenance method, electronic device and storage medium
US20050114867A1 (en) Program reactivation using triggering
CN114546588A (en) Task deployment method and device, storage medium and electronic device
CN115150291A (en) Operation and maintenance system and method based on event driving
CN113220480A (en) Distributed data task cross-cloud scheduling system and method

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