Data processing method and device, electronic equipment and storage medium

By calculating the migration index of storage units and performing data migration, the storage system is optimized to solve the problem of high data storage costs and achieve the effect of reducing storage costs.

CN118550468APending Publication Date: 2024-08-27INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The cost of storing data in the existing technology is high, mainly due to the high price of solid-state drives, which leads to an increase in the number of disks required to store data and an increase in the overall cost.

Method used

By obtaining the read and write response times of multiple storage units in the storage system within the target time period, the migration index is calculated, and the storage data is migrated based on the migration index to optimize the use of storage units and reduce dependence on solid-state drives.

Benefits of technology

Through data migration optimization, the space of the storage system is partially cleared, the use of solid-state drives is reduced, and the cost of data storage is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118550468A
    Figure CN118550468A
Patent Text Reader

Abstract

The invention relates to the technical field of data storage, and provides a data processing method and device, electronic equipment and a storage medium, and the data processing method comprises the steps: obtaining read-write response time of a plurality of storage units in a storage system in a target time period; calculating a migration index of each storage unit in the target time period according to the read-write response time; and carrying out data migration on the storage data in the storage unit according to the migration index. According to the technical scheme provided by the invention, data migration is performed on the storage data in the storage unit, so that the space in the storage system can be partially cleaned, and the use of more solid state disks is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data storage technology, and in particular to a data processing method, device, electronic equipment and storage medium. Background Art

[0002] In the storage industry, the average data read and write volume is increasing, resulting in an increasing number of disks required to store data. However, the price of solid-state drives (SSDs) is high, resulting in a gradual increase in the cost of storing data. If all devices use solid-state drives to store data, the overall cost will also be high. Summary of the invention

[0003] The present invention provides a data processing method, device, electronic device and storage medium, which are used to solve the defect of high cost of storing data in the prior art and reduce the cost of data storage.

[0004] The present invention provides a data processing method, comprising the following steps: Obtaining read and write response times of multiple storage units in a storage system within a target time period; Calculate the migration index of each of the storage units within the target time period according to the read and write response time; Data migration is performed on the storage data in the storage unit according to the migration index.

[0005] According to a data processing method provided by the present invention, the target time period includes multiple processing time periods; the step of calculating the migration index of each storage unit in the target time period according to the read / write response time includes: calculating the exponential moving average of each storage unit in each processing time period according to the read / write response time of each storage unit in each processing time period; A migration index of the storage unit within the target time period is determined according to each of the exponential moving averages.

[0006] According to a data processing method provided by the present invention, the exponential moving average of each storage unit in each processing time period is calculated according to the read and write response time of each storage unit in each processing time period, including: According to the time sequence of each processing time period, if the currently calculated processing time period is the first processing time period within the target time period, the exponential moving average is calculated according to the corresponding read-write response time; if the currently calculated processing time period is not the first processing time period within the target time period, the corresponding exponential moving average is calculated according to the corresponding read-write response time and the exponential moving average of the previous processing time period of the currently calculated processing time period.

[0007] According to a data processing method provided by the present invention, the exponential moving average value is calculated based on the corresponding read / write response time and the exponential moving average value of the previous processing time period of the currently calculated processing time period, including: A weighted calculation is performed on the corresponding read / write response time and the exponential moving average of the previous processing time period to obtain the corresponding exponential moving average.

[0008] According to a data processing method provided by the present invention, determining the migration index of the storage unit within the target time period according to each of the exponential moving averages includes: The processing time period closest to the current moment among the processing time periods is taken as the target processing time period; and the exponential moving average of each storage unit in the target processing time period is taken as the corresponding migration index.

[0009] According to a data processing method provided by the present invention, the step of performing data migration on the storage data in the storage unit according to the migration index comprises: According to the migration index of each storage unit, each storage unit is sorted to obtain a storage unit sequence; Obtaining a preset grouping value, and based on the preset grouping value, performing grouping processing on each of the storage units in the storage unit sequence to obtain a plurality of storage unit groups; Summing up the migration indexes of the storage units in each storage unit group to obtain a grouping index of each storage unit group; Determining a target storage unit group in each of the storage unit groups based on the grouping index of each of the storage unit groups; Determining storage location information of each of the storage units in the target storage unit group; The storage data and the corresponding storage location information of each storage unit in the target storage unit group are stored in a preset storage bucket.

