Storage space adjustment method and device, computer equipment and readable storage medium

By dynamically adjusting the metadata storage space and matching the storage system according to the business data volume and scene information, the problem of insufficient flexibility caused by the fixed size of the metadata storage space in the existing technology is solved, and the efficiency and reliability of the storage system are improved.

CN118535097APending Publication Date: 2024-08-23DAWNING INFORMATION IND (BEIJING) CO LTD +2
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410699374.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

In the existing technology, the metadata storage space is allocated a fixed size, resulting in insufficient flexibility and inability to effectively match the amount of business data in the storage system, affecting the rationality and efficiency of the storage space.

Method used

By obtaining the business data volume information and current business scenarios of the storage system, the metadata storage space is dynamically adjusted, and the space adjustment method is determined based on the data volume and capacity information to ensure that the metadata storage space matches the business data volume and improve the flexibility of allocation.

Benefits of technology

It achieves the rationality and flexibility of metadata storage space, avoids data writing exceptions, and improves the efficiency and reliability of the storage system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535097A
    Figure CN118535097A
Patent Text Reader

Abstract

The invention relates to a storage space adjustment method and device, computer equipment and a readable storage medium. The method comprises the following steps: under the condition that business data needs to be written into a storage system, acquiring business data volume information of the storage system, and determining a space adjustment mode according to the business data volume information of the storage system, a current business scene and space capacity information of a metadata storage space, the metadata storage space is used for storing deduplication metadata of the business data written into the storage system, and the metadata storage space is adjusted in a space adjustment mode. By adopting the method, the distribution flexibility of the metadata storage space can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a storage space adjustment method, device, computer equipment and readable storage medium. Background Art

[0002] With the continuous development of the computer field, the amount of data written by each storage system has also increased. In order to save the storage space of the storage system, when it is determined that the data to be written is duplicated with the stored data, deduplication metadata corresponding to the duplicate data can be generated, and the deduplication metadata can be stored in the metadata storage space separately allocated by the storage system for the deduplication metadata.

[0003] In the prior art, a metadata storage space of a fixed size is usually set according to the total capacity of the storage system and the amount of stored data. However, using the prior art to allocate a metadata storage space of a fixed size will reduce the flexibility of allocating the metadata storage space. Summary of the invention

[0004] Based on this, it is necessary to provide a storage space adjustment method, apparatus, computer device and readable storage medium that can improve the flexibility of metadata storage space allocation in response to the above technical problems.

[0005] In a first aspect, the present application provides a storage space adjustment method, comprising:

[0006] When business data needs to be written to the storage system, obtain business data volume information of the storage system;

[0007] Determine the space adjustment method based on the business data volume information and current business scenario of the storage system, as well as the space capacity information of the metadata storage space; wherein the metadata storage space is used to store the deduplication metadata of the business data written into the storage system;

[0008] Use space adjustment to adjust metadata storage space.

[0009] In the embodiment of the present application, compared with directly setting a fixed-size metadata storage space in the related art, the above method is adopted to dynamically adjust the metadata storage space based on the current business scenario, business data volume information and space capacity information, so that the allocation of metadata storage space can match the business data volume in the storage system, thereby ensuring the rationality and flexibility of metadata storage space allocation.

[0010] In one embodiment, the business data volume information includes the current data volume of business data stored in the storage system and the maximum data volume of business data allowed to be stored in the storage system; accordingly, according to the business data volume information of the storage system and the current business scenario, and the space capacity information of the metadata storage space, determining the space adjustment method includes:

[0011] When the current data volume is greater than the maximum data volume, the space adjustment method is determined to be reducing the storage space; when the current data volume is less than or equal to the maximum data volume, the space adjustment method is determined based on the current business scenario of the storage system and the space capacity information of the metadata storage space.

[0012] In an embodiment of the present application, by comparing the current data volume and the maximum data volume, it is determined whether the storage space for business data is sufficient, and then the space adjustment method for the metadata storage space is determined based on the situation of the business data storage space, thereby ensuring the rationality of the space adjustment method.

[0013] In one embodiment, the space capacity information includes the current total capacity and the maximum total capacity of the metadata storage space; accordingly, according to the current business scenario of the storage system and the space capacity information of the metadata storage space, determining the space adjustment method includes:

[0014] When the current total capacity is equal to the maximum total capacity, the space adjustment method is determined to maintain the original storage space; when the current total capacity is less than the maximum total capacity, the space adjustment method is determined according to the current business scenario of the storage system.

