Business container management method, system, computer equipment, medium and product

By building an extended network and a virtual network card pair, the container management platform and the container processing engine are connected, which solves the problem of intermediate state loss when the container management platform is suspended and resumed, improves the functionality and reliability of container management, and simplifies the management process.

CN118214641BActive Publication Date: 2024-09-13INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410634892.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-22
Publication Date
2024-09-13
Estimated Expiration
2044-05-22

AI Technical Summary

Technical Problem

Existing container management platforms have the problem of losing intermediate states when suspending and resuming business containers, and cannot effectively manage the suspension and startup of containers, resulting in low resource utilization efficiency and high management complexity.

Method used

By building an extended network and creating a virtual network card pair, the container management platform and the container processing engine are connected to realize the delivery of scheduling instructions and resource management, including the operations of pausing, starting, updating and deleting business containers, using virtual container encapsulation and proxy container encapsulation Perform cross-platform service proxying.

Benefits of technology

It improves the functionality and reliability of business container management, reduces the risk of intermediate state loss, simplifies the container management process, enhances collaboration capabilities between containers, and enriches application scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118214641B
    Figure CN118214641B
Patent Text Reader

Abstract

The present application relates to the field of cloud computing technology, and in particular to a management method, system, computer equipment, medium and product for a business container. The management method for a business container includes: a network module constructs an extended network; a network module creates a first virtual network card pair to connect the network space of a container management platform and an extended network; a network module creates a second virtual network card pair to connect the network space of a business container and an extended network, so as to connect the network space of a container management platform and a container processing engine; the container management platform sends a scheduling instruction; wherein the scheduling instruction includes pausing the business container; the container processing engine obtains the scheduling instruction, and schedules the business container based on the scheduling instruction. This method can connect multiple container platforms / engines, improve the functionality of business container management, reduce the risk of business containers losing intermediate states, and thus help enrich application scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of cloud computing technology, and in particular to a business container management method, a business container management system, a computer device, a computer-readable storage medium, and a computer program product. Background Art

[0002] Container management platforms such as Kubernetes can effectively utilize resources in the cluster, balance the workload between nodes in the cluster, etc. Kubernetes is an open source application for managing containerized applications on multiple hosts in a cloud platform.

[0003] However, in some specific scenarios, a single container management platform / container processing engine usually has certain functional defects. For example, the container management platform usually cannot pause the business container but terminates the business container, and the intermediate state before restarting the business container generally cannot be restored. Summary of the invention

[0004] Based on this, it is necessary to provide a business container management method, a business container management system, a computer device, a computer-readable storage medium, and a computer program product to address the above-mentioned technical problems, which can connect multiple container platforms / engines, improve the functionality of business container management, and reduce the risk of business containers losing intermediate states, thereby helping to enrich application scenarios.

[0005] On the one hand, a business container management method is provided, and the business container management method is applied to a business container management system, and the management system includes a network module, a container management platform and a container processing engine; the business container management method includes: the network module constructs an extended network; the network module creates a first virtual network card pair, inserts one of the first virtual network card pair into the extended network, and inserts the other into a proxy container package, and connects the network space of the container management platform and the extended network; wherein the proxy container package is created by the container management platform and accommodated in a cluster, and is used to proxy the services carried by the business container in the cluster; the network module creates a second virtual network card pair, inserts one of the second virtual network card pair into the extended network, and inserts the other into the cluster to connect with the business container located in the container processing engine, and connects the network space of the business container and the extended network, so as to connect the network space of the container management platform and the container processing engine; the container management platform sends a scheduling instruction; wherein the scheduling instruction includes pausing the business container; the container processing engine obtains the scheduling instruction, and schedules the business container based on the scheduling instruction.

[0006] In one embodiment of the present application, the container management platform sends a scheduling instruction; the container processing engine obtains the scheduling instruction, including: the container management platform assigns a scheduling identifier to a virtual container package located in a cluster; the container processing engine perceives the virtual container package and determines whether the virtual container package is assigned a scheduling identifier; in response to the virtual container package being assigned a scheduling identifier, the container processing engine identifies the business container pointed to by the scheduling identifier and uses it as a target container, and schedules the target container according to the scheduling identifier.

[0007] In one embodiment of the present application, the container management platform assigns a scheduling identifier to a virtual container package located in a cluster; the container processing engine perceives the virtual container package including: the container management platform initiates a scheduling request to the scheduler; the scheduler obtains the virtual container package that matches the scheduling request and injects the scheduling identifier into the annotation of the virtual container package; the container processing engine perceives the annotation of the virtual container package.

[0008] In one embodiment of the present application, the management method includes: a container management platform obtains a creation request and creates a new virtual container package based on the creation request; a scheduler identifies the new virtual container package and reserves resources for the new virtual container package; the scheduler screens the nodes in the cluster and uses the screened nodes as the first target nodes associated with the new virtual container package; and injects the node information of the first target node into the annotation of the new virtual container package.

[0009] In one embodiment of the present application, after scheduling the business container based on the scheduling instruction, the method further includes: the container processing engine obtains the configuration file in response to completing the execution of the scheduling instruction; the container processing engine updates the configuration file based on the scheduling instruction, triggering the container management platform to reload the updated configuration file; and instructing the container management platform to proxy the services carried by the business containers in the cluster based on the updated configuration file.

[0010] In one embodiment of the present application, the container processing engine obtains a scheduling instruction, and scheduling the business container based on the scheduling instruction includes: the container processing engine perceives a virtual container encapsulation provided in a cluster; the container processing engine responds to the virtual container encapsulation carrying a pause identifier, and resolves the first target container pointed to by the pause identifier; the container processing engine unbinds one of the target network card pair from the bridge of the extended network, migrates the other from the network space of the first target container to the default network space, and deletes the target network card pair; wherein the target network card pair is a second virtual network card pair connecting the first target container and the extended network.

[0011] In one embodiment of the present application, the scheduling instruction includes starting a business container; the container management platform sends the scheduling instruction to the container processing engine; the container processing engine receives the scheduling instruction including: the container management platform injects a startup identifier into the annotation of the virtual container package associated with the second target container; the container processing engine starts the second target container in response to sensing the startup identifier, and connects the network space of the second target container and the container management platform.

[0012] In one embodiment of the present application, the scheduling instruction includes updating resources of a business container; scheduling the business container based on the scheduling instruction includes: the scheduler, in response to sensing that the virtual container package carries a to-be-updated identifier, uses the virtual container package as a target virtual package; the scheduler updates the resource usage of the target virtual package recorded therein, and assigns the target virtual package an updated identifier; the container processing engine, in response to sensing the updated identifier, updates the resource data updated by the third target container to the resource information recorded by the target virtual package.

[0013] In one embodiment of the present application, the scheduler updates the resource usage of the target virtual package recorded therein, including: the scheduler identifies the update target of the resource update; in response to the update target being to increase the resource usage, the scheduler checks whether the remaining resources of the second target node associated with the target virtual package are sufficient; in response to the remaining resources being insufficient, the target virtual package is assigned a resource shortage flag.

[0014] In one embodiment of the present application, the scheduling instruction includes creating a business container; scheduling the business container based on the scheduling instruction includes: the container processing engine responds to the perception that the virtual container encapsulation carries a new creation identifier, parsing the resource usage indicated by the new creation identifier; the container processing engine creates a new business container based on the parsed resource usage; the network module connects the network space of the new business container and the container management platform.

[0015] In one embodiment of the present application, the scheduling instruction includes deleting a business container; scheduling the business container based on the scheduling instruction includes: the container processing engine, in response to sensing that the virtual container encapsulation carries a deletion identifier, identifies the fourth target container pointed to by the deletion identifier; unbinds the fourth target container from the extended network, and deletes the second virtual network card pair associated with the fourth target container; the container processing engine deletes the proxy information associated with the fourth target container in the configuration file, triggering the proxy container encapsulation to reload the configuration file; the container processing engine deletes the fourth target container in the node of the cluster.

[0016] In one embodiment of the present application, scheduling a business container based on a scheduling instruction includes: a container processing engine identifying a scheduling instruction; in response to the scheduling instruction being a pause instruction, the container processing engine pauses a first target container pointed to by the pause instruction; in response to the scheduling instruction being a start instruction, the container processing engine starts a second target container pointed to by the start instruction; in response to the scheduling instruction being an update instruction, the resource usage of a third target container pointed to by the update instruction is updated; in response to the scheduling instruction being a delete instruction, the container processing engine deletes a fourth target container pointed to by the delete instruction; in response to the scheduling instruction being a create instruction, the container processing engine creates a new business container based on the create instruction.

[0017] In one embodiment of the present application, the management method also includes: the container processing engine changes the business container in the cluster; the container processing engine modifies the service information in the configuration file based on the change; the proxy container encapsulation loads the updated configuration file in response to sensing the change in service information.

[0018] In one embodiment of the present application, the container processing engine modifies the service information in the configuration file based on the change, including: the container processing engine creates a new business container or adds a new service to the business container; the container processing engine obtains the configuration file and writes first information into the configuration file; wherein the first information includes service information of the newly added business container or service; and / or, the container processing engine deletes the original business container or deletes the service in the original business container, and uses the original business container as the sixth target container; the container processing engine deletes the second information; wherein the second information includes service information of the deleted original business container or service.

[0019] In one embodiment of the present application, loading the updated configuration file includes: the proxy container encapsulates the process information of its process namespace, and filters the main process number of the reverse proxy service in the process information as the first main process number; the proxy container encapsulates sending a loading instruction to the first main process number, triggering the reverse proxy service to reload the configuration file.

[0020] In one embodiment of the present application, the proxy container package is created by the container management platform and placed in the cluster, including: the container management platform creates a reverse proxy service and a proxy container package, encapsulates the reverse proxy service in the proxy container package, and deploys the proxy container package to the cluster; the container management platform creates a configuration dictionary, maps the configuration dictionary to the proxy container package, and forms a configuration file; wherein the configuration dictionary is used to record service information to be proxied.

[0021] In one embodiment of the present application, the proxy container encapsulation includes a proxy service container; the services carried by the business container in the proxy cluster include: the container management platform obtains the service request and sends the service request to the proxy container encapsulation; the proxy service container receives the service request and forwards the service request to the corresponding business container to enable the business container to respond to the service request.

