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

Method and device for controlling Pod resource occupancy, and electronic equipment

A technology of occupancy and resources, applied in the field of container clusters, can solve the problem of poor flexibility of Pod resource management, and achieve the effect of improving the flexibility of resource management

Pending Publication Date: 2021-12-14
BEIJING KINGSOFT CLOUD NETWORK TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At the same time, in the management of pods, there is also a requirement for limiting the resources occupied by pods. In related technologies, the cgroup mechanism limits the resource occupancy of pods, mainly based on the sum of the maximum resource occupancy of each container in the pod. The maximum resource usage of the Pod, it is difficult to determine the maximum resource usage of the Pod according to the actual needs of the Pod, and the resource management flexibility of the Pod is poor

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
  • Method and device for controlling Pod resource occupancy, and electronic equipment
  • Method and device for controlling Pod resource occupancy, and electronic equipment
  • Method and device for controlling Pod resource occupancy, and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0054] A possible implementation manner: run the management process through the container, and read the pre-configured maximum number of CPUs available to the target Pod from the specified configuration file.

[0055] The above specified configuration file may be a configuration file written through yaml (another markup language), and at the same time, the maximum number of CPUs available to the target Pod is written in the specified configuration file. The configuration file specified above can pass the maximum number of CPUs available to the target Pod to the container running management process.

[0056] Step 205, based on the maximum number of CPUs available to the target Pod, determine the resource control parameters for the target virtual machine in the resource control process; wherein, the resource control parameters include: the operating cycle of the CPU, and the longest CPU operating cycle for the target Pod operating hours;

[0057] Specifically, the longest sleep...

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 method and a device for controlling Pod resource occupancy, and electronic equipment. The method comprises the following steps: starting a container running management process; creating a resource control process of the target virtual machine, and determining resource control parameters for the target virtual machine based on a preset resource occupation amount of the target Pod; and controlling the resource occupation amount of the target Pod based on the resource control process and the resource control parameters. The method comprises the following steps: in a process of creating a virtual machine running Pod, determining a resource control parameter of a target virtual machine in a resource control process through a resource occupation amount preset by the Pod; after the virtual machine is created, controlling the resource occupation amount of the target Pod based on the resource control process and the resource control parameter, the resource occupation amount of the Pod can be accurately controlled according to the actual demand of the Pod, the resource management flexibility of the Pod is improved, and the limitation of the resource occupation amount of the Pod and the container based on a cgroup mechanism is realized.

Description

technical field [0001] The present invention relates to the technical field of container clusters, in particular to a method, device and electronic equipment for controlling Pod resource occupation. Background technique [0002] In a container cluster, containers are usually managed in units of Pods; a Pod is a collection of containers, that is, a Pod includes multiple containers, and a Pod runs in a virtual machine. In related technologies, starting the cgroup (control group, derived from the control group) mechanism in the virtual machine kernel can limit the maximum resource usage of each container in the Pod, so as to avoid excessive competition for resources between containers, resulting in An exception occurred in the business. At the same time, in the management of Pods, there are also requirements for restricting the resources occupied by Pods. In related technologies, the cgroup mechanism limits the resource usage of Pods, mainly based on the sum of the maximum res...

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/455G06F9/48
CPCG06F9/45558G06F9/4825G06F9/485G06F2009/45562G06F2009/45575
Inventor 姜智成
Owner BEIJING KINGSOFT CLOUD NETWORK 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