A container-aware scheduling method, product, device and medium

By automatically detecting the kernel dependency information of the container image and finding or creating a matching kernel version in the container orchestration engine cluster, it solves the problem of kernel version incompatibility in traditional container scheduling and improves scheduling efficiency and system stability.

CN118467113BActive Publication Date: 2024-10-01JINAN INSPUR DATA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410931674.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2024-10-01
Estimated Expiration
2044-07-12

AI Technical Summary

Technical Problem

In traditional container scheduling, the container image and the host kernel version are incompatible, resulting in low scheduling efficiency. Manual matching of kernel version information is required, which increases matching time and complexity.

Method used

By obtaining the kernel dependency information of the target container image, it automatically finds or creates a matching kernel version in the open source container orchestration engine cluster, and realizes automatic compatibility detection and scheduling of the container image and the host.

Benefits of technology

It improves the compatibility and matching efficiency between the container image and the host kernel, reduces the workload of manual operation and maintenance, reduces the occurrence of errors, and improves the stability and security of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118467113B_ABST
    Figure CN118467113B_ABST
Patent Text Reader

Abstract

The present invention discloses a container-aware scheduling method, product, device and medium, and relates to the field of container-aware technology. Considering the scheduling between the target container image and the target kernel version information, the corresponding kernel dependency information is determined by analyzing and processing the target container image, and automatic compatibility detection is implemented to obtain the corresponding kernel dependency information, so as to provide accurate kernel dependency information; based on the kernel dependency information, the corresponding target kernel version information is searched in the cluster, and if it does not exist, the host machine of the container image is created to join the container cluster, thereby reducing the construction complexity caused by the frequent adaptation of container applications to container clusters with different kernels. If it exists, it can be directly scheduled, and the time of manual operation and maintenance matching is reduced through automation, thereby improving scheduling efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of container perception technology, and in particular to a container perception scheduling method, product, device and medium. Background Art

[0002] The scheduling design of the container platform involves multiple levels of decision-making and optimization. In containerization technology, scheduling is how to allocate containerized applications to different nodes in the cluster. The scheduling is based on resources such as the central processing unit (CPU) and memory to determine whether the Pod (a resource object in the Kubernetes container orchestration engine) can be allocated to a node with sufficient resources.

[0003] Traditional container scheduling is only applied according to resource information. In the Kubernetes (open source container orchestration engine) cluster, the server operating system kernel version of each node is constantly changing. In the actual scheduling process, the corresponding container image and kernel version do not correspond, resulting in poor compatibility between the container image and the host kernel. At the same time, the corresponding kernel version information needs to be matched manually, which further increases the matching time and affects the progress of the container scheduling.

[0004] Therefore, how to improve the compatibility and matching efficiency of container images and host kernels is an urgent problem that needs to be solved by those skilled in the art. Summary of the invention

[0005] The purpose of the present invention is to provide a container-aware scheduling method, product, device and medium to solve the problems of poor compatibility caused by the mismatch between container image and kernel version in traditional container scheduling and reduced scheduling efficiency caused by manual matching of kernel version information.

[0006] In order to solve the above technical problems, the present invention provides a container-aware scheduling method, comprising:

[0007] Obtain a target container image; analyze and process the target container image to determine corresponding kernel dependency information;

[0008] According to the kernel dependency information, searching for corresponding target kernel version information in the open source container orchestration engine cluster corresponding to the target container image;

[0009] If the target kernel version information is not in the open source container orchestration engine cluster, calling the infrastructure as a service platform to create a target container node corresponding to the target kernel version information, so as to schedule the target container node;

[0010] If the target kernel version information is in the open source container orchestration engine cluster, the target container node corresponding to the target kernel version information is scheduled.

[0011] On the one hand, searching for corresponding target kernel version information in an open source container orchestration engine cluster corresponding to the target container image according to the kernel dependency information includes:

[0012] Establishing a database in the open source container orchestration engine cluster in advance;

[0013] Establishing a mapping relationship between the kernel version information stored in the open source container orchestration engine cluster and the container node;

[0014] The kernel dependency information is searched according to the mapping relationship to determine the corresponding target kernel version information.

[0015] On the other hand, before calling the infrastructure as a service platform to create a target container node corresponding to the target kernel version information, it also includes:

[0016] Pre-create kernel version information corresponding to each container node on the calling infrastructure as a service platform;

[0017] An operating system corresponding to each kernel version information is established in each container node.

[0018] On the other hand, after searching the open source container orchestration engine cluster corresponding to the target container image according to the kernel dependency information for the corresponding target kernel version information, the method further includes:

[0019] If there are multiple target kernel version information, and some of them exist in the open source container orchestration engine cluster, then select the target kernel version information existing in the open source container orchestration engine cluster;

[0020] If the number of target kernel version information existing in the open source container orchestration engine cluster is selected to be multiple, select any one of the target kernel version information existing in the open source container orchestration engine cluster;

[0021] Any target container node corresponding to the target kernel version information of the open source container orchestration engine cluster is selected for scheduling.

[0022] On the other hand, after searching the open source container orchestration engine cluster corresponding to the target container image according to the kernel dependency information for the corresponding target kernel version information, the method further includes:

[0023] If the number of the target kernel version information is one and it is not in the open source container orchestration engine cluster, the infrastructure as a service platform is called to create a target container node corresponding to the target kernel version information to facilitate scheduling of the target container node.

[0024] On the other hand, when there are multiple target kernel version information, after searching the corresponding target kernel version information in the open source container orchestration engine cluster corresponding to the target container image according to the kernel dependency information, the method further includes:

[0025] If some of the target kernel version information is stored in the open source container orchestration engine cluster, check whether some of the target kernel version information is called by other container nodes.

[0026] If so, the infrastructure as a service platform is called to create a target container node corresponding to the remaining target kernel version information; wherein the remaining target kernel version information is the target kernel version information of multiple target kernel version information excluding the partial target kernel version information.

