Node resource adjustment method and device, electronic equipment and storage medium
Obtain node resource usage data through the monitoring platform, analyze and adjust resource allocation, solve the problem that node resources cannot be optimized and adjusted after cloud resources, improve resource utilization, adapt to business changes, and avoid resource waste.
Patent Information
- Application Number
- CN202410682725.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2024-09-17
AI Technical Summary
After configuring the cloud resources of the node, the existing technology is difficult to further optimize and adjust the node resources, resulting in low resource utilization. Especially when business transactions decrease, resources cannot be easily optimized, resulting in resource waste.
By calling the resource monitoring interface of the monitoring platform, obtain different monitoring indicator data of the target node, analyze the data to determine the basic data and dimensions of the node, determine the target data required for each financial business based on these data, and adjust computing resources according to the target data , such as CPU, memory and cache allocation, shrinking or expanding.
The resource utilization rate of the resource domain is improved. By dynamically adjusting resource allocation to adapt to business needs, resource waste is avoided, and the overall utilization efficiency of node resources is improved.
Smart Images

Figure CN118659967A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of financial technology or other related fields, and in particular, to a method for adjusting node resources and a device thereof, an electronic device and a storage medium. Background Art
[0002] Currently, after configuring the cloud resources of a node, you can learn the utilization rate of the node's resources (for example, CPU and storage area memory) and the resource usage data of all nodes in different dimensions from some monitoring systems. After the initial resource allocation, in order to stabilize the operation of the business on the server, the resources of the node server are generally not reduced in size. Only after the business on the server is offline will we consider recycling this part of the resources.
[0003] In the related technology, the resource recovery plan only recovers server resources after the business goes offline. However, when business transactions are decreasing, the allocated resources on the node often have extremely low resource utilization when running the current financial business. At this time, in order to ensure the stable operation of the financial business on the node server, the node resources cannot be easily optimized, resulting in the resource utilization within the resource domain not being further improved.
[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0005] The embodiments of the present invention provide a method for adjusting node resources and a device thereof, an electronic device and a storage medium, so as to at least solve the technical problem in the related art that after the cloud resources of the node are configured, the node resources cannot be further optimized and adjusted.
[0006] According to one aspect of an embodiment of the present invention, a method for adjusting node resources is provided, comprising: calling a resource monitoring interface of a monitoring platform, and obtaining indicator data corresponding to different monitoring indicators of a target node through the resource monitoring interface; analyzing the indicator data to obtain the dimension to which the target node belongs and node basic data, wherein the node basic data comprises: the mean and peak values of various types of computing resources used by the target node within a predetermined interval; based on the node basic data, determining the target data required by the target node for each financial business; and determining a resource adjustment plan for each type of computing resource based on the target data required for each financial business.
[0007] Optionally, the step of analyzing the indicator data to obtain the dimension to which the target node belongs and the node basic data includes: locating the dimension to which the target node belongs according to the node field identifier, wherein the type of the dimension includes at least one of the following: host group, region to which the node belongs, data center to which the node belongs, and park to which the node belongs.
[0008] Optionally, the step of analyzing the indicator data to obtain the dimension to which the target node belongs and the node basic data also includes: when the computing resource includes a CPU, extracting the CPU usage rate of the target node in different time periods in the indicator data; when the computing resource includes a memory, extracting the memory usage rate of the target node in different time periods in the indicator data; when the computing resource includes a cache, extracting the cache usage rate of the target node in different time periods in the indicator data; and obtaining the node basic data by combining the CPU usage rate in different time periods, the memory usage rate in different time periods and the cache usage rate in different time periods.
[0009] Optionally, the step of extracting the CPU usage rate of the target node associated with the indicator data in different time periods also includes: extracting the average usage rate, the lowest usage rate and the highest usage rate of the CPU associated with the target node in the indicator data within a first predetermined time period, and obtaining the mean and peak value of the CPU within the first predetermined time period; extracting the average usage rate, the lowest usage rate and the highest usage rate of the CPU associated with the target node in the indicator data within a second predetermined time period, and obtaining the mean and peak value of the CPU within the second predetermined time period, wherein the second predetermined time period is greater than the first predetermined time period.
[0010] Optionally, the step of analyzing the indicator data to obtain the dimension to which the target node belongs and the node basic data also includes: analyzing the indicator data to obtain the allocated number and unallocated number of each type of computing resources of the target node in different dimensions; extracting the allocated number and unallocated number of each type of computing resources of the target node in different dimensions into the node basic data.
[0011] Optionally, based on the node basic data, the step of determining the target data required by the target node for each financial business includes: based on the node basic data, determining the mean and peak values of the resource utilization rate of the target node for each financial business in the host group dimension; based on the node basic data, determining the mean and peak values of the resource utilization rate of the target node for each financial business in the dimension of the area to which the node belongs; based on the node basic data, determining the mean and peak values of the resource utilization rate of the target node for each financial business in the dimension of the data center to which the node belongs; based on the node basic data, determining the mean and peak values of the resource utilization rate of the target node for each financial business in the dimension of the park to which the node belongs.
[0012] Optionally, the step of determining a resource adjustment plan for each type of computing resource based on the target data required for each financial business includes: if the average resource utilization rate of each type of computing resource in the target data is lower than a first preset threshold, or the peak value is lower than a second preset threshold, the target node is scaled down, wherein the second preset threshold is higher than the first preset threshold; if the average resource utilization rate of each type of computing resource in the target data is higher than a third preset threshold, or the peak value is higher than a fourth preset threshold, the target node is expanded, wherein the third preset threshold is greater than the first preset threshold, and the fourth preset threshold is greater than the second preset threshold.
[0013] According to another aspect of an embodiment of the present invention, a node resource adjustment device is also provided, including: an interface calling unit, used to call the resource monitoring interface of the monitoring platform, and obtain indicator data corresponding to different monitoring indicators of the target node through the resource monitoring interface; a data analysis unit, used to analyze the indicator data, and obtain the dimension to which the target node belongs and the node basic data, wherein the node basic data includes: the mean and peak value of the target node using various types of computing resources within a predetermined interval; a data determination unit, used to determine the target data required by the target node for each financial business based on the node basic data; a resource adjustment unit, used to determine the resource adjustment plan for each type of computing resource based on the target data required for each financial business.
[0014] Optionally, the data analysis unit includes: a dimension positioning module, used to locate the dimension to which the target node belongs according to the node field identifier, wherein the type of the dimension includes at least one of the following: a host group, an area to which the node belongs, a data center to which the node belongs, and a park to which the node belongs.
[0015] Optionally, the data analysis unit also includes: a first extraction module, used to extract the CPU usage rate of the target node in different time periods in the indicator data when the computing resources include a CPU; a second extraction module, used to extract the memory usage rate of the target node in different time periods in the indicator data when the computing resources include a memory; a third extraction module, used to extract the cache usage rate of the target node in different time periods in the indicator data when the computing resources include a cache; and a comprehensive module, used to comprehensively obtain the node basic data by combining the CPU usage rate in different time periods, the memory usage rate in different time periods and the cache usage rate in different time periods.
[0016] Optionally, the first extraction module includes: a first extraction sub-module, used to extract the average usage rate, minimum usage rate and maximum usage rate of the CPU associated with the target node in the indicator data within a first predetermined time period, and obtain the mean and peak value of the CPU in the first predetermined time period; a second extraction sub-module, used to extract the average usage rate, minimum usage rate and maximum usage rate of the CPU associated with the target node in the indicator data within a second predetermined time period, and obtain the mean and peak value of the CPU in the second predetermined time period, wherein the second predetermined time period is greater than the first predetermined time period.
[0017] Optionally, the data analysis unit also includes: a data analysis module, used to analyze the indicator data to obtain the allocated quantity and unallocated quantity of each type of computing resources of the target node in different dimensions; a data extraction module, used to extract the allocated quantity and unallocated quantity of each type of computing resources of the target node in different dimensions into the node basic data.
[0018] Optionally, the data determination unit includes: a first determination module, used to determine the mean and peak values of the resource utilization rate of the target node for each financial business in the host group dimension based on the node basic data; a second determination module, used to determine the mean and peak values of the resource utilization rate of the target node for each financial business in the dimension of the area to which the node belongs based on the node basic data; a third determination module, used to determine the mean and peak values of the resource utilization rate of the target node for each financial business in the dimension of the data center to which the node belongs based on the node basic data; and a fourth determination module, used to determine the mean and peak values of the resource utilization rate of the target node for each financial business in the dimension of the park to which the node belongs based on the node basic data.
[0019] Optionally, the resource adjustment unit is used to include: a capacity reduction module, which is used to reduce the capacity of the target node when the average resource utilization rate of each type of computing resources in the target data is lower than a first preset threshold, or the peak value is lower than a second preset threshold, wherein the second preset threshold is higher than the first preset threshold; an expansion module, which is used to expand the capacity of the target node when the average resource utilization rate of each type of computing resources in the target data is higher than a third preset threshold, or the peak value is higher than a fourth preset threshold, wherein the third preset threshold is greater than the first preset threshold, and the fourth preset threshold is greater than the second preset threshold.
[0020] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is also provided, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute any of the above-mentioned node resource adjustment methods.
[0021] According to another aspect of an embodiment of the present invention, there is also provided an electronic device, comprising one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement any one of the above-mentioned node resource adjustment methods.
[0022] According to another aspect of an embodiment of the present invention, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps of any one of the above-mentioned node resource adjustment methods are implemented.
[0023] In the present disclosure, the resource monitoring interface of the monitoring platform is called, and the indicator data corresponding to different monitoring indicators of the target node are obtained through the resource monitoring interface; the indicator data is analyzed to obtain the dimension to which the target node belongs and the node basic data, wherein the node basic data includes: the mean and peak value of the target node's use of various computing resources within a predetermined interval; based on the node basic data, the target data required for each financial business of the target node is determined; based on the target data required for each financial business, the resource adjustment plan for each type of computing resources is determined.
[0024] In the present disclosure, the target data required for different businesses can be determined based on the dimension to which the node belongs and the basic data of the node, and the target high-order data can be used to determine whether the current node needs to be optimized, thereby improving the resource utilization in the entire resource domain, thereby solving the technical problem in related technologies that after the cloud resources of the node are configured, the node resources cannot be further optimized and adjusted. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0026] Figure 1 is a flow chart of an optional method for adjusting node resources according to an embodiment of the present invention;
[0027] Figure 2 is a schematic diagram of an optional implementation of node resource optimization according to an embodiment of the present invention;
[0028] Figure 3 is a schematic diagram of an optional node resource adjustment device according to an embodiment of the present invention;
[0029] Figure 4 The present invention is a hardware structure block diagram of an electronic device (or mobile device) for a method for adjusting node resources according to an embodiment of the present invention. DETAILED DESCRIPTION
[0030] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only 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 should fall within the scope of protection of the present invention.
[0031] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0032] To facilitate those skilled in the art to understand the present invention, some terms or nouns involved in the embodiments of the present invention are explained below:
[0033] A host group is a collection of hosts or servers with similar functions or features, usually used to deploy and manage related services or applications.
[0034] Region refers to the geographical concept in cloud computing, usually a collection of physical locations or data centers, including multiple availability zones (AZs), which are used to provide services and resources in geographical locations.
[0035] Availability Zone, Avai l abi l ity Zone, referred to as AZ, refers to the availability zone in cloud computing, usually refers to isolated data centers or server clusters in the same geographical area, used to provide high availability and fault tolerance.
[0036] A campus refers to a data center or server cluster within a specific area or park.
[0037] It should be noted that the node resource adjustment method and device disclosed in the present invention can be used in the financial technology field to optimize node resources based on historical resource usage data, and can also be used in any field other than the financial technology field to optimize node resources based on historical resource usage data. The present invention does not limit the application field of the node resource adjustment method and device disclosed in the present invention.
[0038] It should be noted that the information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) collected by this disclosure are information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data are in compliance with the relevant laws, regulations and standards of the relevant regions, necessary confidentiality measures are taken, and public order and good customs are not violated, and corresponding operation portals are provided for users to choose to authorize or refuse. For example, an interface is set up between this system and relevant users or organizations. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain relevant information after receiving the consent information fed back by the aforementioned user or organization.
[0039] It should be noted that in the present disclosure, when collecting and analyzing customer information, corresponding operation entrances are provided for users to choose to agree or reject the automated decision results; if the user chooses to reject, the expert decision-making process is entered.
[0040] The following embodiments of the present invention can be applied to various systems / applications / devices for adjusting node resources. When optimizing node resources, the present invention determines whether the current node needs to be optimized based on different high-level data required by different businesses. In the process of gradually reducing business volume, the visualization effect of high-level data is used to refer to whether to shrink some nodes and resource domains of different dimensions, which can effectively improve the utilization of resources in cloud computing scenarios.
[0041] The present invention is described in detail below in conjunction with various embodiments.
[0042] Embodiment 1
[0043] According to an embodiment of the present invention, an embodiment of a method for adjusting node resources is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0044] Figure 1 is a flow chart of an optional method for adjusting node resources according to an embodiment of the present invention, such as Figure 1As shown, the method comprises the following steps:
[0045] Step S101, calling the resource monitoring interface of the monitoring platform, and obtaining the indicator data corresponding to different monitoring indicators of the target node through the resource monitoring interface.
[0046] Step S102, analyzing the indicator data to obtain the dimension to which the target node belongs and the node basic data, wherein the node basic data includes: the mean and peak values of various types of computing resources used by the target node within a predetermined interval.
[0047] Step S103, based on the node basic data, determining the target data required by the target node for each financial business.
[0048] Step S104, determining a resource adjustment plan for each type of computing resource based on the target data required for each financial business.
[0049] Through the above steps, the resource monitoring interface of the monitoring platform can be called, and the indicator data corresponding to different monitoring indicators of the target node can be obtained through the resource monitoring interface; the indicator data can be analyzed to obtain the dimension to which the target node belongs and the node basic data, wherein the node basic data includes: the mean and peak value of the target node using various types of computing resources within a predetermined interval; based on the node basic data, the target data required for each financial business of the target node is determined; based on the target data required for each financial business, the resource adjustment plan for various types of computing resources is determined. In this embodiment, the target data required for different businesses can be determined according to the dimension to which the node belongs and the node basic data, and the target high-order data can be used to determine whether the current node needs to be optimized, thereby improving the resource utilization rate in the entire resource domain, thereby solving the technical problem in the related technology that the node resources cannot be further optimized and adjusted after the cloud resources of the node are configured.
[0050] The embodiment of the present invention is described in detail below in combination with the above steps.
[0051] Step S101, calling the resource monitoring interface of the monitoring platform, and obtaining the indicator data corresponding to different monitoring indicators of the target node through the resource monitoring interface.
[0052] It should be noted that the resource monitoring interface mentioned in this embodiment may refer to an interface for monitoring node usage, which may be deployed in each node to obtain indicator data by pulling data on resource usage.
[0053] It should also be noted that the monitoring platform mentioned in this embodiment can aggregate the monitoring data of the resource monitoring interfaces deployed on all nodes and issue resource monitoring instructions. There is no specific limit on the number of resource monitoring interfaces managed by each monitoring platform. For example, each configuration resource of the node is configured with at least one resource monitoring interface.
[0054] Specifically, when monitoring resource usage data in the resource monitoring interface, the focus is on monitoring indicators, for example, monitoring peak values, occupancy rates and other data.
[0055] Step S102, analyzing the indicator data to obtain the dimension to which the target node belongs and the node basic data, wherein the node basic data includes: the mean and peak values of various types of computing resources used by the target node within a predetermined interval.
[0056] Optionally, step S102 includes: locating the dimension to which the target node belongs according to the node field identifier, wherein the type of the dimension includes at least one of the following: a host group, a region to which the node belongs, a data center to which the node belongs, and a park to which the node belongs. In this embodiment, the data returned by the resource monitoring interface can be analyzed, and the dimension to which the node belongs can be obtained according to the node field identifier, wherein the dimensions include host group, region, AZ, and park.
[0057] In addition, in the node resource adjustment method provided in this embodiment, step S102 includes: when the computing resources include a CPU, extracting the CPU usage rate of the associated target node in the indicator data in different time periods; when the computing resources include a memory, extracting the memory usage rate of the associated target node in the indicator data in different time periods; when the computing resources include a cache, extracting the cache usage rate of the associated target node in the indicator data in different time periods; and obtaining the node basic data by comprehensively analyzing the CPU usage rate in different time periods, the memory usage rate in different time periods, and the cache usage rate in different time periods.
[0058] In this embodiment, the resource usage rates of CPU, memory, storage, etc. in different time periods are mainly extracted.
[0059] Optionally, the step of extracting the CPU usage of the associated target node in the indicator data in different time periods also includes: extracting the average usage, minimum usage and maximum usage of the CPU of the associated target node in the indicator data within a first predetermined time period, to obtain the mean and peak value of the CPU within the first predetermined time period; extracting the average usage, minimum usage and maximum usage of the CPU of the associated target node in the indicator data within a second predetermined time period, to obtain the mean and peak value of the CPU within the second predetermined time period, wherein the second predetermined time period is greater than the first predetermined time period.
[0060] The first predetermined time period and the second predetermined time period mentioned in this embodiment can be set by oneself, for example, the first predetermined time period can be set to 1 day, 2 days, and the second time period can be set to 7 days, 10 days, etc.
[0061] In addition, in the node resource adjustment method provided in this embodiment, step S102 also includes: analyzing indicator data to obtain the allocated quantity and unallocated quantity of each type of computing resources of the target node in different dimensions; extracting the allocated quantity and unallocated quantity of each type of computing resources of the target node in different dimensions into the node basic data.
[0062] Step S103, based on the node basic data, determining the target data required by the target node for each financial business.
[0063] Optionally, step S103 in the node resource adjustment method provided in this embodiment includes: based on the node basic data, determining the mean and peak values of the resource utilization rate of the target node for each financial business in the host group dimension; based on the node basic data, determining the mean and peak values of the resource utilization rate of the target node for each financial business in the dimension of the area to which the node belongs; based on the node basic data, determining the mean and peak values of the resource utilization rate of the target node for each financial business in the dimension of the data center to which the node belongs; based on the node basic data, determining the mean and peak values of the resource utilization rate of the target node for each financial business in the dimension of the park to which the node belongs.
[0064] In this embodiment, the mean and peak values of resource utilization of nodes for financial services in different dimensions can be determined. The different dimensions include: host group dimension, Region (i.e., the region dimension to which the node belongs), data center dimension to which the node belongs (or data availability zone dimension), and park dimension to which the node belongs.
[0065] Here, it should be noted that the mean of resource usage can refer to the average value obtained by accumulating all usage data in a certain period of time. For example, after determining the usage of a certain financial business in the region to which the node belongs within 7 days, the average daily usage is calculated. As for the peak value of resource usage, it can include: the lowest resource usage value, the highest node usage value and other values. The mean and peak statistics can reflect the node usage data.
[0066] The target data required for the financial business mentioned in this embodiment may refer to the high-level data of the business, that is, based on the basic data of the node, including the average and peak values of the CPU and memory usage of the node in different time periods, the high-level data for the business can be calculated. For example, the high-level data includes: 1. The seven-day average and peak value of the node's resource utilization; 2. The 30-day average and peak value of the node's resource utilization; 3. The seven-day average and peak value of the host group's resource utilization; 4. The seven-day average and peak value of the region's resource utilization; 5. The 1-day and 7-day average and peak value of the resource utilization and resource allocation rate of the AZ dimension; 6. The 1-day and 7-day average and peak value of the resource utilization and resource allocation rate of the region dimension; 7. The 1-day and 7-day average and peak value of the resource utilization and resource allocation rate of the park dimension.
[0067] Step S104, determining a resource adjustment plan for each type of computing resource based on the target data required for each financial business.
[0068] Optionally, step S104 in the node resource adjustment method provided in this embodiment includes: if the average resource utilization rate of each type of computing resources in the target data is lower than a first preset threshold, or the peak value is lower than a second preset threshold, the target node is scaled down, wherein the second preset threshold is higher than the first preset threshold; if the average resource utilization rate of each type of computing resources in the target data is higher than a third preset threshold, or the peak value is higher than a fourth preset threshold, the target node is expanded, wherein the third preset threshold is greater than the first preset threshold, and the fourth preset threshold is greater than the second preset threshold.
[0069] Another optional specific implementation is described in detail below.
[0070] In this implementation, the resource utilization rate in the entire resource domain can be further improved by optimizing the node resources based on the historical resource usage data.
[0071] Figure 2 is a schematic diagram of an optional implementation of node resource optimization according to an embodiment of the present invention, such as Figure 2 As shown, including:
[0072] The first step is to call the resource monitoring interface to monitor node resource usage data based on monitoring indicators.
[0073] By calling the node resource utilization interface of the monitoring platform and changing different monitoring indicators, the indicator data can be obtained.
[0074] The second step is to analyze the interface data.
[0075] By analyzing the data returned by the interface, the dimension to which the node belongs can be obtained according to the node field identifier, including the host group, region, AZ, campus, etc., and the node's CPU, cache, memory, etc. usage, as well as the allocated and unallocated quantities of resources in different dimensions.
[0076] The third step is to determine the basic data of the node.
[0077] The basic data of the node can be obtained, and then the high-level data for the business can be calculated based on the basic data of the node (including the average and peak values of the node's daily CPU and memory usage).
[0078] The fourth step is to determine the high-level data.
[0079] The high-level data determined in this implementation is as follows:
[0080] 1. The seven-day average and peak resource utilization rate of the node; 2. The seven-day average and peak resource utilization rate of the node for 30 days; 3. The seven-day average and peak resource utilization rate of the host group dimension; 4. The seven-day average and peak resource utilization rate of the region dimension; 5. The 1-day and 7-day average and peak resource utilization rate and resource allocation rate of the AZ dimension; 6. The 1-day and 7-day average and peak resource utilization rate and resource allocation rate of the region dimension; 7. The 1-day and 7-day average resource utilization rate and peak resource allocation rate of the park dimension.
[0081] The mean data calculation of different dimensions is adjusted automatically, for example, the region dimension (region1):
[0082] The first type is the peak value of region 1 in one day: the original data of region 1 is 288 points per day, and a data point is collected every five minutes. The three highest values of these 288 points are removed and the maximum value is taken as the peak value of region 1.
[0083] The second type is the seven-day peak value of region 1: the maximum value of the peak value of region 1 on a certain day is taken within the next seven days.
[0084] The third type, region 1 thirty-day peak value: analogous to the second type, region 1 seven-day peak value algorithm.
[0085] The fourth type is the daily average of region 1: the original data of region 1 is the sum of 288 points per day / 288.
[0086] The fifth type is the seven-day average of region1: the sum of the average of region1 on a certain day and the next seven days / 7.
[0087] The sixth type is the thirty-day average of region 1: the algorithm of the seven-day average of region 1 is analogous to that of region 1.
[0088] Step 5: Determine the current business scenario.
[0089] The sixth step is to determine whether to optimize node resources.
[0090] For the high-order data required for a specific financial business, this implementation method can calculate the required high-order data for different financial businesses based on the basic data collected previously to analyze whether the node resources need to be optimized. The first is for different financial businesses, and different financial business requirements are different. For example, for a server that has issued virtual machines, the first application based on the business is a 16C64G virtual machine. For this aspect of financial business, the high-order data can have historical peak values and averages. If the long-term memory usage rate is always in the range of about 20% (for example, the usage rate is in the range of 18%-25%), it means that the server for this financial application processing business is an inefficient server, and the server needs to be evaluated to evaluate whether it needs to be scaled down or replaced, so as to improve the resource utilization of the entire resource domain.
[0091] In an embodiment of the present invention, when performing node resource optimization, it is possible to determine whether the current node needs to be optimized based on different high-order data required for different financial services. At the same time, in the process of gradually decreasing business volume, the visualization effect of high-order data (business distance optimized by high-order data molecular nodes) can be used to refer to whether to scale down resources at some nodes and resource domains of different dimensions, thereby further improving the utilization rate of node resources in cloud computing scenarios.
[0092] The following is a detailed description in conjunction with another embodiment.
[0093] Embodiment 2
[0094] A node resource adjustment device provided in this embodiment includes multiple implementation units, each implementation unit corresponds to each implementation step in the above-mentioned embodiment 1.
[0095] Figure 3 is a schematic diagram of an optional node resource adjustment device according to an embodiment of the present invention, such as Figure 2 As shown, the node resource adjustment device may include: an interface calling unit 31, a data analyzing unit 32, a data determining unit 33, and a resource adjustment unit 34.
[0096] The interface calling unit 31 is used to call the resource monitoring interface of the monitoring platform, and obtain the indicator data corresponding to different monitoring indicators of the target node through the resource monitoring interface.
[0097] The data analysis unit 32 is used to analyze the indicator data to obtain the dimension to which the target node belongs and the node basic data, wherein the node basic data includes: the mean and peak values of various types of computing resources used by the target node within a predetermined interval.
[0098] The data determination unit 33 is used to determine the target data required by the target node for each financial business based on the node basic data.
[0099] The resource adjustment unit 34 is used to determine resource adjustment plans for various types of computing resources based on target data required for each financial business.
[0100] The above-mentioned node resource adjustment device can call the resource monitoring interface of the monitoring platform through the interface calling unit 31, obtain the indicator data corresponding to different monitoring indicators of the target node through the resource monitoring interface, analyze the indicator data through the data analysis unit 32, and obtain the dimension to which the target node belongs and the node basic data, wherein the node basic data includes: the mean and peak value of the target node using various types of computing resources within a predetermined interval, determine the target data required for each financial business of the target node based on the node basic data through the data determination unit 33, and determine the resource adjustment plan for various types of computing resources based on the target data required for each financial business through the resource adjustment unit 34. In this embodiment, the target data required for different businesses can be determined according to the dimension to which the node belongs and the node basic data, and the target high-order data can be used to determine whether the current node needs to be optimized, thereby improving the resource utilization rate in the entire resource domain, thereby solving the technical problem in the related technology that the node resources cannot be further optimized and adjusted after the cloud resources of the node are configured.
[0101] Optionally, the data analysis unit includes: a dimension positioning module, used to locate the dimension to which the target node belongs according to the node field identifier, wherein the type of dimension includes at least one of the following: a host group, an area to which the node belongs, a data center to which the node belongs, and a park to which the node belongs.
[0102] It should be noted that the resource monitoring interface mentioned in this embodiment may refer to an interface for monitoring node usage, which may be deployed in each node to obtain indicator data by pulling data on resource usage.
[0103] It should also be noted that the monitoring platform mentioned in this embodiment can aggregate the monitoring data of the resource monitoring interfaces deployed on all nodes and issue resource monitoring instructions. There is no specific limit on the number of resource monitoring interfaces managed by each monitoring platform. For example, each configuration resource of the node is configured with at least one resource monitoring interface.
[0104] Specifically, when monitoring resource usage data in the resource monitoring interface, the focus is on monitoring indicators, for example, monitoring peak values, occupancy rates and other data.
[0105] Optionally, the data analysis unit also includes: a first extraction module, which is used to extract the CPU usage rate of the associated target node in the indicator data in different time periods when the computing resources include the CPU; a second extraction module, which is used to extract the memory usage rate of the associated target node in the indicator data in different time periods when the computing resources include the memory; a third extraction module, which is used to extract the cache usage rate of the associated target node in the indicator data in different time periods when the computing resources include the cache; and a comprehensive module, which is used to comprehensively integrate the CPU usage rate in different time periods, the memory usage rate in different time periods and the cache usage rate in different time periods to obtain the node basic data.
[0106] Optionally, the first extraction module includes: a first extraction sub-module, used to extract the average usage rate, minimum usage rate and maximum usage rate of the CPU of the associated target node in the indicator data within the first predetermined time period, and obtain the mean and peak value of the CPU in the first predetermined time period; a second extraction sub-module, used to extract the average usage rate, minimum usage rate and maximum usage rate of the CPU of the associated target node in the indicator data within the second predetermined time period, and obtain the mean and peak value of the CPU in the second predetermined time period, wherein the second predetermined time period is greater than the first predetermined time period.
[0107] Optionally, the data analysis unit also includes: a data analysis module, used to analyze indicator data to obtain the allocated and unallocated quantities of various computing resources of the target node in different dimensions; a data extraction module, used to extract the allocated and unallocated quantities of various computing resources of the target node in different dimensions into node basic data.
[0108] Optionally, the data determination unit includes: a first determination module, used to determine the mean and peak values of the resource utilization rate of the target node for each financial business in the host group dimension based on the node basic data; a second determination module, used to determine the mean and peak values of the resource utilization rate of the target node for each financial business in the dimension of the area to which the node belongs based on the node basic data; a third determination module, used to determine the mean and peak values of the resource utilization rate of the target node for each financial business in the dimension of the data center to which the node belongs based on the node basic data; a fourth determination module, used to determine the mean and peak values of the resource utilization rate of the target node for each financial business in the dimension of the park to which the node belongs based on the node basic data.
[0109] Optionally, the resource adjustment unit is used to include: a capacity reduction module, which is used to reduce the capacity of the target node when the average resource utilization rate of each type of computing resources in the target data is lower than a first preset threshold, or the peak value is lower than a second preset threshold, wherein the second preset threshold is higher than the first preset threshold; an expansion module, which is used to expand the capacity of the target node when the average resource utilization rate of each type of computing resources in the target data is higher than a third preset threshold, or the peak value is higher than a fourth preset threshold, wherein the third preset threshold is greater than the first preset threshold, and the fourth preset threshold is greater than the second preset threshold.
[0110] The above-mentioned node resource adjustment device may also include a processor and a memory. The above-mentioned interface calling unit 31, data analysis unit 32, data determination unit 33, resource adjustment unit 34, etc. are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize the corresponding functions.
[0111] The above processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the kernel parameters can be adjusted to determine whether the current node needs to be optimized through the target high-level data, thereby improving the resource utilization in the entire resource domain.
[0112] The above-mentioned memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash memory (fl ash RAM), and the memory includes at least one storage chip.
[0113] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the node resource adjustment method of any one of the above-mentioned embodiments one.
[0114] According to another aspect of an embodiment of the present invention, there is also provided an electronic device, comprising one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by one or more processors, the one or more processors implement the node resource adjustment method of any one of the above-mentioned embodiments one.
[0115] The present application also provides a computer program product, including a computer program. When the computer program is executed by a processor, the steps of implementing the node resource adjustment method described in each embodiment of the present application include: calling the resource monitoring interface of the monitoring platform, and obtaining the indicator data corresponding to different monitoring indicators of the target node through the resource monitoring interface; analyzing the indicator data to obtain the dimension to which the target node belongs and the node basic data, wherein the node basic data includes: the mean and peak value of the target node using various types of computing resources within a predetermined interval; based on the node basic data, determining the target data required by the target node for each financial business; and determining the resource adjustment plan for various types of computing resources based on the target data required for each financial business.
[0116] The present application also provides a computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the node resource adjustment method described in each embodiment of the present application are implemented.
[0117] Figure 4 1 is a hardware structure block diagram of an electronic device (or mobile device) for a method for adjusting node resources according to an embodiment of the present invention. Figure 4 As shown, the electronic device may include one or more ( Figure 4 402a, 402b, ..., 402n are used to illustrate) processor 402 (processor 402 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), memory 404 for storing data. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the I / O interface), a network interface, a keyboard, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 4 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 4 More or fewer components as shown, or with Figure 4 Different configurations shown.
[0118] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0119] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0120] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0121] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0122] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0123] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of 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 method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0124] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for adjusting node resources, characterized in that: include: Call the resource monitoring interface of the monitoring platform, and obtain the indicator data corresponding to different monitoring indicators of the target node through the resource monitoring interface; Analyze the indicator data to obtain the dimension to which the target node belongs and node basic data, wherein the node basic data includes: the average and peak values of various types of computing resources used by the target node within a predetermined interval; Based on the node basic data, determining the target data required by the target node for each financial business; A resource adjustment plan for each type of computing resource is determined based on the target data required for each financial business.
2. The node resource adjustment method according to claim 1, characterized in that: The step of analyzing the indicator data to obtain the dimension to which the target node belongs and the node basic data includes: The dimension to which the target node belongs is located according to the node field identifier, wherein the type of the dimension includes at least one of the following: a host group, a region to which the node belongs, a data center to which the node belongs, and a park to which the node belongs.
3. The node resource adjustment method according to claim 1, characterized in that: The step of analyzing the indicator data to obtain the dimension to which the target node belongs and the node basic data also includes: In the case where the computing resource includes a CPU, extracting the usage rate of the CPU associated with the target node in different time periods in the indicator data; In the case where the computing resource includes memory, extracting the usage rate of the memory associated with the target node in different time periods in the indicator data; In the case where the computing resource includes a cache, extracting usage rates of the cache associated with the target node in different time periods in the indicator data; The node basic data is obtained by comprehensively analyzing the usage rate of the CPU in different time periods, the usage rate of the memory in different time periods, and the usage rate of the cache in different time periods.
4. The node resource adjustment method according to claim 3, characterized in that: The step of extracting the CPU usage of the target node in different time periods from the indicator data also includes: Extracting the average utilization rate, the minimum utilization rate, and the maximum utilization rate of the CPU associated with the target node in the indicator data within the first predetermined time period, and obtaining the mean and peak values of the CPU within the first predetermined time period; The average utilization rate, the minimum utilization rate and the maximum utilization rate of the CPU associated with the target node in the indicator data within the second predetermined time period are extracted to obtain the mean and peak value of the CPU within the second predetermined time period, wherein the second predetermined time period is greater than the first predetermined time period.
5. The node resource adjustment method according to claim 3, characterized in that: The step of analyzing the indicator data to obtain the dimension to which the target node belongs and the node basic data also includes: Analyze the indicator data to obtain the allocated quantity and unallocated quantity of various computing resources of the target node in different dimensions; The allocated quantity and unallocated quantity of various computing resources of the target node in different dimensions are extracted into the node basic data.
6. The node resource adjustment method according to claim 1, characterized in that: The step of determining target data required by the target node for each financial business based on the node basic data includes: Based on the node basic data, determine the mean and peak value of resource usage of the target node for each financial service in the host group dimension; Based on the node basic data, determine the mean and peak value of resource usage of the target node for each financial business in the dimension of the region to which the node belongs; Based on the node basic data, determine the mean and peak value of resource usage of the target node for each financial business in the dimension of the data center to which the node belongs; Based on the node basic data, determine the mean and peak value of resource utilization of the target node for each financial business in the dimension of the park to which the node belongs.
7. The node resource adjustment method according to claim 1, characterized in that: The step of determining a resource adjustment plan for each type of computing resource based on the target data required by each financial business includes: If the average resource usage rate of each type of computing resource in the target data is lower than a first preset threshold, or the peak value is lower than a second preset threshold, the target node is scaled down, wherein the second preset threshold is higher than the first preset threshold; If the average resource utilization rate of each type of computing resource in the target data is higher than a third preset threshold, or the peak value is higher than a fourth preset threshold, the target node is expanded, wherein the third preset threshold is greater than the first preset threshold, and the fourth preset threshold is greater than the second preset threshold.
8. A node resource adjustment device, characterized in that: include: An interface calling unit, used to call a resource monitoring interface of the monitoring platform, and obtain indicator data corresponding to different monitoring indicators of the target node through the resource monitoring interface; A data analysis unit, configured to analyze the indicator data to obtain the dimension to which the target node belongs and node basic data, wherein the node basic data includes: the average and peak values of various types of computing resources used by the target node within a predetermined interval; A data determination unit, configured to determine target data required by the target node for each financial service based on the node basic data; The resource adjustment unit is used to determine the resource adjustment plan for each type of computing resources based on the target data required by each financial business.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the node resource adjustment method according to any one of claims 1 to 7.
10. An electronic device, characterized in that: It includes one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the node resource adjustment method described in any one of claims 1 to 7.