[0022] In one embodiment of the present application, the proxy container encapsulation also includes a configuration-aware container; the management method also includes: the configuration-aware container senses whether there is an information change in the configuration file; the configuration-aware container responds to the information change in the configuration file, filters the main process number of the proxy service container as the second main process number; sends a loading instruction to the proxy service container based on the second main process number; the proxy service container receives the loading instruction, restarts the reverse proxy service, and reloads the updated configuration file.

[0023] In one embodiment of the present application, building an extended network includes: the network module creates a virtual multicast group and a bridge at each node in the cluster; the network module connects the virtual devices of the virtual multicast group to the bridge; the network module starts the bridge and the virtual devices connected to the bridge to form an extended network; the network module plans the network segment information of the extended network.

[0024] In one embodiment of the present application, inserting one of the first virtual network card pair into the extended network and inserting the other into the proxy container encapsulation includes: querying the bridge and network segment information of the extended network, configuring the network segment information as the Internet Protocol address of one of the first virtual network card pair, and inserting it into the bridge; obtaining the process number of the proxy container encapsulation, obtaining its network namespace based on the process number, and moving the other of the first virtual network card pair to the network namespace of the proxy container encapsulation.

[0025] In one embodiment of the present application, inserting one of the second virtual network card pair into the extended network and the other into the business container located in the container processing engine in the cluster includes: querying the bridge and network segment information of the extended network, configuring the network segment information as the Internet Interconnection Protocol address of one of the second virtual network card pair, and inserting it into the bridge; moving the other of the second virtual network card pair to the network namespace where the business container is located.

[0026] On the other hand, a management device for a business container is provided, and the management device for the business container includes: a container management platform, a container processing engine and a network module; the container management platform is used to send scheduling instructions; wherein the scheduling instructions include pausing the business container; the container processing engine is used to obtain the scheduling instructions and schedule the business container based on the scheduling instructions; the network module is used to build an extended network; create a first virtual network card pair, insert one of the first virtual network card pair into the extended network, and insert the other into the proxy container package, so as to connect the network space of the container management platform and the extended network; wherein the proxy container package is created by the container management platform and contained in the cluster, and is used to proxy the services carried by the business container in the cluster; create a second virtual network card pair, insert one of the second virtual network card pair into the extended network, and insert the other into the business container located in the container processing engine in the cluster, so as to connect the network space of the business container and the extended network, so as to connect the network space of the container management platform and the container processing engine.

[0027] In one embodiment of the present application, the management system also includes a scheduler, a virtual container package is provided in the cluster; the scheduler is connected to the container management platform and the virtual container package; the scheduler is used to obtain a virtual container package that matches the scheduling request and inject a scheduling identifier into the annotation of the virtual container package; so that the container processing engine can perceive the annotation of the virtual container package.

[0028] In one embodiment of the present application, the proxy container package includes a proxy service container; the proxy service container is used to receive a service request sent by the container management platform to the proxy container package, and forward the service request to the corresponding business container to make the business container respond to the service request.

[0029] In one embodiment of the present application, the proxy container also includes a configuration awareness container and a configuration file; the configuration awareness container is used to sense whether there is an information change in the configuration file; in response to the information change in the configuration file, the main process number of the proxy service container is filtered as the second main process number; based on the second main process number, a loading instruction is sent to the proxy service container; so that the proxy service container receives the loading instruction, restarts the reverse proxy service, and reloads the updated configuration file.

[0030] In one embodiment of the present application, a cluster includes multiple nodes; the nodes are created by a container management platform or a container processing engine; wherein a business service container and / or a proxy container encapsulation is provided in the node.

[0031] On the other hand, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the business container management method in any one of the above embodiments when executing the computer program.

[0032] In yet another aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for managing a service container in any one of the above embodiments are implemented.

[0033] In another aspect, a computer program product is provided. When the computer program product is executed by a processor, the computer program product implements the steps of the service container management method in any one of the above embodiments.

[0034] The above-mentioned business container management method, business container management system, computer device, computer-readable storage medium and computer program product connect the container management platform and the extended network through the first virtual network card pair, and connect the container processing engine and the extended network through the second virtual network card pair. In other words, the container management platform and the container processing engine can be added to the extended network, so that the container management platform and the container processing engine are connected, which can be beneficial for the two to jointly manage the business containers in the cluster through flexible interaction to improve the functionality of business container management, and also help to overcome the defects that exist when the two manage business containers separately. In addition, the container management platform can be implemented by including a scheduling instruction to suspend the business container, so that the container processing engine can suspend the business container based on the scheduling instruction, which is beneficial to reduce the risk of the business container losing the intermediate state, thereby helping to improve the reliability of business container management, and then help to enrich application scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 It is a structural diagram of an embodiment of a management system of a business container of the present application;

[0036] Figure 2 It is a structural diagram of another embodiment of the management system of the business container of the present application;

[0037] Figure 3 It is a structural diagram of a node 1 embodiment of the present application;

[0038] Figure 4 This is a schematic diagram of the structure of an embodiment of the proxy container encapsulation of the present application;

[0039] Figure 5 It is a flowchart of an embodiment of a method for managing a service container of the present application;

[0040] Figure 6 It is a flowchart of another embodiment of the method for managing a business container of the present application;

[0041] Figure 7 This is a flowchart of an embodiment of suspending a service container of the present application;

[0042] Figure 8 This is a flowchart of an embodiment of starting a business container of the present application;

[0043] Fig. 9 This is a flowchart of an embodiment of creating a business container in the present application;

[0044] Fig.10 This is a flowchart of an embodiment of deleting a service container of the present application;

[0045] Fig.11 It is a structural diagram of an embodiment of a computer device of the present application. DETAILED DESCRIPTION

[0046] 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.

[0047] In order to solve the technical problem of defects in container management existing in the related technology, the present application provides a management method for a business container, a management system for a business container, a computer device, a computer-readable storage medium and a computer program product. The management method for a business container includes: a network module constructs an extended network; a network module creates a first virtual network card pair, inserts one of the first virtual network card pair into the extended network, and inserts the other into the proxy container package, and connects the network space of the container management platform and the extended network; wherein the proxy container package is created by the container management platform and accommodated in the cluster, and is used to proxy the services carried by the business container in the cluster; the network module creates a second virtual network card pair, inserts one of the second virtual network card pair into the extended network, and inserts the other into the business container located in the container processing engine in the cluster, and connects the network space of the business container and the extended network, so as to connect the network space of the container management platform and the container processing engine; the container management platform sends a scheduling instruction; wherein the scheduling instruction includes pausing the business container; the container processing engine obtains the scheduling instruction, and schedules the business container based on the scheduling instruction. The following is an example of the detailed technical solution of the present application.

[0048] See also Figure 1 , Figure 1 It is a structural diagram of an embodiment of a management system of a business container of the present application.

[0049] In one embodiment, the management system of the service container includes a container management platform 11 , a container processing engine 12 , and a network module 13 .

[0050] The container management platform 11 is used to send a scheduling instruction. The scheduling instruction includes pausing a service container. For example, the container management platform 11 may be Kubernetes (an open source containerized application for managing multiple hosts in a cloud platform).

[0051] The container processing engine 12 is used to obtain a scheduling instruction and schedule a service container based on the scheduling instruction. Optionally, the container processing engine 12 can be Docker (an open source application container engine), Containerd (a lightweight container management tool), Podman (a container engine), etc.

[0052] The network module 13 is used to build an extended network; create a first virtual network card pair, insert one of the first virtual network card pair into the extended network, and insert the other into the proxy container package, so as to connect the network space of the container management platform 11 and the extended network; wherein the proxy container package is created by the container management platform 11 and contained in the cluster, and is used to proxy the services carried by the business container in the cluster; create a second virtual network card pair, insert one of the second virtual network card pair into the extended network, and insert the other into the cluster to connect with the business container located in the container processing engine 12, so as to connect the network space of the business container and the extended network, so as to connect the network space of the container management platform 11 and the container processing engine 12.

[0053] As such, in this embodiment, the container management platform 11 and the container processing engine 12 can be connected through an extended network to facilitate the collaboration of the two in business container management, which can reduce at least some of the limitations that exist when the container management platform 11 and the container management engine are used separately, thereby improving the functionality of business container management and reducing the risk of business containers losing intermediate states. At the same time, operations on specific business containers can be mapped to operations on the container management platform 11 / container processing engine 12, which is conducive to significantly reducing the management difficulty of business container management, and is also conducive to improving the flexibility of business container management, thereby enriching application scenarios.

[0054] For example, Figure 2 As shown in the example, Figure 2 It is a structural diagram of another embodiment of the management system of the business container of the present application. The first virtual network card pair can include virtual network card veth1 and virtual network card veth2, which are respectively inserted in the extended network and the proxy container encapsulation to connect the network space of the extended network and the container management platform. The second virtual network card pair can be virtual network card veth3 and virtual network card veth4, which are respectively inserted in the extended network and the business container located at node N2 to connect the network space of the business container N2 and the extended network.

[0055] Please refer to Figures 2 to 4 , Figure 3 is a schematic diagram of the structure of a node of an embodiment of the present application, Figure 4 It is a schematic diagram of the structure of an embodiment of the proxy container encapsulation of the present application.

[0056] In one embodiment, the management system further includes a scheduler. A virtual container package is provided in the cluster.

[0057] The scheduling instruction may be in the form of an instruction / request, which is sent by the container management platform to the container processing engine; or, the scheduling instruction may be in the form of a scheduling identifier, which can be identified by the container processing engine itself.

[0058] Specifically, the scheduler can be connected to the container management platform and the virtual container package respectively. The scheduler is used to obtain the virtual container package that matches the scheduling request and inject the scheduling identifier into the annotation of the virtual container package. This allows the container processing engine to perceive the annotation of the virtual container package. The specific working principle of the scheduler will be described in detail in the management method of the business container, so it will not be repeated here.

[0059] Alternatively, a cluster may be composed of a group of independent and interconnected computer nodes, and the multiple computer nodes are managed in a single system mode. In other words, a cluster may include multiple nodes, and the nodes are created by a container management platform or a container processing engine.

[0060] A business service container and / or a proxy container encapsulation may be provided in the node.

[0061] For example, Figure 2 As shown in the example, the cluster may include node N1, node N2 and node N3. Node N1 and node N2 are respectively provided with business container C1 and business container C2, and the proxy container encapsulation is provided in node N3. For example, when starting a service that the container management platform cannot directly access in the business container of node N1 and / or node N2, the proxy container encapsulation of node N3 can be used to perform a reverse proxy service, and the service of the business container of node N1 and / or node N2 can be proxied to enable the container management platform to access it.