[0027] On the other hand, when there are multiple target kernel version information, after searching the corresponding target kernel version information in the open source container orchestration engine cluster corresponding to the target container image according to the kernel dependency information, the method further includes:

[0028] If some of the target kernel version information is stored in the open source container orchestration engine cluster, check whether some of the target kernel version information is called by other container nodes.

[0029] If not, the target container node corresponding to the target kernel version information that has not been called by other container nodes is scheduled;

[0030] If yes, obtain the service priority of the target container image and the container images corresponding to the other container nodes;

[0031] If the business priorities of the target container images are all higher than the business priorities of the container images corresponding to the other container nodes, then calling the infrastructure as a service platform to create target container nodes corresponding to the remaining target kernel version information; wherein the remaining target kernel version information is the target kernel version information of the multiple target kernel version information excluding the partial target kernel version information;

[0032] If the business priority of the target container image is lower than the business priority of any container image corresponding to the other container nodes, return to the step of checking whether part of the target kernel version information is called by other container nodes according to the first preset time.

[0033] On the other hand, when there are multiple target kernel version information, and the target kernel version information is in the open source container orchestration engine cluster, the method further includes:

[0034] Check whether the target container node corresponding to the target kernel version information is occupied in the open source container orchestration engine cluster;

[0035] If occupied, returning to the step of checking whether the target container node corresponding to the target kernel version information is occupied in the open source container orchestration engine cluster according to the second preset time, to check the status information of the target container node being occupied by other container nodes, until it is not occupied by other container nodes, and entering the step of scheduling the target container node corresponding to the target kernel version information;

[0036] If not occupied, the step of scheduling the target container node corresponding to the target kernel version information is entered.

[0037] On the other hand, analyzing and processing the target container image to determine the corresponding kernel dependency information includes:

[0038] The target container image is analyzed and processed by a diving tool and / or a capture tool to determine corresponding kernel dependency information.

[0039] On the other hand, the target container image is analyzed and processed by a diving tool to determine the corresponding kernel dependency information, including:

[0040] Obtain the name information of the target container image;

[0041] Running the diving tool to construct an image file corresponding to the name information;

[0042] Check the change information corresponding to the image layer file in the image file; wherein the change information at least includes system files, library files and configuration files;

[0043] Kernel dependency information corresponding to the target container image is determined according to the change information.

[0044] On the other hand, the target container image is analyzed and processed by a capture tool to determine the corresponding kernel dependency information, including:

[0045] Running the capture tool to export corresponding name information in the target container image;

[0046] Obtain client version information to which the target container image belongs;

[0047] Outputting redirection information corresponding to the redirection according to the client version information; wherein the redirection information at least includes a file system, an environment variable and a startup command;

[0048] The kernel dependency information is identified according to the redirection information.

[0049] On the other hand, the target container image is analyzed and processed by the diving tool and the capture tool to determine the corresponding kernel dependency information, including:

[0050] Obtain the name information of the target container image;

[0051] Running the diving tool to construct an image file corresponding to the name information;

[0052] Check the change information corresponding to the image layer file in the image file; wherein the change information at least includes system files, library files and configuration files;

[0053] Determine first kernel dependency information corresponding to the target container image according to the change information;

[0054] Running the capture tool to export corresponding name information in the target container image;

[0055] Obtain client version information to which the target container image belongs;

[0056] Outputting redirection information corresponding to the redirection according to the client version information; wherein the redirection information at least includes a file system, an environment variable and a startup command;

[0057] identifying second kernel dependency information according to the redirection information;

[0058] Final kernel dependency information is determined according to the first kernel dependency information and the second kernel dependency information.

[0059] In order to solve the above technical problem, the present invention also provides a computer program product, including a computer program / instruction, which implements the steps of the above-mentioned container-aware scheduling method when executed by a processor.

[0060] In order to solve the above technical problems, the present invention further provides a container-aware scheduling device, comprising:

[0061] Memory for storing computer programs;

[0062] A processor is used to implement the steps of the container-aware scheduling method as described above when executing the computer program.

[0063] In order to solve the above technical problems, the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the container-aware scheduling method as described above are implemented.

[0064] The present invention provides a container-aware scheduling method, comprising: obtaining a target container image; analyzing and processing the target container image to determine corresponding kernel dependency information; searching for corresponding target kernel version information in an open source container orchestration engine cluster corresponding to the target container image according to the kernel dependency information; if the target kernel version information is not in the open source container orchestration engine cluster, calling an infrastructure as a service platform to create a target container node corresponding to the target kernel version information, so as to schedule the target container node; if the target kernel version information is in the open source container orchestration engine cluster, scheduling the target container node corresponding to the target kernel version information.

[0065] The beneficial effect of the present invention is that it considers the scheduling between the target container image and the target kernel version information, obtains the corresponding kernel dependency information through automatic compatibility detection, realizes the provision of accurate kernel dependency information, searches for the corresponding target kernel version information in the cluster based on the kernel dependency information, and if it does not exist, creates a host machine for the container image to join the container cluster, reducing the construction complexity caused by the frequent adaptation of container applications to container clusters with different kernels. If it exists, it can be directly scheduled, and the time for manual operation and maintenance matching can be reduced through automation, reducing the workload of operation and maintenance personnel, reducing the occurrence of errors, improving scheduling efficiency, and further improving the stability and security of the system.

