Resource configuration method and device and electronic equipment

The monitoring system monitors resource usage in real time and calculates recommended resource configuration values ​​to automatically configure resources, which solves the problem of poor resource allocation in the existing technology, matches resource usage with demand, improves efficiency and stability, and reduces costs. cost.

CN118656199APending Publication Date: 2024-09-17MASHANG CONSUMER FINANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410446675.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-12
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

The resource allocation effect applied in the existing technology is poor, resulting in insufficient use or waste of resources. Especially when the scale of business applications expands, it is difficult to effectively match resource needs, resulting in low efficiency and increased costs.

Method used

The monitoring system monitors the resource usage of the application in real time, calculates the recommended resource configuration value based on the resource usage and the resource usage adjustment coefficient, and automatically performs resource configuration to ensure that the resource usage matches the actual demand and avoid resource waste or shortage.

Benefits of technology

It realizes the automation, efficiency improvement and cost reduction of resource allocation, can meet resource needs during peak application periods, avoid waste or shortage caused by mismatched resource configuration, and improve resource utilization and system stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656199A
    Figure CN118656199A
Patent Text Reader

Abstract

The embodiment of the invention discloses a resource configuration method and device and electronic equipment. The resource allocation method comprises the steps of determining a resource utilization rate of a first application; determining a resource configuration recommendation value of the first application according to the resource utilization rate and the resource utilization adjustment coefficient; the resource use adjustment coefficient is used for representing that the actual resource use value of the first application exceeds the range of the resource use rate; and performing resource configuration on the first application according to the resource configuration recommendation value. According to the resource allocation method and device, the automation process of resource allocation can be achieved, the efficiency and executive force of resource allocation are improved, and the resource allocation effect is better.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of application development technology, and in particular to a resource configuration method, device and electronic device. Background Art

[0002] The term "cost reduction and efficiency improvement" appears more and more frequently in the operation and maintenance manuals of major companies. The promotion of DevOps (a combination of Development and Operations, i.e., processes, methods, and systems) culture has made the concept of cost reduction and efficiency improvement more popular. After the prevalence of DevOps culture, it has promoted the integration of R&D and operation and maintenance, and the awareness of R&D personnel on SRE (Site Reliability Engineer) has gradually increased. With the continuous expansion of the scale of business applications, the usage of server resources has also increased exponentially. The more complex the business, the more application environments there are, and the lower the utilization rate of environmental resources. Therefore, how to configure resources for applications to improve the resource utilization rate of servers and reduce resource costs has become a major problem that needs to be solved in the business field. Summary of the invention

[0003] The purpose of the embodiments of the present application is to provide a resource configuration method, device and electronic device to solve the problem that the resource configuration effect applied in the prior art is poor, resulting in insufficient or wasted resource use.

[0004] To solve the above technical problems, the embodiments of the present application are implemented as follows:

[0005] On the one hand, an embodiment of the present application provides a resource configuration method, including:

[0006] determining resource usage of the first application;

[0007] Determining a recommended resource configuration value for the first application according to the resource usage rate and the resource usage adjustment coefficient; the resource usage adjustment coefficient is used to indicate that the actual resource usage value of the first application exceeds the range of the resource usage rate;

[0008] Perform resource configuration for the first application according to the resource configuration recommendation value.

[0009] On the other hand, an embodiment of the present application provides a resource configuration device, including:

[0010] A first determining module, used to determine a resource usage rate of a first application;

[0011] A second determination module is used to determine a recommended resource configuration value of the first application according to the resource usage rate and a resource usage adjustment coefficient; the resource usage adjustment coefficient is used to indicate that the actual resource usage value of the first application exceeds the range of the resource usage rate;

[0012] A configuration module is used to perform resource configuration for the first application according to the resource configuration recommendation value.

[0013] On the other hand, an embodiment of the present application provides a resource configuration system, including a monitoring system, a configuration computing system, a development system and a cloud platform, wherein:

[0014] The monitoring system is used to monitor the resource usage of the first application;

[0015] The configuration calculation system is used to obtain the resource usage rate from the monitoring system; determine the resource configuration recommendation value of the first application according to the resource usage rate and the resource usage adjustment coefficient; send the resource configuration recommendation value to the development system and / or the cloud platform; the resource usage adjustment coefficient is used to indicate that the actual resource usage value of the first application exceeds the range of the resource usage rate;

[0016] The development system and / or cloud platform is used to perform resource configuration for the first application according to the resource configuration recommendation value.

[0017] On the other hand, an embodiment of the present application provides an electronic device, including a processor and a memory electrically connected to the processor, the memory storing a computer program, and the processor being used to call and execute the computer program from the memory to implement the above-mentioned resource configuration method.

[0018] On the other hand, an embodiment of the present application provides a computer-readable storage medium for storing a computer program, wherein the computer program can be executed by a processor to implement the above-mentioned resource configuration method.

[0019] On the other hand, an embodiment of the present application provides a computer program product, including a computer program, wherein the computer program is executed by a processor to implement the above-mentioned resource configuration method.

[0020] By adopting the technical solution of the embodiment of the present application, by determining the resource utilization rate of the first application, determining the recommended resource configuration value of the first application according to the resource utilization rate and the resource utilization adjustment coefficient, and then performing resource configuration on the first application according to the recommended resource configuration value. Since the recommended resource configuration value is determined based on the resource utilization rate of each type of resource by the first application, and the resource utilization adjustment coefficient is used to indicate that the actual resource utilization value of the first application exceeds the range of the resource utilization rate, it is not only possible to match the result of the resource configuration with the resource utilization rate of each type of resource by the first application, thus avoiding the situation where resource waste or insufficient resources occurs when the resource configuration result and the resource utilization rate do not match, but also allows the actual resource utilization value of the first application to have a certain excess range compared to the resource utilization rate, which can cope with the situation where the first application has a high demand for resources during the peak period of operation, so as to achieve a better resource configuration effect. In addition, the resource configuration process of the application is completed through full automation without the need for human intervention, thereby improving the efficiency and execution of resource configuration. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0022] Figure 1 is a schematic flow chart of a resource configuration method according to an embodiment of the present application;

[0023] Figure 2 is a schematic block diagram of a resource configuration system according to an embodiment of the present application;

