Automatic operation and maintenance method and system based on multi-node server mode

文档序号:7217 发布日期:2021-09-17 浏览:34次 中文

1. An automatic operation and maintenance method based on a multi-node server mode is characterized by comprising the following specific steps:

s1 developing an agent program with a program upgrading script execution mode;

s2 deploying the agent on the client;

s3, pushing the upgrade package and the execution script to the client by using the server;

s4 agent program receives upgrade package and executes upgrade script;

s5, pushing the execution result of the client to the server and feeding back the execution result;

s6 pushing the upgrade package to the client by the server.

2. The method as claimed in claim 1, wherein said S1 develops an agent program with a program upgrade script execution mode, and the program upgrade script execution mode is agreed in the agent program.

3. The method as claimed in claim 2, wherein the step of the S4 agent receiving upgrade package and executing the upgrade script comprises:

s401, an agent program on a client receives an upgrade package;

s402, the upgrading script is executed according to the appointed execution mode.

4. The method as claimed in claim 3, wherein the step S6 of pushing the upgrade package to the client by the server includes:

s601, the server side records the pushing state of the upgrade package when the client side is not connected with the network;

s602, the networked client actively obtains the upgrade package from the server, and selects the upgrade package with the latest version to execute the upgrade script;

s603, the client feeds back the execution result of the upgrading script to the server.

5. An automatic operation and maintenance system based on a multi-node server mode is characterized by specifically comprising a program research and development module, a program deployment module, a script pushing module, a script upgrading module, a result feedback module and an upgrading pushing module:

a program research and development module: developing an agent program with a program upgrading script execution mode;

a program deployment module: deploying an agent on a client;

script push module: pushing the upgrade package and the execution script to the client by using the server;

the script upgrading module: the agent program receives the upgrade package and executes the upgrade script;

a result feedback module: pushing the execution result of the client to the server, and feeding back the execution result;

upgrade the push module: and pushing the upgrade package to the client by using the server.

6. The system as claimed in claim 5, wherein the program development module develops an agent program with an execution mode of a program upgrade script, and the execution mode of the program upgrade script is agreed in the agent program.

7. The system of claim 6, wherein the script upgrading module specifically comprises an upgrade package obtaining module and an upgrade package executing module:

an upgrade package acquisition module: an agent program on a client receives an upgrade package;

an upgrade package execution module: and executing the upgrading script according to the appointed execution mode.

8. The system according to claim 7, wherein the upgrade pushing module specifically comprises a status recording module, a version selection module, and an execution feedback module:

a state recording module: the server side records the pushing state of the upgrade package when the client side is not connected with the network;

and a version selection module: the networked client actively acquires the upgrade package from the server and selects the upgrade package with the latest version to execute the upgrade script;

the execution feedback module: and the client feeds back the execution result of the upgrading script to the server.

Background

With the rise and popularization of cloud computing and big data, the technical change brings the change of software architecture, and simultaneously, the complexity of software deployment is also improved. Because a larger amount of computation, higher performance and more flexible deployment modes are needed, the application architecture is improved into a micro-service architecture more on the technical architecture, technologies such as elastic expansion and load balancing are widely used, computing nodes are added on the deployment mode, and the computing capacity is improved by utilizing the expansion support of hardware. The multiple nodes correspond to multiple servers, the increase of the servers brings huge operation and maintenance workload, more manpower is needed for supporting, the manpower cost is increased, the manual operation and maintenance are easy to make mistakes, and the bottleneck of the manual operation and maintenance can be solved only by introducing automatic operation and maintenance;

therefore, the invention provides an automatic operation and maintenance method and system based on a multi-node server mode, which are used for improving the degree of automatic operation and maintenance, reducing the labor cost of operation and maintenance and improving the quality and efficiency of operation and maintenance.

Disclosure of Invention

Aiming at the problems in the prior art, the invention provides an automatic operation and maintenance method and system based on a multi-node server mode, and the adopted technical scheme is as follows: an automatic operation and maintenance method based on a multi-node server mode comprises the following specific steps:

s1 developing an agent program with a program upgrading script execution mode;

s2 deploying the agent on the client;

s3, pushing the upgrade package and the execution script to the client by using the server;

s4 agent program receives upgrade package and executes upgrade script;

s5, pushing the execution result of the client to the server and feeding back the execution result;