[0066] Secondly, whether the two tools are used independently to obtain kernel dependency information or the two tools are used in combination to obtain the final kernel dependency information, the dependency of the container image on the kernel version can be automatically identified to facilitate the matching of subsequent container nodes. In the process of using the two tools in combination, the accuracy of identifying kernel dependency information is improved. When there is only one target kernel version information and it is not in the cluster, the infrastructure as a service platform is called to create the target container node corresponding to the target kernel version information to ensure the target accuracy of the target kernel version information, so as to ensure the accuracy of subsequent scheduling. When part of the target kernel version information is stored in the cluster and the part of the target kernel version information is occupied by other container nodes, the call creation can be based on the remaining part of the target kernel version information to ensure that the current target container image avoids waiting for the time after the call of other container nodes is completed, thereby improving scheduling efficiency. When part of the target kernel version information is stored in the cluster and the part of the target kernel version information is occupied by other container nodes, the relationship between the service priorities carried by each called container node and the target container image is checked, and the subsequent calling plan is determined according to the priority factor. The scheduling perception is performed based on the consideration of the business itself to ensure the diversity and flexibility of scheduling. All target kernel version information is stored in the cluster. If it is called by other container nodes, the waiting time is selected to ensure the orderliness of the scheduling process and avoid congestion.

[0067] In addition, the present invention also provides a computer program product, a container-aware scheduling device, and a computer-readable storage medium, which have the same beneficial effects as the above-mentioned container-aware scheduling method. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0069] Figure 1 A flowchart of a container-aware scheduling method provided by an embodiment of the present invention;

[0070] Figure 2 A structural diagram of a container-aware scheduling device provided by an embodiment of the present invention;

[0071] Figure 3 A structural diagram of a container-aware scheduling device provided by an embodiment of the present invention;

[0072] Figure 4 A schematic diagram of a container-aware scheduling scenario provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0073] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0074] The core of the present invention is to provide a container-aware scheduling method, product, device and medium to solve the problems of poor compatibility caused by the mismatch between container image and kernel version in traditional container scheduling and reduced scheduling efficiency caused by manual matching of kernel version information.

[0075] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0076] Linux containers provide a lightweight, isolated operating environment for applications. When building container images, developers are allowed to package applications and all their dependencies, and support seamless migration and operation in different operating system distributions, greatly improving the efficiency of application development and deployment. As a result, they are widely used in the field of cloud computing. Currently, a large number of applications are based on containerized deployment. Container technology provides isolation and resource management by utilizing the features of the Linux kernel (such as namespace and cgroup), and realizes lightweight virtualization by sharing the host's operating system kernel.

[0077] Kubernetes is a portable, extensible, open source platform for managing containerized workloads and services. It facilitates declarative configuration and automation. Its core functions include service discovery and load balancing, deployment and rollback, elastic scaling, container quota management, fault detection and self-healing, key and configuration management, and support for multiple data volume types. Currently, kubernetes has become the de facto standard for container application orchestration, and most container cloud platforms on the market are extended and developed based on Kubernetes.

[0078] The traditional container platform scheduling system is scheduled according to resources such as CPU and memory, mainly according to resource applications. The detailed scheduling methods are as follows:

[0079] 1. Resource scheduling: The Kubernetes scheduler determines the deployment location of the container based on the container's resource requirements (such as CPU, memory) and the node's resource capacity to avoid resource overload and waste;

[0080] 2. Affinity and anti-affinity scheduling: The scheduler supports label-based affinity and anti-affinity rules, allowing developers to define deployment preferences between application components. For example, some components need to be deployed on the same node to reduce communication latency, while others need to be deployed in a dispersed manner to avoid single points of failure.

[0081] 3. Quality of Service (QoS) scheduling: Kubernetes defines different service quality categories. The scheduler allocates resources based on the importance and resource requirements of the application to ensure the priority of critical tasks.

[0082] It should be noted that the above container scheduling methods all use resources such as CPU and memory, but the kernel version information corresponding to the operating system is not scheduled, resulting in that in actual use, if the container image does not match the kernel version information, one method is to reduce the business version carried inside the container image, and the other method is to reduce the kernel version information of the operating system. Both methods will cause poor compatibility between the container image and the kernel version information of the operating system during the scheduling process. The container-aware scheduling method provided by the present invention can solve the above technical problems.

[0083] Figure 1 A flowchart of a container-aware scheduling method provided by an embodiment of the present invention is shown in FIG. Figure 1 As shown, the method includes:

[0084] S11: Obtain a target container image; analyze and process the target container image to determine corresponding kernel dependency information;

[0085] S12: searching for corresponding target kernel version information in the open source container orchestration engine cluster corresponding to the target container image according to the kernel dependency information;

[0086] S13: Determine whether the target kernel version information exists in the open source container orchestration engine cluster. If not, proceed to step S14; if so, proceed to step S15;

[0087] S14: calling the infrastructure as a service platform to create a target container node corresponding to the target kernel version information, so as to schedule the target container node;

[0088] S15: Schedule the target container node corresponding to the target kernel version information.

[0089] It can be understood that the target container image obtained in step S11, that is, the target business that needs to be called, is carried by the target container image, and the target container image is analyzed and processed to determine the corresponding kernel dependency information. The analysis and processing here can solve the analysis software, or the corresponding analysis program and various analysis algorithms, which are not limited here, as long as the kernel dependency information of the operating system that needs to be matched by the target business is analyzed.

[0090] The kernel dependency information is used to determine whether the container node in the cluster meets the requirements for running the container image. In some embodiments, the target container image is analyzed and processed to determine the corresponding kernel dependency information, including:

[0091] The target container image is analyzed and processed by the diving tool and / or the capture tool to determine the corresponding kernel dependency information.

[0092] Understandably, the dive tool is specifically designed to analyze the different layers of a Docker container image, helping users understand what each layer contains and how it affects the image size. dive supports getting container images from different sources and is compatible with multiple container engines, such as Docker, Docker Tar Archive, and Podman (Linux only). Invoke the dive tool to browse each layer of the image and view the files that have been added or modified, especially system files, library files, and configuration files.

[0093] A whaler is a specific container scheduling or management tool that has the capabilities of container orchestration and management, container image building and distribution, container cluster monitoring and automated expansion, and resource scheduling and optimization.

[0094] The two tools can be used individually or in combination. When used individually, the efficiency of scheduling judgment is improved, while when used in combination, the accuracy of identifying kernel dependency information is improved.

