CN111625203A - A method, system, device and medium for hierarchical storage - Google Patents
A method, system, device and medium for hierarchical storage Download PDFInfo
- Publication number
- CN111625203A CN111625203A CN202010754991.8A CN202010754991A CN111625203A CN 111625203 A CN111625203 A CN 111625203A CN 202010754991 A CN202010754991 A CN 202010754991A CN 111625203 A CN111625203 A CN 111625203A
- Authority
- CN
- China
- Prior art keywords
- file
- storage pool
- heat
- value
- threshold
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0604—Improving or facilitating administration, e.g. storage management
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/062—Securing storage systems
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0638—Organizing or formatting or addressing of data
- G06F3/0644—Management of space entities, e.g. partitions, extents, pools
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0646—Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
- G06F3/0647—Migration mechanisms
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0646—Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
- G06F3/0652—Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/067—Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本发明公开了一种分级存储的方法、系统、设备和存储介质,方法包括以下步骤:在分布式对象存储系统中基于第一存储盘设置热存储池,并基于第二存储盘设置冷存储池;响应于对文件进行读操作或写操作,增加文件的热度值,并随后每隔预设时间减少文件的热度值;判断热存储池中的文件的热度值是否小于第一阈值,并判断冷存储池中的文件的热度值是否大于第二阈值;以及响应于热存储池中的文件的热度值小于第一阈值,将文件转移到冷存储池,并且响应于冷存储池中的文件的热度值大于第二阈值,将文件转移到热存储池。本发明提出的方案通过有效利用分布式存储系统中不同介质的性能,兼顾存储系统的性能和成本,提高产品竞争力。
The invention discloses a hierarchical storage method, system, device and storage medium. The method includes the following steps: in a distributed object storage system, a hot storage pool is set based on a first storage disk, and a cold storage pool is set based on the second storage disk. ; In response to a read operation or a write operation on the file, increase the thermal value of the file, and then decrease the thermal value of the file every preset time; determine whether the thermal value of the file in the hot storage pool is less than the first threshold value, and determine whether the thermal value of the file is cold or not. whether the hotness value of the file in the storage pool is greater than the second threshold; and in response to the hotness value of the file in the hot storage pool being less than the first threshold, transferring the file to the cold storage pool, and in response to the hotness of the file in the cold storage pool If the value is greater than the second threshold, move the file to the hot storage pool. The solution proposed by the present invention improves product competitiveness by effectively utilizing the performance of different media in the distributed storage system, taking into account the performance and cost of the storage system.
Description
技术领域technical field
本发明涉及存储领域,更具体地,特别是指一种分级存储的方法、系统、计算机设备及可读介质。The present invention relates to the field of storage, and more particularly, to a method, system, computer device and readable medium for hierarchical storage.
背景技术Background technique
分布式对象存储系统是由多台对象存储服务器组成的存储集群。分布式存储具有高可靠性、高可用性、快速存取、易于扩展等优点。目前存储系统中大量采用的还是HDD机械硬盘,但是随着新的存储介质、SSD和NVME SSD价格的下降,存储系统也慢慢配置了一些SSD硬盘作为存储介质。快速存储介质性能较好,但是容量往往不足,HDD硬盘容量较大,但性能又略显不足,如何兼顾系统性能和成本,就成为了存储系统设计要解决的问题。A distributed object storage system is a storage cluster composed of multiple object storage servers. Distributed storage has the advantages of high reliability, high availability, fast access, and easy expansion. At present, HDD mechanical hard disks are still widely used in storage systems. However, with the decline in the prices of new storage media, SSDs and NVME SSDs, storage systems are gradually equipped with some SSD hard disks as storage media. Fast storage media has better performance, but its capacity is often insufficient. HDD hard disks have larger capacity, but their performance is slightly insufficient. How to balance system performance and cost has become a problem to be solved in storage system design.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本发明实施例的目的在于提出一种分级存储的方法、系统、计算机设备及计算机可读存储介质,通过基于不同的存储盘设置不同的存储池,有效利用分布式存储系统中不同介质的性能,兼顾存储系统的性能和成本,提高产品竞争力。In view of this, the purpose of the embodiments of the present invention is to propose a hierarchical storage method, system, computer equipment and computer-readable storage medium, by setting up different storage pools based on different storage disks, effectively utilizing different storage systems in a distributed storage system. The performance of the media, taking into account the performance and cost of the storage system, improve product competitiveness.
基于上述目的,本发明实施例的一方面提供了一种分级存储的方法,包括如下步骤:在分布式对象存储系统中基于第一存储盘设置热存储池,并基于第二存储盘设置冷存储池;响应于对文件进行读操作或写操作,增加所述文件的热度值,并随后每隔预设时间减少文件的热度值;判断所述热存储池中的文件的热度值是否小于第一阈值,并判断所述冷存储池中的文件的热度值是否大于第二阈值;以及响应于所述热存储池中的文件的热度值小于第一阈值,将所述文件转移到所述冷存储池,并且响应于所述冷存储池中的文件的热度值大于第二阈值,将所述文件转移到所述热存储池。Based on the above purpose, an aspect of the embodiments of the present invention provides a method for hierarchical storage, including the following steps: in a distributed object storage system, a hot storage pool is set based on a first storage disk, and a cold storage pool is set based on a second storage disk. pool; in response to a read operation or a write operation on the file, increase the heat value of the file, and then decrease the heat value of the file every preset time; determine whether the heat value of the file in the hot storage pool is smaller than the first threshold, and determine whether the thermal value of the file in the cold storage pool is greater than a second threshold; and in response to the thermal value of the file in the hot storage pool being less than the first threshold, transfer the file to the cold storage pool, and in response to a file in the cold storage pool having a hotness value greater than a second threshold, transferring the file to the hot storage pool.
在一些实施方式中,还包括:建立文件热度表,并在所述文件热度表中记录所有热度值大于第三阈值的文件和所述文件对应的热度值,并随后每隔预设时间更新所述热度值。In some embodiments, the method further includes: establishing a file heat table, recording all files with a heat value greater than a third threshold and their corresponding heat values in the file heat table, and then updating all files at preset time intervals. the heat value.
在一些实施方式中,还包括:判断所述冷存储池中的文件的热度值是否小于第一阈值;响应于所述冷存储池中的文件的热度值小于第一阈值,对所述文件进行标识,并判断连续标识次数是否达到第四阈值。In some implementations, the method further includes: judging whether the heat value of the file in the cold storage pool is less than a first threshold; in response to the heat value of the file in the cold storage pool being less than the first threshold, performing identification, and determine whether the number of consecutive identifications reaches the fourth threshold.
在一些实施方式中,还包括:响应于连续标识次数达到第四阈值,删除所述文件在所述文件热度表中的记录。In some embodiments, the method further includes: in response to the number of consecutive identifications reaching a fourth threshold, deleting the record of the file in the file heat table.
在一些实施方式中,所述随后每隔预设时间减少文件的热度值包括:每隔预设相同时间对所述文件热度表中的每个文件的热度值减少相同值。In some embodiments, the subsequently reducing the popularity value of the file every preset time includes: reducing the popularity value of each file in the file popularity table by the same value every preset same time.
在一些实施方式中,还包括:判断文件从所述热存储池转移到所述冷存储池或者从所述冷存储池转移到所述热存储池是否超过预定时间。In some embodiments, the method further includes: judging whether the transfer of the file from the hot storage pool to the cold storage pool or from the cold storage pool to the hot storage pool exceeds a predetermined time.
在一些实施方式中,还包括:响应于文件从所述热存储池转移到所述冷存储池或者从所述冷存储池转移到所述热存储池超过预定时间,判断所述文件是否只存在于所述冷存储池。In some embodiments, the method further includes: in response to the file being transferred from the hot storage pool to the cold storage pool or from the cold storage pool to the hot storage pool for more than a predetermined time, determining whether the file only exists in the cold storage pool.
本发明实施例的另一方面,还提供了一种分级存储系统,包括:创建模块,配置用于在分布式对象存储系统中基于第一存储盘设置热存储池,并基于第二存储盘设置冷存储池;执行模块,配置用于响应于对文件进行读操作或写操作,增加所述文件的热度值,并随后每隔预设时间减少文件的热度值;判断模块,配置用于判断所述热存储池中的文件的热度值是否小于第一阈值,并判断所述冷存储池中的文件的热度值是否大于第二阈值;以及转移模块,配置用于响应于所述热存储池中的文件的热度值小于第一阈值,将所述文件转移到所述冷存储池,并且响应于所述冷存储池中的文件的热度值大于第二阈值,将所述文件转移到所述热存储池。Another aspect of the embodiments of the present invention further provides a hierarchical storage system, including: a creation module configured to set a hot storage pool based on a first storage disk and set a hot storage pool based on a second storage disk in a distributed object storage system a cold storage pool; an execution module, configured to increase the heat value of the file in response to a read operation or a write operation on the file, and then decrease the heat value of the file every preset time; a judgment module, configured to judge all determining whether the heat value of the files in the hot storage pool is less than a first threshold, and judging whether the heat value of the files in the cold storage pool is greater than a second threshold; and a transfer module configured to respond to the hot storage pool The heat value of the file is less than the first threshold, the file is transferred to the cold storage pool, and in response to the heat value of the file in the cold storage pool being greater than the second threshold, the file is transferred to the hot storage pool. storage pool.
本发明实施例的又一方面,还提供了一种计算机设备,包括:至少一个处理器;以及存储器,所述存储器存储有可在所述处理器上运行的计算机指令,所述指令由所述处理器执行时实现如上方法的步骤。In yet another aspect of the embodiments of the present invention, there is also provided a computer device, comprising: at least one processor; and a memory, where the memory stores computer instructions that can be executed on the processor, and the instructions are executed by the processor. The processor implements the steps of the above method when executed.
本发明实施例的再一方面,还提供了一种计算机可读存储介质,计算机可读存储介质存储有被处理器执行时实现如上方法步骤的计算机程序。In yet another aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, where the computer-readable storage medium stores a computer program that implements the above method steps when executed by a processor.
本发明具有以下有益技术效果:通过基于不同的存储盘设置不同的存储池,有效利用分布式存储系统中不同介质的性能,兼顾存储系统的性能和成本,提高产品竞争力。The invention has the following beneficial technical effects: by setting up different storage pools based on different storage disks, the performance of different media in the distributed storage system is effectively utilized, the performance and cost of the storage system are taken into consideration, and the product competitiveness is improved.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的实施例。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other embodiments can also be obtained according to these drawings without creative efforts.
图1为本发明提供的分级存储的方法的实施例的示意图;1 is a schematic diagram of an embodiment of a method for hierarchical storage provided by the present invention;
图2为本发明提供的分级存储的计算机设备的实施例的硬件结构示意图。FIG. 2 is a schematic diagram of a hardware structure of an embodiment of a computer device with hierarchical storage provided by the present invention.
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚明白,以下结合具体实施例,并参照附图,对本发明实施例进一步详细说明。In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the embodiments of the present invention will be further described in detail below with reference to the specific embodiments and the accompanying drawings.
需要说明的是,本发明实施例中所有使用“第一”和“第二”的表述均是为了区分两个相同名称非相同的实体或者非相同的参量,可见“第一”“第二”仅为了表述的方便,不应理解为对本发明实施例的限定,后续实施例对此不再一一说明。It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are for the purpose of distinguishing two entities with the same name but not the same or non-identical parameters. It can be seen that "first" and "second" It is only for the convenience of expression and should not be construed as a limitation to the embodiments of the present invention, and subsequent embodiments will not describe them one by one.
基于上述目的,本发明实施例的第一个方面,提出了一种分级存储的方法的实施例。图1示出的是本发明提供的分级存储的方法的实施例的示意图。如图1所示,本发明实施例包括如下步骤:Based on the above purpose, in the first aspect of the embodiments of the present invention, an embodiment of a method for hierarchical storage is proposed. FIG. 1 shows a schematic diagram of an embodiment of a hierarchical storage method provided by the present invention. As shown in Figure 1, the embodiment of the present invention includes the following steps:
S1、在分布式对象存储系统中基于第一存储盘设置热存储池,并基于第二存储盘设置冷存储池;S1. In the distributed object storage system, a hot storage pool is set based on the first storage disk, and a cold storage pool is set based on the second storage disk;
S2、响应于对文件进行读操作或写操作,增加文件的热度值,并随后每隔预设时间减少文件的热度值;S2, in response to a read operation or a write operation on the file, increase the heat value of the file, and then decrease the heat value of the file every preset time;
S3、判断热存储池中的文件的热度值是否小于第一阈值,并判断冷存储池中的文件的热度值是否大于第二阈值;以及S3, judging whether the heat value of the files in the hot storage pool is less than the first threshold, and judging whether the heat value of the files in the cold storage pool is greater than the second threshold; and
S4、响应于热存储池中的文件的热度值小于第一阈值,将文件转移到冷存储池,并且响应于冷存储池中的文件的热度值大于第二阈值,将文件转移到热存储池。S4. In response to the heat value of the file in the hot storage pool being less than the first threshold, transfer the file to the cold storage pool, and in response to the heat value of the file in the cold storage pool being greater than the second threshold, transfer the file to the hot storage pool .
在分布式对象存储系统中基于第一存储盘设置热存储池,并基于第二存储盘设置冷存储池。第一存储盘可以是SSD快速存储盘,第二存储盘可以是HDD慢速盘,可以根据快速存储盘设置热存储池,根据慢速存储盘设置冷存储池。In the distributed object storage system, a hot storage pool is set based on the first storage disk, and a cold storage pool is set based on the second storage disk. The first storage disk may be an SSD fast storage disk, and the second storage disk may be an HDD slow disk, and a hot storage pool may be set according to the fast storage disk, and a cold storage pool may be set according to the slow storage disk.
响应于对文件进行读操作或写操作,增加文件的热度值,并随后每隔预设时间减少文件的热度值。对于每一个文件,都有一个热度值;对文件的读操作和写操作都会增加文件的热度,例如读一次文件,热度值增加100。文件的热度值会定期的衰减,例如,可以每隔一分钟减少50,直到热度值衰减到零。In response to a read operation or a write operation on the file, the hotness value of the file is increased, and then the hotness value of the file is decreased every preset time. For each file, there is a heat value; read and write operations on the file will increase the heat value of the file. For example, if a file is read once, the heat value increases by 100. The heat value of the file will decay periodically, for example, it can decrease by 50 every minute, until the heat value decays to zero.
判断热存储池中的文件的热度值是否小于第一阈值,并判断冷存储池中的文件的热度值是否大于第二阈值。可以设置热度值大于第二阈值的数据为热数据,热度值小于第一阈值的数据为冷数据。第一阈值可以例如是0,第二阈值可以例如是300。如果热存储池中的文件的热度值小于0,则需要被移动到冷存储池,如果冷存储池中的文件的热度值大于300,则可以移动到热存储池。It is judged whether the heat value of the files in the hot storage pool is smaller than the first threshold, and whether the heat value of the files in the cold storage pool is greater than the second threshold. Data with a heat value greater than the second threshold may be set as hot data, and data with a heat value less than the first threshold may be set as cold data. The first threshold may be, for example, 0, and the second threshold may be, for example, 300. If the heat value of the file in the hot storage pool is less than 0, it needs to be moved to the cold storage pool. If the heat value of the file in the cold storage pool is greater than 300, it can be moved to the hot storage pool.
响应于热存储池中的文件的热度值小于第一阈值,将文件转移到冷存储池,并且响应于冷存储池中的文件的热度值大于第二阈值,将文件转移到热存储池。当数据由冷变热时,我们将数据从冷存储池迁移到热存储池,从而可以提高数据的读速度。如果数据从热变冷后,我们将数据从热存储池转向冷存储池,给热存储池腾出空间,用于新的数据存储。The file is transferred to the cold storage pool in response to the hotness value of the file in the hot storage pool being less than the first threshold, and the file is transferred to the hot storage pool in response to the hotness value of the file in the cold storage pool being greater than the second threshold. When the data changes from cold to hot, we migrate the data from the cold storage pool to the hot storage pool, which can improve the read speed of the data. If the data goes from hot to cold, we move the data from the hot storage pool to the cold storage pool to make room for the hot storage pool for new data storage.
在一些实施方式中,还包括:建立文件热度表,并在所述文件热度表中记录所有热度值大于第三阈值的文件和所述文件对应的热度值,并随后每隔预设时间更新所述热度值。RGW表示对象存储网关程序,用于接收网络上来的存数据或读数据的http请求,并根据请求命令,把相关数据存储到存储服务器存储介质,或从存储介质读取数据,并返回给用户。RGW可以建立文件热度表,记录当前活跃文件的热度,当每个对象有写操作或者读操作时,热度会增加,并添加到热度表。第三阈值可以等于第一阈值,也即是在热度表中记录热度值大于零的文件。当然第三阈值也可以不等于第一阈值,第三阈值可以根据具体的情形进行具体的设定。In some embodiments, the method further includes: establishing a file heat table, recording all files with a heat value greater than a third threshold and their corresponding heat values in the file heat table, and then updating all files at preset time intervals. the heat value. RGW represents an object storage gateway program, which is used to receive http requests for storing or reading data from the network, and according to the request commands, store the relevant data in the storage server storage medium, or read data from the storage medium, and return it to the user. RGW can create a file heat table to record the heat of currently active files. When each object has a write or read operation, the heat will increase and be added to the heat table. The third threshold may be equal to the first threshold, that is, files with a heat value greater than zero are recorded in the heat table. Of course, the third threshold may not be equal to the first threshold, and the third threshold may be specifically set according to the specific situation.
RGW会启动一个热数据扫描线程,定期的对热度表的文件进行热度衰减操作,当文件的热度小于第一阈值,并且在热存储池时,会把此文件迁移到冷存储池的命令放入迁移队列;假如文件在冷存储池,但热度又大于第二阈值,就会把文件转移到热存储池的命令放入迁移队列。RGW可以启动一组对象迁移线程,把迁移队列里的文件迁移命令读出来,调用存储池迁移函数完成冷存储池和热存储池相互迁移。RGW will start a hot data scanning thread to periodically reduce the temperature of the files in the heat table. When the temperature of the file is less than the first threshold, and in the hot storage pool, the command to migrate the file to the cold storage pool will be put into Migration queue; if the file is in the cold storage pool, but the temperature is greater than the second threshold, the command to transfer the file to the hot storage pool will be placed in the migration queue. The RGW can start a group of object migration threads, read the file migration commands in the migration queue, and call the storage pool migration function to complete the mutual migration of the cold storage pool and the hot storage pool.
在一些实施方式中,还包括:判断所述冷存储池中的文件的热度值是否小于第一阈值;响应于所述冷存储池中的文件的热度值小于第一阈值,对所述文件进行标识,并判断连续标识次数是否达到第四阈值。可以修改冷存储池中的热度值持续小于第一阈值的文件的状态为DELETING。In some implementations, the method further includes: judging whether the heat value of the file in the cold storage pool is less than a first threshold; in response to the heat value of the file in the cold storage pool being less than the first threshold, performing identification, and determine whether the number of consecutive identifications reaches the fourth threshold. You can modify the status of files in the cold storage pool whose hotness value is continuously lower than the first threshold to be DELETING.
在一些实施方式中,还包括:响应于连续标识次数达到第四阈值,删除所述文件在所述文件热度表中的记录。第四阈值可以例如为三,当文件处于DELETING状态三个热度扫描周期后,会从存储池热度表对象中删除该文件对象。In some embodiments, the method further includes: in response to the number of consecutive identifications reaching a fourth threshold, deleting the record of the file in the file heat table. The fourth threshold may be, for example, three. When the file is in the DELETING state for three heat scanning cycles, the file object will be deleted from the storage pool heat table object.
在一些实施方式中,所述随后每隔预设时间减少文件的热度值包括:每隔预设相同时间对所述文件热度表中的每个文件的热度值减少相同值。In some embodiments, the subsequently reducing the popularity value of the file every preset time includes: reducing the popularity value of each file in the file popularity table by the same value every preset same time.
在一些实施方式中,还包括:判断文件从所述热存储池转移到所述冷存储池或者从所述冷存储池转移到所述热存储池是否超过预定时间。如果文件转移超过预定时间则可能表明出现了异常,因此,需要判断转移的时间是否超过预定时间。In some embodiments, the method further includes: judging whether the transfer of the file from the hot storage pool to the cold storage pool or from the cold storage pool to the hot storage pool exceeds a predetermined time. If the file transfer exceeds the predetermined time, it may indicate that an abnormality has occurred. Therefore, it is necessary to determine whether the transfer time exceeds the predetermined time.
在一些实施方式中,还包括:响应于文件从所述热存储池转移到所述冷存储池或者从所述冷存储池转移到所述热存储池超过预定时间,判断所述文件是否只存在于所述冷存储池。如果文件从热存储池转移到冷存储池超时,并且该文件只存在冷存储池,说明已经转移成功,不需要再进行操作,如果该文件在热存储池和冷存储池都有,或者只存在于热存储池,则再次进行转移。如果该文件在热存储池和冷存储池均没有,直接对该文件进行初始化。In some embodiments, the method further includes: in response to the file being transferred from the hot storage pool to the cold storage pool or from the cold storage pool to the hot storage pool for more than a predetermined time, determining whether the file only exists in the cold storage pool. If the transfer of the file from the hot storage pool to the cold storage pool times out, and the file only exists in the cold storage pool, it means that the transfer has been successful and no further operations are required. If the file exists in both the hot storage pool and the cold storage pool, or only exists in the cold storage pool For hot storage pools, transfer again. If the file does not exist in either the hot storage pool or the cold storage pool, initialize the file directly.
下面以写入热存储池的一个文件为例,对本发明的方法进行说明:The method of the present invention is described below by taking a file written into the hot storage pool as an example:
刚开始文件处于INITIAL(初始)状态,如果写入一个文件到热存储池,文件的状态会变为HOT状态,并把此文件头加入热度表;这样文件就纳入了热度状态机的管理,热度扫描线程会定期执行,每个执行周期都会降低热度表中文件的热度,然后执行热度状态机函数。At the beginning, the file is in the INITIAL (initial) state. If a file is written to the hot storage pool, the state of the file will change to the HOT state, and the file header is added to the heat table; in this way, the file is included in the management of the heat state machine, and the heat The scan thread is executed periodically, and each execution cycle reduces the heat of the file in the heat table, and then executes the heat state machine function.
如果没有读写操作,处于HOT状态的文件的热度值会在几个热度扫描线程执行周期后变到0,这时进行状态机判断时,状态机函数就会把数据状态改为MOVING_TO_COLD状态,同时把此对象转移到冷存储池的命令,放入迁移队列。If there is no read and write operation, the heat value of the file in the HOT state will change to 0 after several heat scan thread execution cycles. At this time, when the state machine judges, the state machine function will change the data state to MOVING_TO_COLD state, and at the same time The command to transfer this object to the cold storage pool is placed in the migration queue.
迁移线程从迁移队列读到迁移此对象的命令,执行迁移函数把此对象迁移到冷存储池,并删除掉热存储池对象,然后就会把对象置为COLD状态;如果转移过程出错,会置状态为ERR状态。The migration thread reads the command to migrate the object from the migration queue, executes the migration function to migrate the object to the cold storage pool, deletes the object from the hot storage pool, and then sets the object to the COLD state; if there is an error in the transfer process, it will set The state is ERR state.
当文件处于COLD状态,且热度小于0时,状态机就会把文件状态置为DELETING状态,且会把热度表中的该文件删掉。当文件处于DELETING状态,落盘到存储池热度表对象时,其他RGW会从存储池热度表对象读到该文件处于DELETING状态,会把热度表中该文件删除。When the file is in the COLD state and the heat is less than 0, the state machine will set the file state to the DELETING state and delete the file in the heat table. When the file is in the DELETING state and is placed on the storage pool heat table object, other RGWs will read the file in the DELETING state from the storage pool heat table object, and delete the file in the heat table.
当文件处于DELETING状态,三个热度扫描周期后,会从存储池热度表对象中删除该文件对象,然后文件回到初始状态。When the file is in the DELETING state, after three heat scan cycles, the file object will be deleted from the storage pool heat table object, and then the file will return to the initial state.
本发明实施例中,热度表用于记录文件名称、文件的热度和状态信息。当前系统中的每一个热度大于零的文件,都会被添加到热度表记录下来,每一个热度小于零,文件状态为冷的文件(文件在冷存储池),都会从热度表移除。使文件热度表保持较小的规模,以提高查找的效率,减少内存占用量。热度表采取了周期性落盘的机制,当热度扫描线程会周期性的执行,在执行开始会从存储池中读取热度表信息,当对热度表处理完毕后,会再写回存储池。这样会防止系统突然断电,造成的热度表丢失。In this embodiment of the present invention, the heat table is used to record the file name, the file's heat and state information. Every file in the current system with a temperature greater than zero will be added to the heat table and recorded, and every file whose temperature is less than zero and the file status is cold (the file is in the cold storage pool) will be removed from the heat table. Keep the file heat table small to improve search efficiency and reduce memory usage. The heat table adopts the mechanism of periodic disk placement. When the heat scan thread is executed periodically, the heat table information will be read from the storage pool at the beginning of execution. After the heat table is processed, it will be written back to the storage pool. This will prevent the heat meter from being lost due to sudden power failure of the system.
本发明实施例中,由于考虑存储系统的海量数据对存储系统的迁移速度的要求,采用多迁移线程并发迁移的设计。热度扫描线程会把通过热度状态机处理得到的需要转移的文件和迁移方向放入迁移队列。我们建立的迁移线程组,会周期性循环从迁移队列获取迁移命令,完成迁移工作,并反馈设置文件状态。In the embodiment of the present invention, a design of concurrent migration of multiple migration threads is adopted due to the consideration of the requirements of the massive data of the storage system on the migration speed of the storage system. The heat scan thread will put the files that need to be transferred and the direction of migration obtained through the heat state machine processing into the migration queue. The migration thread group we established will periodically cycle to obtain migration commands from the migration queue, complete the migration work, and report the status of the set files.
需要特别指出的是,上述分级存储的方法的各个实施例中的各个步骤均可以相互交叉、替换、增加、删减,因此,这些合理的排列组合变换之于分级存储的方法也应当属于本发明的保护范围,并且不应将本发明的保护范围局限在实施例之上。It should be specially pointed out that each step in each embodiment of the above-mentioned hierarchical storage method can be intersected, replaced, added, and deleted. Therefore, the method for hierarchical storage by these reasonable permutations and combinations should also belong to the present invention. The protection scope of the present invention should not be limited to the embodiments.
基于上述目的,本发明实施例的第二个方面,提出了一种分级存储系统,包括:创建模块,配置用于在分布式对象存储系统中基于第一存储盘设置热存储池,并基于第二存储盘设置冷存储池;执行模块,配置用于响应于对文件进行读操作或写操作,增加所述文件的热度值,并随后每隔预设时间减少文件的热度值;判断模块,配置用于判断所述热存储池中的文件的热度值是否小于第一阈值,并判断所述冷存储池中的文件的热度值是否大于第二阈值;以及转移模块,配置用于响应于所述热存储池中的文件的热度值小于第一阈值,将所述文件转移到所述冷存储池,并且响应于所述冷存储池中的文件的热度值大于第二阈值,将所述文件转移到所述热存储池。Based on the above purpose, in a second aspect of the embodiments of the present invention, a hierarchical storage system is proposed, including: a creation module configured to set a hot storage pool based on a first storage disk in a distributed object storage system, and based on a first storage disk Two storage disks set up a cold storage pool; an execution module, configured to respond to a read operation or a write operation on the file, increase the heat value of the file, and then decrease the heat value of the file every preset time; the judgment module, configured for judging whether the heat value of the files in the hot storage pool is less than a first threshold, and judging whether the heat value of the files in the cold storage pool is greater than a second threshold; and a transfer module, configured to respond to the The file in the hot storage pool has a hotness value less than a first threshold, the file is transferred to the cold storage pool, and in response to the hotness value of the file in the cold storage pool is greater than a second threshold, the file is transferred to the thermal storage pool.
在一些实施方式中,还包括:热度表模块,配置用于建立文件热度表,并在所述文件热度表中记录所有热度值大于第三阈值的文件和所述文件对应的热度值,并随后每隔预设时间更新所述热度值。In some embodiments, it further includes: a heat table module, configured to establish a file heat table, and record all files with a heat value greater than a third threshold and the corresponding heat values of the files in the file heat table, and then The heat value is updated every preset time.
在一些实施方式中,还包括第二判断模块,配置用于:判断所述冷存储池中的文件的热度值是否小于第一阈值;响应于所述冷存储池中的文件的热度值小于第一阈值,对所述文件进行标识,并判断连续标识次数是否达到第四阈值。In some embodiments, a second judgment module is further included, configured to: judge whether the heat value of the files in the cold storage pool is less than a first threshold; in response to the heat value of the files in the cold storage pool being less than the first threshold A threshold is used to identify the file, and it is determined whether the number of consecutive identifications reaches a fourth threshold.
在一些实施方式中,还包括:删除模块,配置用于响应于连续标识次数达到第四阈值,删除所述文件在所述文件热度表中的记录。In some embodiments, the method further includes: a deletion module, configured to delete the record of the file in the file heat table in response to the number of consecutive identifications reaching a fourth threshold.
在一些实施方式中,所述执行模块还配置用于:每隔预设相同时间对所述文件热度表中的每个文件的热度值减少相同值。In some embodiments, the execution module is further configured to: decrease the heat value of each file in the file heat table by the same value every preset same time.
在一些实施方式中,还包括:第三判断模块,配置用于判断文件从所述热存储池转移到所述冷存储池或者从所述冷存储池转移到所述热存储池是否超过预定时间。In some embodiments, it further includes: a third judging module configured to judge whether the transfer of the file from the hot storage pool to the cold storage pool or from the cold storage pool to the hot storage pool exceeds a predetermined time .
在一些实施方式中,还包括:第四判断模块,配置用于响应于文件从所述热存储池转移到所述冷存储池或者从所述冷存储池转移到所述热存储池超过预定时间,判断所述文件是否只存在于所述冷存储池。In some embodiments, it further includes: a fourth judgment module, configured to respond to the file being transferred from the hot storage pool to the cold storage pool or transferred from the cold storage pool to the hot storage pool for more than a predetermined time , and determine whether the file exists only in the cold storage pool.
基于上述目的,本发明实施例的第三个方面,提出了一种计算机设备,包括:至少一个处理器;以及存储器,存储器存储有可在处理器上运行的计算机指令,指令由处理器执行以实现如下步骤:S1、在分布式对象存储系统中基于第一存储盘设置热存储池,并基于第二存储盘设置冷存储池;S2、响应于对文件进行读操作或写操作,增加文件的热度值,并随后每隔预设时间减少文件的热度值;S3、判断热存储池中的文件的热度值是否小于第一阈值,并判断冷存储池中的文件的热度值是否大于第二阈值;以及S4、响应于热存储池中的文件的热度值小于第一阈值,将文件转移到冷存储池,并且响应于冷存储池中的文件的热度值大于第二阈值,将文件转移到热存储池。Based on the above objective, in a third aspect of the embodiments of the present invention, a computer device is provided, including: at least one processor; and a memory, where the memory stores computer instructions that can be executed on the processor, and the instructions are executed by the processor to The following steps are implemented: S1. In the distributed object storage system, a hot storage pool is set based on the first storage disk, and a cold storage pool is set based on the second storage disk; heat value, and then reduce the heat value of the file every preset time; S3, determine whether the heat value of the file in the hot storage pool is less than the first threshold, and judge whether the heat value of the file in the cold storage pool is greater than the second threshold value and S4, in response to the heat value of the file in the hot storage pool being less than the first threshold value, transfer the file to the cold storage pool, and in response to the heat value of the file in the cold storage pool being greater than the second threshold value, transfer the file to the hot storage pool. storage pool.
在一些实施方式中,还包括:建立文件热度表,并在所述文件热度表中记录所有热度值大于第三阈值的文件和所述文件对应的热度值,并随后每隔预设时间更新所述热度值。In some embodiments, the method further includes: establishing a file heat table, recording all files with a heat value greater than a third threshold and their corresponding heat values in the file heat table, and then updating all files at preset time intervals. the heat value.
在一些实施方式中,还包括:判断所述冷存储池中的文件的热度值是否小于第一阈值;响应于所述冷存储池中的文件的热度值小于第一阈值,对所述文件进行标识,并判断连续标识次数是否达到第四阈值。In some implementations, the method further includes: judging whether the heat value of the file in the cold storage pool is less than a first threshold; in response to the heat value of the file in the cold storage pool being less than the first threshold, performing identification, and determine whether the number of consecutive identifications reaches the fourth threshold.
在一些实施方式中,还包括:响应于连续标识次数达到第四阈值,删除所述文件在所述文件热度表中的记录。In some embodiments, the method further includes: in response to the number of consecutive identifications reaching a fourth threshold, deleting the record of the file in the file heat table.
在一些实施方式中,所述随后每隔预设时间减少文件的热度值包括:每隔预设相同时间对所述文件热度表中的每个文件的热度值减少相同值。In some embodiments, the subsequently reducing the popularity value of the file every preset time includes: reducing the popularity value of each file in the file popularity table by the same value every preset same time.
在一些实施方式中,还包括:判断文件从所述热存储池转移到所述冷存储池或者从所述冷存储池转移到所述热存储池是否超过预定时间。In some embodiments, the method further includes: judging whether the transfer of the file from the hot storage pool to the cold storage pool or from the cold storage pool to the hot storage pool exceeds a predetermined time.
在一些实施方式中,还包括:响应于文件从所述热存储池转移到所述冷存储池或者从所述冷存储池转移到所述热存储池超过预定时间,判断所述文件是否只存在于所述冷存储池。In some embodiments, the method further includes: in response to the file being transferred from the hot storage pool to the cold storage pool or from the cold storage pool to the hot storage pool for more than a predetermined time, determining whether the file only exists in the cold storage pool.
如图2所示,为本发明提供的上述分级存储的计算机设备的一个实施例的硬件结构示意图。As shown in FIG. 2 , it is a schematic diagram of the hardware structure of an embodiment of the above-mentioned hierarchical storage computer device provided by the present invention.
以如图2所示的装置为例,在该装置中包括一个处理器301以及一个存储器302,并还可以包括:输入装置303和输出装置304。Taking the device shown in FIG. 2 as an example, the device includes a
处理器301、存储器302、输入装置303和输出装置304可以通过总线或者其他方式连接,图2中以通过总线连接为例。The
存储器302作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如本申请实施例中的分级存储的方法对应的程序指令/模块。处理器301通过运行存储在存储器302中的非易失性软件程序、指令以及模块,从而执行服务器的各种功能应用以及数据处理,即实现上述方法实施例的分级存储的方法。As a non-volatile computer-readable storage medium, the
存储器302可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据分级存储的方法的使用所创建的数据等。此外,存储器302可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器302可选包括相对于处理器301远程设置的存储器,这些远程存储器可以通过网络连接至本地模块。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The
输入装置303可接收输入的用户名和密码等信息。输出装置304可包括显示屏等显示设备。The
一个或者多个分级存储的方法对应的程序指令/模块存储在存储器302中,当被处理器301执行时,执行上述任意方法实施例中的分级存储的方法。The program instructions/modules corresponding to one or more hierarchical storage methods are stored in the
执行上述分级存储的方法的计算机设备的任何一个实施例,可以达到与之对应的前述任意方法实施例相同或者相类似的效果。Any embodiment of the computer device that executes the above-mentioned method for hierarchical storage can achieve the same or similar effects as any of the foregoing method embodiments corresponding to it.
本发明还提供了一种计算机可读存储介质,计算机可读存储介质存储有被处理器执行时执行如上方法的计算机程序。The present invention also provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program that executes the above method when executed by a processor.
最后需要说明的是,本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关硬件来完成,分级存储的方法的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,程序的存储介质可为磁碟、光盘、只读存储记忆体(ROM)或随机存储记忆体(RAM)等。上述计算机程序的实施例,可以达到与之对应的前述任意方法实施例相同或者相类似的效果。Finally, it should be noted that those of ordinary skill in the art can understand that all or part of the process in the method of the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program of the hierarchical storage method can be stored in a computer readable In the storage medium, when the program is executed, it may include the processes of the foregoing method embodiments. Wherein, the storage medium of the program may be a magnetic disk, an optical disk, a read only memory (ROM), or a random access memory (RAM) or the like. The above computer program embodiments can achieve the same or similar effects as any of the foregoing method embodiments corresponding thereto.
此外,根据本发明实施例公开的方法还可以被实现为由处理器执行的计算机程序,该计算机程序可以存储在计算机可读存储介质中。在该计算机程序被处理器执行时,执行本发明实施例公开的方法中限定的上述功能。In addition, the methods disclosed according to the embodiments of the present invention may also be implemented as a computer program executed by a processor, and the computer program may be stored in a computer-readable storage medium. When the computer program is executed by the processor, the above-mentioned functions defined in the methods disclosed in the embodiments of the present invention are executed.
此外,上述方法步骤以及系统单元也可以利用控制器以及用于存储使得控制器实现上述步骤或单元功能的计算机程序的计算机可读存储介质实现。In addition, the above-mentioned method steps and system units can also be implemented by using a controller and a computer-readable storage medium for storing a computer program that enables the controller to implement the functions of the above-mentioned steps or units.
此外,应该明白的是,本文的计算机可读存储介质(例如,存储器)可以是易失性存储器或非易失性存储器,或者可以包括易失性存储器和非易失性存储器两者。作为例子而非限制性的,非易失性存储器可以包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦写可编程ROM(EEPROM)或快闪存储器。易失性存储器可以包括随机存取存储器(RAM),该RAM可以充当外部高速缓存存储器。作为例子而非限制性的,RAM 可以以多种形式获得,比如同步RAM(DRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据速率SDRAM(DDRSDRAM)、增强SDRAM(ESDRAM)、同步链路DRAM(SLDRAM)、以及直接Rambus RAM(DRRAM)。所公开的方面的存储设备意在包括但不限于这些和其它合适类型的存储器。In addition, it should be understood that computer-readable storage media (eg, memory) herein can be volatile memory or non-volatile memory, or can include both volatile and non-volatile memory. By way of example and not limitation, nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory memory. Volatile memory can include random access memory (RAM), which can act as external cache memory. By way of example and not limitation, RAM is available in various forms such as Synchronous RAM (DRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The storage devices of the disclosed aspects are intended to include, but not be limited to, these and other suitable types of memory.
本领域技术人员还将明白的是,结合这里的公开所描述的各种示例性逻辑块、模块、电路和算法步骤可以被实现为电子硬件、计算机软件或两者的组合。为了清楚地说明硬件和软件的这种可互换性,已经就各种示意性组件、方块、模块、电路和步骤的功能对其进行了一般性的描述。这种功能是被实现为软件还是被实现为硬件取决于具体应用以及施加给整个系统的设计约束。本领域技术人员可以针对每种具体应用以各种方式来实现的功能,但是这种实现决定不应被解释为导致脱离本发明实施例公开的范围。Those skilled in the art will also appreciate that the various exemplary logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends on the specific application and design constraints imposed on the overall system. Those skilled in the art may implement the functions in various ways for each specific application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments of the present invention.
结合这里的公开所描述的各种示例性逻辑块、模块和电路可以利用被设计成用于执行这里功能的下列部件来实现或执行:通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或其它可编程逻辑器件、分立门或晶体管逻辑、分立的硬件组件或者这些部件的任何组合。通用处理器可以是微处理器,但是可替换地,处理器可以是任何传统处理器、控制器、微控制器或状态机。处理器也可以被实现为计算设备的组合,例如,DSP和微处理器的组合、多个微处理器、一个或多个微处理器结合DSP和/或任何其它这种配置。The various exemplary logical blocks, modules, and circuits described in connection with the disclosure herein can be implemented or executed using the following components designed to perform the functions herein: general purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASIC), Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. A general-purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, eg, a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors in combination with a DSP, and/or any other such configuration.
结合这里的公开所描述的方法或算法的步骤可以直接包含在硬件中、由处理器执行的软件模块中或这两者的组合中。软件模块可以驻留在RAM存储器、快闪存储器、ROM存储器、EPROM存储器、EEPROM存储器、寄存器、硬盘、可移动盘、CD-ROM、或本领域已知的任何其它形式的存储介质中。示例性的存储介质被耦合到处理器,使得处理器能够从该存储介质中读取信息或向该存储介质写入信息。在一个替换方案中,存储介质可以与处理器集成在一起。处理器和存储介质可以驻留在ASIC中。ASIC可以驻留在用户终端中。在一个替换方案中,处理器和存储介质可以作为分立组件驻留在用户终端中。The steps of a method or algorithm described in connection with the disclosures herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor, such that the processor can read information from, and write information to, the storage medium. In an alternative, the storage medium may be integrated with the processor. The processor and storage medium may reside in an ASIC. The ASIC may reside in the user terminal. In an alternative, the processor and storage medium may reside in the user terminal as discrete components.
在一个或多个示例性设计中,功能可以在硬件、软件、固件或其任意组合中实现。如果在软件中实现,则可以将功能作为一个或多个指令或代码存储在计算机可读介质上或通过计算机可读介质来传送。计算机可读介质包括计算机存储介质和通信介质,该通信介质包括有助于将计算机程序从一个位置传送到另一个位置的任何介质。存储介质可以是能够被通用或专用计算机访问的任何可用介质。作为例子而非限制性的,该计算机可读介质可以包括RAM、ROM、EEPROM、CD-ROM或其它光盘存储设备、磁盘存储设备或其它磁性存储设备,或者是可以用于携带或存储形式为指令或数据结构的所需程序代码并且能够被通用或专用计算机或者通用或专用处理器访问的任何其它介质。此外,任何连接都可以适当地称为计算机可读介质。例如,如果使用同轴线缆、光纤线缆、双绞线、数字用户线路(DSL)或诸如红外线、无线电和微波的无线技术来从网站、服务器或其它远程源发送软件,则上述同轴线缆、光纤线缆、双绞线、DSL或诸如红外线、无线电和微波的无线技术均包括在介质的定义。如这里所使用的,磁盘和光盘包括压缩盘(CD)、激光盘、光盘、数字多功能盘(DVD)、软盘、蓝光盘,其中磁盘通常磁性地再现数据,而光盘利用激光光学地再现数据。上述内容的组合也应当包括在计算机可读介质的范围内。In one or more exemplary designs, functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage medium can be any available medium that can be accessed by a general purpose or special purpose computer. By way of example and not limitation, the computer-readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage devices, magnetic disk storage devices or other magnetic storage devices, or may be used to carry or store instructions in the form of or data structures and any other medium that can be accessed by a general purpose or special purpose computer or a general purpose or special purpose processor. Also, any connection is properly termed a computer-readable medium. For example, if coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave are used to send software from a website, server, or other remote source, the above coaxial cable Cable, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, radio and microwave are all included in the definition of medium. As used herein, magnetic disks and optical disks include compact disks (CDs), laser disks, optical disks, digital versatile disks (DVDs), floppy disks, blu-ray disks, where disks usually reproduce data magnetically, while optical disks reproduce data optically with lasers . Combinations of the above should also be included within the scope of computer-readable media.
以上是本发明公开的示例性实施例,但是应当注意,在不背离权利要求限定的本发明实施例公开的范围的前提下,可以进行多种改变和修改。根据这里描述的公开实施例的方法权利要求的功能、步骤和/或动作不需以任何特定顺序执行。此外,尽管本发明实施例公开的元素可以以个体形式描述或要求,但除非明确限制为单数,也可以理解为多个。The above are exemplary embodiments of the present disclosure, but it should be noted that various changes and modifications may be made without departing from the scope of the disclosure of the embodiments of the present invention as defined in the claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements disclosed in the embodiments of the present invention may be described or claimed in the singular, unless explicitly limited to the singular, the plural may also be construed.
应当理解的是,在本文中使用的,除非上下文清楚地支持例外情况,单数形式“一个”旨在也包括复数形式。还应当理解的是,在本文中使用的“和/或”是指包括一个或者一个以上相关联地列出的项目的任意和所有可能组合。It should be understood that, as used herein, the singular form "a" is intended to include the plural form as well, unless the context clearly supports an exception. It will also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
上述本发明实施例公开实施例序号仅仅为了描述,不代表实施例的优劣。The above-mentioned embodiments of the present invention disclose the serial numbers of the embodiments only for description, and do not represent the advantages and disadvantages of the embodiments.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps of implementing the above embodiments can be completed by hardware, or can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium. The storage medium can be a read-only memory, a magnetic disk or an optical disk, and the like.
所属领域的普通技术人员应当理解:以上任何实施例的讨论仅为示例性的,并非旨在暗示本发明实施例公开的范围(包括权利要求)被限于这些例子;在本发明实施例的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,并存在如上的本发明实施例的不同方面的许多其它变化,为了简明它们没有在细节中提供。因此,凡在本发明实施例的精神和原则之内,所做的任何省略、修改、等同替换、改进等,均应包含在本发明实施例的保护范围之内。Those of ordinary skill in the art should understand that the discussion of any of the above embodiments is only exemplary, and is not intended to imply that the scope of the disclosure (including the claims) of the embodiments of the present invention is limited to these examples; under the idea of the embodiments of the present invention , the technical features in the above embodiments or different embodiments can also be combined, and there are many other changes in different aspects of the above embodiments of the present invention, which are not provided in detail for the sake of brevity. Therefore, any omission, modification, equivalent replacement, improvement, etc. made within the spirit and principle of the embodiments of the present invention should be included within the protection scope of the embodiments of the present invention.
Claims (9)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010754991.8A CN111625203A (en) | 2020-07-31 | 2020-07-31 | A method, system, device and medium for hierarchical storage |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010754991.8A CN111625203A (en) | 2020-07-31 | 2020-07-31 | A method, system, device and medium for hierarchical storage |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN111625203A true CN111625203A (en) | 2020-09-04 |
Family
ID=72259600
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010754991.8A Pending CN111625203A (en) | 2020-07-31 | 2020-07-31 | A method, system, device and medium for hierarchical storage |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111625203A (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112463054A (en) * | 2020-11-27 | 2021-03-09 | 苏州浪潮智能科技有限公司 | Method and equipment for improving read-write performance |
| CN114924696A (en) * | 2022-07-18 | 2022-08-19 | 上海有孚数迅科技有限公司 | Method, apparatus, medium, and program product for storage management |
| CN116185995A (en) * | 2023-02-24 | 2023-05-30 | 杭州数梦工场科技有限公司 | Data migration method, device, electronic device and storage medium |
| CN117807045A (en) * | 2024-03-01 | 2024-04-02 | 星云海数字科技股份有限公司 | Multistage file system and construction method thereof |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104462240A (en) * | 2014-11-18 | 2015-03-25 | 浪潮(北京)电子信息产业有限公司 | Method and system for realizing hierarchical storage and management in cloud storage |
| US20150149709A1 (en) * | 2013-11-27 | 2015-05-28 | Alibaba Group Holding Limited | Hybrid storage |
| CN107193500A (en) * | 2017-05-26 | 2017-09-22 | 郑州云海信息技术有限公司 | A kind of distributed file system Bedding storage method and system |
| CN108874311A (en) * | 2018-05-29 | 2018-11-23 | 北京盛和大地数据科技有限公司 | Merge the data migration method and device in storage system |
| CN108920100A (en) * | 2018-06-25 | 2018-11-30 | 重庆邮电大学 | Read-write model optimization and isomery copy combined method based on Ceph |
-
2020
- 2020-07-31 CN CN202010754991.8A patent/CN111625203A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20150149709A1 (en) * | 2013-11-27 | 2015-05-28 | Alibaba Group Holding Limited | Hybrid storage |
| CN104462240A (en) * | 2014-11-18 | 2015-03-25 | 浪潮(北京)电子信息产业有限公司 | Method and system for realizing hierarchical storage and management in cloud storage |
| CN107193500A (en) * | 2017-05-26 | 2017-09-22 | 郑州云海信息技术有限公司 | A kind of distributed file system Bedding storage method and system |
| CN108874311A (en) * | 2018-05-29 | 2018-11-23 | 北京盛和大地数据科技有限公司 | Merge the data migration method and device in storage system |
| CN108920100A (en) * | 2018-06-25 | 2018-11-30 | 重庆邮电大学 | Read-write model optimization and isomery copy combined method based on Ceph |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112463054A (en) * | 2020-11-27 | 2021-03-09 | 苏州浪潮智能科技有限公司 | Method and equipment for improving read-write performance |
| CN112463054B (en) * | 2020-11-27 | 2023-01-06 | 苏州浪潮智能科技有限公司 | Method and equipment for improving read-write performance |
| CN114924696A (en) * | 2022-07-18 | 2022-08-19 | 上海有孚数迅科技有限公司 | Method, apparatus, medium, and program product for storage management |
| CN116185995A (en) * | 2023-02-24 | 2023-05-30 | 杭州数梦工场科技有限公司 | Data migration method, device, electronic device and storage medium |
| CN117807045A (en) * | 2024-03-01 | 2024-04-02 | 星云海数字科技股份有限公司 | Multistage file system and construction method thereof |
| CN117807045B (en) * | 2024-03-01 | 2024-05-28 | 星云海数字科技股份有限公司 | Multistage file system and construction method thereof |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111625203A (en) | A method, system, device and medium for hierarchical storage | |
| CN111291023A (en) | A method, system, device and medium for data migration | |
| CN111240595A (en) | Method, system, equipment and medium for optimizing storage cache | |
| CN111708484A (en) | A method, system, device and medium for controlling data brushing speed | |
| CN110032449A (en) | A kind of method and device for the performance optimizing GPU server | |
| CN111581126A (en) | Method, device, equipment and medium for saving log data based on SSD | |
| CN105447059A (en) | Data processing method and device | |
| CN115686385B (en) | A data storage method, device, computer equipment and storage medium | |
| CN111352586B (en) | Directory aggregation method, device, equipment and medium for accelerating file reading and writing | |
| CN111258856A (en) | A method, system, device and medium for monitoring the running state of a solid state hard disk | |
| CN113821168B (en) | Shared storage migration system and method, electronic equipment and storage medium | |
| CN110727404A (en) | Data deduplication method and device based on storage end and storage medium | |
| CN111708664A (en) | A client log management method, device and medium | |
| CN111414136A (en) | A method, system, device and medium for creating a storage pool | |
| CN114527938A (en) | Data reading method, system, medium and device based on solid state disk | |
| CN111736765B (en) | Method, device and medium for supervising data block state | |
| CN111338852A (en) | A method, system, device and medium for creating a snapshot of a storage active-active volume | |
| CN111737201A (en) | An open file closing method, computer device and storage medium | |
| CN110780994A (en) | A method, device and medium for regulating memory | |
| WO2024187818A1 (en) | Data migration method, system and device and non-volatile readable storage medium | |
| CN111352589B (en) | Distributed storage method, device, equipment and readable medium | |
| CN110413433A (en) | A recovery method, device and storage medium after Maria DB cluster failure | |
| CN111309264A (en) | A method, system, device, and media for making directory quotas compatible with snapshots | |
| WO2023207132A1 (en) | Data storage method and apparatus, and device and medium | |
| CN111291007A (en) | File aggregation method, system, device and medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200904 |