[0010] According to a data processing method provided by the present invention, the determining of a target storage unit group in each of the storage unit groups based on the grouping index of each of the storage unit groups includes: Based on the grouping index, the storage unit group corresponding to the largest grouping index and / or the storage unit group corresponding to the smallest grouping index are determined as the target storage unit group.

[0011] The present invention also provides a data processing device, comprising the following modules: An acquisition module configured to acquire read and write response times of multiple storage units in the storage system within a target time period; a calculation module, configured to calculate a migration index of each of the storage units within the target time period according to the read and write response time; The data migration module is configured to migrate the storage data in the storage unit according to the migration index.

[0012] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any of the above-mentioned data processing methods when executing the program.

[0013] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the data processing method described above is implemented.

[0014] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above-mentioned data processing methods.

[0015] The data processing method, device, electronic device and storage medium provided by the present invention calculate the migration index of each storage unit in the target time period by obtaining the read and write response time of multiple storage units in the storage system in the target time period, and the migration index represents whether the storage data in the corresponding storage unit needs to be migrated. The storage data in the storage unit is migrated according to the calculated migration index, so that the space in the storage system can be partially cleared, avoiding the use of more solid-state hard disks, reducing the use of solid-state hard disks to a certain extent, and thus saving the cost of data storage. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0017] Figure 1 It is a flow chart of the data processing method provided by the present invention.

[0018] Figure 2 It is a flowchart of step 130 in the embodiment provided by the present invention.

[0019] Figure 3 It is a schematic diagram of migrating storage data according to an embodiment of the present invention.

[0020] Figure 4 It is a structural schematic diagram of the data processing device provided by the present invention.

[0021] Figure 5 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0022] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0023] Combine the following Figure 1-Figure 5 The data processing method of the present invention is described.

[0024] Figure 1 FIG. 1 is a flow chart of a data processing method according to an exemplary embodiment. Figure 1 As shown, the data processing method includes steps 110 to 140, which are described in detail as follows.

[0025] Step 110: Obtain read and write response times of multiple storage units in the storage system within a target time period.

[0026] In the embodiment of the present application, during the data writing process, the MDisk (managed disk) in the storage system is divided into multiple blocks of the same size to store related data, which are called data blocks or storage units (Extent). The size of the data block is adjustable, with a minimum of 2MB and a maximum of 2GB.

[0027] MDis is a logical unit of physical storage. An MDisk is an array (RAID) from external storage or a volume from an external storage system. MDisks are not visible to the host system. An MDisk may consist of multiple physical disks that appear as a single logical disk in a storage area network (SAN). An MDisk always presents available physical storage blocks to the system, even though it does not have a one-to-one correspondence with a physical disk. Each MDisk is divided into a number of data blocks, which are numbered sequentially starting from 0 from the beginning to the end of the MDisk. The extent size is a property of the pool. When an MDisk is added to a pool, the extent size into which the MDisk is split depends on the properties of the pool to which it is added.

[0028] The read and write response time of multiple storage units in the storage system within a target time period is obtained, where the read and write response time is the sum of the response time of reading data and the response time of writing data of each storage unit.

[0029] Step 120: Calculate the migration index of each of the storage units within the target time period according to the read and write response time.

[0030] In the embodiment of the present application, according to the migration index of the read and write response time of each storage unit within the target time period, the migration index represents whether the storage data in the corresponding storage unit needs to be migrated.

[0031] Step 130: Migrate the data stored in the storage unit according to the migration index.

[0032] In an embodiment of the present application, data migration is performed on the storage data in the storage unit according to the calculated migration index, so that the space in the storage system can be partially cleared, avoiding the use of more solid-state drives, reducing the use of solid-state drives to a certain extent, and thus saving the cost of data storage.

[0033] In an exemplary embodiment of the present application, the target time period includes multiple processing time periods; the calculation of the migration index of each storage unit within the target time period according to the read and write response time includes the following steps, which are described in detail as follows.

[0034] According to the read and write response time of each storage unit in each processing time period, an exponential moving average value of each storage unit in each processing time period is calculated.

[0035] A migration index of the storage unit within the target time period is determined according to each of the exponential moving averages.

[0036] In the embodiment of the present application, the target time period includes multiple processing time periods, with one processing time period as one granularity. When collecting the read and write response time, the read and write response time of one processing time period can be collected, and then the read and write response time can be cleared, and then the read and write response time of the next processing time period can be collected. For example, the target time period can be set to 1 hour, and 12 processing time periods are set, then each processing time period is 5 minutes, with 5 minutes as one granularity, and the read and write response time of the storage unit is collected again every five minutes.

