A cloud computing resource optimization method and system
By constructing a virtual machine scheduling model and applying the betweenness centrality algorithm to optimize the data flow path, and combining reinforcement learning to adjust resource allocation, the problem of real-time load changes in cloud computing resource scheduling is solved, resource utilization efficiency and system performance are improved, and operating costs are reduced. and delay.
Patent Information
- Application Number
- CN202411035402.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-07-31
AI Technical Summary
Existing technologies cannot adapt to real-time load changes in cloud computing resource scheduling, resulting in low resource utilization efficiency and high costs, affecting system performance and user experience.
By building a virtual machine scheduling model, dynamically updating the status data of nodes and edges, applying the betweenness centrality algorithm to identify areas where data flow is concentrated, optimizing the data flow path based on the maximum flow and minimum cut theorem, and using reinforcement learning to adjust the resource allocation strategy to generate CPU load Balance strategy.
It achieves instant visualization and control of resource distribution, improves resource management efficiency, accurately identifies key network nodes and high-load areas, avoids resource congestion, reduces operating costs and delays, and improves user satisfaction.
Smart Images

Figure CN118567867B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of resource scheduling, and in particular to a cloud computing resource optimization method and system. Background Art
[0002] Resource scheduling is an important field in computer science, especially focusing on the efficient allocation and management of resources in a multi-tasking environment. This field covers multiple levels, from process scheduling in operating systems to workload management in large data centers. In cloud computing environments, resource scheduling is particularly important because it affects the utilization efficiency and cost control of computing resources such as CPU time, memory, storage, and network bandwidth. Efficient resource scheduling strategies can ensure high performance and high availability of the system while optimizing energy consumption and operating costs. This technical field not only needs to consider the physical and logical characteristics of resources, but also needs to cope with dynamically changing load requirements and real-time performance optimization.
[0003] Among them, cloud computing resource optimization methods involve the development and application of various strategies to improve the efficiency and performance of resource usage in cloud computing environments. These methods may include, but are not limited to, load balancing, resource reservation, and elastic scaling, which aim to dynamically adjust resource allocation based on real-time demand. Cloud computing resource optimization has a wide range of uses, mainly used to increase data processing speed, reduce latency, and improve user satisfaction while reducing operating costs and energy consumption. Through these optimization measures, cloud service providers can more effectively manage their hardware and software assets, ensure service quality, and enhance the overall reliability and economy of the system.
[0004] Existing technologies usually rely on preset or semi-automatic resource allocation strategies in resource scheduling, which cannot adapt to real-time load changes in a timely manner, affecting system performance and resource utilization efficiency. For example, traditional load balancing technologies often do not take into account the physical and logical topology of the data center, resulting in less than ideal resource scheduling. In addition, resource reservation and elastic scaling strategies that rely on predictions may lead to resource waste or shortages when predictions are inaccurate. These deficiencies may cause data processing speed delays, reduce user experience, increase operating costs, and reduce energy efficiency. In actual operations, these problems may cause service instability and affect the market competitiveness and customer trust of cloud service providers. Summary of the invention
[0005] The purpose of the present invention is to solve the shortcomings of the prior art and to propose a cloud computing resource optimization method and system.
[0006] In order to achieve the above object, the present invention adopts the following technical solution: a cloud computing resource optimization method, comprising the following steps:
[0007] S1: Based on real-time data center resource usage and network status, a virtual machine scheduling model is built to collect usage data of servers and storage devices. Servers and storage devices are used as nodes, network connections and data flows are used as edges, and the status data of nodes and edges are dynamically updated to generate a virtual machine scheduling graph.
[0008] S2: Based on the virtual machine scheduling graph, analyze the data flow inlet and outlet of each node, apply the betweenness centrality algorithm to identify the data flow concentration area, calculate the key node load in the network flow, and generate a storage capacity optimization report;
[0009] S3: Based on the storage capacity optimization report and in combination with the maximum flow minimum cut theorem, the data flow path is optimized, data flow is redistributed according to regional load, network load is balanced, and a network traffic management plan is generated;
[0010] S4: Based on the network traffic management plan, monitor the system operation feedback, apply reinforcement learning to adjust the data scheduling strategy, match the resource usage change trend, optimize the traffic and resource allocation, and generate a CPU load balancing strategy.
[0011] As a further solution of the present invention, the step of obtaining the virtual machine scheduling graph is specifically as follows:
[0012] S111: Collects real-time usage data of servers and storage devices, including CPU usage , memory usage and remaining storage space , using the formula:
[0013]
[0014] in, is the weight coefficient, generating the resource utilization index of each device ;
[0015] S112: The resource usage index based on the node , substitute the network delay data , using the formula:
[0016]
[0017] in, and To adjust the parameters, used to adjust the impact of delay on the status score, Represents the maximum delay and obtains the update status score of each node ;
[0018] S113: Using the update status score of the server and storage device , substitute the network connection and data flow quality into the formula:
[0019]
[0020] in, represents the connection quality from node i to node j, Represents the average connection quality. By adjusting parameters, it enhances the sensitivity to network quality fluctuations and generates a virtual machine scheduling graph. .
[0021] As a further solution of the present invention, the step of acquiring the data stream concentrated area is specifically:
[0022] S211: Based on each node in the virtual machine scheduling graph, collect the information of the data flow inlet and outlet, and calculate the inlet flow of multiple nodes and export flow , using the improved formula:
[0023]
[0024] in, It is an adjustment coefficient used to balance the traffic differences between multiple nodes and calculate the total data traffic of each node. , generate a list of total node data traffic;
[0025] S212: Analyze the nodes using the total data flow list of the nodes and apply the betweenness centrality algorithm, using the formula:
[0026]
[0027] Generating centrality scores , according to the centrality score , identify areas where data flows are concentrated;
[0028] in, Represents the total data traffic of other nodes, Represents the sum of the total data traffic of all nodes, represents the distance between node i and node j, is the attenuation constant, used to adjust the effect of distance.
[0029] As a further solution of the present invention, the steps of obtaining the storage capacity optimization report are specifically as follows:
[0030] S221: Based on the node centrality score, the formula is:
[0031]
[0032] Calculate the load ratio of each key node and get the load ratio of each node , generate a list of node load ratios;
[0033] in, represents the centrality score of the node, Representative Node The weight coefficient of Represents the sum of all weighted node centrality scores;
[0034] S222: Using the node load ratio list, perform storage demand analysis on each key node, referring to the node load ratio and current storage capacity, using the formula:
[0035]
[0036] The effect of load ratio on storage demand is adjusted by square root operation, and the storage capacity required for each node after load adjustment is calculated. , establish an adjusted storage requirement list and integrate it to generate a storage capacity optimization report;
[0037] in, is the load ratio of the node, is the current storage capacity of node i.
[0038] As a further solution of the present invention, the step of optimizing the data flow path is specifically:
[0039] S311: Analyze the storage capacity optimization report and calculate the storage difference of each node in the network using the formula:
[0040]
[0041] Get the node storage balance list , get the storage difference of each node;
[0042] in, is the storage capacity required by node i is the current storage capacity of node i is the node importance weight is a smoothing parameter used to adjust the sensitivity of storage differences;
[0043] S312: Using the stored balance list , apply the maximum flow minimum cut theorem to analyze the bottleneck of network flow, using the formula:
[0044]
[0045] Calculate the minimum cut value of the network , determine the key restriction points of the data flow path;
[0046] in, is the storage difference of nodes in the cut set, is the estimated cut set It is a parameter adjustment used to increase the influence of large difference nodes in the cut set;
[0047] S313: Based on the minimum cut value , reconfigure the network data flow path, using the formula:
[0048]
[0049] Generate optimized data flow path plan ;
[0050] in, is the total network traffic is the adjustment factor used to adjust the total flow according to the minimum cut value.
[0051] As a further solution of the present invention, the steps of obtaining the network traffic management plan are specifically as follows:
[0052] S321: Identify the bottleneck nodes in the network through the optimized data flow path solution, using the formula:
[0053] .
[0054] Calculate the traffic share index and generate a traffic share index array ;
[0055] in, Representation Node To Node Traffic share indicator, Indicates flow rate, Indicates the connection capacity, It is the weight coefficient obtained based on historical data analysis;
[0056] S322: According to the flow ratio indicator array , set dynamic threshold , using the formula:
[0057]
[0058] Filter the connection points that exceed the threshold to obtain a list of high-load connection points ;
[0059] in, As the basic threshold, provide preliminary screening criteria, It is a dynamic coefficient adjusted according to the connection characteristics, reflecting the changes in time and flow;
[0060] S323: According to the high-load connection point list , implement traffic redistribution, using the formula:
[0061]
[0062] Calculate the adjusted traffic distribution , establish a network traffic management plan.
[0063] As a further solution of the present invention, the step of obtaining the resource usage change trend is specifically as follows:
[0064] S411: After adopting the network traffic management plan, real-time monitoring of the utilization data of multiple CPUs , calculation time Average CPU usage , using the formula:
[0065]
[0066] Calculate and obtain the real-time CPU usage result item;
[0067] in, Representative CPUs at a time The utilization rate, is the total number of CPUs, is average Utilization rate;
[0068] S412: Based on the real-time CPU usage result item, a reinforcement learning model is applied to predict the CPU usage of the next time step, using the formula:
[0069]
[0070] Calculate and obtain the predicted CPU usage result item;
[0071] in, Represents the CPU usage predicted for the next time step, is the CPU usage at the current time step predicted by the model, is the learning rate, is the adjustment factor, referring to the difference between the maximum and minimum utilization rates, and Respectively represent the maximum and minimum values of CPU usage during the observation period;
[0072] S413: Using the predicted CPU usage result item and real-time The utilization rate calculates the resource usage trend using the formula:
[0073]
[0074] Calculate the resource usage change trend;
[0075] in, is a resource sensitivity parameter used to adjust the model's response to small fluctuations.
[0076] As a further solution of the present invention, the step of obtaining the CPU load balancing strategy is specifically as follows:
[0077] S421: Based on the resource usage change trend, call the current usage rate of each CPU And obtain network traffic requirements , calculate the correlation To characterize the relationship between traffic demand and resource usage, use the formula:
[0078]
[0079] Generate network traffic with Resource demand correlation;
[0080] in, is the total number of nodes, It is the correlation between traffic demand and resource usage;
[0081] S422: Based on the network traffic and Resource demand correlation, reallocate the resource ratio of each CPU , using the formula:
[0082]
[0083] Keep resources allocated on demand and generate resource allocation ratios for each CPU
[0084] in, It is The resource allocation ratio of each CPU, is the relevance result item obtained from the step, It is the current CPU usage;
[0085] S423: Using the resource allocation ratio of each CPU and multiple The responsiveness is calculated using the formula:
[0086]
[0087] Calculate the overall CPU load balancing strategy;
[0088] in, Indicates the overall CPU load balancing strategy, yes The total number of .
[0089] A cloud computing resource optimization system, the cloud computing resource optimization system is used to execute the cloud computing resource optimization method, the system comprises:
[0090] The cloud resource real-time monitoring module collects the activity data of servers and storage devices based on real-time data monitoring, regards servers and storage devices as nodes, and network connections and data flows as lines, refreshes the status information of connections and nodes in real time, and generates a real-time resource status diagram;
[0091] The scheduling graph construction module integrates updated node and edge information based on the real-time resource status graph to construct a virtual machine scheduling graph;
[0092] The traffic analysis module runs traffic analysis based on the virtual machine scheduling graph, performs inlet and outlet traffic statistics for each node, determines the data flow intensive area through network load distribution, and generates load analysis results;
[0093] The load optimization module applies traffic redistribution logic based on the load analysis results, adjusts and optimizes network paths according to regional loads, and generates a network traffic management plan;
[0094] The adaptive scheduling module implements operation monitoring and feedback adjustment based on the network traffic management plan, adjusts the data scheduling strategy, matches the dynamic changes of resource consumption, and generates a CPU load balancing strategy.
[0095] Compared with the prior art, the advantages and positive effects of the present invention are:
[0096] In the present invention, the resource distribution is visualized and controlled in real time through the dynamically updated virtual machine scheduling diagram, thereby enhancing the efficiency of resource management. The betweenness centrality algorithm is used to analyze the data flow concentration area and accurately identify the key nodes and high-load areas in the network, allowing resource optimization to be more accurately adjusted to demand. The data flow path is optimized through the maximum flow minimum cut theorem to avoid resource congestion and balance the overall network load. The introduction of reinforcement learning technology enables the resource allocation strategy to adaptively match resource usage changes, optimize traffic and resource allocation, and improve system operation efficiency and response speed. This strategy provides effective support for improving data processing speed, reducing latency, enhancing user satisfaction, and reducing operating costs and energy consumption. BRIEF DESCRIPTION OF THE DRAWINGS
[0097] Figure 1 It is a schematic diagram of the workflow of the present invention;
[0098] Figure 2 A flowchart of the steps for obtaining a virtual machine scheduling graph of the present invention;
[0099] Figure 3 It is a flow chart of the steps of obtaining the concentrated area of the data stream of the present invention;
[0100] Figure 4 A flow chart of the steps for obtaining a storage capacity optimization report of the present invention;
[0101] Figure 5 A flow chart of the steps for optimizing the data flow path of the present invention;
[0102] Figure 6 A flowchart of the steps for obtaining the network traffic management plan of the present invention;
[0103] Figure 7 A flow chart of the steps for obtaining the resource usage change trend of the present invention;
[0104] Figure 8 The figure is a flow chart of the steps for obtaining the CPU load balancing strategy of the present invention. DETAILED DESCRIPTION
[0105] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0106] In the description of the present invention, it should be understood that the terms "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, in the description of the present invention, "multiple" means two or more, unless otherwise clearly and specifically defined.
[0107] Embodiment 1
[0108] See also Figure 1 The present invention provides a technical solution: a cloud computing resource optimization method, comprising the following steps:
[0109] S1: Based on real-time data center resource usage and network status, a virtual machine scheduling model is built to collect usage data of servers and storage devices. Servers and storage devices are used as nodes, network connections and data flows are used as edges, and the status data of nodes and edges are dynamically updated to generate a virtual machine scheduling graph.
[0110] S2: Based on the virtual machine scheduling graph, analyze the data flow inlet and outlet of each node, apply the betweenness centrality algorithm to identify the data flow concentration area, calculate the key node load in the network flow, and generate a storage capacity optimization report;
[0111] S3: Based on the storage capacity optimization report and combined with the maximum flow minimum cut theorem, it optimizes the data flow path, redistributes the data flow according to the regional load, balances the network load, and generates a network traffic management plan;
[0112] S4: Based on the network traffic management plan and monitoring system operation feedback, reinforcement learning is applied to adjust the data scheduling strategy, match the resource usage change trend, optimize traffic and resource allocation, and generate CPU load balancing strategy.
[0113] The virtual machine scheduling diagram includes node type, connection status, and update frequency. The storage capacity optimization report specifically includes the node load table, traffic density, and centrality score. The network traffic management plan includes the optimized path, traffic adjustment measures, and load balancing strategy. The CPU load balancing strategy includes adjustment frequency, resource utilization, and performance improvement indicators.
[0114] See also Figure 2 ,The specific steps for obtaining the virtual machine scheduling graph are:
[0115] S111: Collects real-time usage data of servers and storage devices, including CPU usage , memory usage and remaining storage space , using the formula:
[0116]
[0117] in, is the weight coefficient, generating the resource utilization index of each device ;
[0118] S112: Node-based resource utilization index , substitute the network delay data , using the formula:
[0119]
[0120] in, and To adjust the parameters, used to adjust the impact of delay on the status score, Represents the maximum delay and obtains the update status score of each node ;
[0121] S113: Update status score using server and storage device , substitute the network connection and data flow quality into the formula:
[0122]
[0123] in, represents the connection quality from node i to node j, Represents the average connection quality. By adjusting parameters, it enhances the sensitivity to network quality fluctuations and generates a virtual machine scheduling graph. .
[0124] Resource Utilization Index Formula
[0125]
[0126] parameter:
[0127] Occupancy rate, assuming .
[0128] Memory usage, assumed to be .
[0129] The remaining storage space is assumed to be .
[0130] are the weight coefficients of the corresponding parameters, set .
[0131] Example derivation:
[0132] Assuming that all weight coefficients are 1, the formula is simplified to average value calculation:
[0133]
[0134] The obtained 0.55 represents the resource utilization index of the node. The closer the value is to 1, the more intense the resource utilization is.
[0135] Node status score formula
[0136]
[0137] parameter:
[0138] The resource utilization index of the node is calculated in the previous step to be 0.55.
[0139] Network latency, assumed to be 50 milliseconds.
[0140] The maximum possible delay is assumed to be 100 milliseconds.
[0141] : Adjust the parameters, assumed to be 1.5 and 2, to enhance the effect of delay.
[0142] Example derivation:
[0143]
[0144] The resulting 0.4 represents the status score of the node after considering resource usage and latency. A higher value indicates a better node status.
[0145] Virtual Machine Scheduling Graph Construction Formula
[0146]
[0147] parameter:
[0148] The node status score calculated in the previous step is 0.4.
[0149] Connection quality index, assuming that the connection quality between nodes is .
[0150] Average connection quality, assumed to be .
[0151] : Number of nodes, assuming 3 nodes.
[0152] Example derivation:
[0153] Assume that the connection quality between the three nodes is , the average connection quality is , the number of nodes is 3:
[0154] The obtained value of 0.9144 represents the comprehensive score of the virtual machine scheduling graph. The higher this value is, the higher the overall efficiency of the scheduling system is.
[0155] See also Figure 3 ,The specific steps for obtaining the concentrated area of the data stream are:
[0156] S211: Based on each node in the virtual machine scheduling graph, collect the information of data flow inlet and outlet, and calculate the inlet flow of multiple nodes and export flow , using the improved formula:
[0157]
[0158] in, It is an adjustment coefficient used to balance the traffic differences between multiple nodes and calculate the total data traffic of each node. , generate a list of total node data traffic;
[0159] S212: Using the total data flow list of the nodes, apply the betweenness centrality algorithm to analyze the nodes, through the formula:
[0160]
[0161] Generating centrality scores , according to the centrality score , identify areas where data flows are concentrated;
[0162] in, Represents the total data traffic of other nodes, Represents the sum of the total data traffic of all nodes, represents the distance between node i and node j, is the attenuation constant, used to adjust the effect of distance.
[0163] formula:
[0164]
[0165] Parameter explanation:
[0166] : Adjustment coefficient, assumed to be 1, to keep the calculation results intuitive.
[0167] The data flow inlet flow of the node is assumed to be 100 units.
[0168] The data flow rate of the node is assumed to be 150 units.
[0169] The total data traffic of the node.
[0170] Calculation process and examples:
[0171] Assume that the data flow inlet flow of a node is For 100 units, the export flow For 150 units, the adjustment factor Set to 1:
[0172]
[0173] The 180.28 units here represent the total data traffic of the node after taking into account the ingress and egress traffic.
[0174] formula:
[0175]
[0176] Parameter explanation:
[0177] node The centrality score of .
[0178] Other nodes The total data flow is assumed to be 120 units for the node.
[0179] node With Node The distance between Assume 2 units.
[0180] : Attenuation constant, assumed to be 0.5, used to adjust the influence of distance factors.
[0181] The sum of the total data traffic of all nodes. Assuming there are three nodes in the network, the total traffic is 400 units.
[0182] Calculation process and examples:
[0183] Assume that there are three nodes in the network, the distances between the node and the other two nodes are 2 and 3 units respectively, and the data traffic of the other nodes is 120 and 100 units respectively:
[0184]
[0185] The 0.1661 here represents the centrality score of the node. The higher this value is, the stronger the centrality of the node in the network is, that is, the higher the data traffic concentration is.
[0186] See also Figure 4 , the specific steps for obtaining the storage capacity optimization report are as follows:
[0187] S221: Based on the node centrality score, the formula is:
[0188]
[0189] Calculate the load ratio of each key node and get the load ratio of each node , generate a list of node load ratios;
[0190] in, represents the centrality score of the node, Representative Node The weight coefficient of Represents the sum of all weighted node centrality scores;
[0191] S222: Analyze the storage demand of each key node using the node load ratio list, referring to the node load ratio and current storage capacity, using the formula:
[0192]
[0193] The effect of load ratio on storage demand is adjusted by square root operation, and the storage capacity required for each node after load adjustment is calculated. , establish an adjusted storage requirement list and integrate it to generate a storage capacity optimization report;
[0194] in, is the load ratio of the node, is the current storage capacity of node i.
[0195] formula:
[0196]
[0197] Parameter explanation:
[0198] The centrality score of node i, assumed to be 50.
[0199] The weight coefficient of the node, considering the strategic location or traffic sensitivity of the node, is assumed to be 1.5.
[0200] The sum of the weighted centrality scores of all nodes, assuming the sum is 500.
[0201] Calculation process and examples:
[0202] Assume that there are 10 nodes in the network, and the centrality score of node i is is 50, the weight coefficient is 1.5. The sum of the weighted centrality scores of the other nodes is 500.
[0203]
[0204] Here, 0.15 represents the load ratio of node i in the network, that is, the node bears 15% of the network centrality load.
[0205] formula:
[0206]
[0207] Parameter explanation:
[0208] : Calculated nodes The load ratio is 0.15.
[0209] Calculation process and examples:
[0210] Use load ratio is 0.15, and the node The current storage capacity is .
[0211]
[0212] Here, 5.48 GB represents the adjusted storage requirement calculated based on the network centrality and current storage capacity of node i.
[0213] See also Figure 5 , the steps to optimize the data flow path are as follows:
[0214] S311: Analyze the storage capacity optimization report and calculate the storage difference of each node in the network using the formula:
[0215]
[0216] Get the node storage balance list , get the storage difference of each node;
[0217] in, is the storage capacity required by node i is the current storage capacity of node i is the node importance weight is a smoothing parameter used to adjust the sensitivity of storage differences;
[0218] S312: Using the storage balance list , apply the maximum flow minimum cut theorem to analyze the bottleneck of network flow, using the formula:
[0219]
[0220] Calculate the minimum cut value of the network , determine the key restriction points of the data flow path;
[0221] in, is the storage difference of nodes in the cut set, is the estimated cut set It is a parameter adjustment used to increase the influence of large difference nodes in the cut set;
[0222] S313: Based on the minimum cut value , reconfigure the network data flow path, using the formula:
[0223]
[0224] Generate optimized data flow path plan ;
[0225] in, is the total network traffic is the adjustment factor used to adjust the total flow according to the minimum cut value.
[0226] formula:
[0227]
[0228] Parameter explanation:
[0229] The current storage capacity of node i is assumed to be .
[0230] Node importance weight, assumed to be 1.2.
[0231] : Smoothing parameter, used to adjust the impact of the difference, assumed to be 0.5.
[0232] Calculation process and examples:
[0233] Assume that the required capacity of a node is , the current capacity is , with a weight of 1.2 and a smoothing parameter of 0.5.
[0234]
[0235] This calculation result Represents the node's adjusted storage requirement in excess of its current storage, taking into account the node's importance and the amount of excess.
[0236] formula:
[0237]
[0238] Parameter explanation:
[0239] : The storage difference of nodes in the cut set.
[0240] : Adjustment parameter used to increase the influence of large difference nodes in the cut set, assumed to be 0.05.
[0241] Calculation process and examples:
[0242] Assume there are three nodes in the cut set, their The values are .
[0243]
[0244]
[0245]
[0246]
[0247] This minimum cut value Indicates the minimum capacity of the most bottleneck area in the network that can be handled by data flow path optimization.
[0248] See also Figure 6 ,The specific steps for obtaining the network traffic management plan are:
[0249] S321: Identify the bottleneck nodes in the network through the optimized data flow path solution, using the formula:
[0250] .
[0251] Calculate the traffic share index and generate a traffic share index array ;
[0252] in, Representation Node To Node Traffic share indicator, Indicates flow rate, Indicates the connection capacity, It is the weight coefficient obtained based on historical data analysis;
[0253] S322: Based on the traffic proportion indicator array , set dynamic threshold , using the formula:
[0254]
[0255] Filter the connection points that exceed the threshold to obtain a list of high-load connection points ;
[0256] in, As the basic threshold, provide preliminary screening criteria, It is a dynamic coefficient adjusted according to the connection characteristics, reflecting the changes in time and flow;
[0257] S323: Based on the list of high-load connection points , implement traffic redistribution, using the formula:
[0258]
[0259] Calculate the adjusted traffic distribution , establish a network traffic management plan.
[0260] formula
[0261]
[0262] Parameter Explanation
[0263] :node To Node Traffic share indicator.
[0264] :node To Node The actual flow rate (unit: ).
[0265] :node To Node Maximum capacity (unit: ).
[0266] : The weight coefficient obtained by analyzing historical data. This coefficient can be adjusted according to the daily fluctuations and importance of traffic.
[0267] Calculation example
[0268] Assume Node To Node The actual flow , the maximum capacity of the node , weight coefficient 1.2.
[0269]
[0270] here Representation Node To Node The flow rate is close to its capacity limit. , adjusting the weight coefficient can reflect the importance of the connection.
[0271] formula
[0272]
[0273] Parameter Explanation
[0274] : Basic threshold, set according to the overall operation of the network.
[0275] :The dynamic coefficient is adjusted according to the connection characteristics and can be adjusted according to factors such as time period and traffic volume.
[0276] Calculation example
[0277] Assumption threshold , dynamic adjustment coefficient , calculated previously .
[0278]
[0279] Because 0.9 is greater than 0.88, this connection point is considered to be highly loaded.
[0280] formula
[0281]
[0282] Parameter Explanation
[0283] Adjusted flow rate.
[0284] : Original traffic ratio indicator.
[0285] : Basic threshold.
[0286] Calculation example
[0287] Continue to use .
[0288]
[0289] This means that the adjusted flow rate is reduced to approximately , designed to reduce network load.
[0290] See also Figure 7 ,The specific steps for obtaining the resource usage change trend are:
[0291] S411: After adopting the network traffic management plan, real-time monitoring of multiple CPU usage data , calculation time Average CPU usage , using the formula:
[0292]
[0293] Calculate and obtain the real-time CPU usage result item;
[0294] in, Representative CPUs at a time The utilization rate, is the total number of CPUs, is average Utilization rate;
[0295] S412: Based on the real-time CPU usage result item, the reinforcement learning model is applied to predict the CPU usage of the next time step, using the formula:
[0296]
[0297] Calculate and obtain the predicted CPU usage result item;
[0298] in, Represents the CPU usage predicted for the next time step, is the CPU usage at the current time step predicted by the model, is the learning rate, is the adjustment factor, referring to the difference between the maximum and minimum utilization rates, and Respectively represent the maximum and minimum values of CPU usage during the observation period;
[0299] S413: Use the predicted CPU usage result item and real-time The utilization rate calculates the resource usage trend using the formula:
[0300]
[0301] Calculate the resource usage change trend;
[0302] in, is a resource sensitivity parameter used to adjust the model's response to small fluctuations.
[0303] formula:
[0304]
[0305] Parameter explanation:
[0306] : No. CPUs at a time utilization rate.
[0307] The total quantity.
[0308] : Average CPU usage.
[0309] Calculation process:
[0310] Collect the CPU time Usage data .
[0311] Add up the usage of all CPUs.
[0312] Divide the sum by the total number of CPUs Get the average Utilization rate.
[0313] Calculation example:
[0314] Assume there are 4 CPUs, and their usage rates are: . Calculate the average CPU usage:
[0315]
[0316] Here Represents at time Average usage of all CPUs.
[0317] Assuming the current average utilization , the model predicts the usage rate , maximum utilization , minimum usage , learning rate , adjustment coefficient .
[0318]
[0319] Here Represents the CPU usage for the next time step of the prediction.
[0320] formula:
[0321]
[0322] Parameter explanation:
[0323] : The change in resource usage.
[0324] Forecast and actual Utilization rate.
[0325] : Resource sensitivity parameter used to adjust the model's response to small fluctuations.
[0326] Calculation process:
[0327] Calculate the difference between predicted and actual utilization.
[0328] This difference is adjusted according to resource sensitivity to obtain the resource usage change trend.
[0329] Calculation example:
[0330] Assumptions Resource sensitivity .
[0331]
[0332] The 0.2 here represents the changing trend of CPU usage per unit time, which is used for further resource management decisions.
[0333] See also Figure 8 , the specific steps for obtaining the CPU load balancing strategy are:
[0334] S421: Based on the resource usage change trend, call the current usage rate of each CPU And obtain network traffic requirements , calculate the correlation To characterize the relationship between traffic demand and resource usage, use the formula:
[0335]
[0336] Generate network traffic with Resource demand correlation;
[0337] in, is the total number of nodes, It is the correlation between traffic demand and resource usage;
[0338] S422: Based on network traffic and Resource demand correlation, reallocate the resource ratio of each CPU , using the formula:
[0339]
[0340] Keep resources allocated on demand and generate resource allocation ratios for each CPU
[0341] in, It is The resource allocation ratio of each CPU, is the relevance result item obtained from the step, It is the current CPU usage;
[0342] S423: Use the resource allocation ratio of each CPU and multiple The responsiveness is calculated using the formula:
[0343]
[0344] Calculate the overall CPU load balancing strategy;
[0345] in, Indicates the overall CPU load balancing strategy, yes The total number of .
[0346] formula:
[0347]
[0348] Parameter explanation:
[0349] : No. CPUs at a time utilization rate.
[0350] No. The network traffic demand of each node.
[0351] : Total number of nodes.
[0352] : Resource usage change trend, that is
[0353] Calculation example:
[0354] Assume there are 3 CPUs, and their respective usage rates are They are Assume that the network traffic demand of each node is They are Assuming resource usage trends for .
[0355] Calculation process:
[0356] The conversion rate is in decimal form: .
[0357] Calculate the correlation :
[0358]
[0359] formula:
[0360]
[0361] Calculation example:
[0362] Using Parameters and utilization rate.
[0363] Calculation process:
[0364]
[0365] Calculate the resource allocation ratio for each CPU :
[0366] For CPU1:
[0367] For CPU2:
[0368] For CPU3:
[0369] formula:
[0370]
[0371] Parameter explanation:
[0372] No. The responsiveness of each CPU (set the responsiveness to a standard value, assuming 1.0, indicating no special priority).
[0373] Calculation example
[0374] Use the calculated value.
[0375] Calculation process
[0376] Assume that each is 1.0.
[0377] calculate
[0378]
[0379] Indicates the average resource allocation index for each CPU, which can be used to further optimize and adjust the system's resource allocation strategy.
[0380] A cloud computing resource optimization system, which is used to execute the above cloud computing resource optimization method, includes:
[0381] The cloud resource real-time monitoring module collects the activity data of servers and storage devices based on real-time data monitoring, regards servers and storage devices as nodes, and network connections and data flows as lines, refreshes the status information of connections and nodes in real time, and generates a real-time resource status diagram;
[0382] The scheduling graph construction module integrates updated node and edge information based on the real-time resource status graph to build a virtual machine scheduling graph;
[0383] The traffic analysis module runs traffic analysis based on the virtual machine scheduling graph, performs ingress and egress traffic statistics for each node, determines the data flow intensive area through network load distribution, and generates load analysis results;
[0384] The load optimization module applies traffic redistribution logic based on the load analysis results, adjusts and optimizes network paths according to regional loads, and generates a network traffic management plan;
[0385] The adaptive scheduling module implements operation monitoring and feedback adjustment based on the network traffic management plan, adjusts the data scheduling strategy, matches the dynamic changes in resource consumption, and generates a CPU load balancing strategy.
[0386] The above are only preferred embodiments of the present invention and are not intended to limit the present invention in other forms. Any technician familiar with the profession may use the technical contents disclosed above to change or modify them into equivalent embodiments with equivalent changes and apply them to other fields. However, any simple modification, equivalent change and modification made to the above embodiments based on the technical essence of the present invention without departing from the technical solution of the present invention still falls within the protection scope of the technical solution of the present invention.
Claims
1. A cloud computing resource optimization method, It is characterized in that The following steps are involved: Based on real-time data center resource usage and network status, a virtual machine scheduling model is built to collect usage data of servers and storage devices. Servers and storage devices are used as nodes, network connections and data flows are used as edges, and the status data of nodes and edges are dynamically updated to generate a virtual machine scheduling graph. Based on the virtual machine scheduling graph, the data flow inlet and outlet of each node are analyzed, the betweenness centrality algorithm is applied to identify the data flow concentration area, the key node load in the network flow is calculated, and a storage capacity optimization report is generated; Based on the storage capacity optimization report, combined with the maximum flow minimum cut theorem, the data flow path is optimized, the data flow is redistributed according to the regional load, the network load is balanced, and a network traffic management plan is generated; Based on the network traffic management plan, monitoring system operation feedback, applying reinforcement learning to adjust the data scheduling strategy, matching resource usage change trends, optimizing traffic and resource allocation, and generating CPU load balancing strategies; The steps for obtaining the virtual machine scheduling graph are specifically as follows: Collect real-time usage data of servers and storage devices, including CPU utilization , memory usage and remaining storage space , using the formula: ; in, is the weight coefficient, generating the resource utilization index of each device ; The resource usage index based on the node , substitute the network delay data , using the formula: ; in, and To adjust the parameters, used to adjust the impact of delay on the status score, Represents the maximum delay and obtains the update status score of each node ; Using the update status score of the server and storage device , substitute the network connection and data flow quality into the formula: ; in, represents the connection quality from node i to node j, Represents the average connection quality. By adjusting parameters, it enhances the sensitivity to network quality fluctuations and generates a virtual machine scheduling graph. ; The steps for obtaining the data stream concentrated area are specifically as follows: Based on each node in the virtual machine scheduling graph, collect the information of data flow inlet and outlet, and calculate the inlet flow of multiple nodes and export flow , using the improved formula: ; in, It is an adjustment coefficient used to balance the traffic differences between multiple nodes and calculate the total data traffic of each node. , generate a list of total node data traffic; Using the total data flow list of the nodes, the betweenness centrality algorithm is applied to analyze the nodes, through the formula: ; Generating centrality scores , according to the centrality score , identify areas where data flows are concentrated; in, Represents the total data traffic of other nodes, Represents the sum of the total data traffic of all nodes, represents the distance between node i and node j, is the attenuation constant, used to adjust the effect of distance.
2. The cloud computing resource optimization method according to claim 1, It is characterized in that The steps for obtaining the storage capacity optimization report are specifically as follows: Based on the node centrality scores, the formula is adopted: ; Calculate the load ratio of each key node and get the load ratio of each node , generate a list of node load ratios; in, represents the centrality score of the node, Representative Node The weight coefficient of Represents the sum of all weighted node centrality scores; Using the node load ratio list, storage demand analysis is performed on each key node, referring to the node load ratio and current storage capacity, using the formula: ; The effect of load ratio on storage demand is adjusted by square root operation, and the storage capacity required for each node after load adjustment is calculated. , establish an adjusted storage requirement list and integrate it to generate a storage capacity optimization report; in, is the load ratio of the node, is the current storage capacity of node i.
3. The cloud computing resource optimization method according to claim 1, It is characterized in that The steps of optimizing the data flow path are specifically as follows: Analyze the storage capacity optimization report and calculate the storage difference for each node in the network using the formula: ; Get the node storage balance list , get the storage difference of each node; in, is the storage capacity required by node i is the current storage capacity of node i is the node importance weight is a smoothing parameter used to adjust the sensitivity of the storage difference; Use the stored difference list , apply the maximum flow minimum cut theorem to analyze the bottleneck of network flow, using the formula: ; Calculate the minimum cut value of the network , determine the key restriction points of the data flow path; in, is the storage difference of nodes in the cut set, is the estimated cut set It is a parameter adjustment used to increase the influence of large difference nodes in the cut set; According to the minimum cut value , reconfigure the network data flow path, using the formula: ; Generate optimized data flow path plan ; in, is the total network traffic is the adjustment factor used to adjust the total flow according to the minimum cut value.
4. The cloud computing resource optimization method according to claim 1, It is characterized in that The steps for obtaining the network traffic management plan are specifically as follows: Through the optimized data flow path scheme, the bottleneck nodes in the network are identified using the formula: . ; Calculate the traffic share index and generate a traffic share index array ; in, Representation Node To Node Traffic share indicator, Indicates flow rate, Represents the connection capacity, It is the weight coefficient obtained based on historical data analysis; According to the traffic proportion indicator array , set dynamic threshold , using the formula: ; Filter the connection points that exceed the threshold to obtain a list of high-load connection points ; in, As the basic threshold, provide preliminary screening criteria, It is a dynamic coefficient adjusted according to the connection characteristics, reflecting the changes in time and flow; According to the high load connection point list , implement traffic redistribution, using the formula: ; Calculate the adjusted traffic distribution , establish a network traffic management plan.
5. The cloud computing resource optimization method according to claim 1, It is characterized in that The steps for obtaining the resource usage change trend are specifically as follows: After adopting the network traffic management plan, real-time monitoring of multiple CPU usage data , calculation time Average CPU usage , using the formula: ; Calculate and obtain the real-time CPU usage result item; in, Representative CPUs at a time The utilization rate, is the total number of CPUs, is average Utilization rate; Based on the real-time CPU usage result item, a reinforcement learning model is applied to predict the CPU usage of the next time step using the formula: ; Calculate and obtain the predicted CPU usage result item; in, Represents the CPU usage predicted for the next time step, is the CPU usage at the current time step predicted by the model, is the learning rate, is the adjustment factor, referring to the difference between the maximum and minimum utilization rates, and Respectively represent the maximum and minimum values of CPU usage during the observation period; Use the predicted CPU usage result item and real-time The utilization rate calculates the resource usage trend using the formula: ; Calculate the resource usage change trend; in, is a resource sensitivity parameter used to adjust the model's response to small fluctuations.
6. The cloud computing resource optimization method according to claim 5, It is characterized in that The steps for obtaining the CPU load balancing strategy are specifically as follows: Based on the resource usage change trend, call the current usage rate of each CPU And obtain network traffic requirements , calculate the correlation To characterize the relationship between traffic demand and resource usage, use the formula: ; Generate network traffic with Resource demand correlation; in, is the total number of nodes, It is the correlation between traffic demand and resource usage; Based on the network traffic and Resource demand correlation, reallocate the resource ratio of each CPU , using the formula: ; Keep resources allocated on demand and generate resource allocation ratios for each CPU; in, It is The resource allocation ratio of each CPU, is the relevance result item obtained from the step, It is the current CPU usage; Use the resource allocation ratio of each CPU and multiple The responsiveness is calculated using the formula: ; Calculate the overall CPU load balancing strategy; in, Indicates the overall CPU load balancing strategy, yes The total number of .
7. A cloud computing resource optimization system, It is characterized in that According to any one of claims 1 to 6, the cloud computing resource optimization method comprises: The cloud resource real-time monitoring module collects the activity data of servers and storage devices based on real-time data monitoring, regards servers and storage devices as nodes, and network connections and data flows as lines, refreshes the status information of connections and nodes in real time, and generates a real-time resource status diagram; The scheduling graph construction module integrates updated node and edge information based on the real-time resource status graph to construct a virtual machine scheduling graph; The traffic analysis module runs traffic analysis based on the virtual machine scheduling graph, performs inlet and outlet traffic statistics for each node, determines the data flow intensive area through network load distribution, and generates load analysis results; The load optimization module applies traffic redistribution logic based on the load analysis results, adjusts and optimizes network paths according to regional loads, and generates a network traffic management plan; The adaptive scheduling module implements operation monitoring and feedback adjustment based on the network traffic management plan, adjusts the data scheduling strategy, matches the dynamic changes of resource consumption, and generates a CPU load balancing strategy.
