Computer resource management method and device

By detecting the resource utilization rate of physical machines and adjusting resource allocation according to business type, the problems of low resource utilization rate and high business cost in the existing technology are solved, and more efficient resource management and cost reduction are achieved.

CN119883585APending Publication Date: 2025-04-25BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311387486.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-24
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

In the prior art, different types of services are deployed on different physical machines, resulting in lower resource utilization of physical machines and a larger number of physical machines required, resulting in higher business costs.

Method used

By detecting the increase in resource utilization rate of the physical machine, the business type of the target service is determined, and the adjustment is made based on the reported resource threshold and the suppression resource threshold, the resource allocation of the target service is increased, and the resource allocation of other service types is reduced to improve resource utilization.

Benefits of technology

It improves the resource utilization rate of physical machines, reduces business operation costs, ensures the smooth operation of target services, and reasonably allocates resources on physical machines.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119883585A_ABST
    Figure CN119883585A_ABST
Patent Text Reader

Abstract

The invention discloses a computer resource management method and device, and relates to the technical field of computers. A specific embodiment of the computer resource management method comprises the steps of determining a corresponding target service from a plurality of services running on a physical machine in response to detection of increase of a resource utilization rate of the physical machine, and determining a service type of the target service; querying a report resource threshold value and a suppression resource threshold value associated with the service type; and according to the report resource threshold, increasing the suppression resource threshold, so that the increased suppression resource threshold is less than or equal to the report resource threshold. According to the embodiment, the resources allocated to the different types of services on the physical machine are adjusted according to the reported resource threshold value and the suppression resource threshold value, the resource utilization rate of the physical machine can be improved, and the service operation cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method and device for computer resource management. Background Art

[0002] There are many types of services running on physical machines, and different types of services have different resource requirements. For example, the resource usage of online services fluctuates over time and requires a smaller time delay, while offline services often require a larger resource usage and do not require a high time delay. Usually, different types of services are deployed on different physical machines, for example, one physical machine is used to run online services, and another physical machine is used to run offline services.

[0003] In the process of implementing the present invention, the inventors found that the prior art has at least the following problems:

[0004] Deploying different types of services on different physical machines results in low resource utilization of the physical machines, a large number of physical machines are required, and high service costs. Summary of the invention

[0005] In view of this, an embodiment of the present invention provides a method and apparatus for computer resource management, which can improve resource utilization of physical machines and reduce business operation costs.

[0006] To achieve the above object, according to a first aspect of an embodiment of the present invention, a method for computer resource management is provided, comprising:

[0007] In response to detecting that the resource usage rate of the physical machine increases, determining a corresponding target business from a plurality of businesses running on the physical machine, and determining a business type of the target business;

[0008] Querying a reporting resource threshold and a suppression resource threshold associated with the service type;

[0009] According to the reporting resource threshold, the suppression resource threshold is increased so that the increased suppression resource threshold is less than or equal to the reporting resource threshold.

[0010] Optionally, after determining the service type of the target service, the method further includes:

[0011] Determining other business types other than the business type of the target business;

[0012] The suppression resource threshold associated with the other traffic type is reduced.

[0013] Optionally, the method further comprises:

[0014] Querying the guaranteed resource threshold associated with the other service type;

[0015] For each other service type, determining whether the reduced suppression resource threshold is less than the corresponding guarantee resource threshold;

[0016] In the case that the reduced suppression resource threshold is less than the corresponding guaranteed resource threshold, the suppression resource threshold is increased so that the increased suppression resource threshold is equal to the guaranteed resource threshold.

[0017] Optionally, the method further comprises:

[0018] In response to detecting that the resource usage rate of the target service decreases, determining a service type of the target service;

[0019] Querying a guaranteed resource threshold and a suppressed resource threshold associated with the service type;

[0020] According to the guaranteed resource threshold, the suppressed resource threshold is reduced so that the reduced suppressed resource threshold is greater than or equal to the guaranteed resource threshold.

[0021] Optionally, determining the service type of the target service includes:

[0022] Using the proxy component of the physical machine to read a preset configuration file;

[0023] Query the configuration information of the target service from the configuration file;

[0024] The service type of the target service is determined according to the configuration information.

[0025] Optionally, before detecting that the resource usage rate of the physical machine increases, the method further includes:

[0026] According to the business type, multiple pre-set businesses are divided into multiple business sets;

[0027] Dividing the CPU cores included in the physical machine into multiple CPU core sets, and establishing association relationships between the multiple business sets and the multiple CPU core sets;

[0028] Bind multiple containers used to run different services to associated CPU cores respectively.

[0029] Optionally, the method further comprises: setting priorities for the multiple services according to the service type;

[0030] In the case where there are multiple target services, the suppression resource threshold is increased according to the reported resource threshold, including: determining the threshold increment for each target service according to the priority of each target service, and increasing the suppression resource threshold associated with the service type of each service according to the threshold increment.

[0031] According to a second aspect of an embodiment of the present invention, there is provided a computer resource management apparatus, comprising:

[0032] a determination module, configured to, in response to detecting an increase in resource usage of a physical machine, determine a target business using the resources from a plurality of businesses running on the physical machine, and determine a business type of the target business;

[0033] A query module, used to query the reporting resource threshold and the suppression resource threshold associated with the service type;

[0034] The increasing module is used to increase the suppression resource threshold according to the reporting resource threshold, so that the increased suppression resource threshold is less than or equal to the reporting resource threshold.

[0035] Optionally, the device further comprises:

[0036] A second determination module, used to determine other business types except the business type of the target business;

[0037] The first reducing module is used to reduce the suppression resource threshold associated with the other service types.

[0038] Optionally, the device further comprises:

[0039] A second query module, used to query the guaranteed resource threshold associated with the other service type;

[0040] A determination module, for determining, for each other service type, whether the reduced suppression resource threshold is less than the corresponding guarantee resource threshold;

[0041] A module is further added, which increases the suppression resource threshold when the reduced suppression resource threshold is less than the corresponding guarantee resource threshold, so that the increased suppression resource threshold is equal to the guarantee resource threshold.

[0042] Optionally, the device further comprises:

[0043] A third determination module, configured to determine a service type of the target service in response to detecting that the resource usage rate of the target service decreases;

[0044] A third query module, used to query the guaranteed resource threshold and the suppressed resource threshold associated with the service type;

[0045] The second reducing module is used to reduce the suppression resource threshold according to the guaranteed resource threshold, so that the reduced suppression resource threshold is greater than or equal to the guaranteed resource threshold.

[0046] Optionally, determining the service type of the target service includes:

[0047] Using the proxy component of the physical machine to read a preset configuration file;

[0048] Query the configuration information of the target service from the configuration file;

[0049] The service type of the target service is determined according to the configuration information.

[0050] Optionally, the device further comprises:

[0051] A classification module, used to classify a plurality of pre-set services into a plurality of service sets according to the service type;

[0052] An association module, used to divide the CPU cores included in the physical machine into multiple CPU core sets, and establish an association relationship between the multiple business sets and the multiple CPU core sets;

[0053] The binding module is used to bind multiple containers for running different services to CPU cores with associated relationships.

[0054] Optionally, the device further comprises: a level setting module, configured to set priorities for the multiple services according to the service type;

[0055] In the case where there are multiple target services, the suppression resource threshold is increased according to the reported resource threshold, including: determining the threshold increment for each target service according to the priority of each target service, and increasing the suppression resource threshold associated with the service type of each service according to the threshold increment.

[0056] According to a third aspect of an embodiment of the present invention, there is provided an electronic device, including:

[0057] one or more processors;

[0058] a storage device for storing one or more programs,

[0059] When the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any one of the above embodiments.

[0060] According to a fourth aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method described in any one of the above embodiments is implemented.

[0061] One embodiment of the above invention has the following advantages or beneficial effects: according to the reported resource threshold and the suppressed resource threshold, the resources allocated to different types of services on the physical machine are adjusted, which can improve the resource utilization rate of the physical machine and reduce the service operation cost; determine other business types except the target business type, and reduce the suppressed resource threshold associated with other business types, which can reduce the competition between other business types and the target business for resources and ensure the smooth operation of the target business; when the reduced suppressed resource threshold is less than the guaranteed resource threshold, increase the suppressed resource threshold, which can guarantee the basic resources required by other business types and enable the smooth operation of other business types; after the resource utilization rate of the target business decreases, reduce The suppression resource threshold of the target resource can flexibly adjust the suppression resource threshold of the target business resource so that the target business is allocated to the appropriate amount of resources, ensuring the reasonable allocation of resources on the physical machine; using the proxy component to read the configuration file, and determining the business type of the target business according to the configuration information in the configuration file, it can accurately and efficiently determine the business type and improve the decision-making efficiency of each resource threshold; binding businesses of different business types to different CPU cores can enable businesses of different business types to run on the same physical machine, increase the resource utilization of the physical machine, and reduce business operating costs; setting priorities for different businesses can ensure that businesses with higher priorities get resources first, improving the flexibility and accuracy of resource allocation.

[0062] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0064] Figure 1 is a schematic diagram of the main process of the method for computer resource management according to an embodiment of the present invention;

[0065] Figure 2 is a schematic diagram of the overall process of a method for computer resource management according to a reference embodiment of the present invention;

[0066] Figure 3 is a schematic diagram of computer resource classification according to a reference embodiment of the present invention;

[0067] Figure 4 is a schematic diagram of computer resource allocation according to a reference embodiment of the present invention;

[0068] Figure 5 is a schematic diagram of the main process of a method for computer resource management according to a reference embodiment of the present invention;

[0069] Figure 6is a schematic diagram of the main process of a method for computer resource management according to another reference embodiment of the present invention;

[0070] Figure 7 is a schematic diagram of main modules of a computer resource management apparatus according to an embodiment of the present invention;

[0071] Figure 8 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0072] Fig. 9 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0073] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0074] It should be noted that in the technical solution of the present invention, the collection, use, storage, sharing and transfer of user personal information involved are in compliance with the provisions of relevant laws and regulations, and it is necessary to inform the user and obtain the user's consent or authorization. When applicable, the user's personal information is de-identified and / or anonymized and / or encrypted.

[0075] There are many types of services running on physical machines, and different types of services have different resource requirements. For example, the resource usage of online services fluctuates over time and requires a smaller time delay, while offline services often require a larger resource usage and do not require a high time delay. Usually, different types of services are deployed on different physical machines, for example, one physical machine is used to run online services, and another physical machine is used to run offline services.

[0076] Deploying different types of services on different physical machines results in low resource utilization of the physical machines, a large number of physical machines are required, and high service costs.

[0077] In view of this, according to a first aspect of an embodiment of the present invention, a method for managing computer resources is provided.

[0078] Figure 1 FIG. 1 is a schematic diagram of the main process of the method for computer resource management according to an embodiment of the present invention. Figure 1As shown, the computer resource management method according to the embodiment of the present invention mainly includes the following steps S101 to S103.

[0079] Step S101 : in response to detecting that the resource usage rate of a physical machine increases, determining a corresponding target business from a plurality of businesses running on the physical machine, and determining a business type of the target business.

