Control method and device for application dimension of monitoring data

By monitoring the data in the CPU dimension, calculating actual load requirements and adjusting resource allocation, the problem of users' difficulty in controlling IT costs is solved, and resource optimization and user experience improvement are achieved.

CN115314501BActive Publication Date: 2025-04-29MULTIPOINT (SHENZHEN) DIGITAL TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210938232.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-05
Publication Date
2025-04-29
Estimated Expiration
2042-08-05

AI Technical Summary

Technical Problem

The prior art is difficult to achieve user visibility and control over IT costs, resulting in poor user experience.

Method used

By monitoring the monitoring distribution data of the CPU dimension, calculate the actual CPU load requirements, and judge whether the current resource allocation is reasonable based on the requirements. If it is unreasonable, redistribution will be carried out to achieve resource optimization and cost control.

Benefits of technology

It improves users' ability to control IT costs, optimizes resource usage, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115314501B_ABST
    Figure CN115314501B_ABST
Patent Text Reader

Abstract

The present invention provides a control method and device for application dimensions of monitoring data, including: obtaining application dimensions, the application dimensions including CPU dimensions; monitoring distribution data of the CPU dimension within and outside a preset interval, the monitoring distribution data including the number of instances, CPU core quota, CPU usage, the percentage of monitoring points corresponding to the CPU usage, and a CPU target value; calculating the actual CPU load demand according to the number of instances, the CPU core quota, the CPU usage, and the percentage of monitoring points corresponding to the CPU usage; calculating the required number of CPU cores according to the actual CPU load demand and the CPU target value; judging whether the current resource allocation is reasonable according to the required number of CPU cores; if not, reallocating according to the required number of CPU cores; the purpose of resource optimization and cost control can be achieved, and the user experience can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of IT technology, and in particular to a control method and device for application dimension of monitoring data. Background Art

[0002] As IT systems are increasingly used in all walks of life, IT costs are also increasing; complex IT systems include multiple applications, and each application includes multiple instances. At present, capacity planning technology configures the initial number of IT resources based on the estimated demand of the application system, and dynamically adjusts resources during system operation by using the elastic computing of cloud vendors to achieve IT cost savings.

[0003] However, the method of binding the cloud vendor's elastic computing functions and elastic policies makes it difficult to achieve user visibility and explain the reasons for elasticity, causing users to lose control over IT costs and resulting in a poor user experience. Summary of the invention

[0004] In view of this, an object of the present invention is to provide a control method and device for the application dimension of monitoring data, which can achieve the purpose of resource optimization and cost control and improve user experience.

[0005] In a first aspect, an embodiment of the present invention provides a method for controlling an application dimension of monitoring data, the method comprising:

[0006] Acquire application dimensions, where the application dimensions include CPU dimensions;

[0007] Monitoring distribution data of the CPU dimension within and outside a preset interval, wherein the monitoring distribution data includes the number of instances, the CPU core quota, the CPU utilization rate, the percentage of monitoring points corresponding to the CPU utilization rate, and the CPU target value;

[0008] Calculate the actual CPU load demand according to the number of instances, the CPU core quota, the CPU usage rate, and the percentage of monitoring points corresponding to the CPU usage rate;

[0009] Calculate the required number of CPU cores according to the actual CPU load requirement and the CPU target value;

[0010] Determine whether the current resource allocation is reasonable based on the required number of CPU cores;

[0011] If not, reallocate based on the required number of CPU cores.

[0012] Further, according to the number of instances, the CPU core quota, the CPU usage, and the percentage of monitoring points corresponding to the CPU usage, the actual CPU load requirement is calculated, including:

[0013] The actual CPU load requirement is calculated according to the following formula:

[0014] CPUReq=float64(N*Limit*XMinCPURate)*LessXPercent+

[0015] float64(N*Limit*(100-XMinCPURate))*(100-LessXPercent)

[0016] Among them, CPUReq is the actual CPU load requirement, N is the number of instances, Limit is the CPU core quota, XMinCPURate is the CPU utilization rate, and LessXPercent is the percentage of monitoring points corresponding to the CPU utilization rate.

