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

Resource control method and device, electronic equipment and computer readable storage medium

A resource control and resource technology, applied in the computer field, can solve problems such as jitter, and achieve the effect of avoiding jitter

Pending Publication Date: 2022-03-08
CHINA TELECOM CORP LTD
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this method will cause jitter due to frequent resource expansion and contraction 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
  • Resource control method and device, electronic equipment and computer readable storage medium
  • Resource control method and device, electronic equipment and computer readable storage medium
  • Resource control method and device, electronic equipment and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0093] Step S610, performing a quotient operation on the number of target tasks and the number of tasks executed by a single instance to obtain the number of first instances;

[0094] Step S620, perform a resource expansion operation according to the first instance quantity.

[0095] That is to say, in an optional embodiment, the target task number and the number of tasks executed by a single instance may be calculated to obtain the first instance number, and then resource expansion operations are performed according to the first instance number. That is, the first number of instances obtained is the number of instances corresponding to the expansion operation; therefore, the resource expansion operation based on the first number of instances can enable the execution of the target task, which is sufficient to support the normal operation of the preset service, and will not be caused by Random expansion of resources results in too much or too little expansion.

[0096] Specifi...

no. 2 example

[0110] Specifically, the second instance quantity can be obtained by the following formula:

[0111]

[0112] Optionally, if there is no target task, the total number of instances required to run the preset service can also be calculated; specifically, the total number of instances required to run the preset service can be obtained by the following formula:

[0113]

[0114]In the embodiment of this application, resource expansion is performed when the number of blocked target tasks included in the preset service reaches the preset blocked number threshold, instead of when the utilization rate of the resource pool is greater than the corresponding resource parameter. When the upper threshold of the preset utilization rate is reached, the resource expansion operation will be performed, so that the resources can run at full capacity, thereby avoiding the problem of jitter caused by frequent resource expansion and contraction operations, and only when the number of blocked t...

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 discloses a resource control method and device, electronic equipment and a computer readable storage medium, and the method comprises the steps: obtaining a plurality of tasks corresponding to a preset service, and enabling the preset service to represent a service of which the execution period is smaller than a preset period threshold value and the number of all tasks is larger than a preset task number threshold value; then, determining blocked target tasks from the plurality of tasks, and counting the number of the target tasks; and then, if the statistical result indicates that the number of the target tasks reaches a preset blocking number threshold value, carrying out resource capacity expansion operation. According to the technical scheme provided by the embodiment of the invention, the resource control scheme is greatly optimized, and the problem of jittering caused by frequent resource capacity expansion and contraction operation is avoided.

Description

technical field [0001] The present application relates to the field of computer technology, and in particular, to a resource control method, a resource control device, electronic equipment, and a computer-readable storage medium. Background technique [0002] With the development of cloud computing and artificial intelligence, container technology has become more and more widely used. In the cloud computing environment, large-scale deployment of containers is required, and corresponding cluster management solutions have emerged. Among them, the container-based cluster management platform (Kubernetes) provides container applications with many functions such as service registration, load balancing, service deployment and operation, resource expansion and contraction, and resource scheduling. [0003] At present, in related technologies, the horizontal automatic scaling mechanism (HorizontalPod Autoscaler, HPA) in kubernetes is used to realize resource expansion and contraction...

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/5027G06F9/5083
Inventor 陈博豪邱诗鹏李凌
Owner CHINA TELECOM CORP 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