[0062] like Figure 3 As shown in the example, the node N4 may include both the business container C3 and the proxy container encapsulation.

[0063] It should be noted that Figure 2 as well as Figure 3 , are all examples of clusters, nodes, service containers, and proxy container encapsulations in this embodiment, and do not strictly limit the number of nodes in a cluster, the number of service containers in a node, the number of proxy container encapsulations, etc. For example, a cluster may also include multiple proxy container encapsulations, which are used to manage some nodes or service containers respectively, and are not limited here.

[0064] Please continue reading Figures 2 to 4 In one embodiment, the proxy container package may include a proxy service container.

[0065] The proxy service container can receive the service request sent by the container management platform to the proxy container encapsulation, and forward the service request to the corresponding business container, so that the business container responds to the service request. Among them, the service request can be generated by the container management platform, or it can be sent to the container management platform by the user. In this way, the cross-platform execution of service requests can be realized in this embodiment, further improving the convenience and functionality of business container management.

[0066] Furthermore, the proxy container may also include a configuration-aware container and a configuration file.

[0067] Specifically, the configuration-aware container can sense whether there is information change in the configuration file. In response to information change in the configuration file, the main process number of the proxy service container is filtered as the second main process number; a loading instruction is sent to the proxy service container based on the second main process number; so that the proxy service container receives the loading instruction, restarts the reverse proxy service, and reloads the updated configuration file. The more detailed principles of this part will be elaborated in detail in the management method of the business container later, and will not be repeated here.

[0068] For the specific definition of the management system of the business container, please refer to the definition of the management method of the business container in the following text, which will not be repeated here. Each module in the management system of the above-mentioned business container can be implemented in whole or in part by software, hardware and their combination. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0069] The following is a detailed description of the working principle of the application for managing the business container.

[0070] See also Figure 5 , Figure 5 This is a flow chart of an embodiment of a method for managing a service container of the present application. The method for managing a service container can be applied to the management system of the service container described above.

[0071] S101: The network module builds an extended network.

[0072] In this embodiment, the extended network may be an overlay network (overlay network, covered network), etc. The extended network may be one or more virtual logical networks constructed on the same underlay network (a type of underlying network) through network virtualization technology.

[0073] S102: The network module creates a first virtual network card pair, inserts one of the first virtual network card pair into the extended network, and inserts the other into the proxy container package, connecting the network space of the container management platform and the extended network; wherein the proxy container package is created by the container management platform and contained in the cluster, and is used to proxy the services carried by the business container in the cluster.

[0074] In this embodiment, the proxy container encapsulation may be created by the container management platform and placed in the cluster, so that the container management platform can proxy the business container through the proxy container encapsulation. The specific working principle will be described below with examples.

[0075] As the name implies, a virtual network card pair may include two virtual network cards. The virtual network card may simulate a network environment and a network adapter using software. That is, one of the first virtual network card pair is inserted into an extended network, and the other is inserted into an agent container package, so that the agent container package can access the extended network.

[0076] S103: The network module creates a second virtual network card pair, inserts one of the second virtual network card pair into the extended network, and inserts the other into the cluster to connect with the business container located in the container processing engine, thereby connecting the network space of the business container and the extended network, and connecting the network space of the container management platform and the container processing engine.

[0077] In this embodiment, one of the second virtual network card pair can be inserted into the extended network; the other can be inserted into at least some nodes in the cluster, or can be inserted into a business container, which is not limited here. In this way, the container processing engine can access the extended network. Combined with the container management platform accessing the extended network in step S102, the container processing engine can communicate with the container management platform.

[0078] S104: The container management platform sends a scheduling instruction, wherein the scheduling instruction includes pausing the service container; the container processing engine obtains the scheduling instruction, and schedules the service container based on the scheduling instruction.

[0079] In this embodiment, in response to the network spaces of the container management platform and the container processing engine being connected through an extended network, instructions can be transmitted between the two to flexibly manage the business container. The container management platform can send a scheduling instruction so that the container processing engine obtains the scheduling instruction and schedules the business container based on the scheduling instruction.

[0080] Among them, the scheduling instructions may include pause instructions to enable the container processing engine to control the business container to pause, which is helpful to avoid the limitations of the container management platform in pausing the business container, and can reduce the risks of state loss, data loss, network connection interruption, application state reset, etc. caused by the container management platform controlling the suspension of the business container.

[0081] It can be seen that the container management platform and the extended network are connected through the first virtual network card, and the container processing engine and the extended network are connected through the second virtual network card. In other words, the container management platform and the container processing engine can be added to the extended network, so that the container management platform and the container processing engine are connected, which can be beneficial for the two to jointly manage the business containers in the cluster through flexible interaction, so as to improve the functionality of business container management, and also help to overcome the defects that exist when the two manage business containers separately. In addition, the container management platform can be implemented through a scheduling instruction including pausing the business container, so that the container processing engine can suspend the business container based on the scheduling instruction, which is beneficial to reduce the risk of the business container losing the intermediate state, thereby helping to improve the reliability of business container management. At the same time, this embodiment can realize cross-platform execution of service requests, improve the convenience and functionality of business container management, and thus help to enrich application scenarios.

[0082] See also Figure 6 , Figure 6 It is a flowchart of another embodiment of the method for managing a business container of the present application.

[0083] In this embodiment, the network module can create a virtual multicast group and a bridge in each node in the cluster. The network module connects the virtual device of the virtual multicast group to the bridge. The network module starts the bridge and the virtual device connected to the bridge to form an extended network. The network module plans the network segment information of the extended network, thereby forming an extended network for the service container management of this embodiment. In this way, the management of the service container can introduce virtual network technology, which is conducive to the management of the service container through the virtual network, which can improve the efficiency of the service container management, and is also conducive to enriching the functions of the service container management and optimizing the rationality of the service container management.

[0084] Specifically, a VXLAN (Virtual Extensible Local Area Network) device multicast group can be created in each node in the cluster. When creating a VXLAN, you can specify the VXLAN id (Identity document), outbound interface, and port information. Create a bridge device and connect the created VXLAN device to the bridge. Start the bridge device. Start the VXLAN device connected to the bridge device. In this way, this embodiment constructs an overlay network through VXLAN on the cluster. At the same time, the entire overlay network segment information can be planned. For example, the network segment information can include the starting IP (Internet Protocol), the ending IP, the gateway information, etc.

[0085] Furthermore, the network module can query the bridge and network segment information of the extended network, configure the network segment information as the Internet Protocol address of one of the first virtual network card pair, and insert it into the bridge; obtain the process number of the proxy container encapsulation, obtain its network namespace based on the process number, and move the other of the first virtual network card pair to the network namespace encapsulated by the proxy container.

[0086] One of the first virtual network card pair is inserted into the extended network, and the other is inserted into the proxy container package, so as to connect the network spaces of the container management platform and the extended network.

[0087] In this way, the first virtual network card pair can connect the network namespace of the extended network and the network namespace of the container management platform, so that the network spaces of the container management platform and the extended network are connected.

[0088] For example, taking the LINUX (an operating system) application environment as an example, the solution of the first virtual network card to connect the container management platform and the extended network is explained in detail.

[0089] You can first create a virtual network card pair, such as Figure 6 The virtual network cards veth1 and veth2 are shown as examples.

[0090] You can execute the "ip link add veth1 type veth peer name veth2" command in LINUX to create virtual network cards veth1 and veth2. Move the veth1 virtual network card to the network namespace where the pod container is located; for example, you can execute the "ip link set veth2 netns $pod_netns" command in Linux, which is equivalent to inserting a virtual network card (i.e., virtual network card veth2) in the pod container. Start the virtual network card veth2 and configure the network segment information of the extended network planned in the previous article as the IP address of the virtual network card veth2.

[0091] Install the virtual network card veth1 to the bridge of the created extended network; for example, you can execute the "ip link set veth1 netns $overlay_netns" command in LINUX to migrate the virtual network card veth1 to the bridge. Start the virtual network card veth1 and configure the IP address of the virtual network card veth1 to the network segment information of the extended network planned in the previous article.

[0092] As such, container management platforms such as Kubernetes have a proxy container with reverse proxy service functions that encapsulates a network space that is connected to the overlay network space, enabling network data exchange and helping to improve the efficiency and flexibility of the connection between the container management platform and the container processing engine.

[0093] The bridge and network segment information of the extended network can be queried, the network segment information can be configured as the Internet Protocol address of one of the second virtual network card pair, and inserted into the bridge; the other of the second virtual network card pair can be moved to the network namespace where the business container is located.

[0094] In this way, this embodiment can insert one of the second virtual network card pair into the extended network, and the other into the business container located in the container processing engine in the cluster, connecting the network space of the business container and the extended network, and connecting the network space of the container management platform and the container processing engine.

[0095] Similar to the previous article, taking LINUX (an operating system) as an example, the solution of the second virtual network card to connect the container management platform and the extended network is explained in detail.

[0096] You can create a virtual network card pair, such as Figure 6 The virtual network cards veth3 and veth4, as well as the virtual network cards veth5 and veth6 shown as examples are used to connect the extended network to the nodes N2 and N3 respectively.

[0097] Specifically, the virtual network card veth3 and the virtual network card veth4 are used to connect the node N2 and the extended network. After the business container is created on the cluster node through the business logic of the solution, the network space of the business container needs to be connected to the overlay network space.

[0098] First, create the second virtual network card pair, namely virtual network card veth3 and virtual network card veth4.

[0099] Run the "ip link add veth3 type veth peer name veth4" command in Linux to create virtual network cards veth3 and veth4.

[0100] You can move the virtual network card veth4 to the network namespace where the business container is located. For example, you can execute the "ip link set veth4 netns $pod_netns" command in Linux. Start the virtual network card veth4 and configure the IP address of the virtual network card veth4 to the network segment information of the extended network planned in the previous article.

[0101] You can insert the virtual network card veth3 into the bridge of the created extended network, for example, execute the "ip link set veth4 netns $overlay_netns" command in Linux. Start this virtual network card and configure the IP address of the virtual network card veth3 to the network segment information of the extended network planned in the previous article.

[0102] In this way, the network space of the business container is connected to the overlay network space. In addition, since the network space encapsulated by the proxy container of the container management platform is also connected to the overlay network space, the network space encapsulated by the kubernetes proxy container is also connected to the network space of the business container. Therefore, the network platform of the container management platform is connected to the network plane of the container processing engine.