[0037] According to the read and write response time of each storage unit in each processing time period, the exponential moving average of each storage unit in each processing time period is calculated, that is, each storage unit has the same exponential moving average as the number of processing time periods in a target time period. Then, the migration index of the storage unit is determined according to all the exponential moving averages of each storage unit in the target time period.

[0038] In an exemplary embodiment of the present application, the exponential moving average of each storage unit in each processing time period is calculated based on the read and write response time of each storage unit in each processing time period, including the following steps, which are described in detail as follows.

[0039] According to the time sequence of each of the processing time periods, if the currently calculated processing time period is the first processing time period within the target time period, the exponential moving average is calculated according to the corresponding read / write response time.

[0040] If the currently calculated processing time period is not the first processing time period within the target time period, the corresponding exponential moving average is calculated based on the corresponding read / write response time and the exponential moving average of the previous processing time period before the currently calculated processing time period.

[0041] In an embodiment of the present application, according to the time sequence of each processing time period within the target time period, if the currently calculated processing time period is the first processing time period within the target time period, the exponential moving average is calculated directly according to the read and write response time of the storage unit within the first processing time period, that is, α in the following formula for calculating the exponential moving average is set to 1, and the corresponding read and write response time is the corresponding exponential moving average.

[0042] According to the time sequence of each processing time cycle within the target time cycle, if the currently calculated processing time cycle is not the first processing time cycle within the target time cycle, the exponential moving average corresponding to the storage unit is calculated based on the read and write response time of the storage unit within the processing time cycle and the exponential moving average of the previous processing time cycle of the currently calculated processing time cycle.

[0043] In the embodiment of the present application, after obtaining the read and write response time of each storage unit in a processing time period, the exponential moving average in the processing time period can be calculated. It is also possible to calculate the exponential moving average in each processing time period after obtaining the read and write response time in the entire target time period.

[0044] In an exemplary embodiment of the present application, the exponential moving average is calculated based on the corresponding read / write response time and the exponential moving average of the previous processing time period of the currently calculated processing time period, including the following steps, which are described in detail as follows.

[0045] A weighted calculation is performed on the corresponding read / write response time and the exponential moving average of the previous processing time period to obtain the corresponding exponential moving average.

[0046] In the present application embodiment, the formula EMA today =α*NUM current +(1-α)*EMA old Calculate the corresponding exponential moving average. Among them, EMA today Represents the exponential moving average of the current calculated processing time period. α is the smoothing exponent, generally taken as 2 / (N+1), N can be selected as 12 or 26 times, so α can be 2 / 13 or 2 / 27. EMA old Represents the exponential moving average of the previous processing time period of the currently calculated processing time period.

[0047] In an exemplary embodiment of the present application, determining the migration index of the storage unit within the target time period according to each of the exponential moving averages includes the following steps, which are described in detail as follows.

[0048] Taking the processing time period closest to the current moment among the processing time periods as the target processing time period; The exponential moving average of each storage unit in the target processing time period is used as the corresponding migration index.

[0049] In the embodiment of the present application, as mentioned above, 12 processing time periods are set, and the processing time period closest to the current moment in each processing time period is used as the target processing time period, that is, the 12th processing time period is used as the target processing time period. The exponential moving average of each storage unit in the target processing time period is used as the corresponding migration index.

[0050] In another embodiment of the present application, after calculating the exponential moving averages corresponding to the multiple processing time periods, each storage unit randomly selects a processing time period as the target processing time period. When the next target time period comes, after obtaining the exponential averages corresponding to the multiple processing time periods in the next target time period, the target processing time period corresponding to the previous target time period is excluded, and a processing time period is randomly selected from the remaining processing time periods as the target processing time period, and so on, until the multiple processing time periods are selected, and when a new target time period comes, a processing time period is randomly selected from the multiple processing time periods as the target processing time period.

[0051] For example, 12 processing time periods are set. In the first target time period, the sixth processing time period is randomly selected as the target processing time period. After completing the data migration in the first target time period based on the exponential moving average corresponding to the sixth processing time period, the second target time period comes, and then a processing time period is randomly selected from the remaining 11 time periods after the sixth processing time period as the target processing time period. This process is repeated until the data migration of 12 target time periods is completed. When the 13th target time period arrives, a processing time period is randomly selected from the 12 processing time periods as the target processing time period.

[0052] In another embodiment of the present application, after obtaining the read and write response time of the storage unit within the target time period, the value obtained by dividing the read and write response time by the number of processing time periods can be used as a migration index, and then data migration is performed according to the migration index.