[0015] In an embodiment of the present application, by comparing the current total capacity and the maximum total capacity, it is determined whether the space capacity allocated for the metadata storage space has reached the limit, and then the space adjustment method of the metadata storage space is determined, which can ensure the rationality of the space adjustment method.

[0016] In one embodiment, determining a space adjustment method according to a current business scenario of a storage system includes:

[0017] In the case where the current business scenario is an abnormal write scenario, it is determined that the space adjustment method is to increase the storage space; wherein the abnormal write scenario includes a failover scenario and an overwrite write scenario.

[0018] In an embodiment of the present application, when the current business scenario is an abnormal write scenario, based on the data write characteristics corresponding to the abnormal write scenario, it is determined that the space adjustment method is to increase the storage space, which can ensure the rationality of the space adjustment method.

[0019] In one embodiment, the business data volume information also includes a minimum data volume of business data that the storage system is allowed to store; accordingly, according to the current business scenario of the storage system, determining the space adjustment method includes:

[0020] When the current business scenario is a normal write scenario, the space adjustment method is determined based on the size relationship between the current data volume and the minimum data volume.

[0021] In this embodiment, by comparing the current data amount with the minimum data amount, it is determined whether the remaining space in the business data storage space is sufficient, and then the space adjustment method is determined, which can ensure the rationality of the space adjustment method.

[0022] In one embodiment, determining the space adjustment method according to the size relationship between the current data amount and the minimum data amount includes:

[0023] When the current data amount is less than the minimum data amount, the space adjustment method is determined to be to increase the storage space; when the current data amount is greater than or equal to the minimum data amount, the space adjustment method is determined to be to maintain the original storage space.

[0024] In this embodiment, the space adjustment method of the metadata storage space when the current data amount and the minimum data amount are in different size relationships is specifically analyzed, which can ensure the rationality of the space adjustment method.

[0025] In one embodiment, the method further comprises:

[0026] Based on the scenario recognition model, the current business scenario of the storage system is determined according to the current performance data of the storage system.

[0027] In an embodiment of the present application, a scene recognition model is introduced, and the current business scene of the storage system is determined by inputting current performance data into the scene recognition model, thereby ensuring the accuracy of the current business scene recognition.

[0028] In a second aspect, the present application further provides a storage space adjustment device, including:

[0029] An information acquisition module is used to acquire business data volume information of the storage system when business data needs to be written to the storage system;

[0030] A method determination module is used to determine the space adjustment method according to the business data volume information and current business scenario of the storage system, and the space capacity information of the metadata storage space; wherein the metadata storage space is used to store the deduplication metadata of the business data written into the storage system;

[0031] The space adjustment module is used to adjust the metadata storage space by adopting a space adjustment method.

[0032] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0033] When business data needs to be written to the storage system, obtain business data volume information of the storage system;

[0034] Determine the space adjustment method based on the business data volume information and current business scenario of the storage system, as well as the space capacity information of the metadata storage space; wherein the metadata storage space is used to store the deduplication metadata of the business data written into the storage system;

[0035] Use space adjustment to adjust metadata storage space.

[0036] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0037] When business data needs to be written to the storage system, obtain business data volume information of the storage system;

[0038] Determine the space adjustment method based on the business data volume information and current business scenario of the storage system, as well as the space capacity information of the metadata storage space; wherein the metadata storage space is used to store the deduplication metadata of the business data written into the storage system;

[0039] Use space adjustment to adjust metadata storage space.

[0040] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0041] When business data needs to be written to the storage system, obtain business data volume information of the storage system;

[0042] Determine the space adjustment method based on the business data volume information and current business scenario of the storage system, as well as the space capacity information of the metadata storage space; wherein the metadata storage space is used to store the deduplication metadata of the business data written into the storage system;

[0043] Use space adjustment to adjust metadata storage space.

[0044] The above storage space adjustment method, device, computer equipment and readable storage medium introduce the current business scenario, obtain the business data volume information of the storage system when it is necessary to write business data to the storage system, and then determine the space adjustment method according to the business data volume information of the storage system and the current business scenario, as well as the space capacity information of the metadata storage space, and use the space adjustment method to adjust the metadata storage space. Compared with directly setting a fixed-size metadata storage space in the related art, the above method is used to dynamically adjust the metadata storage space based on the current business scenario, business data volume information and space capacity information, so that the allocation of metadata storage space can match the business data volume in the storage system, thereby ensuring the rationality and flexibility of metadata storage space allocation. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0046] Figure 1 is a flowchart of a storage space adjustment method in one embodiment;