[0103] The above text illustrates the detailed principles of building a management system architecture for a business container, and the following text illustrates the application process of the management system for a business container, that is, the following text illustrates the management principles of a business container.

[0104] Please continue reading Figure 6 In one embodiment, the container processing engine changes the service container in the cluster.

[0105] The container processing engine modifies the service information in the configuration file based on the change. The proxy container encapsulates the response to the perceived service information change and loads the updated configuration file. In this way, the container management platform can realize the service discovery function, automatically update the configuration file of the reverse proxy service when the service changes, and respond to the service changes in a timely manner, improve the timeliness of business container management, and also help improve the reliability of business container management.

[0106] In detail, the business container can carry services, and each service can have a corresponding URL (Uniform Resource Location, network link) access path. The URL information can be written into the configuration file encapsulated by the proxy container, and the matching access path information can be configured respectively, so that the services carried by the business container can be accessed through the reverse proxy service. The service discovery function can be considered to be equivalent to registering the business service information in the configuration file.

[0107] Please continue reading Figure 6. In one embodiment, the container management platform can create a reverse proxy service and a proxy container package. Among them, the proxy container package can record the resource information, startup script information, etc. used by the reverse proxy service. Encapsulate the reverse proxy service in the proxy container package, and deploy the proxy container package to the cluster. Optionally, the container management platform can deploy the proxy container package in the cluster by creating a container package (such as a pod, etc.). In this way, when the proxy container package is running, the reverse proxy service can run to provide relevant functions to realize the collaborative management of business containers and services between the container management platform and the container processing engine.

[0108] The container management platform can also create a configuration dictionary, map the configuration dictionary to the proxy container package, and form a configuration file. Among them, the configuration dictionary is used to record the service information that needs to be proxied. In this way, both the container management platform and the container processing engine can perceive changes in the cluster through the configuration dictionary and the configuration file, and can flexibly use the configuration file and the configuration dictionary to manage the business container. Compared with the management method of calling the API (Application Programming Interface) of the container management platform and the container processing engine, the container management platform and the container processing engine in this embodiment are connected through an extended network, which can improve the flexibility and scalability of business container management, and is also conducive to reducing the difficulty of writing business container management logic, and can improve the efficiency of business container management and maintenance.

[0109] The following is an example of the specific structure and working principle of the proxy container encapsulation. Figure 4 as well as Figure 6 .

[0110] In one embodiment, the proxy container encapsulation includes a proxy service container. As the name implies, the proxy service container is a container that specifically implements the reverse proxy service and can send service requests to the business container. In this way, the container management platform can schedule the business container and the service at the same time, and the container management platform can also implement the service scheduling of the business container across platforms. In other words, the container management platform can have the business container scheduling capability and the service proxy capability.

[0111] Specifically, the container management platform may obtain a service request, wherein the service request may be generated by the container management platform according to the service, environment, etc., or may be sent by a user to the container management platform, which is not limited here.

[0112] The container management platform can send the service request to the proxy container encapsulation. In response to receiving the service request, the proxy service container can forward the service request to the corresponding business container to make the business container respond to the service request. In this way, the container management platform can proxy the services carried by the business container in the cluster through the proxy container encapsulation.

[0113] Furthermore, the proxy container encapsulation can also include a configuration-aware container that can automatically sense changes in configuration files and synchronize them to the container management platform in a timely manner, thereby helping to improve the consistency of perception information between the container management platform and the container processing engine, and further helping to improve the reliability and functionality of business container management.

[0114] Specifically, the configuration awareness container senses whether there is any information change in the configuration file.

[0115] In response to information changes in the configuration file, the configuration-aware container can filter the main process number of the proxy service container as the second main process number. A loading instruction is sent to the proxy service container based on the second main process number. In this way, the proxy service container restarts the reverse proxy service in response to receiving the loading instruction to reload the updated configuration file. Optionally, the configuration file update frequency can be identified, and the frequency of restarting the reverse proxy service can be dynamically adjusted based on the update frequency, which is not limited here.

[0116] For example, Figure 6 The following example shows the contents of the configuration dictionary:

[0117] location / tomcat{

[0118] proxy_pass http: / / 10.22.1.10:8080 / ;

[0119] }

[0120] location / tomcat2{

[0121] proxy_pass http: / / 10.22.1.11:8080;

[0122] }

[0123] The above code example records the address of tomcat, where tomcat is a web (World Wide Web) application server.

[0124] Taking Kubernetes as an example, the proxy container created by Kubernetes is encapsulated as a pod with proxy service function. In a broad sense, pod can be called container encapsulation or root container. A pod can include a group of containers, that is, a pod can include one or more containers.

[0125] Kubernetes can create a pod with proxy service function. The pod can contain at least two containers. One of the containers can be the container responsible for the reverse proxy service, that is, the proxy service container; the other container can be the container responsible for listening to the configuration file, that is, the configuration awareness container.

[0126] In a kubernetes cluster, you can create a configuration dictionary that can record the service information that needs to be proxied, and map this configuration dictionary to a configuration file in the pod. The proxy service container in the pod can read the service information recorded in the configuration file and provide the corresponding proxy service.

[0127] For further information, please refer to Figure 6 In one embodiment, the container processing engine may create a new business container or add a new service to the business container.

[0128] The container processing engine can obtain the configuration file and write the first information into the configuration file. The first information includes the service information of the newly added business container or service. And / or, the container processing engine can delete the original business container or delete the service in the original business container, use the original business container as the sixth target container, and the container processing engine deletes the second information. The second information includes the service information of the deleted original business container or service. As such, when the container processing engine in this embodiment manages the business container, it can modify the configuration file accordingly so that the container management platform automatically perceives the changes in the configuration file and synchronizes it to the container management platform in a timely manner, thereby facilitating the consistency of the information perceived by the container management platform and the container processing engine, and further facilitating the reliability and functionality of business container management. In layman's terms, when a new business container (or a service that needs to be proxied) is created or deleted, the container processing engine modifies the configuration dictionary accordingly, that is, it can modify the configuration file of the proxy service container to add or delete the service information recorded in the configuration file.

[0129] Furthermore, the proxy container encapsulates the process information of its process namespace and filters the main process number of the reverse proxy service in the process information as the first main process number. The proxy container encapsulates sends a loading instruction to the first main process number, triggering the reverse proxy service to reload the configuration file, which is conducive to the reverse proxy service to promptly know the changed configuration file, improve the consistency between the service information perceived by the reverse proxy service and the real service information, and can also reload the configuration file without interrupting the ongoing service proxy to reduce interference with the business proxy process, thereby improving the reliability of business container management. Combined with the implementation method of the proxy container encapsulation as a pod as an example in the previous text, the configuration-aware container of the pod can traverse the process information under its process namespace when it perceives a change in the configuration file until the main process number of the reverse proxy service is filtered out. The configuration-aware container can send a restart signal to the main process number of the reverse proxy service, triggering the restart of the daemon process of the reverse proxy service, thereby realizing the reloading of the configuration file.

[0130] The following describes the working principle of the container management platform of this application for scheduling the container processing engine.

[0131] Please continue reading Figure 6 In one embodiment, the container management platform may obtain a creation request and create a new virtual container package based on the creation request. In other words, the creation request is used to instruct the creation of a virtual container package.

[0132] The scheduler can identify new virtual container packages and reserve resources for the new virtual container packages. At the same time, the scheduler can also screen the nodes in the cluster and use the screened nodes as the first target nodes associated with the new virtual container package. The node information of the first target node is injected into the annotation of the new virtual container package, thereby creating a virtual container package for the node. The virtual container package is created by the container management platform, so the container management platform can schedule the virtual container package, and then schedule the node and business container through the virtual container package. At the same time, the virtual container package can participate in the scheduling process of the scheduler without occupying resources. Operating the virtual container package is equivalent to operating the business container in the container processing engine.

[0133] Specifically, taking the scheduling instruction in the form of an identifier (ie, a scheduling identifier) ​​as an example, the container management platform may assign the scheduling identifier to a virtual container package located in the cluster.

[0134] The container processing engine can sense the virtual container package and determine whether the virtual container package is assigned a scheduling identifier. In response to the virtual container package being assigned a scheduling identifier, the container processing engine can identify the business container pointed to by the scheduling identifier and use it as the target container, and schedule the target container according to the scheduling identifier. This is conducive to simplifying the business container management logic. The container management platform can assign the scheduling identifier to the virtual container package it created, and the container processing engine can sense the virtual container package to automatically complete the reception and execution of scheduling instructions.

[0135] Furthermore, the container management platform can initiate a scheduling request to the scheduler. The scheduler obtains the virtual container package that matches the scheduling request and injects a scheduling identifier into the annotation of the virtual container package. The container processing engine perceives the annotation of the virtual container package. In other words, in this embodiment, the process of identifying the target virtual container package can be transferred to the scheduler, and the scheduling instructions sent by it can all be sent to the scheduler, which can fully utilize the scheduler function while reducing the management burden of the container management platform.

[0136] Optionally, in response to completing the execution of the scheduling instruction, the container processing engine can also obtain a configuration file to update the configuration file, thereby improving the matching of the service information reflected in the configuration file with the actual situation, thereby facilitating improving the reliability of business container management.

[0137] Specifically, the container processing engine can update the configuration file based on the scheduling instruction, triggering the container management platform to reload the updated configuration file, and instruct the container management platform to proxy the services carried by the business containers in the cluster based on the updated configuration file.

[0138] In one embodiment, the container management platform of the present application can update the resources of the business container through the container processing engine. The specific principle of updating the resources of the business container of the present application is described below with examples.

[0139] Specifically, in response to sensing that the virtual container package carries a to-be-updated flag, the scheduler may use the virtual container package as the target virtual package, update the resource usage of the target virtual package recorded therein, and assign an updated flag to the target virtual package.

[0140] In response to sensing the updated identifier, the container processing engine updates the resource data updated by the third target container to the resource information recorded by the target virtual package. For example, the "docker update –cpu $cpu_num $container_name" instruction can be executed to update the number of CPUs of the third target container. In this way, this embodiment can perform hot updates on the resource information occupied by the business container by scheduling the virtual container package, which can improve the functionality of business container management. At the same time, it is also beneficial to macroscopically schedule the use of business container resources, improve the flexibility and accuracy of resource allocation, and thus help ensure that the business container reliably completes the service.