[0080] The execution subject of the embodiment of the present invention detects the resource usage of the physical machine, which is a physical computer or a physical server, having hardware (e.g., CPU (Central Processing Unit) core, hard disk, etc.) and software (e.g., operating system, etc.), and the resources possessed by the physical machine include: CPU resources and memory resources, etc. The physical machine has one or more CPU cores. For example, the execution subject of the embodiment of the present invention records the resource usage of the physical machine at regular intervals, including: CPU usage, remaining memory space, etc., and determines the changes in CPU usage and remaining memory space.

[0081] There are multiple services deployed on the physical machine, and each service is allocated a certain amount of resources to ensure the normal operation of the service. When it is detected that the resource utilization of the physical machine has increased, for example, when the CPU utilization increases or the remaining memory space decreases, the execution subject of the embodiment of the present invention determines the process that causes the increase in resource utilization among multiple processes, queries the service to which the process belongs, and uses the queried service as the target service. The execution subject of the embodiment of the present invention determines the service type of the target service based on the service name, service description and other information of the target service. The multiple services deployed on the physical machine have different service types, and the service types include: online service, offline service, and so on.

[0082] Exemplarily, the execution subject of the embodiment of the present invention detects an increase in CPU usage, determines that the process number causing the increase in CPU usage is 01, and queries that the business to which the process number "01" belongs is: data backup business, and takes the data backup business as the target business; the execution subject of the embodiment of the present invention queries the pre-set business type comparison table, searches for the corresponding business type according to the business name "data backup" of the target business, and determines that the business type of the target business is an offline business.

[0083] Identify the target business that causes the increase in resource utilization, query the business type of the target business, provide information support for the resource management of the physical machine, and facilitate quick and accurate adjustment of the resource allocation strategy of the physical machine when the resource utilization of the physical machine changes.

[0084] According to a reference embodiment of the present invention, a proxy component is pre-set on a physical machine, and the proxy component is used to distinguish the business types of different businesses running on the physical machine. When determining the business type of a target business, the proxy component of the physical machine is used to read a pre-set configuration file, and the configuration file includes business information of all businesses running on the physical machine, such as business name, business type, business description, deployment time, etc. The proxy component is used to query the configuration information of the target business from the configuration file. The business type of the target business is determined from the configuration information of the target business.

[0085] Exemplarily, Kubernetes is used to manage businesses running on physical machines. Kubernetes (abbreviated as "k8s") is an open source container automation operation and maintenance platform for managing containerized applications on multiple physical machines in the platform; the Kubernetes proxy component kube-proxy is pre-set on the physical machine, and the execution subject of the embodiment of the present invention uses the proxy component kube-proxy to read the configuration file, and the configuration information of the target business is queried, including "{'id':'10'; 'type':'online'; 'describe':'queryItem'}", wherein "'id':'10'" indicates that the business number of the target business is "10", "'type':'online'" indicates that the business type of the target business is an online business, and "'describe':'queryItem'" indicates that the target business is used to respond to product query requests; the execution subject of the embodiment of the present invention determines that the business type of the target business is an online business based on the above configuration information.

[0086] Using proxy components to query the business type of the target business can improve the efficiency of business type query; since the operating system of the physical machine cannot distinguish the business type of the target business, using proxy components can simplify the business type query process; setting up separate proxy components on each physical machine can isolate the proxy components of different physical machines, ensuring that the business type query processes on different physical machines do not affect each other.

[0087] According to another reference embodiment of the present invention, before detecting an increase in resource utilization of the physical machine, the method further includes: dividing multiple services that need to be deployed on the physical machine into multiple service sets according to service type, each service set is used to store services of the same service type, and the number of service sets is the same as the number of service types of the multiple services. Dividing the CPU cores included in the physical machine into multiple CPU core sets, the CPU core sets are used to store one or more CPU cores, and the number of CPU core sets is the same as the number of service sets. Establishing an association relationship between multiple service sets and the multiple CPU core sets, specifically, each service set is associated with a CPU core set, and the CPU core sets associated with each service set are different. Since the service set is associated with the service type, each CPU core set is associated with a service type.

[0088] After establishing the association between the CPU core set and the service type, multiple containers used to run different services are bound to the CPU cores with the association relationship. Specifically, each container is used to run a service of a service type, and the corresponding CPU core is determined according to the service type. The container is bound to the determined CPU core. The bound container can only run on the CPU core with the binding relationship, and the service in the container can only use the CPU resources of the CPU core with the binding relationship.

[0089] Exemplarily, five services, namely, service A1, service A2, service A3, service A4 and service A5, are pre-set, wherein the service type of service set B1 consisting of service A1 and service A2 is an online service, the service type of service set B2 consisting of service A3 and service A4 is an offline service, and the service type of service set B3 consisting of service A5 is a periodic service; the pre-set physical machine has 10 CPU cores, and the 10 CPU cores are divided into CPU core set C1 (including 4 CPU cores), CPU core set C2 (including 4 CPU cores), CPU core set C3 (including 2 CPU cores), etc. There are 3 CPU core sets, and the number of CPU core sets is the same as the number of business sets; the businesses included in business set B1 are bound to CPU core set C1, the businesses included in business set B2 are bound to CPU core set C2, and the businesses included in business set B3 are bound to CPU core set C3, so that business A1 and business A2 whose business types are online businesses use the CPU resources included in CPU core set C1, business A3 and business A4 whose business types are offline businesses use the CPU resources included in CPU core set C2, and business A5 whose business type is periodic business uses the CPU resources included in CPU core set C3.

[0090] By binding containers running different services to specific CPU cores and separating the CPU resources of different service types, it is possible to achieve the effect of mixed deployment of services of multiple service types, avoid mutual influence and resource grabbing of services of multiple service types, improve the resource utilization of physical machines, reduce the number of physical machines required to run services, and reduce service operating costs.

