A container cluster application resource scheduling method, device and medium

By collecting application resource requirements and business-related information in the container cluster, determining resource consumption and business impact weight values, and configuring refined resource scheduling strategies, we solve the problems of resource waste and service quality degradation caused by traditional resource allocation strategies, and achieve more efficiency. Resource utilization and business priority guarantee.

CN118426936BActive Publication Date: 2024-09-10INSPUR GENERSOFT CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410888299.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-09-10
Estimated Expiration
2044-07-04

AI Technical Summary

Technical Problem

In container clusters, traditional resource allocation strategies can easily lead to resource waste and reduced service quality. Especially in situations of load imbalance or resource shortage, it is difficult to effectively utilize resources, ensure business continuity, and improve system performance.

Method used

The application management module collects the resource requirements and business-related information of the application, and combines the system modeling module to obtain cluster environment information. The policy analysis module determines the resource consumption weight value and business impact weight value, configures refined resource scheduling strategies, and ensures resource allocation. Flexibility and business priorities.

Benefits of technology

It improves resource utilization efficiency, optimizes service quality, ensures business continuity, improves system performance and stability, and avoids resource waste and business interruption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118426936B
    Figure CN118426936B
Patent Text Reader

Abstract

The present invention relates to the field of computer technology, and is used to solve the problem that in the process of container cluster application deployment, traditional container cluster scheduling usually adopts a simple resource allocation strategy, which easily leads to resource waste and service quality degradation. The present invention discloses a container cluster application resource scheduling method, device and medium, including: collecting relevant information of each application to be installed, and sending the relevant information of each application to be installed to a system modeling module; obtaining cluster environment information, and modeling the system according to the cluster environment information and the relevant information of each application to be installed; determining the weight value of each application to be installed based on the cluster environment information and / or the relevant information of each application to be installed, the weight value including the resource consumption weight value and the business impact weight value; deploying each application to be installed in the container cluster, and configuring the resource scheduling strategy of each application to be installed based on the weight value of each application to be installed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of container clusters, and in particular to a method, device and medium for scheduling application resources of a container cluster. Background Art

[0002] With the rapid development of information technology, microservice architecture has gradually become the mainstream choice for enterprises to build complex business systems. Microservice architecture splits large applications into multiple independent and deployable services. Each service can be independently developed, tested and deployed, making the system more flexible and scalable. The emergence of containerization technology has further promoted the development of microservice architecture. Containers are a lightweight virtualization technology that can encapsulate applications and their dependencies in an independent operating environment, enabling rapid deployment, migration and expansion of applications.

[0003] Due to the advantages of microservice architecture and containerization technology, more and more enterprises are deploying their businesses in container clusters. Container clusters are usually composed of multiple servers and are managed and scheduled through container orchestration tools. However, how to achieve efficient resource utilization and service quality assurance in container clusters has become a challenge for enterprises.

[0004] In the process of container cluster application deployment, traditional container cluster scheduling usually adopts simple resource allocation strategies, such as average allocation or random allocation according to resource demand. This method easily leads to resource waste and reduced service quality, especially in the case of load imbalance or resource shortage. Summary of the invention

[0005] The present invention provides a container cluster application resource scheduling method, device and medium, which are used to solve the technical problems raised by the background technology.

[0006] The present invention adopts the following technical solutions:

[0007] The present invention provides a container cluster application resource scheduling method, the method comprising:

[0008] The application management module is used to collect relevant information of each application to be installed, and send the relevant information of each application to be installed to the system modeling module, wherein the relevant information of each application to be installed includes resource demand information and business association information of each application to be installed;

[0009] The system modeling module is used to obtain cluster environment information, and the system is modeled according to the cluster environment information and the relevant information of each application to be installed, wherein the cluster environment information includes resource performance information of the node server;

[0010] Determine, by a policy analysis module, a weight value of each application to be installed based on the cluster environment information and / or relevant information of each application to be installed, wherein the weight value includes a resource consumption weight value and a business impact weight value;

[0011] The applications to be installed are deployed in the container cluster through a server deployment module, and resource scheduling strategies for the applications to be installed are configured based on weight values ​​of the applications to be installed.

[0012] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:

[0013] Improve resource utilization efficiency: By collecting resource demand information of each application to be installed, resources can be allocated more accurately to avoid resource waste.

[0014] Optimize service quality: Configuring resource scheduling strategies based on resource consumption weights and business impact weights can ensure that key businesses obtain sufficient resources, thereby improving service quality.

[0015] Flexible resource allocation: Equal or random allocation of resource requirements may lead to resource waste or reduced service quality. This method allocates resources based on precise weight values ​​and is more flexible.

[0016] Ensure business continuity: Considering business-related information and business impact weight values ​​helps ensure business continuity and reduce business interruptions caused by improper resource allocation.

[0017] Improve system performance: Reasonable resource scheduling can improve the overall performance of the system and improve the operating efficiency of the container cluster.

[0018] Further, if the weight value is the business impact weight value, the determining the weight value of each application to be installed based on the cluster environment information and / or the relevant information of each application to be installed by the policy analysis module includes:

[0019] The business impact weight value of each application to be installed is determined by a policy analysis module based on the business association information of each application to be installed.

[0020] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:

[0021] Prioritize key businesses: The business impact weight of each application to be installed can be determined based on business association information, so that key businesses can be given higher priority in resource allocation and scheduling.

[0022] Ensure business continuity: By considering the business impact weight value, you can better ensure business continuity and reduce the risk of business interruption caused by insufficient resources.

[0023] Adapt to business changes: Determine weight values ​​based on business-related information so that scheduling strategies can adapt to business changes and developments and flexibly adjust resource allocation.

[0024] Improve system stability: Ensuring that key businesses have sufficient resources helps improve the stability and reliability of the entire system.

[0025] Furthermore, the determining, by the policy analysis module, the service impact weight value of each application to be installed based on the service association information of each application to be installed includes:

[0026] Analyze the business association information of each application to be installed to determine the dependency relationship between the applications to be installed;

[0027] Determining the dependency degree of each of the applications to be installed according to the dependency relationship between the applications to be installed;

[0028] According to the dependency degree of each of the applications to be installed, a business impact weight value of each of the applications to be installed is determined.

[0029] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:

[0030] Improve system reliability: Determine the business impact weight value based on the degree of dependency to ensure that key dependent applications have sufficient resources and improve system reliability.

[0031] Reduce risks: Understanding the dependencies between applications helps reduce risks and prevents problems with a single application from affecting the entire business system.

[0032] Reasonable resource allocation: Allocate resources based on the degree of dependency so that resources flow more reasonably to applications that have a greater impact on the business.

[0033] Improve service quality: Ensure the stable operation of important businesses, improve service quality, and meet users' business needs.

[0034] Further, if the weight value is the resource consumption weight value, the determining the weight value of each application to be installed based on the cluster environment information and / or the relevant information of each application to be installed by the policy analysis module includes:

[0035] The resource consumption weight value of each application to be installed is determined by a policy analysis module based on the cluster environment information and the resource demand information of each application to be installed.

[0036] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:

[0037] Improve resource utilization efficiency: Determine the resource consumption weight value based on the cluster environment information and the resource demand information of each application to be installed, so as to allocate resources more accurately, avoid resource waste, and improve resource utilization.

[0038] Optimize system performance: Ensure that resources are reasonably allocated to each application, optimize system performance, and improve the operating efficiency of the entire container cluster.

[0039] Adapt to dynamic changes: When the cluster environment or application resource requirements change, the weight value can be adjusted accordingly, making resource allocation more flexible and adaptable to the dynamic environment.

[0040] Further, the determining of the resource consumption weight value of each application to be installed based on the cluster environment information and the resource demand information of each application to be installed by the policy analysis module includes:

[0041] Obtain resource performance information of the node server and resource requirement information of each application to be installed, wherein the resource performance information includes performance information of multiple resources;

[0042] Determining total demand information of various resources of each application to be installed according to the resource demand information of each application to be installed;

[0043] Determine resource differences between the various resource performance information of the node server and the total resource demand information corresponding to the applications to be installed;

[0044] Determine the resource corresponding to the lowest resource difference as the scarce resource of the node server, and determine resource performance information of the scarce resource and demand information of the scarce resource of each application to be installed;

[0045] The resource consumption weight value of each application to be installed is determined according to the resource performance information of the scarce resource and the demand information of the scarce resource of each application to be installed.

[0046] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:

[0047] Optimal resource allocation: Determining weight values ​​based on the performance of scarce resources and the demand information of each application to be installed can better achieve optimal resource allocation and make resource allocation more efficient.

[0048] Improve resource utilization: Reasonable determination of resource consumption weight values ​​can help improve the utilization of scarce resources and reduce resource waste.

[0049] Balanced resource allocation: By determining the resource consumption weight value, the resource requirements of different applications can be balanced to prevent some applications from over-occupying scarce resources.

[0050] Furthermore, configuring the resource scheduling strategy of each application to be installed based on the weight value of each application to be installed includes:

[0051] Adjust the resource consumption weight value according to the business impact weight value to obtain the adjusted adaptation resource consumption weight value of each application to be installed;

[0052] According to the adapted resource consumption weight value, a resource scheduling strategy for each application to be installed is configured.

[0053] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:

[0054] Optimize resource allocation: Adjust resource consumption weights according to business impact weights to more accurately reflect the actual resource demands of each application to be installed, thereby achieving more optimized resource allocation.

[0055] Improve business performance: By adjusting the adaptive resource consumption weight value and configuring the resource scheduling policy, you can ensure that key businesses have sufficient resources, thereby improving business performance and user experience.

[0056] Enhance system stability: Reasonable resource scheduling strategies help prevent resource competition and conflicts, enhance system stability, and reduce system failures or anomalies caused by insufficient resources.

[0057] Improve resource utilization: Allocate resources according to the actual needs of the application, make full use of limited resources, improve overall resource utilization, and avoid resource waste.

[0058] Further, the adjusting the resource consumption weight value according to the service impact weight value to obtain the adjusted adaptation resource consumption weight value of each application to be installed includes:

[0059] The number of copies of the corresponding application to be installed is increased or the resource weight is increased according to the business impact weight value, so as to obtain the adjusted adaptation resource consumption weight value of each application to be installed.

[0060] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:

[0061] Improve the performance of key applications: By increasing the number of replicas or raising the resource weight, key applications can obtain more resources, thereby improving their performance and responsiveness.

[0062] Ensure business continuity: Increasing the number of replicas can improve application availability, reduce the risk of single point failures, and ensure business continuity.

[0063] Optimize resource allocation: Adjust according to the business impact weight value so that resources can be more accurately allocated to applications that have a greater impact on the business, thereby improving resource utilization.

[0064] Adapt to business changes: When business needs change, the resource consumption weight value can be flexibly adjusted to ensure reasonable allocation of resources and stable operation of applications.

[0065] Furthermore, the resource performance information of the node server includes the CPU index and memory capacity of the node server; and the resource demand information of each application to be installed includes the CPU index occupancy and memory occupancy of each application to be installed.

[0066] The present invention provides a container cluster application resource scheduling device, comprising:

[0067] at least one processor; and,

[0068] a memory communicatively connected to the at least one processor; wherein,

[0069] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:

[0070] The application management module is used to collect relevant information of each application to be installed, and send the relevant information of each application to be installed to the system modeling module, wherein the relevant information of each application to be installed includes resource demand information and business association information of each application to be installed;

[0071] The system modeling module is used to obtain cluster environment information, and the system is modeled according to the cluster environment information and the relevant information of each application to be installed, wherein the cluster environment information includes resource performance information of the node server;

[0072] Determine, by a policy analysis module, a weight value of each application to be installed based on the cluster environment information and / or relevant information of each application to be installed, wherein the weight value includes a resource consumption weight value and a business impact weight value;

[0073] The applications to be installed are deployed in the container cluster through a server deployment module, and resource scheduling strategies for the applications to be installed are configured based on weight values ​​of the applications to be installed.

[0074] The present invention provides a non-volatile computer storage medium storing computer executable instructions, which can achieve the following when executed by a computer:

[0075] The application management module is used to collect relevant information of each application to be installed, and send the relevant information of each application to be installed to the system modeling module, wherein the relevant information of each application to be installed includes resource demand information and business association information of each application to be installed;

[0076] The system modeling module is used to obtain cluster environment information, and the system is modeled according to the cluster environment information and the relevant information of each application to be installed, wherein the cluster environment information includes resource performance information of the node server;

[0077] Determine, by a policy analysis module, a weight value of each application to be installed based on the cluster environment information and / or relevant information of each application to be installed, wherein the weight value includes a resource consumption weight value and a business impact weight value;

[0078] The applications to be installed are deployed in the container cluster through a server deployment module, and resource scheduling strategies for the applications to be installed are configured based on weight values ​​of the applications to be installed.

[0079] At least one of the above technical solutions adopted in the embodiments of this specification can achieve the following beneficial effects:

[0080] Improve resource utilization efficiency: By collecting resource demand information of each application to be installed, resources can be allocated more accurately to avoid resource waste.

[0081] Optimize service quality: Configuring resource scheduling strategies based on resource consumption weights and business impact weights can ensure that key businesses obtain sufficient resources, thereby improving service quality.

[0082] Flexible resource allocation: Equal or random allocation of resource requirements may lead to resource waste or reduced service quality. This method allocates resources based on precise weight values ​​and is more flexible.

[0083] Ensure business continuity: Considering business-related information and business impact weight values ​​helps ensure business continuity and reduce business interruptions caused by improper resource allocation.

[0084] Improve system performance: Reasonable resource scheduling can improve the overall performance of the system and improve the operating efficiency of the container cluster. BRIEF DESCRIPTION OF THE DRAWINGS