[0141] For example, the resources occupied by the business container may include a CPU (Central Processing Unit), a GPU (Graphics Processing Unit), etc., which are not limited here.

[0142] Furthermore, in this embodiment, the surplus of resources in the cluster can also be considered to reduce the risk of adding resources to the business container when the resource capacity is insufficient, reduce the risk of abnormal cluster operation, and improve the reliability of cluster operation at the business container management level. For example, the scheduler can identify the update target of the resource update. In response to the update target being to increase resource usage, the scheduler checks whether the remaining resources of the second target node associated with the target virtual package are sufficient. In response to the insufficient remaining resources, the target virtual package is given a resource shortage flag.

[0143] At the same time, when the scheduler recognizes that the update target is to reduce resource usage, there is no need to check whether the remaining resources of the target virtual package are sufficient. It can be assumed that reducing resource usage will not involve a scenario of insufficient resources, and resource scheduling of the business container of the second target node can be executed, thereby improving the efficiency of business container management.

[0144] Furthermore, as described above, the container processing engine can sense the identifier carried by the target virtual package. In response to sensing the updated identifier, the container processing engine can update the third target container resource to the resource recorded in the target virtual package after completing the update. At the same time, after the update is completed, the updated identifier carried by the target virtual package can also be deleted to reduce the risk of interference with subsequent resource update operations and further improve the reliability of business container management.

[0145] Similarly, in response to sensing the insufficient resource indicator, the container processing engine may not perform the image update operation on the third target container and clear the insufficient resource indicator in the target virtual package.

[0146] In one embodiment, the container management platform of the present application can suspend the service container through the container processing engine. The specific principle of suspending the service container of the present application is described below with examples.

[0147] See also Figure 7 , Figure 7 It is a flowchart of an embodiment of suspending a service container of the present application.

[0148] Specifically, the container processing engine may be aware of the virtual container encapsulation provided in the cluster.

[0149] The container processing engine responds to the virtual container package carrying the pause flag and parses the first target container pointed to by the pause flag. In other words, the business container to be paused indicated by the pause flag can be parsed and used as the first target container. The pause flag can be sent to the virtual container package by the scheduler / container management platform as described above, which will not be described in detail here.

[0150] The target network card pair is the second virtual network card pair connecting the first target container and the extended network, that is, the second virtual network card pair connecting the first target container and the extended network is used as the target network card pair. The container processing engine unbinds one of the target network card pair from the bridge of the extended network, migrates the other from the network space of the first target container to the default network space, and deletes the target network card pair, thereby suspending the encapsulation of the virtual container as the first target container.

[0151] Furthermore, the configuration file in the proxy container package can also be adjusted accordingly. Specifically, the proxy information related to the first target container in the configuration file can be deleted, and the proxy container package / proxy service container / reverse proxy service can be triggered to reload the configuration file to delete the proxy service. In addition, the corresponding node can be linked to the node information marked in the virtual container package, and the business container associated with it can be stopped to complete the suspension of the business container, thereby effectively overcoming the problem that some container management platforms cannot reliably suspend the business container or even easily lose the state. The container processing engine is cleverly used to reliably suspend the business container, which can significantly improve the reliability of business container management.

[0152] In one embodiment, the container management platform of the present application can start a business container through a container processing engine. The specific principle of starting a suspended business container of the present application is described below by way of example.

[0153] See also Figure 8 , Figure 8 It is a flowchart of an embodiment of starting a business container of the present application.

[0154] Specifically, the container management platform can directly or through the scheduler inject a startup identifier into the annotation of the virtual container package associated with the second target container. In response to sensing the startup identifier, the container processing engine starts the second target container and connects the network space of the second target container and the container management platform, so that the second target container in the paused state can be reliably started, the business container can be reliably started and stopped, the state loss and data loss can be reduced, and the reliability of the business container management strategy can be improved.

[0155] Furthermore, when the second target container is successfully started, the network space of the second target container can be processed to enable it to access the extended network. For example, the network namespace of the second target container can be connected to the network space of the container management platform in the network construction method described above.

[0156] Furthermore, the service proxied by the second target container can be updated to the service information to update the configuration file of the reverse proxy service / proxy container package to allow the reverse proxy service to perform service proxy for the second target container. In addition, the virtual container package associated with the second target container can be queried, and the corresponding node can be linked according to the node information marked in the virtual container package, and the business container associated with it can be started to reliably start the business container.

[0157] In one embodiment, the container management platform of the present application can create a business container through a container processing engine. The specific principle of creating a new business container of the present application is described below with examples.

[0158] See also Fig. 9 , Fig. 9 This is a flowchart of an embodiment of creating a business container in the present application.

[0159] Specifically, in response to sensing that the virtual container package carries a new creation identifier, the container processing engine can parse the resource usage indicated by the new creation identifier and create a new service container based on the parsed resource usage.

[0160] The network module connects the network space of the new business container and the container management platform.

[0161] For example, a virtual container package can be created, which can be a custom resource type of the container management platform. The virtual container package does not occupy resources when it is created, but the scheduler can identify the virtual container package and record the resources it applies for. In this way, a certain amount of resources can be reserved for the virtual container package, which is equivalent to reserving resources for the newly created business container. The scheduler can be used to select the most suitable node for the virtual container package to host it, and the node information of the node used to host the virtual container package can be injected into the annotation of the virtual container package, but it will not be actually scheduled like a real container package.

[0162] Furthermore, the business container processing engine monitors the node information in the annotation of the virtual container package. When it is found that the virtual container package annotation has node information update, it starts to create a business container at the corresponding node, and the resource usage of the business container is consistent with the record in the virtual container package.

[0163] When the business container is successfully created, the network namespace of the new business container is connected to the network namespace of the container management platform to connect the new business container to the extended network. The service proxied by the new business container can also be updated to the service information to update the configuration file of the reverse proxy service, so that the reverse proxy server can perform service proxy for the newly created business container.

[0164] In one embodiment, the container management platform of the present application can delete the original business container in the cluster through the container processing engine. The specific principle of deleting the business container of the present application is described below with examples.

[0165] See also Fig.10 , Fig.10 It is a flowchart of an embodiment of deleting a business container of the present application.

[0166] Specifically, in response to sensing that the virtual container encapsulation carries a deletion flag, the container processing engine identifies the fourth target container pointed to by the deletion flag, unbinds the fourth target container from the extended network, and deletes the second virtual network card pair associated with the fourth target container.

[0167] The container processing engine deletes the proxy information associated with the fourth target container in the configuration file, triggering the proxy container package to reload the configuration file. The container processing engine deletes the fourth target container in the node of the cluster.

[0168] For example, when performing a business container deletion process, a deletion flag may be injected into the annotation of the virtual container encapsulation. When the business container processing engine monitors the deletion flag in the virtual container encapsulation annotation, it may unbind one of the previously configured second virtual network card pairs from the bridge of the extended network, move the other from the network namespace of the fourth target container to the default network namespace, and delete the second virtual network card pair associated with the fourth target container.

[0169] The proxy information related to the fourth target container in the configuration file of the reverse proxy service can be deleted, and the reverse proxy service is triggered to reload the configuration file to delete the proxy service. The corresponding node is linked to the node information marked in the virtual container package, and the business container associated with it is deleted from the node.

[0170] Furthermore, it is also possible to monitor in real time whether the business container is deleted successfully. In response to the business container being deleted successfully, the interface of the container management platform is called to delete the virtual container encapsulation resource corresponding to the fourth target container. If so, it can be considered that the deletion of the fourth target container is completed.

[0171] Furthermore, in one embodiment, the scheduling instruction may include at least one of a start instruction, an update instruction, a delete instruction, and a create instruction while including a pause instruction to pause the service container. The start instruction can start the service container in a paused state; the update instruction can update the resource usage of the service container; the delete instruction can delete the service container; and the create instruction can create a new service container.

[0172] Optionally, for the start instructions, and / or update instructions, and / or deletion instructions, and / or new creation instructions not included in the scheduling instructions, the container management platform can also implement corresponding instruction transmission and function implementation by calling the API of the container processing engine, which will not be repeated here.

[0173] For example, the scheduling instructions may include a pause instruction, a start instruction, an update instruction, a delete instruction, and a create instruction, thereby being able to basically involve various operations of business container management, thereby improving the integrity and reliability of the business container management strategy in this embodiment.

[0174] Specifically, the container processing engine receives the scheduling instruction and can identify the category to which the scheduling instruction belongs.

[0175] If so, the container processing engine may pause the first target container pointed to by the pause instruction in response to the scheduling instruction being the pause instruction.

[0176] In response to the scheduling instruction being a start instruction, the container processing engine may start the second target container pointed to by the start instruction.

[0177] In response to the scheduling instruction being an update instruction, the container processing engine may update the resource usage of the third target container pointed to by the update instruction.

[0178] In response to the scheduling instruction being a delete instruction, the container processing engine may delete the fourth target container pointed to by the delete instruction.

[0179] In response to the scheduling instruction being a new creation instruction, the container processing engine may create a new service container based on the new creation instruction.

[0180] The specific implementation methods of pausing a service container, starting a service container, updating resources used by a service container, deleting a service container, and creating a service container may be described as the examples given above, and will not be described in detail here.

[0181] In summary, taking Kubernetes as an example of a container management platform, this application can circumvent the defect that Kubernetes cannot stop the real pod it manages, and use virtual pod operations to map operations on containers. In this way, this application can cleverly use the ability of container processing engines such as Docker to start and stop containers, so that the intermediate state of the container will not be lost during the virtual pod start and stop process, effectively expanding the business usage scenarios of Kubernetes.

[0182] It should be understood that although Figure 5-Figure 10 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 5-Figure 10 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0183] In one embodiment, a computer program product provided by the present application includes a computer program. When the computer program is executed by a processor, the steps of the business container management method described above are implemented, which will not be described in detail here.

[0184] See also Fig.11 , Fig.11 It is a structural diagram of an embodiment of a computer device of the present application.

[0185] In one embodiment, the computer device may be a server, and its internal structure diagram may be as follows: Fig.11 As shown in the example.

[0186] The computer device includes a processor, a memory and a network interface connected through a system bus. 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 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 management method for a business container is implemented.

[0187] Furthermore, the computer device may also include a database, and the database of the computer device may be used to store data required and / or generated in the method for managing the service container.

[0188] Those skilled in the art will understand that Fig.11 The structure shown as an example is merely a block diagram of a portion of the structure related to the present application solution, and does not constitute a limitation on the computer device to which the present application solution is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0189] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:

[0190] S101: The network module builds an extended network.

[0191] S102: The network module creates a first virtual network card pair, inserts one of the first virtual network card pair into the extended network, and inserts the other into the proxy container package, connecting the network space of the container management platform and the extended network; wherein the proxy container package is created by the container management platform and contained in the cluster, and is used to proxy the services carried by the business container in the cluster.

[0192] S103: The network module creates a second virtual network card pair, inserts one of the second virtual network card pair into the extended network, and inserts the other into the cluster to connect with the business container located in the container processing engine, thereby connecting the network space of the business container and the extended network, and connecting the network space of the container management platform and the container processing engine.

[0193] S104: The container management platform sends a scheduling instruction, wherein the scheduling instruction includes pausing the service container; the container processing engine obtains the scheduling instruction, and schedules the service container based on the scheduling instruction.

[0194] In one embodiment, the container management platform sends a scheduling instruction; when the container processing engine obtains the scheduling instruction, the processor further implements the following steps when executing the computer program: the container management platform assigns a scheduling identifier to a virtual container package located in the cluster; the container processing engine senses the virtual container package and determines whether the virtual container package is assigned a scheduling identifier; in response to the virtual container package being assigned a scheduling identifier, the container processing engine identifies the business container pointed to by the scheduling identifier and uses it as a target container, and schedules the target container according to the scheduling identifier.

[0195] In one embodiment, the container management platform assigns a scheduling identifier to a virtual container package located in a cluster; when the container processing engine perceives the virtual container package, the processor further implements the following steps when executing the computer program: the container management platform initiates a scheduling request to the scheduler; the scheduler obtains the virtual container package that matches the scheduling request and injects the scheduling identifier into the annotation of the virtual container package; the container processing engine perceives the annotation of the virtual container package.

[0196] In one embodiment, when the processor executes the computer program, the following steps are further implemented: the container management platform obtains a creation request and creates a new virtual container package based on the creation request; the scheduler identifies the new virtual container package and reserves resources for the new virtual container package; the scheduler screens the nodes in the cluster and uses the screened nodes as the first target nodes associated with the new virtual container package; and the node information of the first target node is injected into the annotation of the new virtual container package.

[0197] In one embodiment, after scheduling the business container based on the scheduling instruction, the processor further implements the following steps when executing the computer program: the container processing engine obtains the configuration file in response to completing the execution of the scheduling instruction; the container processing engine updates the configuration file based on the scheduling instruction, triggering the container management platform to reload the updated configuration file; and the container management platform is instructed to proxy the service carried by the business container in the cluster based on the updated configuration file.

[0198] In one embodiment, when the container processing engine obtains a scheduling instruction and schedules a business container based on the scheduling instruction, the processor further implements the following steps when executing the computer program: the container processing engine senses the virtual container encapsulation provided in the cluster; the container processing engine responds to the virtual container encapsulation carrying a pause flag, and resolves the first target container pointed to by the pause flag; the container processing engine unbinds one of the target network card pair from the bridge of the extended network, migrates the other from the network space of the first target container to the default network space, and deletes the target network card pair; wherein the target network card pair is a second virtual network card pair connecting the first target container and the extended network.

[0199] In one embodiment, the scheduling instruction includes starting a business container; the container management platform sends the scheduling instruction to the container processing engine; when the container processing engine receives the scheduling instruction, the processor also implements the following steps when executing the computer program: the container management platform injects a startup identifier into the annotation of the virtual container package associated with the second target container; the container processing engine starts the second target container in response to sensing the startup identifier, and connects the network space of the second target container and the container management platform.

[0200] In one embodiment, the scheduling instruction includes updating resources of the business container; when the business container is scheduled based on the scheduling instruction, the processor further implements the following steps when executing the computer program: the scheduler, in response to sensing that the virtual container package carries a to-be-updated identifier, uses the virtual container package as the target virtual package; the scheduler updates the resource usage of the target virtual package recorded therein, and assigns the target virtual package an updated identifier; the container processing engine, in response to sensing the updated identifier, updates the resource data updated by the third target container to the resource information recorded by the target virtual package.

[0201] In one embodiment, when the scheduler updates the resource usage of the target virtual package recorded therein, the processor also implements the following steps when executing the computer program: the scheduler identifies the update target of the resource update; in response to the update target being to increase the resource usage, the scheduler checks whether the remaining resources of the second target node associated with the target virtual package are sufficient; in response to the remaining resources being insufficient, the target virtual package is assigned a resource shortage flag.

[0202] In one embodiment, the scheduling instruction includes creating a business container; when scheduling the business container based on the scheduling instruction, the processor also implements the following steps when executing the computer program: the container processing engine responds to the perception that the virtual container encapsulation carries a new creation identifier, and parses the resource usage indicated by the new creation identifier; the container processing engine creates a new business container based on the parsed resource usage; the network module connects the network space of the new business container and the container management platform.

[0203] In one embodiment, the scheduling instruction includes deleting a business container; when the business container is scheduled based on the scheduling instruction, the processor further implements the following steps when executing the computer program: the container processing engine, in response to sensing that the virtual container encapsulation carries a deletion identifier, identifies the fourth target container pointed to by the deletion identifier; unbinds the fourth target container from the extended network, and deletes the second virtual network card pair associated with the fourth target container; the container processing engine deletes the proxy information associated with the fourth target container in the configuration file, triggering the proxy container encapsulation to reload the configuration file; the container processing engine deletes the fourth target container in the node of the cluster.

[0204] In one embodiment, when scheduling a business container based on a scheduling instruction, the processor further implements the following steps when executing a computer program: the container processing engine identifies the scheduling instruction; in response to the scheduling instruction being a pause instruction, the container processing engine pauses the first target container pointed to by the pause instruction; in response to the scheduling instruction being a start instruction, the container processing engine starts the second target container pointed to by the start instruction; in response to the scheduling instruction being an update instruction, the resource usage of the third target container pointed to by the update instruction is updated; in response to the scheduling instruction being a delete instruction, the fourth target container pointed to by the delete instruction is deleted; in response to the scheduling instruction being a create instruction, a new business container is created based on the create instruction.

[0205] In one embodiment, when the processor executes the computer program, the following steps are also implemented: the container processing engine changes the business container in the cluster; the container processing engine modifies the service information in the configuration file based on the change; the proxy container encapsulation loads the updated configuration file in response to sensing the change in the service information.

[0206] In one embodiment, when the container processing engine modifies the service information in the configuration file based on the change, the processor further implements the following steps when executing the computer program: the container processing engine creates a new business container or adds a new service to the business container; the container processing engine obtains the configuration file and writes first information into the configuration file; wherein the first information includes service information of the newly added business container or service; and / or, the container processing engine deletes the original business container or deletes the service in the original business container, and uses the original business container as the sixth target container; the container processing engine deletes the second information; wherein the second information includes service information of the deleted original business container or service.

[0207] In one embodiment, when loading an updated configuration file, the processor further implements the following steps when executing the computer program: the proxy container encapsulates traversing the process information of its process namespace, and filters the main process number of the reverse proxy service in the process information as the first main process number; the proxy container encapsulates sending a loading instruction to the first main process number, triggering the reverse proxy service to reload the configuration file.

[0208] In one embodiment, the proxy container package is created by a container management platform and is placed in a cluster. When the processor executes the computer program, the following steps are also implemented: the container management platform creates a reverse proxy service and a proxy container package, encapsulates the reverse proxy service in the proxy container package, and deploys the proxy container package to the cluster; the container management platform creates a configuration dictionary, maps the configuration dictionary to the proxy container package, and forms a configuration file; wherein the configuration dictionary is used to record service information to be proxied.

[0209] In one embodiment, the proxy container encapsulation includes a proxy service container; when the service carried by the business container in the proxy cluster, the processor further implements the following steps when executing the computer program: the container management platform obtains the service request and sends the service request to the proxy container encapsulation; the proxy service container receives the service request and forwards the service request to the corresponding business container to enable the business container to respond to the service request.

[0210] In one embodiment, the proxy container encapsulation also includes a configuration-aware container; when the processor executes the computer program, the following steps are also implemented: the configuration-aware container senses whether there is an information change in the configuration file; in response to the information change in the configuration file, the configuration-aware container filters the main process number of the proxy service container as the second main process number; based on the second main process number, a loading instruction is sent to the proxy service container; the proxy service container receives the loading instruction and restarts the reverse proxy service to reload the updated configuration file.

[0211] In one embodiment, when constructing an extended network, the processor also implements the following steps when executing the computer program: the network module creates a virtual multicast group and a bridge at each node in the cluster; the network module connects the virtual devices of the virtual multicast group to the bridge; the network module starts the bridge and the virtual devices connected to the bridge to form an extended network; the network module plans the network segment information of the extended network.

[0212] In one embodiment, when one of the first virtual network card pair is inserted into the extended network and the other is inserted into the proxy container encapsulation, the processor further implements the following steps when executing the computer program: querying the bridge and network segment information of the extended network, configuring the network segment information as the Internet Protocol address of one of the first virtual network card pair, and inserting it into the bridge; obtaining the process number of the proxy container encapsulation, obtaining its network namespace based on the process number, and moving the other of the first virtual network card pair to the network namespace of the proxy container encapsulation.

[0213] In one embodiment, when one of the second virtual network card pair is inserted into the extended network and the other is inserted into the business container located in the container processing engine in the cluster, the processor also implements the following steps when executing the computer program: querying the bridge and network segment information of the extended network, configuring the network segment information as the Internet Interconnection Protocol address of one of the second virtual network card pair, and inserting it into the bridge; moving the other of the second virtual network card pair to the network namespace where the business container is located.

[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] S101: The network module builds an extended network.

[0216] S102: The network module creates a first virtual network card pair, inserts one of the first virtual network card pair into the extended network, and inserts the other into the proxy container package, connecting the network space of the container management platform and the extended network; wherein the proxy container package is created by the container management platform and contained in the cluster, and is used to proxy the services carried by the business container in the cluster.

[0217] S103: The network module creates a second virtual network card pair, inserts one of the second virtual network card pair into the extended network, and inserts the other into the cluster to connect with the business container located in the container processing engine, thereby connecting the network space of the business container and the extended network, and connecting the network space of the container management platform and the container processing engine.

[0218] S104: The container management platform sends a scheduling instruction, wherein the scheduling instruction includes pausing the service container; the container processing engine obtains the scheduling instruction, and schedules the service container based on the scheduling instruction.