[0024] Figure 3 is a schematic flow chart of a resource configuration method according to another embodiment of the present application;

[0025] Figure 4 is a schematic block diagram of a resource configuration device according to an embodiment of the present application;

[0026] Figure 5 It is a schematic block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0027] The embodiments of the present application provide a resource configuration method, device and electronic device to solve the problem that the resource configuration effect applied in the prior art is poor, resulting in insufficient or wasted resource usage.

[0028] In order to enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.

[0029] At present, in terms of resource allocation of applications, application developers lack attention to resource utilization when applying for configuration of server size, especially when a new application is released. They can only configure according to their own experience and ideas, which will inevitably cause inappropriate resource configuration of environment instances. If the resource configuration is insufficient, the application will fail to start or affect the application performance, and even the computer memory will be exhausted during the application operation, which will eventually cause the application process to be killed and restarted. If the resource configuration is excessive, there will be a waste of resources. SRE (Site Reliability Engineer) obtains the resource usage of the application instance through the monitoring system after the application is released, and expands or shrinks the resource configuration of the application instance based on experience. That is, manual inspection is performed through the monitoring system after the application is released. When insufficient resources are found or problems occur in the application operation, manual maintenance is performed to keep the resource usage of the application service at a certain water level. Obviously, the efficiency of manual inspection and maintenance is extremely low. In most cases, the resource configuration of the application will be actively optimized only when problems occur in the application. This not only consumes manpower, but also cannot ensure the timeliness of resource configuration optimization. Furthermore, when resource waste occurs, it is difficult to perceive and inspect it relying solely on manpower, resulting in serious waste of resources.

[0030] To solve this problem, in the related art, the resource usage of the application is monitored by the monitoring system after the application is released, and corresponding monitoring alarms are issued. For example, an alarm is issued when insufficient resources are monitored. However, the response after the monitoring system issues an alarm is still handled manually, and the SRE personnel optimize the resource configuration of the application accordingly according to the alarm content issued by the monitoring system. In other words, the monitoring system only plays the role of monitoring and alarming, which is equivalent to prompting SRE personnel to optimize resource configuration. Therefore, this method still has the problem of wasting manpower. Furthermore, the existing monitoring system can only monitor and alarm whether the resources are exceeded, but does not pay attention to whether the resources are wasted. This is because resource waste will not affect the application service, so it is not easy to be perceived.

[0031] The resource configuration method provided in the present application determines the resource utilization rate of the first application, and determines the recommended resource configuration value of the first application according to the resource utilization rate and the resource utilization adjustment coefficient. Then, the first application is configured with resources according to the recommended resource configuration value. Since the recommended resource configuration value is determined based on the resource utilization rate of each type of resource by the first application, and the resource utilization adjustment coefficient is used to indicate that the actual resource utilization value of the first application exceeds the range of the resource utilization rate, it can not only match the resource configuration result with the resource utilization rate of each type of resource by the first application, avoiding the situation where resource waste or insufficient resources occurs when the resource configuration result and the resource utilization rate do not match, but also allows the actual resource utilization value of the first application to have a certain range exceeding the resource utilization rate, which can cope with the situation where the first application has a high demand for resources during the peak period of operation, so as to make the resource configuration effect better. In addition, the resource configuration process of the application is completed through full automation without manual participation, which improves the efficiency and execution of resource configuration.

[0032] The resource configuration method provided in the embodiment of the present application can be executed by a resource configuration system, and the resource configuration system includes an application monitoring system, a configuration computing system, an application development system and a cloud platform. The resource configuration method is executed through the interaction between the monitoring system, the configuration computing system, the application development system and the cloud platform, thereby forming a closed loop of resource configuration and optimization. Among them, the monitoring system is used to monitor the resource utilization rate of at least one resource by the first application. The configuration computing system is used to obtain the resource utilization rate from the monitoring system, and determine the resource configuration recommendation value of the first application based on the resource utilization rate and the resource utilization adjustment coefficient, and then send the resource configuration recommendation value to the development system and / or cloud platform of the first application. The development system and / or cloud platform is used to perform resource configuration for the first application based on the resource configuration recommendation value.

[0033] Figure 1 is a schematic flow chart of a resource configuration method according to an embodiment of the present application, such as Figure 1 As shown, the method can be applied to a configuration computing system in a resource configuration system, and includes the following steps:

[0034] S102: Determine a resource usage rate of the first application.

[0035] The resource usage rate of the first application may include the usage rate of at least one resource by the first application, including at least one of the following: the application memory usage rate, CPU usage rate, and virtual machine memory usage rate of the first application during operation. The at least one resource may include at least one of the following: the application memory (i.e., the memory required by the application instance), CPU (Central Processing Unit), and virtual machine memory of the first application during operation. For example, if the scripting language of the first application is Java, the virtual machine memory may be Java's JVM (Java Virtual Machine) memory, and JVM is the execution environment of the Java program.

[0036] Optionally, resource usage data of at least one resource of the first application is monitored by the monitoring system of the first application, and the resource usage data includes a resource usage rate. The monitoring system may monitor the resource usage data periodically or in real time. The monitoring system may store the monitored resource usage data locally. Furthermore, in order to make the resource usage data stored in the monitoring system more accurate, the monitoring system may only monitor and store resource usage data within a specified time period. For example, the monitoring system monitors resource usage data within the last month and stores the resource usage data within the last month locally. When the locally stored resource usage data no longer belongs to the data within the last month, the monitoring system may delete this part of the data.

[0037] Optionally, a monitoring tool Pinpoint is integrated into the monitoring system. Pinpoint supports monitoring of JVM memory (ie, virtual machine memory) usage, including monitoring of JVM memory overflow or waste.

[0038] The configuration computing system can obtain resource usage data from the monitoring system, including obtaining the resource usage rate of the first application. There are many opportunities for the configuration computing system to obtain resource usage data from the monitoring system, such as: periodically obtaining resource usage data, obtaining resource usage data at a fixed time, and obtaining resource usage data after the monitoring system issues an alarm, etc.

[0039] S104, determining a recommended resource configuration value for the first application according to the resource usage rate and the resource usage adjustment coefficient, where the resource usage adjustment coefficient is used to indicate that the actual resource usage value of the first application exceeds a range of the resource usage rate.

