Container operation and maintenance method, device, computer equipment and storage medium
A method for batch operation and maintenance of cloud-native containers through a management server improves efficiency by enabling simultaneous maintenance across multiple servers, addressing the inefficiencies of manual maintenance in large container environments.
Patent Information
- Application Number
- CN202211432659.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-16
- Publication Date
- 2024-12-31
- Estimated Expiration
- 2042-11-16
AI Technical Summary
The inefficiency of manually operating and maintaining hundreds or thousands of containers in a cloud environment, such as those used in cloud native technology, necessitates a more efficient method to improve operation and maintenance efficiency.
A method and system that allows for batch operation and maintenance of containers by sending operation and maintenance requests to a management server, which constructs tasks for multiple target business servers to perform maintenance, with comprehensive results determined and fed back to the terminal.
This approach significantly enhances operation and maintenance efficiency by allowing simultaneous maintenance across multiple containers, reducing the need for individual server logins and improving overall management.
Smart Images

Figure CN115766862B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of cloud computing technology, in particular to cloud native technology, and specifically to a container operation and maintenance method, apparatus, computer equipment and storage medium. Background Art
[0002] With the popularization of cloud native technology, it has become a trend to deploy applications on the cloud. For example, the application's dependency packages and other related data can be deployed in containers installed on one or more business servers in a cloud server cluster. Among them, the service continuity of the application depends on the healthy operation of the container, the network communication between containers, and other aspects, so it is very important to operate and maintain the container.
[0003] Currently, the main way to operate and maintain containers is to manually log in to the business server one by one through the client to operate and maintain the container. However, when an application consists of hundreds or thousands of containers, the operation and maintenance efficiency is extremely low and needs to be improved urgently. Summary of the invention
[0004] Based on this, it is necessary to provide a container operation and maintenance method, device, computer equipment and storage medium that can efficiently operate and maintain containers in response to the above technical problems.
[0005] In a first aspect, the present application provides a container operation and maintenance method, the method comprising:
[0006] In response to the operation and maintenance operation of the operation and maintenance demander, an operation and maintenance request carrying the operation and maintenance information is sent to the management server to instruct the management server to construct an operation and maintenance task according to the operation and maintenance information, and the operation and maintenance task is sent to at least two target business servers, and each target business server performs operation and maintenance on the target business container in each target business server based on the operation and maintenance task;
[0007] Obtain the comprehensive operation and maintenance results sent by the management server; the comprehensive operation and maintenance results are determined based on the target operation and maintenance results fed back by each target business server.
[0008] In one of the embodiments, the operation and maintenance information includes operation and maintenance instruction information and information of containers to be operated and maintained;
[0009] The operation and maintenance request is specifically used to instruct the management server to obtain the target operation and maintenance instruction according to the operation and maintenance instruction information, and to construct the operation and maintenance task according to the target operation and maintenance instruction and the information of the container to be operated and maintained.
[0010] In one of the embodiments, in response to a comparison request from an operation and maintenance demander, historical operation and maintenance results of a target business container are obtained according to information of the container to be operated and maintained;
[0011] Compare and display the comprehensive operation and maintenance results with the historical operation and maintenance results.
[0012] In one of the embodiments, the information of the container to be operated and maintained includes a container identifier and / or an application identifier.
[0013] In one of the embodiments, in response to the instruction editing operation of the operation and maintenance demander, available operation and maintenance instructions are obtained, and the available operation and maintenance instructions are stored in a storage server, so that the management server can obtain the target operation and maintenance instructions from the available operation and maintenance instructions stored in the storage server according to the operation and maintenance instruction information.
[0014] In a second aspect, the present application provides a container operation and maintenance method, the method comprising:
[0015] Receiving an operation and maintenance request carrying operation and maintenance information sent by a terminal;
[0016] Construct operation and maintenance tasks based on operation and maintenance information;
[0017] Sending an operation and maintenance task to at least two target business servers, so that each target business server operates and maintains a target business container in each target business server according to the operation and maintenance task, and feeds back a target operation and maintenance result;
[0018] The comprehensive operation and maintenance results are determined based on the target operation and maintenance results fed back by each target business server, and are sent to the terminal.
[0019] In one of the embodiments, the operation and maintenance information includes operation and maintenance instruction information and information of containers to be operated and maintained;
[0020] Based on the operation and maintenance information, build operation and maintenance tasks, including:
[0021] Obtain target operation and maintenance instructions according to the operation and maintenance instruction information;
[0022] Construct operation and maintenance tasks based on the target operation and maintenance instructions and the information of the container to be operated and maintained.
[0023] In one of the embodiments, before constructing the operation and maintenance task according to the target operation and maintenance instruction and the information of the container to be operated and maintained, the method further includes:
[0024] Verify whether the operation and maintenance demander has the authority to use the target operation and maintenance instructions, and / or verify the operation security of the target operation and maintenance instructions.
[0025] In one embodiment, sending an operation and maintenance task to at least two target business servers includes:
[0026] Select at least two target business servers from the candidate business servers according to the information of the container to be operated and maintained and the information of the operable containers in the candidate business servers;
[0027] Send operation and maintenance tasks to at least two target business servers.
[0028] In one of the embodiments, the information of the container to be operated and maintained includes a container identifier and / or an application identifier.
[0029] In one embodiment, sending an operation and maintenance task to at least two target business servers so that each target business server operates and maintains a target business container in each target business server according to the operation and maintenance task and feeds back a target operation and maintenance result includes:
[0030] The operation and maintenance tasks are sent to the operation and maintenance management containers in at least two target business servers, so that the operation and maintenance management containers in each target business server operate and maintain the target business container in each target business server according to the operation and maintenance tasks, and feed back the target operation and maintenance results.
[0031] In one of the embodiments, the operation and maintenance tasks and the comprehensive operation and maintenance results corresponding to the operation and maintenance requests are associated and stored.
[0032] In a third aspect, the present application provides a container operation and maintenance method, the method comprising:
[0033] Receiving an operation and maintenance task sent by a management server; wherein the operation and maintenance task is constructed based on the operation and maintenance information in the operation and maintenance request sent by the terminal;
[0034] According to the operation and maintenance tasks, the local target business container is operated and maintained, and the target operation and maintenance results are fed back to the management server.
[0035] In one of the embodiments, the operation and maintenance information includes operation and maintenance instruction information and information of containers to be operated and maintained; the operation and maintenance task is specifically constructed based on the target operation and maintenance instruction and the information of the containers to be operated and maintained, and the target operation and maintenance instruction is determined according to the operation and maintenance instruction information.
[0036] In one embodiment, according to the operation and maintenance task, the target service container in the local device is operated and maintained, including:
[0037] According to the information of the container to be operated and maintained in the operation and maintenance task, determine whether the target business container exists in the local candidate business container;
[0038] If it exists, the target operation and maintenance instruction in the operation and maintenance task is sent to the target business container, so that the target business container runs the target operation and maintenance instruction.
[0039] In one of the embodiments, the information of the container to be operated and maintained includes a container identifier and / or an application identifier.
[0040] In a fourth aspect, the present application also provides a container operation and maintenance device, the device comprising:
[0041] A request sending module, used to respond to the operation and maintenance operation of the operation and maintenance demander, send an operation and maintenance request carrying operation and maintenance information to the management server, instruct the management server to construct an operation and maintenance task according to the operation and maintenance information, and send the operation and maintenance task to at least two target business servers, so that each target business server performs operation and maintenance on the target business container in each target business server based on the operation and maintenance task;
[0042] The result acquisition module is used to obtain the comprehensive operation and maintenance results sent by the management server; the comprehensive operation and maintenance results are determined based on the target operation and maintenance results fed back by each target business server.
[0043] In a fifth aspect, the present application also provides a container operation and maintenance device, the device comprising:
[0044] A request receiving module, used to receive an operation and maintenance request carrying operation and maintenance information sent by a terminal;
[0045] Task construction module, used to construct operation and maintenance tasks based on operation and maintenance information;
[0046] A task sending module is used to send an operation and maintenance task to at least two target business servers, so that each target business server operates and maintains a target business container in each target business server according to the operation and maintenance task, and feeds back a target operation and maintenance result;
[0047] The result processing module is used to determine the comprehensive operation and maintenance result according to the target operation and maintenance result fed back by each target business server, and send the comprehensive operation and maintenance result to the terminal.
[0048] In a sixth aspect, the present application also provides a container operation and maintenance device, the device comprising:
[0049] A task receiving module, used to receive an operation and maintenance task sent by a management server; wherein the operation and maintenance task is constructed based on the operation and maintenance information in the operation and maintenance request sent by the terminal;
[0050] The operation and maintenance module is used to operate and maintain the local target business container according to the operation and maintenance tasks, and feedback the target operation and maintenance results to the management server.
[0051] In a seventh aspect, the present application further provides a computer device, the computer device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program:
[0052] In response to the operation and maintenance operation of the operation and maintenance demander, an operation and maintenance request carrying the operation and maintenance information is sent to the management server to instruct the management server to construct an operation and maintenance task according to the operation and maintenance information, and the operation and maintenance task is sent to at least two target business servers, and each target business server performs operation and maintenance on the target business container in each target business server based on the operation and maintenance task;
[0053] Obtain the comprehensive operation and maintenance results sent by the management server; the comprehensive operation and maintenance results are determined based on the target operation and maintenance results fed back by each target business server.
[0054] In an eighth aspect, the present application further provides a computer device, the computer device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program:
[0055] Receiving an operation and maintenance request carrying operation and maintenance information sent by a terminal;
[0056] Construct operation and maintenance tasks based on operation and maintenance information;
[0057] Sending an operation and maintenance task to at least two target business servers, so that each target business server operates and maintains a target business container in each target business server according to the operation and maintenance task, and feeds back a target operation and maintenance result;
[0058] The comprehensive operation and maintenance results are determined based on the target operation and maintenance results fed back by each target business server, and are sent to the terminal.
[0059] In a ninth aspect, the present application further provides a computer device, the computer device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program:
[0060] Receiving an operation and maintenance task sent by a management server; wherein the operation and maintenance task is constructed based on the operation and maintenance information in the operation and maintenance request sent by the terminal;
[0061] According to the operation and maintenance tasks, the local target business container is operated and maintained, and the target operation and maintenance results are fed back to the management server.
[0062] In a tenth aspect, the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0063] In response to the operation and maintenance operation of the operation and maintenance demander, an operation and maintenance request carrying the operation and maintenance information is sent to the management server to instruct the management server to construct an operation and maintenance task according to the operation and maintenance information, and the operation and maintenance task is sent to at least two target business servers, and each target business server performs operation and maintenance on the target business container in each target business server based on the operation and maintenance task;
[0064] Obtain the comprehensive operation and maintenance results sent by the management server; the comprehensive operation and maintenance results are determined based on the target operation and maintenance results fed back by each target business server.
[0065] In an eleventh aspect, the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0066] Receiving an operation and maintenance request carrying operation and maintenance information sent by a terminal;
[0067] Construct operation and maintenance tasks based on operation and maintenance information;
[0068] Sending an operation and maintenance task to at least two target business servers, so that each target business server operates and maintains a target business container in each target business server according to the operation and maintenance task, and feeds back a target operation and maintenance result;
[0069] The comprehensive operation and maintenance results are determined based on the target operation and maintenance results fed back by each target business server, and are sent to the terminal.
[0070] In a twelfth aspect, the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0071] Receiving an operation and maintenance task sent by a management server; wherein the operation and maintenance task is constructed based on the operation and maintenance information in the operation and maintenance request sent by the terminal;
[0072] According to the operation and maintenance tasks, the local target business container is operated and maintained, and the target operation and maintenance results are fed back to the management server.
[0073] In a thirteenth aspect, the present application further provides a computer program product, the computer program product comprising a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0074] In response to the operation and maintenance operation of the operation and maintenance demander, an operation and maintenance request carrying the operation and maintenance information is sent to the management server to instruct the management server to construct an operation and maintenance task according to the operation and maintenance information, and the operation and maintenance task is sent to at least two target business servers, and each target business server performs operation and maintenance on the target business container in each target business server based on the operation and maintenance task;
[0075] Obtain the comprehensive operation and maintenance results sent by the management server; the comprehensive operation and maintenance results are determined based on the target operation and maintenance results fed back by each target business server.
[0076] In a fourteenth aspect, the present application further provides a computer program product, the computer program product comprising a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0077] Receiving an operation and maintenance request carrying operation and maintenance information sent by a terminal;
[0078] Construct operation and maintenance tasks based on operation and maintenance information;
[0079] Sending an operation and maintenance task to at least two target business servers, so that each target business server operates and maintains a target business container in each target business server according to the operation and maintenance task, and feeds back a target operation and maintenance result;
[0080] The comprehensive operation and maintenance results are determined based on the target operation and maintenance results fed back by each target business server, and are sent to the terminal.
[0081] In a fifteenth aspect, the present application further provides a computer program product, the computer program product comprising a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0082] Receiving an operation and maintenance task sent by a management server; wherein the operation and maintenance task is constructed based on the operation and maintenance information in the operation and maintenance request sent by the terminal;
[0083] According to the operation and maintenance tasks, the local target business container is operated and maintained, and the target operation and maintenance results are fed back to the management server.
[0084] In the above container operation and maintenance method, device, computer equipment and storage medium, the terminal interacts with the management server, and the management server sends operation and maintenance tasks to multiple target business servers at the same time, so that each target business server operates and maintains the local target business container, thereby achieving the effect of batch operation and maintenance of containers. Compared with the existing method of logging into the business server one by one to operate and maintain the business containers in the business server, the operation and maintenance efficiency is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0085] Figure 1 This is an application environment diagram of a container operation and maintenance method in an embodiment;
[0086] Figure 2 A flowchart of a container operation and maintenance method in one embodiment;
[0087] Figure 3 A schematic diagram of a process for comparing and displaying comprehensive operation and maintenance results with historical operation and maintenance results in one embodiment;
[0088] Figure 4 It is a flowchart of a container operation and maintenance method in another embodiment;
[0089] Figure 5 A schematic diagram of a process of determining at least two target service servers in an embodiment;
[0090] Figure 6 It is a flowchart of a container operation and maintenance method in another embodiment;
[0091] Figure 7 A schematic diagram of a process of sending a target operation and maintenance instruction to a target business container in one embodiment;
[0092] Figure 8 It is a signaling diagram of a container operation and maintenance method in one embodiment;
[0093] Fig. 9 is a structural block diagram of a container operation and maintenance device in an embodiment;
[0094] Fig.10 It is a structural block diagram of a container operation and maintenance device in another embodiment;
[0095] Fig.11 It is a structural block diagram of a container operation and maintenance device in another embodiment;
[0096] Fig.12 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment.
[0097] Fig.13 FIG. 4 is a diagram showing the internal structure of a computer device in another embodiment. DETAILED DESCRIPTION
[0098] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0099] The container operation and maintenance method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the management server 104 in the server cluster (such as the K8S cluster) through the network, and the management server 104 can communicate with the business server 106 that processes the business in the server cluster. Among them, multiple business containers can be installed in each business server 106, and each business container can be deployed with relevant data such as the dependency package of the application. The data storage system can store the data that the management server 104 needs to process. The data storage system can be integrated on the management server 104, or it can be placed on the cloud or other network management servers (such as the storage server in the server cluster).
[0100] Optionally, in the present application, the terminal 102 may respond to the operation and maintenance operation of the operation and maintenance demander, and send an operation and maintenance request carrying operation and maintenance information to the management server 104, which is used to instruct the management server 104 to construct an operation and maintenance task according to the operation and maintenance information, and send the operation and maintenance task to at least two target business servers, and each target business server performs operation and maintenance on the target business container in each target business server based on the operation and maintenance task; thereafter, the management server 104 may obtain the target operation and maintenance result of the target business container from the target business server, and perform a comprehensive analysis to obtain a comprehensive operation and maintenance result, and feed back the comprehensive operation and maintenance result to the terminal 102. Among them, the target business server may be one or more of the business servers 106 involved in the server cluster.
[0101] The terminal 102 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, IoT devices, and portable wearable devices. IoT devices may be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. The management server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.
[0102] With the popularization of cloud native technology, it has become a trend to deploy applications on the cloud. For example, the application's dependency packages and other related data can be deployed in containers installed on one or more business servers in a cloud server cluster. Among them, the service continuity of the application depends on the healthy operation of the container, the network communication between containers, and other aspects, so it is very important to operate and maintain the container.
[0103] Currently, the main way to operate and maintain containers is to manually log in to the business server one by one through the client to operate and maintain the container. However, when an application consists of hundreds or thousands of containers, the operation and maintenance efficiency is extremely low and needs to be improved urgently.
[0104] Kubernetes (abbreviated as K8s) is an open source system for automatically deploying, scaling and managing containerized applications. K8s can help users save many manual deployment and scaling operations in the application containerization process. In addition, K8s can also bring together multiple groups of hosts running containerized applications so that K8s can easily and efficiently manage these clusters, which can include hosts deployed across public clouds, private clouds or hybrid clouds. The management server 104 in this embodiment is the management node in Kubernetes, and the business server 106 is the working node in Kubernetes.
[0105] In one embodiment, Figure 2 As shown, a container operation and maintenance method is provided, which is applied to Figure 1The terminal 102 in the example is used as an example to illustrate, and the following steps are included:
[0106] S202, in response to the operation and maintenance operation of the operation and maintenance demander, sends an operation and maintenance request carrying operation and maintenance information to the management server, instructing the management server to construct an operation and maintenance task according to the operation and maintenance information, and sends the operation and maintenance task to at least two target business servers, and each target business server performs operation and maintenance on the target business container in each target business server based on the operation and maintenance task.
[0107] Among them, the operation and maintenance demand party is any party that has the operation and maintenance demand for the business container. Optionally, the terminal may be configured with an operation and maintenance tool, and the so-called operation and maintenance tool may be presented in the form of a mini-program, a web page, or an independent APP. Furthermore, the operation and maintenance operation may be an operation performed by the operation and maintenance demand party on the visual interface displayed by the operation and maintenance tool in the terminal. For example, the terminal may display the status information (including available status and unavailable status, etc.) of the business containers installed in each business server to the operation and maintenance demand party through the visual interface of the operation and maintenance tool, and then the operation and maintenance demand party may select or input the operation of the container information to be operated and the operation and maintenance operation information on the visual interface displayed by the operation and maintenance tool in the terminal according to the displayed status information and the actual operation and maintenance needs.
[0108] Exemplarily, the terminal may parse the operation of the operation demander to generate an operation request containing operation information. The operation information may include information of the container to be operated and maintenance and operation information, etc. The information of the container to be operated is the relevant information of the business container that needs operation; the operation information may include operation script information or operation instruction information. Both the operation script information and the operation instruction information can locate specific operation instructions. The operation instructions may include container dimension operation instructions and / or application dimension operation instructions. Optionally, the operation instructions include but are not limited to instructions for reading / writing data and instructions for running and setting operation programs.
[0109] After generating an operation and maintenance request including operation and maintenance information, the terminal can send the operation and maintenance request to the management server, and the management server responds to the operation and maintenance request. Specifically, the management server can construct an operation and maintenance task based on the operation and maintenance information. At the same time, the management server can use some or all of the business servers in the server cluster as target business servers; and then send the operation and maintenance task to each target business server. Among them, the operation and maintenance task refers to the task to be executed that the management server establishes according to the operation and maintenance information after receiving the operation and maintenance request. Optionally, the operation and maintenance task may include the task initiator, the operation and maintenance task identifier, the operation and maintenance task level, the operation and maintenance time, the container information to be operated, the operation and maintenance operation information (or the operation and maintenance instructions obtained based on the operation and maintenance operation information) and the login information of the container to be operated, etc.
[0110] The management server sends the operation and maintenance tasks to each target business server, and each target business server can realize the automatic operation and maintenance of the target business container based on the operation and maintenance tasks. Specifically, each target business server can parse the operation and maintenance task to obtain the login information of the container to be operated and maintained, that is, the login information required to log in to the target business container (for example, user name and user password), and verify the obtained login information of the container to be operated and maintained. If the verification passes, the target business server can select the target business container from the installed business containers according to the information of the container to be operated and maintained in the operation and maintenance task, and send an operation and maintenance instruction to the target business container to obtain the container operation data of the target business container and the application operation data of the application in the target business container; then the target business server can also test the container operation data and application operation data of the target business container based on the operation and maintenance instruction to generate the target operation and maintenance result, which can be operation and maintenance success, operation and maintenance failure, or various test parameters corresponding to the operation and maintenance task; then, the target business server feeds back the target operation and maintenance results of each target business container to the management server.
[0111] S204, obtaining the comprehensive operation and maintenance result sent by the management server.
[0112] Specifically, the management server obtains each target operation and maintenance result from each target business server to generate a comprehensive operation and maintenance result, and the terminal obtains the comprehensive operation and maintenance result from the management server. The comprehensive operation and maintenance result is determined based on the target operation and maintenance results fed back by each target business server.
[0113] In the above container operation and maintenance method, the terminal interacts with the management server, and the management server sends operation and maintenance tasks to multiple target business servers at the same time, so that each target business server operates and maintains the local target business container, thereby achieving the effect of batch operation and maintenance of containers. Compared with the existing method of logging into the business server one by one to operate and maintain the business containers in the business server, the operation and maintenance efficiency is improved.
[0114] In one embodiment, the operation and maintenance information may include operation and maintenance instruction information and information of containers to be operated and maintained.
[0115] Among them, the operation and maintenance instruction information is used to locate specific operation and maintenance instructions. The operation and maintenance instruction information may include specific operation and maintenance instructions, and may also include identification information of the operation and maintenance instructions; further, when the operation and maintenance instruction information includes identification information, the target operation and maintenance instructions can be obtained from the stored instruction set according to the identification information of the operation and maintenance instructions, and the stored instruction set may be instructions edited by the user at a historical moment.
[0116] The information of the container to be operated and maintained is used to locate a specific target business container; optionally, the information of the container to be operated and maintained may be identification information of the target business container, which may specifically include a container identification and / or an application identification.
[0117] It is understandable that the operation and maintenance demander operates and maintains each container according to the preset operation and maintenance strategy. Among them, the operation and maintenance strategy can be to perform batch operation and maintenance on each container corresponding to the same application, or to perform batch operation and maintenance on different batches of containers according to the operation and maintenance frequency. In order to facilitate the rapid search for the corresponding container, in one embodiment, the identification information of each business container can be composed of a container identifier and an application identifier, or a container identifier, an application identifier and a number. For example, A (application identifier)-test1 (container identifier)-1 (number).
[0118] The application identifier is a unique identifier for each application. When an application is deployed in a container, the business server assigns a value to the application by default to uniquely identify the application. This value is considered the application ID. There can be one or more containers carrying this application. The container identifier is a unique identifier for the container, such as the name of the container. Furthermore, the container identifier can also be identified by the container's unique namespace.
[0119] Optionally, if the information of the container to be operated and maintained includes an application identifier, the operation and maintenance task is performed to implement batch operation and maintenance of containers based on the application dimension; if the information of the container to be operated and maintained includes a container identifier, the batch operation and maintenance capacity is implemented based on the container dimension.
[0120] Exemplarily, when the operation and maintenance information includes operation and maintenance instruction information and information of the container to be operated and maintained, the operation and maintenance request can be specifically used to instruct the management server to obtain target operation and maintenance instructions according to the operation and maintenance instruction information, and to construct an operation and maintenance task according to the target operation and maintenance instructions and the container information to be operated and maintained.
[0121] Specifically, when constructing an operation and maintenance task, the management server can obtain the target operation and maintenance instruction from the instruction set according to the identification information of the operation and maintenance instruction, and based on the pre-set task creation logic, generate an operation and maintenance task for the target business container according to the target operation and maintenance instruction and the container information to be operated and maintained. Then, the operation and maintenance task is sent to at least two target business servers, and each target business server operates and maintains the target business container in each target business server based on the operation and maintenance task.
[0122] In order to facilitate the operation and maintenance demand party to quickly and accurately analyze the operation and maintenance results of the container, in one embodiment, Figure 3 As shown, the container operation and maintenance method also includes:
[0123] S302, in response to a comparison request from the operation and maintenance demander, obtaining historical operation and maintenance results of the target business container according to the information of the container to be operated and maintained.
[0124] The comparison request refers to a request triggered by the operation and maintenance demander when there is a need to compare and analyze the comprehensive operation and maintenance results of the target business container obtained this time with the historical operation and maintenance results of the target business container obtained before this time. The historical operation and maintenance results can be the operation and maintenance results obtained for the target business container based on the same operation and maintenance task at a historical moment, for example, it can be the operation and maintenance results of the last control of the target business container based on the same operation and maintenance task.
[0125] Specifically, the terminal responds to the comparison request of the operation and maintenance demander, determines the target business container according to the information of the container to be operated and maintained, and obtains the historical operation and maintenance results of the target business container.
[0126] S303, comparing and displaying the comprehensive operation and maintenance results with the historical operation and maintenance results.
[0127] In this embodiment, after obtaining the comprehensive operation and maintenance result of this operation and maintenance, the terminal compares and displays the comprehensive operation and maintenance result with the historical operation and maintenance result, so as to facilitate the operation and maintenance demander to analyze the changes of the target business container, such as determining the current fault of the target business container based on the comparison.
[0128] Furthermore, in order to meet the diverse operation and maintenance needs of the operation and maintenance demanders, in one embodiment, the container operation and maintenance method also includes: responding to the instruction editing operation of the operation and maintenance demander, obtaining available operation and maintenance instructions, and storing the available operation and maintenance instructions in the storage server, so that the management server can obtain the target operation and maintenance instructions from the available operation and maintenance instructions stored in the storage server according to the operation and maintenance instruction information.
[0129] Optionally, the operation and maintenance tool in the terminal may be configured with an instruction editing window for the operation and maintenance demander to edit the operation and maintenance instruction. For example, the operation and maintenance demander may input the operation and maintenance instruction through the instruction editing window, and then when the terminal detects that the operation and maintenance instruction is input in the instruction editing window, it obtains the corresponding operation and maintenance instruction, and when it is identified that the format of the obtained operation and maintenance instruction meets the requirements, the operation and maintenance instruction is regarded as an available operation and maintenance instruction, and a unique identifier is configured for it, which is stored in the storage server, so that the management server can obtain the target operation and maintenance instruction from the available operation and maintenance instructions stored in the storage server according to the operation and maintenance instruction information (specifically the identification information of the operation and maintenance instruction in this case).
[0130] It is understandable that in this embodiment, the pre-edited operation and maintenance instructions can be stored in the storage server for the operation and maintenance demand party to choose to use when there is an operation and maintenance demand. For example, the terminal can display the identification information of the available operation and maintenance instructions in the storage server and the related function description to the operation and maintenance demand party through the operation and maintenance tool. The operation and maintenance demand party can select the identification information of the required operation and maintenance instructions according to actual needs, and then the terminal can generate an operation and maintenance request based on the identification information of the operation and maintenance instructions selected by the operation and maintenance demand party.
[0131] It should be noted that any operation and maintenance instruction does not depend on a specific container or application and can be applied to the operation and maintenance operations of any application and container according to operation and maintenance requirements.
[0132] In one embodiment, Figure 4 As shown, a container operation and maintenance method is provided, which is applied to Figure 1 Taking the management server 104 in the example as an example, the following steps are included:
[0133] S402, receiving an operation and maintenance request carrying operation and maintenance information sent by a terminal, and constructing an operation and maintenance task according to the operation and maintenance information.
[0134] Optionally, the management server may include a bastion container and a control container; the bastion container can communicate with the terminal, for example, it can be used to receive operation and maintenance requests carrying operation and maintenance information sent by the terminal, and can also send comprehensive operation and maintenance results to the terminal; further, the management server may also include a control container for connecting to the business server, which is used to construct operation and maintenance tasks based on the operation and maintenance information forwarded by the bastion container, or the processed operation and maintenance information.
[0135] S404: Send an operation and maintenance task to at least two target business servers, so that each target business server operates and maintains a target business container in each target business server according to the operation and maintenance task, and feeds back a target operation and maintenance result.
[0136] Among them, the control container selects at least two target business servers from the business servers involved in the server cluster, and sends operation and maintenance tasks to the at least two target business servers, so that each target business server operates and maintains the target business container in each target business server according to the operation and maintenance task, and feeds back the target operation and maintenance result.
[0137] S406: Determine a comprehensive operation and maintenance result according to the target operation and maintenance results fed back by each target business server, and send the comprehensive operation and maintenance result to the terminal.
[0138] Among them, the control container generates a comprehensive operation and maintenance result based on the target operation and maintenance results fed back by each target business server, and sends the comprehensive operation and maintenance result to the terminal through the bastion container to realize batch display of the operation and maintenance results of each business container.
[0139] In order to facilitate the operation and maintenance demander to trace the process and results of each operation and maintenance operation, after obtaining the comprehensive operation and maintenance results, the operation and maintenance tasks corresponding to the operation and maintenance request and the comprehensive operation and maintenance results can also be associated and stored. It can be understood that the operation and maintenance tasks corresponding to the operation and maintenance request and the comprehensive operation and maintenance results are associated and stored uniformly, so that the operation and maintenance demander can simultaneously retrieve the operation and maintenance tasks of this operation and maintenance when tracing the comprehensive operation and maintenance results, which is convenient for subsequent tracing.
[0140] In the above container operation and maintenance method, the management server constructs an operation and maintenance task according to the operation and maintenance information in the operation and maintenance request sent by the terminal, and sends the operation and maintenance task to multiple target business servers at the same time, so that each target business server operates and maintains the local target business container, thereby achieving the effect of batch operation and maintenance of containers. Compared with the existing method of logging into the business server one by one to operate and maintain the business containers in the business server, the operation and maintenance efficiency is improved.
[0141] Optionally, the operation and maintenance information in this application includes operation and maintenance instruction information and information of containers to be operated and maintained, and the information of containers to be operated and maintained includes a container identifier and / or an application identifier; further, in the case where the operation and maintenance information includes operation and maintenance instruction information and information of containers to be operated and maintained, the construction of operation and maintenance tasks according to the operation and maintenance information in S402 is further explained in detail. Specifically, according to the operation and maintenance information, the construction of the operation and maintenance task may be to obtain the target operation and maintenance instruction according to the operation and maintenance instruction information; and to construct the operation and maintenance task according to the target operation and maintenance instruction and the information of the container to be operated and maintained. Among them, the operation and maintenance instruction information may include identification information of the operation and maintenance instruction.
[0142] Specifically, the management server can obtain the target operation and maintenance instruction from the instruction set according to the identification information of the operation and maintenance instruction, and based on the pre-set task creation logic, generate the operation and maintenance task for the target business container according to the target operation and maintenance instruction and the container information to be operated and maintained. Optionally, the operation and maintenance task can include one or more target operation and maintenance instructions.
[0143] Furthermore, in order to improve the security of container operation and maintenance, in one embodiment, based on the target operation and maintenance instructions and the information of the container to be operated and maintained, the target operation and maintenance instructions can also be verified before building the operation and maintenance task. Specifically, it can be to verify whether the operation and maintenance demander has the authority to use the target operation and maintenance instructions, and / or to verify the operating security of the target operation and maintenance instructions.
[0144] Optionally, when the operation and maintenance requester sends an operation and maintenance request based on the terminal, the identity information of the operation and maintenance requester (for example, user name and user password) needs to be entered on the terminal. When the bastion container receives the operation and maintenance request, the identity information of the operation and maintenance requester and the operation and maintenance instruction information corresponding to the operation and maintenance request are verified to determine whether the operation and maintenance requester is allowed to call the target operation and maintenance instruction corresponding to the operation and maintenance instruction information. If the permission is not allowed, the construction of the operation and maintenance task fails.
[0145] Furthermore, after the fortress container obtains the target operation and maintenance instruction according to the operation and maintenance instruction information, it can also perform security verification on the target operation and maintenance instruction. For example, the target operation and maintenance instruction is matched with the risk instruction strategy in the fortress container, and the matching result is output; if the target operation and maintenance instruction matches the risk instruction strategy successfully, the target operation and maintenance instruction is marked as a risk instruction and intercepted, generating an alarm event; if the match fails, the target operation and maintenance instruction is a normal instruction, and the fortress container releases the target operation and maintenance instruction without intercepting it.
[0146] It can be understood that the embodiments of the present application improve the security of the container when performing operation and maintenance tasks by double verifying the authority of the operation and maintenance demander and the security of the target operation and maintenance instructions.
[0147] In one embodiment, Figure 5 As shown, the sending of the operation and maintenance task to at least two target business servers in the above S404 is further refined. Specifically, the following steps are included:
[0148] S502: Select at least two target business servers from the candidate business servers according to the information of the container to be operated and maintained and the information of the operable containers in the candidate business servers.
[0149] S504: Sending operation and maintenance tasks to at least two target business servers.
[0150] Optionally, in this embodiment, all business servers in the server cluster are used as candidate business servers. The operable container information may be information of all business containers in the candidate business containers, such as identification information of all business containers, or information of business containers in the candidate business containers instructed by the operation and maintenance demander.
[0151] Specifically, the management server can match the information of the container to be operated and maintained with the information of the operable container in the candidate business server, and use the candidate business server with a match as the target business server. Thereafter, the operation and maintenance task is sent to each target business container respectively.
[0152] Furthermore, when the operation and maintenance task includes multiple target operation and maintenance instructions, the multiple target operation and maintenance instructions may be sent to each target business server at the same time; or different target operation and maintenance instructions may be sent to different target business servers.
[0153] It can be understood that the management server only sends the operation and maintenance tasks to the target business server that meets the information of the container to be operated and maintained, thereby saving communication resources.
[0154] In one embodiment, when an operation and maintenance management container is integrated in the business server, the control container in the management server can be directly connected to the operation and maintenance management container. In this case, the above S404 can specifically be to send an operation and maintenance task to the operation and maintenance management containers in at least two target business servers, so that the operation and maintenance management container in each target business server operates and maintains the target business container in each target business server according to the operation and maintenance task, and feeds back the target operation and maintenance result. Among them, the operation and maintenance management container in the target business server is used to manage the issuance of operation and maintenance tasks, and manage each target operation and maintenance result.
[0155] In one embodiment, Figure 6 As shown, this embodiment discloses a container operation and maintenance method, which is composed of Figure 1 Any business server 106 in the process is executed, and the business server is the target business server at this time. Specifically, the following steps are included:
[0156] S602: Receive an operation and maintenance task sent by a management server.
[0157] The operation and maintenance task is constructed based on the operation and maintenance information in the operation and maintenance request sent by the terminal.
[0158] S604: Perform operation and maintenance on the local target business container according to the operation and maintenance task, and feed back the target operation and maintenance result to the management server.
[0159] Optionally, the operation and maintenance information includes operation and maintenance instruction information and information of the container to be operated and maintained; the information of the container to be operated and maintained includes a container identifier and / or an application identifier. Furthermore, the operation and maintenance task is specifically constructed based on the target operation and maintenance instruction and the information of the container to be operated and maintained, and the target operation and maintenance instruction is determined according to the operation and maintenance instruction information; the operation and maintenance task may include the task initiator, the operation and maintenance task identifier, the operation and maintenance task level, the operation and maintenance time, the information of the container to be operated and maintained, the operation and maintenance instruction information (or the target operation and maintenance instruction obtained based on the operation and maintenance instruction information) and the login information of the container to be operated and maintained, etc.
[0160] Specifically, the target business server can parse the operation and maintenance task to obtain login information of the container to be operated and maintained, that is, the login information required to log in to the target business container (for example, user name and user password), and verify the obtained login information of the container to be operated and maintained. If the verification passes, the target business server can select the target business container from the installed business containers according to the information of the container to be operated and maintained in the operation and maintenance task, and send an operation and maintenance instruction to the target business container to obtain the container operation data of the target business container and the application operation data of the application in the target business container; then the target business server can also test the container operation data and the application operation data of the target business container based on the operation and maintenance instruction to generate a target operation and maintenance result, and the target operation and maintenance result can be an operation and maintenance success, an operation and maintenance failure, or various test parameters corresponding to the operation and maintenance task; thereafter, the target business server feeds back the target operation and maintenance results of each target business container to the management server.
[0161] In the container operation and maintenance method, the target business server interacts with the management server to obtain operation and maintenance tasks and operates and maintains the local target business container. Compared with the existing method of logging into the business server to operate and maintain the business container in the business server, the operation and maintenance efficiency is improved.
[0162] In one embodiment, Figure 7 As shown, S604 is further refined. The specific implementation process includes the following steps:
[0163] S702: Determine whether there is a target business container in the local candidate business containers according to the information of the container to be operated and maintained in the operation and maintenance task.
[0164] S704: If yes, send the target operation and maintenance instruction in the operation and maintenance task to the target business container, so that the target business container runs the target operation and maintenance instruction.
[0165] In this embodiment, all service containers in the target service server may be used as candidate service containers.
[0166] Specifically, before executing the operation and maintenance task, the target business server first determines whether there is a target business container corresponding to the operation and maintenance task in the local candidate business container. If there is a target business container, the target operation and maintenance container is operated and maintained according to the target operation and maintenance instruction; if there is no target business container, the query failure information is returned.
[0167] In this embodiment, when an operation and maintenance task is received, it is first verified whether there is a container to be operated and maintained that matches the operation and maintenance task in the local candidate containers. If so, the operation and maintenance task is executed on the target business container to be operated and maintained.
[0168] In one embodiment, an optional example of a method for implementing container operation and maintenance by interaction between a terminal, a management server, and a target business server is provided. Figure 8 The signaling interaction process diagram of the container operation and maintenance method shown in the figure can be implemented by the following steps:
[0169] S1001, in response to an operation and maintenance operation of an operation and maintenance demander, a terminal sends an operation and maintenance request carrying operation and maintenance information to a management server.
[0170] S1002, the management server receives an operation and maintenance request carrying operation and maintenance information sent by the terminal, and constructs an operation and maintenance task according to the operation and maintenance information.
[0171] S1003: The management server selects at least two target business servers from the candidate business servers according to the information of the container to be operated and maintained and the information of the operable containers in the candidate business servers, and sends an operation and maintenance task to the at least two target business servers.
[0172] S1004, each target business server receives the operation and maintenance task sent by the management server, and determines whether there is a target business container in the local candidate business container based on the information of the container to be operated and maintained in the operation and maintenance task. If so, the target operation and maintenance instruction in the operation and maintenance task is sent to the target business container so that the target business container runs the target operation and maintenance instruction.
[0173] S1005, each target business server feeds back a target operation and maintenance result to the management server.
[0174] S1006: The management server determines a comprehensive operation and maintenance result based on the target operation and maintenance results fed back by each target business server.
[0175] S1007, the management server sends the comprehensive operation and maintenance results to the terminal.
[0176] S1008, the terminal obtains the comprehensive operation and maintenance result sent by the management server.
[0177] S1009, the terminal responds to the comparison request of the operation and maintenance demander, obtains the historical operation and maintenance results of the target business container according to the information of the container to be operated and maintained, and compares and displays the comprehensive operation and maintenance results with the historical operation and maintenance results.
[0178] The specific process of the above S1001-S1009 can be found in the description of the above method embodiment. The implementation principle and technical effect are similar and will not be repeated here.
[0179] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0180] Based on the same inventive concept, the embodiment of the present application also provides a container operation and maintenance device for implementing the container operation and maintenance method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more container operation and maintenance device embodiments provided below can refer to the limitations of the container operation and maintenance method above, and will not be repeated here.
[0181] In one embodiment, Fig. 9 As shown, a container operation and maintenance device 1 is provided, comprising: a request sending module 10 and a result obtaining module 11, wherein:
[0182] The request sending module 10 is used to send an operation and maintenance request carrying operation and maintenance information to the management server in response to the operation and maintenance operation of the operation and maintenance demander, and to instruct the management server to construct an operation and maintenance task according to the operation and maintenance information, and send the operation and maintenance task to at least two target business servers, so that each target business server performs operation and maintenance on the target business container in each target business server based on the operation and maintenance task;
[0183] The result acquisition module 11 is used to acquire the comprehensive operation and maintenance result sent by the management server; the comprehensive operation and maintenance result is determined based on the target operation and maintenance result fed back by each target business server.
[0184] In one embodiment, the operation and maintenance information includes operation and maintenance instruction information and information of containers to be operated and maintained;
[0185] The operation and maintenance request is specifically used to instruct the management server to obtain the target operation and maintenance instruction according to the operation and maintenance instruction information, and to construct the operation and maintenance task according to the target operation and maintenance instruction and the information of the container to be operated and maintained.
[0186] In one embodiment, the container operation and maintenance device 1 also includes a response module, which is used to respond to a comparison request from the operation and maintenance demander, obtain the historical operation and maintenance results of the target business container based on the information of the container to be operated and maintained, and compare and display the comprehensive operation and maintenance results with the historical operation and maintenance results.
[0187] In one embodiment, the information of the container to be operated and maintained includes a container identifier and / or an application identifier.
[0188] In one embodiment, the container operation and maintenance device 1 also includes a calling module, which is used to respond to the instruction editing operation of the operation and maintenance demander, obtain available operation and maintenance instructions, and store the available operation and maintenance instructions in a storage server, so that the management server can obtain the target operation and maintenance instructions from the available operation and maintenance instructions stored in the storage server according to the operation and maintenance instruction information.
[0189] In one embodiment, Fig.10 As shown, a container operation and maintenance device 2 is provided, comprising: a request receiving module 20, a task building module 21, a task sending module 22 and a result processing module 23, wherein:
[0190] The request receiving module 20 is used to receive an operation and maintenance request carrying operation and maintenance information sent by a terminal;
[0191] A task construction module 21 is used to construct an operation and maintenance task according to the operation and maintenance information;
[0192] The task sending module 22 is used to send an operation and maintenance task to at least two target business servers, so that each target business server operates and maintains the target business container in each target business server according to the operation and maintenance task, and feeds back the target operation and maintenance result;
[0193] The result processing module 23 is used to determine the comprehensive operation and maintenance result according to the target operation and maintenance results fed back by each target business server, and send the comprehensive operation and maintenance result to the terminal.
[0194] In one embodiment, the operation and maintenance information includes operation and maintenance instruction information and information of containers to be operated and maintained; the task construction module 21 includes:
[0195] The instruction acquisition submodule is used to obtain the target operation and maintenance instruction according to the operation and maintenance instruction information;
[0196] The construction submodule is used to build operation and maintenance tasks according to the target operation and maintenance instructions and the information of the container to be operated and maintained.
[0197] In one embodiment, the container operation and maintenance device 2 further includes a verification module, which is used to verify whether the operation and maintenance demander has the authority to use the target operation and maintenance instructions, and / or to verify the operation safety of the target operation and maintenance instructions.
[0198] In one embodiment, the task sending module 22 is further used to select at least two target business servers from the candidate business servers according to the information of the container to be operated and maintained and the information of the operable container in the candidate business servers; and send the operation and maintenance tasks to the at least two target business servers.
[0199] In one embodiment, the information of the container to be operated and maintained includes a container identifier and / or an application identifier.
[0200] In one embodiment, the task sending module 22 is also used to send operation and maintenance tasks to the operation and maintenance management containers in at least two target business servers, so that the operation and maintenance management container in each target business server operates and maintains the target business container in each target business server according to the operation and maintenance task, and feeds back the target operation and maintenance results.
[0201] In one embodiment, the container operation and maintenance device 2 further includes a storage module, which is used to associate and store the operation and maintenance tasks and the comprehensive operation and maintenance results corresponding to the operation and maintenance requests.
[0202] In one embodiment, Fig.11 As shown, a container operation and maintenance device 3 is provided, including: a task receiving module 30 and an operation and maintenance module 31, wherein:
[0203] The task receiving module 30 is used to receive the operation and maintenance task sent by the management server; wherein the operation and maintenance task is constructed based on the operation and maintenance information in the operation and maintenance request sent by the terminal;
[0204] The operation and maintenance module 31 is used to operate and maintain the local target business container according to the operation and maintenance task, and feed back the target operation and maintenance result to the management server.
[0205] In one embodiment, the operation and maintenance information includes operation and maintenance instruction information and information of containers to be operated and maintained; the operation and maintenance task is specifically constructed based on the target operation and maintenance instruction and the information of the containers to be operated and maintained, and the target operation and maintenance instruction is determined according to the operation and maintenance instruction information.
[0206] In one embodiment, the operation and maintenance module 31 is also used to determine whether there is a target business container in the local candidate business container based on the information of the container to be operated and maintained in the operation and maintenance task; if so, send the target operation and maintenance instructions in the operation and maintenance task to the target business container so that the target business container runs the target operation and maintenance instructions.
[0207] In one embodiment, the information of the container to be operated and maintained includes a container identifier and / or an application identifier.
[0208] Each module in the above container operation and maintenance device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.
[0209] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.12As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a container operation and maintenance method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0210] Those skilled in the art will understand that Fig.12 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0211] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0212] In response to the operation and maintenance operation of the operation and maintenance demander, an operation and maintenance request carrying the operation and maintenance information is sent to the management server to instruct the management server to construct an operation and maintenance task according to the operation and maintenance information, and the operation and maintenance task is sent to at least two target business servers, and each target business server performs operation and maintenance on the target business container in each target business server based on the operation and maintenance task;
[0213] Obtain the comprehensive operation and maintenance results sent by the management server; the comprehensive operation and maintenance results are determined based on the target operation and maintenance results fed back by each target business server.
[0214] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0215] In response to the operation and maintenance operation of the operation and maintenance demander, an operation and maintenance request carrying the operation and maintenance information is sent to the management server to instruct the management server to construct an operation and maintenance task according to the operation and maintenance information, and the operation and maintenance task is sent to at least two target business servers, and each target business server performs operation and maintenance on the target business container in each target business server based on the operation and maintenance task;
[0216] Obtain the comprehensive operation and maintenance results sent by the management server; the comprehensive operation and maintenance results are determined based on the target operation and maintenance results fed back by each target business server.
[0217] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0218] In response to the operation and maintenance operation of the operation and maintenance demander, an operation and maintenance request carrying the operation and maintenance information is sent to the management server to instruct the management server to construct an operation and maintenance task according to the operation and maintenance information, and the operation and maintenance task is sent to at least two target business servers, and each target business server performs operation and maintenance on the target business container in each target business server based on the operation and maintenance task;
[0219] Obtain the comprehensive operation and maintenance results sent by the management server; the comprehensive operation and maintenance results are determined based on the target operation and maintenance results fed back by each target business server.
[0220] In one embodiment, a computer device is provided. The computer device may be a server. The server may be the management server or the target service server described above. The internal structure diagram thereof may be as follows: Fig.13 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store container operation and maintenance management data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a container operation and maintenance method is implemented.
[0221] Those skilled in the art will understand that Fig.13 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0222] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0223] Receiving an operation and maintenance request carrying operation and maintenance information sent by a terminal;
[0224] Construct operation and maintenance tasks based on operation and maintenance information;
[0225] Sending an operation and maintenance task to at least two target business servers, so that each target business server operates and maintains a target business container in each target business server according to the operation and maintenance task, and feeds back a target operation and maintenance result;
[0226] The comprehensive operation and maintenance results are determined based on the target operation and maintenance results fed back by each target business server, and are sent to the terminal.
[0227] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0228] Receiving an operation and maintenance request carrying operation and maintenance information sent by a terminal;
[0229] Construct operation and maintenance tasks based on operation and maintenance information;
[0230] Sending an operation and maintenance task to at least two target business servers, so that each target business server operates and maintains a target business container in each target business server according to the operation and maintenance task, and feeds back a target operation and maintenance result;
[0231] The comprehensive operation and maintenance results are determined based on the target operation and maintenance results fed back by each target business server, and are sent to the terminal.
[0232] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0233] Receiving an operation and maintenance request carrying operation and maintenance information sent by a terminal;
[0234] Construct operation and maintenance tasks based on operation and maintenance information;
[0235] Sending an operation and maintenance task to at least two target business servers, so that each target business server operates and maintains a target business container in each target business server according to the operation and maintenance task, and feeds back a target operation and maintenance result;
[0236] The comprehensive operation and maintenance results are determined based on the target operation and maintenance results fed back by each target business server, and are sent to the terminal.
[0237] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0238] Receiving an operation and maintenance task sent by a management server; wherein the operation and maintenance task is constructed based on the operation and maintenance information in the operation and maintenance request sent by the terminal;
[0239] According to the operation and maintenance tasks, the local target business container is operated and maintained, and the target operation and maintenance results are fed back to the management server.
[0240] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0241] Receiving an operation and maintenance task sent by a management server; wherein the operation and maintenance task is constructed based on the operation and maintenance information in the operation and maintenance request sent by the terminal;
[0242] According to the operation and maintenance tasks, the local target business container is operated and maintained, and the target operation and maintenance results are fed back to the management server.
[0243] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0244] Receiving an operation and maintenance task sent by a management server; wherein the operation and maintenance task is constructed based on the operation and maintenance information in the operation and maintenance request sent by the terminal;
[0245] According to the operation and maintenance tasks, the local target business container is operated and maintained, and the target operation and maintenance results are fed back to the management server.
[0246] It should be noted that the operation and maintenance demand party information (including but not limited to the operation and maintenance demand party's equipment information, operation and maintenance demand party's personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the operation and maintenance demand party or fully authorized by all parties.
[0247] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0248] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0249] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A container operation and maintenance method, characterized in that: Applied to a terminal, the method comprises: In response to the operation and maintenance operation of the operation and maintenance demander, an operation and maintenance request carrying operation and maintenance information is sent to the management server; wherein the operation and maintenance information includes operation and maintenance instruction information and information of the container to be operated and maintained; the information of the container to be operated and maintained includes a container identifier or an application identifier; If the information of the container to be operated and maintained includes an application identifier, the operation and maintenance task is performed to realize batch operation and maintenance of containers based on the application dimension; If the information of the container to be operated and maintained includes a container identifier, batch operation and maintenance of the containers is implemented based on the container dimension; The operation and maintenance request is used to instruct the management server to obtain a target operation and maintenance instruction from an instruction set according to the operation and maintenance instruction information, and generate an operation and maintenance task for a target business container according to the target operation and maintenance instruction and the container information to be operated and maintained based on a preset task creation logic; The operation and maintenance request is further used to instruct the management server to send the operation and maintenance task to at least two target business servers, and each target business server performs operation and maintenance on the target business container in each target business server based on the operation and maintenance task; The comprehensive operation and maintenance result sent by the management server is obtained; the comprehensive operation and maintenance result is determined based on the target operation and maintenance result fed back by each target business server.
2. The method according to claim 1, characterized in that The method further comprises: In response to a comparison request from the operation and maintenance demander, obtaining historical operation and maintenance results of a target business container according to the information of the container to be operated and maintained; The comprehensive operation and maintenance results are compared and displayed with the historical operation and maintenance results.
3. The method according to claim 1, characterized in that The method further comprises: In response to the instruction editing operation of the operation and maintenance demander, available operation and maintenance instructions are obtained, and the available operation and maintenance instructions are stored in the storage server, so that the management server can obtain the target operation and maintenance instructions from the available operation and maintenance instructions stored in the storage server according to the operation and maintenance instruction information.
4. A container operation and maintenance method, characterized in that: Applied to a management server, the method comprises: An operation and maintenance request carrying operation and maintenance information sent by a receiving terminal; wherein the operation and maintenance information includes operation and maintenance instruction information and information of a container to be operated and maintained; the information of a container to be operated and maintained includes a container identifier or an application identifier; if the information of a container to be operated and maintained includes an application identifier, the operation and maintenance task is performed to realize batch operation and maintenance of containers in the application dimension; if the information of a container to be operated and maintained includes a container identifier, batch operation and maintenance of containers is realized in the container dimension; Obtaining a target operation and maintenance instruction from an instruction set according to the operation and maintenance instruction information, and generating an operation and maintenance task for a target business container according to the target operation and maintenance instruction and the container information to be operated and maintained based on a preset task creation logic; Sending the operation and maintenance task to at least two target business servers, so that each target business server operates and maintains the target business container in each target business server according to the operation and maintenance task, and feeds back the target operation and maintenance result; According to the target operation and maintenance results fed back by each target business server, a comprehensive operation and maintenance result is determined, and the comprehensive operation and maintenance result is sent to the terminal.
5. The method according to claim 4, characterized in that Before constructing the operation and maintenance task according to the target operation and maintenance instruction and the information of the container to be operated and maintained, the method further includes: Verify whether the operation and maintenance demander has the authority to use the target operation and maintenance instruction, and / or verify the operation safety of the target operation and maintenance instruction.
6. The method according to claim 4, characterized in that The sending the operation and maintenance task to at least two target business servers includes: Selecting at least two target business servers from the candidate business servers according to the information of the container to be operated and maintained and the information of the operable containers in the candidate business servers; The operation and maintenance task is sent to the at least two target business servers.
7. The method according to claim 4, characterized in that The sending the operation and maintenance task to at least two target business servers so that each target business server operates and maintains a target business container in each target business server according to the operation and maintenance task, and feeds back a target operation and maintenance result, includes: The operation and maintenance task is sent to the operation and maintenance management containers in at least two target business servers, so that the operation and maintenance management container in each target business server operates and maintains the target business container in each target business server according to the operation and maintenance task, and feeds back the target operation and maintenance result.
8. The method according to claim 4, characterized in that The method further comprises: The operation and maintenance tasks and comprehensive operation and maintenance results corresponding to the operation and maintenance request are associated and stored.
9. A container operation and maintenance method, characterized in that: Applied to at least two target service servers, the method comprises: Receiving an operation and maintenance task sent by a management server; wherein the operation and maintenance task is constructed based on the operation and maintenance information in the operation and maintenance request sent by the terminal; The operation and maintenance information includes operation and maintenance instruction information and information of containers to be operated and maintained; the information of containers to be operated and maintained includes a container identifier or an application identifier; If the information of the container to be operated and maintained includes an application identifier, the operation and maintenance task is to implement batch operation and maintenance of containers in the application dimension; if the information of the container to be operated and maintained includes a container identifier, the batch operation and maintenance of containers is implemented in the container dimension; The operation and maintenance request is further used to instruct the management server to send the operation and maintenance task to at least two target business servers, and each target business server performs operation and maintenance on the target business container in each target business server based on the operation and maintenance task; According to the operation and maintenance task, the local target business container is operated and maintained, and the target operation and maintenance result is fed back to the management server; The operation and maintenance task is obtained by the management server acquiring a target operation and maintenance instruction from an instruction set according to identification information corresponding to the operation and maintenance instruction information, and is constructed based on a preset task creation logic according to the target operation and maintenance instruction and the container information to be operated and maintained.
10. The method according to claim 9, characterized in that The operation and maintenance information includes operation and maintenance instruction information and information of containers to be operated and maintained; the operation and maintenance task is specifically constructed based on the target operation and maintenance instruction and the information of the containers to be operated and maintained, and the target operation and maintenance instruction is determined according to the operation and maintenance instruction information.
11. The method according to claim 10, characterized in that The operating and maintaining the target service container in the local device according to the operating and maintenance task includes: Determine whether a target business container exists in the local candidate business container according to the information of the container to be operated and maintained in the operation and maintenance task; If so, the target operation and maintenance instruction in the operation and maintenance task is sent to the target business container, so that the target business container runs the target operation and maintenance instruction.
12. A container operation and maintenance device, characterized in that: The device comprises: A request sending module is used to send an operation and maintenance request carrying operation and maintenance information to a management server in response to the operation and maintenance operation of the operation and maintenance demander; wherein the operation and maintenance information includes operation and maintenance instruction information and information of containers to be operated and maintained; the information of containers to be operated and maintained includes a container identifier or an application identifier; if the information of containers to be operated and maintained includes an application identifier, the operation and maintenance task is performed to realize batch operation and maintenance of containers in the application dimension; if the information of containers to be operated and maintained includes a container identifier, batch operation and maintenance of containers is realized in the container dimension; The operation and maintenance request is used to instruct the management server to obtain a target operation and maintenance instruction from an instruction set according to the operation and maintenance instruction information, and generate an operation and maintenance task for a target business container according to the target operation and maintenance instruction and the container information to be operated and maintained based on a preset task creation logic; The operation and maintenance request is further used to instruct the management server to send the operation and maintenance task to at least two target business servers, and each target business server performs operation and maintenance on the target business container in each target business server based on the operation and maintenance task; The result acquisition module is used to acquire the comprehensive operation and maintenance result sent by the management server; the comprehensive operation and maintenance result is determined based on the target operation and maintenance result fed back by each target business server.
13. A container operation and maintenance device, characterized in that: The device comprises: A request receiving module, used to receive an operation and maintenance request carrying operation and maintenance information sent by a terminal; wherein the operation and maintenance information includes operation and maintenance instruction information and information of a container to be operated and maintained; the information of a container to be operated and maintained includes a container identifier or an application identifier; if the information of a container to be operated and maintained includes an application identifier, the operation and maintenance task is performed to realize batch operation and maintenance of containers in the application dimension; if the information of a container to be operated and maintained includes a container identifier, batch operation and maintenance of containers is realized in the container dimension; A task construction module, used to obtain a target operation and maintenance instruction from an instruction set according to the operation and maintenance instruction information, and generate an operation and maintenance task for a target business container according to the target operation and maintenance instruction and the container information to be operated and maintained based on a preset task creation logic; A task sending module, used to send the operation and maintenance task to at least two target business servers, so that each target business server operates and maintains the target business container in each target business server according to the operation and maintenance task, and feeds back the target operation and maintenance result; The result processing module is used to determine the comprehensive operation and maintenance result according to the target operation and maintenance results fed back by each target business server, and send the comprehensive operation and maintenance result to the terminal.
14. A container operation and maintenance device, characterized in that: The device comprises: A task receiving module, used to receive an operation and maintenance task sent by a management server; the operation and maintenance task is constructed based on the operation and maintenance information in the operation and maintenance request sent by the terminal; wherein the operation and maintenance information includes operation and maintenance instruction information and information of containers to be operated and maintained; the information of containers to be operated and maintained includes a container identifier or an application identifier; if the information of containers to be operated and maintained includes an application identifier, the execution of the operation and maintenance task is to realize batch operation and maintenance of containers in the application dimension; if the information of containers to be operated and maintained includes a container identifier, batch operation and maintenance of containers is realized in the container dimension; The operation and maintenance request is further used to instruct the management server to send the operation and maintenance task to at least two target business servers, and each target business server performs operation and maintenance on the target business container in each target business server based on the operation and maintenance task; An operation and maintenance module is used to operate and maintain the local target business container according to the operation and maintenance task, and to feedback the target operation and maintenance result to the management server; the operation and maintenance task is obtained by the management server obtaining the target operation and maintenance instruction from the instruction set according to the identification information corresponding to the operation and maintenance instruction information, and based on the pre-set task creation logic, it is constructed according to the target operation and maintenance instruction and the container information to be operated and maintained.
15. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 11 are implemented.
16. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 11 are implemented.
17. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 11 are implemented.