[0219] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0220] In one embodiment, the container management platform sends a scheduling instruction; when the container processing engine obtains the scheduling instruction, the computer program further implements the following steps when executed by the processor: the container management platform assigns a scheduling identifier to a virtual container package located in the cluster; the container processing engine senses the virtual container package and determines whether the virtual container package is assigned a scheduling identifier; in response to the virtual container package being assigned a scheduling identifier, the container processing engine identifies the business container pointed to by the scheduling identifier and uses it as a target container, and schedules the target container according to the scheduling identifier.

[0221] In one embodiment, the container management platform assigns a scheduling identifier to a virtual container package located in a cluster; when the container processing engine perceives the virtual container package, the following steps are also implemented when the computer program is executed by the processor: the container management platform initiates a scheduling request to the scheduler; the scheduler obtains the virtual container package that matches the scheduling request and injects the scheduling identifier into the annotation of the virtual container package; the container processing engine perceives the annotation of the virtual container package.

[0222] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: the container management platform obtains a creation request and creates a new virtual container package based on the creation request; the scheduler identifies the new virtual container package and reserves resources for the new virtual container package; the scheduler screens the nodes in the cluster and uses the screened nodes as the first target nodes associated with the new virtual container package; and the node information of the first target node is injected into the annotation of the new virtual container package.

[0223] In one embodiment, after scheduling the business container based on the scheduling instruction, the computer program further implements the following steps when executed by the processor: the container processing engine obtains the configuration file in response to completing the execution of the scheduling instruction; the container processing engine updates the configuration file based on the scheduling instruction, triggering the container management platform to reload the updated configuration file; and the container management platform is instructed to proxy the services carried by the business containers in the cluster based on the updated configuration file.

[0224] In one embodiment, when the container processing engine obtains a scheduling instruction and schedules a business container based on the scheduling instruction, the computer program further implements the following steps when executed by the processor: the container processing engine senses a virtual container encapsulation provided in the cluster; the container processing engine responds to the virtual container encapsulation carrying a pause flag, and resolves the first target container pointed to by the pause flag; the container processing engine unbinds one of the target network card pair from the bridge of the extended network, migrates the other from the network space of the first target container to the default network space, and deletes the target network card pair; wherein the target network card pair is a second virtual network card pair connecting the first target container and the extended network.

[0225] In one embodiment, the scheduling instruction includes starting a business container; the container management platform sends the scheduling instruction to the container processing engine; when the container processing engine receives the scheduling instruction, the computer program is executed by the processor and further implements the following steps: the container management platform injects a startup identifier into an annotation of a virtual container package associated with a second target container; the container processing engine starts the second target container in response to sensing the startup identifier, and connects the network space of the second target container and the container management platform.

[0226] In one embodiment, the scheduling instruction includes updating resources of a business container; when the business container is scheduled based on the scheduling instruction, the computer program further implements the following steps when executed by the processor: the scheduler, in response to sensing that the virtual container package carries a to-be-updated identifier, uses the virtual container package as the target virtual package; the scheduler updates the resource usage of the target virtual package recorded therein, and assigns the target virtual package an updated identifier; the container processing engine, in response to sensing the updated identifier, updates the resource data updated by the third target container to the resource information recorded by the target virtual package.

[0227] In one embodiment, when the scheduler updates the resource usage of the target virtual package recorded therein, the computer program also implements the following steps when executed by the processor: the scheduler identifies the update target of the resource update; in response to the update target being to increase the resource usage, the scheduler checks whether the remaining resources of the second target node associated with the target virtual package are sufficient; in response to the remaining resources being insufficient, the target virtual package is assigned a resource shortage flag.

[0228] In one embodiment, the scheduling instruction includes creating a business container; when the business container is scheduled based on the scheduling instruction, the computer program also implements the following steps when executed by the processor: the container processing engine responds to the perception that the virtual container encapsulation carries a new creation identifier and parses the resource usage indicated by the new creation identifier; the container processing engine creates a new business container based on the parsed resource usage; the network module connects the network space of the new business container and the container management platform.

[0229] In one embodiment, the scheduling instruction includes deleting a business container; when the business container is scheduled based on the scheduling instruction, the computer program further implements the following steps when executed by the processor: the container processing engine, in response to sensing that the virtual container encapsulation carries a deletion identifier, identifies the fourth target container pointed to by the deletion identifier; unbinds the fourth target container from the extended network, and deletes the second virtual network card pair associated with the fourth target container; the container processing engine deletes the proxy information associated with the fourth target container in the configuration file, triggering the proxy container encapsulation to reload the configuration file; the container processing engine deletes the fourth target container in the node of the cluster.

[0230] In one embodiment, when scheduling a business container based on a scheduling instruction, the computer program further implements the following steps when executed by the processor: the container processing engine identifies the scheduling instruction; in response to the scheduling instruction being a pause instruction, the container processing engine pauses the first target container pointed to by the pause instruction; in response to the scheduling instruction being a start instruction, the container processing engine starts the second target container pointed to by the start instruction; in response to the scheduling instruction being an update instruction, the resource usage of the third target container pointed to by the update instruction is updated; in response to the scheduling instruction being a delete instruction, the fourth target container pointed to by the delete instruction is deleted; in response to the scheduling instruction being a create instruction, a new business container is created based on the create instruction.

[0231] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: the container processing engine changes the business container in the cluster; the container processing engine modifies the service information in the configuration file based on the change; the proxy container encapsulation loads the updated configuration file in response to sensing the change in the service information.

[0232] In one embodiment, when the container processing engine modifies the service information in the configuration file based on the change, the computer program further implements the following steps when executed by the processor: the container processing engine creates a new business container or adds a new service to the business container; the container processing engine obtains the configuration file and writes first information into the configuration file; wherein the first information includes service information of the newly added business container or service; and / or, the container processing engine deletes the original business container or deletes the service in the original business container, and uses the original business container as the sixth target container; the container processing engine deletes the second information; wherein the second information includes service information of the deleted original business container or service.

[0233] In one embodiment, when loading an updated configuration file, the computer program further implements the following steps when executed by the processor: the proxy container encapsulates traversing the process information of its process namespace, filtering the main process number of the reverse proxy service in the process information as the first main process number; the proxy container encapsulates sending a loading instruction to the first main process number, triggering the reverse proxy service to reload the configuration file.

[0234] In one embodiment, the proxy container package is created by a container management platform and is placed in a cluster. When the computer program is executed by a processor, the following steps are also implemented: the container management platform creates a reverse proxy service and a proxy container package, encapsulates the reverse proxy service in the proxy container package, and deploys the proxy container package to the cluster; the container management platform creates a configuration dictionary, maps the configuration dictionary to the proxy container package, and forms a configuration file; wherein the configuration dictionary is used to record service information to be proxied.

[0235] In one embodiment, the proxy container encapsulation includes a proxy service container; when the service carried by the business container in the proxy cluster is proxy-clustered, the computer program further implements the following steps when executed by the processor: the container management platform obtains the service request and sends the service request to the proxy container encapsulation; the proxy service container receives the service request and forwards the service request to the corresponding business container so that the business container responds to the service request.

[0236] In one embodiment, the proxy container encapsulation also includes a configuration-aware container; when the computer program is executed by the processor, the following steps are also implemented: the configuration-aware container senses whether there is an information change in the configuration file; in response to the information change in the configuration file, the configuration-aware container filters the main process number of the proxy service container as the second main process number; based on the second main process number, a loading instruction is sent to the proxy service container; the proxy service container receives the loading instruction and restarts the reverse proxy service to reload the updated configuration file.

[0237] In one embodiment, when constructing an extended network, the computer program also implements the following steps when executed by the processor: the network module creates a virtual multicast group and a bridge at each node in the cluster; the network module connects the virtual devices of the virtual multicast group to the bridge; the network module starts the bridge and the virtual devices connected to the bridge to form an extended network; the network module plans the network segment information of the extended network.

[0238] In one embodiment, when one of the first virtual network card pair is inserted into the extended network and the other is inserted into the proxy container encapsulation, the computer program further implements the following steps when executed by the processor: querying the bridge and network segment information of the extended network, configuring the network segment information as the Internet Protocol address of one of the first virtual network card pair, and inserting it into the bridge; obtaining the process number of the proxy container encapsulation, obtaining its network namespace based on the process number, and moving the other of the first virtual network card pair to the network namespace of the proxy container encapsulation.

[0239] In one embodiment, when one of the second virtual network card pair is inserted into the extended network and the other is inserted into the business container located in the container processing engine in the cluster, the computer program also implements the following steps when executed by the processor: query the bridge and network segment information of the extended network, configure the network segment information as the Internet Interconnection Protocol address of one of the second virtual network card pair, and insert it into the bridge; move the other of the second virtual network card pair to the network namespace where the business container is located.

[0240] Those of ordinary skill 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 memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0241] 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.

[0242] The above 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 invention patent. It should be pointed out that, for ordinary technicians in this field, 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.

Claims

1. A method for managing a business container, characterized in that: The business container management method is applied to a business container management system, which includes a network module, a container management platform, and a container processing engine; The management method comprises: The network module builds an extended network; The network module creates a first virtual network card pair, inserts one of the first virtual network card pair into the extended network, and inserts the other into the proxy container package, so as to connect the network spaces of the container management platform and the extended network; wherein the proxy container package is created by the container management platform and contained in the cluster, and is used to proxy the services carried by the business container in the cluster; The network module creates a second virtual network card pair, inserts one of the second virtual network card pair into the extended network, and inserts the other into the cluster to connect with the business container located in the container processing engine, connects the network space of the business container and the extended network, and connects the network space of the container management platform and the container processing engine; The container management platform sends a scheduling instruction; wherein the scheduling instruction includes pausing the business container; the container processing engine obtains the scheduling instruction and schedules the business container based on the scheduling instruction; The container processing engine obtains the scheduling instruction, and scheduling the business container based on the scheduling instruction includes: The container processing engine senses the virtual container encapsulation provided in the cluster; The container processing engine, in response to the virtual container encapsulation carrying the pause flag, resolves the first target container pointed to by the pause flag; Delete the target network card pair; wherein the target network card pair is the second virtual network card pair that connects the first target container and the extended network.