[0095] If the two tools are used separately, in some embodiments, the target container image is analyzed and processed by the diving tool to determine the corresponding kernel dependency information, including:

[0096] Get the name information of the target container image;

[0097] Run the diving tool to build the image file corresponding to the name information;

[0098] Check the change information corresponding to the image layer files in the image file; the change information includes at least system files, library files and configuration files;

[0099] Determine the kernel dependency information corresponding to the target container image based on the change information.

[0100] Specifically, taking Docker running the dive tool as an example, run dive and specify the image name or identity document (ID) to be analyzed, build the image file corresponding to the name information, use the build command, analyze while building the image, and check the change information corresponding to the image layer files in the image file. The change information here includes at least system files, library files, and configuration files. Determine the corresponding kernel dependency information based on the change information to facilitate subsequent search for the corresponding container node in the cluster.

[0101] In other embodiments, the target container image is analyzed and processed by a capture tool to determine the corresponding kernel dependency information, including:

[0102] Run the capture tool to export the corresponding name information in the target container image;

[0103] Get the client version information of the target container image;

[0104] Outputting redirection information corresponding to the redirection according to the client version information; wherein the redirection information at least includes a file system, an environment variable and a startup command;

[0105] Identify kernel dependency information based on redirection information.

[0106] Specifically, the capture tool (whaler) can be run through the Docker container and does not need to be installed directly on the host machine. An alias needs to be created to facilitate the use of the whaler command and export the corresponding name information in the target container image. Get the client version information to which the target container image belongs, that is, specify the version of the Docker client, use a flag followed by a version number, and output the corresponding redirection information based on the client version information. You can also use the redirection operation to identify kernel dependency information based on the redirection information. The whaler tool may require access rights to the Docker daemon, so it may require corresponding permissions or be run as a root user when used. In addition, whale is mainly used to learn and analyze the build process of Docker images and should not be used for container scheduling in production environments.

[0107] The two tools are used together. In some embodiments, the target container image is analyzed and processed by the dive tool and the capture tool to determine the corresponding kernel dependency information, including:

[0108] Get the name information of the target container image;

[0109] Run the diving tool to build the image file corresponding to the name information;

[0110] Check the change information corresponding to the image layer files in the image file; the change information includes at least system files, library files and configuration files;

[0111] Determine first kernel dependency information corresponding to the target container image according to the change information;

[0112] Run the capture tool to export the corresponding name information in the target container image;

[0113] Get the client version information of the target container image;

[0114] Outputting redirection information corresponding to the redirection according to the client version information; wherein the redirection information at least includes a file system, an environment variable and a startup command;

[0115] identifying second kernel dependency information according to the redirection information;

[0116] Final kernel dependency information is determined according to the first kernel dependency information and the second kernel dependency information.

[0117] Specifically, in this embodiment, the corresponding kernel dependency information, namely the first kernel dependency information and the second kernel dependency information, is determined based on two tools respectively. The two kernel dependency information are compared to find the common kernel dependency information as the final kernel dependency information.

[0118] This embodiment provides that whether the two tools are used independently to obtain kernel dependency information or the two tools are used in combination to obtain the final kernel dependency information, the dependency of the container image on the kernel version can be automatically identified to facilitate the subsequent matching of container nodes. In the process of using the two tools in combination, the accuracy of identifying kernel dependency information is improved.

[0119] In step S12, the corresponding target kernel version information is searched in the open source container orchestration engine cluster corresponding to the target container image according to the kernel dependency information. The search process can be a one-by-one screening search or a search based on a database mechanism. It is not limited here and can be set according to actual conditions.

[0120] In some embodiments, searching for corresponding target kernel version information in an open source container orchestration engine cluster corresponding to the target container image according to the kernel dependency information includes:

[0121] Establish a database in the open source container orchestration engine cluster in advance;

[0122] Establish a mapping relationship between the kernel version information stored in the open source container orchestration engine cluster and the container node;

[0123] The kernel dependency information is searched according to the mapping relationship to determine the corresponding target kernel version information.

[0124] A database is pre-established in the open source container orchestration engine cluster (Kubernetes cluster), which stores the mapping relationship between each kernel version information and the container node, and determines the target kernel version information corresponding to the kernel dependency information based on the mapping relationship.

[0125] The mapping relationship between kernel version information and container nodes based on the database provided by the embodiment of the present invention improves search efficiency compared to a one-by-one screening process.

[0126] If the target kernel version information is not in the open source container orchestration engine cluster, it means that it is not stored in the cluster, and it is necessary to automatically create a container node that meets the operation of the container image and connect it to the cluster, that is, automatically call the Application Programming Interface (API) provided by the Infrastructure as a Service (IaaS) platform to create the corresponding virtual machine and install the operating system of the container image running kernel version. Since there are multiple target kernel version information, in principle, as long as one target kernel information is in the open source container orchestration engine cluster, the target container node corresponding to the target kernel information in the open source container orchestration engine cluster is found according to the needs in step S15 for scheduling.

[0127] In addition, if we consider factors such as the time cost of scheduling and the priority of the target business carried by the target container image, if some target kernel version information is not in the open source container orchestration engine cluster, we can also consider whether to call the target container node created in the IaaS platform based on the factors mentioned in this paragraph.

[0128] It can be understood that, in some embodiments, before calling the infrastructure as a service platform to create a target container node corresponding to the target kernel version information in step S14, the following is also included:

[0129] Create kernel version information corresponding to each container node in advance by calling the infrastructure as a service platform;

[0130] An operating system corresponding to each kernel version information is established in each container node.

[0131] Specifically, the kernel version information corresponding to each container node is created in advance in the IaaS platform to facilitate the subsequent call of the target kernel version information, and the corresponding operating system is established based on the kernel version information to meet the host machine of the container image kernel, and added to the subsequent cluster to complete the scheduling. Specifically, the IaaS layer interface is called to automatically create a virtual machine and install the operating system corresponding to the kernel required by the container image.