[0085] In order to more clearly illustrate the technical solutions in the embodiments of this specification or the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art description. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. In the drawings:

[0086] Figure 1 A flowchart of a container cluster application resource scheduling method provided for one or more embodiments of this specification;

[0087] Figure 2 A schematic diagram of the structure of a container cluster application resource scheduling device provided in one or more embodiments of this specification. DETAILED DESCRIPTION

[0088] The embodiments of this specification provide a method, device and medium for scheduling resource of container cluster application.

[0089] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this specification.

[0090] Figure 1 A schematic diagram of a process flow of a container cluster application resource scheduling method provided in one or more embodiments of this specification, which can be executed by a container cluster application resource scheduling system. Certain input parameters or intermediate results in the process allow manual intervention and adjustment to help improve accuracy.

[0091] The method steps of the embodiment of this specification are as follows:

[0092] S101, collecting relevant information of each application to be installed through an application management module, and sending the relevant information of each application to be installed to a system modeling module, wherein the relevant information of each application to be installed includes resource demand information and business association information of each application to be installed.

[0093] In the examples of this specification, the above contents can be implemented by the following specific implementation schemes:

[0094] Design and development of application management module:

[0095] 1. Create an application management module to collect relevant information about the applications to be installed.

[0096] 2. Design data structures to store resource demand information and business-related information.

[0097] 3. Provide an interface or interface for users to input or import information of the application to be installed.

[0098] Information collection process:

[0099] 1. The user provides detailed information about each application to be installed through the application management module, including resource requirement information (such as CPU usage, memory usage, storage usage, etc.) and business association information (such as dependencies with other applications, business processes, etc.).

[0100] 2. The application management module verifies and organizes the input information to ensure its accuracy and completeness.

[0101] Information is sent to the System Modeling module:

[0102] 1. Establish a communication connection with the system modeling module.

[0103] 2. Send the collected information about each application to be installed to the system modeling module in an appropriate format.

[0104] 3. Data interfaces, message queues or other communication methods can be used to achieve information transmission.

[0105] S102, obtaining cluster environment information through the system modeling module, and modeling the system according to the cluster environment information and relevant information of each application to be installed, wherein the cluster environment information includes resource performance information of the node server.

[0106] Design and development of system modeling modules:

[0107] 1. Create a system modeling module to obtain cluster environment information and relevant information of each application to be installed.

[0108] 2. Define a data structure to store cluster environment information and related information of each application to be installed.

[0109] 3. Design algorithms and models to model the system based on the information obtained.

[0110] Collection of cluster environment information: Develop interfaces or use existing tools to obtain resource performance information of each node server from the cluster environment, such as CPU indicators, memory capacity, storage capacity, network bandwidth, etc.

[0111] Processing of application-related information:

[0112] 1. Receive relevant information of each application to be installed from the application management module, including resource requirement information and business association information.

[0113] 2. Analyze and classify the resource requirements of the application to match them with the resource performance of the node server.

[0114] System modeling algorithms and models:

[0115] 1. Design system modeling algorithms and models based on the received cluster environment information and application-related information.

[0116] 2. The model can consider factors such as resource utilization, load balancing, performance optimization, fault tolerance, etc.

[0117] 3. Use mathematical modeling, machine learning, or other appropriate techniques to build a system model.

[0118] Implementation of system modeling:

[0119] 1. Use the designed algorithms and models to model and analyze the system.

[0120] 2. Based on the simulation results, evaluate the cluster environment's support capabilities for each application to be installed.

[0121] Integration with other modules:

[0122] 1. Integrate the system modeling module with the application management module to ensure smooth interaction and update of information.

[0123] 2. Collaborate with the resource scheduling module or other related modules to allocate and optimize resources based on the modeling results.

[0124] S103: Determine, by a policy analysis module, a weight value of each application to be installed based on the cluster environment information and / or relevant information of each application to be installed, wherein the weight value includes a resource consumption weight value and a business impact weight value.

[0125] In the embodiment of the present specification, if the weight value is the business impact weight value, the business impact weight value of each application to be installed may be determined by a policy analysis module based on the business association information of each application to be installed.

[0126] It should be noted that a policy analysis algorithm capable of processing business association information can be designed to calculate the business impact weight of each application to be installed based on the input business association information. The relative importance of each application to be installed is determined based on the size of the business impact weight of each application to be installed.

[0127] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:

[0128] Prioritize key businesses: The business impact weight of each application to be installed can be determined based on business association information, so that key businesses can be given higher priority in resource allocation and scheduling.

[0129] Ensure business continuity: By considering the business impact weight value, you can better ensure business continuity and reduce the risk of business interruption caused by insufficient resources.

[0130] Adapt to business changes: Determine weight values ​​based on business-related information so that scheduling strategies can adapt to business changes and developments and flexibly adjust resource allocation.

[0131] Improve system stability: Ensuring that key businesses have sufficient resources helps improve the stability and reliability of the entire system.

[0132] Furthermore, when the policy analysis module determines the business impact weight value of each application to be installed based on the business association information of each application to be installed, the business association information of each application to be installed can be analyzed to determine the dependency relationship between the applications to be installed; the degree of dependency of each application to be installed can be determined based on the dependency relationship between the applications to be installed; and the business impact weight value of each application to be installed can be determined based on the degree of dependency of each application to be installed.

[0133] It should be noted that the above-mentioned determination of the service impact weight value of each application to be installed may be implemented through the following specific implementation scheme:

[0134] Analyze business-related information:

[0135] 1. Collect relevant business documents and information for each application to be installed, including but not limited to business processes, system architecture, data flow, etc.

[0136] 2. Conduct in-depth analysis on the collected business-related information to find out the dependencies between the applications to be installed.

[0137] Identify dependencies:

[0138] 1. According to the business process and data flow, determine the direct dependency relationship between the applications to be installed, that is, whether the operation of a certain application depends on the existence and normal operation of other applications.

[0139] 2. Analyze indirect dependencies, that is, whether the operation of a certain application will indirectly affect the performance or functionality of other applications.

[0140] Determine the level of dependency:

[0141] 1. Evaluate the identified dependencies and determine the degree of dependency between the applications to be installed, such as strong dependency, weak dependency, etc.

[0142] 2. The degree of dependence can be determined by:

[0143] (1) Analyze the sequence and critical path of each application in the business process;

[0144] (2) Consider the transmission and sharing of data between applications;

[0145] (3) Evaluate the impact scope and recovery time of failures between applications.

[0146] Determine the business impact weight value:

[0147] 1. According to the dependency level of each application to be installed, assign a corresponding business impact weight value to each application.

[0148] 2. The business impact weight value can be set quantitatively or qualitatively according to the actual situation, for example:

[0149] (1) Applications with strong dependencies can be assigned higher weight values;

[0150] (2) Applications that have a greater impact on key business processes can be assigned a higher weight value;