2. The management method according to claim 1, characterized in that: The container management platform sends a scheduling instruction; and the container processing engine obtains the scheduling instruction, including: The container management platform assigns a scheduling identifier to a virtual container package located in the cluster; The container processing engine senses the virtual container package and determines whether the virtual container package is assigned the scheduling identifier; In response to the virtual container package being assigned the scheduling identifier, the container processing engine identifies the business container pointed to by the scheduling identifier and uses it as a target container, and schedules the target container according to the scheduling identifier.

3. The management method according to claim 2, characterized in that: The container management platform assigns a scheduling identifier to a virtual container package located in the cluster; The container processing engine sensing the virtual container encapsulation includes: The container management platform initiates a scheduling request to the scheduler; The scheduler obtains a virtual container package matching the scheduling request, and injects the scheduling identifier into an annotation of the virtual container package; The container processing engine perceives the annotations encapsulated by the virtual container.

4. The management method according to claim 2, characterized in that: The management method comprises: The container management platform obtains a creation request, and creates a new virtual container package based on the creation request; The scheduler identifies the new virtual container package and reserves resources for the new virtual container package; The scheduler screens the nodes in the cluster, uses the screened nodes as first target nodes associated with the new virtual container package, and injects node information of the first target node into the annotation of the new virtual container package.

5. The management method according to claim 1, characterized in that: After scheduling the service container based on the scheduling instruction, the method further includes: In response to completing the execution of the scheduling instruction, the container processing engine obtains a configuration file; The container processing engine updates the configuration file based on the scheduling instruction, triggering the container management platform to reload the updated configuration file; and instructs the container management platform to proxy the services carried by the business containers in the cluster based on the updated configuration file.

6. The management method according to claim 1, characterized in that: The deleting of the target network card pair includes: The container processing engine unbinds one of the target network cards from the bridge of the extended network, and migrates the other one from the network space of the first target container to the default network space.

7. The management method according to claim 1, characterized in that: The scheduling instruction includes starting the business container; the container management platform sends the scheduling instruction to the container processing engine; The container processing engine receiving the scheduling instruction includes: The container management platform injects a startup identifier into an annotation of a virtual container package associated with the second target container; In response to sensing the start identifier, the container processing engine starts the second target container and connects the network space of the second target container and the container management platform.

8. The management method according to claim 1, characterized in that: The scheduling instruction includes updating resources of the service container; and scheduling the service container based on the scheduling instruction includes: In response to sensing that the virtual container package carries a to-be-updated identifier, the scheduler uses the virtual container package as a target virtual package; The scheduler updates the resource usage of the target virtual package recorded therein, and gives the target virtual package an updated flag; In response to sensing the updated identifier, the container processing engine updates the resource data updated by the third target container to the resource information recorded by the target virtual package.

9. The management method according to claim 8, characterized in that: The scheduler updates the resource usage of the target virtual package recorded therein, including: The scheduler identifies an update target for a resource update; The scheduler checks, in response to the update target being to increase resource usage, whether remaining resources of a second target node associated with the target virtual package are sufficient; In response to the remaining resources being insufficient, a resource shortage flag is assigned to the target virtual package.

10. The management method according to claim 1, characterized in that: The scheduling instruction includes creating the business container; and scheduling the business container based on the scheduling instruction includes: In response to sensing that the virtual container encapsulation carries a new creation identifier, the container processing engine parses the resource usage indicated by the new creation identifier; The container processing engine creates a new service container based on the parsed resource usage; The network module connects the network spaces of the new business container and the container management platform.

11. The management method according to claim 1, characterized in that: The scheduling instruction includes deleting the service container; and scheduling the service container based on the scheduling instruction includes: In response to sensing that the virtual container encapsulation carries a deletion identifier, the container processing engine identifies a fourth target container pointed to by the deletion identifier; unbinds the fourth target container from the extended network, and deletes the second virtual network card pair associated with the fourth target container; The container processing engine deletes the proxy information associated with the fourth target container in the configuration file, triggering the proxy container encapsulation to reload the configuration file; The container processing engine deletes the fourth target container in the node of the cluster.

12. The management method according to any one of claims 1 to 11, characterized in that: Scheduling the service container based on the scheduling instruction includes: The container processing engine identifies the scheduling instruction; In response to the scheduling instruction being a pause instruction, the container processing engine pauses the first target container pointed to by the pause instruction; in response to the scheduling instruction being a start instruction, the container processing engine starts the second target container pointed to by the start instruction; in response to the scheduling instruction being an update instruction, the container processing engine updates the resource usage of the third target container pointed to by the update instruction; in response to the scheduling instruction being a delete instruction, the container processing engine deletes the fourth target container pointed to by the delete instruction; in response to the scheduling instruction being a create instruction, the container processing engine creates a new business container based on the create instruction.

13. The management method according to claim 1, characterized in that: The management method also includes: The container processing engine changes the business container in the cluster; The container processing engine modifies the service information in the configuration file based on the change; The proxy container encapsulation loads the updated configuration file in response to sensing the change in the service information.

14. The management method according to claim 13, characterized in that: The container processing engine modifies the service information in the configuration file based on the change, including: The container processing engine creates a new business container or adds a new service to the business container; The container processing engine obtains a configuration file and writes first information into the configuration file; wherein the first information includes service information of a newly added business container or service; and / or, The container processing engine deletes the original business container or deletes the service in the original business container, and uses the original business container as the sixth target container; The container processing engine deletes the second information; wherein the second information includes service information of the deleted original business container or service.

15. The management method according to claim 13, characterized in that: The loading of the updated configuration file comprises: The proxy container encapsulates the process information traversing its process namespace, and selects the main process number of the reverse proxy service in the process information as the first main process number; The proxy container encapsulation sends a loading instruction to the first main process number, triggering the reverse proxy service to reload the configuration file.

16. The management method according to claim 13, characterized in that: The proxy container package is created by the container management platform and placed in the cluster and includes: The container management platform creates a reverse proxy service and a proxy container package, encapsulates the reverse proxy service in the proxy container package, and deploys the proxy container package to the cluster; The container management platform creates a configuration dictionary, maps the configuration dictionary to the proxy container package, and forms the configuration file; wherein the configuration dictionary is used to record service information to be proxied.

17. The management method according to claim 1, characterized in that: The proxy container encapsulation includes a proxy service container; the services carried by the business container in the proxy cluster include: The container management platform obtains a service request, and sends the service request to the proxy container for encapsulation; The proxy service container receives the service request, and forwards the service request to the corresponding business container, so that the business container responds to the service request.

18. The management method according to claim 16, characterized in that: The proxy container encapsulation also includes a configuration-aware container; the management method also includes: The configuration awareness container senses whether there is information change in the configuration file; The configuration-aware container selects the main process number of the proxy service container as the second main process number in response to the information change of the configuration file; and sends a loading instruction to the proxy service container based on the second main process number; The proxy service container receives the loading instruction and restarts the reverse proxy service to reload the updated configuration file.

19. The management method according to claim 1, characterized in that: The construction of the extended network includes: The network module creates a virtual multicast group and a bridge at each node in the cluster; The network module connects the virtual device of the virtual multicast group to the bridge; The network module starts the network bridge and the virtual device connected to the network bridge to form the extended network; The network module plans the network segment information of the extended network.

20. The management method according to claim 1, characterized in that: The step of inserting one of the first virtual network cards into the extended network and the other into the proxy container package comprises: Querying the network bridge and network segment information of the extended network, configuring the network segment information as an Internet Protocol address of one of the first virtual network card pair, and inserting it into the network bridge; The process ID of the proxy container encapsulation is obtained, its network namespace is obtained based on the process ID, and the other one of the first virtual network card pair is moved to the network namespace of the proxy container encapsulation.

21. The management method according to claim 1, characterized in that: The step of inserting one of the second virtual network cards into the extended network and the other into the business container of the container processing engine in the cluster includes: Querying the network bridge and network segment information of the extended network, configuring the network segment information as an Internet Protocol address of one of the second virtual network card pair, and inserting it into the network bridge; Move the other one of the second virtual network card pair to the network namespace where the business container is located.

22. A management system for a business container, characterized in that: The management system comprises: The container management platform is used to send a scheduling instruction; wherein the scheduling instruction includes pausing the service container; A container processing engine, used to obtain the scheduling instruction and schedule the business container based on the scheduling instruction; A network module is used to build an extended network; create a first virtual network card pair, insert one of the first virtual network card pair into the extended network, and insert the other into the proxy container package, so as to connect the network space of the container management platform and the extended network; wherein the proxy container package is created by the container management platform and contained in the cluster, and is used to proxy the services carried by the business container in the cluster; create a second virtual network card pair, insert one of the second virtual network card pair into the extended network, and insert the other into the cluster to connect with the business container located in the container processing engine, so as to connect the network space of the business container and the extended network, so as to connect the network space of the container management platform and the container processing engine; The container processing engine obtains the scheduling instruction, and scheduling the business container based on the scheduling instruction includes: The container processing engine senses the virtual container encapsulation provided in the cluster; The container processing engine, in response to the virtual container encapsulation carrying the pause flag, resolves the first target container pointed to by the pause flag; Delete the target network card pair; wherein the target network card pair is the second virtual network card pair that connects the first target container and the extended network.

23. The management system according to claim 22, characterized in that: The management system further includes a scheduler, and a virtual container package is provided in the cluster; the scheduler is connected to the container management platform and the virtual container package; The scheduler is used to obtain a virtual container package matching the scheduling request, and inject a scheduling identifier into an annotation of the virtual container package; So that the container processing engine can perceive the annotations encapsulated by the virtual container.

24. The management system according to claim 22, characterized in that: The proxy container package includes a proxy service container; The proxy service container is used to receive the service request sent by the container management platform to the proxy container for encapsulation, and forward the service request to the corresponding business container to make the business container respond to the service request.

25. The management system according to claim 24, characterized in that: The proxy container also includes a configuration awareness container and a configuration file; The configuration awareness container is used to sense whether there is information change in the configuration file; in response to the information change in the configuration file, filter the main process number of the proxy service container as the second main process number; and send a loading instruction to the proxy service container based on the second main process number; The proxy service container receives the loading instruction and restarts the reverse proxy service to reload the updated configuration file.

26. The management system according to claim 22, characterized in that: The cluster includes a plurality of nodes; The node is created by the container management platform or the container processing engine; Wherein, a business service container and / or a proxy container encapsulation is provided in the node.

27. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the service container management method according to any one of claims 1 to 21 are implemented.

28. 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 service container management method according to any one of claims 1 to 21 are implemented.

29. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the service container management method described in any one of claims 1 to 21 are implemented.