[0040] The resource configuration recommendation value may include at least one of the following: an application memory configuration recommendation value of an application memory usage rate, a CPU configuration recommendation value of a CPU usage rate, and a virtual machine memory configuration recommendation value of a virtual machine memory usage rate.

[0041] The recommended value of resource configuration refers to a reasonable value of resource configuration that matches the resource utilization rate, which can ensure that the resource configuration of the first application is sufficient and avoid resource waste to the greatest extent.

[0042] When the resource usage rate includes the virtual machine memory usage rate of the first application, the resource usage adjustment coefficient includes the resource usage adjustment coefficient of the virtual machine memory. When determining the resource configuration recommended value of the first application, the virtual machine memory configuration recommended value of the virtual machine memory usage rate can be determined based on the virtual machine memory usage rate and the resource usage adjustment coefficient of the virtual machine memory.

[0043] S106: Perform resource configuration for the first application according to the recommended resource configuration value.

[0044] The configuration computing system may perform resource configuration for the first application according to the resource configuration recommendation value, or send the resource configuration recommendation value to the application development system and / or cloud platform, and the development system and / or cloud platform may perform resource configuration for the first application according to the resource configuration recommendation value.

[0045] Optionally, when configuring resources for the first application, the configuration may be performed in any of the following ways:

[0046] Method 1: Configuring a first resource for a first application, wherein the resource value of the first resource is the same as the recommended resource configuration value. In this method, by configuring a resource value for the first application that is the same as the recommended resource configuration value, the resource configuration value of the first application can substantially meet the resource demand of the first application.

[0047] Method 2: configure a second resource for the first application, where the resource value of the second resource is higher than the recommended resource configuration value by a preset resource value. In this method, by configuring a resource value for the first application that is higher than the recommended resource configuration value, not only can the resource configuration value of the first application be ensured to meet the resource demand of the first application, but also a certain redundancy is given to the resource configuration value, which can cope with the situation where the first application has a high resource demand during the peak operation period.

[0048] By adopting the technical solution provided in the embodiment of the present application, by determining the resource utilization rate of the first application, determining the recommended resource configuration value of the first application according to the resource utilization rate and the resource utilization adjustment coefficient, and then performing resource configuration on the first application according to the recommended resource configuration value. Since the recommended resource configuration value is determined based on the resource utilization rate of each type of resource by the first application, and the resource utilization adjustment coefficient is used to indicate that the actual resource utilization value of the first application exceeds the range of the resource utilization rate, it is not only possible to match the resource configuration result with the resource utilization rate of each type of resource by the first application, thus avoiding the situation where resource waste or insufficient resources occurs when the resource configuration result and the resource utilization rate do not match, but also allows the actual resource utilization value of the first application to have a certain excess range compared to the resource utilization rate, which can cope with the situation where the first application has a high demand for resources during the peak period of operation, so as to achieve a better resource configuration effect. In addition, the resource configuration process of the application is completed through full automation without manual participation, which improves the efficiency and execution of resource configuration.

[0049] In one embodiment, when determining the recommended resource configuration value of the first application according to the resource usage rate and the resource usage adjustment coefficient, the resource usage parameter value of the first application can be calculated according to the resource usage rate, and then the recommended resource configuration value of the first application can be determined according to the resource usage parameter value and the resource usage adjustment coefficient. The resource usage parameter value includes at least one of the following: the maximum resource usage value, the average resource usage value, and the resource index value.

[0050] Taking the resource as application memory and obtaining the resource usage rate in the last month as an example, the resource usage parameter value corresponding to the application memory may include at least one of the following: the highest application memory usage value in the last month, the average application memory usage value in the last month, and the application memory index value in the last month. The application memory index value may be TP90, TP95, or TP99.

[0051] Optionally, the resource usage rate is the resource usage rate of multiple resources. When determining the resource configuration recommended value of the first application according to the resource usage parameter value and the resource usage adjustment coefficient, firstly, according to the resource usage parameter value of each resource and the resource usage adjustment coefficient of each resource, the resource usage adjustment range value corresponding to the resource usage parameter value is calculated, and then the maximum value in the resource usage adjustment range value is determined as the resource configuration recommended value corresponding to the resource.

[0052] For each resource, you can pre-configure its own resource usage adjustment coefficient. The purpose of configuring the resource usage adjustment coefficient is to give the resource configuration value a certain redundancy value to avoid the situation where the resource configuration value cannot meet the business needs of the application in certain scenarios with high resource requirements (such as summit scenarios). When the resource usage parameter value includes the maximum resource usage value, the average resource usage value, and the resource index value, the calculation method of the resource configuration recommended value can be expressed as the following formula:

[0053] Recommended resource allocation value = Max (maximum resource usage value / n1, average resource usage value / n2, resource index value / n3)

[0054] Among them, Max means taking the maximum value, and n1, n2, and n3 respectively represent the resource usage adjustment coefficients corresponding to the resource usage parameter values. The maximum resource usage value / n1, the average resource usage value / n2, and the resource index value / n3 respectively represent the resource usage adjustment range values ​​corresponding to the resource usage parameter values. The resource usage adjustment range value is used to indicate that the actual resource usage value of the first application exceeds the range of the resource usage parameter value. Taking "maximum resource usage value / n1" as an example, "maximum resource usage value / n1" represents the resource usage adjustment range value corresponding to the maximum resource usage value, that is, the actual resource usage value of the first application is allowed to exceed the range of the maximum resource usage value.

[0055] For each resource, different resource usage parameter values ​​may correspond to the same or different resource usage adjustment coefficients. For example, in the above formula, n1=0.8, n2=0.6, and n3=0.7. Since the purpose of configuring the resource usage adjustment coefficient is to give a certain redundancy value to the resource configuration value, in the above formula, the value of the resource usage adjustment coefficient should be between 0 and 1, and the smaller the value of the resource usage adjustment coefficient, the greater the redundancy value assigned to the resource configuration value. Take the resource as application memory and the resource usage parameter value only including the maximum resource usage value as an example, that is, the recommended application memory configuration value is determined according to the maximum application memory usage value. If the resource usage adjustment coefficient is not set, the maximum application memory usage value is directly determined as the recommended application memory configuration value. The recommended application memory configuration value does not have a redundancy value, and it is easy to cause the problem of excessive memory usage in certain scenarios (such as summit scenarios). If the resource usage adjustment coefficient is set, for example, the maximum application memory usage value is 4G, and the application memory usage expansion value is calculated as 5G according to the resource usage adjustment coefficient, then the recommended application memory configuration value can be determined to be 5G, with a redundancy value of 1G.