[0053] In an exemplary embodiment of the present application, see Figure 2 , step 130 performs data migration on the storage data in the storage unit according to the migration index, including the following steps 210 to 260, which are described in detail as follows.

[0054] Step 210: sorting the storage units according to the migration index of each storage unit to obtain a storage unit sequence.

[0055] Step 220, obtaining a preset grouping value, and based on the preset grouping value, performing grouping processing on each of the storage units in the storage unit sequence to obtain a plurality of storage unit groups.

[0056] Step 230 , summing up the migration indexes of the storage units in each of the storage unit groups to obtain a grouping index of each of the storage unit groups.

[0057] Step 240: Determine a target storage unit group in each of the storage unit groups based on the grouping index of each of the storage unit groups.

[0058] Step 250: Determine the storage location information of each storage unit in the target storage unit group.

[0059] Step 260: Store the storage data and the corresponding storage location information of each storage unit in the target storage unit group into a preset storage bucket.

[0060] In an embodiment of the present application, after obtaining the migration index of each storage unit, each storage unit is sorted according to the migration index of each storage unit to obtain a storage unit sequence, and a preset grouping value is obtained. The preset grouping value can be set based on the number of set storage buckets (Bucket) and can also be set according to actual needs.

[0061] Based on the preset grouping value, each storage unit in the storage unit sequence is grouped to obtain a plurality of storage unit groups. Specifically, the number of storage units can be divided by the preset grouping value. If it is divisible, the number of storage units in the obtained storage unit group is the same. According to the storage unit sequence, every N storage units are divided into a storage unit group; if it is not divisible, the quotient is rounded off based on the obtained quotient, and then grouping is performed.

[0062] The migration indexes of the storage units in each storage unit group are summed to obtain the grouping index of each storage unit group. According to the grouping index of each storage unit group, a target storage unit group is determined in each storage unit group, and then the storage location information of each storage unit in the target storage unit group on the volume is determined. The storage data and the corresponding storage location information of each storage unit in the target storage unit group are stored in a preset storage bucket, as shown in the following example. Figure 3 When the storage location information and the corresponding storage data are stored in the storage bucket, they can be stored in the form of a key-value pair, where the storage location information is used as the key and the corresponding storage data is used as the value.

[0063] After the storage data is migrated to the storage bucket, when the corresponding storage data is needed, a data acquisition request carrying the storage location information is generated. According to the storage location information in the data acquisition request, a match is performed in the storage bucket, and the matched storage data is extracted and returned to the sender of the data acquisition request.

[0064] In an exemplary embodiment of the present application, the method of determining a target storage unit group in each of the storage unit groups based on the grouping index of each of the storage unit groups includes the following steps, which are described in detail as follows.

[0065] Based on the grouping index, the storage unit group corresponding to the largest grouping index and / or the storage unit group corresponding to the smallest grouping index are determined as the target storage unit group.

[0066] In an embodiment of the present application, the grouping index can characterize the degree to which the migration index of each storage unit in the corresponding storage unit group needs to be migrated in all storage units. The storage unit group corresponding to the largest grouping index characterizes to a certain extent that the storage data in the storage units in its group is frequently accessed hot data, that is. The storage unit group corresponding to the smallest grouping index characterizes to a certain extent that the storage data in the storage units in its group is infrequently accessed cold data. The determined cold data or hot data can be stored in a storage bucket and subsequently migrated to different disks. The performance required for hot data is higher, so the hot data can be migrated to a disk with better performance. Through the technical solution provided by the present application, only part of the storage data in the storage unit is migrated from the accessed storage unit in each target time period.

[0067] In another embodiment of the present application, after obtaining the migration index of each storage unit, the migration index of each storage unit is compared with a preset migration index threshold, and if the migration index is greater than the migration index threshold, the storage data of the corresponding storage unit can be migrated. The migration index threshold can be determined based on the migration index of the storage unit on which data migration is performed.

[0068] In an exemplary embodiment of the present application, the data processing method includes the following steps, which are explained in detail as follows.

[0069] Data collection: During the processing time period, the read and write response time of each storage unit is collected.

[0070] Migration index calculation: Calculate the exponential moving average of the storage unit in the corresponding processing time period according to the read and write response time, and determine the migration index corresponding to each storage unit according to the exponential moving average.

[0071] Data aggregation and sorting: Aggregate the migration index of each storage unit and migrate data based on the migration index.