[0132] The embodiment of the present invention provides a container-aware scheduling method, including: obtaining a target container image; analyzing and processing the target container image to determine the corresponding kernel dependency information; searching for the corresponding target kernel version information in the open source container orchestration engine cluster corresponding to the target container image according to the kernel dependency information; if the target kernel version information is not in the open source container orchestration engine cluster, calling the infrastructure as a service platform to create a target container node corresponding to the target kernel version information, so as to schedule the target container node; if the target kernel version information is in the open source container orchestration engine cluster, scheduling the target container node corresponding to the target kernel version information. Considering the scheduling between the target container image and the target kernel version information, the corresponding kernel dependency information is obtained through automatic compatibility detection to provide accurate kernel dependency information, and the corresponding target kernel version information is searched in the cluster based on the kernel dependency information. If it does not exist, the host machine of the container image is created to join the container cluster, thereby reducing the construction complexity caused by the frequent adaptation of container applications to container clusters with different kernels. If it exists, it can be directly scheduled, and the time of manual operation and maintenance matching is reduced through automation, the workload of operation and maintenance personnel is reduced, the occurrence of errors is reduced, the scheduling efficiency is improved, and the stability and security of the system are further improved.

[0133] In some embodiments, after searching the open source container orchestration engine cluster corresponding to the target container image for the corresponding target kernel version information according to the kernel dependency information, the method further includes:

[0134] If there are multiple target kernel version information, and some of them exist in the open source container orchestration engine cluster, the target kernel version information that exists in the open source container orchestration engine cluster is selected;

[0135] If the number of target kernel version information of the open source container orchestration engine cluster selected is multiple, any target kernel version information of the open source container orchestration engine cluster is selected;

[0136] Schedule any target container node corresponding to the target kernel version information of the open source container orchestration engine cluster.

[0137] Specifically, when there are multiple target kernel version information, and some of the target kernel version information exists in the cluster, it is necessary to select any one of the target kernel version information of the part in the cluster for scheduling to complete the scheduling process of the target container node.

[0138] For example, if there are three target kernel versions corresponding to the target container image, and two of them are in the cluster, you can directly call any one of the two in the cluster.

[0139] In the case of multiple target kernel versions provided in this embodiment, as long as one exists in the cluster, the target container node corresponding to the cluster can be directly called to ensure the scheduling process of the target container image.

[0140] In some embodiments, when there is only one target kernel version information, after searching the corresponding target kernel version information in the open source container orchestration engine cluster corresponding to the target container image according to the kernel dependency information, the method further includes:

[0141] If the number of target kernel version information is one and it is not in the open source container orchestration engine cluster, the infrastructure as a service platform is called to create a target container node corresponding to the target kernel version information to facilitate scheduling of the target container node.

[0142] Specifically, when there is only one target kernel version information and it is not in the cluster, the technical solution is directly the same as that in step S14. It should be noted that here it is limited to only one kernel version information. In this case, determine whether it exists in the cluster. If so, perform the technical solution of step S15. If not, perform the technical solution of step S14.

[0143] In the case where there is only one target kernel version information provided by the embodiment of the present invention and it is not in the cluster, the infrastructure as a service platform is called to create a target container node corresponding to the target kernel version information to ensure the target accuracy of the target kernel version information so as to ensure the accuracy of subsequent scheduling.

[0144] In some embodiments, when there are multiple target kernel version information, after searching the corresponding target kernel version information in the open source container orchestration engine cluster corresponding to the target container image according to the kernel dependency information, the method further includes:

[0145] If some of the target kernel version information is stored in the open source container orchestration engine cluster, check whether some of the target kernel version information is called by other container nodes.

[0146] If so, the infrastructure as a service platform is called to create a target container node corresponding to the remaining target kernel version information; wherein the remaining target kernel version information is the target kernel version information other than the partial target kernel version information among the multiple target kernel version information.

[0147] Specifically, some of the target kernel version information among the multiple target kernel version information exists in the cluster. If the calling time is considered, it is necessary to check whether some of the target kernel version information here are all called by other container nodes. It can be understood that this is to take into account the different services carried in different container images, and the version information in the called container nodes may be the same and occupied by each other. At this time, if they are all called by other container nodes, the infrastructure as a service platform of step S14 is directly called to create the target container node corresponding to the remaining target kernel version information. Here, the remaining target kernel version information is called to ensure the scheduling efficiency of the target container image.

[0148] For example, there are three target kernel version information corresponding to the target container image (5.2, 4.19, 4.18), of which two (4.19, 4.18) are occupied by other container nodes in the cluster. The kernel version information of 5.2 of the IaaS platform is directly called to improve scheduling efficiency.

[0149] This embodiment provides that when part of the target kernel version information is stored in the cluster and is occupied by other container nodes, a call can be made to create the image based on the remaining target kernel version information to ensure that the current target container image avoids waiting for the time after the call of other container nodes is completed, thereby improving scheduling efficiency.

[0150] In some embodiments, when there are multiple target kernel version information, after searching the corresponding target kernel version information in the open source container orchestration engine cluster corresponding to the target container image according to the kernel dependency information, the method further includes:

[0151] If some of the target kernel version information is stored in the open source container orchestration engine cluster, check whether some of the target kernel version information is called by other container nodes.

[0152] If not, the target container node corresponding to the target kernel version information that has not been called by other container nodes is scheduled;

[0153] If so, obtain the business priorities of the target container image and the container images corresponding to other container nodes;

[0154] If the business priorities of the target container images are all higher than the business priorities of the container images corresponding to other container nodes, the infrastructure as a service platform is called to create target container nodes corresponding to the remaining target kernel version information; wherein the remaining target kernel version information is the target kernel version information other than some target kernel version information among the multiple target kernel version information;

[0155] If the service priority of the target container image is lower than the service priority of the container image corresponding to any other container node, return to the step of checking whether part of the target kernel version information is called by other container nodes according to the first preset time.

