A cold data computing resource occupation prediction method based on machine learning
By extracting cold data migration features using machine learning-based methods and utilizing an improved iTransformer model, the problem of inaccurate cold data resource occupancy prediction in existing technologies is solved, enabling accurate prediction and optimized scheduling of cold data access and resource peaks.
Patent Information
- Application Number
- CN202611450833.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-18
- Publication Date
- 2026-11-27
AI Technical Summary
Existing cold data management technologies struggle to accurately predict low-frequency burst access and resource peak lag in computing resource usage, leading to inaccurate resource reservation time and task scheduling.
By employing a machine learning-based approach, cold data migration observation information and computing resource observation information are obtained, storage-level migration features are extracted, and migration status, overhead, and lag time feature sequences are generated. Furthermore, an improved iTransformer model is used for multi-level variable interactive encoding to predict future resource consumption and task queue backlog risks.
It improves the accuracy of predicting low-frequency burst access to cold data and resource peak lag scenarios, and can identify potential computing resource pressure in advance, optimize resource reservation and task scheduling, and reduce the risk of resource competition.
Smart Images

Figure CN123178935A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of cold data computing technology, and in particular to a method for predicting cold data computing resource occupancy based on machine learning. Background Technology
[0002] As the data volume in cloud storage platforms, data centers, and enterprise archiving systems continues to grow, cold data with low access frequency and long retention periods is often migrated to low-frequency object storage tiers, low-cost storage tiers, or archive storage tiers to reduce long-term storage costs.
[0003] Existing cold data management technologies mostly rely on access frequency, recent access time, data volume, and storage cost to determine whether data should remain in low-cost storage and to control its migration hierarchy. They primarily focus on whether data should continue to be stored in the low-cost storage layer. However, they lack a unified resource consumption representation for the processes that occur when cold data is accessed again, such as retrieval, unfreezing, migration, decompression, integrity verification, cache loading, and cross-node transmission. This often doesn't immediately manifest as computational load when an access request is generated, but rather gradually translates into CPU usage, memory usage, I / O wait times, network throughput changes, and task queue backlogs over subsequent time windows.
[0004] Existing computing resource utilization prediction technologies typically rely on historical CPU, memory, network, and I / O monitoring curves as primary inputs, which fail to reflect the characteristics of cold data tasks, such as low-frequency bursts, delayed migration, and multi-resource coupling. In scenarios such as batch archiving and recovery, historical data playback, audit scanning, and training data retrieval, relying solely on historical resource curves for prediction can easily overlook the early indication role of storage tier migration on future computing resource utilization, leading to inaccurate resource reservation time, resource reservation amount, and task scheduling criteria. Summary of the Invention
[0005] One objective of this invention is to propose a machine learning-based method for predicting cold data computing resource usage. This invention improves the predictive accuracy for scenarios involving low-frequency burst access to cold data, batch migration, and resource peak delays.
[0006] A cold data computing resource occupancy prediction method based on machine learning according to an embodiment of the present invention includes:
[0007] Acquire cold data migration observation information and computing resource observation information of the target cold data platform within a continuous observation time window, perform preprocessing, and generate joint cold data migration samples;
[0008] Storage-level migration features are extracted from the joint samples of cold data migration to obtain cold data migration state feature sequence, cold data migration cost feature sequence, cold data migration lag time feature sequence and computing resource consumption feature sequence. The cold data migration state feature sequence, cold data migration cost feature sequence, cold data migration lag time feature sequence and computing resource consumption feature sequence are then constructed into a joint variable sequence of migration features and resource consumption.
[0009] By using a variable embedding layer, each class of variables in the joint variable sequence of migration features and resource consumption is mapped to a variable Token, thus obtaining the iTransformer input Token sequence.
[0010] The iTransformer input token sequence is input into the storage hierarchy migration awareness module of the improved iTransformer. The hierarchy migration bias is generated based on the cold data migration state feature sequence, the lag effect bias is generated based on the cold data migration lag time feature sequence, and the task cost bias is generated based on the cold data migration cost feature sequence. The hierarchy migration bias, lag effect bias and task cost bias are then injected into the attention correlation calculation process between variables token to generate a variable association representation under storage hierarchy migration constraints.
[0011] The variable association representation under the storage level migration constraint is input into the improved iTransformer encoder for multi-level variable interaction encoding to generate cold data migration results.
[0012] Input the cold data migration results into the migration lag resource usage prediction header, and generate migration lag resource peak results, migration resource usage component results, cross-storage tier migration pressure results, and task queue backlog risk results according to the short-term prediction window, medium-term prediction window, and post-migration prediction window.
[0013] Based on the peak results of migration lag resources and the migration pressure results across storage levels, the amount of computing resources reserved and the resource reservation time within the future prediction window are determined. Based on the migration resource occupancy component results, the execution priorities of tasks such as cold data archiving and unfreezing, back-migrating, decompression, integrity verification, and cache loading are determined. Based on the task queue backlog risk results, the staggered execution rules for cold data migration tasks are determined, and auxiliary results for cold data computing resource scheduling are generated.
[0014] Optionally, the cold data migration observation information includes cold data storage level, cold data migration path, cold data migration stage and cold data migration task overhead, and the computing resource observation information includes CPU usage, memory usage, I / O wait, network throughput and task queue status.
[0015] Optionally, the preprocessing includes aligning cold data migration observation information with computing resource observation information in time, associating cold data objects, and associating migration tasks according to a uniform time granularity.
[0016] Optionally, the step of extracting storage-level migration features from the joint samples of cold data migration to obtain a cold data migration state feature sequence, a cold data migration overhead feature sequence, a cold data migration lag time feature sequence, and a computing resource consumption feature sequence includes:
[0017] The joint samples of cold data migration are divided into a set of time-slice samples arranged by time according to the time slice order corresponding to the unified time granularity.
[0018] Based on each time slice sample record in the time slice sample set, generate a cold data migration status feature vector, a cold data migration overhead feature vector, and a computing resource consumption feature vector;
[0019] Based on the time offset relationship between the intensity of change in the cold data migration stage and the intensity of comprehensive computing power resource occupancy, a cold data migration lag time feature vector is generated.
[0020] The cold data migration state feature vector, cold data migration cost feature vector, cold data migration lag time feature vector, and computing power resource consumption feature vector are summarized according to the time slice order of the time slice sample set to obtain the cold data migration state feature sequence, cold data migration cost feature sequence, cold data migration lag time feature sequence, and computing power resource consumption feature sequence.
[0021] The cold data migration status feature sequence, cold data migration cost feature sequence, cold data migration lag time feature sequence, and computing resource usage feature sequence are concatenated according to the same time slice order to obtain the joint variable sequence of migration features and resource usage.
[0022] Optionally, the step of mapping each class of variables in the joint variable sequence of migration features and resource consumption to a variable Token through a variable embedding layer includes:
[0023] Based on the joint variable sequence of migration characteristics and resource consumption, a joint variable matrix is constructed and combined into a corresponding variable time slice vector;
[0024] Project the time slice vector of each variable in the joint variable matrix into the time dimension to generate the initial embedding vector of the variable;
[0025] Perform variable source embedding and variable ordinal embedding on the initial variable embedding vector to obtain the variable token corresponding to each type of variable;
[0026] The variable tokens corresponding to each type of variable are combined sequentially along the token dimension according to the variable dimension to obtain the iTransformer input token sequence.
[0027] Optionally, the step of inputting the iTransformer input token sequence into the storage hierarchy migration awareness module of the improved iTransformer, generating a hierarchy migration bias based on the cold data migration state feature sequence, and generating a lag effect bias based on the cold data migration lag time feature sequence includes:
[0028] The structural composition of the improved iTransformer storage tier migration awareness module was determined, and the storage tier migration awareness module was obtained.
[0029] The iTransformer inputs the Token sequence into the Token linear mapping unit, and performs query linear mapping, key linear mapping and value linear mapping respectively to generate the transfer-aware query matrix, transfer-aware key matrix and transfer-aware value matrix.
[0030] Input the cold data migration state feature sequence, cold data migration cost feature sequence, and cold data migration lag time feature sequence into the migration bias generation unit to generate hierarchical migration bias, lag effect bias, and task cost bias, respectively.
[0031] The transfer-aware query matrix, transfer-aware key matrix, hierarchical transfer bias, lag effect bias, and task overhead bias are injected into the attention unit to generate the transfer-aware attention matrix.
[0032] The transfer-aware attention matrix and transfer-aware value matrix are input to the variable association output unit to generate a variable association representation under storage-level transfer constraints.
[0033] Optionally, the step of inputting the variable association representation under storage level migration constraints into the improved iTransformer encoder for multi-level variable interaction encoding includes:
[0034] The structural composition of the improved iTransformer encoder was determined, and the improved iTransformer encoder was obtained.
[0035] Based on the variable association input unit in the improved iTransformer encoder, the variable association representation under the storage level migration constraint is normalized and combined to generate the variable interaction input representation;
[0036] Based on the multi-layer variable interaction coding unit in the improved iTransformer encoder, the variable interaction input representation is encoded layer by layer to generate a multi-layer variable interaction coding representation.
[0037] Based on the coding aggregation unit in the improved iTransformer encoder, the multi-layer variable interaction coding representation is grouped and aggregated to generate hierarchical migration representation values, hysteresis representation values, task overhead representation values, and resource coupling representation values.
[0038] Based on the improved iTransformer encoder's migration result output unit, cold data migration results are generated according to hierarchical migration representation values, hysteresis effect representation values, task overhead representation values, and resource coupling representation values.
[0039] Optionally, the step of inputting the cold data migration results into the migration lag resource usage prediction header, according to the short-term prediction window, the medium-term prediction window, and the prediction window after the migration is completed, includes:
[0040] The structural composition of the migration lag resource occupancy prediction head is determined, and the migration lag resource occupancy prediction head is obtained.
[0041] Based on the cold data migration result input unit in the migration lag resource occupation prediction header, the cold data migration result is identified by result category to obtain the cold data migration result category.
[0042] Based on the prediction window division unit in the prediction head of resource occupation after migration lag, the future short-term prediction window, the future medium-term prediction window and the prediction window after migration are determined according to a unified time granularity.
[0043] Based on the occupancy result mapping unit in the migration lag resource occupancy prediction header, and according to the correspondence between the cold data migration result category and the future short-term prediction window, future medium-term prediction window and the prediction window after migration is completed, the following results are generated: migration lag resource peak result, migration resource occupancy component result, cross-storage tier migration pressure result and task queue backlog risk result.
[0044] Optionally, determining the amount of computing resources reserved and the resource reservation time within the future prediction window based on the peak results of migration lag resources and the migration pressure results across storage tiers includes:
[0045] Based on the peak results of migration lag resources and the results of cross-storage tier migration pressure, determine the amount of computing resources reserved and the resource reservation time within the future prediction window;
[0046] Based on the migration resource usage results, determine the execution priority of tasks such as cold data archiving and unfreezing, migration and transmission, decompression, integrity verification, and cache loading;
[0047] Based on the risk of backlog in the task queue, determine the staggered execution rules for cold data migration tasks;
[0048] Based on the reserved computing resources, the reserved time, the task execution priority, and the staggered execution rules for cold data migration tasks, auxiliary results for cold data computing resource scheduling are generated.
[0049] The beneficial effects of this invention are:
[0050] (1) This invention extracts storage-level migration features from joint samples of cold data migration, and models the correlation between cold data storage level, cold data migration path, cold data migration stage, and cold data migration overhead and CPU usage, memory usage, I / O wait, network throughput, and task queue status at a unified time granularity. This explicitly expresses the process of cold data transforming from a low-activity storage state to a computing resource occupancy state. By constructing cold data migration state feature sequences, cold data migration overhead feature sequences, cold data migration lag time feature sequences, and computing resource occupancy feature sequences, it is possible to identify in advance situations where cold data access requests have not yet formed a significant resource peak but may subsequently cause computing resource pressure.
[0051] (2) This invention generates hierarchical migration bias, lag effect bias, and task overhead bias through a storage hierarchical migration sensing module, and injects these three types of biases into the attention correlation calculation process between variables Token, so that the association between variables Token is constrained by the hierarchical migration process of cold data storage. The hierarchical migration bias strengthens the influence of cold data storage hierarchy, cold data migration path, and cold data migration stage on the relationship between variables Token. The lag effect bias strengthens the time offset relationship between changes in the cold data migration stage and subsequent resource consumption. The task overhead bias strengthens the coupling influence of cold data migration overhead on CPU, memory, I / O, network throughput, and task queue status, enabling the improved iTransformer to learn the cross-variable association between cold data migration status, migration overhead, lag time, and computing resource consumption more accurately, and improving the predictive targeting for scenarios of low-frequency burst access to cold data, batch migration, and resource peak lag.
[0052] (3) This invention sets up a migration lag resource occupancy prediction head after improving the iTransformer encoder, further mapping the cold data migration results into migration lag resource peak results, migration resource occupancy component results, cross-storage level migration pressure results, and task queue backlog risk results. The prediction results are output according to the short-term prediction window, the medium-term prediction window, and the prediction window after migration completion, so that the prediction results provide resource occupancy trends, directly corresponding to the reserved computing resources, resource reservation time, task execution priority, and cold data migration task staggered execution rules. By dividing the prediction results into four categories—resource peak, occupancy component, migration pressure, and queue backlog risk—the system can generate cold data stable continuous scheduling auxiliary results, cold data lag reservation scheduling auxiliary results, cold data overhead suppression scheduling auxiliary results, or cold data pressure staggered scheduling auxiliary results based on different cold data migration results. This allows the prediction output to be directly converted into a cold data computing resource scheduling auxiliary basis, reducing the resource competition risk between cold data migration tasks and online services. Attached Figure Description
[0053] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used in conjunction with embodiments of the invention to explain the invention and do not constitute a limitation thereof. In the drawings:
[0054] Figure 1 This is a flowchart of a cold data computing resource occupancy prediction method based on machine learning proposed in this invention;
[0055] Figure 2 This is a block diagram of the improved iTransformer proposed in this invention for predicting cold data computing power resource usage based on machine learning.
[0056] Figure 3 This is a comparison chart of the predicted peak CPU usage and the actual value in Implementation 2 of the cold data computing power resource usage prediction method based on machine learning proposed in this invention.
[0057] Figure 4 This is a comparison chart of I / O wait prediction and actual value in Embodiment 2 of the cold data computing power resource occupancy prediction method based on machine learning proposed in this invention;
[0058] Figure 5 This is a comparison chart of network throughput prediction and actual value in Implementation 2 of the cold data computing power resource occupancy prediction method based on machine learning proposed in this invention;
[0059] Figure 6 This is a comparison chart of the predicted and actual values of the task queue status in Example 2 of the cold data computing power resource occupancy prediction method based on machine learning proposed in this invention. Detailed Implementation
[0060] Example 1: Reference Figure 1 A machine learning-based method for predicting cold data computing resource usage includes:
[0061] Acquire cold data migration observation information and computing resource observation information of the target cold data platform within a continuous observation time window, perform preprocessing, and generate joint cold data migration samples.
[0062] In this embodiment, the specific components include: cold data migration observation information including cold data storage level, cold data migration path, cold data migration stage and cold data migration task overhead; and computing resource observation information including CPU usage, memory usage, I / O wait, network throughput and task queue status.
[0063] In this embodiment, the preprocessing specifically includes aligning the cold data migration observation information with the computing resource observation information in terms of time, associating cold data objects, and associating migration tasks according to a unified time granularity.
[0064] In Example 1, a hash connection algorithm based on event time windows is used to divide cold data migration observation information and computing resource observation information into the same event time window according to a unified time granularity. The cold data object identifier and migration task identifier are used as a joint hash key to match and connect records in the same time window, thereby completing time alignment, cold data object association and migration task association.
[0065] Storage-level migration features are extracted from the joint samples of cold data migration to obtain cold data migration state feature sequence, cold data migration cost feature sequence, cold data migration lag time feature sequence and computing resource occupation feature sequence. The cold data migration state feature sequence, cold data migration cost feature sequence, cold data migration lag time feature sequence and computing resource occupation feature sequence are then constructed into a joint variable sequence of migration features and resource occupation.
[0066] In this embodiment, the specific steps include: dividing the joint cold data migration samples into a time slice sample set arranged by time according to the time slice order corresponding to the unified time granularity.
[0067] In Example 1, the time slice sample set includes multiple time slice sample records arranged in time slice order. Each time slice sample record includes the cold data storage level, cold data migration path, cold data migration stage, cold data migration overhead, CPU usage, memory usage, I / O wait, network throughput, and task queue status within the same time slice.
[0068] Based on each time slice sample record in the time slice sample set, generate a cold data migration state feature vector, a cold data migration overhead feature vector, and a computing resource consumption feature vector.
[0069] In Example 1, the cold data migration overhead, CPU usage, memory usage, I / O wait, network throughput, and task queue status computing resource observation indicators in each time slice sample record are uniformly processed into dimensionless values to obtain the corresponding dimensionless observation values.
[0070] For cold data storage levels, cold data migration paths, and cold data migration stages, a dimensionless encoding based on physical order is uniformly performed to obtain the dimensionless encoded values corresponding to each state.
[0071] The cold data migration state feature vector is formed by combining the cold data storage level, cold data migration path, and dimensionless encoding value of the cold data migration stage in the current time slice, as well as the encoding difference between the cold data storage level and the cold data migration stage relative to the previous time slice.
[0072] The dimensionless observation value corresponding to the cold data migration cost of the current time slice, and the observation difference relative to the previous time slice, are combined to form the cold data migration cost feature vector.
[0073] The dimensionless observations of CPU usage, memory usage, I / O wait, network throughput, and task queue status after the current time slice are combined to form a feature vector of computing resource usage.
[0074] Based on the time offset relationship between the intensity of change in the cold data migration stage and the intensity of comprehensive computing power resource occupancy, a cold data migration lag time feature vector is generated.
[0075] In Example 1, the absolute difference between the dimensionless encoded values of the current and previous time slices during the cold data migration phase is calculated to obtain the intensity of change during the migration phase. Simultaneously, the dimensionless observations of CPU usage, memory usage, I / O wait time, network throughput, and task queue status are weighted and summed to obtain the overall computing power resource utilization intensity.
[0076] Within the preset cold data migration lag search range, for each candidate lag time slice, the migration stage change intensity sequence within the historical review window and the comprehensive computing power resource occupancy intensity sequence, which is offset backward according to the candidate lag time slice and aligned by boundary truncation, are multiplied by the corresponding time slice and summed to obtain the lag matching value corresponding to the candidate lag time slice. The candidate lag time slice with the largest lag matching value is determined as the target lag time slice.
[0077] The target number of time slots is normalized according to the preset maximum number of time slots to generate the cold data migration time lag feature vector corresponding to the current time slot.
[0078] The maximum number of time slots with a preset lag is determined by dividing the maximum time interval from the change in cold data migration stage to the peak of the comprehensive computing power resource occupancy intensity in the historical cold data migration task by a uniform time granularity and rounding up. The value range is from 1 to the total number of time slots in the continuous observation time window minus 1. The preset cold data migration lag search range consists of the number of candidate time slots with an integer between 0 and the preset maximum number of time slots with a preset lag.
[0079] The cold data migration state feature vector, cold data migration cost feature vector, cold data migration lag time feature vector, and computing resource usage feature vector are summarized according to the time slice order of the time slice sample set to obtain the cold data migration state feature sequence, cold data migration cost feature sequence, cold data migration lag time feature sequence, and computing resource usage feature sequence.
[0080] The cold data migration status feature sequence, cold data migration cost feature sequence, cold data migration lag time feature sequence, and computing resource usage feature sequence are concatenated according to the same time slice order to obtain the joint variable sequence of migration features and resource usage.
[0081] By using a variable embedding layer, each class of variables in the joint variable sequence of migration features and resource consumption is mapped to a variable Token, resulting in the iTransformer input Token sequence.
[0082] In this embodiment, the specific steps include: constructing a joint variable matrix based on the joint variable sequence of migration features and resource consumption, and combining it into a corresponding variable time slice vector.
[0083] In Example 1, based on the joint variable sequence of migration features and resource occupancy, a joint variable matrix is constructed according to the time slice order and variable dimension order of the time slice sample set. The values of all time slices of the same type of variable in the joint variable matrix within the continuous observation time window are combined into the corresponding variable time slice vector.
[0084] The order of the variable dimensions is determined by the arrangement of the cold data migration state feature sequence, the cold data migration cost feature sequence, the cold data migration lag time feature sequence, and the computing resource usage feature sequence when the variable dimensions are concatenated.
[0085] Projecting the time slice vector of each variable in the joint variable matrix into the time dimension generates the initial embedding vector of the variable.
[0086] In Example 1, the time dimension projection linearly maps the temporal changes of the variable time slice vector within a continuous observation time window through the time dimension projection weights and time dimension projection biases in the variable embedding layer, thus obtaining the initial embedding vector of the variable.
[0087] The time dimension projection weights are obtained by backpropagating the training loss between the predicted results of the target cold data computing resource usage and the actual observed values of computing resource usage. Their initial values are between the reciprocal of the square root of the total number of negative time slices and the reciprocal of the square root of the total number of positive time slices, and are constrained to [-1, 1] during training. The time dimension projection bias is initialized to 0 and is updated together with the time dimension projection weights, and its value range is constrained to [-1, 1].
[0088] Perform variable source embedding and variable ordinal embedding on the initial variable embedding vector to obtain the variable token corresponding to each type of variable.
[0089] In Example 1, based on the variable source category and arrangement position of each type of variable, the corresponding variable source embedding vector and variable order embedding vector are matched in the preset variable source embedding table and the preset variable order embedding table, respectively. After adding the initial variable embedding vector, the variable source embedding vector and the variable order embedding vector, layer normalization is performed to generate the variable token corresponding to each type of variable.
[0090] The variable tokens corresponding to each type of variable are combined sequentially along the token dimension according to the variable dimension to obtain the iTransformer input token sequence.
[0091] The iTransformer input token sequence is fed into the storage hierarchy migration awareness module of the improved iTransformer. The hierarchical migration bias is generated based on the cold data migration state feature sequence, the lag effect bias is generated based on the cold data migration lag time feature sequence, and the task cost bias is generated based on the cold data migration cost feature sequence. The hierarchical migration bias, lag effect bias and task cost bias are then injected into the attention correlation calculation process between variables token to generate a variable association representation under storage hierarchy migration constraints.
[0092] In this embodiment, the specific steps include: determining the structural composition of the improved iTransformer storage-level migration awareness module to obtain the storage-level migration awareness module.
[0093] In Example 1, the storage-level migration awareness module includes a token linear mapping unit, a migration bias generation unit, a bias injection attention unit, and a variable association output unit.
[0094] The iTransformer inputs the Token sequence into the Token linear mapping unit, and performs query linear mapping, key linear mapping, and value linear mapping respectively to generate the transfer-aware query matrix, transfer-aware key matrix, and transfer-aware value matrix.
[0095] In Example 1, the iTransformer input Token sequence is linearly transformed with the query linear mapping weight, key linear mapping weight, and value linear mapping weight, respectively, to generate the transfer-aware query matrix, transfer-aware key matrix, and transfer-aware value matrix. The query linear mapping weight, key linear mapping weight, and value linear mapping weight are all obtained by backpropagation based on the training loss between the target cold data computing resource usage prediction result and the actual observed value of computing resource usage, and the value range is [-1, 1].
[0096] The cold data migration state feature sequence, cold data migration cost feature sequence, and cold data migration lag time feature sequence are input into the migration bias generation unit to generate hierarchical migration bias, lag effect bias, and task cost bias, respectively.
[0097] In Example 1, the cold data migration state feature sequence, the cold data migration lag time feature sequence, and the cold data migration cost feature sequence are averaged and aggregated according to the time slice order to obtain the cold data migration state aggregation vector, the cold data migration lag time aggregation vector, and the cold data migration cost aggregation vector.
[0098] The cold data migration state aggregation vector, cold data migration lag time aggregation vector, and cold data migration cost aggregation vector are respectively subjected to corresponding bias mapping and processed by the hyperbolic tangent constraint function to generate hierarchical migration bias vector, lag effect bias vector, and task cost bias vector with the same dimension as the number of variable tokens.
[0099] The hierarchical transfer bias vector, lag effect bias vector, and task cost bias vector are each outer producted with themselves to generate hierarchical transfer bias, lag effect bias, and task cost bias that match the dimension of the attention dot product matrix of the variable Token and can be matrix-added.
[0100] The transfer-aware query matrix, transfer-aware key matrix, hierarchical transfer bias, hysteresis bias, and task overhead bias are injected into the attention unit to generate the transfer-aware attention matrix.
[0101] In Example 1, the dot product correlation of the transfer-aware query matrix and the transfer-aware key matrix is calculated, and then scaled according to the embedding dimension corresponding to the individual variable Token to obtain the scaled original attention correlation matrix. The hierarchical transfer bias, lag effect bias and task overhead bias are superimposed on the scaled original attention correlation matrix to obtain the attention correlation matrix under storage-level transfer constraints. The attention correlation matrix under storage-level transfer constraints is normalized to generate the transfer-aware attention matrix.
[0102] The transfer-aware attention matrix and transfer-aware value matrix are input to the variable association output unit to generate a variable association representation under storage-level transfer constraints.
[0103] In Example 1, the variable association output unit performs weighted aggregation on the variable Token information in the transfer-aware value matrix based on the transfer-aware attention matrix, so that the hierarchical transfer bias, lag effect bias and task overhead bias jointly constrain the information transmission between variable Tokens, and generate a variable association representation under storage hierarchical transfer constraints.
[0104] In this embodiment, the improved iTransformer is used to receive a joint variable sequence of migration features and resource usage formed by concatenating a cold data migration state feature sequence, a cold data migration cost feature sequence, a cold data migration lag time feature sequence, and a computing power resource usage feature sequence. The input dimension is the number of time slices multiplied by the total number of variables. After passing through the variable embedding layer, it is converted into an iTransformer input token sequence with the number of variable tokens multiplied by the embedding dimension. The number of variable tokens is equal to the total number of variables in the joint variable sequence of migration features and resource usage. The embedding dimension can be 64-256.
[0105] refer to Figure 2 The improved iTransformer consists of a variable embedding layer, a storage-level migration awareness module, an improved iTransformer encoder, and a migration lag resource consumption prediction head. The number of network layers can be set to 2-6 variable interaction coding layers. Each variable interaction coding layer includes interaction coding between variable tokens, feedforward transformation, residual fusion, and layer normalization processing. The hidden dimension of the feedforward transformation can be set to 2-4 times the embedding dimension. The parameter scale is composed of time dimension projection weights, time dimension projection biases, query linear mapping weights, key linear mapping weights, value linear mapping weights, hierarchical migration bias mapping weights, lag effect bias mapping weights, task overhead bias mapping weights, multi-layer variable interaction coding layer parameters, and migration lag resource consumption prediction head parameters. The parameters can be controlled within the range of millions to tens of millions to meet the online prediction deployment needs of data centers. The training data comes from historical cold data migration samples and actual observations of computing resource usage of the target cold data platform. The historical cold data migration samples include cold data storage level, cold data migration path, cold data migration stage and cold data migration overhead. The actual observations of computing resource usage include CPU usage, memory usage, I / O wait, network throughput and task queue status. During training, the error between the target cold data computing resource usage prediction result and the actual computing resource usage observation is used as the training loss. The trainable parameters in the variable embedding layer, storage level migration awareness module, improved iTransformer encoder and migration lag resource usage prediction head are updated through backpropagation.
[0106] Compared to the existing iTransformer, this model introduces cold data migration state feature sequences, cold data migration cost feature sequences, and cold data migration lag time feature sequences before variable attention modeling. It also injects attention correlation calculations between variable tokens through hierarchical migration bias, lag effect bias, and task cost bias. This allows the model to learn variable correlations beyond simply relying on historical resource curves, explicitly learning the early indication effect of cold data storage hierarchical migration on subsequent computing resource usage. At the output end, a migration lag resource usage prediction header is set, generating peak migration resource usage results, migration resource usage component results, cross-storage hierarchical migration pressure results, and task queue backlog risk results according to short-term, medium-term, and post-migration prediction windows. This enables the prediction results to directly serve the generation of computing resource reservation amounts, resource reservation times, task execution priorities, and cold data migration task off-peak execution rules, improving the targeting and scheduling availability of resource usage predictions in scenarios such as cold data re-access, archive unfreezing, backhaul transmission, decompression, integrity verification, and cache loading.
[0107] The variable association representation under the storage level migration constraint is input into the improved iTransformer encoder for multi-level variable interaction encoding to generate cold data migration results.
[0108] In this embodiment, the specific steps include: determining the structural composition of the improved iTransformer encoder to obtain the improved iTransformer encoder.
[0109] In Example 1, the improved iTransformer encoder includes a variable association input unit, a multi-layer variable interaction coding unit, a coding aggregation unit, and a transfer result output unit. The multi-layer variable interaction coding unit includes multiple variable interaction coding layers connected in a hierarchical order.
[0110] Based on the variable association input unit in the improved iTransformer encoder, the variable association representation under the storage level migration constraint is normalized and combined to generate the variable interaction input representation.
[0111] In Example 1, the variable association input unit splits the variable association representation under the storage level migration constraint according to the variable token dimension and performs layer normalization processing to obtain the normalized variable token representation corresponding to each variable token; according to the variable dimension order in the iTransformer input token sequence, all normalized variable token representations are combined sequentially along the token dimension to generate the variable interaction input representation.
[0112] Based on the improved multi-layer variable interaction coding unit in the iTransformer encoder, the variable interaction input representation is encoded layer by layer to generate a multi-layer variable interaction coded representation.
[0113] In Example 1, the multi-layer variable interaction coding unit includes multiple sequentially connected variable interaction coding layers. The variable interaction input representation is used as the input representation of the first variable interaction coding layer. Each variable interaction coding layer performs interactive coding between variable tokens, feedforward transformation, residual fusion and layer normalization on the input representation of the previous layer to obtain the output representation of the current layer, which is used as the input representation of the next variable interaction coding layer. This process continues until all variable interaction coding layers are completed, and the output representation of the last variable interaction coding layer is determined as the multi-layer variable interaction coding representation.
[0114] Based on the coding aggregation unit in the improved iTransformer encoder, the multi-level variable interaction coding representation is grouped and aggregated to generate hierarchical migration representation values, hysteresis effect representation values, task overhead representation values, and resource coupling representation values.
[0115] In Example 1, the encoding aggregation unit divides the multi-layer variable interaction encoding representation into a cold data migration state token encoding group, a cold data migration lag time token encoding group, a cold data migration overhead token encoding group, and a computing resource occupation token encoding group according to the variable dimension order of the variable token in the iTransformer input token sequence.
[0116] The embedding dimension averaging process is performed on the token encoding results of each variable in the cold data migration status, cold data migration lag time, and cold data migration cost token encoding group to obtain the status token strength value, lag token strength value, and cost token strength value. Then, variable dimension averaging aggregation and normalization are performed within their respective groups to generate hierarchical migration representation value, lag effect representation value, and task cost representation value.
[0117] For each variable in the computing resource occupancy token encoding group, the embedding dimension average processing and the group variable dimension average aggregation are performed to obtain the resource token strength value. The resource token strength value is then multiplied and aggregated with the state token strength value, the lag token strength value and the overhead token strength value by scalar and normalized to generate the resource coupling characterization value.
[0118] Based on the improved iTransformer encoder's migration result output unit, cold data migration results are generated according to hierarchical migration representation values, hysteresis effect representation values, task overhead representation values, and resource coupling representation values.
[0119] In Example 1, the migration result output unit compares the hierarchical migration representation value, lag effect representation value, task overhead representation value, and resource coupling representation value with the corresponding preset hierarchical migration threshold, preset lag effect threshold, preset task overhead threshold, and preset resource coupling threshold, respectively. The preset hierarchical migration threshold, preset lag effect threshold, preset task overhead threshold, and preset resource coupling threshold are all determined based on the upper quantile of the normal distribution of the corresponding representation values in the historical cold data migration samples, and their values range from 0 to 1.
[0120] The migration result output unit determines the cold data migration result in the following order of priority: cold data pressure aggregation migration result, cold data overhead amplification migration result, cold data lag enhancement migration result, and cold data smooth migration result.
[0121] If the resource coupling characterization value is greater than the preset resource coupling threshold, it is determined to be the result of cold data pressure aggregation migration.
[0122] If the resource coupling characterization value is not greater than the preset resource coupling threshold, and the task overhead characterization value is greater than the preset task overhead threshold, it is determined to be a cold data overhead amplification migration result.
[0123] If the resource coupling representation value is not greater than the preset resource coupling threshold, the task overhead representation value is not greater than the preset task overhead threshold, and the hierarchical migration representation value or the lag effect representation value is greater than the corresponding preset hierarchical migration threshold or the preset lag effect threshold, it is determined as a cold data lag enhancement migration result.
[0124] If all the characterization values are not greater than the corresponding preset threshold, the result is determined to be a stable migration result of cold data.
[0125] The results of cold data migration are defined as follows: smooth migration of cold data, cold data lag enhancement migration of cold data, cold data overhead amplification migration of cold data, or cold data pressure aggregation migration of cold data.
[0126] Input the cold data migration results into the migration lag resource usage prediction header. Based on the short-term prediction window, medium-term prediction window, and prediction window after migration completion, generate the migration lag resource peak result, migration resource usage component result, cross-storage tier migration pressure result, and task queue backlog risk result.
[0127] In this embodiment, the specific steps include: determining the structural composition of the migration lag resource occupancy prediction head to obtain the migration lag resource occupancy prediction head.
[0128] In Example 1, the migration lag resource occupancy prediction head includes a cold data migration result input unit, a prediction window partitioning unit, and an occupancy result mapping unit.
[0129] Based on the cold data migration result input unit in the migration lag resource occupancy prediction header, the cold data migration result is classified to obtain the cold data migration result category.
[0130] In Example 1, the cold data migration result categories include cold data smooth migration results, cold data lag-enhanced migration results, cold data overhead amplified migration results, and cold data pressure-aggregated migration results.
[0131] Based on the prediction window division unit in the prediction header of resource occupancy after migration, the prediction window for the short term, the prediction window for the medium term, and the prediction window after the migration is completed are determined according to a unified time granularity.
[0132] In Example 1, the prediction window division unit takes the current prediction time as the starting point of the window and continuously divides the future prediction time period after the current prediction time according to a uniform time granularity; the time slice range from the current prediction time to the end of the preset short-term window cumulative time slice count is determined as the future short-term prediction window; the time slice range from the end of the future short-term prediction window to the end of the preset medium-term window cumulative time slice count is determined as the future medium-term prediction window; and the time slice range from the end of the future medium-term prediction window to the end of the preset migration completion window cumulative time slice count is determined as the migration completion prediction window.
[0133] The preset short-term window cumulative time slice count is less than the preset medium-term window cumulative time slice count, and the preset medium-term window cumulative time slice count is not greater than the preset window cumulative time slice count after migration is completed.
[0134] The preset number of cumulative time slices for short-term windows, the preset number of cumulative time slices for medium-term windows, and the preset number of cumulative time slices for windows after migration are all determined based on the time distribution of the peak resource usage corresponding to the cold data migration results in the historical cold data migration samples. They correspond to the integer time slice values corresponding to the 25th percentile, 75th percentile, and 95th percentile of the time distribution of the peak resource usage in the historical samples, respectively.
[0135] Based on the occupancy result mapping unit in the migration lag resource occupancy prediction header, and according to the correspondence between the cold data migration result category and the future short-term prediction window, future medium-term prediction window and the prediction window after migration is completed, the following results are generated: migration lag resource peak result, migration resource occupancy component result, cross-storage tier migration pressure result and task queue backlog risk result.
[0136] In Example 1, the occupancy result mapping unit defines generation rules for migration lag resource peak results, migration resource occupancy component results, cross-storage tier migration pressure results, and task queue backlog risk results based on the cold data migration result category, wherein:
[0137] Cold data smooth migration results: The short-term forecast window, the medium-term forecast window, and the forecast window after migration are all generated with stable resource peak results, as well as balanced low occupancy component results, low migration pressure results, and low backlog risk results.
[0138] Cold data lag enhancement migration results: the future short-term forecast window generates low peak results, the future medium-term forecast window generates medium-term lag peak results, the forecast window after migration generates lag peak results after migration, and generates lag impact dominant component results, lag migration pressure results, and lag backlog risk results.
[0139] Cold data overhead amplifies migration results: the short-term forecast window generates short-term overhead peak results, the medium-term forecast window generates medium-term overhead continuation peak results, and the forecast window after migration generates overhead decline peak results. It also generates task overhead-dominated occupancy component results, overhead-type migration pressure results, and overhead-type high backlog risk results.
[0140] Cold data pressure aggregation migration results: the short-term forecast window generates short-term pressure aggregation peak results, the medium-term forecast window generates medium-term pressure aggregation peak results, and the forecast window after migration generates pressure continuation peak results after migration. It also generates resource coupling dominant occupancy component results, high migration pressure results, and pressure aggregation type high backlog risk results.
[0141] The results of peak migration resource lag, migration resource occupancy, cross-storage level migration pressure, and task queue backlog risk are given as preset discrete level encoding labels; or the multilayer perceptron mapping head performs linear mapping and adaptive activation based on the preset One-Hot embedding vector corresponding to the cold data migration result category to generate continuous resource occupancy scalars and vectors.
[0142] Based on the peak results of migration lag resources and the migration pressure results across storage levels, the amount of computing resources reserved and the resource reservation time within the future prediction window are determined. Based on the migration resource occupancy component results, the execution priorities of tasks such as cold data archiving and unfreezing, back-migrating, decompression, integrity verification, and cache loading are determined. Based on the task queue backlog risk results, the staggered execution rules for cold data migration tasks are determined, and auxiliary results for cold data computing resource scheduling are generated.
[0143] In this embodiment, the specific steps include: determining the amount of computing resources reserved and the resource reservation time within the future prediction window based on the peak results of migration lag resources and the migration pressure results across storage levels.
[0144] In Example 1, based on the peak levels of the migration-lag resource peak results in the short-term forecast window, the medium-term forecast window, and the forecast window after migration completion, the forecast window with the highest peak level is determined as the resource reservation time. The peak levels are set in ascending order: stable resource peak results, low peak results, medium-term lag peak results, migration-complete lag peak results, short-term cost peak results, medium-term cost continuation peak results, cost decline peak results, short-term pressure accumulation peak results, medium-term pressure accumulation peak results, and migration-complete pressure continuation peak results. When multiple forecast windows have the same peak level, the corresponding multiple forecast windows are jointly determined as the resource reservation time.
[0145] The basic reservation amount is determined based on the migration pressure results across storage tiers, where: low migration pressure results correspond to low reservation amounts; lag-type migration pressure results correspond to lag-enhanced reservation amounts; overhead-type migration pressure results correspond to overhead-enhanced reservation amounts; and high migration pressure results correspond to pressure-aggregated reservation amounts. The peak correction amount is determined based on the migration lag resource peak results in the prediction window corresponding to the resource reservation time. The basic reservation amount and the peak correction amount are then superimposed to obtain the computing power resource reservation amount. Specifically, when the basic reservation amount is low and the peak correction amount is zero, the superimposed computing power resource reservation amount is determined as low reservation amount; when the basic reservation amount is lag-enhanced reservation amount and the peak correction amount is superimposed, the superimposed computing power resource reservation amount is determined as lag-enhanced reservation amount; when the basic reservation amount is overhead-enhanced reservation amount and the peak correction amount is superimposed, the superimposed computing power resource reservation amount is determined as overhead-enhanced reservation amount; and when the basic reservation amount is pressure-aggregated reservation amount and the peak correction amount is superimposed, the superimposed computing power resource reservation amount is determined as pressure-aggregated reservation amount.
[0146] Based on the migration resource usage results, determine the execution priority of tasks such as cold data archiving and unfreezing, migration and transmission, decompression, integrity verification, and cache loading.
[0147] In Example 1, the dominant type of resource usage is first determined based on the migration resource usage component results. The dominant types of resource usage include balanced low usage type, lag effect dominant type, task overhead dominant type, and resource coupling dominant type. Then, based on the dominant type of resource usage, priority is allocated for cold data archiving and unfreezing, migration and transmission, decompression, integrity verification, and cache loading to obtain the task execution priority.
[0148] The specific generation and scheduling rules are as follows:
[0149] The balanced low-occupancy component result corresponds to the balanced low-occupancy type: it indicates that cold data archiving and unfreezing, migration and transmission, decompression, integrity verification and cache loading do not form a single dominant resource occupation, and cold data archiving and unfreezing, migration and transmission, decompression, integrity verification and cache loading are all determined to be normal execution priorities.
[0150] The results of the delayed impact dominance component correspond to the delayed impact dominance type, indicating that the resource pressure during the cold data migration process is mainly caused by the delayed release during the migration phase. Cold data archiving unfreezing and back-migration transmission are determined as the first execution priority, and decompression, integrity verification and cache loading are determined as the second execution priority.
[0151] The task overhead-dominant component result corresponds to the task overhead-dominant type, indicating that the resource pressure during the cold data migration process is mainly formed by decompression and integrity verification. Cold data archiving, unfreezing, and migration are determined as the first execution priority, cache loading is determined as the second execution priority, and decompression and integrity verification are determined as the third execution priority.
[0152] The resource coupling-dominant component result corresponds to the resource coupling-dominant type, indicating that the resource pressure during the cold data migration process is jointly formed by the coupling of cold data archiving and unfreezing, migration and transmission, decompression, integrity verification and cache loading. Cold data archiving and unfreezing is determined as the first execution priority, migration and transmission is determined as the second execution priority, and decompression, integrity verification and cache loading are determined as the third execution priority.
[0153] Based on the risk of task queue backlog, determine the staggered execution rules for cold data migration tasks.
[0154] In Example 1, based on the risk of task queue backlog, the cold data migration task staggered execution rule is determined from the continuous execution rule, the delayed window staggered execution rule, the overhead task batching rule, and the forced staggered execution rule, wherein:
[0155] Low backlog risk result: Determine the continuous execution rules, and according to the task execution priority, arrange the cold data archiving and unfreezing, migration and transmission, decompression, integrity verification and cache loading to be executed continuously within the prediction window corresponding to the resource reservation time.
[0156] Lagging Backlog Risk Result: Determine the lag window staggering rules, schedule the unfreezing and migration of cold data archives in the short-term forecast window, schedule the decompression and integrity verification in the medium-term forecast window, and schedule cache loading in the forecast window after the migration is completed.
[0157] High backlog risk due to overhead: Determine the rules for batching overhead tasks, schedule the unfreezing and migration of cold data archives in the short term forecast window, schedule decompression in the medium term forecast window, schedule integrity verification and cache loading in the forecast window after migration is completed, and restrict decompression and integrity verification to be executed in parallel within the same time slice forecast window.
[0158] High backlog risk due to pressure aggregation: Establish mandatory peak-shifting rules, schedule cold data archiving and unfreezing in the short-term forecast window, schedule migration and transmission in the medium-term forecast window, and perform decompression, integrity verification, and cache loading in batches and sequentially within the forecast window after migration is completed according to task execution priority. Also, restrict any two or more tasks in cold data archiving and unfreezing, migration and transmission, decompression, integrity verification, and cache loading from being executed in parallel within the same time slice.
[0159] Based on the reserved computing resources, the reserved time, the task execution priority, and the staggered execution rules for cold data migration tasks, auxiliary results for cold data computing resource scheduling are generated.
[0160] In Example 1, the auxiliary results for cold data computing resource scheduling include auxiliary results for stable and continuous cold data scheduling, auxiliary results for delayed and reserved cold data scheduling, auxiliary results for cold data overhead suppression scheduling, and auxiliary results for cold data pressure peak-shifting scheduling, wherein:
[0161] If the reserved computing resources are low, the resource reservation time covers the short-term prediction window, the medium-term prediction window, and the prediction window after the migration is completed, the task execution priority is the normal execution priority, and the cold data migration task staggered execution rule is the continuous execution rule, then a stable and continuous scheduling auxiliary result for cold data is generated.
[0162] If the reserved computing resources are a delayed enhancement reserved amount, the resource reservation time includes the future medium-term prediction window or the prediction window after the migration is completed, the cold data archiving, unfreezing and back-migration transmission are the first execution priority, and the cold data migration task staggered execution rule is the delayed window staggered execution rule, then a cold data delayed reservation scheduling auxiliary result is generated.
[0163] If the reserved computing resources are the reserved amount for increased overhead, the reserved time for resources includes the prediction window corresponding to the short-term peak overhead result or the mid-term continued peak overhead result, decompression and integrity verification are the third execution priority, and the cold data migration task is executed in a staggered manner as the overhead task batching rule, then a cold data overhead suppression scheduling auxiliary result is generated.
[0164] If the reserved computing resources are reserved for pressure aggregation, and the resource reservation time includes the prediction window corresponding to the short-term pressure aggregation peak result, the medium-term pressure aggregation peak result, or the pressure continuation peak result after migration, and the cold data migration task staggered execution rule is a mandatory staggered rule, then a cold data pressure staggered scheduling auxiliary result is generated.
[0165] When the conditions for generating multiple scheduling assistance results are met simultaneously, the final cold data computing resource scheduling assistance result is determined according to the priority order of cold data pressure off-peak scheduling assistance result, cold data overhead suppression scheduling assistance result, cold data lag reservation scheduling assistance result, and cold data stable continuous scheduling assistance result.
[0166] Example 2: Reference Figures 3-6 In the production environment of an enterprise-level cold data platform, the platform simultaneously handles tasks such as historical audit data recovery, training sample retrieval, and offline log playback. The cold data stored on the platform is primarily located in the archive storage layer and the low-frequency object storage layer. Under normal business conditions, the access frequency is low, and the resource monitoring curve is relatively stable. During a certain business period, implementers discovered that a batch of historical audit data was being accessed again, involving approximately 18,600 cold data objects, with a total data volume of approximately 21.4TB. Of this, approximately 14.8TB was in the archive storage layer, and approximately 6.6TB was in the low-frequency object storage layer. In the initial stage after the access request for this batch of cold data was generated, CPU usage was only 43.6%, memory usage was 118.5GB, I / O wait time was 11.8%, network throughput was 4.2Gbps, and the task queue status had 87 waiting tasks. According to traditional resource monitoring curves, this did not reach the resource alarm threshold. However, in subsequent time slices, archive unfreezing, migration, decompression, integrity verification, and cache loading tasks gradually started, and CPU usage, I / O wait time, and task queue status began to rise with a lag.
[0167] In this embodiment, the platform uses 5 minutes as a uniform time granularity and sets the continuous observation time window to 36 time slices, corresponding to 180 minutes of observation data prior to the current prediction time. The implementer compiled cold data migration observation information and computing resource observation information from the platform's historical operation records into a joint cold data migration sample, totaling 42,800 samples, including 29,960 training samples, 6,420 validation samples, and 6,420 test samples. Each sample includes cold data storage level, cold data migration path, cold data migration stage, cold data migration overhead, CPU usage, memory usage, I / O wait, network throughput, and task queue status. To make the samples approximate real business distribution, the training samples include 13,240 samples of smooth cold data migration results, 8,610 samples of cold data lag-enhanced migration results, 5,520 samples of cold data overhead amplified migration results, and 2,590 samples of cold data pressure-aggregated migration results.
[0168] One training sample shows that within a certain continuous observation window, the storage level of the cold data object batch "B-0317" changes from the archive storage layer to the low-frequency object storage layer, and then to the compute cache layer. The first 12 time slices are mainly in the archive unfreezing phase, with cold data migration overhead increasing from 0.18 to 0.49. From the 13th to the 22nd time slices, the data is transferred back to its origin, with network throughput increasing from 3.1Gbps to 7.8Gbps. From the 23rd to the 36th time slices, the data is decompressed and its integrity verified, with CPU utilization increasing from 45.2% to 74.6%, and the task queue increasing from 92 waiting tasks to 214 waiting tasks. This sample shows a peak actual CPU utilization of 86.9%, a peak actual I / O wait time of 29.7%, and a peak actual task queue of 286 waiting tasks within the future medium-term prediction window, which is labeled as a cold data lag-enhanced migration result.
[0169] Another training sample shows that the cold data object batch "B-0442" originated from the low-frequency object storage layer, with a migration path from the low-frequency object storage layer to the compute cache layer. For the first 10 time slices, CPU usage remained between 38.4% and 46.1%, without any significant peaks. However, the cold data migration overhead rapidly increased from 0.31 to 0.76 after the 8th time slice, followed by an increase in decompression and integrity verification tasks. Within the short-term prediction window, this sample showed a peak CPU usage of 89.4%, a peak memory usage of 216.8GB, and a peak task queue of 342 waiting tasks, indicating that the cold data overhead amplified the migration results.
[0170] Another training sample shows that the cold data object batch "B-0589" simultaneously involves archive unfreezing, migration back, and cache loading tasks, with frequent changes in the migration phase. The average cold data migration overhead reached 0.83, I / O wait increased from 14.5% to 24.1%, network throughput increased from 5.3Gbps to 12.6Gbps, and the task queue status increased from 116 waiting tasks to 331 waiting tasks. This sample exhibited high resource pressure in both the short-term and medium-term prediction windows, with peak actual CPU utilization reaching 93.1%, peak actual network throughput reaching 15.2Gbps, and peak actual task queue reaching 478 waiting tasks, which is marked as a result of cold data pressure aggregation migration.
[0171] During the actual prediction process, the platform received a new batch of cold data recovery requests, involving approximately 7,300 cold data objects and a total data volume of approximately 8.9TB. Of this, approximately 5.7TB was located in the archive storage layer, and approximately 3.2TB was located in the low-frequency object storage layer. In the 36 time slices prior to the current prediction time, the average CPU utilization was 47.8%, the average memory utilization was 126.3GB, the average I / O wait time was 52ms, the average network throughput was 5.4Gbps, and the average number of waiting tasks in the task queue was 104. Traditional resource prediction methods, based solely on these historical resource curves, would identify this batch of tasks as low-to-medium pressure tasks, predicting a future peak CPU utilization of 70.0%, a peak I / O wait time of 148ms, a peak network throughput of 10.9Gbps, and a peak number of waiting tasks in the task queue, without triggering any significant off-peak execution strategies.
[0172] The method of this invention further processes joint samples of cold data migration on the same batch of tasks. The system divides the cold data migration information in 36 time slices into a time slice sample set and generates a cold data migration status feature sequence, a cold data migration overhead feature sequence, a cold data migration lag time feature sequence, and a computing resource consumption feature sequence. In this batch of tasks, the cold data migration stage gradually transitions from archive unfreezing to backhaul transmission after the 9th time slice, and decompression and integrity verification tasks begin to appear after the 21st time slice; the dimensionless observation value of cold data migration overhead increases from 0.24 to 0.79; the cold data migration lag time feature shows that after the change in the migration stage, the overall computing resource consumption intensity increases significantly about 6 to 9 time slices. The system then constructs the above features into a joint variable sequence of migration features and resource consumption, and maps each type of variable to a variable Token, obtaining the iTransformer input Token sequence.
[0173] In the improved storage tier migration awareness module of iTransformer, the system generates tier migration biases based on the cold data migration state feature sequence, lag impact biases based on the cold data migration lag time feature sequence, and task overhead biases based on the cold data migration overhead feature sequence. These three types of biases are then injected into the attention correlation calculation process between variables Token. Attention analysis results for this batch of tasks show that the attention weight between the cold data migration overhead Token and the CPU usage Token increased from 0.18 (without bias injection) to 0.37; the attention weight between the cold data migration lag time Token and the task queue state Token increased from 0.14 to 0.33; and the attention weight between the cold data migration state Token and the I / O wait Token increased from 0.21 to 0.35. This indicates that the model recognizes the early indication relationship between the cold data migration process and subsequent computing resource usage.
[0174] After processing by the improved iTransformer encoder, this batch of tasks yielded a hierarchical migration representation value of 0.66, a lag impact representation value of 0.74, a task overhead representation value of 0.81, and a resource coupling representation value of 0.71. The corresponding preset hierarchical migration thresholds are 0.60, lag impact thresholds of 0.65, task overhead thresholds of 0.70, and resource coupling thresholds of 0.75. Following the priority judgment logic, the system determined that the resource coupling representation value did not exceed the preset resource coupling threshold, but the task overhead representation value exceeded the preset task overhead threshold. Therefore, this batch of tasks was identified as a cold data overhead amplification migration result. The migration lag resource occupancy prediction header then outputs short-term overhead peak results and medium-term overhead continuation peak results. The migration resource occupancy component result is the task overhead-dominated occupancy component result, the cross-storage tier migration pressure result is the overhead-type medium migration pressure result, and the task queue backlog risk result is the overhead-type high backlog risk result.
[0175] The system generates cold data overhead suppression scheduling auxiliary results based on the results. In specific execution, the platform schedules the cold data archiving, unfreezing, and migration transmission to be performed in the short-term prediction window, assigns cache loading as the second priority, and assigns decompression and integrity verification as the third priority, while restricting decompression and integrity verification to be performed in parallel within the same time slice prediction window. The system also reserves 56 CPU logical cores, 168GB of memory, 3.8Gbps of network bandwidth, and 90 task queue buffer slots in the short-term prediction window, and additionally reserves 44 CPU logical cores, 120GB of memory, and 70 task queue buffer slots in the medium-term prediction window.
[0176] After the actual execution of these tasks, the peak CPU utilization within the future medium-term prediction window was 92.6%, while the method of this invention predicted 82.4%, a deviation of 10.2 percentage points; the traditional method predicted 70.0%, a deviation of 22.6 percentage points. The peak I / O wait time within the future medium-term prediction window was 208ms, while the method of this invention predicted 181ms, a deviation of 27ms; the traditional method predicted 148ms, a deviation of 60ms. The actual peak network throughput within the future medium-term prediction window was 14.4Gbps, while the method of this invention predicted 12.9Gbps, a deviation of 1.5Gbps; the traditional method predicted 10.9Gbps, a deviation of 3.5Gbps. The peak task queue within the future medium-term prediction window was 1460 waiting tasks, while the method of this invention predicted 1260 waiting tasks, a deviation of 200 waiting tasks; the traditional method predicted 920 waiting tasks, a deviation of 540 waiting tasks.
[0177] In a comprehensive comparison of 6420 test samples, the traditional method had an average absolute error of 12.9 percentage points for peak CPU usage, while the method of this invention had an error of 5.8 percentage points; the traditional method had an average absolute error of 24.8 GB for peak memory usage, while the method of this invention had an error of 8.1 GB; the traditional method had an average absolute error of 31 ms for peak I / O wait time, while the method of this invention had an error of 13 ms; the traditional method had an average absolute error of 2.7 Gbps for peak network throughput, while the method of this invention had an error of 1.1 Gbps; and the traditional method had an average absolute error of 286 waiting tasks for peak task queues, while the method of this invention had an error of 104 waiting tasks. For identifying the prediction window where the resource peak occurred, the traditional method had a hit rate of 61.8%, while the method of this invention had a hit rate of 88.4%. For identifying the migration results of amplified cold data overhead, the traditional method had a recall rate of 66.5%, while the method of this invention had a recall rate of 91.2%; for identifying the migration results of aggregated cold data pressure, the traditional method had a recall rate of 57.9%, while the method of this invention had a recall rate of 85.6%.
[0178] In the same production simulation environment, the implementers also compared the scheduling execution results. Using the traditional method, the system failed to identify and release migration overhead in advance during several batches of cold data recovery tasks, resulting in 18 instances of insufficient resource reservation, 14 instances of task queues exceeding 1200 waiting tasks, a peak 95th percentile response latency of 431ms for online query tasks, and an average completion time of 152 minutes for cold data recovery tasks. After adopting the method of this invention, the number of instances of insufficient resource reservation was reduced to 5, the number of instances of task queues exceeding 1200 waiting tasks was reduced to 4, the peak 95th percentile response latency of online query tasks was controlled at 263ms, and the average completion time of cold data recovery tasks was reduced to 124 minutes.
[0179] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and inventive concept of the present invention, should be covered within the scope of protection of the present invention.
Claims
1. A method for predicting cold data computing resource occupancy based on machine learning, characterized in that, include: Acquire cold data migration observation information and computing resource observation information of the target cold data platform within a continuous observation time window, perform preprocessing, and generate joint cold data migration samples; Storage-level migration features are extracted from the joint samples of cold data migration to obtain a sequence of joint variables of migration features and resource consumption. By using a variable embedding layer, each class of variables in the joint variable sequence of migration features and resource consumption is mapped to a variable Token, thus obtaining the iTransformer input Token sequence. Input the iTransformer into the Token sequence and then into the storage hierarchy migration awareness module of the improved iTransformer to generate a variable association representation under storage hierarchy migration constraints; The variable association representation under the storage level migration constraint is input into the improved iTransformer encoder for multi-level variable interaction encoding to generate cold data migration results. Input the cold data migration results into the migration lag resource usage prediction header to generate migration lag resource peak results, migration resource usage component results, cross-storage tier migration pressure results, and task queue backlog risk results; Based on the peak results of migration lag resources and the migration pressure results across storage levels, the amount of computing resources reserved and the resource reservation time within the future prediction window are determined. Based on the migration resource occupancy component results, the execution priorities of tasks such as cold data archiving and unfreezing, back-migrating, decompression, integrity verification, and cache loading are determined. Based on the task queue backlog risk results, the staggered execution rules for cold data migration tasks are determined, and auxiliary results for cold data computing resource scheduling are generated.
2. The method for predicting cold data computing resource occupancy based on machine learning according to claim 1, characterized in that, The cold data migration observation information includes cold data storage hierarchy, cold data migration path, cold data migration stage and cold data migration task overhead. The computing resource observation information includes CPU usage, memory usage, I / O wait, network throughput and task queue status.
3. The method for predicting cold data computing resource occupancy based on machine learning according to claim 1, characterized in that, The preprocessing includes aligning cold data migration observation information with computing resource observation information in a unified time granularity, associating cold data objects, and associating migration tasks.
4. The method for predicting cold data computing resource occupancy based on machine learning according to claim 1, characterized in that, The process of extracting storage-level migration features from the joint samples of cold data migration yields a cold data migration state feature sequence, a cold data migration overhead feature sequence, a cold data migration lag time feature sequence, and a computing resource consumption feature sequence, including: The joint samples of cold data migration are divided into a set of time-slice samples arranged by time according to the time slice order corresponding to the unified time granularity. Based on each time slice sample record in the time slice sample set, generate a cold data migration status feature vector, a cold data migration overhead feature vector, and a computing resource consumption feature vector; Based on the time offset relationship between the intensity of change in the cold data migration stage and the intensity of comprehensive computing power resource occupancy, a cold data migration lag time feature vector is generated. The cold data migration state feature vector, cold data migration cost feature vector, cold data migration lag time feature vector, and computing power resource consumption feature vector are summarized according to the time slice order of the time slice sample set to obtain the cold data migration state feature sequence, cold data migration cost feature sequence, cold data migration lag time feature sequence, and computing power resource consumption feature sequence. The cold data migration status feature sequence, cold data migration cost feature sequence, cold data migration lag time feature sequence, and computing resource usage feature sequence are concatenated according to the same time slice order to obtain the joint variable sequence of migration features and resource usage.
5. The method for predicting cold data computing resource occupancy based on machine learning according to claim 1, characterized in that, The process of mapping each class of variables in the joint variable sequence of migration features and resource consumption to a variable Token through a variable embedding layer includes: Based on the joint variable sequence of migration characteristics and resource consumption, a joint variable matrix is constructed and combined into a corresponding variable time slice vector; Project the time slice vector of each variable in the joint variable matrix into the time dimension to generate the initial embedding vector of the variable; Perform variable source embedding and variable ordinal embedding on the initial variable embedding vector to obtain the variable token corresponding to each type of variable; The variable tokens corresponding to each type of variable are combined sequentially along the token dimension according to the variable dimension to obtain the iTransformer input token sequence.
6. The method for predicting cold data computing resource occupancy based on machine learning according to claim 1, characterized in that, The step of inputting the iTransformer input token sequence into the storage hierarchy migration awareness module of the improved iTransformer, generating a hierarchy migration bias based on the cold data migration state feature sequence, and generating a lag effect bias based on the cold data migration lag time feature sequence includes: The structural composition of the improved iTransformer storage tier migration awareness module was determined, and the storage tier migration awareness module was obtained. The iTransformer inputs the Token sequence into the Token linear mapping unit, and performs query linear mapping, key linear mapping and value linear mapping respectively to generate the transfer-aware query matrix, transfer-aware key matrix and transfer-aware value matrix. Input the cold data migration state feature sequence, cold data migration cost feature sequence, and cold data migration lag time feature sequence into the migration bias generation unit to generate hierarchical migration bias, lag effect bias, and task cost bias, respectively. The transfer-aware query matrix, transfer-aware key matrix, hierarchical transfer bias, lag effect bias, and task overhead bias are injected into the attention unit to generate the transfer-aware attention matrix. The transfer-aware attention matrix and transfer-aware value matrix are input to the variable association output unit to generate a variable association representation under storage-level transfer constraints.
7. The method for predicting cold data computing resource occupancy based on machine learning according to claim 1, characterized in that, The step of associating variables under storage level migration constraints with the improved iTransformer encoder for multi-level variable interaction encoding includes: The structural composition of the improved iTransformer encoder was determined, and the improved iTransformer encoder was obtained. Based on the variable association input unit in the improved iTransformer encoder, the variable association representation under the storage level migration constraint is normalized and combined to generate the variable interaction input representation; Based on the multi-layer variable interaction coding unit in the improved iTransformer encoder, the variable interaction input representation is encoded layer by layer to generate a multi-layer variable interaction coding representation. Based on the coding aggregation unit in the improved iTransformer encoder, the multi-layer variable interaction coding representation is grouped and aggregated to generate hierarchical migration representation values, hysteresis representation values, task overhead representation values, and resource coupling representation values. Based on the improved iTransformer encoder's migration result output unit, cold data migration results are generated according to hierarchical migration representation values, hysteresis effect representation values, task overhead representation values, and resource coupling representation values.
8. The method for predicting cold data computing resource occupancy based on machine learning according to claim 1, characterized in that, The process of inputting the cold data migration results into the migration lag resource usage prediction header, according to the short-term prediction window, the medium-term prediction window, and the prediction window after migration completion, includes: The structural composition of the migration lag resource occupancy prediction head is determined, and the migration lag resource occupancy prediction head is obtained. Based on the cold data migration result input unit in the migration lag resource occupation prediction header, the cold data migration result is identified by result category to obtain the cold data migration result category. Based on the prediction window division unit in the prediction head of resource occupation after migration lag, the future short-term prediction window, the future medium-term prediction window and the prediction window after migration are determined according to a unified time granularity. Based on the occupancy result mapping unit in the migration lag resource occupancy prediction header, and according to the correspondence between the cold data migration result category and the future short-term prediction window, future medium-term prediction window and the prediction window after migration is completed, the following results are generated: migration lag resource peak result, migration resource occupancy component result, cross-storage tier migration pressure result and task queue backlog risk result.
9. The method for predicting cold data computing resource occupancy based on machine learning according to claim 1, characterized in that, The process of determining the amount of computing resources reserved and the reservation time within the future prediction window based on the peak results of migration lag resources and the migration pressure results across storage tiers includes: Based on the peak results of migration lag resources and the results of cross-storage tier migration pressure, determine the amount of computing resources reserved and the resource reservation time within the future prediction window; Based on the migration resource usage results, determine the execution priority of tasks such as cold data archiving and unfreezing, migration and transmission, decompression, integrity verification, and cache loading; Based on the risk of backlog in the task queue, determine the staggered execution rules for cold data migration tasks; Based on the reserved computing resources, the reserved time, the task execution priority, and the staggered execution rules for cold data migration tasks, auxiliary results for cold data computing resource scheduling are generated.
