Application scheduling method based on host health degree evaluation model and K8s

The custom scheduling strategy based on the host health evaluation model solves the lack of personalized resource requirements for Kubernetes scheduling, ensures the stable operation of application instances on healthy nodes, and improves the accuracy and stability of resource scheduling.

CN118689609APending Publication Date: 2024-09-24CHINA BOHAI BANK CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410901156.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-05
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

Kubernetes' default resource scheduling only supports scheduling based on basic resource indicators such as CPU and memory, which fails to meet the personalized resource requirements of the application system. As a result, application instances may be scheduled to run on servers with abnormal monitoring indicators, affecting stability.

Method used

Using the application scheduling method based on the host health evaluation model and K8s, by building the host health evaluation model, defining the node_healthy indicator and node_score indicator, and registering them in the node information list, custom policy scheduling is implemented to ensure that application instances are scheduled to run on healthy nodes.

Benefits of technology

It effectively prevents application instances from being scheduled to nodes with abnormal status, ensuring the stable operation of business applications. By regularly collecting and updating host health indicators, it expands the node filtering and scoring principles and improves the accuracy of resource scheduling.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118689609A
    Figure CN118689609A
Patent Text Reader

Abstract

The invention discloses an application scheduling method based on a host health degree evaluation model and K8s. The method comprises the following steps: constructing a host health evaluation model to define a nodeheat index; constructing an equipment plug-in to register a nodehealty index to the node information list; collecting, calculating and synchronously updating nodehealty index values at regular time; determining whether the node state can be scheduled or not and the advantages and disadvantages of the node state capable of being scheduled under the dimension of resources required for application operation and in the technical field of K8s; constructing a user-defined strategy scheduler to decide a node which can be scheduled and has the highest priority; and the Kubelet component monitors and creates the application instance. By analyzing external physical resources and host and operating system resources required by the application, the state information of the host is acquired and updated regularly. And meanwhile, the situation that the application instance is scheduled to the node with the abnormal nodeheat index is avoided, and stable operation of the service application is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to an application scheduling method based on K8s, and in particular to an application scheduling method based on a host health evaluation model and K8s. Background Art

[0002] Kubernetes scheduling refers to placing Pod containers on appropriate nodes so that the Kubelet on the corresponding nodes can often see these Pods; Kube-scheduler is the default scheduler of the Kubernetes cluster and is part of the cluster control plane. It will select an optimal node to run newly created and unscheduled Pods.

[0003] Kubernetes' default resource scheduling only supports scheduling based on basic resource indicators such as CPU and memory, but does not support scheduling based on personalized resource indicators that the application system is concerned about, such as the number of file handles, disk IO load, network card load, application process status and other resources; and the personalized resource indicator data that the application system is concerned about is usually stored in the monitoring system, and the lack of effective connectivity between the monitoring system and the scheduling system may cause the application instance to be scheduled to run on a server with abnormal monitoring indicators, thereby affecting the stability of the application system. Therefore, Kubernetes' default resource scheduling technology system is difficult to meet the personalized scheduling needs of the application system. Summary of the invention

[0004] In order to solve the shortcomings of the above-mentioned technology, the present invention provides an application scheduling method based on a host health assessment model and K8s.