[0056] For different resources, the same or different resource usage adjustment coefficients can be set. The resource usage adjustment coefficient can be set according to the application type of the first application. For example, the Java application has a high demand for memory resources, and it is necessary to assign more redundancy values ​​to the resource "application memory". In this case, a smaller resource usage adjustment coefficient can be set for the resource "application memory", for example, the resource usage adjustment coefficients corresponding to the maximum resource usage value, the average resource usage value, and the resource index value are all set to smaller values. For another example, the Nodejs application has a high demand for the CPU, and it is necessary to assign more redundancy values ​​to the resource "CPU". In this case, a smaller resource usage adjustment coefficient can be set for the resource "CPU", for example, the resource usage adjustment coefficients corresponding to the maximum resource usage value, the average resource usage value, and the resource index value are all set to smaller values.

[0057] In this embodiment, a corresponding resource usage adjustment coefficient is set for the resource usage parameter value of each resource, and the resource usage adjustment range value is calculated according to the resource usage parameter value of each resource and the resource usage adjustment coefficient, and then the maximum value in the resource usage adjustment range value is used as the resource configuration recommended value corresponding to the resource, so that the resource configuration recommended value has a certain redundancy value, thereby avoiding the situation where the resource configuration value cannot meet the business needs of the application in certain scenarios with high resource requirements (such as summit scenarios).

[0058] In one embodiment, when performing resource configuration for the first application according to the resource configuration recommendation value, any of the following methods may be performed:

[0059] Method 1: Send the resource configuration recommendation value to the development system corresponding to the first application, so that the development system performs resource configuration for the first application according to the resource configuration recommendation value. The development system may be a DevOps system.

[0060] Method 2: Send the recommended resource configuration value to the cloud platform, so that the cloud platform performs resource configuration for the first application according to the recommended resource configuration value.

[0061] In one embodiment, if the resource usage of the first application meets the alarm condition, an alarm message is sent, the alarm message is used to indicate that the resource usage does not match the current resource configuration value of the first application; and / or the current resource configuration value is adjusted.

[0062] The resource usage data of the first application may be monitored in real time or periodically, and the resource usage data includes the resource usage rate, so as to monitor whether the resource usage data of the first application meets the alarm condition, and the alarm condition includes at least one of the following: the resource usage value is greater than or equal to the current resource configuration value of the first application, the resource usage rate is greater than or equal to the first preset usage rate threshold, and the resource usage rate is less than the second preset usage rate threshold. If so, an alarm message is issued; and / or the current resource configuration value is adjusted.

[0063] The resource usage value may include at least one of an application memory usage value, a CPU usage value, a virtual machine memory usage value, etc. The resource usage rate may include at least one of an application memory usage rate, a CPU usage rate, a virtual machine memory usage rate, etc.

[0064] The configuration computing system may monitor the resource usage data of the first application, the resource usage data including the resource usage rate, and send an alarm message to the development system and / or cloud platform of the first application when the resource usage data of the first application meets the alarm condition, so that the development system and / or cloud platform of the first application adjusts the current configuration value of the first application according to the alarm message. The alarm message may include at least one of the following information: the resource usage data of the first application (including the resource usage value and / or the resource usage rate), the alarm reason, and the current resource configuration value.

[0065] For example, the current resource configuration value corresponding to the application memory (i.e., the current application memory configuration value) is 4G. If the application memory usage value is monitored to be 4G, that is, the alarm condition is met, then the configuration computing system sends an alarm message to the development system and / or cloud platform of the first application. The alarm message includes: the application memory usage value is 4G and the current application memory configuration value has been reached.

[0066] For another example, the current resource configuration value corresponding to the application memory (i.e., the current application memory configuration value) is 4G, and the preset usage rate threshold is 90%. If the application memory usage is monitored to be 90%, that is, the alarm condition is met, then the configuration computing system sends an alarm message to the development system and / or cloud platform of the first application. The alarm message includes: the application memory usage is 90%, which has reached the preset usage rate threshold.

[0067] Optionally, the monitoring system of the first application may monitor the resource usage of the first application, and when it is monitored that the resource usage of the first application meets the alarm condition, send an alarm message to the configuration computing system, and the configuration computing system adjusts the current resource configuration value of the first application according to the alarm message. Alternatively, the configuration computing system forwards the alarm message to the development system and / or cloud platform of the first application, so that the development system and / or cloud platform of the first application adjusts the current resource configuration value of the first application according to the alarm message.

[0068] In this embodiment, when the current resource configuration value is adjusted, a resource configuration update indication may be sent to the development system and / or cloud platform corresponding to the first application. The resource configuration update indication is used to instruct the development system and / or cloud platform to adjust the current resource configuration value. The resource configuration update indication may carry a recommended resource configuration value.

[0069] In this embodiment, the action of adjusting the current resource configuration value can be performed by any one of the configuration computing system, the development system corresponding to the first application, and the cloud platform. Regardless of which party is the execution subject, it can be performed in any of the following ways a1-a3:

[0070] Method a1, increase or decrease the current resource configuration value by a preset adjustment value. Whether the current resource configuration value is increased or decreased can be determined based on what alarm condition the resource usage data of the monitored first application meets. Optionally, if the monitored resource usage value is greater than or equal to the current resource configuration value of the first application, or the resource usage rate is greater than or equal to the first preset usage rate threshold, it means that the current resource configuration value is insufficient, and the preset adjustment value can be increased to the current resource configuration value. If the monitored resource usage rate is less than the second preset usage rate threshold, it means that the current resource configuration value is redundant, and the preset adjustment value can be reduced to the current resource configuration value.

[0071] Method a2: Adjust the current resource configuration value to the recommended resource configuration value.

[0072] Method a3: reacquire the resource usage rate of the first application, and determine a new resource configuration recommended value of the first application according to the resource usage rate; and adjust the current resource configuration value to the new resource configuration recommended value.