[0047] Figure 2 A schematic diagram of a flow chart for determining a space adjustment method in an embodiment;

[0048] Figure 3 is a flowchart of a storage space adjustment method in another embodiment;

[0049] Figure 4 is a structural block diagram of a storage space adjustment device in one embodiment;

[0050] Figure 5 is a structural block diagram of a storage space adjustment device in another embodiment;

[0051] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0053] In the prior art, a metadata storage space of a fixed size is usually set according to the total capacity of the storage system and the amount of stored data. However, using the prior art to allocate a metadata storage space of a fixed size will reduce the flexibility of allocating the metadata storage space.

[0054] Based on this, in an exemplary embodiment, a storage space adjustment method is provided, and the method is applied to an adjustment device in a storage system as an example for explanation. Figure 1 As shown, the specific steps include:

[0055] S101, when it is necessary to write business data to a storage system, obtain business data volume information of the storage system.

[0056] Among them, the storage system refers to a system that can store data; business data refers to the data generated by processing a certain business; business data volume information refers to information related to the data volume of business data, such as the current data volume and other information.

[0057] Optionally, when it is detected that there is a need to write business data to the storage system, in order to flexibly adjust the metadata storage space allocated for the deduplication metadata in the storage system, the business data volume information of the storage system can be extracted from the operation-related parameters of the storage system. The deduplication metadata includes information such as fingerprints of the business data, LBA (Logical block address, logical block address) and PBA (Physics Block Address, physical block address).

[0058] It is understandable that in order to reduce the number of times the metadata storage space needs to be adjusted, when it is necessary to write business data to the storage system, it is possible to first determine whether the business data stored in the storage system and the business data to be written are duplicated. If so, the business data volume information of the storage system is obtained; if not, the metadata storage space is not adjusted during the data writing process.

[0059] S102, determining a space adjustment method according to business data volume information and current business scenarios of the storage system, and space capacity information of the metadata storage space.

[0060] Among them, the business scenario refers to the scenario of processing business data, such as overwrite write scenario, etc.; the current business scenario refers to the business scenario of the storage system in the current period; the metadata storage space is used to store the deduplication metadata of the business data written to the storage system; the space capacity information refers to the information related to the space capacity of the metadata storage space; the space adjustment method refers to the method of adjusting the space capacity of the metadata storage space.

[0061] Optionally, the business data volume information and current business scenario of the storage system, as well as the space capacity information of the metadata storage space, can be simultaneously input into a trained first adjustment model, and the first adjustment model outputs a space adjustment method based on the business data volume information, current business scenario, space capacity information and model parameters.

[0062] S103, using a space adjustment method to adjust the metadata storage space.

[0063] Optionally, after the space adjustment method is determined, the capacity of the metadata storage space may be adjusted using the adjustment parameters and adjustment types in the space adjustment method.

[0064] In the above storage space adjustment method, the current business scenario is introduced, and the business data volume information of the storage system is obtained when business data needs to be written to the storage system, and then the space adjustment method is determined according to the business data volume information of the storage system and the current business scenario, as well as the space capacity information of the metadata storage space, and the metadata storage space is adjusted using the space adjustment method. Compared with directly setting a fixed-size metadata storage space in the related art, the above method dynamically adjusts the metadata storage space based on the current business scenario, business data volume information, and space capacity information, so that the allocation of metadata storage space can match the business data volume in the storage system, thereby ensuring the rationality and flexibility of metadata storage space allocation.

[0065] In actual applications, there may be problems such as data writing exceptions caused by insufficient business data storage space. Based on this, on the basis of the above embodiment, the business data volume information includes the current data volume of business data stored in the storage system and the maximum data volume of business data allowed to be stored in the storage system; further, in this embodiment, an optional method for determining the space adjustment method is provided, such as Figure 2 As shown, the specific steps include:

[0066] S201, extracting the current data volume and the maximum data volume from the business data volume information.

[0067] The current data volume refers to the amount of business data stored at the current moment; the maximum data volume is a threshold used to measure whether the amount of data stored in the storage system is too much. It is understandable that the maximum amount of business data allowed to be stored in the storage system can be pre-set based on the total capacity of the storage system.

[0068] Optionally, after obtaining the business data volume information, the current data volume and the maximum data volume may be extracted from the business data volume information according to the data identification information.

