A tidal computing power scheduling method and system for a computing power resource pool
By constructing a historical database and kernel function model, the probability and intensity of load bursts in the computing resource pool are predicted, solving the problem of insufficient response to burst loads in existing technologies and achieving accurate scheduling of periodic and burst loads.
Patent Information
- Application Number
- CN202611370072.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-04
- Publication Date
- 2026-11-27
AI Technical Summary
Existing load forecasting focuses more on the periodic changes in load and generally does not introduce load forecasting for sudden loads. This leads to overly idealistic load forecasting and insufficient response of computing power scheduling to sudden loads.
By analyzing the historical load of the computing resource pool, a historical database is constructed to determine the dominant type of load change in historical time windows. A kernel function is used to construct the correspondence between the probability of load bursts and the phase at future moments. Combining the phase and periodic load amplitude, the intensity of load bursts at future moments is predicted, and tidal computing power scheduling is performed.
It improves the reliability of load forecasting, accurately responds to periodic and burst loads, and ensures the effectiveness and timeliness of computing power scheduling.
Smart Images

Figure CN123178073A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computing power scheduling technology, specifically to a tidal computing power scheduling method and system for computing power resource pools. Background Technology
[0002] With the rapid development of cloud computing, big data, and artificial intelligence technologies, computing resource pools have become the core infrastructure supporting various applications. The tidal computing scheduling method draws inspiration from the natural phenomenon of tides, aiming to dynamically adjust resource allocation based on the periodicity of the load.
[0003] The core logic of tidal computing power scheduling is to dynamically allocate computing power based on the periodicity of the load. To meet dynamic demands, load prediction is often necessary to prepare computing resources in advance. However, existing load prediction methods focus more on the periodic changes in load and generally do not include load prediction for sudden loads. Furthermore, the prediction results often do not reflect sudden loads, leading to overly idealized load predictions and insufficient response of computing power scheduling to sudden loads. Summary of the Invention
[0004] To address the above technical problems, the present invention aims to provide a tidal computing power scheduling method and system for computing power resource pools.
[0005] According to a first aspect of the present invention, a tidal computing power scheduling method for computing power resource pools is provided, and the specific technical solution adopted is as follows: Obtain the historical load of the computing resource pool and build a historical database; Construct historical time windows, and based on the historical database, analyze the periodic and sudden characteristics of load changes within each historical time window to determine the dominant type of load changes in each historical time window. The phase of each historical time window and future moment is obtained. Combined with the load change dominance type, the load burst density of the future moment phase is analyzed. The kernel function is used to construct the correspondence between the load burst probability and the future moment phase, and then the predicted final burst probability of the load at the future moment is determined. The influence relationship between phase and periodic load amplitude on load burst intensity is constructed separately. Then, the relative periodic load amplitude at future time is obtained. Combined with the phase at future time and the predicted load burst probability, the predicted load burst intensity at future time is obtained. Obtain the predicted baseline load for future moments, and combine it with the predicted load burst intensity to determine the predicted load for future moments, and perform tidal computing power scheduling of the computing power resource pool.
[0006] In some embodiments of the present invention, based on the historical database, the periodic and sudden characteristics of load changes within each historical time window are analyzed, including: Based on the historical database, the correlation between load changes between each historical time window and other corresponding historical time windows is analyzed to obtain the periodic characteristic indicators and sudden characteristic indicators of each historical time window.
[0007] In some embodiments of the present invention, based on the historical database, the correlation between load changes between each historical time window and other corresponding historical time windows of the same period is analyzed to obtain periodic characteristic indicators and burst characteristic indicators for each historical time window, including: Based on the historical database, the window load fluctuation amplitude within each historical time window is obtained, and the ratio of the window load fluctuation amplitude of the historical time window to the average window load fluctuation amplitude of other historical time windows in the same period is calculated to obtain the window load fluctuation amplitude stability parameter for each historical time window. Based on the historical database, the mean load and standard deviation of the window load within each historical time window are calculated to obtain the load fluctuation parameter for each historical time window. Based on the historical database, the Pearson correlation coefficient of the load between each historical time window and other corresponding historical time windows of the same period is calculated to obtain the historical similarity parameter of each historical time window; Based on the window load fluctuation amplitude stability parameter, the load fluctuation parameter, and the historical similarity parameter, the periodic characteristic index of each historical time window is obtained; Based on the historical database, the maximum instantaneous load change rate within each historical time window is obtained, and the standard deviation and mean of the maximum instantaneous load change rate of other historical time windows that are concurrent with the historical time window are calculated to obtain the burst characteristic parameters of each historical time window. Based on the burst feature parameters and the historical similarity parameters, the burst feature index for each historical time window is obtained.
[0008] In some embodiments of the present invention, the load change dominance type includes a periodic dominance window and a burst dominance window; Identify the dominant load change type for each historical time window, including: For any historical time window, compare the relative magnitudes of the periodic characteristic index and the sudden characteristic index; Preset a first threshold and a second threshold; When the normalized value of the periodic feature indicator is greater than the normalized value of the burst feature indicator, and the normalized value of the periodic feature indicator is greater than the preset first threshold, the historical time window is determined to be a periodic dominant window. When the normalized value of the sudden feature indicator is greater than or equal to the normalized value of the periodic feature indicator, and the normalized value of the sudden feature indicator is greater than the preset second threshold, the historical time window is determined to be the sudden dominant window. Otherwise, the historical time window is marked as an invalid window and removed from subsequent burst probability calculations.
[0009] In some embodiments of the present invention, the load burst density of future time phases is analyzed in conjunction with the load change dominance type, including: The periodic phase is divided into several phase sub-intervals; Based on the historical database, the number of burst-dominant windows in the multiple phase sub-intervals corresponding to the same period is obtained, and combined with the total number of historical time windows in the multiple phase sub-intervals corresponding to the same period, the load burst density of each phase sub-interval is obtained. Based on the phase of the future time, determine the phase sub-interval in which the future time is located, and the load burst density of the phase sub-interval is the load burst density of the future time.
[0010] In some embodiments of the present invention, a kernel function is used to construct the correspondence between the load burst probability and the phase at a future time, including: Using the Gaussian kernel function, obtain the Gaussian kernel that represents the difference between the phase at future times and the phase at each historical time window; Based on the dominant type of load change, determine the indicator variable for each historical time window; Based on the Gaussian kernel and the indicator variable, a correspondence between the load burst probability and the phase at future time is constructed.
[0011] In some embodiments of the present invention, the influence relationship between phase and periodic load amplitude on load burst intensity is constructed, including: A sine function with phase is used to capture the influence of the main period, and a sine function with twice the phase is used to capture the influence of the secondary period. By combining the main period influence and the secondary period influence, the relationship between phase and load burst intensity is constructed. Based on the nonlinear saturation characteristics of the influence of periodic load amplitude, the relationship between the influence of periodic load amplitude and load burst intensity is constructed.
[0012] In some embodiments of the present invention, obtaining the relative periodic load amplitude at future times includes: In the historical database, obtain the historical load mean and historical load standard deviation of multiple corresponding phases that are concurrent with the phase of the future time. Using a periodic forecasting model, a predictive baseline load for future times can be obtained; The relative periodic load amplitude at future times is obtained based on the historical load mean, the historical load standard deviation, and the predicted baseline load.
[0013] According to a second aspect of the present invention, a tidal computing power scheduling system for computing power resource pools is provided, comprising: a memory and a processor, wherein: The memory is used to store program code; The processor is configured to read program code stored in the memory and execute the method described in the first aspect of the present invention.
[0014] In some embodiments of the present invention, the processor includes: The historical load acquisition module is used to acquire the historical load of the computing resource pool and build a historical database. The historical load analysis module is used to construct historical time windows. Based on the historical database, it analyzes the periodic and sudden characteristics of load changes within each historical time window and determines the dominant type of load changes in each historical time window. The load burst probability prediction module is used to obtain the phase of each historical time window and future time, combine the load change dominant type, use kernel function to construct the correspondence between load burst probability and future time phase, and analyze the load burst density of future time phase, thereby determining the predicted final load burst probability of future time. The load burst intensity prediction module is used to construct the influence relationship between phase and periodic load amplitude on load burst intensity, then obtain the phase and relative periodic load amplitude at future time, and combine them with the predicted load burst probability to obtain the predicted load burst intensity at future time. The load prediction module is used to obtain the predicted baseline load for future times, and combine the predicted load burst intensity to determine the predicted load for future times, and perform tidal computing power scheduling of the computing power resource pool.
[0015] Compared with existing technologies, the tidal computing power scheduling method and system for computing power resource pools provided by this invention have the following beneficial effects: This invention first analyzes the periodic and burst characteristics of load changes within each historical time window to determine the dominant load change type for that window. Then, by acquiring the phase of each historical time window and future moments, and combining this with the dominant load change type, it analyzes the load burst density of the future moment phase. Furthermore, it uses a kernel function to construct the correspondence between the load burst probability and the future moment phase, thereby determining the predicted final burst probability of the load at future moments. This allows for the filtering of future moments with a higher probability of load burst events, enabling load burst intensity analysis only for these moments, effectively improving analysis efficiency while ensuring reliability. Based on the influence of phase and periodic load amplitude on load burst intensity, combined with the predicted final burst probability, it obtains the predicted load burst intensity for future moments, thus determining the predicted load for future moments and completing the tidal computing power scheduling of the computing power resource pool. This invention's prediction of future load not only focuses on periodic load changes but also fully considers burst load changes, making the predicted load results more realistic and reliable. This allows computing power scheduling to accurately respond to both periodic and burst loads. Attached Figure Description
[0016] To more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 This is a basic flowchart illustrating a tidal computing power scheduling method for computing power resource pools, provided in one embodiment of the present invention. Figure 2 This is a schematic diagram of the basic components of a tidal computing power scheduling system for computing power resource pools, provided as an embodiment of the present invention. Detailed Implementation
[0018] To further illustrate the technical means and effects adopted by the present invention to achieve its intended purpose, the following, in conjunction with the accompanying drawings and preferred embodiments, details the specific implementation, structure, features, and effects of a tidal computing power scheduling method and system for computing power resource pools proposed according to the present invention. In the following description, different "one embodiment" or "another embodiment" do not necessarily refer to the same embodiment. Furthermore, specific features, structures, or characteristics in one or more embodiments can be combined in any suitable form.
[0019] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. Terms such as “comprising,” “including,” or any other variations thereof are intended to cover a non-exclusive inclusion, such that a circuit structure, article, or device comprising a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such article or device. Without further limitation, an element defined by the phrase “comprising one…” does not exclude the presence of additional identical elements in the article or device that includes the element.
[0020] The following describes in detail, with reference to the accompanying drawings, a specific scheme of the tidal computing power scheduling method for computing power resource pools provided by the present invention.
[0021] Please see Figure 1 This illustrates the basic flow of a tidal computing power scheduling method for computing power resource pools provided by an embodiment of the present invention.
[0022] like Figure 1 As shown, an embodiment of the present invention provides a tidal computing power scheduling method for computing power resource pools, specifically including: S100: Obtain the historical load of the computing resource pool and build a historical database.
[0023] To complete tidal computing power scheduling for the computing power resource pool, it is first necessary to obtain the historical load of the computing power resource pool and build a historical database. Further steps include: Obtain historical load time series data, including metrics such as QPS (Requests Per Second), concurrent connections, request latency, error rate, CPU utilization, memory utilization, network I / O, and disk I / O. Specifically, collect resource utilization (CPU utilization, memory utilization, etc.) through monitoring agents (such as Prometheus Node Exporter, cAdvisor); collect business metrics (concurrent connections, error rate, etc.) through application performance monitoring (APM) tools (such as SkyWalking, Pinpoint) or service meshes (such as Istio); collect QPS and request latency through load balancer or gateway logs (such as Nginx, Envoy); collect network I / O through 4G networks and the MQTT protocol; and collect disk I / O using system tools (such as iostat, vmstat, dstat).
[0024] Obtain historical load metadata, including timestamps, service names, instance identifiers, and regions / availability zones, and tag them directly in the monitoring data.
[0025] Obtain resource pool information, including resource type (CPU, memory, GPU, storage), specifications, cost (pricing for on-demand, reserved, and preemptible instances), cloud or region, available quantity, and current utilization rate. Specifically, you can obtain resource catalogs and pricing through cloud service provider APIs (such as AWS EC2 API and Alibaba Cloud ECS API); and obtain cluster node resource information through cluster management tools (such as Kubernetes API).
[0026] Acquire historical scheduling decision information, including the time of each expansion / shrinkage, details of resource changes, and load changes before and after scheduling. Specifically, each scheduling operation can be recorded in the scheduling system and associated with the monitoring snapshot at that time.
[0027] S200: Construct historical time windows, analyze the periodic and sudden characteristics of load changes within each historical time window based on the historical database, and determine the dominant type of load change in each historical time window.
[0028] The fundamental basis for tidal computing power scheduling in computing resource pools is load variation. That is, computing power is appropriately scheduled according to load changes to meet computing power demand while conserving computing resources. In actual scheduling, in order to quickly meet computing power demand, load prediction is often required. That is, corresponding computing power is prepared in advance based on the predicted load to quickly achieve matching between computing power and load.
[0029] Load forecasting often requires attention to load changes. While load changes generally exhibit clear patterns, they also display sudden fluctuations. Therefore, in practical load forecasting, both regularly changing cyclical loads and sudden loads need to be considered simultaneously. Cyclical and sudden loads demonstrate different statistical characteristics and evolution patterns in time series; that is, cyclical loads are regular and predictable, while sudden loads are relatively random and unpredictable. Although sudden loads appear random, their occurrence time, intensity, and duration are often related to specific phases or states of cyclical loads. Therefore, based on the performance of cyclical and sudden loads in historical load sequences, the two can be separated and then co-forwarded to improve the effectiveness of load forecasting for sudden loads.
[0030] The periodicity of load can be analyzed using existing STL algorithms. This involves decomposing historical load data using STL to obtain corresponding trend and periodic terms. The trend and periodic terms are then summed to obtain the load sequence, which is called the predictive baseline load. Simultaneously, the trend and periodic terms obtained from the STL decomposition are combined to form a periodic prediction model.
[0031] Based on the above analysis, in the embodiments of the present invention, by constructing historical time windows and analyzing the periodic and sudden characteristics of load changes within each historical time window based on a historical database, the dominant type of load change in each historical time window is determined. Wherein: Constructing historical time windows. Specifically, in historical load time-series data, the changes and characteristics of historical load at different times can be analyzed by constructing time windows, that is, separating cyclical loads from bursty loads through time window analysis. The time window can be set to 1 hour, usually the time period between the hour, for example, 1 o'clock to 2 o'clock is a time window.
[0032] Based on historical databases, the periodic and sudden characteristics of load changes within each historical time window are analyzed. Further, based on historical databases, the correlation between load changes in each historical time window and other corresponding historical time windows in the same period is analyzed to obtain periodic and sudden characteristic indicators for each historical time window.
[0033] Periodicity indicators are primarily used to quantify the intensity of periodic changes in a load sequence within a time window. Periodic loads typically exhibit stable fluctuation amplitudes, regular fluctuation patterns, and a high degree of similarity to historical patterns. Therefore, the specific process for obtaining periodicity indicators for historical time windows is as follows: First, based on the historical database, the window load fluctuation amplitude within each historical time window is obtained. The ratio of the window load fluctuation amplitude of a historical time window to the average window load fluctuation amplitude of other corresponding historical time windows is calculated to obtain the window load fluctuation amplitude stability parameter for each historical time window. More specifically, taking the first... Taking the first historical time window as an example, calculate the... The difference between the maximum and minimum load within the first historical time window is used to obtain the first... The fluctuation range of window load within a historical time window is expressed as: The maximum and minimum loads refer to the maximum and minimum CPU utilization rates; similarly, the window load fluctuation ranges for other historical time windows are obtained; and the relationship with the first... The average window load fluctuation of the corresponding historical time windows for the same period is denoted as . The other historical time windows corresponding to the same period are the historical windows of the current historical window in the same period of each historical day; then the calculation of the first... Window load fluctuation within a historical time window ( The average window load fluctuation amplitude compared to other historical time windows during the same period ( The ratio of ) to obtain the first The stability parameter for the window load fluctuation amplitude of each historical time window is: In the formula, Indicates the first Stability parameter for window load fluctuation amplitude within a historical time window; Indicates the first The fluctuation range of window load within a historical time window; Indicates the relationship with the first The average window load fluctuation of one historical time window at the same time as other historical time windows; Represented by natural constant An exponential function with base 0; This represents the denominator correction parameter, which has the same dimensions as the denominator and takes the smallest value greater than 0. This is to prevent the denominator from being 0; for example, it can be set... This can prevent the denominator from being 0 without significantly interfering with the calculation of normal values.
[0034] Simultaneously, based on the historical database, the mean and standard deviation of the window load within each historical time window are calculated to obtain the load fluctuation parameters for each historical time window. More specifically, taking the first... Taking the first historical time window as an example, calculate the... The mean and standard deviation of the historical load at all sampling times within a historical time window are denoted as the window load mean ( ) and window load standard deviation ( ), to obtain the first The load fluctuation parameters for each historical time window are: In the formula, Indicates the first Load fluctuation parameters for each historical time window; Indicates the first The standard deviation of the historical load at all sampling moments within a historical time window; Indicates the first The average of the historical load at all sampling moments within a historical time window; Represented by natural constant An exponential function with base 0; This represents the denominator correction parameter, which has the same dimensions as the denominator and takes the smallest value greater than 0. This is to prevent the denominator from being 0; for example, it can be set... This can prevent the denominator from being 0 without significantly interfering with the calculation of normal values.
[0035] Furthermore, based on the historical database, the Pearson correlation coefficient of the load between each historical time window and other corresponding historical time windows of the same period is calculated to obtain the historical similarity parameter for each historical time window. More specifically, taking the first... Taking the first historical time window as an example, the first step is to adjust the first... The sequence lengths of the first historical time window and other corresponding historical time windows at the same time period are made equal; then the sequence length of the second historical time window is calculated. The average Pearson correlation coefficient between the loads of one historical time window and other corresponding historical time windows of the same period is expressed as: Direct quantification of the first The similarity between the load pattern within a historical time window and the load pattern during the same historical period is used to obtain the first... The historical similarity parameter for each historical time window is: .
[0036] Finally, based on the window load fluctuation amplitude stability parameter, load fluctuation parameter, and historical similarity parameter, the periodic characteristic index of each historical time window is obtained. Specifically, the... The periodic characteristic indicators of each historical time window are expressed as follows: In the formula, Indicates the first Periodic characteristic indicators of a historical time window; Indicates the first Stability parameter for window load fluctuation amplitude within a historical time window; Indicates the first Load fluctuation parameters for each historical time window; Indicates the first Historical similarity parameters for each historical time window.
[0037] Burst characteristic indicators primarily quantify the burst intensity of a load sequence within a time window. Burst loads typically exhibit sudden and drastic changes, which generally disrupt historical cyclical patterns; that is, such sudden changes are usually not found in historical data. Therefore, the specific process for obtaining burst characteristic indicators for historical time windows is as follows: First, based on the historical database, the maximum instantaneous load change rate within each historical time window is obtained. More specifically, taking the [missing information]... Taking the first historical time window as an example, calculate the... The load difference (load at the later sampling time minus the load at the previous sampling time) between all adjacent sampling times within a historical time window is used to obtain the instantaneous load change rate for each sampling time (except the first sampling time). The maximum instantaneous load change rate is extracted and denoted as the th . The maximum instantaneous load change rate within a historical time window.
[0038] Then, the standard deviation and mean of the maximum instantaneous load change rate are calculated for other historical time windows contemporaneous with the historical time window, yielding the burst characteristic parameters for each historical time window. Specifically, taking the first... Taking the first historical time window as an example, calculate the... The standard deviation and mean of the maximum instantaneous load change rate during the same historical time window, and the values of the other historical time windows during the same period. The burst characteristic parameters of each historical time window are represented as follows: In the formula, Indicates the first The sudden characteristic parameters of a historical time window; Indicates the first The maximum instantaneous load change rate within a historical time window; Indicates the relationship with the first The average of the maximum instantaneous load change rates in other historical time windows during the same period of a given historical time window; Indicates the relationship with the first The standard deviation of the maximum instantaneous load change rate in other historical time windows during the same period of a given historical time window; This represents the function that takes the maximum value. This represents the denominator correction parameter, which has the same dimensions as the denominator and takes the smallest value greater than 0. This is to prevent the denominator from being 0; for example, it can be set... This can prevent the denominator from being 0 without significantly interfering with the calculation of normal values.
[0039] A ratio close to 1 indicates that the load change is within the normal range; if the ratio is much greater than 1, it indicates that the current historical time window has experienced a rare and drastic jump, and the more obvious the sudden characteristics, the more likely it is a sudden load event.
[0040] as well as, Indicates the first The Pearson correlation coefficient between the load within a historical time window and the load within the same historical time window is then... This indicates a disruption of correlation, which is the main manifestation of burst load.
[0041] Finally, based on the suddenness characteristic parameters and historical similarity parameters, the suddenness characteristic indicators for each historical time window are obtained. More specifically, the... The sudden characteristic indicators of each historical time window are expressed as follows: In the formula, Indicates the first Sudden characteristic indicators of a historical time window; Indicates the first The sudden characteristic parameters of a historical time window; Indicates the first Historical similarity parameters for each historical time window.
[0042] Determine the load change dominance type for each historical time window, where the load change dominance type includes periodic dominance windows and burst dominance windows. Further details include: First, let's analyze the cyclical characteristic indicators respectively. With sudden characteristic indicators For normalization, a minimum-maximum normalization function can be used to normalize the periodic characteristic indicators relative to the historical time window. With sudden characteristic indicators Normalization to Within the range.
[0043] Then, for any historical time window, compare the periodic characteristic indicators. With sudden characteristic indicators The relative size between them; preset first threshold and second threshold, when Normalized value greater than Normalized value, and When the normalized value is greater than a preset first threshold (e.g., 0.1 or 0.2, to avoid background noise interference), it is determined to be a periodically dominant window; when... Normalized value greater than or equal to Normalized value, and If the normalized value is greater than the preset second threshold (such as 0.1 or 0.2 to avoid background noise interference), it is determined to be a burst-dominant window; otherwise, it is marked as an invalid window and removed from subsequent burst probability calculations.
[0044] S300: Obtain the phase of each historical time window and future time, combine the load change dominance type, analyze the load burst density of the future time phase, and use the kernel function to construct the correspondence between the load burst probability and the future time phase, thereby determining the predicted final burst probability of the load at the future time.
[0045] The occurrence of sudden loads is not completely random; it is often associated with a specific phase of the cyclical load. For example, during the rising phase of a cyclical fluctuation, near the peak, or at the inflection point of a decline, the system may be more susceptible to external shocks and thus generate sudden loads. Therefore, the sudden load can be predicted by its position within the cycle, i.e., its phase. In other words, a quantitative relationship between phase and probability can be constructed to predict the probability of a sudden load from the cyclical state.
[0046] Based on the above analysis, in the embodiments of the present invention, by obtaining the phase of each historical time window and future time, combining the dominant type of load change, analyzing the load burst density of the future time phase, and using a kernel function to construct the correspondence between the load burst probability and the future time phase, the predicted final burst probability of the load at the future time is determined. Wherein: Obtain the phase of each historical time window and future moment. Further steps include: setting the periodic phase time length, calculating the relative positions of each historical time window and future moment within the periodic phase time length, and obtaining the phase of each historical time window and future moment. Specifically, the periodic phase time length is set to 24 hours; calculate the... The phase of each historical time window is: In the formula, Indicates the first Phase of a historical time window; Indicates the periodic phase; Indicates the first The representative time of each historical time window (decimal hours, 24-hour format), such as 01:30 (24-hour format) for the historical time window between 1:00 AM and 2:00 AM, and converting between hours and decimal hours, that is, converting 01:30 to 1.5; Indicates the duration of the periodic phase (24 hours); This represents the modulo operation. Indicates calculation Divide by The remainder.
[0047] It should be noted that since the historical time window is a time period, not a point in time, for example, the time length in this embodiment is 1 hour. For the convenience of analysis, this embodiment treats the time period as a point in time. For example, the historical time window between 1 o'clock and 2 o'clock is converted into a representative time 01:30 (1.5), that is, the phase corresponding to the time 01:30 is taken as the phase of the historical time window between 1 o'clock and 2 o'clock.
[0048] The phase at a future time is calculated as follows: In the formula, Indicates future time The phase; Indicates the periodic phase; Indicates a future time (decimal hours, 24-hour format); Indicates the duration of the periodic phase (24 hours); This represents the modulo operation. Indicates calculation Divide by The remainder.
[0049] Based on the dominant load change type, analyze the load burst density of future time phases. Further includes: First, the periodic phase is divided into several phase sub-intervals. Specifically, to establish a quantitative relationship between the periodic phase and the probability of sudden occurrence, the periodic phase needs to be discretized, that is, the periodic phase interval [0, 2π] is divided into N phase sub-intervals, where N can be 48.
[0050] Then, based on the historical database, the number of burst-dominant windows within multiple (all) phase sub-intervals corresponding to the same period is obtained. Combined with the total number of historical time windows within multiple (all) phase sub-intervals corresponding to the same period, the load burst density of each phase sub-interval is obtained. Specifically, taking the first... Taking the nth phase sub-interval as an example, statistically analyze all the nth phase sub-intervals corresponding to the same period. The number of burst-dominant windows existing within each phase sub-interval, combined with the number of... The total number of historical time windows within all phase sub-intervals corresponding to the same period, i.e., the ratio of the number of windows with sudden dominance to the total number of historical time windows, is used to obtain the number of the first phase sub-interval. The load burst density of each phase sub-interval is expressed as: .
[0051] Finally, based on the phase of the future time, the phase sub-interval in which the future time is located is determined, and the load burst density of the phase sub-interval in which the future time is located is the load burst density of the future time.
[0052] Discrete intervals suffer from limitations such as boundary effects and fixed resolution. To address these limitations, kernel density estimation is used to smooth discrete empirical probabilities into continuous functions.
[0053] Therefore, combining the dominant load change type, a kernel function is used to construct the correspondence between the load burst probability and the phase at future times. Further details include: First, using the Gaussian kernel function Among them, bandwidth parameter Using an empirical value of 0.1, obtain the phase at future times. Phase with each historical time window The Gaussian kernel of the difference between them, i.e. .
[0054] Then, based on the load change dominance type, an indicator variable for each historical time window is determined, where 1 represents a burst-dominant window and 0 represents a period-dominant window.
[0055] Finally, based on the Gaussian kernel and indicator variables, the correspondence between the burst probability of the load and the phase at future time moments is constructed as follows: In the formula, Indicates the phase at future moments The probability of load bursts; Indicates the phase at a future time; Indicates the first Phase of a historical time window; This represents the total number of historical time windows in the historical data; Indicates the first Indicator variables for each historical time window.
[0056] Indicates the phase at future moments The contribution of sudden density at the location, This is the normalization factor. (Through...) Eliminate the circumferential periodicity of the phase (cross-sky boundary effect).
[0057] After obtaining the load burst density and load burst probability at future time points, the predicted final load burst probability at those future time points is determined. Specifically, the predicted final load burst probability at those future time points is expressed as: In the formula, Indicates the phase at future moments The predicted load burst probability; Indicates the phase at future moments The probability of load bursts; Indicates the phase at future moments The load burst density.
[0058] After obtaining the predicted load burst probability for future times, the system determines whether a burst will occur at those future times based on this probability. Specifically, a burst probability threshold is set to determine whether a burst will occur at the corresponding future time. This threshold can be set to 0.5. If a future moment has a probability greater than the probability threshold for sudden occurrence, then that future moment is considered a moment when a sudden occurrence is possible and is denoted as a sudden moment. Conversely, if the probability is less than the threshold, then that future moment is considered a moment when a sudden occurrence is not possible and is denoted as a periodic moment.
[0059] S400: Construct the influence relationship between phase and periodic load amplitude on load burst intensity, then obtain the relative periodic load amplitude at future time, and combine the phase at future time with the predicted load burst probability to obtain the predicted load burst intensity at future time.
[0060] Step S300 only predicts whether a load burst will occur. However, in actual load prediction, bursts of different intensities have drastically different effects on the system. Therefore, it is necessary to further predict the intensity of the load burst, that is, to establish a quantitative relationship between the intensity of the load burst and the current periodic state, so that if the periodic load state is known, it is possible to predict how strong the burst might be if it occurs.
[0061] Based on the above analysis, in the embodiments of the present invention, the influence relationship between phase and periodic load amplitude on load burst intensity is constructed respectively, and then the relative periodic load amplitude at future time is obtained. Combined with the phase at future time and the predicted load burst probability, the predicted load burst intensity at future time is obtained.
[0062] Based on the judgment result of step S300 regarding whether there is a load burst in the future, the load burst intensity is predicted for future moments with a burst, and the load burst intensity is set to 0 for future moments without a burst.
[0063] When predicting the intensity of load bursts, the intensity of load bursts is first standardized to eliminate dimensional differences between different times and systems, making historical burst events comparable. Specifically, it can be expressed as: In the formula, Represents the relative load burst intensity at the moment of the burst (dimensionless). Indicates the load during a sudden event; The baseline load before the sudden event can be represented by the value predicted by a periodic prediction model. It represents the historical standard deviation of the baseline load, that is, the standard deviation of the baseline load during the same historical period (same phase).
[0064] Furthermore, the specific process for predicting the intensity of sudden load bursts is as follows: In load burst intensity prediction, the phase effect is a primary concern because the load burst intensity varies with the phase in a predictable pattern, and capturing the periodicity of this phase influence is crucial. Therefore, the first step is to construct the relationship between phase and load burst intensity. Specifically, a sine function of the phase is used. Capture the influence of the main cycle (such as the daily cycle), and use a sine function with twice the phase. Capture the effects of secondary cycles (such as semi-daily cycles, where peaks may occur at noon and evening). Combine the effects of primary and secondary cycles to fit more complex phase patterns, constructing the relationship between phase and load burst intensity as follows: In the formula, A function representing the relationship between phase and load burst intensity; This represents the main period influence function; This represents the influence function of the next period; This indicates taking the absolute value.
[0065] The load burst intensity also exhibits a pattern with the variation of the periodic load amplitude, meaning that the periodic load amplitude also affects the prediction of the load burst intensity. As the periodic load amplitude increases, the load burst intensity increases non-linearly, but this increase has an upper limit (due to limited system response capability). Therefore, the influence of the periodic load amplitude on the prediction of the load burst intensity needs to capture the non-linear saturation characteristics of the periodic load amplitude's influence. Thus, the influence relationship between the periodic load amplitude and the load burst intensity is constructed. Specifically, based on the non-linear saturation characteristics of the influence of the periodic load amplitude, where the periodic load amplitude is the maximum value of the load deviating from the equilibrium position (reference load) within the periodic phase time length (24 hours) (load value minus reference load, including positive and negative values), the influence relationship between the periodic load amplitude and the load burst intensity is constructed as follows: In the formula, A function representing the relationship between the periodic load amplitude and the burst intensity of the load; Indicates the amplitude of the periodic load; This indicates taking the absolute value.
[0066] when When I was very young, The relationship is approximately linear, when When it is very large, Approaching 1.
[0067] Next, obtain the relative periodic load amplitude at future times. Specifically, retrieve the relative periodic load amplitude at future times from the historical database. phase Historical load averages of multiple corresponding phases during the same period and historical load standard deviation Using a periodic prediction model, future moments can be obtained. Predicted baseline load Based on historical load averages Historical load standard deviation and predicted baseline load To obtain the future moment The relative periodic load amplitude is: In the formula, Indicates future time The relative periodic load amplitude; Indicates future time The predicted baseline load; Indicates future time phase Historical load averages of multiple corresponding phases during the same period; Indicates future time phase Historical load standard deviations of multiple corresponding phases during the same period.
[0068] Relative periodic load amplitude Dimensionless quantity, and The output range is (0,1).
[0069] Finally, based on the relationship between the influence of phase and periodic load amplitude on the load burst intensity, and the relative periodic load amplitude at future times, combined with the phase at future times and the predicted final load burst probability, the predicted load burst intensity at future times is obtained. Specifically, phase and periodic amplitude have different degrees of influence on the prediction of load burst intensity, with the influence of phase specifically manifested in the prediction of the final load burst probability. ,in The larger the value, the greater the influence of the phase, while the smaller the influence of the period amplitude. Therefore, at the corresponding future time, the future time can be... As the influence coefficient of phase on the burst intensity of load, This is the influence coefficient of the relationship between the periodic load amplitude and the sudden load intensity, thus determining the future time... The formula for calculating the predicted load burst intensity is: In the formula, Representing the future moment of a sudden event Predicted load burst intensity; Indicates the phase at future moments The predicted load burst probability; Indicates the phase at future moments Impact on the intensity of sudden load bursts; Indicates future time relative periodic load amplitude Impact on the intensity of sudden load bursts.
[0070] S500: Obtain the predicted baseline load for future moments, combine it with the predicted load burst intensity, determine the predicted load for future moments, and perform tidal computing power scheduling of the computing resource pool.
[0071] Based on the above steps, the prediction of the load burst intensity at future times is completed. Then, by obtaining the predicted baseline load for future times and combining it with the predicted load burst intensity, the predicted load for future times is determined, and tidal computing power scheduling of the computing resource pool is performed. The specific process is as follows: First, the predicted baseline load for future times is obtained using a periodic forecasting model. .
[0072] Furthermore, calculation and future moments The standard deviation of the corresponding historical benchmark load at the same time period .
[0073] Then, based on the predicted baseline load at future time points. Combined with the predicted load burst intensity and the standardized definition of load burst intensity ( The predicted load for future time periods is determined as follows: In the formula, Representing a future moment Predicted load; Represented as a future moment where a load burst is possible. Predicted relative load burst intensity (dimensionless). Indicates future time The standard deviation of the baseline load at the corresponding historical moment in the same period; Indicates future time The predicted baseline load.
[0074] in addition, Indicates future time Sudden load.
[0075] Finally, based on the predicted load at future times, tidal scheduling of the computing resource pool is performed. Specifically, this includes: First, based on the load forecast results, the predicted load values are converted into specific resource requirements. Specifically, this can be done using a resource mapping model, such as the commonly used Kubernetes HPA model. Simultaneously, considering the uncertainty of the forecast, different buffer resources are reserved for different confidence levels. For example, basic resources are prepared based on the predicted baseline load value, and additional elastic resources are prepared to cope with possible sudden increases.
[0076] Then, computing power is allocated based on resource demand. Specifically, this allocation can be made by combining predicted load and corresponding sudden load fluctuations. For future moments... Based on the resource requirements corresponding to the predicted load, corresponding computing resources are prepared. The prepared basic computing resources are the basic resource requirements corresponding to the predicted baseline load. Then, based on future time... For sudden load spikes, additional elastic resources will be allocated for the corresponding time period, with the elastic resource requirement being [amount missing]. The resource requirements corresponding to the load value are, on the basis of the resource requirements corresponding to the sudden load, additional resource requirements are prepared according to the proportion of the sudden load in the total load, in order to cope with the uncertainty of the forecast.
[0077] Based on the same inventive concept as the above method, this embodiment also provides a tidal computing power scheduling system for computing power resource pools.
[0078] Please see Figure 2 This illustrates the basic components of a tidal computing power scheduling system for computing power resource pools provided by an embodiment of the present invention.
[0079] like Figure 2 As shown, a tidal computing power scheduling system for computing power resource pools includes: a memory 10 and a processor 20, wherein: Memory 10 is used to store program code; Processor 20 is used to read the program code stored in memory 10 and execute it to obtain the historical load of the computing resource pool and build a historical database; construct historical time windows, and based on the historical database, analyze the periodic and burst characteristics of load changes within each historical time window to determine the dominant load change type of each historical time window; obtain the phase of each historical time window and future time, and combine it with the dominant load change type to analyze the load burst density of the future time phase, and use kernel functions to construct the correspondence between the load burst probability and the future time phase, thereby determining the predicted final burst probability of the load at the future time; construct the influence relationship between phase and periodic load amplitude on load burst intensity respectively, and then obtain the relative periodic load amplitude at the future time, and combine it with the future time phase and the predicted final burst probability of the load to obtain the predicted load burst intensity at the future time; obtain the predicted baseline load at the future time, and combine it with the predicted load burst intensity to determine the predicted load at the future time, and perform tidal computing power scheduling of the computing resource pool.
[0080] Furthermore, the processor 20 includes a historical load acquisition module 21, a historical load analysis module 22, a load burst probability prediction module 23, a load burst intensity prediction module 24, and a load prediction module 25, wherein: Historical load acquisition module 21 is used to acquire the historical load of the computing resource pool and build a historical database. The historical load analysis module 22 is used to construct historical time windows, analyze the periodic and sudden characteristics of load changes within each historical time window based on the historical database, and determine the dominant type of load changes in each historical time window. The load burst probability prediction module 23 is used to obtain the phase of each historical time window and future time, combine the load change dominant type, use kernel function to construct the correspondence between load burst probability and future time phase, and analyze the load burst density of future time phase, thereby determining the predicted final load burst probability of future time. The load burst intensity prediction module 24 is used to construct the influence relationship between phase and periodic load amplitude on load burst intensity, then obtain the phase and relative periodic load amplitude at future time, and combine them with the predicted load burst probability to obtain the predicted load burst intensity at future time. The load prediction module 25 is used to obtain the predicted baseline load for future moments, combine it with the predicted load burst intensity, determine the predicted load for future moments, and perform tidal computing power scheduling of the computing power resource pool.
[0081] It should be noted that the order of the above embodiments of the present invention is merely for descriptive purposes and does not represent the superiority or inferiority of the embodiments. The processes depicted in the accompanying drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0082] The various embodiments in this specification are described in a progressive manner. The same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on describing the differences from other embodiments.
Claims
1. A tidal computing power scheduling method for computing power resource pools, characterized in that, The method includes: Obtain the historical load of the computing resource pool and build a historical database; Construct historical time windows, and based on the historical database, analyze the periodic and sudden characteristics of load changes within each historical time window to determine the dominant type of load changes in each historical time window. The phase of each historical time window and future moment is obtained. Combined with the load change dominance type, the load burst density of the future moment phase is analyzed. The kernel function is used to construct the correspondence between the load burst probability and the future moment phase, and then the predicted final burst probability of the load at the future moment is determined. The influence relationship between phase and periodic load amplitude on load burst intensity is constructed separately. Then, the relative periodic load amplitude at future time is obtained. Combined with the phase at future time and the predicted load burst probability, the predicted load burst intensity at future time is obtained. Obtain the predicted baseline load for future moments, and combine it with the predicted load burst intensity to determine the predicted load for future moments, and perform tidal computing power scheduling of the computing power resource pool.
2. The tidal computing power scheduling method for computing power resource pools according to claim 1, characterized in that, Based on the historical database, the periodic and sudden characteristics of load changes within each historical time window are analyzed, including: Based on the historical database, the correlation between load changes between each historical time window and other corresponding historical time windows is analyzed to obtain the periodic characteristic indicators and sudden characteristic indicators of each historical time window.
3. The tidal computing power scheduling method for computing power resource pools according to claim 2, characterized in that, Based on the historical database, the correlation between load changes in each historical time window and other corresponding historical time windows is analyzed to obtain the periodic characteristic indicators and sudden characteristic indicators for each historical time window, including: Based on the historical database, the window load fluctuation amplitude within each historical time window is obtained, and the ratio of the window load fluctuation amplitude of the historical time window to the average window load fluctuation amplitude of other historical time windows in the same period is calculated to obtain the window load fluctuation amplitude stability parameter for each historical time window. Based on the historical database, the mean load and standard deviation of the window load within each historical time window are calculated to obtain the load fluctuation parameter for each historical time window. Based on the historical database, the Pearson correlation coefficient of the load between each historical time window and other corresponding historical time windows of the same period is calculated to obtain the historical similarity parameter of each historical time window; Based on the window load fluctuation amplitude stability parameter, the load fluctuation parameter, and the historical similarity parameter, the periodic characteristic index of each historical time window is obtained; Based on the historical database, the maximum instantaneous load change rate within each historical time window is obtained, and the standard deviation and mean of the maximum instantaneous load change rate of other historical time windows that are concurrent with the historical time window are calculated to obtain the burst characteristic parameters of each historical time window. Based on the burst feature parameters and the historical similarity parameters, the burst feature index for each historical time window is obtained.
4. The tidal computing power scheduling method for computing power resource pools according to claim 3, characterized in that, The load change dominant type includes the periodic dominant window and the burst dominant window; Identify the dominant load change type for each historical time window, including: For any historical time window, compare the relative magnitudes of the periodic characteristic index and the sudden characteristic index; Preset a first threshold and a second threshold; When the normalized value of the periodic feature indicator is greater than the normalized value of the burst feature indicator, and the normalized value of the periodic feature indicator is greater than the preset first threshold, the historical time window is determined to be a periodic dominant window. When the normalized value of the sudden feature indicator is greater than or equal to the normalized value of the periodic feature indicator, and the normalized value of the sudden feature indicator is greater than the preset second threshold, the historical time window is determined to be the sudden dominant window. Otherwise, the historical time window is marked as an invalid window and removed from subsequent burst probability calculations.
5. The tidal computing power scheduling method for computing power resource pools according to claim 4, characterized in that, Based on the aforementioned dominant load change types, analyze the load burst density of future time phases, including: The periodic phase is divided into several phase sub-intervals; Based on the historical database, the number of burst-dominant windows in the multiple phase sub-intervals corresponding to the same period is obtained, and combined with the total number of historical time windows in the multiple phase sub-intervals corresponding to the same period, the load burst density of each phase sub-interval is obtained. Based on the phase of the future time, determine the phase sub-interval in which the future time is located, and the load burst density of the phase sub-interval is the load burst density of the future time.
6. The tidal computing power scheduling method for computing power resource pools according to claim 5, characterized in that, The relationship between load burst probability and future time phase is constructed using kernel functions, including: Using the Gaussian kernel function, obtain the Gaussian kernel that represents the difference between the phase at future times and the phase at each historical time window; Based on the dominant type of load change, determine the indicator variable for each historical time window; Based on the Gaussian kernel and the indicator variable, a correspondence between the load burst probability and the phase at future time is constructed.
7. The tidal computing power scheduling method for computing power resource pools according to claim 5, characterized in that, The influence relationships between phase and periodic load amplitude on load burst intensity are constructed separately, including: A sine function with phase is used to capture the influence of the main period, and a sine function with twice the phase is used to capture the influence of the secondary period. By combining the main period influence and the secondary period influence, the relationship between phase and load burst intensity is constructed. Based on the nonlinear saturation characteristics of the influence of periodic load amplitude, the relationship between the influence of periodic load amplitude and load burst intensity is constructed.
8. The tidal computing power scheduling method for computing power resource pools according to claim 7, characterized in that, To obtain the relative periodic load amplitude at future moments, including: In the historical database, obtain the historical load mean and historical load standard deviation of multiple corresponding phases that are concurrent with the phase of the future time. Using a periodic forecasting model, a predictive baseline load for future times can be obtained; The relative periodic load amplitude at future times is obtained based on the historical load mean, the historical load standard deviation, and the predicted baseline load.
9. A tidal computing power scheduling system for computing power resource pools, characterized in that, The system includes: a memory and a processor, wherein: The memory is used to store program code; The processor is configured to read program code stored in the memory and execute the method as described in any one of claims 1 to 8.
10. The tidal computing power scheduling system for computing power resource pools according to claim 9, characterized in that, The processor includes: The historical load acquisition module is used to acquire the historical load of the computing resource pool and build a historical database. The historical load analysis module is used to construct historical time windows. Based on the historical database, it analyzes the periodic and sudden characteristics of load changes within each historical time window and determines the dominant type of load changes in each historical time window. The load burst probability prediction module is used to obtain the phase of each historical time window and future time, combine the load change dominant type, use kernel function to construct the correspondence between load burst probability and future time phase, and analyze the load burst density of future time phase, thereby determining the predicted final load burst probability of future time. The load burst intensity prediction module is used to construct the influence relationship between phase and periodic load amplitude on load burst intensity, then obtain the phase and relative periodic load amplitude at future time, and combine them with the predicted load burst probability to obtain the predicted load burst intensity at future time. The load prediction module is used to obtain the predicted baseline load for future times, and combine the predicted load burst intensity to determine the predicted load for future times, and perform tidal computing power scheduling of the computing power resource pool.