[0073] In this embodiment, the resource usage data (including resource usage rate) of the first application is monitored in real time or periodically to see whether it meets the alarm conditions, and an alarm message is sent to the development system and / or cloud platform of the first application when the alarm conditions are met, so that the development system and / or cloud platform of the first application adjusts the current resource configuration value of the first application according to the alarm information, completes the self-healing recovery of the alarm, and forms a business closed loop through interaction among the monitoring system, the configuration calculation system, the development system and the cloud platform. No manual intervention is required in the processes of data monitoring, issuing alarm information and adjusting resource configuration values, thereby achieving the effect of automatically adjusting and optimizing resource configuration values ​​for applications, and improving the efficiency and execution of resource allocation.

[0074] In one embodiment, the current resource configuration value of the first application is compared with the recommended resource configuration value to determine whether the current resource configuration value matches the recommended resource configuration value. In the case where the current resource configuration value of the first application does not match the recommended resource configuration value, the current resource configuration value is adjusted. The current resource configuration value does not match the recommended resource configuration value, which may be any of the following: the current resource configuration value is greater than the recommended resource configuration value, the current resource configuration value is less than the recommended resource configuration value, and the difference between the current resource configuration value and the recommended resource configuration value is greater than or equal to a preset threshold.

[0075] Among them, the action of comparing the current resource configuration value of the first application with the recommended resource configuration value can be performed by the configuration calculation system or the development system of the first application. The development system can be a DevOps system, which is the entry point for the release of the first application. When the first application is released through the DevOps system, the DevOps system compares the current resource configuration value of the first application with the recommended resource configuration value to determine whether the current resource configuration value and the recommended resource configuration value match. If they do not match, the DevOps system can send a configuration optimization prompt to the cloud platform, and the cloud platform will optimize the current resource configuration value of the first application. The DevOps system can also directly correct the current resource configuration value of the first application.

[0076] Optionally, when adjusting the current resource configuration value, a resource configuration update indication may be sent to the development system and / or cloud platform corresponding to the first application; the resource configuration update indication is used to instruct the development system and / or cloud platform to adjust the current resource configuration value, and the resource configuration update indication may carry a recommended resource configuration value.

[0077] Optionally, whether the current resource configuration value matches the recommended resource configuration value may be determined based on the difference between the current resource configuration value and the recommended resource configuration value. For example, if the difference between the current resource configuration value and the recommended resource configuration value is greater than or equal to a preset difference threshold, it is determined that the current resource configuration value does not match the recommended resource configuration value.

[0078] The difference between the current resource configuration value and the recommended resource configuration value, and the preset difference threshold, can be in the form of a numerical value or a percentage. For example, when the difference between the current resource configuration value and the recommended resource configuration value is greater than or equal to 20%, it is determined that the current resource configuration value and the recommended resource configuration value do not match.

[0079] In addition, multiple different preset difference thresholds can be set, and the DevOps system can compare the difference between the current resource configuration value and the recommended resource configuration value to see which threshold interval it falls into, and respond accordingly. Optionally, if the difference between the current resource configuration value and the recommended resource configuration value is greater than the first preset difference threshold and less than the second preset difference threshold, the DevOps system issues a configuration optimization prompt. If the difference between the current resource configuration value and the recommended resource configuration value is greater than or equal to the second preset difference threshold, the DevOps system may not issue a configuration optimization prompt, but may directly correct the current resource configuration value of the first application, or may not allow the application to be published.

[0080] In this embodiment, the action of adjusting the current resource configuration value can be performed by any one of the configuration computing system, the development system corresponding to the first application, and the cloud platform. Regardless of which party is the execution subject, it can be performed in any of the following ways b1-b3:

[0081] Method b1, increase or decrease the current resource configuration value by a preset adjustment value. Whether the current resource configuration value is increased or decreased can be determined based on the difference between the current resource configuration value and the recommended resource configuration value, and the size relationship between the current resource configuration value and the recommended resource configuration value. Optionally, when the difference between the current resource configuration value and the recommended resource configuration value is greater than or equal to the preset difference threshold, if the current resource configuration value is less than the recommended resource configuration value, it means that the current resource configuration value does not meet the resource usage requirements of the first application, and the preset adjustment value can be increased for the current resource configuration value. If the current resource configuration value is greater than the recommended resource configuration value, it means that the current resource configuration value is redundant, and the preset adjustment value can be reduced for the current resource configuration value.

[0082] Method b2: Adjust the current resource configuration value to the recommended resource configuration value.

[0083] Mode b3: reacquire the resource usage rate of the first application, and determine a new resource configuration recommended value of the first application according to the resource usage rate; and adjust the current resource configuration value to the new resource configuration recommended value.

[0084] In this embodiment, by comparing the current resource configuration value of the first application with the recommended resource configuration value, and adjusting the current resource configuration value when the current resource configuration value and the recommended resource configuration value do not match, the current resource configuration value of the first application can be updated in time when it is unreasonable, ensuring that the resource configuration value of the first application remains at a reasonable level. In addition, when the current resource configuration value and the recommended resource configuration value do not match, the configuration calculation system can send a resource configuration update instruction to the development system and / or cloud platform corresponding to the first application to instruct the development system and / or cloud platform corresponding to the first application to adjust the current resource configuration value, thereby forming a business closed loop through interaction between the monitoring system, the configuration calculation system, the development system and the cloud platform, and no manual intervention is required from data monitoring to adjusting the resource configuration value, thereby achieving the effect of automatically adjusting and optimizing the resource configuration value for the application, and improving the efficiency and execution of resource configuration.

[0085] In summary, specific embodiments of the present subject matter have been described. Other embodiments are within the scope of the appended claims. In some cases, the actions recorded in the claims can be performed in a different order and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing can be advantageous.

[0086] Figure 2 is a schematic block diagram of a resource configuration system according to an embodiment of the present application, such as Figure 2 As shown, the system includes a monitoring system, a configuration computing system, a development system and a cloud platform, wherein:

[0087] A monitoring system, used to monitor resource usage of the first application;

