[go: up one dir, main page]

CN103078933A - Method and device for determining data migration time - Google Patents

Method and device for determining data migration time Download PDF

Info

Publication number
CN103078933A
CN103078933A CN2012105901715A CN201210590171A CN103078933A CN 103078933 A CN103078933 A CN 103078933A CN 2012105901715 A CN2012105901715 A CN 2012105901715A CN 201210590171 A CN201210590171 A CN 201210590171A CN 103078933 A CN103078933 A CN 103078933A
Authority
CN
China
Prior art keywords
data migration
data
period
migration
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012105901715A
Other languages
Chinese (zh)
Other versions
CN103078933B (en
Inventor
张森林
冯圣中
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Southern Power Grid Internet Service Co ltd
Ourchem Information Consulting Co ltd
Original Assignee
Shenzhen Institute of Advanced Technology of CAS
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Institute of Advanced Technology of CAS filed Critical Shenzhen Institute of Advanced Technology of CAS
Priority to CN201210590171.5A priority Critical patent/CN103078933B/en
Publication of CN103078933A publication Critical patent/CN103078933A/en
Application granted granted Critical
Publication of CN103078933B publication Critical patent/CN103078933B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明适用于互联网通信领域,提供了一种确定数据迁移时机的方法,包括以下步骤:启动双线程,分别监视分级存储系统中一级存储的空间使用率和数据迁移周期;所述双线程,定期判断所述数据迁移条件是否已满足,若否,则等待相同的时间后再判断,直至判断所述数据迁移条件已满足,若是,则执行数据迁移。本发明能够根据迁移的不同情况,对迁移周期进行调整,可适应集群中负载的动态变化,从而不但能够充分利用分级存储系统中的一级存储的空间,也能保证系统及时的调整数据位置,使得系统的访问性能达到最佳。

The present invention is applicable to the field of Internet communication, and provides a method for determining the timing of data migration, comprising the following steps: starting two threads, respectively monitoring the space usage rate and data migration period of the primary storage in the hierarchical storage system; the two threads, Periodically judge whether the data migration condition has been satisfied, if not, wait for the same time and then judge again until it is judged that the data migration condition is satisfied, if yes, execute data migration. The present invention can adjust the migration cycle according to different situations of migration, and can adapt to the dynamic change of the load in the cluster, thereby not only making full use of the first-level storage space in the hierarchical storage system, but also ensuring that the system adjusts the data location in time, Make the access performance of the system reach the best.

Description

一种确定数据迁移时机的方法和装置A method and device for determining the timing of data migration

技术领域technical field

本发明属于互联网通信领域,尤其涉及一种确定数据迁移时机的方法和装置。The invention belongs to the field of Internet communication, and in particular relates to a method and a device for determining the timing of data migration.

背景技术Background technique

随着数据的爆炸性增长,存储海量数据的集群应运而生。因为集群中存储的数据量很大,有的已达PB级,同一时刻可能会有大量的数据访问。因此,数据的存放位置是否合理,直接影响到数据的访问延迟。With the explosive growth of data, clusters that store massive amounts of data emerge as the times require. Because the amount of data stored in the cluster is large, and some have reached the PB level, there may be a large amount of data access at the same time. Therefore, whether the data storage location is reasonable directly affects the data access delay.

数据迁移,是指不同的存储介质之间的数据移动。要完成数据迁移,系统需要消耗一定的资源(包括硬件资源、带宽等)。Data migration refers to the movement of data between different storage media. To complete data migration, the system needs to consume certain resources (including hardware resources, bandwidth, etc.).

在存储海量数据的集群中,需要数据迁移的情形,主要有系统的升级换代、数据的备份/恢复,以及分级存储系统中数据的动态调整等。其中系统的升级换代是大规模的、一次性的;数据的备份/恢复是基于安全考虑的;通常情况下,这两类迁移发生的次数很少,而且多是在某一时刻必须完成的。In a cluster that stores massive amounts of data, situations that require data migration mainly include system upgrades, data backup/recovery, and dynamic adjustment of data in hierarchical storage systems. Among them, system upgrades are large-scale and one-time; data backup/restoration is based on security considerations; usually, these two types of migrations occur rarely, and most of them must be completed at a certain moment.

但是分级存储系统中的数据动态调整,其目的是为了使得数据的位置得到合理化的配置。分级存储,是依据数据活跃度的“二八原则”:即20%的数据处于活跃状态,而80%的数据处于不活跃状态,将服务器按硬件性能分成不同存储层次,存储层次越高,性能越好。分级存储系统的目标是将活跃数据存储于层次高的存储上,但是数据的活跃度会随着时间的变化而变化,所以即便某一次的数据配置是合理的,但是过一段时间后,这种配置也会因数据活跃度的变化而显得不合时宜,因此为了达到数据合理化配置的目标,就需要进行数据迁移。However, the purpose of dynamic adjustment of data in the tiered storage system is to rationalize the configuration of the data location. Hierarchical storage is based on the "twenty-eight principle" of data activity: that is, 20% of the data is active and 80% of the data is inactive. The servers are divided into different storage levels according to hardware performance. The higher the storage level, the better the performance. the better. The goal of the hierarchical storage system is to store active data on high-level storage, but the activity of the data will change with time, so even if the data configuration at a certain time is reasonable, after a period of time, this The configuration will also appear outdated due to changes in data activity. Therefore, in order to achieve the goal of rational data configuration, data migration is required.

但迁移是需要耗费资源的,如果迁移次数过少,就无法充分发挥分级存储系统的优势,如果迁移次数过多,系统会有过多的资源用于内耗,有可能降低系统对其他业务的服务质量。因此迁移的时机选择很重要,既要确保能够发挥分级存储系统的优势,又不能有过多的资源用于内耗。However, migration needs to consume resources. If the number of migrations is too small, the advantages of the hierarchical storage system cannot be fully utilized. If the number of migrations is too large, the system will have too many resources for internal consumption, which may reduce the system’s services to other businesses. quality. Therefore, the timing of migration is very important. It is necessary to ensure that the advantages of the tiered storage system can be utilized, and too many resources should not be used for internal consumption.

目前,有两种确定迁移时机的方法。一种是固定周期法,即分级存储系统会在一定时间之后,进行数据迁移,而不考虑其他情况;另一种是剩余空间监视法,即监视一级存储的剩余空间,如果剩余空间不足,则启动迁移。Currently, there are two methods for determining when to migrate. One is the fixed period method, that is, the tiered storage system will migrate data after a certain period of time, regardless of other situations; the other is the remaining space monitoring method, that is, monitor the remaining space of the first-level storage, if the remaining space is insufficient, then start the migration.

但是这两种方法都有不足:固定周期法所设置的周期,若过长,难以发挥分级存储的优势;若过短,系统的资源会频繁用于内耗。而集群的负载处于动态变化中,不同的应用访问数据的情况不同,一个适应所有应用场景的合理周期,是不存在的,也就是说,固定周期法难以适应系统负载的动态变化。However, these two methods have disadvantages: if the period set by the fixed period method is too long, it will be difficult to take advantage of hierarchical storage; if it is too short, system resources will be frequently used for internal consumption. However, the load of the cluster is changing dynamically, and different applications access data in different situations. A reasonable cycle suitable for all application scenarios does not exist. That is to say, the fixed cycle method is difficult to adapt to the dynamic changes of the system load.

剩余空间监视法,在集群中有大量数据写入的情况下可以发挥功效,但是很多情况下,集群中会不再有数据写入而拥有频繁的数据读取,但数据的活跃度却在不断发生变化。这种情形下,分级存储系统就不能进行数据迁移,也做不到合理的数据配置,发挥不了它应有的作用。The remaining space monitoring method can be effective when there is a large amount of data written in the cluster, but in many cases, there will be no more data written in the cluster and frequent data reads, but the activity of the data is constantly increasing. change. In this case, the hierarchical storage system cannot perform data migration, nor can it achieve reasonable data configuration, and cannot play its due role.

因此,需定迁移时机的方法需要合理化,一方面要能适应系统负载的动态变化,另一方面,又能使得数据能在合适的节点上存放,使得系统在处理活跃数据时的效率提高,最终使得数据的访问性能提高,而整体的访问延迟降低。Therefore, the method of determining the timing of migration needs to be rationalized. On the one hand, it must be able to adapt to the dynamic changes of the system load. On the other hand, the data can be stored on the appropriate node, so that the system can improve the efficiency of processing active data, and finally The data access performance is improved, and the overall access delay is reduced.

发明内容Contents of the invention

本发明实施例提供一种确定数据迁移时机的方法和装置,旨在解决当前无法动态选择合适的数据迁移时机,既确保能够发挥分级存储系统的优势,又不会有过多的资源用于内耗的问题。Embodiments of the present invention provide a method and device for determining the timing of data migration, aiming at solving the problem of currently being unable to dynamically select a suitable timing for data migration, ensuring that the advantages of the hierarchical storage system can be brought into play, and that too many resources will not be used for internal consumption The problem.

为此,本发明实施例提供了如下技术方案:For this reason, the embodiment of the present invention provides following technical scheme:

一种确定数据迁移时机的装置,包括:A device for determining when to migrate data, comprising:

监视模块,与判断模块相连接,用于启动双线程,分别监视分级存储系统中一级存储的空间使用率和数据迁移周期;The monitoring module is connected with the judging module, and is used to start dual threads to monitor respectively the space utilization rate and the data migration period of the first-level storage in the hierarchical storage system;

判断模块,分别与所述监视模块和数据迁移模块相连接,用于通过所述双线程,定期判断所述数据迁移条件是否已满足;A judging module is connected to the monitoring module and the data migration module respectively, and is used to regularly judge whether the data migration condition has been met through the dual threads;

数据迁移模块,用于执行所述数据迁移;A data migration module, configured to perform the data migration;

调整模块,与所述数据迁移模块相连接,用于调整所述数据迁移周期。An adjustment module, connected to the data migration module, is used to adjust the data migration period.

本发明实施例还提供了一种确定数据迁移时机的方法,包括:The embodiment of the present invention also provides a method for determining the timing of data migration, including:

A:启动双线程,分别监视分级存储系统中一级存储的空间使用率和数据迁移周期;A: Start two threads to monitor the space usage rate and data migration cycle of the first-level storage in the tiered storage system respectively;

B:所述双线程,定期判断所述数据迁移条件是否已满足,若否,则等待相同的时间后再判断,直至判断所述数据迁移条件已满足,若是,则执行步骤C;B: The dual thread regularly judges whether the data migration condition has been satisfied, if not, then waits for the same time before judging until it is judged that the data migration condition is satisfied, and if so, executes step C;

C:执行所述数据迁移;C: Execute the data migration;

D:根据所述迁移的情况,调整所述数据迁移周期;D: Adjust the data migration cycle according to the migration situation;

E:所述数据迁移周期调整后,所述双线程重新读取参数,继续下一轮监视。E: After the data migration cycle is adjusted, the two threads re-read the parameters and continue the next round of monitoring.

与现有技术相比,本发明的实施例具有如下优点:Compared with the prior art, the embodiments of the present invention have the following advantages:

本发明实施例通过启动双线程,分别监视分级存储系统中一级存储的空间使用率和数据迁移周期,并且定期判断所述数据迁移条件是否已满足,并根据满足迁移条件的原因,调整所述数据迁移周期。确保了选择的数据迁移时机,从而不但能够充分利用分级存储系统中的一级存储的空间,也能保证系统及时的调整数据位置,使得系统的访问性能达到最佳。The embodiment of the present invention monitors the space usage rate and data migration period of the first-level storage in the hierarchical storage system respectively by starting dual threads, and regularly judges whether the data migration condition has been satisfied, and adjusts the migration condition according to the reason for satisfying the migration condition. Data migration cycle. The selected data migration timing is ensured, so that not only can the space of the first-level storage in the hierarchical storage system be fully utilized, but also ensure that the system adjusts the data location in time, so that the access performance of the system can reach the best.

附图说明Description of drawings

图1是本发明第一实施例提供的确定数据迁移时机的方法流程图;FIG. 1 is a flow chart of a method for determining the timing of data migration provided by the first embodiment of the present invention;

图2是本发明第二实施例提供的确定数据迁移时机的装置的结构图。Fig. 2 is a structural diagram of an apparatus for determining a data migration opportunity provided by a second embodiment of the present invention.

具体实施方式Detailed ways

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的仅是本发明的一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that what is described here is only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

图1是本发明第一实施例提供的确定数据迁移时机的方法流程图,为了便于说明,仅示出了与本发明实施例相关的部分。FIG. 1 is a flow chart of a method for determining data migration timing provided by the first embodiment of the present invention. For ease of description, only parts related to the embodiment of the present invention are shown.

如图1所示,该方法包括以下步骤:As shown in Figure 1, the method includes the following steps:

步骤101,启动双线程,分别监视分级存储系统中一级存储的空间使用率和数据迁移周期。In step 101, two threads are started to respectively monitor the space usage rate and data migration period of the primary storage in the hierarchical storage system.

步骤102,所述双线程,定期判断所述数据迁移条件是否已满足,若否,则等待相同的时间后再判断,直至判断所述数据迁移条件已满足,若是,则执行步骤103。Step 102, the two threads periodically judge whether the data migration condition is met, if not, wait for the same time and then judge again until it is judged that the data migration condition is satisfied, if yes, execute step 103.

具体的,所述的所述数据迁移条件,包括所述分级存储系统中一级存储的空间使用率超过设定阈值或者,数据迁移周期到达。Specifically, the data migration condition includes that the space usage rate of the primary storage in the tiered storage system exceeds a set threshold or the data migration period arrives.

具体的,当判断分级存储系统中一级存储的空间使用率未超过设定阈值,数据迁移周期也未到达时,则不触发数据迁移,等到相同的时间间隔后再判断。当判断分级存储系统中一级存储的空间使用率超过设定阈值,或者,数据迁移周期到达时,则触发迁移。Specifically, when it is judged that the space usage rate of the primary storage in the tiered storage system does not exceed the set threshold and the data migration period has not yet arrived, the data migration is not triggered, and the judgment is made after the same time interval. When it is judged that the space usage rate of the primary storage in the tiered storage system exceeds the set threshold, or when the data migration period arrives, the migration is triggered.

步骤103,执行所述数据迁移。Step 103, execute the data migration.

优选的,若触发迁移,系统会记录是由哪种后台线程触发的迁移,并选择好迁移对象,完成迁移。Preferably, if the migration is triggered, the system will record which background thread triggers the migration, and select a migration object to complete the migration.

步骤104,根据所述迁移的情况,调整所述数据迁移周期。Step 104, adjusting the data migration cycle according to the migration situation.

具体的,当触发迁移的原因是分级存储系统中一级存储的空间使用率超过设定阈值时,即:由于一级存储剩余空间不足引发的迁移,说明此时有大量的数据写入,要对数据位置做出及时调整,缩短所述数据迁移周期,作为新的所述数据迁移周期。Specifically, when the reason for triggering the migration is that the space usage rate of the primary storage in the tiered storage system exceeds the set threshold, that is, the migration is caused by insufficient remaining space of the primary storage, which means that there is a large amount of data written at this time. Make timely adjustments to the data location and shorten the data migration cycle as the new data migration cycle.

具体的,由于迁移周期时间消耗殆尽引发的迁移,但是却没有实际的数据移动发生,说明系统在该周期内没有显著的读写操作,延长迁移周期,作为新的所述数据迁移周期。Specifically, the migration caused by the exhaustion of the migration cycle time, but no actual data movement occurs, indicating that the system has no significant read and write operations during this cycle, and the migration cycle is extended as the new data migration cycle.

具体的,由于迁移周期消耗殆尽引发的迁移,有正常的数据移动发生,则原有的迁移周期不变。Specifically, due to the migration caused by the exhaustion of the migration cycle, there is normal data movement, and the original migration cycle remains unchanged.

优选的,为所述数据迁移周期,设置上限值和下限值。当缩短所述数据迁移周期的结果低于所述下限值时,将所述下限值作为新的所述数据迁移周期,或者,当延长所述数据迁移周期的结果高于所述上限值时,将所述上限值作为新的所述数据迁移周期。Preferably, an upper limit and a lower limit are set for the data migration period. When the result of shortening the data migration cycle is lower than the lower limit value, use the lower limit value as the new data migration cycle, or, when the result of extending the data migration cycle is higher than the upper limit value, the upper limit value is used as the new data migration period.

步骤105,所述数据迁移周期调整后,所述双线程重新读取参数,继续下一轮监视。Step 105, after the data migration period is adjusted, the two threads re-read the parameters and continue the next round of monitoring.

优选的,数据迁移周期调整后,所述双线程重新读取更新后的数据迁移周期参数,重新监视数据迁移条件是否达到。Preferably, after the data migration cycle is adjusted, the two threads re-read the updated data migration cycle parameters, and re-monitor whether the data migration condition is met.

基于相同的构思,本发明第二实施例还提供一种确定数据迁移时机的装置,如图2所示,该装置包括监视模块201、判断模块202、数据迁移模块203及调整模块204。Based on the same concept, the second embodiment of the present invention also provides a device for determining the timing of data migration. As shown in FIG.

监视模块201与判断模块202相连接,用于启动双线程,分别监视分级存储系统中一级存储的空间使用率和数据迁移周期。The monitoring module 201 is connected with the judging module 202, and is used to start two threads, respectively monitor the space usage rate and the data migration period of the primary storage in the hierarchical storage system.

判断模块202分别与所述监视模块201和数据迁移模块203相连接,用于通过所述双线程,定期判断所述数据迁移条件是否已满足。The judging module 202 is connected to the monitoring module 201 and the data migration module 203 respectively, and is used to periodically judge whether the data migration condition has been met through the dual threads.

具体的,所述数据迁移条件包括所述分级存储系统中一级存储的空间使用率超过设定阈值或者,数据迁移周期到达。Specifically, the data migration condition includes that the space usage rate of the primary storage in the tiered storage system exceeds a set threshold or the data migration period arrives.

具体的,当判断分级存储系统中一级存储的空间使用率未超过设定阈值,数据迁移周期也未到达时,则不触发数据迁移,等到相同的时间间隔后再判断。当判断分级存储系统中一级存储的空间使用率超过设定阈值,或者,数据迁移周期到达时,则触发迁移。Specifically, when it is judged that the space usage rate of the primary storage in the tiered storage system does not exceed the set threshold and the data migration period has not yet arrived, the data migration is not triggered, and the judgment is made after the same time interval. When it is judged that the space usage rate of the primary storage in the tiered storage system exceeds the set threshold, or when the data migration period arrives, the migration is triggered.

数据迁移模块203用于执行所述数据迁移。The data migration module 203 is used for performing the data migration.

优选的,若触发迁移,系统会记录是由哪种后台线程触发的迁移,并选择好迁移对象,完成迁移。Preferably, if the migration is triggered, the system will record which background thread triggers the migration, and select a migration object to complete the migration.

调整模块204与所述数据迁移模块203相连接,用于调整所述数据迁移周期。The adjustment module 204 is connected to the data migration module 203 and configured to adjust the data migration period.

具体的,当触发迁移的原因是分级存储系统中一级存储的空间使用率超过设定阈值时,即:由于一级存储剩余空间不足引发的迁移,说明此时有大量的数据写入,要对数据位置做出及时调整,缩短所述数据迁移周期,作为新的所述数据迁移周期。Specifically, when the reason for triggering the migration is that the space usage rate of the primary storage in the tiered storage system exceeds the set threshold, that is, the migration is caused by insufficient remaining space of the primary storage, which means that there is a large amount of data written at this time. Make timely adjustments to the data location and shorten the data migration cycle as the new data migration cycle.

具体的,由于迁移周期时间消耗殆尽引发的迁移,但是却没有实际的数据移动发生,说明系统在该周期内没有显著的读写操作,延长迁移周期,作为新的所述数据迁移周期。Specifically, the migration caused by the exhaustion of the migration cycle time, but no actual data movement occurs, indicating that the system has no significant read and write operations during this cycle, and the migration cycle is extended as the new data migration cycle.

具体的,由于迁移周期消耗殆尽引发的迁移,有正常的数据移动发生,则原有的迁移周期不变。Specifically, due to the migration caused by the exhaustion of the migration cycle, there is normal data movement, and the original migration cycle remains unchanged.

优选的,为所述数据迁移周期,设置上限值和下限值。当缩短所述数据迁移周期的结果低于所述下限值时,将所述下限值作为新的所述数据迁移周期,或者,当延长所述数据迁移周期的结果高于所述上限值时,将所述上限值作为新的所述数据迁移周期。Preferably, an upper limit and a lower limit are set for the data migration period. When the result of shortening the data migration cycle is lower than the lower limit value, use the lower limit value as the new data migration cycle, or, when the result of extending the data migration cycle is higher than the upper limit value, the upper limit value is used as the new data migration period.

优选的,所述调整模块204与所述监视模块201相连接,用于所述双线程重新读取参数后,启动双线程,分别监视分级存储系统中任一级存储的空间使用率和数据迁移周期,即返回第一实施例中的步骤101。Preferably, the adjustment module 204 is connected to the monitoring module 201, and is used to start the two threads after the two threads re-read the parameters to monitor the space usage and data migration of any level of storage in the hierarchical storage system respectively. period, that is, return to step 101 in the first embodiment.

优选的,数据迁移周期调整后,所述双线程重新读取更新后的数据迁移周期参数,重新监视数据迁移条件是否达到。Preferably, after the data migration cycle is adjusted, the two threads re-read the updated data migration cycle parameters, and re-monitor whether the data migration condition is met.

本发明实施例提供一种确定数据迁移时机的方法和装置,旨在解决当前无法动态选择合适的数据迁移时机,既确保能够发挥分级存储系统的优势,又不会有过多的资源用于内耗的问题,不但能够充分利用分级存储系统中的一级存储的空间,也能保证系统及时的调整数据位置,使得系统的访问性能达到最佳。Embodiments of the present invention provide a method and device for determining the timing of data migration, aiming at solving the problem of currently being unable to dynamically select a suitable timing for data migration, ensuring that the advantages of the hierarchical storage system can be brought into play, and that too many resources will not be used for internal consumption It can not only make full use of the first-level storage space in the hierarchical storage system, but also ensure that the system adjusts the data location in time, so that the access performance of the system can reach the best.

本领域技术人员可以理解实施例中的装置中的模块可以按照实施例描述进行分布于实施例的装置中,也可以进行相应变化位于不同于本实施例的一个或多个装置中。上述实施例的模块可以合并为一个模块,也可以进一步拆分成多个子模块。Those skilled in the art can understand that the modules in the device in the embodiment can be distributed in the device in the embodiment according to the description in the embodiment, or can be located in one or more devices different from the embodiment according to corresponding changes. The modules in the above embodiments can be combined into one module, and can also be further split into multiple sub-modules.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台终端设备(可以是手机,个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is a better implementation Way. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions to make a A terminal device (which may be a mobile phone, a personal computer, a server, or a network device, etc.) executes the methods described in various embodiments of the present invention.

以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视本发明的保护范围。The above is only a preferred embodiment of the present invention, it should be pointed out that, for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications can also be made. It should be regarded as the protection scope of the present invention.

Claims (6)

1. A method for determining data migration timing, comprising the steps of:
a: starting double threads, and respectively monitoring the space utilization rate and the data migration period of primary storage in the hierarchical storage system;
b: the double threads periodically judge whether the data migration condition is met, if not, the double threads wait for the same time and then judge until the data migration condition is met, and if yes, the step C is executed;
c: performing the data migration;
d: adjusting the data migration period according to the migration condition;
e: after the data migration period is adjusted, the double-thread reads parameters again and continues to monitor the next round.
2. The method for determining the data migration timing according to claim 1, wherein said periodically determining whether the data migration condition is satisfied in step B comprises:
b1: periodically judging whether the space utilization rate of primary storage in the hierarchical storage system exceeds a set threshold value or not;
and,
b2: and periodically judging whether the data migration period is reached.
3. The method of claim 2, wherein step D comprises:
d1: b1, shortening the data migration period as a new data migration period;
or,
d2: b2, if no actual data movement occurs, the data migration period is extended, and as a new data migration period, if normal data movement occurs, the original migration period is not changed.
4. The method for determining the data migration opportunity according to claim 3, wherein the step D further comprises:
d3: setting an upper limit value and a lower limit value for the data migration period;
d4: and when the result of shortening the data migration period is lower than the lower limit value, taking the lower limit value as a new data migration period, or when the result of prolonging the data migration period is higher than the upper limit value, taking the upper limit value as a new data migration period.
5. An apparatus for determining data migration opportunities, comprising:
the monitoring module is connected with the judging module and used for starting double threads and respectively monitoring the space utilization rate and the data migration period of primary storage in the hierarchical storage system;
the judging module is respectively connected with the monitoring module and the data migration module and is used for periodically judging whether the data migration condition is met or not through the double threads;
a data migration module for performing the data migration;
and the adjusting module is connected with the data migration module and used for adjusting the data migration period according to the migration condition.
6. The apparatus for determining a data migration opportunity according to claim 5, wherein the adjusting module is connected to the monitoring module, and configured to re-read the parameters for the dual thread after the adjustment of the data migration period, and continue the next round of monitoring.
CN201210590171.5A 2012-12-29 2012-12-29 A kind of method and apparatus determining data migration time Active CN103078933B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210590171.5A CN103078933B (en) 2012-12-29 2012-12-29 A kind of method and apparatus determining data migration time

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210590171.5A CN103078933B (en) 2012-12-29 2012-12-29 A kind of method and apparatus determining data migration time

Publications (2)

Publication Number Publication Date
CN103078933A true CN103078933A (en) 2013-05-01
CN103078933B CN103078933B (en) 2015-12-02

Family

ID=48155335

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210590171.5A Active CN103078933B (en) 2012-12-29 2012-12-29 A kind of method and apparatus determining data migration time

Country Status (1)

Country Link
CN (1) CN103078933B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103744623A (en) * 2014-01-10 2014-04-23 浪潮电子信息产业股份有限公司 Method for realizing intelligent degradation of data cached in SSD (Solid State Disk) of storage system
WO2014183514A1 (en) * 2013-11-19 2014-11-20 中兴通讯股份有限公司 Method, device, and computer storage medium for hierarchical storage
CN104573020A (en) * 2015-01-12 2015-04-29 浪潮电子信息产业股份有限公司 Automatic data migration optimization method in hierarchical storage system
WO2016165441A1 (en) * 2015-09-06 2016-10-20 中兴通讯股份有限公司 Migration policy adjustment method, capacity-change suggestion method and device
CN106502578A (en) * 2015-09-06 2017-03-15 中兴通讯股份有限公司 Capacity change suggesting method and device
CN106598500A (en) * 2016-12-16 2017-04-26 郑州云海信息技术有限公司 Hierarchical storage dynamic migration method
CN107239457A (en) * 2016-03-28 2017-10-10 阿里巴巴集团控股有限公司 Data archiving method and device
CN107291752A (en) * 2016-04-01 2017-10-24 中国电信股份有限公司 Data Migration control method and system based on service-aware
CN108897707A (en) * 2018-06-26 2018-11-27 郑州云海信息技术有限公司 A kind of capacity statistical method, device and the equipment of multi-controller
CN111385328A (en) * 2018-12-29 2020-07-07 北京奇虎科技有限公司 Service request processing method and system and electronic equipment
CN112860188A (en) * 2021-02-09 2021-05-28 山东英信计算机技术有限公司 Data migration method, system, device and medium
CN113741819A (en) * 2021-09-15 2021-12-03 第四范式(北京)技术有限公司 Method and device for hierarchical storage of data
CN114579535A (en) * 2020-11-30 2022-06-03 广东亿迅科技有限公司 Distributed data online migration method, device, terminal and storage medium
CN115718644A (en) * 2022-11-25 2023-02-28 国网江苏省电力有限公司南京供电分公司 Computing task cross-region migration method and system for cloud data center

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1751307A (en) * 2002-01-18 2006-03-22 伊迪蒂克公司 A design for storage and retrieval of arbitrary content and application data
US20060136525A1 (en) * 2004-12-21 2006-06-22 Jens-Peter Akelbein Method, computer program product and mass storage device for dynamically managing a mass storage device
CN102136003A (en) * 2011-03-25 2011-07-27 上海交通大学 Large-scale distributed storage system
CN102291450A (en) * 2011-08-08 2011-12-21 浪潮电子信息产业股份有限公司 Data online hierarchical storage method in cluster storage system
CN102456049A (en) * 2010-10-28 2012-05-16 无锡江南计算技术研究所 Data migration method and device and object-oriented distributed file system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1751307A (en) * 2002-01-18 2006-03-22 伊迪蒂克公司 A design for storage and retrieval of arbitrary content and application data
US20060136525A1 (en) * 2004-12-21 2006-06-22 Jens-Peter Akelbein Method, computer program product and mass storage device for dynamically managing a mass storage device
CN102456049A (en) * 2010-10-28 2012-05-16 无锡江南计算技术研究所 Data migration method and device and object-oriented distributed file system
CN102136003A (en) * 2011-03-25 2011-07-27 上海交通大学 Large-scale distributed storage system
CN102291450A (en) * 2011-08-08 2011-12-21 浪潮电子信息产业股份有限公司 Data online hierarchical storage method in cluster storage system

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014183514A1 (en) * 2013-11-19 2014-11-20 中兴通讯股份有限公司 Method, device, and computer storage medium for hierarchical storage
CN104657286A (en) * 2013-11-19 2015-05-27 中兴通讯股份有限公司 Hierarchical storage method and device
CN104657286B (en) * 2013-11-19 2019-05-10 中兴通讯股份有限公司 A kind of classification storage method and device
CN103744623A (en) * 2014-01-10 2014-04-23 浪潮电子信息产业股份有限公司 Method for realizing intelligent degradation of data cached in SSD (Solid State Disk) of storage system
CN104573020B (en) * 2015-01-12 2017-11-10 浪潮电子信息产业股份有限公司 Automatic data migration optimization method in hierarchical storage system
CN104573020A (en) * 2015-01-12 2015-04-29 浪潮电子信息产业股份有限公司 Automatic data migration optimization method in hierarchical storage system
CN106502576A (en) * 2015-09-06 2017-03-15 中兴通讯股份有限公司 Migration strategy method of adjustment, capacity change suggesting method and device
CN106502578B (en) * 2015-09-06 2019-06-11 中兴通讯股份有限公司 Capacity changes suggesting method and device
CN106502576B (en) * 2015-09-06 2020-06-23 中兴通讯股份有限公司 Migration strategy adjusting method and device
WO2016165441A1 (en) * 2015-09-06 2016-10-20 中兴通讯股份有限公司 Migration policy adjustment method, capacity-change suggestion method and device
CN106502578A (en) * 2015-09-06 2017-03-15 中兴通讯股份有限公司 Capacity change suggesting method and device
CN107239457A (en) * 2016-03-28 2017-10-10 阿里巴巴集团控股有限公司 Data archiving method and device
CN107291752A (en) * 2016-04-01 2017-10-24 中国电信股份有限公司 Data Migration control method and system based on service-aware
CN106598500A (en) * 2016-12-16 2017-04-26 郑州云海信息技术有限公司 Hierarchical storage dynamic migration method
CN108897707A (en) * 2018-06-26 2018-11-27 郑州云海信息技术有限公司 A kind of capacity statistical method, device and the equipment of multi-controller
CN111385328A (en) * 2018-12-29 2020-07-07 北京奇虎科技有限公司 Service request processing method and system and electronic equipment
CN111385328B (en) * 2018-12-29 2024-04-05 三六零科技集团有限公司 Business request processing method, system and electronic device
CN114579535A (en) * 2020-11-30 2022-06-03 广东亿迅科技有限公司 Distributed data online migration method, device, terminal and storage medium
CN112860188A (en) * 2021-02-09 2021-05-28 山东英信计算机技术有限公司 Data migration method, system, device and medium
CN113741819A (en) * 2021-09-15 2021-12-03 第四范式(北京)技术有限公司 Method and device for hierarchical storage of data
CN115718644A (en) * 2022-11-25 2023-02-28 国网江苏省电力有限公司南京供电分公司 Computing task cross-region migration method and system for cloud data center

Also Published As

Publication number Publication date
CN103078933B (en) 2015-12-02

Similar Documents

Publication Publication Date Title
CN103078933B (en) A kind of method and apparatus determining data migration time
CN104573119B (en) Towards the Hadoop distributed file system storage methods of energy-conservation in cloud computing
KR101835303B1 (en) Systems and methods for collecting, tracking, and storing system performance and event data for computing devices
CN102577241B (en) Method, device and system for scheduling distributed buffer resources
CN102495857B (en) Load balancing method for distributed database
US9081623B1 (en) Service resource allocation
CN106502578B (en) Capacity changes suggesting method and device
CN105574141B (en) Method and device for carrying out data migration on database
WO2018121334A1 (en) Web application service providing method, apparatus, electronic device and system
CN103412786A (en) High performance server architecture system and data processing method thereof
US10142195B1 (en) Partitioned performance tracking core resource consumption independently
US10148531B1 (en) Partitioned performance: adaptive predicted impact
CN106603618A (en) Cloud platform-based application auto scaling method
CN113055430A (en) Data synchronization method and related equipment
CN114237505B (en) Batch processing method and device for business data and computer equipment
US10033620B1 (en) Partitioned performance adaptive policies and leases
CN107422989A (en) A kind of more copy read methods of Server SAN systems and storage architecture
EP2776941B1 (en) Managing capacity in a data center by suspending tenants
CN111884826A (en) Elastic scaling processing method, system and device for strategy and execution of isomerization
CN107872480B (en) Big data cluster data balancing method and device
KR101890046B1 (en) Concurrent network application scheduling for reduced power consumption
CN104866438B (en) Storage device, storage apparatus control method and electronic equipment
CN103746839B (en) PaaS systems and PaaS are using the VM node scheduling methods in pond
WO2024244981A1 (en) Real-time calculation method, device, and storage medium
CN105740301A (en) Method and apparatus for internal connection adjustment for distributed database

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230103

Address after: Room 301, No. 235, Kexue Avenue, Huangpu District, Guangzhou, Guangdong 510000

Patentee after: OURCHEM INFORMATION CONSULTING CO.,LTD.

Address before: 1068 No. 518055 Guangdong city in Shenzhen Province, Nanshan District City Xili University School Avenue

Patentee before: SHENZHEN INSTITUTES OF ADVANCED TECHNOLOGY

Effective date of registration: 20230103

Address after: 510000 room 606-609, compound office complex building, No. 757, Dongfeng East Road, Yuexiu District, Guangzhou City, Guangdong Province (not for plant use)

Patentee after: China Southern Power Grid Internet Service Co.,Ltd.

Address before: Room 301, No. 235, Kexue Avenue, Huangpu District, Guangzhou, Guangdong 510000

Patentee before: OURCHEM INFORMATION CONSULTING CO.,LTD.