[0151] (3) Applications with important data processing functions can be assigned higher weight values.

[0152] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:

[0153] Improve system reliability: Determine the business impact weight value based on the degree of dependency to ensure that key dependent applications have sufficient resources and improve system reliability.

[0154] Reduce risks: Understanding the dependencies between applications helps reduce risks and prevents problems with a single application from affecting the entire business system.

[0155] Reasonable resource allocation: Allocate resources based on the degree of dependency so that resources flow more reasonably to applications that have a greater impact on the business.

[0156] Improve service quality: Ensure the stable operation of important businesses, improve service quality, and meet users' business needs.

[0157] Further, if the weight value is the resource consumption weight value, the resource consumption weight value of each application to be installed may be determined by a policy analysis module based on the cluster environment information and the resource demand information of each application to be installed.

[0158] It should be noted that the resource consumption weight value of each application to be installed can be determined by the following specific implementation scheme:

[0159] Collect cluster environment information and resource requirement information of each application to be installed:

[0160] 1. Cluster environment information: including but not limited to the CPU indicators, memory capacity, storage capacity, etc. of the node server.

[0161] 2. Resource demand information: resource requirements of each application to be installed, such as CPU usage, memory usage, storage usage, etc.

[0162] Design strategy analysis module:

[0163] 1. The policy analysis module will analyze and calculate based on the collected information to determine the resource consumption weight value of each application to be installed.

[0164] 2. The design of the module may consider the use of mathematical models, algorithms or data analysis techniques to achieve accurate weight calculation.

[0165] Weight calculation method:

[0166] 1. You can use one of the following methods or a combination of them to determine the resource consumption weight value:

[0167] (1) Based on resource demand: According to the resource demand information of each application, the corresponding weight value is directly assigned. For example, a higher weight is assigned to an application with higher resource demand.

[0168] (2) Consider the cluster environment: Adjust the weight of the application based on the cluster environment information, such as the existing resource utilization, load conditions, etc. For example, in a cluster with limited resources, reduce the weight of applications with greater resource requirements.

[0169] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:

[0170] Improve resource utilization efficiency: Determine the resource consumption weight value based on the cluster environment information and the resource demand information of each application to be installed, so as to allocate resources more accurately, avoid resource waste, and improve resource utilization.

[0171] Optimize system performance: Ensure that resources are reasonably allocated to each application, optimize system performance, and improve the operating efficiency of the entire container cluster.

[0172] Adapt to dynamic changes: When the cluster environment or application resource requirements change, the weight value can be adjusted accordingly, making resource allocation more flexible and adaptable to the dynamic environment.

[0173] Furthermore, when the policy analysis module determines the resource consumption weight value of each application to be installed based on the cluster environment information and the resource demand information of each application to be installed, the resource performance information of the node server and the resource demand information of each application to be installed can be obtained, and the resource performance information includes performance information of multiple resources; based on the resource demand information of each application to be installed, the total demand information of various resources of the applications to be installed is determined; the resource difference between the multiple resource performance information of the node server and the total demand information of the corresponding resources of the applications to be installed is determined; the resource corresponding to the lowest resource difference is determined as the scarce resource of the node server, and the resource performance information of the scarce resource and the demand information of the scarce resource of each application to be installed are determined; based on the resource performance information of the scarce resource and the demand information of the scarce resource of each application to be installed, the resource consumption weight value of each application to be installed is determined.

[0174] It should be noted that, when determining the resource consumption weight value of each application to be installed based on the resource performance information of the scarce resources and the demand information of the scarce resources of each application to be installed, a suitable algorithm can be selected to determine the resource consumption weight value based on the collected data, for example, the weight value is allocated based on the proportion of the application's demand for the scarce resources. According to the selected algorithm, the resource consumption weight value of each application to be installed is calculated. For example, if the demand for the scarce resources by application A accounts for 30% of the total demand, the weight value of application A can be set to 0.3.

[0175] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:

[0176] Optimal resource allocation: Determining weight values ​​based on the performance of scarce resources and the demand information of each application to be installed can better achieve optimal resource allocation and make resource allocation more efficient.

[0177] Improve resource utilization: Reasonable determination of resource consumption weight values ​​can help improve the utilization of scarce resources and reduce resource waste.

[0178] Balanced resource allocation: By determining the resource consumption weight value, the resource requirements of different applications can be balanced to prevent some applications from over-occupying scarce resources.

[0179] S104: deploy the applications to be installed in the container cluster through a server deployment module, and configure a resource scheduling strategy for the applications to be installed based on the weight values ​​of the applications to be installed.

[0180] In the embodiments of this specification, the deployment of each application to be installed can be implemented by the following specific implementation scheme:

[0181] Server preparation:

[0182] 1. Make sure the server has the required container runtime environment installed, such as Docker or Kubernetes.

[0183] 2. Configure the server network to ensure that the server can communicate with the container cluster.

[0184] Application packaging:

[0185] 1. Package each application to be installed as a container image. You can use Dockerfile or other container building tools to create images.

[0186] 2. Ensure that the image contains the application, dependencies, and runtime environment.

[0187] Configuration management: Create or obtain configuration files to define the deployment configuration of applications in the container cluster, such as the number of containers, resource limits, network configuration, etc.

[0188] Container cluster configuration:

[0189] 1. Connect the server to the container cluster, either through the cluster management tool or the API.

[0190] 2. Create corresponding namespaces or resource quotas in the cluster to isolate the deployment of the applications to be installed.

[0191] Deploy the application:

[0192] 1. Use the server deployment module to deploy the packaged container image to the container cluster.

[0193] 2. Deploy the application on the specified node according to the settings in the configuration file, and set the resource limits and network configuration of the container.

[0194] 3. You can use automated deployment tools or scripts to execute the deployment process to improve efficiency and accuracy.

[0195] Furthermore, when configuring the resource scheduling strategy of each application to be installed based on the weight value of each application to be installed, the resource consumption weight value can be adjusted according to the business impact weight value to obtain the adjusted adapted resource consumption weight value of each application to be installed; and the resource scheduling strategy of each application to be installed is configured according to the adapted resource consumption weight value.

[0196] In the embodiments of this specification, the resource scheduling strategy for configuring each application to be installed can be implemented by the following specific implementation scheme:

[0197] Adjust resource consumption weight value: adjust the resource consumption weight value according to the business impact weight value. You can use an algorithm or rule to determine the magnitude of the adjustment. For example, you can multiply the business impact weight value by a constant and then add it to the original resource consumption weight value.

[0198] Obtaining the adapted resource consumption weight value: using the adjusted resource consumption weight value as the adapted resource consumption weight value of each application to be installed.

[0199] Configure resource scheduling strategy: Configure resource scheduling strategy according to the weight value of adaptive resource consumption. This can be achieved by setting parameters, writing rules, or using specific scheduling tools. For example, resources can be allocated according to weight values, giving more resources to applications with higher weight values. Or, priorities can be set so that applications with higher weight values ​​have higher priority when competing for resources.

