Resource scheduling method based on kubernetes

A resource scheduling and algorithm technology, applied in the field of resource scheduling based on kubernetes, can solve problems such as monopoly, affecting business operation, and low-priority Pods cannot run

Active Publication Date: 2019-07-02
ZHEJIANG UNIV OF TECH
View PDF11 Cites 44 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The present invention solves the problem that in the prior art, the Priorities algorithm in the kubernetes default scheduler can calculate the score of each Node according to the requirements of each Pod instance, reducing the efficiency of resource scheduling, while the sorting algorithm of the Pod priority queue in kubernetes Adopting a static priority strategy may lead to large businesses monopolizing some nodes for a long time, reducing the efficiency of business deployment, and some low-priority Pods cannot run for a long time, affecting the operation of the overall business. An optimized kubernetes-based resource scheduling is provided. method

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Resource scheduling method based on kubernetes
  • Resource scheduling method based on kubernetes
  • Resource scheduling method based on kubernetes

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0049] The present invention will be further described in detail below in conjunction with examples, but the implementation scope of the present invention is not limited thereto.

[0050] The invention relates to a kubernetes-based resource scheduling method, including static scheduling and dynamic resource load balancing.

[0051] The method includes the following steps.

[0052] Step 1: Initialize, calculate the scores of all Nodes in the cluster, and add all Nodes to the priority queue of the first node according to the scores from high to low; monitor all Pods in the cluster.

[0053] In the step 1, calculating the scores of all nodes includes the following steps:

[0054] Step 1.1: Calculate the score of all nodes with the minimum consumption algorithm 1 , score 1 Including the sum of cpu utilization, memory utilization and network bandwidth utilization;

[0055] In the step 1.1, score 1 =cpu((capacity-sum(requested))10 / capacity)+memory((capacity-sum(requested))10 / ca...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a resource scheduling method based on kubernetes. The method comprises steps of calculating all Node scores in the cluster according to a fixed rule to generate a first node priority queue, and obtaining a Pod priority queue by using a dynamic priority algorithm, wherein the two queues filter Node which cannot be scheduled to generate a second node priority queue; selecting the node with the highest priority from the Pod priority queues to bind with the Pod popped by the Pod priority queues; and if the binding succeeds, entering the next Pod scheduling cycle, if the binding fails, adopting a built-in priority algorithm to optimize Node binding from the second node priority queue, and if the binding fails again, enabling the Pod to run without an appropriate Node, and entering the next Pod scheduling cycle. The method comprises the steps of static scheduling and dynamic resource load balancing, scheduling efficiency is improved, task deployment efficiency is improved, task operation integrity and load balance of the whole cluster are improved, load balance of the cluster is actively adjusted, and resource utilization efficiency of the cluster is improved.

Description

technical field [0001] The invention belongs to the technical field of digital information transmission, such as telegram communication, and in particular relates to a kubernetes-based resource scheduling method for accelerating cluster task deployment efficiency. Background technique [0002] Kubernetes is a container orchestration engine open sourced by Google. It supports automated deployment, large-scale scalability, and application container management. It can manage the status of multiple nodes (Nodes) in a large-scale cluster and the operation of Pods on nodes. When an application is deployed in a production environment, multiple instances of the application are usually deployed to load balance application requests. [0003] In Kubernetes, container virtualization technology is a way of sharing server resources, which can meet the needs of building customized containers on demand. It is different from traditional virtual technology, and it is more flexible and conveni...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/50
CPCG06F9/505G06F9/5083G06F2209/5021
Inventor 郑雅羽韩沈钢王济浩
Owner ZHEJIANG UNIV OF TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products