s6 pushing the upgrade package to the client by the server.

The S1 develops an agent program with a program upgrade script execution mode, and the execution mode of the program upgrade script is agreed in the agent program.

The specific steps of the S4 agent program receiving the upgrade package and executing the upgrade script include:

s401, an agent program on a client receives an upgrade package;

s402, the upgrading script is executed according to the appointed execution mode.

The specific step of S6 pushing the upgrade package to the client by using the server includes:

s601, the server side records the pushing state of the upgrade package when the client side is not connected with the network;

s602, the networked client actively obtains the upgrade package from the server, and selects the upgrade package with the latest version to execute the upgrade script;

s603, the client feeds back the execution result of the upgrading script to the server.

An automatic operation and maintenance system based on a multi-node server mode specifically comprises a program research and development module, a program deployment module, a script pushing module, a script upgrading module, a result feedback module and an upgrading pushing module:

a program research and development module: developing an agent program with a program upgrading script execution mode;

a program deployment module: deploying an agent on a client;

script push module: pushing the upgrade package and the execution script to the client by using the server;

the script upgrading module: the agent program receives the upgrade package and executes the upgrade script;

a result feedback module: pushing the execution result of the client to the server, and feeding back the execution result;

upgrade the push module: and pushing the upgrade package to the client by using the server.

The program research and development module researches and develops an agent program with a program upgrading script execution mode, and the execution mode of the program upgrading script is appointed in the agent program.

The script upgrading module specifically comprises an upgrading packet acquisition module and an upgrading packet execution module:

an upgrade package acquisition module: an agent program on a client receives an upgrade package;

an upgrade package execution module: and executing the upgrading script according to the appointed execution mode.

The upgrade pushing module specifically comprises a state recording module, a version selection module and an execution feedback module:

a state recording module: the server side records the pushing state of the upgrade package when the client side is not connected with the network;

and a version selection module: the networked client actively acquires the upgrade package from the server and selects the upgrade package with the latest version to execute the upgrade script;

the execution feedback module: and the client feeds back the execution result of the upgrading script to the server.

The invention has the beneficial effects that: the method comprises the steps that a server is divided into a server side and a client side in a grading mode, and the server side serves as a management center and is used for sending an upgrading program to the client side; the client is a majority of node servers and can receive the upgrading and executing programs sent by the server; by implanting an agent program in a client server, the client server takes the agent program as a channel to communicate with a server side and transmit files, and automatically executes application upgrading programs, sends upgrading logs to an upper-level server and the like; the server can be managed in a grading mode, each grade is provided with a management center, each grade is provided with a child node, upgrading is issued layer by layer, execution results are reported layer by layer, and therefore the effects of improving the degree of automation operation and maintenance, reducing the labor cost of operation and maintenance and improving the quality and efficiency of operation and maintenance are achieved.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.

FIG. 1 is a flow chart of the method of the present invention; fig. 2 is a schematic diagram of an automatic operation and maintenance process according to an embodiment of the present invention.

Detailed Description

The present invention is further described below in conjunction with the following figures and specific examples so that those skilled in the art may better understand the present invention and practice it, but the examples are not intended to limit the present invention.

The first embodiment is as follows:

an automatic operation and maintenance method based on a multi-node server mode comprises the following specific steps:

s1 developing an agent program with a program upgrading script execution mode;

s2 deploying the agent on the client;

s3, pushing the upgrade package and the execution script to the client by using the server;

s4 agent program receives upgrade package and executes upgrade script;

s5, pushing the execution result of the client to the server and feeding back the execution result;

s6, pushing the upgrade package to the client by the server;

further, the S1 develops an agent program with a program upgrade script execution mode, and the program upgrade script execution mode is agreed in the agent program.

Further, the step of the S4 agent receiving the upgrade package and executing the upgrade script includes:

s401, an agent program on a client receives an upgrade package;

s402, executing the upgrading script according to the appointed execution mode;

still further, the step of S6 pushing the upgrade package to the client by using the server specifically includes:

s601, the server side records the pushing state of the upgrade package when the client side is not connected with the network;

s602, the networked client actively obtains the upgrade package from the server, and selects the upgrade package with the latest version to execute the upgrade script;

s603, the client feeds back the execution result of the upgrading script to the server;