[0200] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:

[0201] Optimize resource allocation: Adjust resource consumption weights according to business impact weights to more accurately reflect the actual resource demands of each application to be installed, thereby achieving more optimized resource allocation.

[0202] Improve business performance: By adjusting the adaptive resource consumption weight value and configuring the resource scheduling policy, you can ensure that key businesses have sufficient resources, thereby improving business performance and user experience.

[0203] Enhance system stability: Reasonable resource scheduling strategies help prevent resource competition and conflicts, enhance system stability, and reduce system failures or anomalies caused by insufficient resources.

[0204] Improve resource utilization: Allocate resources according to the actual needs of the application, make full use of limited resources, improve overall resource utilization, and avoid resource waste.

[0205] Furthermore, when adjusting the resource consumption weight value according to the business impact weight value to obtain the adjusted adaptive resource consumption weight value of each application to be installed, the number of copies of the corresponding application to be installed can be increased or the resource weight can be increased according to the business impact weight value to obtain the adjusted adaptive resource consumption weight value of each application to be installed.

[0206] It should be noted that the above-mentioned obtained weight values ​​of the adapted resource consumption after adjustment of each application to be installed can be implemented by the following specific implementation scheme:

[0207] Increase the number of replicas: For applications to be installed with a high business impact weight, you can consider increasing the number of replicas. The number of replicas to be increased can be determined based on the weight value. Increasing the number of replicas can improve the availability and fault tolerance of the application and ensure that the application can run normally under high load conditions.

[0208] Increase resource weights: In addition to increasing the number of replicas, you can also increase the resource weights of applications to be installed that have higher business impact weights. This can improve application performance and responsiveness by adjusting the application's resource configuration, such as allocating more CPU cores, memory, or storage resources.

[0209] Implementing adjustments: To implement the above adjustments, you can use automated tools or scripts. These tools can automatically increase the number of copies of the corresponding application to be installed or increase the resource weight based on the collected business impact weight values. Before implementing the adjustment, it is recommended to conduct sufficient testing and verification to ensure that the adjustment will not have a negative impact on other parts of the system.

[0210] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:

[0211] Improve the performance of key applications: By increasing the number of replicas or raising the resource weight, key applications can obtain more resources, thereby improving their performance and responsiveness.

[0212] Ensure business continuity: Increasing the number of replicas can improve application availability, reduce the risk of single point failures, and ensure business continuity.

[0213] Optimize resource allocation: Adjust according to the business impact weight value so that resources can be more accurately allocated to applications that have a greater impact on the business, thereby improving resource utilization.

[0214] Adapt to business changes: When business needs change, the resource consumption weight value can be flexibly adjusted to ensure reasonable allocation of resources and stable operation of applications.

[0215] It should be noted that the embodiments of this specification have the following beneficial effects through the above contents:

[0216] Improve resource utilization efficiency: By collecting resource demand information of each application to be installed, resources can be allocated more accurately to avoid resource waste.

[0217] Optimize service quality: Configuring resource scheduling strategies based on resource consumption weights and business impact weights can ensure that key businesses obtain sufficient resources, thereby improving service quality.

[0218] Flexible resource allocation: Equal or random allocation of resource requirements may lead to resource waste or reduced service quality. This method allocates resources based on precise weight values ​​and is more flexible.

[0219] Ensure business continuity: Considering business-related information and business impact weight values ​​helps ensure business continuity and reduce business interruptions caused by improper resource allocation.

[0220] Improve system performance: Reasonable resource scheduling can improve the overall performance of the system and improve the operating efficiency of the container cluster.

[0221] It should be noted that with the rise of microservice architecture and containerization technology, more and more companies are deploying their businesses in container clusters. Container cluster scheduling is the key to ensuring efficient resource utilization and service quality. Traditional container scheduling strategies often ignore the different needs and priorities between applications, resulting in insufficient resource allocation and failure to meet complex and changing business scenarios. Therefore, a more intelligent scheduling strategy is needed to adapt to the needs of different applications and improve cluster resource utilization and service quality.

[0222] Based on the above situation, the market currently mainly uses container cluster management tools such as Kubernetes to orchestrate and schedule containers. Existing scheduling strategies usually use labels, affinity, etc. to implement scheduling strategies, but the formulation of strategies still requires implementation personnel to plan and design, which means that the implementation effect of scheduling strategies is heavily dependent on the level of implementation personnel. Therefore, the market needs an auxiliary tool to assist implementation personnel in analyzing the weights of all applications in the container cluster and provide scheduling solutions based on actual scenarios, so that the overall cluster replacement can run well.

[0223] The embodiments of this specification propose a method for designing a container cluster scheduling strategy based on application weight measurement. The method can calculate weight values ​​based on factors such as the business importance of the application, resource consumption, historical performance, and expected behavior, including resource consumption weight values ​​and business impact weight values. Then, the weight value is used as a key input parameter of the scheduling algorithm. On the one hand, it ensures that applications that meet high weights can obtain the required resources first. On the other hand, the higher the cumulative weight value of the application running on a single machine node in the cluster, the greater the business impact when the node is damaged. By migrating applications to reduce the weight value, it can be ensured that the impact on the environment is minimized when problems occur on the machine. At the same time, this tool provides an interface for users or administrators to adjust weight parameters to meet changing business needs.

[0224] Biggest advantage: The embodiments of this specification ensure that key applications obtain sufficient resources through precise weight calculation, while avoiding hidden resource waste of applications. For example, file fragments generated during application operation consume disk space, and applications at the same business peak time run on the same cluster node, causing an instantaneous surge in node pressure. In addition, the service quality is enhanced by configuring weight values, and resource allocation is dynamically adjusted according to the actual needs of the application to ensure the response time and reliability of the service and adapt to the ever-changing environment. At the same time, adding weight value configuration parameters can improve the automation and intelligence of the environment, reduce manual intervention with the help of scheduling tools, and improve the accuracy and efficiency of scheduling.

[0225] The implementation principles of the embodiments of this specification are as follows:

[0226] a) Construction method and calculation process of multi-level weight measurement model: The weight values ​​mainly include two categories: resource consumption weight values ​​and business impact weight values. Resource consumption weight values ​​mainly cover application resource consumption such as memory, CPU, network traffic, local disk cache, external storage, etc., to ensure that each node in the container cluster will not be oversold. Business impact weight values ​​mainly refer to the impact on the overall business environment during downtime or changes. In theory, the lower the business impact weight value of a node, the lower its impact on business operations during maintenance, which is equivalent to improving the high availability of the overall environment in disguise by reducing the business impact weight value of a single node.