[0088] A computing system is configured to obtain a resource usage rate from a monitoring system; a recommended resource configuration value of a first application is determined based on the resource usage rate and a resource usage adjustment coefficient; and the recommended resource configuration value is sent to a development system and / or a cloud platform of the first application; the resource usage adjustment coefficient is used to indicate that the actual resource usage value of the first application exceeds a range of the resource usage rate;

[0089] The development system and / or cloud platform is used to perform resource configuration for the first application according to the recommended resource configuration value.

[0090] Optionally, a monitoring tool Pinpoint is integrated into the monitoring system. Pinpoint supports monitoring of JVM memory (ie, virtual machine memory) usage, including monitoring of JVM memory overflow or waste.

[0091] Figure 3is a schematic flow chart of a resource configuration method according to another embodiment of the present application, such as Figure 3 As shown, this method is applied to Figure 2 The resource configuration system shown includes the following steps:

[0092] S301, a monitoring system monitors a historical resource usage rate of a first application.

[0093] The resource may include at least one of the following: application memory, CPU, and virtual machine memory of the first application during operation. For example, if the scripting language of the first application is Java, the virtual machine memory may be Java JVM memory, and JVM is the execution environment of the Java program.

[0094] The historical resource usage rate includes the application memory usage rate, CPU usage rate and virtual machine memory usage rate of the first application during the operation of the first application. The historical resource usage rate is a way of expressing resource usage data, such as the resource usage rate of the first application in the last month. In this embodiment, taking the first application not yet released as an example, the first application can be trial-run in the test environment of the first application, and the resource usage data generated by the trial run is used as a basis, so that the monitoring system can monitor the historical resource usage rate of the first application.

[0095] S302: The configuration calculation system calls the historical resource usage rate of the first application from the monitoring system, determines the resource configuration recommendation value of the first application according to the historical resource usage rate and the resource usage adjustment coefficient, and stores it in the configuration calculation system.

[0096] The resource configuration recommendation value includes at least one of the following: an application memory configuration recommendation value corresponding to the application memory usage, a CPU configuration recommendation value corresponding to the CPU usage, and a virtual machine memory configuration recommendation value corresponding to the virtual machine memory usage. The method for determining the resource configuration recommendation value has been described in detail in the above embodiment and will not be repeated here.

[0097] The resource usage adjustment coefficient is used to indicate that the actual resource usage value of the first application exceeds the range of the resource usage rate, and the resource usage adjustment coefficient can be set in advance for each resource. The resource usage adjustment coefficient can be set according to the application type of the first application. For example, the Java application has a high demand for memory resources, and it is necessary to assign more redundancy values ​​to the "application memory" resource, so a smaller resource usage adjustment coefficient can be set for the "application memory" resource. For another example, the Nodejs application has a high demand for the CPU, and it is necessary to assign more redundancy values ​​to the "CPU" resource, so a smaller resource usage adjustment coefficient can be set for the "CPU" resource.

[0098] S303: When the first application needs to be released through the development system, the development system calls the resource configuration recommendation value of the first application from the configuration calculation system.

[0099] S304, the development system determines whether the current resource configuration value matches the recommended resource configuration value. If not, execute S305; if yes, execute S306.

[0100] S305: The development system adjusts the current resource configuration value of the first application according to the recommended resource configuration value.

[0101] S306, the development system releases the first application.

[0102] S307, during the operation of the first application, the monitoring system monitors the resource usage of the first application, and when it is monitored that the resource usage meets the alarm condition, sends an alarm message to the configuration computing system.

[0103] The alarm condition includes at least one of the following: resource usage is greater than or equal to a first preset usage threshold, and resource usage is less than a second preset usage threshold. The alarm information may include at least one of the following information: resource usage data of the first application (i.e., resource usage value and / or resource usage), alarm reason, and current resource configuration value.

[0104] S308 , the configuration computing system sends a resource configuration update instruction to the development system and / or the cloud platform based on the alarm information, so as to instruct the development system and / or the cloud platform to adjust the current resource configuration value.

[0105] The resource configuration update indication may carry a resource configuration recommendation value.

[0106] By adopting the technical solution of this embodiment, through the interaction between the monitoring system, the configuration calculation system, the development system and the cloud platform, the resource configuration process forms a business closed loop, and no manual intervention is required from the process of data monitoring, issuing alarm information and adjusting resource configuration values, so as to achieve the effect of automatically adjusting and optimizing resource configuration values ​​for applications, and improve the efficiency and execution of resource configuration. In addition, since the monitoring tool Pinpoint is integrated in the monitoring system, Pinpoint can be started together with the Java process, and the usage data of the Java virtual machine memory (i.e., JVM memory) is collected in the service, so that the allocation state of the Java virtual machine memory can be perceived, so that the configuration calculation system can calculate the virtual memory configuration recommendation value according to the usage data of the Java virtual machine memory, which can not only automatically configure resources for the CPU and application memory, but also automatically configure resources for the virtual memory. In addition, after the first application is released, the resource utilization rate of the first application is monitored in real time or periodically by the monitoring system, and an alarm message is issued when the resource utilization rate is monitored to meet the alarm condition, so that the development system and / or the cloud platform can adjust the current resource configuration value of the first application in time, which greatly improves the real-time performance of resource configuration optimization.

[0107] Based on the same idea, an embodiment of the present application also provides a resource configuration device.

[0108] Figure 4 is a schematic block diagram of a resource configuration device according to an embodiment of the present application, such as Figure 4 As shown, the device comprises:

[0109] A first determining module 41, configured to determine a resource usage rate of a first application;

[0110] A second determination module 42 is used to determine a recommended resource configuration value of the first application according to the resource usage rate and a resource usage adjustment coefficient; the resource usage adjustment coefficient is used to indicate that the actual resource usage value of the first application exceeds the range of the resource usage rate;

[0111] The configuration module 43 is used to perform resource configuration for the first application according to the resource configuration recommendation value.

[0112] In one embodiment, the resource usage rate includes the virtual machine memory usage rate of the first application; the resource usage adjustment coefficient includes the resource usage adjustment coefficient of the virtual machine memory;

[0113] When determining the resource configuration recommendation value of the first application according to the resource usage rate and the resource usage adjustment coefficient, the second determination module 42 performs the following steps:

[0114] A virtual machine memory configuration recommendation value of the virtual machine memory usage rate is determined according to the virtual machine memory usage rate and the resource usage adjustment coefficient of the virtual machine memory.