[0069] S202, determine whether the current data volume is greater than the maximum data volume, if so, execute S203; if not, execute S204.

[0070] S203: Determine that the space adjustment method is to reduce the storage space.

[0071] Optionally, if the current data volume is greater than the maximum data volume, it proves that the storage system has insufficient space to store business data. Since the storage space of the storage system includes business data storage space and metadata storage space, the business data storage space can be expanded by reducing the metadata storage space. At this time, it can be determined that the space adjustment method is to reduce the storage space.

[0072] S204: Determine a space adjustment method according to the current business scenario of the storage system and the space capacity information of the metadata storage space.

[0073] Optionally, if the current data volume is less than or equal to the maximum data volume, it proves that the storage system has sufficient space to store business data and there is no need to expand the business data storage space by reducing the metadata storage space. At this time, the current business scenario of the storage system and the space capacity information of the metadata storage space can be input into the trained second adjustment model, and the second adjustment model outputs the space adjustment method based on the current business scenario, space capacity information and model parameters.

[0074] In an embodiment of the present application, by comparing the current data volume and the maximum data volume, it is determined whether the storage space for business data is sufficient, and then the space adjustment method for the metadata storage space is determined based on the situation of the business data storage space, thereby ensuring the rationality of the space adjustment method.

[0075] In actual applications, there may be a problem that the metadata storage space is too large, resulting in the compression of the business data storage space. Based on this, on the basis of the above embodiment, the space capacity information includes the current total capacity and the maximum total capacity of the metadata storage space; further, in this embodiment, another optional method for determining the space adjustment method is provided, specifically, when the current total capacity is equal to the maximum total capacity, the space adjustment method is determined to maintain the original storage space; when the current total capacity is less than the maximum total capacity, the space adjustment method is determined according to the current business scenario of the storage system.

[0076] The current total capacity refers to the total capacity of the metadata storage space at the current moment; the maximum total capacity refers to the maximum capacity that can be allocated to the metadata storage space. It is understandable that the maximum total capacity of the metadata storage space can be pre-set based on the total capacity of the storage system.

[0077] Optionally, the current total capacity and the maximum total capacity can be compared. If the current total capacity is equal to the maximum total capacity, it proves that the space capacity allocated for the metadata storage space has reached the limit. At this time, the space capacity of the metadata storage space can be maintained. Therefore, the space adjustment method is determined to maintain the original storage space.

[0078] If the current total capacity is less than the maximum total capacity, it proves that the space capacity allocated for the metadata storage space has not reached the limit. At this time, the space adjustment method can be determined based on the corresponding data writing characteristics of the current business scenario of the storage system.

[0079] In an embodiment of the present application, by comparing the current total capacity and the maximum total capacity, it is determined whether the space capacity allocated for the metadata storage space has reached the limit, and then the space adjustment method of the metadata storage space is determined, which can ensure the rationality of the space adjustment method.

[0080] In order to better determine the space adjustment method of the metadata storage space in combination with the current business scenario, based on the above embodiment, in this embodiment, another optional method of determining the space adjustment method is provided. Specifically, when the current business scenario is an abnormal write scenario, the space adjustment method is determined to be to increase the storage space.

[0081] Among them, the abnormal write scenario refers to the write scenario under abnormal circumstances. Furthermore, the abnormal write scenario includes a failover scenario and an overwrite write scenario; the failover scenario refers to the scenario where business data in the storage system needs to be migrated; the overwrite write scenario refers to the scenario where high-frequency overwrite write operations are performed.

[0082] It is understandable that when the current business scenario is a failover scenario, the space capacity of the metadata storage space needs to be expanded to cache more deduplication metadata. When the migration is completed, the storage system stores more metadata that can be used for deduplication, which can increase the probability of duplicate fingerprints, thereby improving the reduction rate of business data and the efficiency of deduplication. Therefore, when the current business scenario is a failover scenario, it is determined that the space adjustment method is to increase the storage space.

[0083] When the current business scenario is an overwrite write scenario, the storage system always writes new business data to the data location of the stored business data. At this time, the storage system can store more data and cache more metadata. This means that the metadata storage space can be expanded, which can improve the query speed on the one hand and increase the chance of data deduplication on the other hand. Therefore, when the current business scenario is an overwrite write scenario, it is determined that the space adjustment method is to increase the storage space.