[0017] Further, according to the actual CPU load requirement and the CPU target value, the required number of CPU cores is calculated, including:

[0018] Calculate the required number of CPU cores according to the following formula:

[0019] needCpuCoreTotal=CPUReq / float64(TargetCPURate*100)

[0020] Among them, needCpuCoreTotal is the required number of CPU cores, and TargetCPURate is the CPU target value.

[0021] Further, monitoring the monitoring distribution data of the CPU dimension within and outside a preset range includes:

[0022] Within a preset time range, counting the number of points of the CPU usage rate within and outside the preset interval;

[0023] Calculating the distribution rate of the points within and outside the preset interval;

[0024] determining a plurality of instances according to the distribution rate;

[0025] The distribution of each of the instances within and outside the preset interval is determined to obtain the monitoring distribution data.

[0026] Furthermore, the application dimension also includes a memory dimension, and the method further includes:

[0027] When the CPU dimension satisfies the current resource allocation, the memory dimension is analyzed to determine whether the memory dimension satisfies the current resource allocation.

[0028] In a second aspect, an embodiment of the present invention provides a control device for monitoring application dimensions of data, the device comprising:

[0029] An acquisition module, used for acquiring application dimensions, wherein the application dimensions include CPU dimensions;

[0030] A monitoring module, used to monitor the monitoring distribution data of the CPU dimension within and outside a preset interval, wherein the monitoring distribution data includes the number of instances, the CPU core quota, the CPU utilization rate, the percentage of monitoring points corresponding to the CPU utilization rate, and the CPU target value;

[0031] A load demand calculation module, used to calculate the actual CPU load demand according to the number of instances, the CPU core quota, the CPU usage rate and the percentage of monitoring points corresponding to the CPU usage rate;

[0032] A core number calculation module, used to calculate the required number of CPU cores according to the actual CPU load requirement and the CPU target value;

[0033] A judgment module is used to judge whether the current resource allocation is reasonable according to the required number of CPU cores;

[0034] The allocation module is used to reallocate the number of CPU cores according to the requirement in unreasonable situations.

[0035] Furthermore, the load demand calculation module is specifically used for:

[0036] The actual CPU load requirement is calculated according to the following formula:

[0037] CPUReq=float64(N*Limit*XMinCPURate)*LessXPercent+

[0038] float64(N*Limit*(100-XMinCPURate))*(100-LessXPercent)

[0039] Among them, CPUReq is the actual CPU load requirement, N is the number of instances, Limit is the CPU core quota, XMinCPURate is the CPU utilization rate, and LessXPercent is the percentage of monitoring points corresponding to the CPU utilization rate.

[0040] Furthermore, the core number calculation module is specifically used for:

[0041] Calculate the required number of CPU cores according to the following formula:

[0042] needCpuCoreTotal=CPUReq / float64(TargetCPURate*100)

[0043] Among them, needCpuCoreTotal is the required number of CPU cores, and TargetCPURate is the CPU target value.

[0044] In a third aspect, an embodiment of the present invention provides an electronic device, including a memory and a processor, wherein the memory stores a computer program executable on the processor, and the processor implements the method described above when executing the computer program.

[0045] In a fourth aspect, an embodiment of the present invention provides a computer-readable medium having a non-volatile program code executable by a processor, wherein the program code enables the processor to execute the method as described above.

[0046] An embodiment of the present invention provides a control method and device for application dimensions of monitoring data, including: obtaining application dimensions, the application dimensions including CPU dimensions; monitoring distribution data of the CPU dimension within and outside a preset interval, the monitoring distribution data including the number of instances, CPU core quota, CPU usage, the percentage of monitoring points corresponding to the CPU usage, and a CPU target value; calculating the actual CPU load demand according to the number of instances, the CPU core quota, the CPU usage, and the percentage of monitoring points corresponding to the CPU usage; calculating the required number of CPU cores according to the actual CPU load demand and the CPU target value; judging whether the current resource allocation is reasonable according to the required number of CPU cores; if not, reallocating according to the required number of CPU cores; the purpose of resource optimization and cost control can be achieved, and the user experience can be improved.

