Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Resource allocation method, device and electronic equipment in a mesos management cluster

A resource allocation device and technology for resource allocation, applied in the fields of electronic equipment and resource allocation, can solve the problems of resource waste, long tasks, low usage status, etc., and achieve the effect of saving resources and improving resource utilization.

Active Publication Date: 2020-01-10
BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In the process of implementing the present invention, the inventor found that at least the following problems exist in the prior art: the tasks performed by the slave nodes are usually long tasks, for example, it may take a month for the slave nodes to perform a certain task
In actual situations, the amount of resources specified by the terminal for a certain task is usually greater than the actual amount of resources used by the slave node to execute the task, and when the slave node executes the task for a long time, the actual amount of resources used varies with time. Dynamically changing, the actual amount of resources will be in a low usage state for a long time. Therefore, when the actual amount of resources is low, the resources allocated from the slave nodes will be wasted a lot, thereby reducing the resources in the Mesos management cluster Utilization

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 allocation method, device and electronic equipment in a mesos management cluster
  • Resource allocation method, device and electronic equipment in a mesos management cluster
  • Resource allocation method, device and electronic equipment in a mesos management cluster

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention.

[0047] In order to achieve the above object, an embodiment of the present invention provides a resource allocation method in a Mesos management cluster, figure 1 It is a flow chart of a resource allocation method in a Mesos management cluster provided by an embodiment of the present invention, the method can be applied to a slave node, and the method includes:

[0048] S110. Determine at least one task currently in execution state.

[0049]In this embodiment, the task may be any task that can be executed by the slave node. Of course, when the task is a task with a long execution time, the advantages of the embodiment of the present invention over the prior art are more obvious. For example, a task with a long execution time may be: a task whose execution time is performed in ...

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 embodiment of the invention provides a resource allocation method and device in a Mesos management cluster and an electronic device. The method comprises the steps of determining at least one task which is currently in a performance state; determining the optimum resource quantity required for performing the at least one task according to the practical resource quantity used for performing the at least one task within a preset time period; calculating the total target resource quantity required for performing the at least one task according to the determined optimum resource quantity; and allocating resources according to the target resource quantity, thereby performing the at least one task. According to the embodiment of the invention, the practical resource quantity is smaller than appointed resource quantity and the obtained optimum resource quantity is also smaller than the appointed resource quantity, so the target resource quantity is smaller than the sum of the appointed resource quantity corresponding to each task; and the resources are allocated according to the target resource quantity, thereby performing the at least one task, so the resources are saved, the allocation of the resources satisfies the resource demands of the tasks well, and the resource utilization rate in the Mesos management cluster can be improved.

Description

technical field [0001] The present invention relates to the field of electronic technology, in particular to a resource allocation method, device and electronic equipment in a Mesos management cluster. Background technique [0002] The Mesos (distributed system kernel) management cluster is composed of multiple servers and is used to perform tasks for external terminals. [0003] Specifically, the Mesos management cluster includes a master node server ("master node" for short) and a slave node server ("slave node" for short), and each master node is connected to multiple slave nodes. Each slave node itself has certain resources for performing tasks (such as CPU, memory, etc.), and reports the current resource usage to the master node in real time. The master node can receive the task execution request sent by the terminal, and schedule its slave nodes to execute tasks according to the resource usage of its slave nodes. [0004] In the prior art, when the terminal sends a t...

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 Patents(China)
IPC IPC(8): H04L29/08
CPCH04L67/1044H04L67/1074
Inventor 李军赵慰
Owner BEIJING QIYI CENTURY SCI & TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products