CN115373848A - Batch operation and maintenance method and device for servers - Google Patents

Batch operation and maintenance method and device for servers Download PDF

Info

Publication number
CN115373848A
CN115373848A CN202211031176.4A CN202211031176A CN115373848A CN 115373848 A CN115373848 A CN 115373848A CN 202211031176 A CN202211031176 A CN 202211031176A CN 115373848 A CN115373848 A CN 115373848A
Authority
CN
China
Prior art keywords
task
message
server
batch
reading
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
CN202211031176.4A
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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202211031176.4A priority Critical patent/CN115373848A/en
Publication of CN115373848A publication Critical patent/CN115373848A/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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/5038Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration
    • 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues

Abstract

The embodiment of the application provides a server batch operation and maintenance method and device, and the method comprises the following steps: receiving a batch real-time task request sent by an application program, and generating a corresponding task message; sequentially executing all task messages through a preset message middleware and storing corresponding task execution results into a message queue; reading all task execution results in the message queue, and if the number of successfully executed task messages exceeds a threshold value, judging that the batch real-time tasks are successfully executed; the method and the system can conveniently screen the batch servers and carry out daily operation and maintenance operation, and effectively improve the operation and maintenance efficiency of the batch servers.

Description

Batch operation and maintenance method and device for servers
Technical Field
The application relates to the field of software operation and maintenance, can also be used in the field of finance, and particularly relates to a server batch operation and maintenance method and device.
Background
At present, with the development of the computer field, the scale of servers for enterprise maintenance is increasing day by day, and the problems of more repetition, long time consumption, high error rate and the like exist in a way that operation and maintenance personnel log in the servers one by one for daily operation and maintenance. Therefore, a management platform capable of performing unified operation on a large number of servers is a premise of high efficiency operation and maintenance.
The key point of performing daily operation and maintenance unified operation management is how to manage the server for management. A batch of servers can have a plurality of operating system types, and the operation methods of different operating systems are different. The unified operation and maintenance management of the servers of the same type of operating systems is a necessary requirement for daily operation and maintenance management of enterprises.
Disclosure of Invention
Aiming at the problems in the prior art, the application provides a server batch operation and maintenance method and device, which can conveniently screen batch servers and carry out daily operation and maintenance operation, and effectively improve the operation and maintenance efficiency of the batch servers.
In order to solve at least one of the above problems, the present application provides the following technical solutions:
in a first aspect, the present application provides a server batch operation and maintenance method, including:
receiving a batch real-time task request sent by an application program, and generating a corresponding task message;
sequentially executing all task messages through a preset message middleware and storing corresponding task execution results into a message queue;
and reading all task execution results in the message queue, and if the number of successfully executed task messages exceeds a threshold value, judging that the batch real-time tasks are successfully executed.
Further, after receiving the batch real-time task request sent by the application program and generating a corresponding task message, the method includes:
the task message is sent to a message queue of a preset message middleware;
and reading the task message in the message queue through the proxy server and storing the task message in a set execution directory.
Further, after the reading of the task message in the message queue by the proxy server and the storing of the task message in the set execution directory by the proxy server, the method includes:
sequentially reading the message queues in the message middleware through a proxy server;
and storing the script program of each task message in the message queue into a set execution directory.
Further, before the receiving a batch real-time task request sent by an application, the method includes:
reading a network file system through a timing task to acquire the information of the nanotube server;
and returning the information of the nanotube server to an application program so that the application program can generate a batch real-time task request.
In a second aspect, the present application provides a batch operation and maintenance device for servers, including:
the request receiving module is used for receiving batch real-time task requests sent by the application program and generating corresponding task messages;
the task execution module is used for sequentially executing all task messages through the preset message middleware and storing corresponding task execution results into the message queue;
and the result judging module is used for reading all task execution results in the message queue, and judging that the batch real-time tasks are successfully executed if the ratio of the number of the successfully executed task messages exceeds a threshold value.
Further, still include:
the message issuing unit is used for issuing the task message to a message queue of a preset message middleware;
and the directory storage unit is used for reading the task messages in the message queue through the proxy server and storing the task messages into the set execution directory.
Further, still include:
the queue reading unit is used for sequentially reading the message queues in the message middleware through the proxy server;
and the script storage unit is used for storing the script program of each task message in the message queue into a set execution directory.
Further, still include:
the information acquisition unit is used for reading the network file system through the timing task so as to acquire the information of the nanotube server;
and the state monitoring unit is used for returning the information of the nanotube server to an application program so that the application program can generate a batch real-time task request.
In a third aspect, the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the batch operation and maintenance method for the server when executing the program.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the server batch operation and maintenance method.
In a fifth aspect, the present application provides a computer program product comprising a computer program/instructions which, when executed by a processor, implement the steps of the server batch operation and maintenance method.
According to the technical scheme, the server batch operation and maintenance method and device are provided, all task messages are sequentially executed through the preset message middleware, and corresponding task execution results are stored in the message queue; and reading all task execution results in the message queue, and if the ratio of the number of successfully executed task messages exceeds a threshold value, judging that the batch real-time tasks are successfully executed, so that the batch servers can be conveniently screened and daily operation and maintenance operation, and the operation and maintenance efficiency of the batch servers is effectively improved.
Drawings
In order to more clearly illustrate the embodiments of the present application 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 application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a server batch operation and maintenance method in an embodiment of the present application;
fig. 2 is a second flowchart illustrating a server batch operation and maintenance method according to an embodiment of the present application;
fig. 3 is a third schematic flowchart of the server batch operation and maintenance method in the embodiment of the present application;
fig. 4 is a fourth schematic flowchart of the server batch operation and maintenance method in the embodiment of the present application;
FIG. 5 is a block diagram of a server batch operation and maintenance device according to an embodiment of the present disclosure;
FIG. 6 is a second block diagram of the server batch operation and maintenance device in the embodiment of the present application;
fig. 7 is a third structural diagram of a server batch operation and maintenance device in an embodiment of the present application;
fig. 8 is a fourth structural diagram of a server batch operation and maintenance device in the embodiment of the present application;
fig. 9 is a schematic structural diagram of an electronic device in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
According to the technical scheme, the data acquisition, storage, use, processing and the like meet relevant regulations of national laws and regulations.
In view of the problems in the prior art, the application provides a server batch operation and maintenance method and device, which sequentially execute all task messages through a preset message middleware and store corresponding task execution results into a message queue; and reading all task execution results in the message queue, and if the number of successfully executed task messages exceeds a threshold value, judging that the batch real-time tasks are successfully executed, so that the batch servers can be conveniently screened and daily operation and maintenance operation is carried out, and the operation and maintenance efficiency of the batch servers is effectively improved.
In order to conveniently and rapidly perform screening and daily operation and maintenance operations on batch servers and effectively improve the operation and maintenance efficiency of the batch servers, the application provides an embodiment of a server batch operation and maintenance method, and referring to fig. 1, the server batch operation and maintenance method specifically comprises the following contents:
step S101: receiving a batch real-time task request sent by an application program, and generating a corresponding task message.
Optionally, the application may set a timing or real-time task through a page, and issue the task to an application program, where the application program packages execution content into a script, sends a task request to a storm interface (test interface), forms specific task message data (generates a task number) through the storm interface, and issues the task data to a message queue of an active mq (message middleware). By utilizing the advantages of a storm concurrent execution mechanism and the efficient reading of the mq message queue, the function of executing the tasks of a large batch of servers (more than ten thousand levels) in a second level is realized.
Step S102: and sequentially executing all task messages through the preset message middleware and storing corresponding task execution results into a message queue.
Optionally, the application may read the message queue on the active mq through the agent, store the obtained script in a fixed execution directory, execute the corresponding task, configure a task execution return code in the agent program (success or failure of task execution), return the task execution result to the mq, and manage the execution script by cleaning the task at regular time.
Step S103: and reading all task execution results in the message queue, and if the number of successfully executed task messages exceeds a threshold value, judging that the batch real-time tasks are successfully executed.
Optionally, the application may read a return message on the active mq through the storm, execute a return code through the agent to determine a success rate after the message is returned, consider that the task is successfully executed if more than 90% of the server returns a result, put the result (including information such as a task number, execution time, execution return content, and a task result) in a database, and call back the WOP interface to return the result to a unified operating platform (WOP) page.
As can be seen from the above description, the server batch operation and maintenance method provided in the embodiment of the present application can sequentially execute all task messages through the preset message middleware and store corresponding task execution results in the message queue; and reading all task execution results in the message queue, and if the ratio of the number of successfully executed task messages exceeds a threshold value, judging that the batch real-time tasks are successfully executed, so that the batch servers can be conveniently screened and daily operation and maintenance operation, and the operation and maintenance efficiency of the batch servers is effectively improved.
In an embodiment of the server batch operation and maintenance method of the present application, referring to fig. 2, the following contents may be further specifically included:
step S201: and sending the task message to a message queue of a preset message middleware.
Step S202: and reading the task message in the message queue through the proxy server and storing the task message in a set execution directory.
Optionally, the application may form specific task message data (generate a task number) through the storm interface, and send the task data to an active mq (message middleware) message queue. By utilizing the advantages of a storm concurrent execution mechanism and the efficient reading of the mq message queue, the function of executing the tasks of a large batch of servers (more than ten thousand levels) in a second level is realized.
In an embodiment of the server batch operation and maintenance method of the present application, referring to fig. 3, the following contents may be further specifically included:
step S301: and sequentially reading the message queue in the message middleware through the proxy server.
Step S302: and storing the script program of each task message in the message queue into a set execution directory.
Optionally, the application may read the message queue on the active mq through the agent, store the obtained script in a fixed execution directory, execute the corresponding task, configure a task execution return code in the agent program (task execution success or failure), return the task execution result to the mq, and manage the execution script by cleaning the task at regular time.
In an embodiment of the server batch operation and maintenance method of the present application, referring to fig. 4, the following contents may be further specifically included:
step S401: and reading the network file system through a timing task to acquire the information of the nano management server.
Step S402: and returning the information of the nanotube server to an application program so that the application program can generate a batch real-time task request.
Optionally, the application can read nfs (network file system) acquisition server information by setting a timing task; and by reading the database, agent state collection is carried out on all servers provided with the agents, so that the management function of the servers is realized.
In order to conveniently and rapidly perform screening and daily operation and maintenance operations on batch servers and effectively improve the operation and maintenance efficiency of the batch servers, the application provides an embodiment of a server batch operation and maintenance device for realizing all or part of contents of the server batch operation and maintenance method, and referring to fig. 5, the server batch operation and maintenance device specifically comprises the following contents:
the request receiving module 10 is configured to receive a batch real-time task request sent by an application program, and generate a corresponding task message.
And the task execution module 20 is configured to execute all task messages sequentially through a preset message middleware and store corresponding task execution results in a message queue.
And the result judging module 30 is configured to read execution results of all tasks in the message queue, and if the percentage of the number of successfully executed task messages exceeds a threshold, judge that the batch real-time tasks are successfully executed.
As can be seen from the above description, the server batch operation and maintenance device provided in the embodiment of the present application can sequentially execute all task messages through the preset message middleware and store corresponding task execution results in the message queue; and reading all task execution results in the message queue, and if the number of successfully executed task messages exceeds a threshold value, judging that the batch real-time tasks are successfully executed, so that the batch servers can be conveniently screened and daily operation and maintenance operation is carried out, and the operation and maintenance efficiency of the batch servers is effectively improved.
In an embodiment of the server batch operation and maintenance device of the present application, referring to fig. 6, the following contents are further specifically included:
a message issuing unit 41, configured to issue the task message to a message queue of a preset message middleware.
And the directory storage unit 42 is used for reading the task messages in the message queue through the proxy server and storing the task messages into the setting execution directory.
In an embodiment of the server batch operation and maintenance device of the present application, referring to fig. 7, the following contents are further specifically included:
a queue reading unit 51, configured to sequentially read, by the proxy server, the message queue in the message middleware.
And the script storage unit 52 is configured to store the script program of each task message in the message queue into a set execution directory.
In an embodiment of the server batch operation and maintenance device of the present application, referring to fig. 8, the following contents are further specifically included:
and the information acquisition unit 61 is used for reading the network file system through the timing task so as to acquire the information of the nanotube server.
And the state monitoring unit 62 is configured to return the information of the hosting server to the application program so that the application program generates a batch real-time task request.
In order to conveniently perform screening and daily operation and maintenance operations on the batch servers and effectively improve the operation and maintenance efficiency of the batch servers, the application provides an embodiment of an electronic device for implementing all or part of contents in the batch operation and maintenance method of the servers, and the electronic device specifically includes the following contents:
a processor (processor), a memory (memory), a communication Interface (Communications Interface), and a bus; the processor, the memory and the communication interface complete mutual communication through the bus; the communication interface is used for realizing information transmission between the server batch operation and maintenance device and relevant equipment such as a core service system, a user terminal, a relevant database and the like; the logic controller may be a desktop computer, a tablet computer, a mobile terminal, and the like, but the embodiment is not limited thereto. In this embodiment, the logic controller may be implemented with reference to the embodiment of the server batch operation and maintenance method in the embodiment and the embodiment of the server batch operation and maintenance device, which are incorporated herein, and repeated details are not repeated herein.
It is understood that the user terminal may include a smart phone, a tablet electronic device, a network set-top box, a portable computer, a desktop computer, a Personal Digital Assistant (PDA), a vehicle-mounted device, a smart wearable device, and the like. Wherein, intelligence wearing equipment can include intelligent glasses, intelligent wrist-watch, intelligent bracelet etc..
In practical applications, part of the server batch operation and maintenance method may be executed on the electronic device side as described in the above, or all operations may be completed in the client device. The selection may be specifically performed according to the processing capability of the client device, the limitation of the user usage scenario, and the like. This is not a limitation of the present application. The client device may further include a processor if all operations are performed in the client device.
The client device may have a communication module (i.e., a communication unit) and may be communicatively connected to a remote server to implement data transmission with the server. The server may include a server on the task scheduling center side, and in other implementation scenarios, the server may also include a server on an intermediate platform, for example, a server on a third-party server platform that is communicatively linked to the task scheduling center server. The server may include a single computer device, or may include a server cluster formed by a plurality of servers, or a server structure of a distributed apparatus.
Fig. 9 is a schematic block diagram of a system configuration of an electronic device 9600 according to the embodiment of the present application. As shown in fig. 9, the electronic device 9600 can include a central processor 9100 and a memory 9140; the memory 9140 is coupled to the central processor 9100. It is noted that this fig. 9 is exemplary; other types of structures may also be used in addition to or in place of the structure to implement telecommunications or other functions.
In one embodiment, the server batch operation and maintenance method function may be integrated into the central processor 9100. The central processor 9100 may be configured to control as follows:
step S101: receiving a batch real-time task request sent by an application program, and generating a corresponding task message.
Step S102: and sequentially executing all task messages through the preset message middleware and storing corresponding task execution results into a message queue.
Step S103: and reading all task execution results in the message queue, and if the number of successfully executed task messages exceeds a threshold value, judging that the batch real-time tasks are successfully executed.
As can be seen from the above description, in the electronic device provided in the embodiment of the present application, all task messages are sequentially executed through the preset message middleware, and corresponding task execution results are stored in the message queue; and reading all task execution results in the message queue, and if the ratio of the number of successfully executed task messages exceeds a threshold value, judging that the batch real-time tasks are successfully executed, so that the batch servers can be conveniently screened and daily operation and maintenance operation, and the operation and maintenance efficiency of the batch servers is effectively improved.
In another embodiment, the server batch operation and maintenance device may be configured separately from the central processor 9100, for example, the server batch operation and maintenance device may be configured as a chip connected to the central processor 9100, and the server batch operation and maintenance method function is implemented by the control of the central processor.
As shown in fig. 9, the electronic device 9600 may further include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is noted that the electronic device 9600 also does not necessarily include all of the components shown in fig. 9; in addition, the electronic device 9600 may further include components not shown in fig. 9, which may be referred to in the prior art.
As shown in fig. 9, a central processor 9100, sometimes referred to as a controller or operational control, can include a microprocessor or other processor device and/or logic device, which central processor 9100 receives input and controls the operation of the various components of the electronic device 9600.
The memory 9140 can be, for example, one or more of a buffer, a flash memory, a hard drive, a removable media, a volatile memory, a non-volatile memory, or other suitable device. The information relating to the failure may be stored, and a program for executing the information may be stored. And the central processing unit 9100 can execute the program stored in the memory 9140 to realize information storage or processing, or the like.
The input unit 9120 provides input to the central processor 9100. The input unit 9120 is, for example, a key or a touch input device. Power supply 9170 is used to provide power to electronic device 9600. The display 9160 is used for displaying display objects such as images and characters. The display may be, for example, an LCD display, but is not limited thereto.
The memory 9140 may be a solid-state memory, e.g., read Only Memory (ROM), random Access Memory (RAM), a SIM card, or the like. There may also be a memory that holds information even when power is off, can be selectively erased, and is provided with more data, an example of which is sometimes called an EPROM or the like. The memory 9140 could also be some other type of device. Memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 may include an application/function storage part 9142, the application/function storage part 9142 being used to store application programs and function programs or a flow for executing the operation of the electronic device 9600 by the central processing unit 9100.
The memory 9140 can also include a data store 9143, the data store 9143 being used to store data, such as contacts, digital data, pictures, sounds, and/or any other data used by an electronic device. The driver storage portion 9144 of the memory 9140 may include various drivers for the electronic device for communication functions and/or for performing other functions of the electronic device (e.g., messaging applications, contact book applications, etc.).
The communication module 9110 is a transmitter/receiver 9110 that transmits and receives signals via an antenna 9111. The communication module (transmitter/receiver) 9110 is coupled to the central processor 9100 to provide input signals and receive output signals, which may be the same as in the case of a conventional mobile communication terminal.
Based on different communication technologies, a plurality of communication modules 9110, such as a cellular network module, a bluetooth module, and/or a wireless local area network module, may be provided in the same electronic device. The communication module (transmitter/receiver) 9110 is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide audio output via the speaker 9131 and receive audio input from the microphone 9132 to implement general telecommunications functions. The audio processor 9130 may include any suitable buffers, decoders, amplifiers and so forth. In addition, the audio processor 9130 is also coupled to the central processor 9100, thereby enabling recording locally through the microphone 9132 and enabling locally stored sounds to be played through the speaker 9131.
An embodiment of the present application further provides a computer-readable storage medium capable of implementing all the steps in the server batch operation and maintenance method in which the execution subject is the server or the client in the foregoing embodiments, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the computer program implements all the steps in the server batch operation and maintenance method in which the execution subject is the server or the client in the foregoing embodiments, for example, when the processor executes the computer program, the processor implements the following steps:
step S101: receiving a batch real-time task request sent by an application program, and generating a corresponding task message.
Step S102: and sequentially executing all task messages through the preset message middleware and storing corresponding task execution results into a message queue.
Step S103: and reading all task execution results in the message queue, and if the number of successfully executed task messages exceeds a threshold value, judging that the batch real-time tasks are successfully executed.
As can be seen from the above description, in the computer-readable storage medium provided in the embodiment of the present application, all task messages are sequentially executed through the preset message middleware, and corresponding task execution results are stored in the message queue; and reading all task execution results in the message queue, and if the number of successfully executed task messages exceeds a threshold value, judging that the batch real-time tasks are successfully executed, so that the batch servers can be conveniently screened and daily operation and maintenance operation is carried out, and the operation and maintenance efficiency of the batch servers is effectively improved.
Embodiments of the present application further provide a computer program product capable of implementing all steps in the server batch operation and maintenance method in which an execution subject is a server or a client in the foregoing embodiments, and when executed by a processor, the computer program/instruction implements the steps of the server batch operation and maintenance method, for example, the computer program/instruction implements the following steps:
step S101: receiving a batch real-time task request sent by an application program, and generating a corresponding task message.
Step S102: and sequentially executing all task messages through the preset message middleware and storing corresponding task execution results into a message queue.
Step S103: and reading all task execution results in the message queue, and if the number of successfully executed task messages exceeds a threshold value, judging that the batch real-time tasks are successfully executed.
As can be seen from the above description, in the computer program product provided in the embodiment of the present application, all task messages are sequentially executed through the preset message middleware, and corresponding task execution results are stored in the message queue; and reading all task execution results in the message queue, and if the ratio of the number of successfully executed task messages exceeds a threshold value, judging that the batch real-time tasks are successfully executed, so that the batch servers can be conveniently screened and daily operation and maintenance operation, and the operation and maintenance efficiency of the batch servers is effectively improved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, 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 is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (devices), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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 principle and the implementation mode of the invention are explained by applying specific embodiments in the invention, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (11)