[0047] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.

[0048] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0050] Figure 1 A flow chart of a method for controlling the application dimension of monitoring data provided in the first embodiment of the present invention;

[0051] Figure 2 A schematic diagram of monitoring distribution data in the CPU dimension provided in the second embodiment of the present invention;

[0052] Figure 3 A schematic diagram of a device for application dimension of monitoring data provided in Embodiment 3 of the present invention.

[0053] icon:

[0054] 1- Acquisition module; 2- Monitoring module; 3- Load demand calculation module; 4- Core number calculation module; 5- Judgment module; 6- Allocation module. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0056] To facilitate understanding of this embodiment, the embodiment of the present invention is described in detail below.

[0057] Embodiment 1:

[0058] Figure 1 A flow chart of a method for controlling the application dimension of monitoring data provided in the first embodiment of the present invention.

[0059] Reference Figure 1 , the method comprises the following steps:

[0060] Step S101, obtaining application dimensions, where the application dimensions include CPU dimensions;

[0061] Step S102, monitoring distribution data of the CPU dimension within and outside a preset range, the monitoring distribution data including the number of instances, CPU core quota, CPU usage, percentage of monitoring points corresponding to the CPU usage, and CPU target value;

[0062] Step S103, calculating the actual CPU load demand according to the number of instances, the CPU core quota, the CPU usage, and the percentage of monitoring points corresponding to the CPU usage;

[0063] Step S104, calculating the required number of CPU cores according to the actual CPU load requirement and the CPU target value;

[0064] Step S105, judging whether the current resource allocation is reasonable according to the required number of CPU cores;

[0065] Step S106: If not, reallocate according to the required number of CPU cores.

[0066] In this embodiment, an application on the statistics monitoring platform is monitored, and within a preset time range, the distribution of distribution data in and outside the interval [x, y] is monitored to calculate the actual CPU load demand; the required number of CPU cores is calculated through the relationship between the actual CPU load demand and the CPU target value; thereby judging whether the current resource allocation is reasonable, and a resource optimization recommendation table that achieves ideal utilization is prepared, thereby achieving the purpose of resource adjustment and cost control. The present application adopts a CPU priority strategy method, wherein the CPU priority strategy refers to the CPU dimension being considered as the first factor when calculating the overall load of the application, and other factors are considered after the first factor is satisfied. For example, the total number of CPU cores of the application X, according to the target value T, the number of instances P generated after weighing, when calculating memory control, it is necessary to control the machine memory configuration M under the number of instances of P.

[0067] Further, step S103 includes:

[0068] Calculate the actual CPU load requirement according to formula (1):

[0069] CPUReq=float64(N*Limit*XMinCPURate)*LessXPercent+float64(N*Limit*(100-XMinCPURate))*(100-LessXPercent) (1)

[0070] Among them, CPUReq is the actual CPU load demand, N is the number of instances, Limit is the CPU core quota, XMinCPURate is the CPU utilization rate, and LessXPercent is the percentage of monitoring points corresponding to the CPU utilization rate.

[0071] Further, step S104 includes:

[0072] Calculate the required number of CPU cores according to formula (2):

[0073] needCpuCoreTotal=CPUReq / float64(TargetCPURate*100) (2)

[0074] Among them, needCpuCoreTotal is the required number of CPU cores, and TargetCPURate is the CPU target value.

[0075] Specifically, take the CPU dimension as an example: the number of instances is 2, the CPU core quota is 4C, the CPU utilization is 20%, the percentage of monitoring points corresponding to the CPU utilization is 80%, and the CPU target value is 50%. Among them, the variable set for 20% is: x_min_cpu_rate, and the variable set for 50% is: target_cpu_rate.

[0076] The actual CPU load requirement is:

[0077] CPUReq=2*4C*20%*80%+2*4C*(100%-20%)*(100%-80%)

[0078] =25600C%%, unit is C%%;

[0079] The number of CPU cores required is:

[0080] needCpuCoreTotal=25600C%%) / 50%*100%≈5.1C.

[0081] Since the system only needs 5.1C and the number of instances is 2, 8C is used. To meet the actual needs, the method of reducing the number of machines and reducing the machine configuration can be adopted. In the method of reducing the number of machines, one machine is used, and the number of the machine is 6C, which is obtained by rounding 5.1C; in the method of reducing the machine configuration, 2 machines are used, but the configuration of each machine is reduced to 3C.

[0082] Further, step S102 includes the following steps:

[0083] Step S201, within a preset time range, counting the number of points where the CPU usage rate is within and outside a preset interval;

[0084] Here, the number of points where the CPU usage is less than X, between [X, Y], and greater than Y is counted.

[0085] Step S202, calculating the distribution rate of points within and outside a preset interval;

[0086] Here, the distribution ratio of the points in [0, X), [X, Y] and (Y, +∞) is calculated.

[0087] Step S203, determining multiple instances according to the distribution rate;

[0088] Step S204, determining the distribution of each instance within and outside a preset range, thereby obtaining monitoring distribution data.

[0089] Specifically, determine the distribution of each instance in the intervals less than X, less than Y, between [X, Y], and greater than Y. For the memory dimension, refer to the settings in the configuration file rua_config.yaml within the preset time range. The implementation method for obtaining the monitoring distribution data of the memory dimension is as follows: count the number of points where the memory usage is less than X, between [X, Y], and greater than Y; calculate the distribution rate of the points in [0, X), [X, Y], and (Y, +∞); determine multiple instances based on the distribution rate; determine the distribution of each instance in the intervals less than X, less than Y, between [X, Y], and greater than Y.

[0090] Furthermore, the application dimension also includes a memory dimension, and the method further includes the following steps:

[0091] Step S301, when the CPU dimension satisfies the current resource allocation, the memory dimension is analyzed to determine whether the memory dimension satisfies the current resource allocation. The algorithm implementation process of the memory dimension is the same as that of the CPU dimension, which will not be described in detail here.

[0092] By considering the monitoring distribution data within a preset time period, the impact of transient data on the results is avoided. Comprehensively consider the integrity of the application and the load and load bumps that an application bears in a complex system.

[0093] An embodiment of the present invention provides a method for controlling application dimensions of monitoring data, including: obtaining application dimensions, where the application dimensions include CPU dimensions; monitoring distribution data of the CPU dimension within and outside a preset range, where the monitoring distribution data includes the number of instances, CPU core quota, CPU usage, the percentage of monitoring points corresponding to the CPU usage, and a CPU target value; calculating the actual CPU load demand based on the number of instances, the CPU core quota, the CPU usage, and the percentage of monitoring points corresponding to the CPU usage; calculating the required number of CPU cores based on the actual CPU load demand and the CPU target value; judging whether the current resource allocation is reasonable based on the required number of CPU cores; if not, reallocating resources based on the required number of CPU cores; the purpose of resource optimization and cost control can be achieved, and the user experience can be improved.

[0094] Embodiment 2:

[0095] Figure 2 A schematic diagram of monitoring distribution data in the CPU dimension provided in the second embodiment of the present invention.

[0096] Reference Figure 2, the CPU usage is generally lower than 50%, and the raised part is between [20%, 50%]. The number of machine instances with raised CPU usage is: instances with CPU usage greater than 30% within 1 day. Statistics show that only the following two machines are pulled up at a specific time point. Therefore, this application has a large CPU saving space in the CPU dimension.

[0097] The application has 47 application instances. If the number of application instances is reduced to more than two, the scheduling can also meet the peak demand during peak hours. According to the method of this application, the number of instances recommended for this application is 20, as shown in Table 1:

[0098] Table 1