the invention provides a method for automatic operation and maintenance in a multi-node server mode, which comprises the steps of classifying a server into a server and a client in a grading manner, wherein the server is used as a management center and used for sending an upgrading program to the client; the client is a majority of node servers and can receive the upgrading and executing programs sent by the server; by implanting an agent program in a client server, the client server takes the agent program as a channel to communicate with a server side and transmit files, and automatically executes application upgrading programs, sends upgrading logs to an upper-level server and the like; the agent program has the functions of receiving and pulling the server side package, under the condition of a network, the server side pushes the upgrade package to the client side, and the agent program receives the upgrade package and executes the upgrade package according to the script; under the condition of no network, the agent program of the client does not operate, but once the network is connected, the agent program of the client automatically acquires the existing upgrade package of the server and automatically upgrades the upgrade package; the agent is typically a daemon process of the operating system;

under the condition of a plurality of servers, if only one server is set as a management center, the communication pressure is higher, the servers can be managed in a grading way, each grade is provided with the management center, each grade is provided with a child node, upgrading is issued layer by layer, and execution results are reported layer by layer;

in summary, the implementation process of the method of the present invention is as follows: firstly, developing an agent program according to S1, realizing a daemon process, and appointing a program upgrading script execution mode in the agent program; then deploying the agent program on the client once according to S2; then, the server side is responsible for pushing the upgrade package and executing the script to the client side according to S3; receiving an upgrade package according to an agent program on the S4 client, and executing an upgrade script according to an appointed execution mode; after the execution is finished according to the S5 client, the execution result is pushed to the server, and the execution result is fed back; finally, according to the step S6, under the condition that the client is not networked, the server side pushes the upgrade package to the client, but the upgrade package cannot be sent, and the server side records the pushing state; and after the client is networked, the client actively acquires the upgrade package from the server, selects the upgrade package with the latest version to execute the upgrade script, and feeds back the upgrade script to the server to execute the result.

Example two:

an automatic operation and maintenance system based on a multi-node server mode specifically comprises a program research and development module, a program deployment module, a script pushing module, a script upgrading module, a result feedback module and an upgrading pushing module:

a program research and development module: developing an agent program with a program upgrading script execution mode;

a program deployment module: deploying an agent on a client;

script push module: pushing the upgrade package and the execution script to the client by using the server;

the script upgrading module: the agent program receives the upgrade package and executes the upgrade script;

a result feedback module: pushing the execution result of the client to the server, and feeding back the execution result;

upgrade the push module: pushing an upgrade package to the client by using the server;

further, the program research and development module researches and develops an agent program with a program upgrading script execution mode, and the execution mode of the program upgrading script is appointed in the agent program;

further, the script upgrading module specifically includes an upgrading packet obtaining module and an upgrading packet executing module:

an upgrade package acquisition module: an agent program on a client receives an upgrade package;

an upgrade package execution module: executing the upgrading script according to the appointed execution mode;

still further, the upgrade pushing module specifically includes a state recording module, a version selection module, and an execution feedback module:

a state recording module: the server side records the pushing state of the upgrade package when the client side is not connected with the network;

and a version selection module: the networked client actively acquires the upgrade package from the server and selects the upgrade package with the latest version to execute the upgrade script;

the execution feedback module: the client feeds back the execution result of the upgrade script to the server

In summary, the implementation process of the method of the present invention is as follows: firstly, an agent program is researched and developed through a program research and development module, a daemon process is realized, and a program upgrading script execution mode is appointed in the agent program; then, the agent program is deployed on the client at one time according to the program deployment module; then, the script pushing module server is used for pushing the upgrade package and executing the script to the client; receiving an upgrade package through an agent program on a client of the script upgrade module, and executing an upgrade script according to an appointed execution mode; after the client executes the execution, the result feedback module pushes the execution result to the server to feed back the execution result; finally, through the upgrading pushing module, under the condition that the client is not networked, the server side pushes the upgrading packet to the client, but the upgrading packet cannot be sent, and the server side records the pushing state; and after the client is networked, the client actively acquires the upgrade package from the server, selects the upgrade package with the latest version to execute the upgrade script, and feeds back the upgrade script to the server to execute the result.

Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

完整详细技术资料下载
上一篇:石墨接头机器人自动装卡簧、装栓机
下一篇:路侧网联设备的软件升级方法、系统、介质及设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!