[0084] In an embodiment of the present application, when the current business scenario is an abnormal write scenario, based on the data write characteristics corresponding to the abnormal write scenario, it is determined that the space adjustment method is to increase the storage space, which can ensure the rationality of the space adjustment method.

[0085] In order to better determine the space adjustment method of the metadata storage space in combination with the current business scenario, based on the above embodiment, in this embodiment, the business data volume information also includes the minimum data volume allowed by the storage system to store business data; further, another optional method for determining the space adjustment method is provided, specifically, when the current business scenario is a normal write scenario, the space adjustment method is determined according to the size relationship between the current data volume and the minimum data volume.

[0086] The normal write scenario refers to a business scenario under normal load; the minimum data volume is a threshold used to measure whether the amount of data stored in the storage system is too small. It is understandable that the minimum amount of business data allowed to be stored in the storage system can be pre-set based on the total capacity of the storage system.

[0087] Optionally, when the current business scenario is a normal write scenario, it is possible to determine whether the remaining space in the business data storage space is sufficient based on the size relationship between the current data volume and the minimum data volume, and then determine the space adjustment method.

[0088] Exemplarily, when the current data amount is less than the minimum data amount, the space adjustment method is determined to be to increase the storage space; when the current data amount is greater than or equal to the minimum data amount, the space adjustment method is determined to be to maintain the original storage space.

[0089] Optionally, if the current data volume is less than the minimum data volume, it proves that the remaining space in the business data storage space is sufficient. At this time, the business data storage space can be reduced to expand the metadata storage space. Therefore, the space adjustment method is determined to increase the storage space.

[0090] Optionally, if the current data volume is greater than or equal to the minimum data volume, it proves that the remaining space in the business data storage space is insufficient. At this time, the business data storage space cannot be reduced. Therefore, the space adjustment method is determined to maintain the original storage space.

[0091] In this embodiment, by comparing the current data amount with the minimum data amount, it is determined whether the remaining space in the business data storage space is sufficient, and then the space adjustment method is determined, which can ensure the rationality of the space adjustment method.

[0092] In order to ensure the accuracy of the current business scenario identification, based on the above embodiments, in this embodiment, an optional method for determining the current business scenario is provided, specifically, based on the scene recognition model, the current business scenario of the storage system is determined according to the current performance data of the storage system.

[0093] The scenario recognition model refers to a model that has been trained to identify the business scenario of the storage system at the current moment. The current performance data refers to the performance data of the storage system at the current moment. The performance data may include but is not limited to disk utilization, average IOPS (Input / Output Operation Per Second, the number of read and write operations per second), read and write latency, etc.

[0094] Optionally, in order to ensure the accuracy of the scene recognition model, preprocessed sample performance data may be used in advance; then, for each sample performance data, the business scenario corresponding to the sample performance data is marked to obtain a sample performance data set.

[0095] Furthermore, the labeled sample performance data set can be divided into a training data set, a validation data set, and a test data set to train the initial recognition model and obtain a scene recognition model. The training data set is used to train the initial recognition model, which can be a neural network, support vector machine, decision tree, random forest, etc. The validation data set is used to optimize and verify the accuracy of the model; the test data is used to test the performance of the trained model. Common models include

[0096] For example, 70% of the sample performance data set can be used to train the model, 15% of the sample performance data set can be used to verify the model, 5% of the sample performance data set can be used to adjust the parameters, and the last 10% of the sample performance data set can be used to test the performance of the model.

[0097] Optionally, after obtaining the scene recognition model, the scene recognition model can be deployed to the storage system; accordingly, when determining the current business scenario, the current performance data of the storage system can be input into the scene recognition model, and the scene recognition model directly outputs the current business scenario of the storage system based on the current performance data and model parameters.

[0098] In an embodiment of the present application, a scene recognition model is introduced, and the current business scene of the storage system is determined by inputting current performance data into the scene recognition model, thereby ensuring the accuracy of the current business scene recognition.

[0099] Figure 3 FIG. 2 is a flow chart of a storage space adjustment method in another embodiment. Based on the above embodiment, this embodiment provides an optional example of a storage space adjustment method. Figure 3The specific implementation process is as follows:

[0100] S301, when it is necessary to write business data to the storage system, obtain the current amount of business data stored in the storage system, the maximum and minimum amounts of business data allowed to be stored in the storage system, and the current and maximum total capacities of the metadata storage space.

[0101] The metadata storage space is used to store deduplication metadata of business data written into the storage system.