[0099] instanceNum CPUCoreLimit %CPULessX toInstanceNum 47 6 98.86360958 20

[0100] The analysis of the memory dimension is similar to the above analysis process and will not be repeated here.

[0101] Embodiment three:

[0102] Figure 3 A schematic diagram of a device for application dimension of monitoring data provided in Embodiment 3 of the present invention.

[0103] Reference Figure 3 , the device comprises:

[0104] An acquisition module 1 is used to acquire application dimensions, where the application dimensions include CPU dimensions;

[0105] Monitoring module 2, used to monitor the monitoring distribution data of the CPU dimension within and outside the preset range, the monitoring distribution data including the number of instances, CPU core quota, CPU utilization, the percentage of monitoring points corresponding to the CPU utilization, and the CPU target value;

[0106] The load demand calculation module 3 is used to calculate the actual CPU load demand according to the number of instances, the CPU core quota, the CPU utilization rate and the percentage of monitoring points corresponding to the CPU utilization rate;

[0107] The core number calculation module 4 is used to calculate the required number of CPU cores according to the actual CPU load requirement and the CPU target value;

[0108] The judgment module 5 is used to judge whether the current resource allocation is reasonable according to the required number of CPU cores;

[0109] The allocation module 6 is used to reallocate the number of CPU cores required under unreasonable conditions.

[0110] Furthermore, the load demand calculation module 3 is specifically used for:

[0111] Calculate the actual CPU load requirement according to formula (1):

[0112] CPUReq=float64(N*Limit*XMinCPURate)*LessXPercent+float64(N*Limit*(100-XMinCPURate))*(100-LessXPercent) (1)

[0113] Among them, CPUReq is the actual CPU load demand, N is the number of instances, Limit is the CPU core quota, XMinCPURate is the CPU utilization rate, and LessXPercent is the percentage of monitoring points corresponding to the CPU utilization rate.

[0114] Furthermore, the core number calculation module 4 is specifically used for:

[0115] Calculate the required number of CPU cores according to formula (2):

[0116] needCpuCoreTotal=CPUReq / float64(TargetCPURate*100) (2)

[0117] Among them, needCpuCoreTotal is the required number of CPU cores, and TargetCPURate is the CPU target value.

[0118] An embodiment of the present invention provides a control device for application dimensions of monitoring data, including: obtaining application dimensions, the application dimensions including CPU dimensions; monitoring distribution data of the CPU dimension within and outside a preset interval, the monitoring distribution data including the number of instances, CPU core quota, CPU usage, the percentage of monitoring points corresponding to the CPU usage, and a CPU target value; calculating the actual CPU load demand according to the number of instances, the CPU core quota, the CPU usage, and the percentage of monitoring points corresponding to the CPU usage; calculating the required number of CPU cores according to the actual CPU load demand and the CPU target value; judging whether the current resource allocation is reasonable according to the required number of CPU cores; if not, reallocating according to the required number of CPU cores; the purpose of resource optimization and cost control can be achieved, and the user experience can be improved.

[0119] An embodiment of the present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the control method for the application dimension of monitoring data provided in the above embodiment are implemented.

[0120] An embodiment of the present invention also provides a computer-readable medium having a non-volatile program code executable by a processor, wherein a computer program is stored on the computer-readable medium, and when the computer program is executed by the processor, the steps of the control method of the application dimension of the monitoring data of the above embodiment are executed.

[0121] The computer program product provided in the embodiment of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the method described in the previous method embodiment. The specific implementation can be found in the method embodiment and will not be repeated here.

[0122] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0123] In addition, in the description of the embodiments of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0124] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.

[0125] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.