[0156] Specifically, in combination with the process defined in the above embodiment, when part of the target kernel version information is called by other container nodes, the business priorities of the target container image and the container images corresponding to the other container nodes are checked. Here, based on the priority level factor, if the business priority of the target container image is higher than the business priority of the container images corresponding to other container nodes, it means that the business carried by the target container image is more urgent, and the version information needs to be called urgently. Therefore, the calling infrastructure as a service platform in step S14 is directly performed to create the target container node corresponding to the remaining target kernel version information. The remaining target kernel version information is the target kernel version information other than part of the target kernel version information of multiple target kernel version information.

[0157] If the business priority of the target container image is lower than the business priority of the container image corresponding to any other container node, it means that the business carried by the current target container image is not urgent, and you can wait for the first preset time to check whether part of the target kernel version information is called by other container nodes, so as to wait for the target kernel version information that can be vacated after the call of other container nodes is completed for use.

[0158] For example, there are three target kernel version information corresponding to the target container image (5.2, 4.19, 4.18), of which two (4.19, 4.18) are occupied by other container nodes in the cluster. Check the business priority. If the priority of the target container image is high, call the 5.2 version information and use the creation process. If the priority is low, wait for the first preset time to check.

[0159] This embodiment provides a method for checking the relationship between each called container node and the business priority carried by the target container image when part of the target kernel version information is stored in the cluster and the part of the target kernel version information is occupied by other container nodes, determining the subsequent calling plan according to the priority factor, performing scheduling perception based on the business factors themselves, and ensuring the diversity and flexibility of scheduling.

[0160] In other embodiments, when there are multiple target kernel version information, after searching the corresponding target kernel version information in the open source container orchestration engine cluster corresponding to the target container image according to the kernel dependency information, the method further includes:

[0161] If some of the target kernel version information is stored in the open source container orchestration engine cluster, check whether some of the target kernel version information is called by other container nodes.

[0162] If not, the target container node corresponding to the target kernel version information that has not been called by other container nodes is scheduled;

[0163] If so, predict the calling time of other container nodes to call part of the target kernel version information;

[0164] Determine the remaining time for other container nodes to call part of the target kernel version information based on the current time and calling duration;

[0165] If the remaining duration is within the preset duration of the target container image, return to the step of checking whether part of the target kernel version information is called by other container nodes according to the third preset time, so as to check the status information of the target container node occupied by other container nodes, until it is not occupied by other container nodes, and enter the step of scheduling the target container node corresponding to the target kernel version information;

[0166] If the remaining duration is greater than the preset duration of the target container image, the infrastructure as a service platform is called to create a target container node corresponding to the remaining target kernel version information; wherein the remaining target kernel version information is the target kernel version information other than some target kernel version information among the multiple target kernel version information.

[0167] Specifically, in combination with the process defined in the above embodiment, when part of the target kernel version information is called by other container nodes, the business priority corresponding to the target container image and the container image corresponding to other container nodes is checked. Here, the call duration factor is taken into consideration, that is, the call duration of other container nodes calling part of the target kernel version information is predicted. The prediction here can be based on a model or through linear analysis. There is no limitation here, as long as the call duration of other container nodes calling part of the target kernel version information is obtained.

[0168] Determine the remaining time for other container nodes to call part of the target kernel version information based on the current time and the calling time. If the remaining time is within the preset time of the target container image, it means that the scheduling time of the target container image is tolerable, so according to the third preset time, return to the step of checking whether part of the target kernel version information is called by other container nodes to check the status information of the target container node occupied by other container nodes, until it is not occupied by other container nodes, and enter the step of scheduling the target container node corresponding to the target kernel version information to complete the scheduling.

[0169] If the remaining duration is greater than the preset duration of the target container image, it means that the scheduling time of the current target container image is urgent and the waiting process for other container nodes to be scheduled is long, so the infrastructure as a service platform is called to create the target container node corresponding to the remaining target kernel version information. The remaining target kernel version information is the target kernel version information other than some target kernel version information among multiple target kernel version information.

[0170] For example, there are three kernel information corresponding to the target container image (5.2, 4.19, 4.18), of which two (4.19, 4.18) are occupied by other container nodes in the cluster. Check the call duration to determine the remaining duration. If it is within the preset duration of the target container image, wait. If not, call the 5.2 version information and adopt the creation process.

[0171] This embodiment provides a method for checking the calling time factors of each called container node and the target container image when part of the target kernel version information is stored in the cluster and the part of the target kernel version information is occupied by other container nodes, determining the subsequent calling plan, performing scheduling perception based on the calling time factor, and ensuring the diversity and flexibility of scheduling.

[0172] In some embodiments, when there are multiple target kernel version information, and the target kernel version information is in the open source container orchestration engine cluster, the method further includes:

[0173] Check whether the target container node corresponding to the target kernel version information is occupied in the open source container orchestration engine cluster;

[0174] If occupied, return to the step of checking whether the target container node corresponding to the target kernel version information is occupied in the open source container orchestration engine cluster according to the second preset time, so as to check the status information of the target container node being occupied by other container nodes, until it is not occupied by other container nodes, and enter the step of scheduling the target container node corresponding to the target kernel version information;

[0175] If not occupied, the step of scheduling the target container node corresponding to the target kernel version information is entered.

[0176] Specifically, based on the fact that multiple target kernel versions are all in the cluster and are all occupied by other container nodes, it is necessary to wait for a second preset time to check whether the target container node corresponding to the target kernel version information is occupied in the open source container orchestration engine cluster. By waiting for the second preset time, the scheduling process is ensured to be orderly and congestion is avoided.

[0177] If not occupied, the step of scheduling the target container node corresponding to the target kernel version information is entered.

[0178] In this embodiment, a target container image stores multiple target kernel version information, and all of them are in the cluster, but the target kernel version information in the cluster is occupied by other container nodes, then check and wait according to the preset time.