[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is: based on the host health evaluation model and the K8s application scheduling method, comprising the following steps:

[0006] Step S1: construct a host health assessment model and define the node_healthy indicator; the host health assessment model includes a required external physical resource analysis module and a host and operating system resource analysis module; the working dimensions of the host health assessment model include: server operation status dimension and application operation required resource dimension;

[0007] Step S2: Build the device plug-in HealthyDevicePlugin;

[0008] Step S3: Based on the device plug-in HealthyDevicePlugin, register the node_healthy indicator to the node information list;

[0009] Step S4: collect, calculate and obtain the node_healthy indicator value of each node at a fixed period, and update it to the node information list synchronously;

[0010] Step S5: The host health assessment model defines the node_filter_annotation indicator under the dimension of resources required for application operation and in the K8s (Kubernetes) technology field to clarify whether the node can be scheduled;

[0011] Step S6: The host health evaluation model defines the node_score indicator in the dimension of resources required for application operation and in the K8s (Kubernetes) technology field to clarify the pros and cons of the node status;

[0012] Step S7: Based on the Kubernetes default scheduler, a custom policy scheduling HealthyScheduler is constructed based on the node_filter_annotation indicator and the node_score indicator to filter nodes and score node status;

[0013] Step S8: Based on the node_healthy indicator of the node, HealthyScheduler determines the highest priority node that can be scheduled; synchronizes the application instance scheduling decision result to the Kubelet component of the node with the highest priority;

[0014] Step S9: Create an application instance based on the information monitored by the Kubelet component.

[0015] Furthermore, in step S1, the node_healthy indicator is defined, including the following steps:

[0016] S11: The host health assessment model presets the impact factors and segmentation intervals of resource indicators on health scores in the dimension of server operation status, and calculates the impact scores of resource indicators on health in the field of K8s (Kubernetes) technology.

[0017] S12: Define the node health indicator node_healthy based on the impact score of resource indicators on health; the calculation formula of node_healthy indicator is:

[0018]

[0019] Among them, node_healthy is the node health indicator, node_healthy∈(0,100); θ is a certain resource indicator, θ∈{cpuIdleTime, freeMem, load5, dCount, zombieCount, fileDescriptor......}; n is the total number of resource indicators that need to be considered to affect the node_healthy indicator, n∈|{cpuIdleTime, freeMem, load5, dCount, zombieCount, fileDescriptor......}|; ΔHθ is the impact score of the θ resource indicator on health.

[0020] Furthermore, in S11, within the field of Kubernetes technology, an assessment is performed based on information from physical server operation monitoring, Linux operating system operation status, and Kubernetes component operation monitoring, and the influencing factors of resource indicators on the health score are preset. The influencing factors of resource indicators on the health score include CPU, memory, number of file handles, disk IO load, network card load, and application process status.

[0021] Furthermore, the impact score of the resource indicator on health is calculated in S11, and the formula is:

[0022] ΔH θ∈{cpuIdleTime、freeMem、load5、dCount、zombieCount、fileDescriptor......} =

[0023] α i (θ,β(θ))f i (θ, β(θ));

[0024] Among them, ΔHθ is the impact score of θ resource index on health; θ is a certain resource index, θ∈

[0025] {cpuIdleTime, freeMem, load5, dCount, zombieCount, fileDescriptor…}; β(θ) is the value of the collected θ resource indicator; fi(θ, β(θ)) is the impact score of the resource indicator on the health when the value collected by the θ resource indicator is β(θ) and β(θ) is distributed in the i-th segment of the θ resource indicator, f i (θ,β(θ))∈(0,100);α i (θ, β(θ)) is the impact factor of the resource indicator on the health when the value collected by the θ resource indicator is β(θ) and β(θ) is distributed in the i-th segment interval of the θ resource indicator.

[0026] Furthermore, in step S2, a device plug-in HealthyDevicePlugin is constructed based on the operation and monitoring information collection method, evaluation model function, timing tool and information synchronization method in the node_healthy indicator.

[0027] Furthermore, in step S4, a cron scheduled task is created, a fixed period is set, and the node_healthy indicator value is collected and calculated according to the fixed period; the node_healthy indicator value is synchronously updated to the node information list through the HealthyDevicePlugin device plug-in.

[0028] Further, in step S5, in the Kubernetes technical field, based on the node filtering rule extended by the scheduling algorithm of the scheduling framework Filter extension point, the node_filter-annotation indicator is defined according to the node_healthy indicator of the host status information; the calculation formula of the node_filter_annotation indicator is:

[0029]

[0030] Among them, node_filter_annotation μ It is the status indicator of whether the node status can be deployed by the application in the Filter stage of the scheduling process of the application μ; It is the requirement of application μ for healthy resources under the premise that the application can run.

[0031] Furthermore, in step S6, in the field of Kubernetes technology, based on the node scoring rule extended by the scheduling algorithm of the scheduling framework Score extension point, the node_score indicator is defined according to the node_healthy indicator of the host status information to clarify the pros and cons of the node status; the node whose status in the Filter stage is marked as schedulable will enter the subsequent Score stage; the calculation formula of the node_score indicator is:

[0032]

[0033] Among them, node_scoreμ is the score of the node status in the process of scheduling application μ by the extended algorithm; When the application μ's demand for health resources is and When distributed in the i-th segment interval of application μ, the score of the application on the quality of the node status; weightμ is the extended scheduling algorithm in the process of scheduling application μ, The weight of the node in the final score.

[0034] Furthermore, in step S8, HealthyScheduler filters the schedulable nodes based on the node_filter_annotation indicator, and sorts the filtered nodes based on the node_score indicator to determine the schedulable nodes with the highest priority.

[0035] Furthermore, in step S9, after the Kubelet component monitors the application instance Pod information to be created synchronized to the node, it creates the application instance Pod according to the configuration of the business application YAML resource list.

[0036] The present invention discloses an application scheduling method based on a host health evaluation model and K8s. By establishing a host health evaluation model, the timed collection and update of the host status information node_healthy indicator are realized; without invading the Kubernetes source code, the node filtering and scoring principles are expanded based on the node_healthy indicator, which effectively avoids the situation where the application instance is scheduled to the node with abnormal node_healthy indicator status, thereby ensuring the stable operation of the business application. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 It is a flow chart of the present invention. DETAILED DESCRIPTION

[0038] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0039] The application scheduling method based on the host health evaluation model and K8s includes the following steps:

[0040] Step S1: construct a host health assessment model and define the node_healthy indicator; the host health assessment model includes a required external physical resource analysis module and a host and operating system resource analysis module; the working dimensions of the host health assessment model include: server operation status dimension and application operation required resource dimension;

[0041] Step S2: Build the device plug-in HealthyDevicePlugin;

[0042] Step S3: Based on the device plug-in HealthyDevicePlugin, register the node_healthy indicator to the node information list;

[0043] Step S4: collect, calculate and obtain the node_healthy indicator value of each node at a fixed period, and update it to the node information list synchronously;

[0044] Step S5: The host health assessment model defines the node_filter_annotation indicator under the dimension of resources required for application operation and in the K8s (Kubernetes) technology field to clarify whether the node can be scheduled;

[0045] Step S6: The host health evaluation model defines the node_score indicator in the dimension of resources required for application operation and in the K8s (Kubernetes) technology field to clarify the pros and cons of the node status;

[0046] Step S7: Based on the Kubernetes default scheduler, a custom policy scheduling HealthyScheduler is constructed based on the nodefilter_annotation indicator and the node_score indicator to filter nodes and score node status;

[0047] Step S8: Based on the node_healthy indicator of the node, HealthyScheduler determines the highest priority node that can be scheduled; synchronizes the application instance scheduling decision result to the Kubelet component of the node with the highest priority;

[0048] Step S9: Create an application instance based on the information monitored by the Kubelet component.

[0049] Specifically, the node_healthy indicator is defined in step S1, including the following steps:

[0050] S11: The host health assessment model, under the dimension of server operation status, in the field of K8s (Kubernetes) technology, presets the impact factor of resource indicators on health scores and calculates the impact score of resource indicators on health in segmented intervals;

[0051] S12: Define the node health indicator node_healthy based on the impact score of resource indicators on health; the calculation formula of node_healthy indicator is:

[0052]