[0102] S302, determine whether the current data volume is greater than the maximum data volume, if so, execute S303; if not, execute S304.

[0103] S303, reducing the space capacity of the metadata storage space.

[0104] S304, determine whether the current total capacity is equal to the maximum total capacity, if so, execute S309; ​​if not, execute S305.

[0105] S305 , based on the scenario recognition model and according to the current performance data of the storage system, determine the current business scenario of the storage system.

[0106] S306, determine whether the current business scenario is an abnormal write scenario, if so, execute S308; if not, execute S307.

[0107] Among them, abnormal writing scenarios include failover scenarios and overwrite writing scenarios.

[0108] S307, determine whether the current data volume is less than the minimum data volume, if so, execute S308; if not, execute S309.

[0109] S308, increasing the space capacity of the metadata storage space.

[0110] S309: Keep the space capacity of the metadata storage space unchanged.

[0111] The specific process of the above S301-S309 can refer to the description of the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0112] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0113] Based on the same inventive concept, the embodiment of the present application also provides a storage space adjustment device for implementing the storage space adjustment method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more storage space adjustment device embodiments provided below can refer to the limitations of the storage space adjustment method above, and will not be repeated here.

[0114] In an exemplary embodiment, Figure 4 As shown, a storage space adjustment device 1 is provided, comprising: an information acquisition module 10, a method determination module 20 and a method determination module 20, wherein:

[0115] The information acquisition module 10 is used to acquire the business data volume information of the storage system when it is necessary to write business data to the storage system;

[0116] The mode determination module 20 is used to determine the space adjustment mode according to the business data volume information and the current business scenario of the storage system, and the space capacity information of the metadata storage space; wherein the metadata storage space is used to store the deduplication metadata of the business data written into the storage system;

[0117] The space adjustment module 30 is used to adjust the metadata storage space by adopting a space adjustment method.

[0118] In an exemplary embodiment, the business data volume information includes the current volume of business data stored in the storage system and the maximum volume of business data allowed to be stored in the storage system; accordingly, Figure 5 As shown, the mode determination module 20 includes:

[0119] A first determining unit 21 is used to determine that the space adjustment method is to reduce the storage space when the current data amount is greater than the maximum data amount;

[0120] The second determining unit 22 is used to determine the space adjustment method according to the current business scenario of the storage system and the space capacity information of the metadata storage space when the current data volume is less than or equal to the maximum data volume.

[0121] In an exemplary embodiment, the space capacity information includes the current total capacity and the maximum total capacity of the metadata storage space; accordingly, the second determining unit 22 includes:

[0122] The first subunit is used to determine that the space adjustment method is to maintain the original storage space when the current total capacity is equal to the maximum total capacity;

[0123] The second subunit is used to determine a space adjustment method according to a current business scenario of the storage system when the current total capacity is less than the maximum total capacity.

[0124] In an exemplary embodiment, the second subunit is specifically configured to:

[0125] In the case where the current business scenario is an abnormal write scenario, it is determined that the space adjustment method is to increase the storage space; wherein the abnormal write scenario includes a failover scenario and an overwrite write scenario.

[0126] In an exemplary embodiment, the service data volume information further includes the minimum data volume of the service data that the storage system is allowed to store; accordingly, the second subunit is further used to:

[0127] When the current business scenario is a normal write scenario, the space adjustment method is determined based on the size relationship between the current data volume and the minimum data volume.

[0128] In an exemplary embodiment, the second subunit is further configured to:

[0129] When the current data amount is less than the minimum data amount, the space adjustment method is determined to be to increase the storage space; when the current data amount is greater than or equal to the minimum data amount, the space adjustment method is determined to be to maintain the original storage space.

[0130] In an exemplary embodiment, the storage space adjustment device further includes a scene determination module, wherein the scene determination module is specifically configured to:

[0131] Based on the scenario recognition model, the current business scenario of the storage system is determined according to the current performance data of the storage system.

[0132] Each module in the storage space adjustment device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0133] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 6 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store business data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a storage space adjustment method is implemented.

[0134] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0135] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0136] When business data needs to be written to the storage system, obtain business data volume information of the storage system;

[0137] Determine the space adjustment method based on the business data volume information and current business scenario of the storage system, as well as the space capacity information of the metadata storage space; wherein the metadata storage space is used to store the deduplication metadata of the business data written into the storage system;

[0138] Use space adjustment to adjust metadata storage space.