[0179] For example, the target kernel version information corresponding to the target container image is 3 (5.2, 4.19, 4.18), of which 2 (4.19, 4.18) are occupied by other container nodes in the cluster, waiting time.

[0180] All target kernel version information provided in this embodiment is stored in the cluster. If it is called by other container nodes, a waiting time is selected to ensure the orderliness of the scheduling process and avoid congestion.

[0181] The above describes in detail various embodiments corresponding to the container-aware scheduling method. On this basis, the present invention also discloses a container-aware scheduling device corresponding to the above method. Figure 2 This is a structural diagram of a container-aware scheduling device provided by an embodiment of the present invention. Figure 2 As shown, the container-aware scheduling device includes:

[0182] The acquisition module 11 is used to acquire the target container image; analyze and process the target container image to determine the corresponding kernel dependency information;

[0183] A search module 12 is used to search for corresponding target kernel version information in the open source container orchestration engine cluster corresponding to the target container image according to the kernel dependency information;

[0184] A calling module 13 is used to call the infrastructure as a service platform to create a target container node corresponding to the target kernel version information if the target kernel version information is not in the open source container orchestration engine cluster, so as to schedule the target container node;

[0185] The scheduling module 14 is used to schedule the target container node corresponding to the target kernel version information if the target kernel version information is in the open source container orchestration engine cluster.

[0186] Since the embodiments of the device part correspond to the above embodiments, please refer to the description of the embodiments of the method part for the embodiments of the device part, and will not be repeated here.

[0187] For an introduction to a container-aware scheduling device provided by the present invention, please refer to the above method embodiment, which will not be described in detail herein. The device has the same beneficial effects as the above container-aware scheduling method.

[0188] Figure 3 A structural diagram of a container-aware scheduling device provided by an embodiment of the present invention is shown in FIG. Figure 3 As shown, the device comprises:

[0189] A memory 21, used for storing computer programs;

[0190] The processor 22 is configured to implement the steps of the container-aware scheduling method when executing a computer program.

[0191] The container-aware scheduling device provided in this embodiment may include, but is not limited to, a smart phone, a tablet computer, a laptop computer, or a desktop computer.