[0115] In one embodiment, when the second determination module 42 determines the resource configuration recommendation value of the first application according to the resource usage rate and the resource usage adjustment coefficient, the second determination module 42 performs the following steps:

[0116] Calculating a resource usage parameter value of the first application according to the resource usage rate;

[0117] The resource configuration recommendation value of the first application is determined according to the resource usage parameter value and the resource usage adjustment coefficient.

[0118] In one embodiment, the resource utilization rate is a resource utilization rate of multiple resources;

[0119] When the second determination module 42 determines the resource configuration recommendation value of the first application according to the resource usage parameter value and the resource usage adjustment coefficient, the second determination module 42 performs the following steps:

[0120] Calculating a resource usage adjustment range value corresponding to the resource usage parameter value according to the resource usage parameter value of each resource and the resource usage adjustment coefficient of each resource;

[0121] The maximum value in the resource usage adjustment range is determined as the resource configuration recommendation value corresponding to the resource.

[0122] In one embodiment, the apparatus further comprises:

[0123] An alarm or adjustment module is used to send an alarm message if the resource usage of the first application meets the alarm condition, and the alarm message is used to indicate that the resource usage does not match the current resource configuration value of the first application; and / or adjust the current resource configuration value.

[0124] In one embodiment, when the configuration module 43 performs resource configuration for the first application according to the resource configuration recommendation value, the configuration module 43 executes the following steps:

[0125] In a case where the current resource configuration value of the first application does not match the recommended resource configuration value, the current resource configuration value is adjusted according to the recommended resource configuration value.

[0126] In one embodiment, the alarm or adjustment module or the configuration module 43 performs at least one of the following steps when adjusting the current resource configuration value:

[0127] Increase or decrease the current resource configuration value by a preset adjustment value;

[0128] Adjusting the current resource configuration value to the resource configuration recommended value;

[0129] Reacquire the resource usage rate of the first application, and determine a new resource configuration recommended value of the first application according to the resource usage rate; and adjust the current resource configuration value to the new resource configuration recommended value.

[0130] In one embodiment, when the configuration module 43 performs resource configuration for the first application according to the resource configuration recommendation value, the configuration module 43 executes the following steps:

[0131] configuring a first resource for the first application, wherein a resource value of the first resource is the same as the resource configuration recommended value;

[0132] or,

[0133] A second resource is configured for the first application, wherein a resource value of the second resource is higher than a preset resource value than the recommended value of the resource configuration.

[0134] By using the device provided in the embodiment of the present application, the resource utilization rate of the first application is determined, and the recommended resource configuration value of the first application is determined according to the resource utilization rate and the resource utilization adjustment coefficient, and then the first application is configured with resources according to the recommended resource configuration value. Since the recommended resource configuration value is determined according to the resource utilization rate of each type of resource by the first application, and the resource utilization adjustment coefficient is used to indicate that the actual resource utilization value of the first application exceeds the range of the resource utilization rate, it is not only possible to match the resource configuration result with the resource utilization rate of each type of resource by the first application, avoiding the situation where resource waste or insufficient resources occurs when the resource configuration result and the resource utilization rate do not match, but also allows the actual resource utilization value of the first application to have a certain range exceeding the resource utilization rate, which can cope with the situation where the first application has a high demand for resources during the peak operation period, so as to achieve a better resource configuration effect. In addition, the resource configuration process of the application is completed through full automation without manual participation, which improves the efficiency and execution of resource configuration.

[0135] Those skilled in the art should understand that Figure 4 The resource configuration device in can be used to implement the resource configuration method described above, and the detailed description thereof should be similar to the description of the method part above. To avoid tediousness, it will not be repeated here.

[0136] Based on the same idea, the embodiment of the present application also provides an electronic device, such as Figure 5As shown. The electronic device may have relatively large differences due to different configurations or performances, and may include one or more processors 501 and memory 502, and the memory 502 may store one or more storage applications or data. Among them, the memory 502 can be a temporary storage or a permanent storage. The application stored in the memory 502 may include one or more modules (not shown in the figure), and each module may include a series of computer executable instructions in the electronic device. Furthermore, the processor 501 can be configured to communicate with the memory 502 to execute a series of computer executable instructions in the memory 502 on the electronic device. The electronic device may also include one or more power supplies 503, one or more wired or wireless network interfaces 504, one or more input and output interfaces 505, and one or more keyboards 506.

[0137] Specifically in this embodiment, the electronic device includes a memory and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer executable instructions for the electronic device, and the one or more programs are configured to be executed by one or more processors, including the following computer executable instructions:

[0138] determining resource usage of the first application;

[0139] Determining a recommended resource configuration value for the first application according to the resource usage rate and the resource usage adjustment coefficient; the resource usage adjustment coefficient is used to indicate that the actual resource usage value of the first application exceeds the range of the resource usage rate;

[0140] Perform resource configuration for the first application according to the resource configuration recommendation value.

[0141] By adopting the technical solution provided in the embodiment of the present application, by determining the resource utilization rate of the first application, determining the recommended resource configuration value of the first application according to the resource utilization rate and the resource utilization adjustment coefficient, and then performing resource configuration on the first application according to the recommended resource configuration value. Since the recommended resource configuration value is determined based on the resource utilization rate of each type of resource by the first application, and the resource utilization adjustment coefficient is used to indicate that the actual resource utilization value of the first application exceeds the range of the resource utilization rate, it is not only possible to match the resource configuration result with the resource utilization rate of each type of resource by the first application, thus avoiding the situation where resource waste or insufficient resources occurs when the resource configuration result and the resource utilization rate do not match, but also allows the actual resource utilization value of the first application to have a certain excess range compared to the resource utilization rate, which can cope with the situation where the first application has a high demand for resources during the peak period of operation, so as to achieve a better resource configuration effect. In addition, the resource configuration process of the application is completed through full automation without manual participation, which improves the efficiency and execution of resource configuration.

[0142] The embodiment of the present application further proposes a computer-readable storage medium, which stores one or more computer programs, and the one or more computer programs include instructions. When the instructions are executed by an electronic device including multiple application programs, the electronic device can execute each process of the above-mentioned resource configuration method embodiment, and is specifically used to execute:

[0143] determining resource usage of the first application;

[0144] Determining a recommended resource configuration value for the first application according to the resource usage rate and the resource usage adjustment coefficient; the resource usage adjustment coefficient is used to indicate that the actual resource usage value of the first application exceeds the range of the resource usage rate;

[0145] Perform resource configuration for the first application according to the resource configuration recommendation value.

[0146] By adopting the technical solution provided in the embodiment of the present application, by determining the resource utilization rate of the first application, determining the recommended resource configuration value of the first application according to the resource utilization rate and the resource utilization adjustment coefficient, and then performing resource configuration on the first application according to the recommended resource configuration value. Since the recommended resource configuration value is determined based on the resource utilization rate of each type of resource by the first application, and the resource utilization adjustment coefficient is used to indicate that the actual resource utilization value of the first application exceeds the range of the resource utilization rate, it is not only possible to match the resource configuration result with the resource utilization rate of each type of resource by the first application, thus avoiding the situation where resource waste or insufficient resources occurs when the resource configuration result and the resource utilization rate do not match, but also allows the actual resource utilization value of the first application to have a certain excess range compared to the resource utilization rate, which can cope with the situation where the first application has a high demand for resources during the peak period of operation, so as to achieve a better resource configuration effect. In addition, the resource configuration process of the application is completed through full automation without manual participation, which improves the efficiency and execution of resource configuration.

[0147] An embodiment of the present application provides a computer program product, including a computer program, which is executed by a processor to implement the various processes of the above-mentioned resource configuration method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0148] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0149] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0150] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0151] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0152] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0153] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0154] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0155] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0156] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0157] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0158] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0159] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0160] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A resource allocation method, It is characterized in that include: determining resource usage of the first application; Determining a recommended resource configuration value for the first application according to the resource usage rate and the resource usage adjustment coefficient; The resource usage adjustment coefficient is used to indicate that the actual resource usage value of the first application exceeds the range of the resource usage rate; Perform resource configuration for the first application according to the resource configuration recommendation value.

2. The method according to claim 1, It is characterized in that The resource usage rate includes the virtual machine memory usage rate of the first application; the resource usage adjustment coefficient includes the resource usage adjustment coefficient of the virtual machine memory; The determining, according to the resource usage rate and the resource usage adjustment coefficient, a recommended resource configuration value for the first application includes: A virtual machine memory configuration recommendation value of the virtual machine memory usage rate is determined according to the virtual machine memory usage rate and the resource usage adjustment coefficient of the virtual machine memory.

3. The method according to claim 1, It is characterized in that The determining, according to the resource usage rate and the resource usage adjustment coefficient, a recommended resource configuration value for the first application includes: Calculating a resource usage parameter value of the first application according to the resource usage rate; The resource configuration recommendation value of the first application is determined according to the resource usage parameter value and the resource usage adjustment coefficient.

4. The method according to claim 3, It is characterized in that The resource utilization rate is the resource utilization rate of multiple resources; The determining the resource configuration recommendation value of the first application according to the resource usage parameter value and the resource usage adjustment coefficient includes: Calculating a resource usage adjustment range value corresponding to the resource usage parameter value according to the resource usage parameter value of each resource and the resource usage adjustment coefficient of each resource; The maximum value among the plurality of resource usage adjustment range values ​​is determined as the resource configuration recommended value.

5. The method according to claim 1, It is characterized in that The method further comprises: If the resource usage of the first application meets the alarm condition, an alarm message is sent, where the alarm message is used to indicate that the resource usage does not match the current resource configuration value of the first application; and / or the current resource configuration value is adjusted.

6. The method according to claim 1, It is characterized in that The performing resource configuration on the first application according to the resource configuration recommendation value includes: In a case where the current resource configuration value of the first application does not match the recommended resource configuration value, the current resource configuration value is adjusted according to the recommended resource configuration value.

7. The method according to claim 5 or 6, It is characterized in that The adjusting the current resource configuration value includes at least one of the following: Increase or decrease the current resource configuration value by a preset adjustment value; Adjusting the current resource configuration value to the resource configuration recommended value; Re-determining the resource usage rate of the first application, and determining a new resource configuration recommendation value of the first application according to the resource usage rate; The current resource configuration value is adjusted to the new resource configuration recommended value.

8. The method according to claim 1, It is characterized in that The performing resource configuration on the first application according to the resource configuration recommendation value includes: configuring a first resource for the first application, wherein a resource value of the first resource is the same as the resource configuration recommended value; or, A second resource is configured for the first application, wherein a resource value of the second resource is higher than a preset resource value than the recommended value of the resource configuration.

9. A resource allocation device, It is characterized in that include: A first determining module, used to determine a first application resource usage rate; A second determination module is used to determine a recommended resource configuration value of the first application according to the resource usage rate and a resource usage adjustment coefficient; the resource usage adjustment coefficient is used to indicate that the actual resource usage value of the first application exceeds the range of the resource usage rate; A configuration module is used to perform resource configuration for the first application according to the resource configuration recommendation value.

10. A resource allocation system, It is characterized in that It includes monitoring system, configuration computing system, development system and cloud platform, among which: The monitoring system is used to monitor the resource usage of the first application; The configuration calculation system is used to obtain the resource usage rate from the monitoring system; determine the resource configuration recommendation value of the first application according to the resource usage rate and the resource usage adjustment coefficient; send the resource configuration recommendation value to the development system and / or the cloud platform; the resource usage adjustment coefficient is used to indicate that the actual resource usage value of the first application exceeds the range of the resource usage rate; The development system and / or cloud platform is used to perform resource configuration for the first application according to the resource configuration recommendation value.

11. An electronic device, It is characterized in that The method comprises a processor and a memory electrically connected to the processor, wherein the memory stores a computer program, and the processor is used to call and execute the computer program from the memory to implement the resource configuration method according to any one of claims 1 to 8.

12. A computer-readable storage medium, It is characterized in that The storage medium is used to store a computer program, and the computer program can be executed by a processor to implement the resource configuration method according to any one of claims 1 to 8.

13. A computer program product, It is characterized in that The method comprises a computer program, wherein the computer program is executed by a processor to implement the resource configuration method according to any one of claims 1 to 8.