Storage space management party, apparatus, electronic device, and computer program product
By combining dynamic prediction and execution decision models based on business scenarios and user conditions, the problem of inefficiency in existing storage space management has been solved, enabling accurate prediction and intelligent management of storage space, and improving automation level and system stability.
Patent Information
- Application Number
- CN202511143501.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-15
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2045-08-15
AI Technical Summary
Existing storage space management technologies mainly rely on static threshold alarms and simple trend predictions, which cannot accurately analyze the reasons for storage space growth, resulting in low management efficiency and poor performance. They also cannot distinguish between natural growth and abnormal fluctuations, and lack automation and accuracy.
By combining business scenarios and user situations, and through dynamic prediction models and execution decision models, attribution analysis and usage prediction modules are used to accurately identify the driving factors of storage space growth, and to carry out target operations through intelligent decision-making, dynamic management of storage space is achieved.
It improves the automation and accuracy of storage space management, avoids resource waste, ensures that critical business operations always have sufficient resource redundancy, reduces the risks of emergency expansion, and enhances system stability and business continuity.
Smart Images

Figure CN120994134B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of space management, and more specifically, to a storage space management method, apparatus, electronic device, and computer program product. Background Technology
[0002] Managing storage space is crucial for ensuring system stability and business continuity. As data volumes grow, insufficient storage space can lead to service interruptions, data loss, or performance degradation, potentially impacting user experience and increasing enterprise operational costs.
[0003] Currently, there are two main technologies for storage space management: one is alarms based on static thresholds, and the other is simple trend prediction. Both of these methods are one-way management logics and cannot analyze the specific reasons for storage space growth, resulting in overall low efficiency and poor management effectiveness. Summary of the Invention
[0004] The purpose of this application is to provide a storage space management method, device, electronic device, and computer program product that predicts the usage of storage space by combining business scenarios and user conditions. After prediction, a dedicated execution decision model performs corresponding target operations based on the prediction results, thereby achieving accurate prediction of storage space and effectively improving the automation level, reliability, and accuracy of storage space management.
[0005] In a first aspect, embodiments of this application provide a storage space management method, which includes: inputting storage space usage information into a dynamic prediction model to obtain predicted storage space usage; wherein the usage information includes historical usage sequences and business characteristics; inputting current usage and predicted usage into an execution decision model to determine a target operation; and managing the storage space according to the target operation.
[0006] In the above implementation process, the storage space management method provided in this application, when predicting storage space usage, considers business characteristics in addition to time-series prediction, making its prediction of storage space more accurate. Furthermore, the storage space management method provided in this application can dynamically manage storage space based on the prediction results; efficient storage management not only avoids resource waste caused by emergency expansion but also mitigates risks in advance through intelligent prediction, ensuring that critical businesses (such as databases and log systems) always have sufficient resource redundancy.
[0007] Optionally, in this embodiment of the application, the dynamic prediction model includes a usage prediction module and an attribution analysis module. The predicted usage includes predicted usage influencing factors and predicted usage. Obtaining the predicted usage of storage space includes: determining predicted usage influencing factors based on storage space usage information through the attribution analysis module; and obtaining predicted usage based on storage space usage information and predicted usage influencing factors through the usage prediction module.
[0008] In the above implementation process, the dynamic prediction model of the storage space management method provided in this application embodiment includes a usage prediction module and an attribution analysis module. The attribution analysis module quantifies the contribution of business characteristics (such as log generation rate and service request volume) to storage space growth through the SHAP algorithm, accurately distinguishing between natural growth and abnormal fluctuations; the usage prediction module, based on the predicted usage influencing factors obtained from the attribution analysis, realizes the consideration of business factors on the basis of baseline prediction, enabling accurate prediction of storage space usage and clarifying the driving factors of the prediction results; it not only solves the passivity of static threshold alarms, but also overcomes the defect of simple trend prediction being insensitive to business scenarios.
[0009] Optionally, in this embodiment of the application, the dynamic prediction model includes: = LSTM +α•MLP ;in, This is a sequence of historical usage data up to time t. This is the predicted usage sequence over time k after time t. To serve the number of requests, α represents the log generation rate, and α represents the dynamic weight.
[0010] Optionally, in this embodiment, the usage prediction module includes a historical usage analysis network and a service feature analysis network; based on storage space usage information and factors influencing predicted usage, the predicted usage is obtained, including: inputting the historical usage sequence into the historical usage analysis network to obtain a time-series feature vector and determining a first usage; inputting service features into the service feature analysis network to obtain a service feature vector; using dynamic weights to weight the service feature vector and determine a second usage; wherein the dynamic weights are related to factors influencing predicted usage; and obtaining the predicted usage determined by the sum of the first and second usages.
[0011] In the above implementation process, the usage prediction module of the storage space management method provided in this application includes a historical usage analysis network and a business feature analysis network. The historical usage analysis network (LSTM) extracts time-series features such as periodicity and trends by analyzing time-series data, and outputs a first usage that reflects the natural growth pattern. The business feature analysis network (MLP) parses real-time business indicators (such as log generation rate and request volume) to generate a business feature vector, and outputs a second usage after dynamic weighting. The two are weighted and fused to ensure that the prediction result retains the stability of long-term trends while dynamically responding to sudden changes in business.
[0012] Optionally, in this embodiment, the determination of dynamic weights includes the following steps: fusing time-series feature vectors and business feature vectors to obtain a fused feature vector; passing the fused feature vector through an attention mechanism to obtain initial weights; and adjusting the initial weights according to the influencing factors of predicted usage to obtain dynamic weights.
[0013] In the above implementation process, the dynamic weighting mechanism of the storage space management method provided in this application embodiment achieves a comprehensive improvement in the performance of the storage space prediction model through multi-stage collaborative optimization. At the feature processing level, the organic integration of temporal features and business features preserves historical patterns while incorporating real-time business impacts; the weight generation stage achieves a sensitive response to business anomalies through an attention mechanism, enabling the model to dynamically adjust its prediction focus. This significantly improves prediction accuracy, especially its ability to judge scenarios with business fluctuations, and clearly presents the impact of business factors on the prediction results.
[0014] Optionally, in this embodiment of the application, the current usage includes the current usage amount and the current file distribution; determining the target operation includes: inputting the current usage amount, the current file distribution and the predicted usage into a preset operation value function, and obtaining the operation value; and determining the target operation based on the operation value.
[0015] In the above implementation process, the storage space management method provided in this application embodiment can intelligently balance the space release demand and business risks by integrating the Bellman equation of immediate benefits and long-term value. The risk cost calculation comprehensively considers the file access popularity and business criticality, effectively avoiding the accidental deletion of critical data, and significantly improving the accuracy and efficiency of automated storage space management under the premise of controllable risks.
[0016] Optionally, in this embodiment of the application, before managing the storage space according to the target operation, the method further includes: conducting a risk assessment of the target operation based on the current access frequency of the storage space and the current business nature.
[0017] Optionally, in this embodiment, the risk assessment is performed according to the following formula: ;in, This represents the maximum access frequency of all files in the current storage space. The target file's recent access frequency is represented by 'a', where 'a' represents the target operation. It characterizes the importance of the target file to system stability and core functions.
[0018] In the above implementation process, the storage space management method provided in this application embodiment also includes risk assessment of the target operation, accurate identification of high-value files (such as core logs accessed frequently), avoidance of accidental deletion of critical data, and minimization of business continuity risk while ensuring storage management efficiency.
[0019] Optionally, in this embodiment of the application, after managing the storage space according to the target operation, the method further includes: monitoring and predicting the actual usage corresponding to the usage, and evaluating the operational benefits of the target operation; and optimizing the dynamic prediction model and the execution decision model based on the actual usage and operational benefits.
[0020] In the above implementation process, the storage space management method provided in this application embodiment sets up a closed-loop optimization mechanism, which continuously optimizes the prediction model and decision-making strategy by continuously feeding back the actual execution effect. The dynamic prediction model automatically adjusts feature weights and time series parameters based on monitoring data, which significantly improves the prediction accuracy under abnormal scenarios; the execution decision model incorporates multi-dimensional business influencing factors, making risk assessment more comprehensive and operation selection more in line with actual business needs.
[0021] Secondly, embodiments of this application provide a storage space management device, which includes: a dynamic prediction module, an execution decision module, and a space management module; the dynamic prediction module is used to input storage space usage information into a dynamic prediction model to obtain the predicted usage of storage space; the execution decision module is used to input the current usage and the predicted usage into the execution decision model to determine the target operation; and the space management module is used to manage the storage space according to the target operation.
[0022] Thirdly, embodiments of this application provide an electronic device, which includes a memory and a processor. The memory stores program instructions, and when the processor reads and runs the program instructions, it executes the steps in any of the implementations of the first aspect described above.
[0023] Fourthly, embodiments of this application also provide a computer-readable storage medium storing computer program instructions, which, when read and executed by a processor, perform the steps in any implementation of the first aspect described above.
[0024] Fifthly, embodiments of this application also provide a computer program product, characterized in that the computer program product includes a computer program / instruction, which is executed by a processor using the steps in any implementation of the first aspect described above. Attached Figure Description
[0025] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0026] Figure 1 A flowchart illustrating the storage space management method provided in this application embodiment; Figure 2 A first flowchart for predicting storage space provided in this application embodiment; Figure 3 A second flowchart for predicting storage space provided in this application embodiment; Figure 4 A flowchart of dynamic weight generation provided for embodiments of this application; Figure 5 A flowchart for determining the target operation provided in the embodiments of this application; Figure 6 A schematic diagram of the storage space management device provided in the embodiments of this application; Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0027] The technical solutions of the embodiments of this application will now be described with reference to the accompanying drawings. For example, the flowcharts and block diagrams in the drawings illustrate the architecture, functions, and operations of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagram may represent a module, program segment, or part of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and combinations of blocks in the block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or action, or can be implemented using a combination of dedicated hardware and computer instructions. In addition, the functional modules in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0028] Efficient storage management is a core foundation for ensuring stable system operation and business continuity. In the digital age of explosive data growth, insufficient storage resources can directly trigger multiple risks; for example, service interruptions can lead to the shutdown of critical business operations, data loss can cause compliance and security crises, and a precipitous drop in system performance can cause a collapse in user experience. These problems not only significantly increase enterprise operation and maintenance costs (such as emergency expansion expenses and fault recovery investment), but may also damage brand reputation and customer trust. Therefore, the management of storage space is extremely important for enterprises.
[0029] Currently, there are two main technologies for storage space management: static threshold-based alerts and simple trend prediction. Static threshold alerts trigger alarms by setting fixed thresholds (e.g., an alarm is triggered when disk usage exceeds 90%), relying entirely on manual intervention and lacking forward-looking judgment of space usage trends. Simple trend prediction, on the other hand, uses historical data (e.g., storage space usage over the past 30 days) and algorithms such as linear regression or moving averages to predict future space occupancy, but fails to analyze growth drivers in conjunction with business characteristics, leading to a disconnect between predictions and actual scenarios. Both solutions employ a one-way management logic, failing to distinguish between natural growth and abnormal fluctuations, and lacking integration with automated cleanup strategies, resulting in overall low management efficiency and poor effectiveness.
[0030] Based on this, this application proposes a storage space management method, apparatus, electronic device, and computer program product. This storage space management method predicts storage space usage based on business scenarios and user conditions. After prediction, a dedicated execution decision model performs corresponding target operations based on the prediction results, such as deleting or compressing some files, thereby achieving storage space management. Using the storage space management method provided in this application enables accurate prediction of storage space usage, effectively improving the automation level, reliability, and accuracy of storage space management.
[0031] Please refer to Figure 1 , Figure 1 This application provides a flowchart of a storage space management method according to an embodiment of the present application; the present application provides a storage space management method that can... Figure 7 The electronic device executes the following steps. The storage space management method provided in this application includes the following steps: Step S100: Input the storage space usage information into the dynamic prediction model to obtain the predicted usage of storage space.
[0032] In step S100 above, storage space usage information (e.g., historical usage sequences and business characteristics) is input into the dynamic prediction model to obtain the predicted usage of storage space.
[0033] Historical usage sequence refers to disk space usage records arranged in chronological order, such as... Business characteristics refer to business metrics that affect storage space in real time, such as the number of service requests. Log generation rate .
[0034] In this application embodiment, the dynamic prediction model refers to a model that can dynamically predict the future usage or trend of storage space based on storage space usage information. For example, the dynamic prediction model can predict growth areas in part and quantify the impact of business operations in part. Therefore, the predicted usage output by the dynamic prediction model provided in this application embodiment takes into account both user usage and the predicted amount of bit business scenarios.
[0035] Step S200: Input the current usage and predicted usage into the execution decision model to determine the target operation.
[0036] In step S200 above, the predicted storage space usage and the current storage space usage (e.g., the current storage space utilization rate and / or the file distribution of the storage space) predicted by the dynamic prediction model are input into the execution decision model, and the target operation is output.
[0037] It should be noted that the execution decision model in this application embodiment obtains the optimal operation for the storage space through the model. That is, based on the current usage of the storage space and the predicted usage of the storage space, the optimal operation for processing the current storage space is given, such as deleting some files, compressing some files, keeping some files, etc.
[0038] Step S300: Manage storage space according to the target operation.
[0039] In step S300 above, the target operation is performed, such as releasing storage space, thereby realizing the management of storage space.
[0040] It should be noted that the storage space in the embodiments of this application can be various data storage media or logical or physical storage areas in a system used to store files, such as: server local disks, distributed storage clusters, cloud storage services, database tablespaces, log storage volumes, virtual disks mounted on virtual machines or containers, etc. It should be understood that the technical solutions of this application are applicable to block storage, file storage, and object storage as long as space capacity management and file lifecycle control are involved.
[0041] pass Figure 1 As can be seen, the storage space management method provided in this application, when predicting storage space usage, considers business characteristics in addition to time-series prediction, making its prediction of storage space more accurate. Furthermore, the storage space management method provided in this application can dynamically manage storage space based on the prediction results; efficient storage management not only avoids resource waste caused by emergency expansion but also mitigates risks in advance through intelligent prediction, ensuring that critical businesses (such as databases and log systems) always have sufficient resource redundancy.
[0042] Please refer to Figure 2 , Figure 2 This document provides a first flowchart for storage space prediction in an embodiment of this application. In an optional embodiment of this application, the dynamic prediction model includes a usage prediction module and an attribution analysis module. The attribution analysis module quantifies the contribution of each feature to the prediction result, identifying the core driving factors for storage space growth. The usage prediction module combines the results of the attribution analysis module to perform time-series prediction of storage space usage. Obtaining the predicted storage space usage in step S100 above can be achieved through the following steps: Step S110: Using the attribution analysis module, determine the factors influencing the predicted usage based on the storage space usage information.
[0043] In step S11 above, the attribution analysis module uses storage space usage information, such as historical disk usage, as a basis. and business characteristics, such as service request volume. Log generation rate Cache size, etc.
[0044] SHAP value for each feature Calculations are performed to reflect its marginal contribution to the predicted value. Specifically, Where F is the set of all feature techniques, such as, S is a feature subset, such as, |f(·)| is the model prediction function.
[0045] Factors influencing predicted usage are generally categorized as follows: natural growth factors, which are dominated by time-series characteristics and reflect baseline growth; and abnormal fluctuation factors, which are sudden increases in business characteristics and reflect potential log surges. In other words, it not only enables accurate prediction of usage but also identifies the driving factors behind the prediction results; for example, 95% of the usage in the next 7 days may be primarily due to a log surge.
[0046] Step S120: Using the usage prediction module, obtain the predicted usage based on storage space usage information and factors influencing predicted usage.
[0047] In step S120 above, the usage prediction module determines the predicted usage based on storage space usage information and factors influencing predicted usage. For example, it can combine attribution analysis results with dynamically weighted business characteristics to output a predicted value for future storage usage.
[0048] pass Figure 2 As can be seen, the dynamic prediction model of the storage space management method provided in this application includes a usage prediction module and an attribution analysis module. The attribution analysis module quantifies the contribution of business characteristics (such as log generation rate and service request volume) to storage space growth through the SHAP algorithm, accurately distinguishing between natural growth and abnormal fluctuations; the usage prediction module, based on the predicted usage influencing factors obtained from the attribution analysis, realizes the consideration of business factors on the basis of baseline prediction, enabling accurate prediction of storage space usage and clarifying the driving factors of the prediction results; it not only solves the passivity of static threshold alarms, but also overcomes the defect of simple trend prediction being insensitive to business scenarios.
[0049] Please refer to the following: Figure 3 , Figure 3 A second flowchart for storage space prediction is provided for embodiments of this application; in an optional embodiment, the usage prediction module includes a historical usage analysis network and a service characteristic analysis network. Step S120 above, based on storage space usage information and factors influencing predicted usage, obtains the predicted usage, which can be achieved through the following steps: Step S121: Input the historical usage sequence into the historical usage analysis network to obtain the time-series feature vector and determine the first usage.
[0050] Step S122: Input the business features into the business feature analysis network to obtain the business feature vector.
[0051] Step S123: Use dynamic weights to weight the business feature vectors and determine the second usage amount.
[0052] Step S124: Obtain the predicted usage amount determined by the sum of the first usage amount and the second usage amount.
[0053] Among them, the dynamic weight is related to the factors affecting the predicted usage.
[0054] In steps S121 to S124 above, the business features are input into the business feature analysis network to obtain the business feature vector, i.e., the first usage. Then, combined with the attribution analysis results, the dynamic weights related to the business features are determined to obtain the second usage. After adjusting the first usage with the second usage, the final predicted usage is obtained.
[0055] For example, in this embodiment of the application, the above-mentioned usage prediction module can be an LSTM-MLP hybrid model, where MLP stands for Multi-Layer Perceptron and LSTM stands for Long Short-Term Memory Network. That is, time-series modeling is performed first to obtain the first usage LSTM. MLP is used to predict natural growth trends; on the other hand, it is used for business adjustments. For MLP The second usage is obtained by weighting; finally, the predicted value is determined by combining the first and second usage, where the second usage is used to adjust the first usage based on business factors. The overall predicted model is as follows: = LSTM +α•MLP Where α represents the business characteristic weight, and different α values are set according to different business situations (considering the influencing factors of the predicted usage calculated above) to achieve intelligent prediction of storage space. This represents the amount of storage space used before time t. This is a usage forecast for time k after time t; for example, a forecast of storage space growth over the next 7 days.
[0056] pass Figure 3As can be seen, the usage prediction module of the storage space management method provided in this application includes a historical usage analysis network and a business feature analysis network. The historical usage analysis network (LSTM) extracts time-series features such as periodicity and trends by analyzing time-series data, and outputs a first usage that reflects the natural growth pattern. The business feature analysis network (MLP) parses real-time business indicators (such as log generation rate and request volume) to generate a business feature vector, and outputs a second usage after dynamic weighting. The two are weighted and fused to ensure that the prediction result retains the stability of long-term trends while dynamically responding to sudden changes in business.
[0057] Please refer to Figure 4 , Figure 4 A flowchart for generating dynamic weights is provided for embodiments of this application; in optional embodiments of this application, the determination of dynamic weights includes the following steps: Step S1: Fuse the time-series feature vector and the business feature vector to obtain the fused feature vector.
[0058] In step S1 above, the temporal feature vector from LSTM and the business feature vector from MLP are concatenated and fused. The resulting fused feature vector retains both the temporal features and the business features.
[0059] Step S2: Obtain initial weights by passing the fused feature vector through an attention mechanism.
[0060] In step S2 above, the fused features are first mapped to scalar space through the learnable parameter matrix W and the bias b using an attention mechanism: Then, the Sigmoid function is used for normalization, compressing the weights to [0,1] to obtain the initial weights. Therefore, under abnormal business characteristics, the MLP vector increases significantly, and the z-value increases. The closer to 1, the more dominant the LSTM vector becomes under stable business conditions. The closer it is to 0.
[0061] Step S3: Adjust the initial weights based on the factors influencing the predicted usage to obtain dynamic weights.
[0062] In step S3 above, the initial weights are modulated using the predicted usage influencing factors. The dynamic weight α is obtained, for example, Where β is the modulation coefficient of the usage influencing factors. Of course, the dynamic weight α is a number between [0,1].
[0063] pass Figure 4As can be seen, the dynamic weighting mechanism of the storage space management method provided in this application embodiment achieves a comprehensive improvement in the performance of the storage space prediction model through multi-stage collaborative optimization. At the feature processing level, the organic integration of temporal features and business features preserves historical patterns while incorporating real-time business impacts; the weight generation stage achieves a sensitive response to business anomalies through an attention mechanism, enabling the model to dynamically adjust its prediction focus. This significantly improves prediction accuracy, especially its ability to judge scenarios with business fluctuations, and clearly presents the impact of business factors on the prediction results.
[0064] Please refer to Figure 5 , Figure 5 This application provides a flowchart for determining the target operation in an embodiment; in an optional embodiment of this application, the current usage includes the current usage amount and the current file distribution; the determination of the target operation in step S200 includes the following steps: Step S210: Input the current usage, current file distribution, and predicted usage into the preset operation value function, and obtain the operation value.
[0065] In step S210 above, the operation value is calculated using a preset operation value function based on the current usage, the current file distribution, and the predicted usage.
[0066] For example, the operational value function ,in, Indicates immediate benefits. Indicates future revenue. s represents system status, such as current usage or current file distribution; A represents candidate operations, and a represents the operation itself, such as delete, compress, or retain. This is the discount factor, typically a number between (0,1). A value approaching 1 indicates an emphasis on long-term returns. A value approaching 0 indicates an emphasis on short-term, immediate gains.
[0067] Step S220: Determine the target operation based on the operation value.
[0068] In step S220 above, after calculating the operation value for all candidate operations, the operation is selected. The highest priority operation is the target operation. For example, in a more urgent scenario, such as when space utilization exceeds 90%, non-core logs are deleted; in a more stable scenario, such as when space utilization is less than 60%, compression or retention operations are performed.
[0069] pass Figure 5As can be seen, the storage space management method provided in this application embodiment can intelligently balance the demand for space release and business risks by integrating the Bellman equation, which combines immediate benefits and long-term value. The risk cost calculation comprehensively considers the popularity of file access and the criticality of business, effectively avoiding the accidental deletion of critical data, and significantly improving the accuracy and efficiency of automated storage space management under the premise of controllable risks.
[0070] In an optional embodiment, before managing the storage space according to the target operation, the method further includes: performing a risk assessment on the target operation based on the current access frequency of the storage space and the current business nature.
[0071] In the above implementation process, the access frequency of the current storage space, such as the number of accesses in the past 30 days, can be obtained through the file system audit log.
[0072] In this embodiment of the application, in addition to calculating the operational value of each operation, a risk assessment is also required before the operation is executed in order to quantify the potential business impact of each operation.
[0073] For example, ;in, =log(number of accesses in the last 7 days + 1), logarithmic compression avoids extreme values and reflects the recent usage frequency of the file (e.g., 100 accesses correspond to a popularity of 2). Service Level Agreement (SLA) × File Relevance: This quantifies file importance using a service dependency graph (e.g., database logs: SLA=1.0, Relevance=0.9, Corresponding Criticality=0.9). For example, use the risk assessment method described above to conduct a risk assessment of the target operation. For example, the target operation is "delete a 10MB log file".
[0074] File A: 50 visits in 7 days (popularity = 1.7), SLA = 0.8, relevance = 0.6, criticality = 0.48. File B: 10 visits in 7 days (popularity = 1.0), SLA = 1.0, relevance = 0.3, criticality = 0.3. Maximum popularity = 2.3.
[0075] Then Risk=( ×0.48)+( (×0.3)≈0.35+0.13=0.48. Assuming the system sets the risk threshold to 0.5, the target operation of "deleting a 10MB log file" does not pose a security risk and can be executed.
[0076] Therefore, the storage space management method provided in this application embodiment also includes risk assessment of target operations, accurate identification of high-value files (such as frequently accessed core logs), avoidance of accidental deletion of critical data, and minimization of business continuity risks while ensuring storage management efficiency.
[0077] In an optional embodiment, after managing the storage space according to the target operation, the method further includes: Monitor and predict actual usage corresponding to usage patterns, and evaluate the operational benefits of target operations; optimize dynamic prediction models and execution decision models based on actual usage patterns and operational benefits.
[0078] After the target operation is executed, the actual storage space usage is continuously monitored and compared with the predicted values. Upon detecting prediction deviations and operational benefits, the dynamic prediction model can be incrementally trained by adding actual usage data to the training set to adjust the temporal weights of the LSTM, and SHAP analysis can be used to calibrate the impact of business characteristics (such as reducing the initial weight α of log generation rate). Simultaneously, the risk assessment mechanism of the execution decision model is optimized by adding a query latency factor and dynamically adjusting the space benefit coefficient, making the strategy more aligned with actual business tolerance.
[0079] Therefore, the storage space management method provided in this application embodiment has a closed-loop optimization mechanism. By continuously feeding back the actual execution effect, it achieves continuous optimization of the prediction model and decision-making strategy. The dynamic prediction model automatically adjusts feature weights and time-series parameters based on monitoring data, significantly improving the prediction accuracy under abnormal scenarios; the execution decision model incorporates multi-dimensional business influencing factors, making risk assessment more comprehensive and operation selection more in line with actual business needs.
[0080] Please refer to Figure 6 , Figure 6 This is a schematic diagram of the modules of a storage space management device provided in an embodiment of this application. The embodiment of this application provides a storage space management device, which includes a dynamic prediction module 110, an execution decision module 120, and a space management module 130.
[0081] The dynamic prediction module 110 is used to input storage space usage information into the dynamic prediction model to obtain the predicted usage of storage space.
[0082] The execution decision module 120 is used to input the current usage and predicted usage into the execution decision model to determine the target operation.
[0083] The space management module 130 is used to manage storage space according to the target operation.
[0084] In an optional embodiment, the dynamic prediction model includes a usage prediction module and an attribution analysis module. In the process of predicting usage, including predicting usage influencing factors and predicting usage, and obtaining the predicted usage of storage space, the dynamic prediction module 110 is specifically used to: determine the predicting usage influencing factors based on the storage space usage information through the attribution analysis module; and obtain the predicted usage based on the storage space usage information and the predicting usage influencing factors through the usage prediction module.
[0085] In an optional embodiment, the usage prediction module includes a historical usage analysis network and a service feature analysis network. During the process of obtaining the predicted usage based on storage space usage information and factors influencing predicted usage, the dynamic prediction module 110 is specifically used to: input the historical usage sequence into the historical usage analysis network to obtain a time-series feature vector and determine a first usage; input service features into the service feature analysis network to obtain a service feature vector; use dynamic weights to weight the service feature vector and determine a second usage; wherein the dynamic weights are related to factors influencing predicted usage; and obtain the predicted usage determined by the sum of the first and second usages.
[0086] In an optional embodiment, the determination of dynamic weights includes the following steps: fusing time-series feature vectors and business feature vectors to obtain a fused feature vector; passing the fused feature vector through an attention mechanism to obtain initial weights; and adjusting the initial weights according to the factors influencing predicted usage to obtain dynamic weights.
[0087] In an optional embodiment, the dynamic prediction model includes: = LSTM +α•MLP ;in, This is a sequence of historical usage data up to time t. This is the predicted usage sequence over time k after time t. To serve the number of requests, α represents the log generation rate, and α represents the dynamic weight.
[0088] In an optional embodiment, the current usage includes the current usage amount and the current file distribution; in the process of determining the target operation, the execution decision module 120 is specifically used to: input the current usage amount, the current file distribution and the predicted usage into a preset operation value function, and obtain the operation value; and determine the target operation based on the operation value.
[0089] In an optional embodiment, the storage space management device is further configured to perform a risk assessment of the target operation based on the current access frequency of the storage space and the current business nature before managing the storage space according to the target operation.
[0090] In an optional embodiment, the risk assessment is performed according to the following formula: ;in, This represents the maximum access frequency of all files in the current storage space. The target file's recent access frequency is represented by 'a', where 'a' represents the target operation. It characterizes the importance of the target file to system stability and core functions.
[0091] In an optional embodiment, the storage space management device is further configured to monitor and predict the actual usage corresponding to the usage after managing the storage space according to the target operation, and evaluate the operational benefits of the target operation; and optimize the dynamic prediction model and the execution decision model based on the actual usage and operational benefits.
[0092] Please see Figure 7 , Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. An electronic device 200 provided in this application includes: a processor 201 and a memory 202. The memory 202 stores machine-readable instructions executable by the processor 201. When the machine-readable instructions are executed by the processor 201, the method described above is performed.
[0093] Based on the same inventive concept, this application also provides a computer program product, which includes a computer program / instruction that, when executed by a processor, implements the steps of the storage space management method described in the first aspect above.
[0094] Based on the same inventive concept, embodiments of this application also provide a computer-readable storage medium storing computer program instructions, which, when read and executed by a processor, perform the steps in any implementation of the first aspect described above.
[0095] The computer-readable storage medium can be any medium capable of storing program code, such as Random Access Memory (RAM), Read Only Memory (ROM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM).
[0096] In this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, without necessarily requiring or implying any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes said element.
[0097] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.
Claims
1. A storage space management method, characterized in that, The method includes: The storage space usage information is input into a dynamic prediction model to obtain the predicted usage of the storage space; wherein, the usage information includes historical usage sequences and business characteristics; Input the current usage and the predicted usage into the execution decision model to determine the target operation; Manage the storage space according to the target operation; The dynamic prediction model includes a usage prediction module and an attribution analysis module. The predicted usage includes factors influencing predicted usage and predicted usage. Obtaining the predicted usage of the storage space includes: determining factors influencing predicted usage based on the storage space usage information through the attribution analysis module; and obtaining the predicted usage based on the storage space usage information and factors influencing predicted usage through the usage prediction module. The usage prediction module includes a historical usage analysis network and a service feature analysis network. The step of obtaining the predicted usage based on the storage space usage information and factors influencing predicted usage includes: inputting the historical usage sequence into the historical usage analysis network to obtain a time-series feature vector and determining a first usage; inputting the service features into the service feature analysis network to obtain a service feature vector; using dynamic weights to weight the service feature vector and determine a second usage; wherein the dynamic weights are related to the factors influencing predicted usage; and obtaining the predicted usage determined by the sum of the first and second usages. The determination of the dynamic weights includes the following steps: fusing the time-series feature vector and the business feature vector to obtain a fused feature vector; applying an attention mechanism to the fused feature vector to obtain initial weights; and modulating the initial weights according to the predicted usage influencing factors to obtain the dynamic weights.
2. The method according to claim 1, characterized in that, in, The current usage status includes current usage volume and current file distribution; the target determination operation includes: Input the current usage, current file distribution, and predicted usage into a preset operation value function to obtain the operation value; Based on the operational value, the target operation is determined.
3. The method according to claim 1, characterized in that, Prior to managing the storage space according to the target operation, the method further includes: A risk assessment is conducted on the target operation based on the current access frequency of the storage space and the nature of the current business.
4. The method according to claim 1, characterized in that, After managing the storage space according to the target operation, the method further includes: Monitor the actual usage corresponding to the predicted usage, and evaluate the operational benefits of the target operation; Based on the actual usage and operational benefits, optimize the dynamic prediction model and the execution decision model.
5. A storage space management device, characterized in that, The storage space management device includes: a dynamic prediction module, an execution decision module, and a space management module; The dynamic prediction module is used to input storage space usage information into the dynamic prediction model to obtain the predicted usage of the storage space; wherein, the usage information includes historical usage sequences and business characteristics; The execution decision module is used to input the current usage and the predicted usage into the execution decision model to determine the target operation; The space management module is used to manage the storage space according to the target operation; The dynamic prediction model includes a usage prediction module and an attribution analysis module. In the process of predicting usage, including predicting the influencing factors of usage and predicting usage, and obtaining the predicted usage of the storage space, the dynamic prediction module is specifically used to: determine the influencing factors of usage based on the storage space usage information through the attribution analysis module; and obtain the predicted usage based on the storage space usage information and the influencing factors of usage through the usage prediction module. The usage prediction module includes a historical usage analysis network and a service feature analysis network. In the process of obtaining the predicted usage based on the storage space usage information and factors influencing predicted usage, the dynamic prediction module is specifically used to: input the historical usage sequence into the historical usage analysis network to obtain a time-series feature vector and determine a first usage; input the service features into the service feature analysis network to obtain a service feature vector; use dynamic weights to weight the service feature vector and determine a second usage; wherein the dynamic weights are related to the factors influencing predicted usage; and obtain the predicted usage determined by the sum of the first and second usages. The determination of the dynamic weights includes the following steps: fusing the time-series feature vector and the business feature vector to obtain a fused feature vector; applying an attention mechanism to the fused feature vector to obtain initial weights; and modulating the initial weights according to the predicted usage influencing factors to obtain the dynamic weights.
6. An electronic device, characterized in that, The electronic device includes a memory and a processor. The memory stores program instructions, and when the processor executes the program instructions, it performs the steps of the method according to any one of claims 1-4.
7. A computer program product, characterized in that, The computer program product includes a computer program / instruction that, when executed by a processor, implements the steps of the method according to any one of claims 1-4.
Citation Information
Patent Citations
Data storage prediction method, data storage subsystem and intelligent computing platform
CN117972367A
Method and device for disk space management, equipment and storage medium
CN119396346A
Multi-dimensional data statistics intelligent analysis and prediction system and method
CN120218985A