[0091] Step S102: querying a reporting resource threshold and a suppression resource threshold associated with the service type.

[0092] After determining the service type of the target service, the execution subject of the embodiment of the present invention queries the reporting resource threshold and the suppression resource threshold associated with the service type. The reporting resource threshold is the number of resources available to the service of this service type in the physical machine. For example, if the physical machine has 100 CPU cores and the reporting resource threshold is 0.2, it means that the service of this service type can use the resources of (100×0.2)=20 CPU cores. The suppression resource threshold is the maximum number of resources that can be used by the service of this service type when running the service of this service type in the physical machine. For example, if the physical machine has 100 CPU cores and the suppression resource threshold is (100×0.1)=0.1, the service of this service type can only use the resources of 10 CPU cores during actual operation. The reporting resource threshold is greater than or equal to the suppression resource threshold, and the suppression resource threshold is dynamic, that is, the maximum number of resources that can be used by a service of a service type during operation is variable.

[0093] Before querying the reporting resource threshold and the suppression resource threshold associated with the service type, the method further includes: presetting the initial value of the reporting resource threshold and the initial value of the suppression resource threshold of each service type on the physical machine, so that the physical machine allocates resources to the service running on the physical machine according to the pre-set reporting resource threshold and the suppression resource threshold. Preferably, the reporting resource threshold and the suppression resource threshold of each service type on the physical machine are configured using a proxy component, and the proxy component applicable to the embodiment of the present invention includes: the proxy component kube-proxy of Kubernetes.

[0094] Exemplarily, online business type services and offline business type services are running on the physical machine. Before querying the reporting resource threshold and the suppression resource threshold, the execution subject of the embodiment of the present invention uses the proxy component kube-proxy to set the reporting resource threshold and the suppression resource threshold associated with the offline business, and sets the reporting resource threshold of the memory resources used by the offline business to 0.3. When the physical machine has 100G memory, the memory resources that can be used by the offline business are (100×0.3)=30G. The suppression resource threshold of the memory resources used by the offline business is set to 0.15. When the physical machine has 100G memory, the maximum memory resources that can be used by the running offline business are (100×0.15)=15G.

[0095] Setting the reporting resource threshold and the suppression resource threshold can reasonably control the resource allocation of the physical machine, query the reporting resource threshold and the suppression resource threshold related to the business type, and provide a data basis for adjusting the resource allocation of the physical machine.

[0096] Step S103: increasing the suppression resource threshold according to the reporting resource threshold, so that the increased suppression resource threshold is less than or equal to the reporting resource threshold.

[0097] Since the resource utilization rate of the target service increases, more resources should be allocated to the target service. After determining the reporting resource threshold and the suppression resource threshold, the execution subject of the embodiment of the present invention increases the suppression resource threshold and makes the increased suppression resource threshold less than or equal to the reporting resource threshold, that is, increases the number of resources that can be used by the target service during operation and ensures that the number of resources used does not exceed the number of available resources.

[0098] Exemplarily, the reporting resource threshold queried by the execution subject of the embodiment of the present invention includes: the number of CPU resources is 10 (that is, the business belonging to the same business type as the target business can use 10 CPU cores), the number of memory resources is 50 (that is, the business belonging to the same business type as the target business can use 50G memory), and the suppression resource threshold includes: the number of CPU resources is 5 (that is, the business belonging to the same business type as the target business can use up to 5 CPU cores during operation), the number of memory resources is 20 (that is, the business belonging to the same business type as the target business can use up to 50G memory during operation); increase the number of CPU resources and the number of memory resources in the suppression resource threshold, and make the increased number of CPU resources less than or equal to the number of CPU resources in the reporting resource threshold, and make the increased number of memory resources less than or equal to the number of memory resources in the reporting resource threshold.

[0099] By adjusting the resources allocated to different types of services on the physical machine according to the reporting resource threshold and the suppression resource threshold, the resource utilization of the physical machine can be improved, resources can be allocated to the services in need first, the business operation efficiency can be improved, and the efficient operation of the business can be ensured.

[0100] According to a reference embodiment of the present invention, after determining the service type of the target service, the method further includes: determining other service types except the service type of the target service, for example, if the service type of the target service is an online service, then the other service types include: offline service, periodic service (service executed periodically), occasional service (service executed occasionally), etc. Reduce the suppression resource threshold associated with other service types. Each service type is associated with a reporting resource threshold and a suppression resource threshold. After determining other service types, reduce the suppression resource threshold associated with other service types, that is, reduce the resources allocated to services of other service types.

[0101] Exemplarily, online services, offline services, periodic services and occasional services are running on a physical machine, wherein the amount of resources used by the online services increases, and the execution subject of an embodiment of the present invention takes the online services as the service type of the target services, increases the suppression resource threshold associated with the online services, for example, increases the memory resources associated with the online services from 10G to 15G, takes the offline services, periodic services and occasional services as other service types, reduces the suppression resource threshold associated with the offline services, periodic services and occasional services, for example, reduces the memory resources of the offline services, periodic services and occasional services by 5G.

[0102] Reducing the suppression resource threshold associated with other business types can reduce the probability of other business types competing with the target business for resources, increase the resources used by the target business, ensure the efficient operation of the target business, and reasonably allocate the resources of the physical machine.

[0103] According to another referenceable embodiment of the present invention, the method further includes: querying the guaranteed resource threshold associated with other business types. The guaranteed resource threshold is the minimum number of resources available to the business of this business type in the physical machine when it is running. For example, if the physical machine has 100 CPU cores and the guaranteed resource threshold is 0.1, it means that the business of this business type must use at least (100×0.1)=10 CPU cores of resources when running, and at least 10 CPU cores of resources should be allocated to the business of this business type.