[0139] In one embodiment, the service data volume information includes the current volume of service data stored in the storage system and the maximum volume of service data allowed to be stored in the storage system. When the processor executes the computer program, the following steps are also implemented:

[0140] When the current data volume is greater than the maximum data volume, the space adjustment method is determined to be reducing the storage space; when the current data volume is less than or equal to the maximum data volume, the space adjustment method is determined based on the current business scenario of the storage system and the space capacity information of the metadata storage space.

[0141] In one embodiment, the space capacity information includes the current total capacity and the maximum total capacity of the metadata storage space, and the processor further implements the following steps when executing the computer program:

[0142] When the current total capacity is equal to the maximum total capacity, the space adjustment method is determined to maintain the original storage space; when the current total capacity is less than the maximum total capacity, the space adjustment method is determined according to the current business scenario of the storage system.

[0143] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0144] In the case where the current business scenario is an abnormal write scenario, it is determined that the space adjustment method is to increase the storage space; wherein the abnormal write scenario includes a failover scenario and an overwrite write scenario.

[0145] In one embodiment, the service data volume information also includes the minimum data volume of the service data that the storage system is allowed to store, and the processor further implements the following steps when executing the computer program:

[0146] When the current business scenario is a normal write scenario, the space adjustment method is determined based on the size relationship between the current data volume and the minimum data volume.

[0147] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0148] When the current data amount is less than the minimum data amount, the space adjustment method is determined to be to increase the storage space; when the current data amount is greater than or equal to the minimum data amount, the space adjustment method is determined to be to maintain the original storage space.

[0149] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0150] Based on the scenario recognition model, the current business scenario of the storage system is determined according to the current performance data of the storage system.

[0151] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0152] When business data needs to be written to the storage system, obtain business data volume information of the storage system;

[0153] Determine the space adjustment method based on the business data volume information and current business scenario of the storage system, as well as the space capacity information of the metadata storage space; wherein the metadata storage space is used to store the deduplication metadata of the business data written into the storage system;

[0154] Use space adjustment to adjust metadata storage space.

[0155] In one embodiment, the service data volume information includes the current volume of service data stored in the storage system and the maximum volume of service data allowed to be stored in the storage system. When the computer program is executed by the processor, the following steps are also implemented:

[0156] When the current data volume is greater than the maximum data volume, the space adjustment method is determined to be reducing the storage space; when the current data volume is less than or equal to the maximum data volume, the space adjustment method is determined based on the current business scenario of the storage system and the space capacity information of the metadata storage space.

[0157] In one embodiment, the space capacity information includes the current total capacity and the maximum total capacity of the metadata storage space, and when the computer program is executed by the processor, the following steps are also implemented:

[0158] When the current total capacity is equal to the maximum total capacity, the space adjustment method is determined to maintain the original storage space; when the current total capacity is less than the maximum total capacity, the space adjustment method is determined according to the current business scenario of the storage system.

[0159] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0160] In the case where the current business scenario is an abnormal write scenario, it is determined that the space adjustment method is to increase the storage space; wherein the abnormal write scenario includes a failover scenario and an overwrite write scenario.

[0161] In one embodiment, the service data volume information also includes the minimum data volume of the service data that the storage system is allowed to store, and when the computer program is executed by the processor, the following steps are also implemented:

[0162] When the current business scenario is a normal write scenario, the space adjustment method is determined based on the size relationship between the current data volume and the minimum data volume.

[0163] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0164] When the current data amount is less than the minimum data amount, the space adjustment method is determined to be to increase the storage space; when the current data amount is greater than or equal to the minimum data amount, the space adjustment method is determined to be to maintain the original storage space.

[0165] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0166] Based on the scenario recognition model, the current business scenario of the storage system is determined according to the current performance data of the storage system.

[0167] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0168] When business data needs to be written to the storage system, obtain business data volume information of the storage system;

[0169] Determine the space adjustment method based on the business data volume information and current business scenario of the storage system, as well as the space capacity information of the metadata storage space; wherein the metadata storage space is used to store the deduplication metadata of the business data written into the storage system;

[0170] Use space adjustment to adjust metadata storage space.

[0171] In one embodiment, the service data volume information includes the current volume of service data stored in the storage system and the maximum volume of service data allowed to be stored in the storage system. When the computer program is executed by the processor, the following steps are also implemented:

[0172] When the current data volume is greater than the maximum data volume, the space adjustment method is determined to be reducing the storage space; when the current data volume is less than or equal to the maximum data volume, the space adjustment method is determined based on the current business scenario of the storage system and the space capacity information of the metadata storage space.

