A method and system for dynamically optimizing and scheduling high-density services in a cloud environment
Through real-time monitoring and prediction data, dynamic calculation of damping coefficients and adjustment of the number of service instances solves the problem of resource utilization and performance maximization in high-density service environments, achieves stable operation and rapid and smooth scaling under resource constraints, and avoids Resource waste and performance fluctuations.
Patent Information
- Application Number
- CN202410585975.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-13
- Publication Date
- 2024-10-25
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In a high-density service environment, existing technologies are difficult to achieve optimal utilization of resources, maximize service performance, and seamless service scheduling across cloud platforms. Especially under resource constraints and sudden high loads, it is difficult to maintain service stability. Performance and stability, and the smoothness of scaling operations of virtual instances is limited by the accuracy of load prediction and response speed.
Monitor and collect data in real time through the load monitoring module and resource management module, the dynamic damping decision engine calculates the optimal damping coefficient, the service instance scheduler performs instance expansion or reduction, the load prediction module predicts the load, and the dynamic adjustment decision engine calculates the adjustment ratio and target instance Quantity, the scaling executor performs specific service instance scaling operations, forming a dynamic feedback system to balance resource utilization and service performance.
It achieves the stable operation of high-density services under resource constraints, ensuring optimal service performance and resource utilization. It actively adjusts instance scale through load prediction, quickly and smoothly scales, and avoids waste of resources and performance fluctuations.
Smart Images