[0053] Among them, node_healthy is the node health indicator, node_healthy∈(0,100); θ is a certain resource indicator, θ∈{cpuIdleTime, freeMem, load5, dCount, zombieCount, fileDescriptor......}; n is the total number of resource indicators that need to be considered to affect the node_healthy indicator, n∈|{cpuIdleTime, freeMem, load5, dCount, zombieCount, fileDescriptor......}|; ΔHθ is the impact score of the θ resource indicator on health.

[0054] In the Kubernetes technology field, S11 evaluates the impact of resource indicators on health scores based on the information of physical server operation monitoring, Linux operating system operation status, and Kubemetes component operation monitoring. The impact factors of resource indicators on health scores include CPU, memory, number of file handles, disk IO load, network card load, and application process status. The impact score of resource indicators on health scores in S11 is calculated as follows:

[0055] ΔH θ∈{cpuIdleTime、freeMem、load5、dCount、zombieCount、fileDescriptor......} =

[0056] α i (θ,β(θ))f i (θ, β(θ));

[0057] Where ΔH θ is the impact score of the θ resource indicator on health; θ is a certain resource indicator, θ∈{cpuIdleTime, freeMem, load5, dCount, zombieCount, fileDescriptor…}; β(θ) is the collected value of the θ resource indicator; fi(θ, β(θ)) is the impact score of the resource indicator on health when the collected value of the θ resource indicator is β(θ) and β(θ) is distributed in the i-th segment interval of the θ resource indicator, f i (θ,β(θ))∈(0,100);α i (θ, β(θ)) is the impact factor of the resource indicator on the health when the value collected by the θ resource indicator is β(θ) and β(θ) is distributed in the i-th segment interval of the θ resource indicator.

[0058] In step S2, a device plug-in HealthyDevicePlugin is constructed based on the operation and monitoring information collection method, evaluation model function, timing tool and information synchronization method in the node_healthy indicator.

[0059] In step S4, a cron task is created, a fixed period is set, and the node_healthy indicator value is collected and calculated according to the fixed period; the node_healthy indicator value is synchronously updated to the node information list through the HealthyDevicePlugin device plug-in.

[0060] In step S5, in the Kubernetes technical field, based on the node filtering rule extended by the scheduling algorithm of the scheduling framework Filter extension point, the node_filter_annotation indicator is defined according to the node_healthy indicator of the host status information; the calculation formula of the node_filter_annotation indicator is:

[0061]

[0062] Among them, node_filter_annotation μ It is the status indicator of whether the node status can be deployed by the application in the Filter stage of the scheduling process of the application μ; It is the requirement of application μ for healthy resources under the premise that the application can run.

[0063] In step S6, in the Kubernetes technical field, based on the node scoring rule extended by the scheduling algorithm of the scheduling framework Score extension point, the node_score indicator is defined according to the node_healthy indicator of the host status information to clarify the pros and cons of the node status; the node whose status is marked as schedulable in the Filter stage will enter the subsequent Score stage; the calculation formula of the node_score indicator is:

[0064]

[0065] Among them, node_score μ The extended algorithm scores the node status in the process of scheduling application μ; When the application μ's demand for health resources is and When distributed in the i-th segment interval of application μ, the score of the application on the quality of the node status; weight μ In the process of scheduling application μ, the extended scheduling algorithm The weight of the node in the final score.

[0066] In step S8, HealthyScheduler filters the schedulable nodes based on the node_filter_annotation indicator, and sorts the filtered nodes based on the node_score indicator to determine the schedulable nodes with the highest priority.

[0067] In step S9, after the Kubelet component monitors the information of the application instance Pod to be created synchronized to this node, it creates the application instance Pod according to the configuration of the business application YAML resource list.

[0068] This embodiment provides a specific implementation method for the application scheduling method based on the host health evaluation model and K8s; Figure 1 As shown in the flowchart of the application scheduling method based on the host health assessment model and K8s, the application scheduling method based on the host health assessment model and K8s includes the following steps:

[0069] Step 1: Build a host health assessment model and define the node_healthy indicator. The host health model is a model that analyzes the external physical resources, host and operating system resources required to ensure the stable operation of the application. It involves the server operation status dimension and the resource dimension required for the application to run.

[0070] The host health assessment model is based on the server running status dimension and in the field of K8s (Kubernetes) technology, relying on information such as physical server operation monitoring, Linux operating system operation status, and Kubernetes component operation monitoring for evaluation; the impact factors and segmentation intervals of resource indicators such as CPU, memory, number of file handles, disk IO load, network card load, and application process on health are preset, and the model output is defined as the node health node_healthy indicator; the formula for the impact of resource indicators on health is:

[0071] ΔH θ∈{cpuIdleTime、freeMem、load5、dCount、zombieCount、fileDescriptor......} =

[0072] α i (θ,β(θ))f i (θ, β(θ));

[0073] Where ΔH θis the impact score of the θ resource indicator on health; θ is a certain resource indicator, θ∈{cpuldleTime, freeMem, load5, dCount, zombieCount, fileDescriptor…}; β(θ) is the collected value of the θ resource indicator; fi(θ, β(θ)) is the impact score of the resource indicator on health when the collected value of the θ resource indicator is β(θ) and β(θ) is distributed in the i-th segment interval of the θ resource indicator, f i (θ,β(θ))∈(0,100);α i (θ, β(θ)) is the impact factor of the resource indicator on health when the value collected by the θ resource indicator is β(θ) and β(θ) is distributed in the i-th segment interval of the θ resource indicator. α i (θ, β(θ))∈(0,1);

[0074] The calculation formula of node_healthy indicator is:

[0075]

[0076] Among them, node_healthy is the node health indicator, node_healthy∈(0,100); θ∈{cpuIdleTime, freeMem, load5, dCount, zombieCount, fileDescriptor...}, θ is a resource indicator;

[0077] n is the total number of resource indicators that need to be considered to affect the node_healthy indicator, n = |{cpuIdleTime, freeMem, load5, dCount, zombieCount, fileDescriptor...}|; ΔH θ is the impact score of θ resource index on health;

[0078] Step 2: Build the device plug-in HealthyDevicePlugin; integrate the functional components of the information collection method, evaluation model function, timing tool, and information synchronization method related to the node_healthy indicator into HealthyDevicePlugin, compile and build the source code, and deploy it in Daemonset mode;

[0079] Step 3: Register the node_healthy indicator; HealthyDevicePlugin device plug-in function, register the node_healthy indicator to the node information list;

[0080] Step 4: Calculate and synchronize the node_healthy indicator; create a cron task, set a fixed time period, collect and calculate the value of the node_healthy indicator of the node in the fixed time period; synchronize and update the node_healthy information to the node through the HealthyDevicePlugin device plug-in;

[0081] Step 5: Define the node_filter_annotation indicator; the host health assessment model defines the node_filter_annotation indicator based on the node filtering rules extended by the scheduling algorithm of the scheduling framework Filter extension point in the dimension of the resources required for the application to run, and in the field of Kubernetes technology, according to the node_healthy indicator of the host status information, to clarify whether the node status can be scheduled and whether it can be allocated for application instance deployment; the calculation formula of the node_filter_annotation indicator is:

[0082]

[0083] Among them, node_filter_annotation μ It is the status indicator of whether the node status can be deployed by the application in the Filter stage of the scheduling process of the application μ; The requirement of application μ for healthy resources under the premise that the application can run;

[0084] Step 6: Define the node_score indicator. The host health evaluation model is based on the resource dimension required for the application to run, and in the Kubernetes technology field, based on the node scoring rule extended by the scheduling algorithm of the Score extension point of the scheduling framework. Based on the node-healthy indicator of the host status information, the node_score indicator is defined to clarify the pros and cons of the node status and whether it is more suitable to be allocated as an application instance for deployment.

[0085] The nodes whose status is marked as schedulable in the Filter stage enter the Score stage. The calculation formula of the node_score indicator is:

[0086]

[0087] Among them, node_scoreμ is the score of the node status in the process of scheduling application μ by the extended algorithm; When the application μ's demand for health resources is and When distributed in the i-th segment interval of application μ, the score of the application on the quality of the node status; weightμ In the process of scheduling application μ, the extended scheduling algorithm The weight of the node in the final score;

[0088] Step 7: Build the scheduler HealthyScheduler for node filtering and scoring. Based on the Kubernetes default scheduler, build a custom policy scheduler HealthyScheduler based on the extended custom node_filter_annotation indicator and node_score indicator.

[0089] Step 8: Application instance scheduling decision; configure the scheduler for deploying application instances as HealthyScheduler. HealthyScheduler obtains the node noede_healthy indicator, filters out the nodes that can be scheduled according to the node_filter_annotation indicator, and sorts them according to the node_score indicator of the filtered nodes to determine the node with the highest priority; synchronize the result of the application instance scheduling decision to the Kubelet component of the node with the highest priority;

[0090] Step 9: Create an application instance. After the node Kubelet listens to the Pod information to be created on this node, it creates a Pod instance according to the configuration of the business application instance YAML resource list.

[0091] The above implementation modes are not limitations of the present invention, and the present invention is not limited to the above examples. Changes, modifications, additions or substitutions made by technicians in this technical field within the scope of the technical solution of the present invention also belong to the protection scope of the present invention.

Claims

1. The application scheduling method based on the host health evaluation model and K8s is characterized by: The following steps are involved: Step S1: construct a host health assessment model and define the node_healthy indicator; the host health assessment model includes a required external physical resource analysis module and a host and operating system resource analysis module; the working dimensions of the host health assessment model include: server operation status dimension and application operation required resource dimension; Step S2: Build the device plug-in HealthyDevicePlugin; Step S3: Based on the device plug-in HealthyDevicePlugin, register the node_healthy indicator to the node information list; Step S4: collect, calculate and obtain the node_healthy indicator value of each node at a fixed period, and update it to the node information list synchronously; Step S5: The host health assessment model defines the node_filter_annotation indicator under the dimension of resources required for application operation and in the K8s (Kubernetes) technology field to clarify whether the node can be scheduled; Step S6: The host health evaluation model defines the node_score indicator in the dimension of resources required for application operation and in the K8s (Kubernetes) technology field to clarify the pros and cons of the node status; Step S7: Based on the Kubernetes default scheduler, a custom policy scheduling HealthyScheduler is constructed based on the node_filter_annotation indicator and the node_score indicator to filter nodes and score node status; Step S8: Based on the node_healthy indicator of the node, HealthyScheduler determines the highest priority node that can be scheduled; synchronizes the application instance scheduling decision result to the Kubelet component of the node with the highest priority; Step S9: Create an application instance based on the information monitored by the Kubelet component.