1. A server batch operation and maintenance method is characterized by comprising the following steps:
receiving a batch real-time task request sent by an application program, and generating a corresponding task message;
sequentially executing all task messages through a preset message middleware and storing corresponding task execution results into a message queue;
and reading all task execution results in the message queue, and if the number of successfully executed task messages exceeds a threshold value, judging that the batch real-time tasks are successfully executed.
2. The server batch operation and maintenance method according to claim 1, wherein after receiving the batch real-time task request sent by the application program and generating the corresponding task message, the method comprises:
the task message is sent to a message queue of a preset message middleware;
and reading the task message in the message queue through the proxy server and storing the task message in a set execution directory.
3. The server batch operation and maintenance method according to claim 2, wherein after the reading of the task messages in the message queue by the proxy server and the storing of the task messages in the set execution directory by the proxy server, the method comprises:
sequentially reading the message queues in the message middleware through a proxy server;
and storing the script program of each task message in the message queue into a set execution directory.
4. The server batch operation and maintenance method according to claim 1, wherein before the receiving the batch real-time task request sent by the application program, the method comprises:
reading a network file system through a timing task to acquire the information of the nanotube server;
and returning the information of the nanotube server to an application program so that the application program can generate a batch real-time task request.
5. A server batch operation and maintenance device is characterized by comprising:
the request receiving module is used for receiving batch real-time task requests sent by the application program and generating corresponding task messages;
the task execution module is used for sequentially executing all task messages through the preset message middleware and storing corresponding task execution results into the message queue;
and the result judging module is used for reading all task execution results in the message queue, and judging that the batch real-time tasks are successfully executed if the ratio of the number of the successfully executed task messages exceeds a threshold value.
6. The server batch operation and maintenance device according to claim 5, further comprising:
the message issuing unit is used for issuing the task message to a message queue of a preset message middleware;
and the directory storage unit is used for reading the task messages in the message queue through the proxy server and storing the task messages into the set execution directory.
7. The server batch operation and maintenance device according to claim 5, further comprising:
the queue reading unit is used for sequentially reading the message queues in the message middleware through the proxy server;
and the script storage unit is used for storing the script program of each task message in the message queue into a set execution directory.
8. The server batch operation and maintenance device according to claim 5, further comprising:
the information acquisition unit is used for reading the network file system through a timing task so as to acquire the information of the nanotube server;
and the state monitoring unit is used for returning the information of the nanotube server to an application program so that the application program can generate a batch real-time task request.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the server batch operation and maintenance method according to any one of claims 1 to 4 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the server batch operation and maintenance method according to any one of claims 1 to 4.
11. A computer program product comprising computer program/instructions, characterized in that the computer program/instructions, when executed by a processor, implement the steps of the server batch operation and maintenance method according to any one of claims 1 to 4.
CN202211031176.4A 2022-08-26 2022-08-26 Batch operation and maintenance method and device for servers Pending CN115373848A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211031176.4A CN115373848A (en) 2022-08-26 2022-08-26 Batch operation and maintenance method and device for servers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211031176.4A CN115373848A (en) 2022-08-26 2022-08-26 Batch operation and maintenance method and device for servers