[0126] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A control method for the application dimension of monitoring data, characterized in that: The method comprises: Acquire application dimensions, where the application dimensions include CPU dimensions; Monitoring distribution data of the CPU dimension within and outside a preset interval, wherein the monitoring distribution data includes the number of instances, the CPU core quota, the CPU utilization rate, the percentage of monitoring points corresponding to the CPU utilization rate, and the CPU target value; Calculate the actual CPU load demand according to the number of instances, the CPU core quota, the CPU usage rate, and the percentage of monitoring points corresponding to the CPU usage rate; Calculate the required number of CPU cores according to the actual CPU load requirement and the CPU target value; Determine whether the current resource allocation is reasonable based on the required number of CPU cores; If not, reallocate according to the required number of CPU cores; Calculating the actual CPU load requirement according to the number of instances, the CPU core quota, the CPU usage, and the percentage of monitoring points corresponding to the CPU usage, including: The actual CPU load requirement is calculated according to the following formula: CPUReq=float64(N*Limit*XMinCPURate)*LessXPercent+ float64(N*Limit*(100-XMinCPURate))*(100-LessXPercent) Among them, CPUReq is the actual CPU load requirement, N is the number of instances, Limit is the CPU core quota, XMinCPURate is the CPU utilization rate, and LessXPercent is the percentage of monitoring points corresponding to the CPU utilization rate.

2. The control method of the application dimension of monitoring data according to claim 1, characterized in that: Calculating the required number of CPU cores according to the actual CPU load requirement and the CPU target value includes: Calculate the required number of CPU cores according to the following formula: needCpuCoreTotal=CPUReq / float64(TargetCPURate*100) Among them, needCpuCoreTotal is the required number of CPU cores, and TargetCPURate is the CPU target value.

3. The control method of the application dimension of monitoring data according to claim 1, characterized in that: Monitoring the CPU dimension within and outside the preset interval, including: Within a preset time range, counting the number of points of the CPU usage rate within and outside the preset interval; Calculating the distribution rate of the points within and outside the preset interval; determining a plurality of instances according to the distribution rate; The distribution of each of the instances within and outside the preset interval is determined to obtain the monitoring distribution data.

4. The control method of the application dimension of monitoring data according to claim 1, characterized in that: The application dimension also includes a memory dimension, and the method further includes: When the CPU dimension satisfies the current resource allocation, the memory dimension is analyzed to determine whether the memory dimension satisfies the current resource allocation.

5. A control device for monitoring the application dimension of data, characterized in that: The device comprises: An acquisition module, used for acquiring application dimensions, wherein the application dimensions include CPU dimensions; A monitoring module, used to monitor the monitoring distribution data of the CPU dimension within and outside a preset interval, wherein the monitoring distribution data includes the number of instances, the CPU core quota, the CPU utilization rate, the percentage of monitoring points corresponding to the CPU utilization rate, and the CPU target value; A load demand calculation module, used to calculate the actual CPU load demand according to the number of instances, the CPU core quota, the CPU usage rate and the percentage of monitoring points corresponding to the CPU usage rate; A core number calculation module, used to calculate the required number of CPU cores according to the actual CPU load requirement and the CPU target value; A judgment module is used to judge whether the current resource allocation is reasonable according to the required number of CPU cores; An allocation module, used for reallocating the number of CPU cores according to the requirement in unreasonable situations; The load demand calculation module is specifically used for: The actual CPU load requirement is calculated according to the following formula: CPUReq=float64(N*Limit*XMinCPURate)*LessXPercent+ float64(N*Limit*(100-XMinCPURate))*(100-LessXPercent) Among them, CPUReq is the actual CPU load requirement, N is the number of instances, Limit is the CPU core quota, XMinCPURate is the CPU utilization rate, and LessXPercent is the percentage of monitoring points corresponding to the CPU utilization rate.

6. The control device for the application dimension of monitoring data according to claim 5, characterized in that: The core number calculation module is specifically used for: Calculate the required number of CPU cores according to the following formula: needCpuCoreTotal=CPUReq / float64(TargetCPURate*100) Among them, needCpuCoreTotal is the required number of CPU cores, and TargetCPURate is the CPU target value.

7. An electronic device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 4 is implemented.

8. A computer-readable medium having a non-volatile program code executable by a processor, characterized in that: The program code enables the processor to execute the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • CPU resource management in computer cluster

    US20170109204A1