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

Container resource allocation method and device

A resource allocation device and resource allocation technology, applied in the field of container resource allocation methods and devices, can solve problems such as poor network connectivity, prolonging the execution time of big data jobs, and small available bandwidth of containers, and achieve the effect of optimizing performance

Active Publication Date: 2019-06-07
CHINA UNITED NETWORK COMM GRP CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, on the one hand, the network occupancy of the underlying physical resources is dynamic, that is, the static 10Mb / s bandwidth does not mean that the current available bandwidth of the physical resource is 10Mb / s. At the same time, the larger the static bandwidth, the higher the available bandwidth. Big assumptions naturally do not hold
On the other hand, this method focuses on the performance of the underlying physical resources, and the performance of the underlying physical resources cannot be simply mapped to the performance of the upper-layer container resources. For example, the available bandwidth of the underlying physical resources is large, but due to carrying too many containers , the available bandwidth per container may be less
[0005] To sum up, it is difficult to select a group of containers with good network connection for a period of time by applying the current method, and it is even possible to select a group of containers with poor network connectivity, and deploy big data applications on the containers selected by the current method , which may lead to low performance of big data applications, waste of resources, and prolong the execution time of big data operations

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
  • Container resource allocation method and device
  • Container resource allocation method and device
  • Container resource allocation method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0033] Such as figure 1 As shown, this embodiment provides a container resource allocation method, including the following steps:

[0034] S1. According to the available bandwidth between containers of N containers in the network, using containers as nodes and using the available bandwidth between two containers as edge weights, construct an undirected weighted complete graph.

[0035] Such as figure 2 As shown, each container can be regarded as a node in the graph. Since the containers are connected in pairs, and the communication between two containers does not need to be forwarded by other containers, the network topology of all containers can be regarded as an undirected complete graph. At the same time, the bandwidth between any two container nodes can be passed The bandwidth measurement unit such as IPerf measures periodically, and then gives the statistical available bandwidth within a certain time interval. Can be figure 1 The weight of the middle edge is set to t...

Embodiment 2

[0073] Such as image 3 As shown, this embodiment provides a device for allocating container resources, which can adopt the method for allocating container resources in Embodiment 1. The device for allocating container resources in this embodiment includes: a complete graph construction module, an optimal cluster node acquisition module, and a communication module; wherein, the complete graph construction module is used to base the available bandwidth between containers of N containers in the network , with the container as the node and the available bandwidth between the two containers as the edge weight, construct an undirected weighted complete graph; the optimal cluster node acquisition module is used to calculate each cluster node according to the complete graph , the one with the smallest bandwidth between any two nodes, compare the one with the smallest bandwidth between any two nodes in all clusters to obtain a cluster of nodes with the largest bandwidth, where each cl...

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 provides a container resource allocation method and device, and belongs to the technical field of communications. The container resource allocation method comprises the steps that 1, according to available bandwidths between N containers in a network, an undirected weighted complete graph is structured by taking the containers as nodes and taking the available bandwidths between every two containers as edge weights; 2, according to the complete graph, the smallest bandwidth between any two nodes in each cluster node is calculated, and the smallest bandwidths between any two nodes in all clusters are compared and calculated to obtain the cluster node with the largest bandwidth, wherein each cluster node comprises K nodes, and K is smaller than or equal to N; 3, big data is deployed on the cluster node obtained through calculation, and communication is conducted.

Description

technical field [0001] The invention belongs to the technical field of communications, and in particular relates to a container resource allocation method and device. Background technique [0002] With the popularity of lightweight Linux containers, containers are replacing virtual machines as the hosting environment for applications. At the same time, due to the different network connections of the host physical hosts, the network connections between containers vary greatly. At the same time, due to the influence of changes in the utilization rate of the underlying physical machine network, the network connections between containers also change dynamically. Yes, but this change does not fluctuate much within a certain time range. However, with the popularization of MPI / lightweight Linux containers, containers are replacing virtual machines as the hosting environment for applications. At the same time, due to the different network connections of the host physical hosts, th...

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): G06F9/50
CPCG06F9/5088
Inventor 雷磊王志军房秉毅
Owner CHINA UNITED NETWORK COMM GRP 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