Publications (1)

Publication Number Publication Date
CN115373848A true CN115373848A (en) 2022-11-22

Family

ID=84066845

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211031176.4A Pending CN115373848A (en) 2022-08-26 2022-08-26 Batch operation and maintenance method and device for servers

Country Status (1)

Country Link
CN (1) CN115373848A (en)

Similar Documents

Publication Publication Date Title
CN111031058A (en) Websocket-based distributed server cluster interaction method and device
CN111782470B (en) Distributed container log data processing method and device
CN110990228A (en) Data interface monitoring method and device
CN110764881A (en) Distributed system background retry method and device
EP4113985A1 (en) Multimedia conference data processing method and apparatus, and electronic device
CN113435989A (en) Financial data processing method and device
CN111464352A (en) Call link data processing method and device
CN111445331A (en) Transaction matching method and device
CN111782473A (en) Distributed log data processing method, device and system
CN113190516B (en) Data synchronization monitoring method and device
CN112689012A (en) Cross-network proxy communication method and device
CN113055483A (en) Message middleware data processing method, device and system
CN111767558A (en) Data access monitoring method, device and system
CN111190731A (en) Cluster task scheduling system based on weight
CN115099930A (en) Financial business data processing method and device
CN115562898A (en) Distributed payment system exception handling method and device
CN115373848A (en) Batch operation and maintenance method and device for servers
CN113434423A (en) Interface test method and device
CN111953847A (en) Client message risk reminding method, device and system
CN110427260B (en) Host job scheduling method, device and system
CN111930624A (en) Test link message data processing method and device
CN112559158A (en) Micro-service timing task scheduling method and device
CN111782366A (en) Distributed task scheduling method and device
CN113342501B (en) System fault processing method and device
CN115208875B (en) Information integration system of multi-transmission middleware

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