[0173] In one embodiment, the space capacity information includes the current total capacity and the maximum total capacity of the metadata storage space, and when the computer program is executed by the processor, the following steps are also implemented:

[0174] When the current total capacity is equal to the maximum total capacity, the space adjustment method is determined to maintain the original storage space; when the current total capacity is less than the maximum total capacity, the space adjustment method is determined according to the current business scenario of the storage system.

[0175] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0176] In the case where the current business scenario is an abnormal write scenario, it is determined that the space adjustment method is to increase the storage space; wherein the abnormal write scenario includes a failover scenario and an overwrite write scenario.

[0177] In one embodiment, the service data volume information also includes the minimum data volume of the service data that the storage system is allowed to store, and when the computer program is executed by the processor, the following steps are also implemented:

[0178] When the current business scenario is a normal write scenario, the space adjustment method is determined based on the size relationship between the current data volume and the minimum data volume.

[0179] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0180] When the current data amount is less than the minimum data amount, the space adjustment method is determined to be to increase the storage space; when the current data amount is greater than or equal to the minimum data amount, the space adjustment method is determined to be to maintain the original storage space.

[0181] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0182] Based on the scenario recognition model, the current business scenario of the storage system is determined according to the current performance data of the storage system.

[0183] It should be noted that the data involved in this application (including but not limited to business data, etc.) are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0184] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0185] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0186] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A storage space adjustment method, characterized in that: The method comprises: When business data needs to be written to a storage system, obtaining business data volume information of the storage system; Determine a space adjustment method according to the business data volume information and current business scenario of the storage system, and the space capacity information of the metadata storage space; wherein the metadata storage space is used to store deduplication metadata of the business data written into the storage system; The metadata storage space is adjusted using the space adjustment method.

2. The method according to claim 1, characterized in that The business data volume information includes the current volume of business data stored in the storage system and the maximum volume of business data allowed to be stored in the storage system; Accordingly, determining the space adjustment method according to the business data volume information and the current business scenario of the storage system and the space capacity information of the metadata storage space includes: When the current data amount is greater than the maximum data amount, determining that the space adjustment method is to reduce the storage space; When the current data volume is less than or equal to the maximum data volume, a space adjustment method is determined according to a current business scenario of the storage system and space capacity information of the metadata storage space.

3. The method according to claim 2, characterized in that The space capacity information includes the current total capacity and the maximum total capacity of the metadata storage space; Accordingly, determining the space adjustment method according to the current business scenario of the storage system and the space capacity information of the metadata storage space includes: When the current total capacity is equal to the maximum total capacity, determining that the space adjustment method is to maintain the original storage space; When the current total capacity is less than the maximum total capacity, a space adjustment method is determined according to a current business scenario of the storage system.

4. The method according to claim 3, characterized in that The determining of the space adjustment method according to the current business scenario of the storage system includes: In the case where the current business scenario is an abnormal write scenario, the space adjustment method is determined to be to increase the storage space; wherein the abnormal write scenario includes a failover scenario and an overwrite write scenario.

5. The method according to claim 3, characterized in that: The business data volume information also includes the minimum data volume of business data that the storage system is allowed to store; Accordingly, determining the space adjustment method according to the current business scenario of the storage system includes: When the current business scenario is a normal writing scenario, the space adjustment method is determined according to the size relationship between the current data amount and the minimum data amount.

6. The method according to claim 5, characterized in that The determining of the space adjustment method according to the size relationship between the current data amount and the minimum data amount includes: When the current data amount is less than the minimum data amount, determining that the space adjustment method is to increase the storage space; When the current data amount is greater than or equal to the minimum data amount, the space adjustment method is determined to maintain the original storage space.

7. The method according to any one of claims 1 to 6, characterized in that The method further comprises: Based on the scenario recognition model, the current business scenario of the storage system is determined according to the current performance data of the storage system.

8. A storage space adjustment device, characterized in that: The device comprises: An information acquisition module, used to acquire business data volume information of the storage system when business data needs to be written to the storage system; A mode determination module is used to determine a space adjustment mode according to the business data volume information and the current business scenario of the storage system, and the space capacity information of the metadata storage space; wherein the metadata storage space is used to store deduplication metadata of the business data written into the storage system; The space adjustment module is used to adjust the metadata storage space by adopting the space adjustment method.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Storage space processing method and device

    CN121143734A