[0104] Each service type is associated with a guaranteed resource threshold. Before querying the guaranteed resource thresholds associated with other service types, the method further includes: presetting the initial value of the guaranteed resource threshold of each service type on the physical machine, so that the physical machine allocates resources to the services running on the physical machine according to the pre-set reporting resource threshold, suppression resource threshold and guaranteed resource threshold. Preferably, a proxy component is used to configure the guaranteed resource threshold of each service type on the physical machine, and the proxy component applicable to the embodiment of the present invention includes: the proxy component kube-proxy of Kubernetes.

[0105] For each other business type, determine whether the reduced suppression resource threshold is less than the corresponding guarantee resource threshold; if the reduced suppression resource threshold is less than the corresponding guarantee resource threshold, increase the suppression resource threshold associated with the business type so that the increased suppression resource threshold is equal to the guarantee resource threshold.

[0106] Exemplarily, online services, offline services, periodic services and occasional services are running on a physical machine, wherein the amount of resources used by the online services increases, and the execution subject of an embodiment of the present invention reduces the suppression resource thresholds associated with the offline services, periodic services and occasional services, specifically, reducing the suppression resource threshold of the offline services from 0.3 to 0.1, reducing the suppression resource threshold of the periodic services from 0.35 to 0.15, and reducing the suppression resource threshold of the occasional services from 0.25 to 0.1; querying the guaranteed resource threshold of each service type, obtaining that the guaranteed resource threshold of the offline services is 0.15, the guaranteed resource threshold of the periodic services is 0.2, and the guaranteed resource threshold of the occasional services is 0.1; since the reduced suppression resource threshold of the offline services is less than the guaranteed resource threshold, the suppression resource threshold of the offline services is increased to be the same as its guaranteed resource threshold.

[0107] In the case where the reduced suppression resource threshold is less than the guaranteed resource threshold, increasing the suppression resource threshold can guarantee basic resources required by other service types and enable services of other service types to run smoothly.

[0108] According to another referenceable embodiment of the present invention, the method further includes: in response to detecting that the resource utilization rate of the target service decreases, determining the service type of the target service. Querying the guaranteed resource threshold and the suppressed resource threshold associated with the service type. According to the guaranteed resource threshold, reducing the suppressed resource threshold so that the reduced suppressed resource threshold is greater than or equal to the guaranteed resource threshold.

[0109] Exemplarily, the execution subject of the embodiment of the present invention monitors the CPU usage of the order query business. After monitoring that the CPU usage and memory usage of the order query business have decreased, the execution subject of the embodiment of the present invention takes the order query business as the target business, determines that the business type of the order query business is an online business, queries the suppression resource threshold and the guarantee resource threshold associated with the online business, determines the difference between the suppression resource threshold and the guarantee resource threshold, and then reduces the suppression resource threshold associated with the online business, and makes the reduction amount of the suppression resource threshold less than or equal to the difference between the suppression resource threshold and the guarantee resource threshold, thereby ensuring that the reduced suppression resource threshold is greater than or equal to the guarantee resource threshold.

[0110] After the resource utilization rate of the target business decreases, reducing the suppression resource threshold associated with the business type of the target business can reduce the CPU resources and memory resources occupied by the target business, making it easier for other businesses to allocate more resources; making the reduced suppression resource threshold greater than or equal to the guarantee resource threshold can ensure the smooth operation of the target business and avoid the target business from being unable to operate due to lack of necessary resources.

[0111] According to another referenceable embodiment of the present invention, the method further comprises: setting priorities for multiple services according to service types, and the priorities of services of different service types may be the same or different. Preferably, different priorities are set for services of different service types. In the case where there are multiple target services, when increasing the suppression resource threshold according to the reported resource threshold, the threshold increment of each target service is first determined according to the priority of each target service, and then the suppression resource threshold associated with the service type of each service is increased according to the threshold increment.

[0112] Exemplarily, the execution subject of the embodiment of the present invention detects that the CPU usage of target business D1 and target business D2 increases, that is, both target business D1 and target business D2 require more CPU core resources; the business type of target business D1 is online business, the business type of target business D2 is offline business, the priority of online business is 3, and the priority of offline business is 2. The larger the priority, the larger the corresponding threshold increment. Therefore, the threshold increment of target business D1 is determined to be 0.3. The threshold increment of target business D2 is 0.2, that is, the suppression resource threshold associated with online business is increased by 0.3, and the suppression resource threshold associated with offline business is increased by 0.2.

[0113] Setting priorities for different businesses can ensure that higher-priority businesses get resources first, improving the flexibility and accuracy of resource allocation.

[0114] Figure 2 FIG. 1 is a schematic diagram of the overall process of a method for managing computer resources according to a reference embodiment of the present invention. Figure 2 As shown, the execution subject of the embodiment of the present invention first sets the reporting resource threshold for each business type, schedules different businesses to the same physical machine according to the business type, sets the suppression resource threshold and guarantee resource threshold for each business type, binds businesses of different business types to different CPU cores on the physical machine, sets the priority of each business, and adjusts the corresponding suppression resource threshold according to the resource usage of each business.

[0115] Figure 3 FIG. 1 is a schematic diagram of computer resource classification according to a reference embodiment of the present invention. Figure 3 As shown, the physical machine 301 includes multiple online CPU cores such as online CPU1, online CPU2, and online CPU3. The online CPU cores are used to bind with online services, that is, online services obtain CPU resources from the online CPU cores; the physical machine 301 also includes multiple offline CPU cores such as offline CPU1, offline CPU2, and offline CPU3. The offline CPU cores are used to bind with offline services, that is, offline services obtain CPU resources from the offline CPU cores; the physical machine 301 also includes memory resources. The execution subject of the embodiment of the present invention sets the maximum memory resources (that is, the suppression resource threshold of the memory resources), the minimum memory resources (that is, the guaranteed resource threshold of the memory resources), and the available memory resources (that is, the reporting resource threshold of the memory resources) that can be used by online services and offline services.