[0227] b) Method of integrating weight values ​​in scheduling strategy: Based on the previous principle, use tools to model and plan the overall resources of the cluster environment, including resource conditions and information about applications to be installed. Then, based on the standards mentioned in principle a), balance the business weights of each node while meeting the resource weight requirements. For example, a website system uses a dual-copy mode. This will increase the resource consumption weight value, but it can reduce the business impact weight value. That is, the operation and maintenance personnel need to shut down the service to maintain one of the nodes, but because the dual copies reduce the business weight, it will not affect the overall business operation.

[0228] c) User interface design, a mechanism that allows adjustment of weight parameters: In addition to within and outside the cluster, individual businesses also need to allow implementation personnel to customize weight values ​​according to the situation because they interact with businesses outside the cluster.

[0229] Basic plan:

[0230] Step A. The tool is mainly divided into the following modules: system modeling module, application management module, strategy analysis module, and server deployment module;

[0231] Step B. The system modeling module is responsible for collecting cluster environment and application information to be installed and modeling the overall environment;

[0232] Step C. The application management module is responsible for managing application information. The implementation personnel use this module to record and upload application information and provide relevant information to the system modeling module;

[0233] Step D. The policy analysis module mainly calculates the weight value based on the cluster environment and application information, and supports the implementation personnel to manually adjust the weight value;

[0234] Step E: Based on the cluster environment information and policy calculation, the implementation personnel deploy the application in the cluster according to the solution and configure the application scheduling policy.

[0235] For step A:

[0236] 1. The current module design is mainly based on the core process deployment planning, that is, from several key points such as collecting information, specifying strategies, and deploying the environment. Other aspects such as visual interface, batch planning and deployment can be added as extended function modules.

[0237] For step B:

[0238] 1. The system modeling module collects cluster information, including cluster version, server model of each node, CPU memory hard disk network speed and other indicators, performance evaluation, etc., and then performs data modeling based on the overall environment. On the other hand, by summarizing the information of the applications to be deployed, including resource usage, business association, etc., the basic weight value of the application is set for subsequent policy calculation.

[0239] For step C:

[0240] 1. The application management module needs to collect application resource demand information, business-related information, replica expansion possibilities, etc. In addition to common indicators such as CPU and memory, the application developer is also required to provide invisible resource consumption information, such as cache, log volume, disk read and write, etc.

[0241] 2. In addition to manual entry, you can also consider connecting to large models or similar mechanism plug-ins such as artificial intelligence, so that you can collect historical resource consumption of the same application to infer the overall consumption, and ultimately achieve an assessment of the overall application resource consumption.

[0242] 3. The possibility of replica expansion is a key factor in scheduling strategy formulation, that is, increasing resource consumption to reduce business weight. However, in general operation and maintenance environments, it is believed that expanding replicas can ensure high availability, but the expansion quantity, deployment location, and actual resource consumption have not been actually measured. Therefore, the main purpose of this method is to provide a balance point through overall accounting, which can not only meet resource consumption but also ensure that business impact is reduced.

[0243] For step D:

[0244] 1. Weight values ​​mainly include two categories: resource consumption weight values ​​and business impact weight values. Resource consumption weight values ​​mainly cover application resource consumption such as memory, CPU, network traffic, local disk cache, external storage, etc., to ensure that each node in the container cluster will not be oversold. Business impact weight values ​​mainly refer to the impact on the overall business environment during downtime or changes. In theory, the lower the business impact weight value of a node, the lower its impact on business operations during maintenance, which is equivalent to improving the high availability of the overall environment in disguise by reducing the business impact weight value of a single node.

[0245] 2. Based on the above, use the tool to model and plan the overall resources of the cluster environment, including resource conditions and information about applications to be installed. Then, balance the business weight of each node while meeting the resource weight requirements. For example, a website system uses a dual-copy mode. This will increase the resource consumption weight value, but it can reduce the business impact weight value. That is, the operation and maintenance personnel need to shut down the service to maintain one of the nodes, but because the dual copies reduce the business weight, it will not affect the overall business operation.

[0246] For step E:

[0247] 1. In this step, you can consider implementing automatic deployment through cluster API docking, or generate deployment scripts based on the established strategies, and have the implementation personnel perform the deployment manually.

[0248] It should be noted that the resource consumption weight value can be used to describe the application resource exclusivity. For example, some applications need to exclusively occupy 8G memory, while others need to exclusively occupy 1G memory. In this case, the 8G memory application should be scheduled first during scheduling to prevent a single host from being occupied by a large number of low-resource applications. This ensures that the resources of each host in the cluster can be reasonably allocated to applications.

[0249] The business impact weight value can represent the proportion of the application's impact on the business, including the application's functions, roles, and dependencies. For example, a database application needs to be accessed by multiple business systems, so its business impact is very high; and some portal websites need to run 24 hours a day, although their business impact is also high, but by deploying multiple copies to ensure that at least one is always running, the business impact of a single website becomes lower.

[0250] Resource consumption weight calculation method:

[0251] The resource consumption weight value must first preset the resource indicators involved in the calculation. Currently, the most common ones include memory and CPU, which must be calculated independently. Others may also include local disks, etc. This example does not require this.

[0252] The weight value can be preset as a weighted alarm line of 100. This line should be mapped to the host resources of the container cluster. For example, if there are three hosts, each with approximately 20GB of available memory and 8-core available CPUs after excluding basic consumption, then the weighted alarm line of 100 can be set to correspond to relevant resources of 20GB and 8 cores. Then, the alarm line is converted according to the actual situation of each host. For example, if the available resources of a host are 15GB and 4 cores, then the memory conversion ratio of its alarm line is 75, the CPU is 50, and so on.

[0253] Then, a range is obtained by proportional conversion based on the application resource consumption, which mainly includes exclusive conversion and upper limit conversion. Exclusive conversion refers to the amount of application resource lock. For example, an application needs to occupy at least 2G memory to run. If the allocation is not met, it cannot be deployed; the upper limit is converted to the resource demand of the application as time goes by, but this upper limit cannot be determined. It is necessary to estimate an approximate value based on historical experience to prevent excessive resource application from causing host crashes. For example, an application occupies 2G but may increase to 4G, then the application memory resource consumption weight value is [10~20]. During deployment, the weight values ​​of each application are calculated to allocate to each host to find a reasonable allocation plan. The first allocation criterion is that the total upper limit cannot exceed the host alarm line. If the total upper limit exceeds the host alarm line, the total lower limit does not exceed the alarm line. If the upper limit exceeds the upper limit, it means that the application can run but there may be operation risks. If the lower limit is exceeded, it means that the environment resources are insufficient or there is no suitable allocation plan, and manual intervention is required.

[0254] Compared with some tools on the market that directly compare memory and CPU values, on the one hand, the conversion value allows some non-professionals to quickly understand the alarm situation, and on the other hand, the weight value conversion can also be converted twice for different models of accessories. At present, there may still be differences in the operating capabilities of mainstream manufacturers such as memory and CPU under the same indicators on the market. Therefore, when converting, you can add another step to adjust the actual amount of resources consumed for different models of memory or CPU. For example, the lower limit of the application originally occupied 2G, but in the current environment it may require 3G to run normally. Then the embodiment of this manual can replace manual parameter adjustment or adjustment of exclusive upper and lower limits, but the displayed weight value will not be affected and the alarm can be displayed normally.