[0072] In an embodiment of the present application, in the data collection step, one processing time cycle is used as a granularity. When collecting the read and write response time, the read and write response time of one processing time cycle can be collected, and then the read and write response time can be cleared to zero, and then the read and write response time of the next processing time cycle can be collected.

[0073] In the migration index calculation step, according to the time sequence of each processing time period within the target time period, if the currently calculated processing time period is the first processing time period within the target time period, the corresponding read and write response time is directly used as the corresponding exponential moving average.

[0074] According to the time sequence of each processing time period in the target time period, if the currently calculated processing time period is not the first processing time period in the target time period, then according to the formula EMA today =α*NUM current +(1-α)*EMA old Calculate the corresponding exponential moving average.

[0075] The migration index of each storage unit is determined according to the exponential moving average of each storage unit.

[0076] In the data aggregation and sorting step, the migration index of each storage unit is aggregated and arranged in descending order. A storage unit sequence is obtained based on the arrangement, and each storage unit in the storage unit sequence is grouped to obtain multiple storage unit groups. Then, a target storage group is determined, and storage location information of each storage unit in the target storage unit group is determined. Data migration is performed on the storage units in the target storage unit group based on the storage location information.

[0077] The aforementioned three steps of data collection, migration index calculation and data aggregation and sorting are repeated once in each target time period. Among them, the data collection step is repeated once in each processing time period, while the migration index calculation step and the data aggregation and sorting step are executed in the last processing time period.

[0078] The data processing device provided by the present invention is described below, and the data processing device described below and the data processing method described above can be referred to each other. It should be noted that the device provided in the following embodiment and the method provided in the above embodiment belong to the same concept, and the specific manner in which each module and unit performs the operation has been described in detail in the method embodiment, which will not be repeated here.

[0079] In an exemplary embodiment of the present invention, see Figure 4, Figure 4 A data processing device according to an exemplary embodiment includes the following modules.

[0080] The acquisition module 410 is configured to acquire the read and write response times of multiple storage units in the storage system within a target time period.

[0081] The calculation module 420 is configured to calculate the migration index of each of the storage units within the target time period according to the read and write response time.

[0082] The data migration module 430 is configured to perform data migration on the storage data in the storage unit according to the migration index.

[0083] In an exemplary embodiment of the present invention, the target time period includes multiple processing time periods; the calculation module 420 includes the following sub-modules.

[0084] The calculation submodule is configured to calculate the exponential moving average of each storage unit in each processing time period according to the read and write response time of each storage unit in each processing time period.

[0085] The first determination submodule is configured to determine the migration index of the storage unit within the target time period according to each of the exponential moving averages.

[0086] In an exemplary embodiment of the present invention, the computing submodule includes the following units.

[0087] The first calculation unit is configured to calculate the exponential moving average according to the corresponding read / write response time based on the time sequence of each processing time period if the currently calculated processing time period is the first processing time period within the target time period.

[0088] The second calculation unit is configured to calculate the corresponding exponential moving average value based on the corresponding read-write response time and the exponential moving average value of the previous processing time period of the currently calculated processing time period if the currently calculated processing time period is not the first processing time period within the target time period.

[0089] In an exemplary embodiment of the present invention, the second computing unit includes the following sub-units.

[0090] The weighted calculation subunit is configured to perform weighted calculation on the corresponding read / write response time and the exponential moving average of the previous processing time period to obtain the corresponding exponential moving average.

[0091] In an exemplary embodiment of the present invention, the first determining submodule includes the following units.

[0092] As a unit, it is configured to take the processing time period closest to the current time point among the processing time periods as the target processing time period.

[0093] The exponential moving average of each storage unit in the target processing time period is used as the corresponding migration index.

[0094] In an exemplary embodiment of the present invention, the data migration module 430 includes the following sub-modules.

[0095] The sorting processing submodule is configured to sort each of the storage units according to the migration index of each of the storage units to obtain a storage unit sequence.

[0096] The group processing submodule is configured to obtain a preset group value, and based on the preset group value, perform group processing on each of the storage units in the storage unit sequence to obtain a plurality of storage unit groups.

[0097] The summing processing submodule is configured to sum the migration indexes of the storage units in each of the storage unit groups to obtain a grouping index of each of the storage unit groups.

[0098] The second determination submodule is configured to determine a target storage unit group in each of the storage unit groups based on the grouping index of each of the storage unit groups.

[0099] The third determining submodule is configured to determine the storage location information of each of the storage units in the target storage unit group.