[0116] Figure 4 Schematic diagram of computer resource allocation according to a reference embodiment of the present invention. Figure 4As shown, the left rectangle indicated by the online service 401 represents the reporting resource threshold associated with the online service, for example, the memory resources available for the online service, the solid line in the left rectangle represents the suppression resource threshold associated with the online service, and the dotted line in the left rectangle represents the guarantee resource threshold associated with the online service; the right rectangle indicated by the offline service 402 represents the reporting resource threshold associated with the offline service, for example, the memory resources available for the offline service, the solid line in the right rectangle represents the suppression resource threshold associated with the offline service, and the dotted line in the right rectangle represents the guarantee resource threshold associated with the offline service; for example, during the daytime period (such as 6:00 to 17:59 on the nth day, but not limited to this) , the online business volume increases, resulting in an increase in the resource utilization rate of the online business. Therefore, the execution subject of the embodiment of the present invention increases the suppression resource threshold associated with the online business and decreases the suppression resource threshold associated with the offline business, so that the solid line in the left rectangle moves up and the solid line in the right rectangle moves down; for example, during the night time period (such as 18:00 on the nth day to 5:59 on the n+1th day, but not limited to this), the online business volume decreases, resulting in a decrease in the resource utilization rate of the online business. Therefore, the execution subject of the embodiment of the present invention decreases the suppression resource threshold associated with the online business and increases the suppression resource threshold associated with the offline business, so that the solid line in the left rectangle moves down and the solid line in the right rectangle moves up. Since the suppression resource threshold should be greater than the guarantee resource threshold, the solid line in the rectangle is always higher than the dotted line.

[0117] Figure 5 FIG. 1 is a schematic diagram of the main process of a method for managing computer resources according to a reference embodiment of the present invention. Figure 5 As shown, the computer resource management method may include:

[0118] Step S501, in response to detecting that the resource usage rate of the physical machine increases, determining a corresponding target business from a plurality of businesses running on the physical machine, and determining a business type of the target business;

[0119] Step S502, querying the reporting resource threshold and the suppression resource threshold associated with the service type;

[0120] Step S503, increasing the suppression resource threshold according to the reported resource threshold, so that the increased suppression resource threshold is less than or equal to the reported resource threshold;

[0121] Step S504, determine whether the suppression resource is less than or equal to the guarantee resource threshold, if so, jump to step S505, otherwise, jump to step S506;

[0122] Step S505, increasing the suppression resource threshold so that the increased suppression resource threshold is equal to the guaranteed resource threshold associated with the service type of the target service;

[0123] Step S506, determining other service types except the service type of the target service, and reducing other suppression resource thresholds associated with the other service types;

[0124] Step S507, judging whether other suppression resources are less than or equal to other guarantee resource thresholds, if so, jumping to step S508, otherwise, jumping to step S501;

[0125] Step S508: increase other suppression resource thresholds so that the increased suppression resource thresholds are equal to other guaranteed resource thresholds associated with service types of other target services.

[0126] The specific implementation content of the computer resource management method of the above-mentioned reference embodiment of the present invention has been described in detail in the above-mentioned computer resource management method, so the repeated content will not be described again here.

[0127] Figure 6 FIG. 1 is a schematic diagram of the main process of a method for managing computer resources according to another reference embodiment of the present invention. Figure 6 As shown, the computer resource management method may include:

[0128] Step S601, in response to detecting that the resource usage rate of the physical machine increases, determining a corresponding target business from a plurality of businesses running on the physical machine, and determining a business type of the target business;

[0129] Step S602, querying the reporting resource threshold and the suppression resource threshold associated with the service type;

[0130] Step S603, increasing the suppression resource threshold according to the reported resource threshold, so that the increased suppression resource threshold is less than or equal to the reported resource threshold;

[0131] Step S604, in response to detecting that the resource usage rate of the target service decreases, determining the service type of the target service;

[0132] Step S605, querying the guaranteed resource threshold and the suppressed resource threshold associated with the service type;

[0133] Step S606: reducing the suppression resource threshold according to the guaranteed resource threshold, so that the reduced suppression resource threshold is greater than or equal to the guaranteed resource threshold.

[0134] The specific implementation content of the computer resource management method of another reference embodiment of the present invention has been described in detail in the computer resource management method described above, so the repeated content will not be described here.

[0135] Figure 7 is a schematic diagram of the main modules of the apparatus for computer resource management according to an embodiment of the present invention, such as Figure 7 As shown, the computer resource management device 700 mainly includes:

[0136] A determination module 701 is used for, in response to detecting that the resource usage rate of the physical machine increases, determining a target business using the resources from a plurality of businesses running on the physical machine, and determining a business type of the target business;

[0137] A query module 702, configured to query a reporting resource threshold and a suppression resource threshold associated with the service type;

[0138] The increasing module 703 is used to increase the suppression resource threshold according to the reporting resource threshold, so that the increased suppression resource threshold is less than or equal to the reporting resource threshold.

[0139] According to a reference embodiment of the present invention, the computer resource management device 700 further includes:

[0140] A second determination module, used to determine other business types except the business type of the target business;

[0141] The first reducing module is used to reduce the suppression resource threshold associated with the other service types.

[0142] According to another reference embodiment of the present invention, the computer resource management device 700 further includes:

[0143] A second query module, used to query the guaranteed resource threshold associated with the other service type;

[0144] A determination module, for determining, for each other service type, whether the reduced suppression resource threshold is less than the corresponding guarantee resource threshold;

[0145] A module is further added, which increases the suppression resource threshold when the reduced suppression resource threshold is less than the corresponding guarantee resource threshold, so that the increased suppression resource threshold is equal to the guarantee resource threshold.

[0146] According to another reference embodiment of the present invention, the computer resource management device 700 further includes:

[0147] A third determination module, configured to determine a service type of the target service in response to detecting that the resource usage rate of the target service decreases;

[0148] A third query module, used to query the guaranteed resource threshold and the suppressed resource threshold associated with the service type;

[0149] The second reducing module is used to reduce the suppression resource threshold according to the guaranteed resource threshold, so that the reduced suppression resource threshold is greater than or equal to the guaranteed resource threshold.

[0150] According to another reference embodiment of the present invention, determining the service type of the target service includes:

[0151] Using the proxy component of the physical machine to read a preset configuration file;

[0152] Query the configuration information of the target service from the configuration file;

[0153] The service type of the target service is determined according to the configuration information.

[0154] According to another reference embodiment of the present invention, the computer resource management device 700 further includes:

[0155] A classification module, used to classify a plurality of pre-set services into a plurality of service sets according to the service type;

[0156] An association module, used to divide the CPU cores included in the physical machine into multiple CPU core sets, and establish an association relationship between the multiple business sets and the multiple CPU core sets;

[0157] The binding module is used to bind multiple containers for running different services to CPU cores with associated relationships.

[0158] According to a reference embodiment of the present invention, the computer resource management device 700 further includes: a level setting module, configured to set priorities for the multiple services according to the service types;

[0159] In the case where there are multiple target services, the suppression resource threshold is increased according to the reported resource threshold, including: determining the threshold increment for each target service according to the priority of each target service, and increasing the suppression resource threshold associated with the service type of each service according to the threshold increment.

[0160] It should be noted that the specific implementation content of the computer resource management device in the embodiment of the present invention has been described in detail in the computer resource management method described above, so the repeated content will not be described again here.

[0161] According to the technical solution of the embodiment of the present invention, the resources allocated to different types of services on the physical machine are adjusted according to the reported resource threshold and the suppressed resource threshold, which can improve the resource utilization rate of the physical machine and reduce the service operation cost; determine other business types except the target business type, reduce the suppressed resource threshold associated with other business types, which can reduce the competition between other business types and the target business for resources and ensure the smooth operation of the target business; when the reduced suppressed resource threshold is less than the guaranteed resource threshold, increase the suppressed resource threshold, which can guarantee the basic resources required by other business types and enable the smooth operation of other business types; after the resource utilization rate of the target business decreases, reduce the target resource threshold. The resource suppression threshold can flexibly adjust the resource suppression threshold of the target business resources so that the target business is allocated to the appropriate amount of resources, ensuring the reasonable allocation of resources on the physical machine; using the proxy component to read the configuration file, and determining the business type of the target business according to the configuration information in the configuration file, it can accurately and efficiently determine the business type and improve the decision-making efficiency of each resource threshold; binding businesses of different business types to different CPU cores can enable businesses of different business types to run on the same physical machine, increase the resource utilization of the physical machine, and reduce business operating costs; setting priorities for different businesses can ensure that businesses with higher priorities get resources first, improving the flexibility and accuracy of resource allocation.

[0162] According to a third aspect of an embodiment of the present invention, there is provided an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method provided by the first aspect of the embodiment of the present invention.

[0163] According to a fourth aspect of an embodiment of the present invention, there is provided a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method provided by the first aspect of the embodiment of the present invention is implemented.

[0164] Figure 8 An exemplary system architecture 800 is shown to which the method or apparatus for computer resource management according to an embodiment of the present invention may be applied.

[0165] like Figure 8 As shown, system architecture 800 may include terminal devices 801, 802, 803, a network 804, and a server 805. Network 804 is used to provide a medium for communication links between terminal devices 801, 802, 803 and server 805. Network 804 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.

[0166] Users can use terminal devices 801, 802, and 803 to interact with server 805 through network 804 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 801, 802, and 803, such as resource management applications, resource query applications, search applications, instant messaging tools, email clients, social platform software, etc. (only examples).

[0167] The terminal devices 801 , 802 , and 803 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

[0168] Server 805 may be a server that provides various services, such as a background management server (for example only) that provides support for computer resource management requests sent by upstream terminal devices 801, 802, and 803. In response to detecting an increase in resource usage of a physical machine, the background management server may determine a corresponding target business from a plurality of businesses running on the physical machine, and determine the business type of the target business; query a reporting resource threshold and a suppression resource threshold associated with the business type; increase the suppression resource threshold according to the reporting resource threshold, so that the increased suppression resource threshold is less than or equal to the reporting resource threshold; and feed back the computer resource management situation (for example only) to the terminal device.

[0169] It should be noted that the computer resource management method provided in the embodiment of the present invention is generally executed by the server 805, and accordingly, the computer resource management device is generally set in the server 805. The computer resource management method provided in the embodiment of the present invention can also be executed by the terminal devices 801, 802, and 803, and accordingly, the computer resource management device can be set in the terminal devices 801, 802, and 803.