[0255] Calculation of business impact weight value:

[0256] Unlike resource weights, business weights are highly dependent on the environment host and are mainly planned based on the actual application to be deployed. For example:

[0257] First, you can set the disaster warning line to 100 and the warning line to 25. Disaster refers to the impact on the entire environment, and the warning line refers to the impact on the main business of the department. When calculating, first calculate the impact weight value of the main business without dependencies as the warning line, and then calculate the impact weight value of the main business with dependencies as the total value of the dependent business plus the warning line. In principle, the weight value of the auxiliary function can not exceed the warning line. Then, if a business can be split into multiple identical copies, each copy can share the weight value originally applied.

[0258] For example, five websites, one cache plug-in, and one core database need to be deployed on site, of which three websites rely on the database, two websites are purely static websites that run independently, and one cache plug-in is relied upon by each website to speed up data loading, but closing it will not affect the main business operation but will only reduce the response speed.

[0259] Then the embodiments of this specification can be calculated according to the dependency situation and operation requirements. For example, if each website needs to run continuously, the score cannot be lower than 25 (single main business level). If the database is dependent on three websites, the weight value cannot be lower than 100 (dependency + itself). The cache plug-in is only used as an auxiliary function and the weight value can be lower than the warning line of 25. If the database is deployed in a master-slave manner, the warning line of each database is only 50, and the closure or migration of a single database is not as good as affecting the global disaster.

[0260] It should be noted that the embodiments of this specification are based on the above solution and are described using an actual system deployment scenario.

[0261] Information about the container components to be deployed in the application system and the required CPU and memory resources (minimum set):

[0262] One database, 4 cores and 16G;

[0263] A set of Redis cache, 4 cores and 8G;

[0264] A portal website system for display, 4 cores and 8G;

[0265] A backend management system for reading and writing database data, 4 cores and 8G;

[0266] The above is a minimum set of application systems. If any component fails, the entire system will not be able to continue running.

[0267] The target cluster has a total of 8 business node servers, each of which is uniformly configured with 16 cores and 32G, and the resource consumption of the server itself is ignored.

[0268] Based on the above, the business crash weight line of the entire application system is set to 100, the warning line is set to 50, and the business weight values ​​of the four components are all set to 100; the resource weight crash line is set to 16 cores of CPU and 32G of memory according to the business node configuration, and the warning line is CPU12 cores and memory24G (ie 75%).

[0269] In the first deployment plan, the number of extended component copies is not considered, and all components are deployed on different nodes. See Table 1 for the first deployment plan. Node 1, Node 2, Node 3 and Node 4 respectively deploy the database, Redis cache, portal website system and backend management system.

[0270] Table 1 First deployment plan

[0271]

[0272] This scenario meets the basic operating requirements of the system, but if any component is damaged, the entire system will not be able to operate.

[0273] The second deployment plan, see Table 2. The second deployment plan, the database is split into two sets for master-slave backup. The database is deployed on node 1, including database 1 and database 2, and the weight value of each set is 50; the backend management system, redis, and portal website may have high-frequency access, and are all split into 4 sets, each with a weight value of 25. Redis is deployed on node 2, including Redis1, Redis2, Redis3 and Redis4; the portal website is deployed on node 3, including portal 1, portal 2, portal 3 and portal 4; the backend management system is deployed on node 4, including backend 1, backend 2, backend 3 and backend 4.

[0274] Table 2 Second deployment plan

[0275]

[0276] In the above schemes, each component reduces the business weight value by increasing the number of replicas, but each component is concentrated on one node. Failure of this node will still cause all components of this type to fail. It is necessary to balance the resource usage of components on each node.

[0277] The third deployment plan distributes the copies of various components and does not concentrate them in a single node. See Table 3 for the third deployment plan. Node 1 deploys database 1, Redis 1, portal 1, and backend 1; node 2 deploys database 2, Redis 2, portal 2, and backend 2; node 3 deploys Redis 3, portal 3, and backend 3; node 4 deploys Redis 4, portal 4, and backend 4.

[0278] Table 3 The third deployment plan

[0279]

[0280] In the above scheme, the replicas of each component are scheduled on different nodes, avoiding business downtime caused by a single node failure. However, the replicas are too concentrated on the hosts at the front, and the resource weight value exceeds the node upper limit. It is necessary to adjust the replicas to the nodes at the back according to the weight value alarm line (the resource weight value of each node is reduced to less than 75%).

[0281] The fourth deployment plan adjusts the replicas to the later nodes, see Table 4. The fourth deployment plan, node 1 deploys database 1; node 2 deploys database 2; node 3 deploys Redis 1 and background 1; node 4 deploys Redis 2 and background 2; node 5 deploys Redis 3 and portal 1; node 6 deploys Redis 4 and portal 2; node 7 deploys portal 3 and background 3; node 8 deploys portal 4 and background 4.

[0282] Table 4 The fourth deployment plan

[0283]

[0284] In the above scheme, the total resource weight value of each node is reduced to below 75%, and when a single node is damaged, the total impact on the business weight value is up to 50, that is, it just reaches the alarm line but not the crash line, leaving room for repairs for the operation and maintenance personnel without affecting the normal operation of the application.

[0285] Figure 2 A schematic diagram of a container cluster application resource scheduling device provided in an embodiment of this specification includes:

[0286] at least one processor; and,

[0287] a memory communicatively connected to the at least one processor; wherein,

[0288] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:

[0289] The application management module is used to collect relevant information of each application to be installed, and send the relevant information of each application to be installed to the system modeling module, wherein the relevant information of each application to be installed includes resource demand information and business association information of each application to be installed;

[0290] The system modeling module is used to obtain cluster environment information, and the system is modeled according to the cluster environment information and the relevant information of each application to be installed, wherein the cluster environment information includes resource performance information of the node server;

[0291] Determine, by a policy analysis module, a weight value of each application to be installed based on the cluster environment information and / or relevant information of each application to be installed, wherein the weight value includes a resource consumption weight value and a business impact weight value;

[0292] The applications to be installed are deployed in the container cluster through a server deployment module, and resource scheduling strategies for the applications to be installed are configured based on weight values ​​of the applications to be installed.

[0293] A non-volatile computer storage medium provided in an embodiment of the present specification stores computer executable instructions, which can achieve the following when executed by a computer:

[0294] The application management module is used to collect relevant information of each application to be installed, and send the relevant information of each application to be installed to the system modeling module, wherein the relevant information of each application to be installed includes resource demand information and business association information of each application to be installed;

[0295] The system modeling module is used to obtain cluster environment information, and the system is modeled according to the cluster environment information and the relevant information of each application to be installed, wherein the cluster environment information includes resource performance information of the node server;