[0192] Among them, the processor 22 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 22 may be implemented in at least one hardware form of a digital signal processor (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 22 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 22 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 22 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.

[0193] The memory 21 may include one or more computer-readable storage media, which may be non-transitory. The memory 21 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 21 is at least used to store the following computer program 211, wherein, after the computer program is loaded and executed by the processor 22, it can implement the relevant steps of the container-aware scheduling method disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 21 may also include an operating system 212 and data 213, etc., and the storage method may be short-term storage or permanent storage. Among them, the operating system 212 may include Windows, Unix, Linux, etc. Data 213 may include, but is not limited to, data involved in the container-aware scheduling method, etc.

[0194] In some embodiments, the container-aware scheduling device may further include a display screen 23 , an input / output interface 24 , a communication interface 25 , a power supply 26 , and a communication bus 27 .

[0195] Those skilled in the art can understand that Figure 3 The structure shown in the figure does not constitute a limitation on the container-aware scheduling device, and may include more or fewer components than those shown in the figure.

[0196] The processor 22 implements the container-aware scheduling method provided by any of the above embodiments by calling instructions stored in the memory 21.

[0197] For an introduction to a container-aware scheduling device provided by the present invention, please refer to the above method embodiment, which will not be described in detail herein. The device has the same beneficial effects as the above container-aware scheduling method.

[0198] Furthermore, the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by the processor 22, the steps of the container-aware scheduling method described above are implemented.

[0199] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.

[0200] For an introduction to a computer-readable storage medium provided by the present invention, please refer to the above method embodiment, which will not be described in detail herein. The present invention has the same beneficial effects as the above container-aware scheduling method.

[0201] Furthermore, the present invention also provides a computer program product, including a computer program / instruction, which implements the steps of the container-aware scheduling method when executed by a processor.

[0202] For an introduction to a computer program product provided by the present invention, please refer to the above method embodiment, which will not be described in detail herein. The computer program product has the same beneficial effects as the above container-aware scheduling method.

[0203] Figure 4 A schematic diagram of a container-aware scheduling scenario provided by an embodiment of the present invention is shown in FIG. Figure 4 As shown, the container image is analyzed to determine the kernel dependency information, and then the kernel node is managed through the kernel version management tool. The kernel scheduling module identifies the corresponding target kernel version information based on the kernel dependency information. When the host creation module does not have the required target kernel version information in the current cluster (open source container orchestration engine cluster), the kernel version information in the figure is represented by the host node, and the IaaS platform (Infrastructure as a Service platform) is called to call the target kernel version information. The called target kernel version information is added to the cluster for scheduling through the cluster management module. Among them, the target kernel version information of the open source container orchestration engine cluster specifically refers to Figure 4 4.18, 4.19, 5.10, etc. of each node in the target kernel version list. Only part of the target kernel version information is shown here.

[0204] The above is a detailed introduction to a container-aware scheduling method, product, device and medium provided by the present invention. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can refer to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can refer to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the present invention.

[0205] It should also be noted that, in this specification, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

Claims

1. A container-aware scheduling method, characterized in that: include: Get the target container image; Analyze and process the target container image to determine corresponding kernel dependency information; According to the kernel dependency information, searching for corresponding target kernel version information in the open source container orchestration engine cluster corresponding to the target container image; If the target kernel version information is not in the open source container orchestration engine cluster, calling the infrastructure as a service platform to create a target container node corresponding to the target kernel version information, so as to schedule the target container node; If the target kernel version information is in the open source container orchestration engine cluster, the target container node corresponding to the target kernel version information is scheduled.

2. The container-aware scheduling method according to claim 1, characterized in that: The searching corresponding target kernel version information in the open source container orchestration engine cluster corresponding to the target container image according to the kernel dependency information includes: Establishing a database in the open source container orchestration engine cluster in advance; Establishing a mapping relationship between the kernel version information stored in the open source container orchestration engine cluster and the container node; The kernel dependency information is searched according to the mapping relationship to determine the corresponding target kernel version information.

3. The container-aware scheduling method according to claim 1 or 2, characterized in that: Before calling the infrastructure as a service platform to create a target container node corresponding to the target kernel version information, the method further includes: Pre-create kernel version information corresponding to each container node on the calling infrastructure as a service platform; An operating system corresponding to each kernel version information is established in each container node.

4. The container-aware scheduling method according to claim 1, characterized in that: After searching the open source container orchestration engine cluster corresponding to the target container image according to the kernel dependency information for the corresponding target kernel version information, the method further includes: If there are multiple target kernel version information, and some of them exist in the open source container orchestration engine cluster, then select the target kernel version information existing in the open source container orchestration engine cluster; If the number of target kernel version information existing in the open source container orchestration engine cluster is selected to be multiple, select any one of the target kernel version information existing in the open source container orchestration engine cluster; Any target container node corresponding to the target kernel version information of the open source container orchestration engine cluster is selected for scheduling.

5. The container-aware scheduling method according to claim 1, characterized in that: After searching the open source container orchestration engine cluster corresponding to the target container image according to the kernel dependency information for the corresponding target kernel version information, the method further includes: If the number of the target kernel version information is one and it is not in the open source container orchestration engine cluster, the infrastructure as a service platform is called to create a target container node corresponding to the target kernel version information to facilitate scheduling of the target container node.

6. The container-aware scheduling method according to claim 1, characterized in that: When there are multiple target kernel version information, after searching the corresponding target kernel version information in the open source container orchestration engine cluster corresponding to the target container image according to the kernel dependency information, the method further includes: If some of the target kernel version information is stored in the open source container orchestration engine cluster, check whether some of the target kernel version information is called by other container nodes. If so, the infrastructure as a service platform is called to create a target container node corresponding to the remaining target kernel version information; wherein the remaining target kernel version information is the target kernel version information of multiple target kernel version information excluding the partial target kernel version information.

7. The container-aware scheduling method according to claim 1, characterized in that: When there are multiple target kernel version information, after searching the corresponding target kernel version information in the open source container orchestration engine cluster corresponding to the target container image according to the kernel dependency information, the method further includes: If some of the target kernel version information is stored in the open source container orchestration engine cluster, check whether some of the target kernel version information is called by other container nodes. If not, the target container node corresponding to the target kernel version information that has not been called by other container nodes is scheduled; If yes, obtain the service priority of the target container image and the container images corresponding to the other container nodes; If the business priorities of the target container images are all higher than the business priorities of the container images corresponding to the other container nodes, then calling the infrastructure as a service platform to create target container nodes corresponding to the remaining target kernel version information; wherein the remaining target kernel version information is the target kernel version information of the multiple target kernel version information excluding the partial target kernel version information; If the business priority of the target container image is lower than the business priority of any container image corresponding to the other container nodes, return to the step of checking whether part of the target kernel version information is called by other container nodes according to the first preset time.

8. The container-aware scheduling method according to claim 1, characterized in that: When there are multiple target kernel version information, and the target kernel version information is in the open source container orchestration engine cluster, the method further includes: Check whether the target container node corresponding to the target kernel version information is occupied in the open source container orchestration engine cluster; If occupied, returning to the step of checking whether the target container node corresponding to the target kernel version information is occupied in the open source container orchestration engine cluster according to the second preset time, to check the status information of the target container node being occupied by other container nodes, until it is not occupied by other container nodes, and entering the step of scheduling the target container node corresponding to the target kernel version information; If not occupied, the step of scheduling the target container node corresponding to the target kernel version information is entered.

9. The container-aware scheduling method according to claim 1, characterized in that: The analyzing and processing the target container image to determine the corresponding kernel dependency information includes: The target container image is analyzed and processed by a diving tool and / or a capture tool to determine corresponding kernel dependency information.

10. The container-aware scheduling method according to claim 9, characterized in that: The target container image is analyzed and processed by a diving tool to determine the corresponding kernel dependency information, including: Obtain the name information of the target container image; Running the diving tool to construct an image file corresponding to the name information; Check the change information corresponding to the image layer file in the image file; wherein the change information at least includes system files, library files and configuration files; Kernel dependency information corresponding to the target container image is determined according to the change information.

11. The container-aware scheduling method according to claim 9, characterized in that: Analyzing and processing the target container image by a capture tool to determine corresponding kernel dependency information includes: Running the capture tool to export corresponding name information in the target container image; Obtain client version information to which the target container image belongs; Outputting redirection information corresponding to the redirection according to the client version information; wherein the redirection information at least includes a file system, an environment variable and a startup command; The kernel dependency information is identified according to the redirection information.

12. The container-aware scheduling method according to claim 9, characterized in that: The target container image is analyzed and processed by the diving tool and the capture tool to determine the corresponding kernel dependency information, including: Obtain the name information of the target container image; Running the diving tool to construct an image file corresponding to the name information; Check the change information corresponding to the image layer file in the image file; wherein the change information at least includes system files, library files and configuration files; Determine first kernel dependency information corresponding to the target container image according to the change information; Running the capture tool to export corresponding name information in the target container image; Obtain client version information to which the target container image belongs; Outputting redirection information corresponding to the redirection according to the client version information; wherein the redirection information at least includes a file system, an environment variable and a startup command; identifying second kernel dependency information according to the redirection information; Final kernel dependency information is determined according to the first kernel dependency information and the second kernel dependency information.

13. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the steps of the container-aware scheduling method according to any one of claims 1 to 12 are implemented.

14. A container-aware scheduling device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the container-aware scheduling method according to any one of claims 1 to 12 when executing the computer program.

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the container-aware scheduling method according to any one of claims 1 to 12 are implemented.