Figure CN118363734B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of cloud computing technology, and in particular to a method and system for dynamically optimizing and scheduling high-density services in a cloud environment. Background Art
[0002] With the continuous advancement of cloud computing technology, cloud environment has become an important research field. It combines cloud computing resources from different technology stacks and provides unprecedented computing power and flexibility. However, the complexity and dynamism of this environment also brings new challenges, especially in terms of high-density services and resource scheduling optimization. In a high-density service environment, the management of tasks and resources becomes particularly complex, requiring efficient matching and dynamic optimization between multiple computing resources and service requirements to ensure service performance and resource utilization efficiency. Traditional cloud computing architecture is no longer sufficient to meet the application's needs for rapid processing of large amounts of data.
[0003] Under the condition of limited resources, high-density deployment and continuous service of complex systems is one of the focuses of current technical research, involving key technologies such as resource scheduling strategy, service containerization, load balancing, automatic elastic scaling, fault tolerance mechanism and microservice architecture. The resource scheduling strategy aims to optimize resource allocation and improve efficiency; service containerization improves deployment flexibility through lightweight isolation environment; load balancing and automatic elastic scaling technology ensure the stability and performance of the system under changing loads; fault tolerance mechanism ensures the high availability of the system; and microservice architecture improves the flexibility and maintainability of the system through fine-grained service division. Although these technologies have made significant progress, there are still many problems and challenges in achieving optimal resource utilization, maximizing service performance and seamless service scheduling across cloud platforms in high-density service environments.
[0004] There are some obvious limitations and challenges in implementing dynamic optimization scheduling technology for high-density services in cloud environments. First, in terms of achieving high-density deployment and continuous services of complex systems under limited resource conditions, accurately balancing the relationship between high-density service deployment and limited resources is a complex challenge. This not only requires efficient resource allocation algorithms, but also needs to consider the dependencies between services and potential resource contention issues. Existing scheduling strategies often find it difficult to maintain service performance and stability when resources are tight, especially in the face of sudden high loads or rapid expansion of service scale. Second, the smoothness of the scaling operation of virtual instances is limited by the accuracy of load prediction and the response speed of the scaling strategy, and existing technologies often cannot respond quickly and accurately when dealing with sudden and short-term load fluctuations. In addition, in large-scale and high-density deployment environments, especially across multiple cloud platforms, it is difficult to achieve fine resource management and performance tuning. Summary of the invention
[0005] The present invention aims to provide a method and system for dynamically optimizing and scheduling high-density services in a cloud environment to solve the deficiencies in the prior art. The technical problem to be solved by the present invention is achieved through the following technical solutions.
[0006] The present invention provides a method for dynamically optimizing and scheduling high-density services in a cloud environment, comprising:
[0007] The load monitoring module monitors the system load data in real time, the resource management module collects the usage data of the system available resources in real time, the dynamic damping decision engine obtains the optimal damping coefficient based on the system load data and the usage data of the available resources, the service instance scheduler obtains the number of new service instances according to the optimal damping coefficient, and performs service instance expansion or reduction operations;
[0008] The load prediction module obtains the predicted load of the system based on historical system load data and possible trends. The dynamic adjustment decision engine calculates the adjustment ratio of the service instance and the target number of service instances based on the predicted load of the system, the current load of the system and the usage data of available resources. The scaling actuator performs specific service instance scaling operations based on the comprehensive damping coefficient and the target number of service instances.
[0009] In the above solution, the service instance scheduler feeds back the operation results to the load monitoring module and the resource management module.
[0010] In the above scheme, the optimal damping coefficient is calculated as follows:
[0011] ;
[0012] Among them, D optimal is the optimal damping coefficient, D0 is the basic damping coefficient, , and are weight factors; L is the current load of the system, L max is the maximum load that the system can bear, U is the current utilization rate of available resources, and U max is the maximum usage threshold of available resources, P composite Provide a comprehensive score for service performance indicators.
[0013] ;
[0014] RT is the actual system response time, RT target is the system response time threshold, TP is the actual network throughput, TP target is the minimum requirement for network throughput, ER is the error rate of actual data transmission, and ER targetis the upper limit of the error rate of data transmission, w rt is the weight of the system response time on the comprehensive score of service performance, w tp is the weight of network throughput on the comprehensive score of service performance, w er is the weight of the data transmission error rate on the comprehensive score of service performance, .
[0015] In the above scheme, by adjusting the weight factor , and , under system load and available resources
[0016] Trade-off between usage.
[0017] In the above scheme, the service instance scheduler obtains the number of new service instances according to the optimal damping coefficient using the following calculation formula:
[0018] ;
[0019] Among them, N new is the number of new service instances, N current is the current number of service instances, D optimal is the optimal damping coefficient, S is the smoothing factor, , a is the smoothing coefficient, the value range is 0 <a<1,S prev is the smoothing factor calculated last time, , L current is the current system load, L target is the target load level.
[0020] In the above solution, the adjustment ratio of the service instance is obtained by the following calculation formula:
[0021] ;
[0022] Among them, P adjust is the adjustment ratio of the service instance, M is the sensitivity parameter, and R growth is the growth rate of the system's predicted load relative to the system's current load, , L current is the current load of the system obtained through the load monitoring module, L predicted The predicted load of the system.
[0023] In the above solution, the number of target service instances is obtained by the following calculation formula:
[0024] ;
[0025] Among them, N targetis the number of target service instances, N current is the number of current service instances, P adjust The adjustment ratio of the service instance.
[0026] In the above scheme, the comprehensive damping coefficient is obtained by weighted averaging the damping coefficients of all available resources. The calculation formula of the comprehensive damping coefficient is:
[0027] ;
[0028] Among them, D comprehensive is the comprehensive damping coefficient, w r is the weight of the rth available resource, D r is the damping coefficient of the rth available resource, , where e is the base of the natural logarithm, k is a positive adjustment coefficient used to adjust the rate of increase of the damping coefficient, U r is the resource utilization rate of the rth available resource, , U threshold The resource usage threshold.
[0029] In the above scheme, when the scaling actuator performs a specific service instance scaling operation based on the comprehensive damping coefficient and the target number of service instances, the change in the number of service instances is obtained by the following calculation formula:
[0030] ΔT = ΔT0 (1-D comprehensive ), where ΔT is the change in the number of service instances, D comprehensive is the comprehensive damping coefficient, ΔT0 is the change in the number of service instances originally planned, ΔT0=N target -N current , N target is the number of target service instances, N current The current number of service instances.
[0031] The cloud environment high-density service dynamic optimization scheduling system provided by the present invention adopts the cloud environment high-density service dynamic optimization scheduling method as described above to perform cloud environment high-density service dynamic optimization scheduling, and the system includes:
[0032] Load monitoring module, used to monitor the system load data in real time;
[0033] Resource management module, used to collect usage data of available system resources in real time;
[0034] Dynamic damping decision engine, used to obtain the optimal damping coefficient based on system load data and available resource usage data;
[0035] The service instance scheduler is used to obtain the new number of service instances according to the optimal damping coefficient, perform service instance expansion or reduction operations, and feed back the operation results to the load monitoring module and the resource management module;
[0036] Load forecasting module, used to forecast the system load in the future based on historical system load data and possible trends;
[0037] Dynamic adjustment decision engine, used to calculate the adjustment ratio of service instances and the target number of service instances based on the system's predicted load, the system's current load and the usage data of available resources;
[0038] The scaling executor is used to perform specific service instance scaling operations based on the comprehensive damping coefficient and the target number of service instances.
[0039] The embodiments of the present invention include the following advantages:
[0040] The cloud environment high-density service dynamic optimization scheduling method and system provided by the embodiment of the present invention balances the relationship between the scale expansion and resource constraints of the service instance by introducing a dynamic damping mechanism, thereby achieving stable operation of high-density services under resource-constrained conditions, and obtaining the optimal damping coefficient based on the system load data and the usage data of available resources to achieve optimal service performance and resource utilization; in order to achieve fast and smooth convergence of instance scaling, a dynamic feedback system is established by comprehensively utilizing load prediction and the usage data of available resources, and through a positive incentive mechanism, the scale of the service instance is actively adjusted according to the load prediction results to cope with the upcoming load increase; at the same time, a reverse damping mechanism is introduced to increase the damping when the resource usage approaches the upper limit, slow down the scaling speed, avoid excessive resource consumption, ensure that the scaling of the service instance is both fast and smooth, and effectively avoid resource waste and service performance fluctuations. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 is a step diagram of a method for dynamic optimization scheduling of high-density services in a cloud environment in an embodiment of the present invention;
[0042] Figure 2 It is a schematic diagram of the composition of a cloud environment high-density service dynamic optimization scheduling system in an embodiment of the present invention. DETAILED DESCRIPTION
[0043] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0044] like Figure 1 As shown, the present invention provides a method for dynamic optimization scheduling of high-density services in a cloud environment, the method comprising the following steps:
[0045] Step S1: monitor the load data of the system in real time through the load monitoring module, collect the usage data of the available resources of the system in real time through the resource management module, obtain the optimal damping coefficient based on the load data of the system and the usage data of the available resources through the dynamic damping decision engine, obtain the number of new service instances according to the optimal damping coefficient through the service instance scheduler, perform service instance expansion or reduction operations, and feed back the operation results to the load monitoring module and the resource management module;
[0046] Specifically, the system load data includes network throughput, system response time, data transmission error rate, etc., wherein the load monitoring module includes performance monitoring tools and custom scripts, which collect load data through performance monitoring tools and custom scripts, and the load monitoring module transmits the data to the decision engine through APIs or proxy services;
[0047] Specifically, the usage data of available resources includes CPU usage, memory usage, and usage data of various computing resources, storage resources, and network resources. The resource management module can also manage the available resources of the system. The resource management module mainly manages the available resources of the system by integrating the resource management tools and services provided by the cloud platform. The resource management tools and services include Kubernetes resource objects and custom resource management strategies.
[0048] Specifically, the dynamic damping decision engine uses a dynamic damping mechanism to dynamically adjust the damping coefficient based on the system load data provided by the load monitoring module and the usage data of available resources provided by the resource management module to balance the scale expansion and resource constraints of the service instance. The dynamic damping decision engine is developed based on a rule algorithm and can calculate the optimal damping coefficient based on the system load data, the usage data of available resources and the service performance indicators;
[0049] Specifically, the optimal damping coefficient calculated by the dynamic damping decision engine based on load data, available resources, and service performance indicators reflects the sensitivity of the current environment to the service instance scale adjustment. When the load is high or resources are tight, the damping is increased to reduce the speed or amplitude of scale expansion. Conversely, the damping is reduced to allow faster expansion. The calculation of the damping coefficient is the core of the service instance scale maintenance technology based on dynamic damping, which dynamically adjusts the scale adjustment speed of the service instance according to the current state of the system.
[0050] Specifically, the calculation formula for the optimal damping coefficient is:
[0051] ;
[0052] Among them, D optimalis the optimal damping coefficient, D0 is the basic damping coefficient, which is the default damping coefficient under ideal conditions, i.e., when there is no resource pressure and service performance problem. It is a predefined constant and serves as the basis for damping adjustment; , and All are weight factors; , F is the total adjustment factor, Used to adjust the relative importance of the load regulation factor in the total regulation factor. Used to adjust the relative importance of resource usage adjustment factors in the total adjustment factors. , where L is the current load of the system, L max is the maximum load the system can withstand, F L Reflects the current load level of the system,
[0053] Relative to the maximum bearing capacity, , where U is the current available resource utilization, U max is the maximum usage threshold of available resources, F U Indicates the ratio of current available resource usage to the maximum safe usage; P composite Provide a comprehensive score for service performance indicators.
[0054] ;
[0055] RT is the actual system response time, RT target is the system response time threshold, is the response time of the standardized system, TP is the actual network throughput, and TP target is the minimum requirement for network throughput, is the standardized network throughput, ER is the error rate of actual data transmission, and ER target is the upper limit of the error rate of data transmission, is the error rate of normalized data transmission, w rt is the weight of the system response time on the comprehensive score of service performance, w tp is the weight of network throughput on the comprehensive score of service performance, w er is the weight of the data transmission error rate on the comprehensive score of service performance, ;
[0056] Among them, by adjusting the weight factor , and , a trade-off can be made between system load and available resource utilization to adapt to different operating scenarios and optimization goals. This dynamic damping coefficient calculation method makes the scale adjustment of service instances more flexible and responsive to the current system status, which helps to achieve stable operation of high-density services under resource-constrained conditions;
[0057] Specifically, the service instance scheduler obtains the number of new service instances according to the optimal damping coefficient using the following calculation formula:
[0058] ;
[0059] Among them, N new is the number of new service instances, N current is the current number of service instances, D optimal is the optimal damping coefficient, S is the smoothing factor, , a is the smoothing coefficient, the value range is 0 <a<1,S prev is the smoothing factor calculated last time, , L current is the current system load, L target is the target load level;
[0060] Specifically, the number of new service instances N new It is necessary to perform rounding according to the actual situation to ensure that the number of service instances is an integer. Through this smooth transition adjustment strategy, the number of service instances can be smoothly adjusted when the load changes to avoid system instability caused by too frequent or large scaling operations. In addition, by adjusting the smoothing coefficient a, the sensitivity and response speed of the adjustment strategy can be flexibly controlled to adapt to different application scenarios and performance requirements;
[0061] Specifically, the service instance scheduler feeds back the operation results to the load monitoring module and the resource management module, forming a closed-loop control system to ensure the accuracy of decision-making and the effectiveness of scheduling operations;
[0062] Step S2: The load prediction module predicts the system load in the future based on historical system load data and possible trends. The dynamic adjustment decision engine calculates the adjustment ratio of the service instance and the target number of service instances based on the system's predicted load, the system's current load and the usage data of available resources. The scaling actuator performs specific service instance scaling operations based on the comprehensive damping coefficient and the target number of service instances.
[0063] Specifically, historical system load data includes network throughput, system response time, data transmission error rate, etc. Based on historical system load data and possible trends, the system load in the future is predicted to provide forward-looking information for scaling decisions.
[0064] Specifically, the load forecasting module uses techniques such as time series analysis, machine learning, or deep learning models to predict short-term and long-term system load changes;
[0065] Specifically, the adjustment ratio of the service instance is obtained by the following calculation formula:
[0066] ;
[0067] Among them, P adjust is the adjustment ratio of the service instance, M is the sensitivity parameter, which reflects the system's response to load changes and can be adjusted according to actual needs, R growth is the growth rate of the system's predicted load relative to the system's current load, , L current is the current load of the system obtained through the load monitoring module, L predicted The predicted load for the system;
[0068] Specifically, the number of target service instances is obtained by the following calculation formula:
[0069] ;
[0070] Among them, N target is the number of target service instances, N current is the number of current service instances, P adjust Adjust the ratio of service instances;
[0071] Specifically, the number of target service instances N target It is necessary to perform rounding according to the specific situation to ensure that the target number of service instances is an integer. The dynamic adjustment decision engine actively increases service instances through a positive incentive mechanism to prepare for the upcoming load increase. Through this positive incentive mechanism, the system can actively adjust the scale of service instances according to the predicted load growth to ensure that system resources are fully prepared to effectively deal with the upcoming load risks.
[0072] Specifically, the comprehensive damping coefficient takes into account the damping coefficients of all available resources including CPU usage, memory usage, various computing resources, storage resources, and network resources. The comprehensive damping coefficient D comprehensive It can be obtained by taking a weighted average of the damping coefficients of all available resources:
[0073] ;
[0074] Among them, D comprehensive is the comprehensive damping coefficient, ,w r is the weight of the rth available resource, D ris the damping coefficient of the rth available resource, , where e is the base of the natural logarithm, k is a positive adjustment coefficient used to adjust the rate of increase of the damping coefficient, U r is the resource utilization rate of the rth available resource, , U threshold is the threshold of resource utilization. When the resource utilization exceeds this value, the damping effect begins to increase significantly. The damping coefficient of each resource is dynamically calculated based on the resource utilization. The damping coefficient increases with the increase of resource utilization, which means that the tighter the resources, the greater the damping of the scaling operation.
[0075] Specifically, the scaling executor performs specific service instance scaling operations, including increasing or decreasing the number of service instances. The scaling executor uses the cloud platform's automatic scaling service (such as Kubernetes's HPA) or custom scripts to perform scaling operations;
[0076] Specifically, when the scaling actuator performs a specific service instance scaling operation based on the comprehensive damping coefficient and the target number of service instances, the change in the number of service instances is obtained through the following calculation formula:
[0077] ΔT = ΔT0 (1-D comprehensive ), where ΔT is the change in the number of service instances, D comprehensive is the comprehensive damping coefficient, ΔT0 is the change in the number of service instances originally planned, ΔT0=N target -N current , N target is the number of target service instances, N current is the current number of service instances;
[0078] Specifically, when the comprehensive damping coefficient is high, the change in the number of service instances actually executed will be smaller than the change in the number of service instances originally planned, thereby slowing down the scaling speed and preventing overuse of resources;
[0079] Specifically, reverse damping design is achieved by performing specific service instance scaling operations based on the comprehensive damping coefficient and the target number of service instances. Reverse damping design is mainly used to balance resource utilization and service performance, especially when resources are tight. The main purpose of the reverse damping mechanism is to increase the resistance to regulation when resources are close to the upper limit, slow down the scaling speed of service instances, and avoid system instability caused by excessive resource consumption.
[0080] like Figure 2 As shown, the present invention provides a cloud environment high-density service dynamic optimization scheduling system, which uses the cloud environment high-density service dynamic optimization scheduling method as described above to perform cloud environment high-density service dynamic optimization scheduling, and the system includes:
[0081] Load monitoring module, used to monitor the system load data in real time;
[0082] Resource management module, used to collect usage data of available system resources in real time;
[0083] Dynamic damping decision engine for obtaining the optimal damping coefficient based on system load data and available resource usage data;
[0084] The service instance scheduler is used to obtain the new number of service instances according to the optimal damping coefficient, perform service instance expansion or reduction operations, and feed back the operation results to the load monitoring module and the resource management module;
[0085] Load forecasting module, used to forecast the system load in the future based on historical system load data and possible trends;
[0086] Dynamic adjustment decision engine, used to calculate the adjustment ratio of service instances and the target number of service instances based on the system's predicted load, the system's current load and the usage data of available resources;
[0087] The scaling executor is used to perform specific service instance scaling operations based on the comprehensive damping coefficient and the target number of service instances.
[0088] It should be noted that the above detailed descriptions are exemplary and are intended to provide further explanation of the present application. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the art to which the present application belongs.
[0089] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should also be understood that when the terms "comprise" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0090] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application 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 terms used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein.
[0091] In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units that are not explicitly listed or inherent to these processes, methods, products, or apparatuses.
[0092] For ease of description, spatially relative terms, such as "above", "above", "on the upper surface of", "above", etc., may be used herein to describe the spatial positional relationship between a device or feature and other devices or features as shown in the figure. It should be understood that spatially relative terms are intended to include different orientations of the device in use or operation in addition to the orientation described in the figure. For example, if the device in the accompanying drawings is inverted, the device described as "above other devices or structures" or "above other devices or structures" will be positioned as "below other devices or structures" or "below other devices or structures". Thus, the exemplary term "above" may include both "above" and "below". The device may also be positioned in other different ways, such as rotated 90 degrees or in other orientations, and the spatially relative descriptions used herein are interpreted accordingly.
[0093] In the above detailed description, reference is made to the accompanying drawings, which form a part of this document. In the accompanying drawings, similar symbols typically identify similar components unless the context indicates otherwise. The illustrated embodiments described in the detailed description, drawings, and claims are not meant to be limiting. Other embodiments may be used, and other changes may be made, without departing from the spirit or scope of the subject matter presented herein.
[0094] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for dynamic optimization scheduling of high-density services in a cloud environment, characterized in that: The method comprises: The load monitoring module monitors the load data of the system in real time, and the resource management module collects the usage data of the available resources of the system in real time. The dynamic damping decision engine obtains the optimal damping coefficient based on the load data of the system and the usage data of the available resources. The calculation formula of the optimal damping coefficient is: Among them, D optimal is the optimal damping coefficient, D0 is the basic damping coefficient, α, β and γ are weight factors; L is the current load of the system, L max is the maximum load that the system can bear, U is the current available resource utilization rate, and U max is the maximum usage threshold of available resources, P composite Provide a comprehensive score for service performance indicators. RT is the actual system response time, RT target is the system response time threshold, TP is the actual network throughput, and TP target is the minimum requirement for network throughput, ER is the error rate of actual data transmission, and ER target is the upper limit of the error rate of data transmission, w rt is the weight of the system response time on the comprehensive score of service performance, w tp is the weight of network throughput on the comprehensive score of service performance, w er is the weight of the data transmission error rate on the comprehensive score of service performance, w rt +w tp +w er =1; the service instance scheduler obtains the new number of service instances according to the optimal damping coefficient, uses the following calculation formula, and performs service instance expansion or reduction operations: N new =N current ×S×D optimal Among them, N new is the number of new service instances, N current is the current number of service instances, D optimal is the optimal damping coefficient, S is the smoothing factor, S = a × R load +(1-a)×S prev , a is the smoothing coefficient, the value range is 0 <a<1,S prev is the smoothing factor calculated last time, L current is the current system load, L target is the target load level; The load prediction module obtains the predicted load of the system based on historical system load data and possible trends. The dynamic adjustment decision engine calculates the adjustment ratio of the service instance and the target number of service instances based on the predicted load of the system, the current load of the system and the usage data of available resources. The comprehensive damping coefficient is obtained by weighted averaging the damping coefficients of all available resources. The calculation formula of the comprehensive damping coefficient is: Among them, D comprehensive is the comprehensive damping coefficient, w r is the weight of the rth available resource, D r is the damping coefficient of the rth available resource, Where e is the base of the natural logarithm, k is a positive adjustment coefficient used to adjust the rate of increase of the damping coefficient, U r is the resource utilization rate of the rth available resource, U threshold is the threshold of resource usage; The specific service instance scaling operation is performed by the scaling executor based on the comprehensive damping coefficient and the target number of service instances; specifically, when the specific service instance scaling operation is performed by the scaling executor based on the comprehensive damping coefficient and the target number of service instances, the change in the number of service instances is obtained by the following calculation formula: ΔT=ΔT0(1-D comprehensive ), where ΔT is the change in the number of service instances, D comprehensive is the comprehensive damping coefficient, ΔT0 is the change in the number of service instances originally planned, ΔT0 = N target -N current , N target is the number of target service instances, N current The current number of service instances.
2. The method for dynamic optimization and scheduling of high-density services in a cloud environment according to claim 1, characterized in that: The service instance scheduler feeds back the operation results to the load monitoring module and the resource management module.
3. The method for dynamic optimization and scheduling of high-density services in a cloud environment according to claim 1, characterized in that: By adjusting the weight factors α, β, and γ, a trade-off is made between system load and available resource utilization.
4. The method for dynamic optimization and scheduling of high-density services in a cloud environment according to claim 1, characterized in that: The adjustment ratio of the service instance is obtained by the following calculation formula: P adjust =1+M×R growth Among them, P adjust is the adjustment ratio of the service instance, M is the sensitivity parameter, and R growth is the growth rate of the system's predicted load relative to the system's current load, L current is the current load of the system obtained through the load monitoring module, L predicted is the predicted load of the system.
5. The method for dynamic optimization and scheduling of high-density services in a cloud environment according to claim 1, characterized in that: The target number of service instances is obtained using the following calculation formula: N target =N current ×P adjust Among them, N target is the number of target service instances, N current is the number of current service instances, P adjust The adjustment ratio of the service instance.
6. A cloud environment high-density service dynamic optimization scheduling system, which uses the cloud environment high-density service dynamic optimization scheduling method according to any one of claims 1 to 5 to perform cloud environment high-density service dynamic optimization scheduling, characterized in that: The system comprises: Load monitoring module, used to monitor the system load data in real time; Resource management module, used to collect usage data of available system resources in real time; Dynamic damping decision engine for obtaining the optimal damping coefficient based on system load data and available resource usage data; The service instance scheduler is used to obtain the new number of service instances based on the optimal damping coefficient, using the following calculation formula, and to perform service instance expansion or reduction operations, and to feed back the operation results to the load monitoring module and the resource management module: N new =N current ×S×D optimal Among them, N new is the number of new service instances, N current is the current number of service instances, D optimal is the optimal damping coefficient, S is the smoothing factor, S = a × R load +(1-a)×S prev , a is the smoothing coefficient, the value range is 0 <a<1,S prev is the smoothing factor calculated last time, L current is the current system load, L target is the target load level; the optimal damping coefficient is calculated as follows: Among them, D optimal is the optimal damping coefficient, D0 is the basic damping coefficient, α, β and γ are weight factors; L is the current load of the system, L max is the maximum load that the system can bear, U is the current available resource utilization rate, and U max is the maximum usage threshold of available resources, P composite Provide a comprehensive score for service performance indicators. RT is the actual system response time, RT target is the system response time threshold, TP is the actual network throughput, and TP target is the minimum requirement for network throughput, ER is the error rate of actual data transmission, and ER target is the upper limit of the error rate of data transmission, w rt is the weight of the system response time on the comprehensive score of service performance, w tp is the weight of network throughput on the comprehensive score of service performance, w er is the weight of the data transmission error rate on the comprehensive score of service performance, w rt +w tp +w er =1; Load forecasting module, used to forecast the system load in the future based on historical system load data and possible trends; Dynamic adjustment decision engine, used to calculate the adjustment ratio of service instances and the target number of service instances based on the system's predicted load, the system's current load and the usage data of available resources; The telescopic actuator is used to obtain a comprehensive damping coefficient by taking a weighted average of the damping coefficients of all available resources. The calculation formula of the comprehensive damping coefficient is: Among them, D comprehensive is the comprehensive damping coefficient, w r is the weight of the rth available resource, D r is the damping coefficient of the rth available resource, Where e is the base of the natural logarithm, k is a positive adjustment coefficient used to adjust the rate of increase of the damping coefficient, U r is the resource utilization rate of the rth available resource, U threshold is a threshold value of resource usage; performing a specific service instance scaling operation based on the comprehensive damping coefficient and the target number of service instances; specifically comprising: when performing a specific service instance scaling operation based on the comprehensive damping coefficient and the target number of service instances through the scaling executor, obtaining the change in the number of service instances through the following calculation formula: ΔT=ΔT0(1-D comprehensive ), where ΔT is the change in the number of service instances, D comprehensive is the comprehensive damping coefficient, ΔT0 is the change in the number of service instances originally planned, ΔT0 = N target -N current , N target is the number of target service instances, N current The current number of service instances.