2. According to claim 1, the application scheduling method based on the host health assessment model and K8s is characterized in that: Defining the node_healthy indicator in step S1 includes the following steps: S11: The host health assessment model presets the impact factors and segmentation intervals of resource indicators on health scores in the dimension of server operation status, and calculates the impact scores of resource indicators on health in the field of K8s (Kubernetes) technology. S12: Define the node health indicator node_healthy based on the impact score of resource indicators on health; the calculation formula of node_healthy indicator is: Among them, node_healthy is the node health indicator, node_healthy∈(0,100); θ is a resource indicator, θ∈{cpuIdleTime, freeMem, load5, dCount, zombieCount, fileDescriptor...}; n is the total number of resource indicators that need to be considered to affect the node_healthy indicator, n∈|{cpuIdleTime, freeMem, load5, dCount, zombieCount, fileDescriptor...|; ΔH θ is the impact score of θ resource index on health.

3. The method for application scheduling based on host health evaluation model and K8s according to claim 2 is characterized in that: In the S11, within the Kubernetes technology field, an assessment is performed based on information on physical server operation monitoring, Linux operating system operation status, and Kubernetes component operation monitoring, and the influencing factors of resource indicators on the health score are preset. The influencing factors of resource indicators on the health score include CPU, memory, number of file handles, disk IO load, network card load, and application process status.

4. The application scheduling method based on the host health evaluation model and K8s according to claim 2 is characterized in that: In S11, the influence score of the resource index on the health degree is calculated, and the formula is: ΔH θ∈{cpuIdleTime、freeMem、load5、dCount、zombieCount、fileDescriptor} =a i (θ,β(θ))f i (θ,β(θ)); Where ΔH θ is the impact score of the θ resource indicator on the health degree; θ is a certain resource indicator, θ∈{cpuIdleTime, freeMem, load5, dCount, zonbieCount, fileDesdriptor...}; β(θ) is the collected θ resource indicator value; f i (θ, β(θ)) is the impact score of the resource indicator on health when the value collected by the θ resource indicator is β(θ) and β(θ) is distributed in the i-th segment interval of the θ resource indicator, f i (θ,β(θ))∈(0,100);α i (θ, β(θ)) is the impact factor of the resource indicator on the health when the value collected by the θ resource indicator is β(θ) and β(θ) is distributed in the i-th segment interval of the θ resource indicator.

5. The application scheduling method based on the host health evaluation model and K8s according to claim 1 is characterized in that: In the step S2, a device plug-in HealthyDevicePlugin is constructed based on the operation and monitoring information collection method, evaluation model function, timing tool and information synchronization method in the node_healthy indicator.

6. The application scheduling method based on the host health evaluation model and K8s according to claim 1 is characterized in that: In the step S4, a cron scheduled task is created, a fixed period is set, and the node_healthy indicator value is collected and calculated according to the fixed period; the node_healthy indicator value is synchronously updated to the node information list through the HealthyDevicePlugin device plug-in.

7. The method for application scheduling based on host health evaluation model and K8s according to claim 1 is characterized in that: In the step S5, in the Kubernetes technical field, based on the node filtering rule extended by the scheduling algorithm of the scheduling framework Filter extension point, the node_filter_annotation indicator is defined according to the node_healthy indicator of the host status information; the calculation formula of the node_filter_annotation indicator is: Among them, node_filter_annotation μ It is the status indicator of whether the node status can be deployed by the application in the Filter stage of the scheduling process of the application μ; It is the requirement of application μ for healthy resources under the premise that the application can run.

8. The method for application scheduling based on host health evaluation model and K8s according to claim 1, characterized in that: In the step S6, in the Kubernetes technical field, based on the node scoring rule extended by the scheduling algorithm of the scheduling framework Score extension point, the node_score indicator is defined according to the node_healthy indicator of the host status information to clarify the pros and cons of the node status; the node whose status is marked as schedulable in the Filter stage will enter the subsequent Score stage; the calculation formula of the node_score indicator is: Among them, node_score μ The extended algorithm scores the node status in the process of scheduling application μ; When the application μ's demand for health resources is and When distributed in the i-th segment interval of application μ, the score of the application on the quality of the node status; weight μ In the process of scheduling application μ, the extended scheduling algorithm The weight of the node in the final score.

9. The application scheduling method based on the host health evaluation model and K8s according to claim 1 is characterized in that: In the step S8, the custom policy scheduler HealthyScheduler filters the schedulable nodes based on the node_filter_annotation indicator, and sorts the filtered nodes based on the node_score indicator to determine the schedulable nodes with the highest priority.

10. The method for application scheduling based on host health evaluation model and K8s according to claim 1, characterized in that: In step S9, after the Kubelet component monitors the application instance Pod information to be created synchronized to this node, it creates the application instance Pod according to the configuration of the business application YAML resource list.

Citation Information

Cited By

  • Fault sensing scheduling method, device and system based on Volcano

    CN119496720A