[0100] The storage submodule is configured to store the storage data and the corresponding storage location information of each storage unit in the target storage unit group into a preset storage bucket.

[0101] In an exemplary embodiment of the present invention, the second determining submodule includes the following units.

[0102] A determination unit is configured to determine, based on the grouping index, the storage unit group corresponding to the largest grouping index and / or the storage unit group corresponding to the smallest grouping index as the target storage unit group.

[0103] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communication interface 520 and the memory 530 communicate with each other through the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute the data processing method, which includes: obtaining the read and write response time of multiple storage units in the storage system within the target time period; calculating the migration index of each storage unit within the target time period according to the read and write response time; and performing data migration on the storage data in the storage unit according to the migration index.

[0104] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0105] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the data processing method provided by the above methods, which includes: obtaining the read and write response time of multiple storage units in a storage system within a target time period; calculating the migration index of each of the storage units within the target time period based on the read and write response time; and performing data migration on the storage data in the storage unit based on the migration index.

[0106] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the data processing method provided by the above-mentioned methods, and the method includes: obtaining the read and write response time of multiple storage units in a storage system within a target time period; calculating the migration index of each of the storage units within the target time period based on the read and write response time; and performing data migration on the storage data in the storage unit based on the migration index.

[0107] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0108] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0109] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A data processing method, It is characterized in that include: Obtaining read and write response times of multiple storage units in a storage system within a target time period; Calculate the migration index of each of the storage units within the target time period according to the read and write response time; Data migration is performed on the storage data in the storage unit according to the migration index.

2. The data processing method according to claim 1, It is characterized in that The target time period includes a plurality of processing time periods; The calculating the migration index of each storage unit within the target time period according to the read / write response time includes: Calculating an exponential moving average of each storage unit in each processing time period according to the read and write response time of each storage unit in each processing time period; A migration index of the storage unit within the target time period is determined according to each of the exponential moving averages.

3. The data processing method according to claim 2, It is characterized in that The step of calculating the exponential moving average of each storage unit in each processing time period according to the read and write response time of each storage unit in each processing time period comprises: According to the time sequence of each processing time period, if the currently calculated processing time period is the first processing time period within the target time period, calculating the exponential moving average according to the corresponding read / write response time; If the currently calculated processing time period is not the first processing time period within the target time period, the corresponding exponential moving average is calculated based on the corresponding read / write response time and the exponential moving average of the previous processing time period of the currently calculated processing time period.

4. The data processing method according to claim 3, It is characterized in that The step of calculating the corresponding exponential moving average value according to the corresponding read / write response time and the exponential moving average value of the previous processing time period of the currently calculated processing time period comprises: A weighted calculation is performed on the corresponding read / write response time and the exponential moving average of the previous processing time period to obtain the corresponding exponential moving average.

5. The data processing method according to claim 2, It is characterized in that The step of determining the migration index of the storage unit within the target time period according to each of the exponential moving averages includes: Taking the processing time period closest to the current moment among the processing time periods as the target processing time period; The exponential moving average of each storage unit in the target processing time period is used as the corresponding migration index.

6. The data processing method according to any one of claims 1 to 5, It is characterized in that The step of performing data migration on the storage data in the storage unit according to the migration index includes: According to the migration index of each storage unit, each storage unit is sorted to obtain a storage unit sequence; Obtaining a preset grouping value, and based on the preset grouping value, performing grouping processing on each of the storage units in the storage unit sequence to obtain a plurality of storage unit groups; Summing up the migration indexes of the storage units in each storage unit group to obtain a grouping index of each storage unit group; Determining a target storage unit group in each of the storage unit groups based on the grouping index of each of the storage unit groups; Determining storage location information of each of the storage units in the target storage unit group; The storage data and the corresponding storage location information of each storage unit in the target storage unit group are stored in a preset storage bucket.

7. The data processing method according to claim 6, It is characterized in that The determining a target storage unit group in each of the storage unit groups based on the grouping index of each of the storage unit groups comprises: Based on the grouping index, the storage unit group corresponding to the largest grouping index and / or the storage unit group corresponding to the smallest grouping index are determined as the target storage unit group.

8. A data processing device, It is characterized in that include: An acquisition module configured to acquire read and write response times of multiple storage units in the storage system within a target time period; a calculation module, configured to calculate a migration index of each of the storage units within the target time period according to the read and write response time; The data migration module is configured to migrate the storage data in the storage unit according to the migration index.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the data processing method according to any one of claims 1 to 7 is implemented.

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