[0296] Determine, by a policy analysis module, a weight value of each application to be installed based on the cluster environment information and / or relevant information of each application to be installed, wherein the weight value includes a resource consumption weight value and a business impact weight value;

[0297] The applications to be installed are deployed in the container cluster through a server deployment module, and resource scheduling strategies for the applications to be installed are configured based on weight values ​​of the applications to be installed.

[0298] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and non-volatile computer storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

Claims

1. A container cluster application resource scheduling method, characterized in that: include: The application management module is used to collect relevant information of each application to be installed, and send the relevant information of each application to be installed to the system modeling module, wherein the relevant information of each application to be installed includes resource demand information and business association information of each application to be installed; The system modeling module is used to obtain cluster environment information, and the system is modeled according to the cluster environment information and the relevant information of each application to be installed, wherein the cluster environment information includes resource performance information of the node server; Determine, by a policy analysis module, a weight value of each application to be installed based on the cluster environment information and / or relevant information of each application to be installed, wherein the weight value includes a resource consumption weight value and a business impact weight value; Deploy the applications to be installed in the container cluster through a server deployment module, and configure resource scheduling strategies for the applications to be installed based on weight values ​​of the applications to be installed; If the weight value is the business impact weight value, determining the weight value of each application to be installed based on the cluster environment information and / or the relevant information of each application to be installed by the policy analysis module includes: Determining the business impact weight value of each application to be installed based on the business association information of each application to be installed by a policy analysis module; If the weight value is the resource consumption weight value, determining the weight value of each application to be installed based on the cluster environment information and / or the relevant information of each application to be installed by the policy analysis module includes: The resource consumption weight value of each application to be installed is determined by a policy analysis module based on the cluster environment information and the resource demand information of each application to be installed.

2. The method according to claim 1, characterized in that The determining the business impact weight value of each application to be installed based on the business association information of each application to be installed by the policy analysis module includes: Analyze the business association information of each application to be installed to determine the dependency relationship between the applications to be installed; Determining the dependency degree of each of the applications to be installed according to the dependency relationship between the applications to be installed; According to the dependency degree of each of the applications to be installed, a business impact weight value of each of the applications to be installed is determined.

3. The method according to claim 1, characterized in that The determining, by the policy analysis module, the resource consumption weight value of each application to be installed based on the cluster environment information and the resource demand information of each application to be installed includes: Obtain resource performance information of the node server and resource requirement information of each application to be installed, wherein the resource performance information includes performance information of multiple resources; Determining total demand information of various resources of each application to be installed according to the resource demand information of each application to be installed; Determine resource differences between the various resource performance information of the node server and the total resource demand information corresponding to the applications to be installed; Determine the resource corresponding to the lowest resource difference as the scarce resource of the node server, and determine resource performance information of the scarce resource and demand information of the scarce resource of each application to be installed; The resource consumption weight value of each application to be installed is determined according to the resource performance information of the scarce resource and the demand information of the scarce resource of each application to be installed.

4. The method according to claim 1, characterized in that: The configuring the resource scheduling strategy of each application to be installed based on the weight value of each application to be installed includes: Adjust the resource consumption weight value according to the business impact weight value to obtain the adjusted adaptation resource consumption weight value of each application to be installed; According to the adapted resource consumption weight value, a resource scheduling strategy for each application to be installed is configured.

5. The method according to claim 4, characterized in that The step of adjusting the resource consumption weight value according to the service impact weight value to obtain the adjusted adaptation resource consumption weight value of each application to be installed includes: The number of copies of the corresponding application to be installed is increased or the resource weight is increased according to the business impact weight value, so as to obtain the adjusted adaptation resource consumption weight value of each application to be installed.

6. The method according to claim 1, characterized in that The resource performance information of the node server includes the CPU index and memory capacity of the node server; the resource demand information of each application to be installed includes the CPU index occupancy and memory occupancy of each application to be installed.

7. A container cluster application resource scheduling device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: The application management module is used to collect relevant information of each application to be installed, and send the relevant information of each application to be installed to the system modeling module, wherein the relevant information of each application to be installed includes resource demand information and business association information of each application to be installed; The system modeling module is used to obtain cluster environment information, and the system is modeled according to the cluster environment information and the relevant information of each application to be installed, wherein the cluster environment information includes resource performance information of the node server; Determine, by a policy analysis module, a weight value of each application to be installed based on the cluster environment information and / or relevant information of each application to be installed, wherein the weight value includes a resource consumption weight value and a business impact weight value; Deploy the applications to be installed in the container cluster through a server deployment module, and configure resource scheduling strategies for the applications to be installed based on weight values ​​of the applications to be installed; If the weight value is the business impact weight value, determining the weight value of each application to be installed based on the cluster environment information and / or the relevant information of each application to be installed by the policy analysis module includes: Determining the business impact weight value of each application to be installed based on the business association information of each application to be installed by a policy analysis module; If the weight value is the resource consumption weight value, determining the weight value of each application to be installed based on the cluster environment information and / or the relevant information of each application to be installed by the policy analysis module includes: The resource consumption weight value of each application to be installed is determined by a policy analysis module based on the cluster environment information and the resource demand information of each application to be installed.

8. A non-volatile computer storage medium, characterized in that: Computer executable instructions are stored, and when the computer executable instructions are executed by a computer, the following can be achieved: The application management module is used to collect relevant information of each application to be installed, and send the relevant information of each application to be installed to the system modeling module, wherein the relevant information of each application to be installed includes resource demand information and business association information of each application to be installed; The system modeling module is used to obtain cluster environment information, and the system is modeled according to the cluster environment information and the relevant information of each application to be installed, wherein the cluster environment information includes resource performance information of the node server; Determine, by a policy analysis module, a weight value of each application to be installed based on the cluster environment information and / or relevant information of each application to be installed, wherein the weight value includes a resource consumption weight value and a business impact weight value; Deploy the applications to be installed in the container cluster through a server deployment module, and configure resource scheduling strategies for the applications to be installed based on weight values ​​of the applications to be installed; If the weight value is the business impact weight value, determining the weight value of each application to be installed based on the cluster environment information and / or the relevant information of each application to be installed by the policy analysis module includes: Determining the business impact weight value of each application to be installed based on the business association information of each application to be installed by a policy analysis module; If the weight value is the resource consumption weight value, determining the weight value of each application to be installed based on the cluster environment information and / or the relevant information of each application to be installed by the policy analysis module includes: The resource consumption weight value of each application to be installed is determined by a policy analysis module based on the cluster environment information and the resource demand information of each application to be installed.

Citation Information

Patent Citations

  • Method and device for scheduling multi-service resources

    CN104980934A

  • Method, device, equipment and medium for realizing hybrid deployment of off-line and on-line services

    CN115361285A

  • Single-task load balancing method and device under micro-service architecture and medium

    CN115858174A

  • “method and electronic device for mitigating micro-architectural side-channel attack by dynamic resource allocation”

    IN202041025564A