[0170] It should be understood that Figure 8 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0171] Reference below Fig. 9 , which shows a schematic diagram of the structure of a computer system 900 of a terminal device suitable for implementing an embodiment of the present invention. Fig. 9 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0172] like Fig. 9As shown, the computer system 900 includes a central processing unit (CPU) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage part 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the system 900 are also stored. The CPU 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0173] The following components are connected to the I / O interface 905: an input section 906 including a keyboard, a mouse, etc.; an output section 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 908 including a hard disk, etc.; and a communication section 909 including a network interface card such as a LAN card, a modem, etc. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I / O interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 910 as needed, so that a computer program read therefrom is installed into the storage section 908 as needed.

[0174] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 909, and / or installed from the removable medium 911. When the computer program is executed by the central processing unit (CPU) 901, the above-mentioned functions defined in the system of the embodiment of the present invention are executed.

[0175] It should be noted that the computer-readable medium shown in the embodiment of the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In an embodiment of the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In an embodiment of the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0176] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0177] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor, for example, it may be described as: a processor includes a determination module, a query module, and an addition module, wherein the names of these modules do not constitute a limitation on the modules themselves in certain circumstances, for example, the determination module may also be described as a "module for determining the business type of the target business".

[0178] As another aspect, an embodiment of the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device implements the following method: in response to detecting an increase in resource utilization of a physical machine, determining a corresponding target business from a plurality of businesses running on the physical machine, and determining a business type of the target business; querying a reporting resource threshold and a suppression resource threshold associated with the business type; and according to the reporting resource threshold, increasing the suppression resource threshold so that the increased suppression resource threshold is less than or equal to the reporting resource threshold.

[0179] According to the technical solution of the embodiment of the present invention, the resources allocated to different types of services on the physical machine are adjusted according to the reported resource threshold and the suppressed resource threshold, which can improve the resource utilization rate of the physical machine and reduce the service operation cost; determine other business types except the target business type, reduce the suppressed resource threshold associated with other business types, which can reduce the competition between other business types and the target business for resources and ensure the smooth operation of the target business; when the reduced suppressed resource threshold is less than the guaranteed resource threshold, increase the suppressed resource threshold, which can guarantee the basic resources required by other business types and enable the smooth operation of other business types; after the resource utilization rate of the target business decreases, reduce the target resource threshold. The resource suppression threshold can flexibly adjust the resource suppression threshold of the target business resources so that the target business is allocated to the appropriate amount of resources, ensuring the reasonable allocation of resources on the physical machine; using the proxy component to read the configuration file, and determining the business type of the target business according to the configuration information in the configuration file, it can accurately and efficiently determine the business type and improve the decision-making efficiency of each resource threshold; binding businesses of different business types to different CPU cores can enable businesses of different business types to run on the same physical machine, increase the resource utilization of the physical machine, and reduce business operating costs; setting priorities for different businesses can ensure that businesses with higher priorities get resources first, improving the flexibility and accuracy of resource allocation.

[0180] The above specific implementations do not constitute a limitation on the protection scope of the embodiments of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the embodiments of the present invention should be included in the protection scope of the embodiments of the present invention.

Claims

1. A method for computer resource management, characterized in that: include: In response to detecting that the resource usage rate of the physical machine increases, determining a corresponding target business from a plurality of businesses running on the physical machine, and determining a business type of the target business; Querying a reporting resource threshold and a suppression resource threshold associated with the service type; According to the reporting resource threshold, the suppression resource threshold is increased so that the increased suppression resource threshold is less than or equal to the reporting resource threshold.

2. The method according to claim 1, characterized in that After determining the service type of the target service, the method further includes: Determining other business types other than the business type of the target business; The suppression resource threshold associated with the other traffic type is reduced.

3. The method according to claim 2, characterized in that The method further comprises: Querying the guaranteed resource threshold associated with the other service type; For each other service type, determining whether the reduced suppression resource threshold is less than the corresponding guarantee resource threshold; In the case that the reduced suppression resource threshold is less than the corresponding guaranteed resource threshold, the suppression resource threshold is increased so that the increased suppression resource threshold is equal to the guaranteed resource threshold.

4. The method according to claim 1, characterized in that: The method further comprises: In response to detecting that the resource usage rate of the target service decreases, determining a service type of the target service; Querying the guaranteed resource threshold and the suppressed resource threshold associated with the service type; According to the guaranteed resource threshold, the suppressed resource threshold is reduced so that the reduced suppressed resource threshold is greater than or equal to the guaranteed resource threshold.

5. The method according to claim 1 or 4, characterized in that: Determining the business type of the target business includes: Using the proxy component of the physical machine to read a preset configuration file; Query the configuration information of the target service from the configuration file; The service type of the target service is determined according to the configuration information.

6. The method according to claim 1, characterized in that Before detecting that the resource usage rate of the physical machine increases, the method further includes: According to the business type, multiple pre-set businesses are divided into multiple business sets; Dividing the CPU cores included in the physical machine into multiple CPU core sets, and establishing association relationships between the multiple service sets and the multiple CPU core sets; Bind multiple containers used to run different services to associated CPU cores respectively.

7. The method according to claim 6, characterized in that The method further comprises: setting priorities for the multiple services according to the service type; In the case where there are multiple target services, the suppression resource threshold is increased according to the reported resource threshold, including: determining the threshold increment for each target service according to the priority of each target service, and increasing the suppression resource threshold associated with the service type of each service according to the threshold increment.

8. A computer resource management device, characterized in that: include: a determination module, configured to, in response to detecting an increase in resource usage of a physical machine, determine a target business using the resources from a plurality of businesses running on the physical machine, and determine a business type of the target business; A query module, used to query the reporting resource threshold and the suppression resource threshold associated with the service type; The increasing module is used to increase the suppression resource threshold according to the reporting resource threshold, so that the increased suppression resource threshold is less than or equal to the reporting resource threshold.

9. An electronic device, characterized in that: include: One or more processors; A storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.

10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.