[go: up one dir, main page]

CN108228110A - A kind of method and apparatus for migrating resource data - Google Patents

A kind of method and apparatus for migrating resource data Download PDF

Info

Publication number
CN108228110A
CN108228110A CN201810098512.4A CN201810098512A CN108228110A CN 108228110 A CN108228110 A CN 108228110A CN 201810098512 A CN201810098512 A CN 201810098512A CN 108228110 A CN108228110 A CN 108228110A
Authority
CN
China
Prior art keywords
resource data
storage medium
hotspot
hotspot value
value
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
Application number
CN201810098512.4A
Other languages
Chinese (zh)
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.)
Wangsu Science and Technology Co Ltd
Original Assignee
Wangsu Science and Technology Co Ltd
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 Wangsu Science and Technology Co Ltd filed Critical Wangsu Science and Technology Co Ltd
Priority to CN201810098512.4A priority Critical patent/CN108228110A/en
Publication of CN108228110A publication Critical patent/CN108228110A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed 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 kind of method and apparatus for migrating resource data, belong to technical field of data storage.The method includes:The hot spot value of all resource datas stored in the first storage medium and the second storage medium is periodically updated one by one, wherein, the read or write speed of second storage medium is higher than first storage medium;After the hot spot value update of any resource data, the Secondary resource data that hot spot value is minimum in highest first resource data of hot spot value in the first storage medium and the second storage medium are determined;If the hot spot value of the first resource data is higher than the hot spot value of the Secondary resource data, by the first resource Data Migration to second storage medium.The present invention can improve the efficiency for obtaining resource data.

Description

一种迁移资源数据的方法和装置A method and device for migrating resource data

技术领域technical field

本发明涉及数据存储技术领域,尤其涉及一种迁移资源数据的方法和装置。The invention relates to the technical field of data storage, in particular to a method and device for migrating resource data.

背景技术Background technique

CDN(Content Delivery Network,内容分发网络)架构下的缓存服务器是一种用于存放高访问度的资源数据(如视频、音频、网页数据等)的服务器,其可以将本地缓存的资源数据分发至距离用户较近的节点服务器,使用户能够就近获取所需的资源数据。The cache server under the CDN (Content Delivery Network) architecture is a server used to store highly accessible resource data (such as video, audio, web page data, etc.), which can distribute locally cached resource data to The node server that is closer to the user enables the user to obtain the required resource data nearby.

缓存服务器一般采用数据容量大、使用寿命长的机械硬盘来缓存资源数据。缓存服务器接收到用户对于某个资源数据的获取请求后,可以先在机械硬盘中查找该资源数据,如果查找到,则缓存服务器可以将该资源数据反馈给用户;如果未查找到,则缓存服务器可以从相应的源站服务器处获取上述资源数据,然后将获取到的资源数据反馈给用户。Cache servers generally use mechanical hard disks with large data capacity and long service life to cache resource data. After the cache server receives the user's request for a certain resource data, it can first search for the resource data in the mechanical hard disk. If it is found, the cache server can feed back the resource data to the user; if not found, the cache server The above resource data can be obtained from the corresponding origin server, and then the obtained resource data can be fed back to the user.

在实现本发明的过程中,发明人发现现有技术至少存在以下问题:In the process of realizing the present invention, the inventor finds that there are at least the following problems in the prior art:

机械硬盘的读写速度较慢,在接收到某个资源数据的获取请求后,缓存服务器往往需要花费大量的时间来读写资源数据,用户需要等待较长时间才能获取到资源数据,故而获取资源数据的效率较低。The reading and writing speed of the mechanical hard disk is slow. After receiving a resource data acquisition request, the cache server often needs to spend a lot of time to read and write the resource data. The user needs to wait for a long time to obtain the resource data. Data is less efficient.

发明内容Contents of the invention

为了解决现有技术的问题,本发明实施例提供了一种迁移资源数据的方法和装置。所述技术方案如下:In order to solve the problems in the prior art, embodiments of the present invention provide a method and device for migrating resource data. Described technical scheme is as follows:

第一方面,提供了一种迁移资源数据的方法,所述方法包括:In a first aspect, a method for migrating resource data is provided, the method comprising:

周期性逐个更新第一存储介质和第二存储介质中存储的所有资源数据的热点值,其中,所述第二存储介质的读写速度高于所述第一存储介质;periodically updating hotspot values of all resource data stored in the first storage medium and the second storage medium one by one, wherein the read and write speed of the second storage medium is higher than that of the first storage medium;

在任一资源数据的热点值更新后,确定第一存储介质中热点值最高的第一资源数据,以及第二存储介质中热点值最低的第二资源数据;After the hotspot value of any resource data is updated, determine the first resource data with the highest hotspot value in the first storage medium, and the second resource data with the lowest hotspot value in the second storage medium;

如果所述第一资源数据的热点值高于所述第二资源数据的热点值,则将所述第一资源数据迁移至所述第二存储介质。If the hotspot value of the first resource data is higher than the hotspot value of the second resource data, migrating the first resource data to the second storage medium.

进一步的,所述周期性逐个更新第一存储介质和第二存储介质中存储的所有资源数据的热点值,包括:Further, the periodic updating of hotspot values of all resource data stored in the first storage medium and the second storage medium one by one includes:

确定待更新热点值的目标资源数据;Determine the target resource data of the hotspot value to be updated;

根据历史统计时段中所述目标资源数据的历史访问次数,预测当前统计时段内所述目标资源数据的当前访问次数;predicting the current number of visits to the target resource data in the current statistical period according to the historical visit times of the target resource data in the historical statistical period;

根据所述目标资源数据的数据量和所述目标资源数据的最新访问时刻,以及所述目标资源数据的历史访问次数和当前访问次数,更新所述目标资源数据的热点值。The hotspot value of the target resource data is updated according to the data amount of the target resource data, the latest access time of the target resource data, and the historical visit times and current visit times of the target resource data.

进一步的,所述如果所述第一资源数据的热点值高于所述第二资源数据的热点值,则将所述第一资源数据迁移至所述第二存储介质,包括:Further, if the hotspot value of the first resource data is higher than the hotspot value of the second resource data, migrating the first resource data to the second storage medium includes:

如果所述第一资源数据的热点值高于所述第二资源数据的热点值,且所述第一资源数据的数据量大于所述第二存储介质的剩余存储量时,则按照热点值从低到高的顺序,开始将在所述第二存储介质中热点值小于所述第一资源数据的热点值的资源数据依次迁移到所述第一存储介质;If the hotspot value of the first resource data is higher than the hotspot value of the second resource data, and the data volume of the first resource data is greater than the remaining storage capacity of the second storage medium, then according to the hotspot value from In order from low to high, start migrating the resource data whose hotspot value in the second storage medium is smaller than the hotspot value of the first resource data to the first storage medium in sequence;

当检测到所述剩余存储量大于等于所述第一资源数据的数据量时,停止将在所述第二存储介质中热点值小于所述第一资源数据的热点值的资源数据迁移到所述第一存储介质,并将所述第一资源数据迁移至所述第二存储介质。When it is detected that the remaining storage amount is greater than or equal to the data amount of the first resource data, stop migrating the resource data whose hotspot value in the second storage medium is smaller than the hotspot value of the first resource data to the the first storage medium, and migrate the first resource data to the second storage medium.

进一步的,所述如果所述第一资源数据的热点值高于所述第二资源数据的热点值,则将所述第一资源数据迁移至所述第二存储介质,包括:Further, if the hotspot value of the first resource data is higher than the hotspot value of the second resource data, migrating the first resource data to the second storage medium includes:

如果所述第一资源数据的热点值高于所述第二资源数据的热点值,且所述第一资源数据的历次访问次数和当前访问次数的标准差小于预设阈值,则将所述第一资源数据迁移至所述第二存储介质。If the hotspot value of the first resource data is higher than the hotspot value of the second resource data, and the standard deviation of the previous access times and the current access times of the first resource data is smaller than a preset threshold, then the second resource data A resource data is migrated to the second storage medium.

进一步的,所述方法还包括:Further, the method also includes:

在接收到目标资源数据的存储请求后,如果检测到所述第二存储介质的剩余存储量大于预设存储量,则将所述目标资源数据存储在所述第二存储介质,否则将所述目标资源数据存储在所述第一存储介质。After receiving the storage request of the target resource data, if it is detected that the remaining storage capacity of the second storage medium is greater than the preset storage capacity, the target resource data is stored in the second storage medium, otherwise the The target resource data is stored in the first storage medium.

第二方面,提供了一种迁移资源数据的装置,所述装置包括:In a second aspect, a device for migrating resource data is provided, the device comprising:

更新模块,用于周期性逐个更新第一存储介质和第二存储介质中存储的所有资源数据的热点值,其中,所述第二存储介质的读写速度高于所述第一存储介质;An update module, configured to periodically update hotspot values of all resource data stored in the first storage medium and the second storage medium one by one, wherein the read and write speed of the second storage medium is higher than that of the first storage medium;

判断模块,用于在任一资源数据的热点值更新后,确定第一存储介质中热点值最高的第一资源数据,以及第二存储介质中热点值最低的第二资源数据;A judging module, configured to determine the first resource data with the highest hotspot value in the first storage medium and the second resource data with the lowest hotspot value in the second storage medium after the hotspot value of any resource data is updated;

迁移模块,用于如果所述第一资源数据的热点值高于所述第二资源数据的热点值,则将所述第一资源数据迁移至所述第二存储介质。A migration module, configured to migrate the first resource data to the second storage medium if the hotspot value of the first resource data is higher than the hotspot value of the second resource data.

进一步的,所述更新模块,具体用于:Further, the update module is specifically used for:

确定待更新热点值的目标资源数据;Determine the target resource data of the hotspot value to be updated;

根据历史统计时段中所述目标资源数据的历史访问次数,预测当前统计时段内所述目标资源数据的当前访问次数;predicting the current number of visits to the target resource data in the current statistical period according to the historical visit times of the target resource data in the historical statistical period;

根据所述目标资源数据的数据量和所述目标资源数据的最新访问时刻,以及所述目标资源数据的历史访问次数和当前访问次数,更新所述目标资源数据的热点值。The hotspot value of the target resource data is updated according to the data amount of the target resource data, the latest access time of the target resource data, and the historical visit times and current visit times of the target resource data.

进一步的,所述迁移模块,具体用于:Further, the migration module is specifically used for:

如果所述第一资源数据的热点值高于所述第二资源数据的热点值,且所述第一资源数据的数据量大于所述第二存储介质的剩余存储量时,则按照热点值从低到高的顺序,开始将在所述第二存储介质中热点值小于所述第一资源数据的热点值的资源数据依次迁移到所述第一存储介质;If the hotspot value of the first resource data is higher than the hotspot value of the second resource data, and the data volume of the first resource data is greater than the remaining storage capacity of the second storage medium, then according to the hotspot value from In order from low to high, start migrating the resource data whose hotspot value in the second storage medium is smaller than the hotspot value of the first resource data to the first storage medium in sequence;

当检测到所述剩余存储量大于等于所述第一资源数据的数据量时,停止将在所述第二存储介质中热点值小于所述第一资源数据的热点值的资源数据迁移到所述第一存储介质,并将所述第一资源数据迁移至所述第二存储介质。When it is detected that the remaining storage amount is greater than or equal to the data amount of the first resource data, stop migrating the resource data whose hotspot value in the second storage medium is smaller than the hotspot value of the first resource data to the the first storage medium, and migrate the first resource data to the second storage medium.

进一步的,所述迁移模块,具体用于:Further, the migration module is specifically used for:

如果所述第一资源数据的热点值高于所述第二资源数据的热点值,且所述第一资源数据的历次访问次数和当前访问次数的标准差小于预设阈值,则将所述第一资源数据迁移至所述第二存储介质。If the hotspot value of the first resource data is higher than the hotspot value of the second resource data, and the standard deviation of the previous access times and the current access times of the first resource data is smaller than a preset threshold, then the second resource data A resource data is migrated to the second storage medium.

进一步的,所述装置还包括:Further, the device also includes:

存储模块,用于在接收到目标资源数据的存储请求后,如果检测到所述第二存储介质的剩余存储量大于预设存储量,则将所述目标资源数据存储在所述第二存储介质,否则将所述目标资源数据存储在所述第一存储介质。A storage module, configured to store the target resource data in the second storage medium if it detects that the remaining storage capacity of the second storage medium is greater than a preset storage capacity after receiving the storage request of the target resource data , otherwise store the target resource data in the first storage medium.

第三方面,提供了一种缓存服务器,所述缓存服务器包括处理器和存储器,所述存储器中存储有至少一条指令、至少一段程序、代码集或指令集,所述至少一条指令、所述至少一段程序、所述代码集或指令集由所述处理器加载并执行以实现前述的迁移资源数据的方法。In a third aspect, a cache server is provided, the cache server includes a processor and a memory, at least one instruction, at least one program, code set or instruction set are stored in the memory, the at least one instruction, the at least A program, the code set or instruction set is loaded and executed by the processor to implement the aforementioned method for migrating resource data.

本发明实施例提供的技术方案带来的有益效果是:The beneficial effects brought by the technical solution provided by the embodiments of the present invention are:

本发明实施例中,周期性逐个更新第一存储介质和第二存储介质中存储的所有资源数据的热点值,其中,第二存储介质的读写速度高于第一存储介质;在任一资源数据的热点值更新后,确定第一存储介质中热点值最高的第一资源数据,以及第二存储介质中热点值最低的第二资源数据;如果第一资源数据的热点值高于第二资源数据的热点值,则将第一资源数据迁移至第二存储介质。这样,可以始终将访问频率较高的资源数据存储在读写速度快的第二存储介质中,进而,在用户访问这些资源数据时,缓存服务器可以对其进行快速读写,用户无需长时间等待就能获取到资源数据,故而,可以整体上提高获取资源数据的效率。In the embodiment of the present invention, the hotspot values of all resource data stored in the first storage medium and the second storage medium are periodically updated one by one, wherein the read and write speed of the second storage medium is higher than that of the first storage medium; After the hotspot value of is updated, determine the first resource data with the highest hotspot value in the first storage medium, and the second resource data with the lowest hotspot value in the second storage medium; if the hotspot value of the first resource data is higher than the second resource data hotspot value, migrate the first resource data to the second storage medium. In this way, the resource data with high access frequency can always be stored in the second storage medium with fast read and write speed, and then, when the user accesses these resource data, the cache server can quickly read and write them, and the user does not need to wait for a long time The resource data can be obtained, therefore, the efficiency of obtaining resource data can be improved as a whole.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without creative effort.

图1是本发明实施例提供的一种迁移资源数据的场景示意图;FIG. 1 is a schematic diagram of a scenario of migrating resource data provided by an embodiment of the present invention;

图2是本发明实施例提供的一种迁移资源数据的方法流程图;Fig. 2 is a flow chart of a method for migrating resource data provided by an embodiment of the present invention;

图3是本发明实施例提供的一种迁移资源数据的装置结构示意图;Fig. 3 is a schematic structural diagram of a device for migrating resource data provided by an embodiment of the present invention;

图4是本发明实施例提供的一种迁移资源数据的装置结构示意图;Fig. 4 is a schematic structural diagram of a device for migrating resource data provided by an embodiment of the present invention;

图5是本发明实施例提供的一种缓存服务器的结构示意图。Fig. 5 is a schematic structural diagram of a cache server provided by an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

本发明实施例提供了一种迁移资源数据的方法,该方法的执行主体为缓存服务器,该缓存服务器可以是CDN架构下的缓存服务器,其可以设置有两种读写速度不同的存储介质,例如机械硬盘和固态硬盘。本实施例应用场景可以如图1所示。在接收到客户端发送的资源数据获取请求后,缓存服务器在存储介质中查找是否存储有该资源数据,如果查找到,则返回该资源数据给客户端,如果未查找到,则缓存服务器从源站服务器处获取该资源数据,并将获取到的资源数据返回给客户端。上述客户端可以是个人计算机、智能手机等终端设备,客户端可以从上述缓存服务器处获取视频、音频、网站内容数据等资源数据。上述缓存服务器中可以包括处理器、存储器、收发器,处理器可以用于进行下述流程中的资源数据的热点值更新以及资源数据在存储介质中迁移的处理,存储器可以用于存储处理过程中需要的数据以及产生的数据,收发器可以用于接收和发送处理过程中的相关数据。An embodiment of the present invention provides a method for migrating resource data. The execution subject of the method is a cache server. The cache server may be a cache server under the CDN architecture, and it may be provided with two storage media with different read and write speeds, for example Mechanical hard drives and solid state drives. The application scenario of this embodiment may be shown in FIG. 1 . After receiving the resource data acquisition request sent by the client, the cache server checks whether the resource data is stored in the storage medium, and if found, returns the resource data to the client; The resource data is obtained from the station server, and the obtained resource data is returned to the client. The above-mentioned client may be a terminal device such as a personal computer or a smart phone, and the client may obtain resource data such as video, audio, and website content data from the above-mentioned cache server. The above-mentioned cache server may include a processor, a memory, and a transceiver. The processor may be used to update hotspot values of resource data in the following processes and process resource data migration in storage media. The memory may be used in the storage process The data required as well as the data generated, the transceiver can be used to receive and transmit relevant data during processing.

下面将结合具体实施方式,对图2所示的一种迁移资源数据的处理流程进行详细的说明,内容可以如下:The following will describe in detail a processing flow for migrating resource data shown in FIG. 2 in combination with specific implementation methods, and the content may be as follows:

步骤201:周期性逐个更新第一存储介质和第二存储介质中存储的所有资源数据的热点值。Step 201: Periodically update hotspot values of all resource data stored in the first storage medium and the second storage medium one by one.

其中,第二存储介质的读写速度高于第一存储介质。Wherein, the reading and writing speed of the second storage medium is higher than that of the first storage medium.

在实施中,缓存服务器中可以存在包含有第一存储介质和第二存储介质在内的至少两种读写速度不同的存储介质,第一存储介质和第二存储介质中均可以存储有大量的资源数据。同时,缓存服务器可以记录用户对于各资源数据的访问频率,具体可以通过热点值的形式来体现资源数据的访问频率,资源数据的热点值越高,则表示相应的资源数据的访问频率越高。可以理解,用户对于资源数据的访问频率可能随时发生变化,比如某节目播出时,相应的资源数据的访问频率较高,播放结束后,访问频率将会下降,而如果节目重播,则访问频率又将会增加。故而,缓存服务器可以对资源数据的热点值进行周期性更新,以更好地反映资源数据最新的访问频率。In an implementation, there may be at least two storage media with different read and write speeds including the first storage medium and the second storage medium in the cache server, and both the first storage medium and the second storage medium may store a large number of resource data. At the same time, the cache server can record the user's access frequency to each resource data. Specifically, the access frequency of the resource data can be reflected in the form of hotspot values. The higher the hotspot value of the resource data, the higher the access frequency of the corresponding resource data. It can be understood that the user's access frequency to resource data may change at any time. For example, when a program is broadcast, the access frequency of the corresponding resource data is high. will increase again. Therefore, the cache server can periodically update the hotspot value of the resource data to better reflect the latest access frequency of the resource data.

具体的,对于第一存储介质或第二存储介质中存储的任一资源数据,缓存服务器可以基于该资源数据的初次存储时刻,每隔预设的统计时段(例如设置统计时段为六分钟,则一个小时包含十个统计时段),周期性更新该资源数据的热点值。例如,目标资源数据的初次存储时刻为某日的8:20:15,则缓存服务器可以按照六分钟的统计时段,每隔六分钟更新一次目标资源数据的热点值。这样,基于每个资源数据的初次存储时刻,缓存服务器可以周期性逐个更新所有资源数据的热点值。Specifically, for any resource data stored in the first storage medium or the second storage medium, the cache server may, based on the initial storage time of the resource data, every preset statistical period (for example, set the statistical period to six minutes, then One hour contains ten statistical periods), periodically update the hotspot value of the resource data. For example, if the initial storage time of the target resource data is 8:20:15 of a certain day, the cache server may update the hotspot value of the target resource data every six minutes according to the six-minute statistical period. In this way, based on the initial storage time of each resource data, the cache server can periodically update the hotspot values of all resource data one by one.

可选的,缓存服务器周期性更新资源数据的热点值的处理可以如下:确定待更新热点值的目标资源数据;根据历史统计时段中目标资源数据的历史访问次数,预测当前统计时段内目标资源数据的当前访问次数;根据目标资源数据的数据量和目标资源数据的最新访问时刻,以及目标资源数据的历史访问次数和当前访问次数,更新目标资源数据的热点值。Optionally, the processing of the cache server to periodically update the hotspot value of the resource data may be as follows: determine the target resource data of the hotspot value to be updated; predict the target resource data in the current statistical period according to the historical access times of the target resource data in the historical statistical period The current access times of the target resource data; update the hotspot value of the target resource data according to the data volume of the target resource data and the latest access time of the target resource data, as well as the historical access times and current access times of the target resource data.

在实施中,缓存服务器可以根据当前时刻和每个资源数据的初次存储时刻,确定当前时刻待更新热点值的目标资源数据,之后,缓存服务器可以对当前统计时段内目标资源数据的当前访问次数进行预测。容易理解的是,某个资源数据在过去一段时间内被频繁访问时,很大概率在之后的一段时间内继续被频繁访问,这样,缓存服务器可以根据设定数目个连续的历史统计时段的历史访问次数,计算当前统计时段内目标资源数据的当前访问次数。In implementation, the cache server can determine the target resource data whose hotspot value is to be updated at the current time according to the current time and the initial storage time of each resource data, and then, the cache server can calculate the current access times of the target resource data within the current statistical period predict. It is easy to understand that when a certain resource data has been frequently accessed in the past period of time, there is a high probability that it will continue to be frequently accessed in the next period of time. In this way, the cache server can calculate the history of the period based on the set number of consecutive historical statistics. Visit times, calculate the current visit times of the target resource data in the current statistics period.

下面给出一种预测目标资源数据的当前访问次数的具体算法:缓存服务器计算当前统计时段之前的第一个历史统计时段的历史访问次数和当前统计时段之前的第二个历史统计时段的历史访问次数的差值;将差值乘以预设数值,并加上当前统计时段之前的前三个历史统计时段各自的历史访问次数,生成当前统计时段内目标资源数据的当前访问次数。例如,当前时刻为20:00,当前统计时段为20:00-20:06,首先,获取当前统计时段之前的三个连续的历史统计时段(19:42-19:48、19:48-19:54、19:54-20:00)的历史统计次数,假设19:42-19:48内的历史统计次数为100,19:48-19:54内的历史统计次数为150,19:54-20:00内的历史统计次数为180。之后,计算第一个历史统计时段19:54-20:00的历史访问次数和第二个历史统计时段9:48-19:54的历史访问次数的差值,即差值为30。最后,将该差值30乘以预设数值,例如预设数值为3,再加上当前统计时段之前的前三个历史统计时段各自的历史访问次数,得到的访问次数520即为当前统计时段内目标资源数据的当前访问次数。A specific algorithm for predicting the current number of visits to target resource data is given below: the cache server calculates the number of historical visits in the first historical statistical period before the current statistical period and the historical visits in the second historical statistical period before the current statistical period The difference of the number of times; multiply the difference by the preset value, and add the historical access times of the first three historical statistical periods before the current statistical period to generate the current access times of the target resource data in the current statistical period. For example, the current time is 20:00, and the current statistical period is 20:00-20:06. First, three consecutive historical statistical periods (19:42-19:48, 19:48-19 :54, 19:54-20:00), assuming that the historical statistical times in 19:42-19:48 are 100, the historical statistical times in 19:48-19:54 are 150, 19:54 -The number of historical statistics within 20:00 is 180. After that, calculate the difference between the historical access times of the first historical statistical period 19:54-20:00 and the historical historical access times of the second historical statistical period 9:48-19:54, that is, the difference is 30. Finally, the difference 30 is multiplied by a preset value, for example, the preset value is 3, plus the respective historical access times of the first three historical statistical periods before the current statistical period, and the obtained number of visits 520 is the current statistical period The current number of accesses to the target resource data within.

可以理解的是,计算目标资源数据的当前访问次数的实施方式还有很多,例如还可以对不同历史统计时段的历史访问次数分别设置不同的权重值,经过计算也可以得到目标资源数据的当前访问次数。It can be understood that there are many ways to calculate the current access times of the target resource data. For example, different weight values can be set for the historical access times in different historical statistical periods, and the current access times of the target resource data can also be obtained after calculation. frequency.

缓存服务器在预测得到当前统计时段内目标资源数据的当前访问次数之后,可以根据目标资源数据的数据量和目标资源数据的最新访问时刻,以及目标资源数据的历史访问次数和当前访问次数,更新目标资源数据的热点值。After the cache server predicts the current access times of the target resource data within the current statistical period, it can update the target resource data according to the data volume of the target resource data and the latest access time of the target resource data, as well as the historical access times and current access times of the target resource data. Hotspot value for resource data.

可选的,更新目标资源数据的热点值的处理具体可以如下:计算设定数目个连续的历史统计时段的历史访问次数和当前访问次数的总访问次数,以及目标资源数据的最新访问时刻与当前时刻的时间差;将总访问次数除以目标资源数据的数据量,并除以时间差的平方,生成更新后的目标资源数据的热点值。Optionally, the process of updating the hotspot value of the target resource data may be specifically as follows: calculate the total number of visits between the historical visit times and the current visit times for a set number of consecutive historical statistical periods, and the latest visit time and current visit time of the target resource data The time difference between moments; divide the total number of visits by the data volume of the target resource data, and divide it by the square of the time difference to generate the updated hotspot value of the target resource data.

在实施中,不难理解,目标资源数据的总访问次数越高,表示目标资源数据的热点值越高;目标资源数据的数据量越小,越容易通过网络传输,则用户获取该目标资源数据的难度越低,故而一定程度上目标资源数据的热点值越高;最新访问时刻与当前时刻的时间差越小,表示目标资源数据在统计前不久仍被用户访问,故而该时间差越小可以表示目标资源数据的热点值越高。因此,可以先计算设定数目个连续的历史统计时段的历史访问次数和当前访问次数的总访问次数,再计算目标资源数据的最新访问时刻与当前时刻的时间差,最后将总访问次数除以目标资源数据的数据量,并除以时间差的平方,从而可以得到目标资源数据的热点值。例如,上述预设数目个历史统计时段为10个历史统计时段,则首先获取这10个历史统计时段内的历史访问次数,假设为100、120、140、140、180、150、100、100、150、180,经过计算得到的当前统计次数为520,则总访问次数为1360;之后,获取目标资源数据的最新访问时刻,假设为19:59:06,当前时刻为20:00:25,则最新访问时刻与当前时刻的时间差为79,同时,目标资源数据的数据量为20MB,则计算得到的热点值为1360/20/79/79=0.01089。In implementation, it is not difficult to understand that the higher the total number of visits to the target resource data, the higher the hotspot value of the target resource data; the smaller the data volume of the target resource data, the easier it is to transmit through the network, and the user can obtain the target resource data The lower the difficulty, the higher the hotspot value of the target resource data to a certain extent; the smaller the time difference between the latest access time and the current time, it means that the target resource data is still accessed by users shortly before the statistics, so the smaller the time difference can indicate the target The hotspot value of resource data is higher. Therefore, you can first calculate the total number of historical visits and current visits for a set number of consecutive historical statistical periods, then calculate the time difference between the latest access time of the target resource data and the current time, and finally divide the total number of visits by the target The data amount of the resource data is divided by the square of the time difference, so as to obtain the hotspot value of the target resource data. For example, if the preset number of historical statistical periods mentioned above is 10 historical statistical periods, then the historical access times in these 10 historical statistical periods are obtained first, assuming 100, 120, 140, 140, 180, 150, 100, 100, 150, 180, the current statistical count obtained after calculation is 520, and the total visit count is 1360; after that, obtain the latest access time of the target resource data, assuming it is 19:59:06, and the current time is 20:00:25, then The time difference between the latest access time and the current time is 79, and at the same time, the data volume of the target resource data is 20MB, then the calculated hotspot value is 1360/20/79/79=0.01089.

步骤202:在任一资源数据的热点值更新后,确定第一存储介质中热点值最高的第一资源数据,以及第二存储介质中热点值最低的第二资源数据。Step 202: After the hotspot value of any resource data is updated, determine the first resource data with the highest hotspot value in the first storage medium and the second resource data with the lowest hotspot value in the second storage medium.

在实施中,在任一资源数据的热点值更新后,缓存服务器可以对所有资源数据的热点值进行热点值排序,按照热点值从低到高的排列顺序,缓存服务器可以确定出第一存储介质中热点值最高的第一资源数据,以及第二存储介质中热点值最低的第二资源数据。In implementation, after the hotspot value of any resource data is updated, the cache server can sort the hotspot values of all resource data, and according to the order of the hotspot values from low to high, the cache server can determine the The first resource data with the highest hotspot value, and the second resource data with the lowest hotspot value in the second storage medium.

考虑到资源数据的数量可能很多,而且还存在资源数据的热点值排列顺序经常变化的情况,因此,为了提高热点值排序的效率,可以采用平衡二叉树排序算法,对所有资源数据的热点值进行排序,从而,对所有资源数据热点值的排序操作可以演化成平衡二叉树的删除和重新插入,时间复杂度为2NlogN。平衡二叉树在插入和删除时,可以通过左旋和右旋进行重新排序,从而可以具有很高的排序效率。当然,也可以采用其他排序算法对热点值进行排序,例如冒泡排序算法或者选择排序算法。Considering that there may be a large amount of resource data, and the arrangement order of hotspot values of resource data often changes, in order to improve the efficiency of hotspot value sorting, a balanced binary tree sorting algorithm can be used to sort the hotspot values of all resource data , thus, the sorting operation on hotspot values of all resource data can evolve into deletion and reinsertion of a balanced binary tree, with a time complexity of 2NlogN. When a balanced binary tree is inserted and deleted, it can be reordered by left rotation and right rotation, so that it can have high sorting efficiency. Of course, other sorting algorithms can also be used to sort the hotspot values, such as bubble sorting algorithm or selection sorting algorithm.

步骤203:如果第一资源数据的热点值高于第二资源数据的热点值,则将第一资源数据迁移至第二存储介质。Step 203: If the hotspot value of the first resource data is higher than the hotspot value of the second resource data, migrate the first resource data to the second storage medium.

在实施中,在确定了第一存储介质中热点值最高的第一资源数据,以及第二存储介质中热点值最低的第二资源数据时,如果第一资源数据的热点值高于第二资源数据的热点值,则表示第一资源数据的访问频率,超过了第二资源数据的访问频率,此时,可以将第一资源数据迁移到读写速度更快的第二存储介质中,确保第二存储介质中存储的资源数据的访问频率相对于第一存储介质更高。这样,缓存服务器既可以利用第二存储介质读写速度快的优势,显著缩短热点值高的资源数据的读写时间,提高缓存服务器的缓存服务质量,又可以利用第一存储介质资源数据容量大的优势,显著降低缓存服务器的使用成本。In implementation, when the first resource data with the highest hotspot value in the first storage medium and the second resource data with the lowest hotspot value in the second storage medium are determined, if the hotspot value of the first resource data is higher than that of the second resource The hotspot value of data indicates that the access frequency of the first resource data exceeds the access frequency of the second resource data. At this time, the first resource data can be migrated to the second storage medium with faster read and write speeds to ensure that the second The resource data stored in the second storage medium has a higher access frequency than the first storage medium. In this way, the cache server can not only take advantage of the fast reading and writing speed of the second storage medium, significantly shorten the reading and writing time of resource data with high hotspot values, improve the cache service quality of the cache server, but also take advantage of the large resource data capacity of the first storage medium. Advantages, significantly reducing the cost of using the cache server.

可选的,由于第二存储介质的存储容量有限,因此,在将第一资源数据迁移至第二存储介质之前,还可以考虑第二存储介质的剩余存储量是否足以存储第一资源数据,相应的处理可以如下:Optionally, since the storage capacity of the second storage medium is limited, before migrating the first resource data to the second storage medium, it may also be considered whether the remaining storage capacity of the second storage medium is sufficient to store the first resource data, and accordingly The processing can be as follows:

如果第一资源数据的热点值高于第二资源数据的热点值,且第一资源数据的数据量大于第二存储介质的剩余存储量时,则按照热点值从低到高的顺序,开始将在第二存储介质中热点值小于第一资源数据的热点值的资源数据依次迁移到第一存储介质;当检测到剩余存储量大于等于第一资源数据的数据量时,停止将在第二存储介质中热点值小于第一资源数据的热点值的资源数据迁移到第一存储介质,并将第一资源数据迁移至第二存储介质。If the hotspot value of the first resource data is higher than the hotspot value of the second resource data, and the data volume of the first resource data is greater than the remaining storage capacity of the second storage medium, start to store In the second storage medium, the resource data whose hotspot value is smaller than the hotspot value of the first resource data are migrated to the first storage medium in turn; The resource data whose hotspot value in the medium is smaller than the hotspot value of the first resource data is migrated to the first storage medium, and the first resource data is migrated to the second storage medium.

在实施中,由于每个资源数据的数据量有大有小,在进行资源数据迁移后,第二存储介质的剩余存储量是动态变化的,例如,当存储量为50M的资源数据迁移前,第二存储介质的剩余存储量为100M,则当迁移完成时,第二存储介质的剩余存储量将变为50M,当下次需要迁移的资源数据的数据量为20M时,则当迁移完成时,第二存储介质的剩余存储量将变为30M。当第二存储介质的剩余存储量不足以完成资源数据的迁移时,即第一资源数据的数据量大于第二存储介质的剩余存储量,则缓存服务器可以按照热点值从低到高的顺序,开始将第二存储介质中热点值小于第一资源数据的热点值的资源数据依次迁移到第一存储介质,从而可以释放第二存储介质的存储量,直至检测到剩余存储量大于等于第一资源数据的数据量时,停止将在第二存储介质中热点值小于第一资源数据的热点值的资源数据迁移到第一存储介质,这时,缓存服务器可以将第一资源数据迁移至第二存储介质。In practice, since the data volume of each resource data varies, after resource data migration, the remaining storage capacity of the second storage medium changes dynamically. For example, before resource data migration with a storage capacity of 50M, The remaining storage capacity of the second storage medium is 100M. When the migration is completed, the remaining storage capacity of the second storage medium will become 50M. When the data volume of the resource data to be migrated next time is 20M, when the migration is completed, The remaining storage capacity of the second storage medium will become 30M. When the remaining storage capacity of the second storage medium is not enough to complete the migration of resource data, that is, the data volume of the first resource data is greater than the remaining storage capacity of the second storage medium, then the cache server can follow the order of hotspot values from low to high, Start to migrate the resource data whose hotspot value in the second storage medium is smaller than the hotspot value of the first resource data to the first storage medium in turn, so that the storage capacity of the second storage medium can be released until it is detected that the remaining storage capacity is greater than or equal to the first resource data When the amount of data exceeds the data size, stop migrating the resource data whose hotspot value in the second storage medium is smaller than the hotspot value of the first resource data to the first storage medium. At this time, the cache server can migrate the first resource data to the second storage medium medium.

容易理解的是,当第二存储介质中热点值小于第一资源数据的热点值的全部资源数据迁移到第一存储介质时,第一资源数据的数据量仍然大于第二存储介质的剩余存储数据量,则表明第二存储介质的剩余存储量不足以存储第一资源数据,此时,缓存服务器无法将第一资源数据迁移至第二存储介质,故而可以将第一资源数据保留在第一存储介质中。It is easy to understand that when all resource data in the second storage medium whose hotspot value is smaller than the hotspot value of the first resource data is migrated to the first storage medium, the data volume of the first resource data is still greater than the remaining storage data of the second storage medium amount, it indicates that the remaining storage capacity of the second storage medium is not enough to store the first resource data. At this time, the cache server cannot migrate the first resource data to the second storage medium, so the first resource data can be kept in the first storage medium. medium.

可选的,缓存服务器在对资源数据进行迁移时,还可以通过避免短时间内访问频率较高的资源数据进行迁移的情况,来降低迁移成本,相应的处理可以如下:如果第一资源数据的热点值高于第二资源数据的热点值,且第一资源数据的历次访问次数和当前访问次数的标准差小于预设阈值,则将第一资源数据迁移至第二存储介质。Optionally, when the cache server migrates resource data, it can also reduce the migration cost by avoiding the migration of resource data with high access frequency in a short period of time. The corresponding processing can be as follows: if the first resource data If the hotspot value is higher than the hotspot value of the second resource data, and the standard deviation between the previous access times and the current access times of the first resource data is smaller than a preset threshold, the first resource data is migrated to the second storage medium.

在实施中,在实际访问过程中,还存在一类短时间内访问频率很高而之后访问频率很低的资源数据,如果将这类资源数据迁移到第二存储介质中,则短时间之后还需要将其再迁回第一存储介质,从而增加了迁移成本。资源数据在某段时间内访问频率的变化程度,可以通过资源数据的历次访问次数和当前访问次数的标准差来体现,因此,可以设置标准差的预设阈值,当第一资源数据的热点值高于第二资源数据的热点值,且第一资源数据的历次访问次数和当前访问次数的标准差小于预设阈值时,才将第一资源数据迁移至第二存储介质。In practice, in the actual access process, there is also a type of resource data that has a high frequency of access in a short period of time and a low frequency of access thereafter. If this type of resource data is migrated to the second storage medium, it will still be It needs to be migrated back to the first storage medium, thereby increasing the migration cost. The degree of change in access frequency of resource data within a certain period of time can be reflected by the standard deviation of previous access times and current access times of resource data. Therefore, a preset threshold of standard deviation can be set. When the hotspot value of the first resource data The first resource data is migrated to the second storage medium only when the hotspot value of the second resource data is higher than the standard deviation of the previous access times and the current access times of the first resource data is less than a preset threshold.

例如,在第一资源数据的热点值高于第二资源数据的热点值时,第一资源数据的历次访问次数为100、120、140、140、180、150、100、100、150、180,经过计算得到的当前统计次数为520,经过计算,第一资源数据的历次访问次数和当前访问次数的标准差为117.03,如果第一资源数据的标准差117.03小于预设阈值,比如预设阈值为120时,则将第一资源数据迁移至第二存储介质;如果第一资源数据的标准差117.03大于预设阈值,比如预设阈值为110时,则不将第一资源数据迁移至第二存储介质。For example, when the hotspot value of the first resource data is higher than the hotspot value of the second resource data, the previous access times of the first resource data are 100, 120, 140, 140, 180, 150, 100, 100, 150, 180, The calculated current number of statistics is 520. After calculation, the standard deviation between the previous access times and the current access times of the first resource data is 117.03. If the standard deviation 117.03 of the first resource data is less than the preset threshold, for example, the preset threshold is 120, the first resource data is migrated to the second storage medium; if the standard deviation 117.03 of the first resource data is greater than the preset threshold, for example, when the preset threshold is 110, the first resource data is not migrated to the second storage medium medium.

可选的,当缓存服务器需要存储新的资源数据时,还需要判断存储该资源数据的存储介质是第一存储介质还是第二存储介质,相应的处理可以如下:在接收到目标资源数据的存储请求后,如果检测到第二存储介质的剩余存储量小于预设存储量,则将目标资源数据存储在第一存储介质,否则将目标资源数据存储在第二存储介质。Optionally, when the cache server needs to store new resource data, it also needs to determine whether the storage medium storing the resource data is the first storage medium or the second storage medium, and the corresponding processing can be as follows: After the request, if it is detected that the remaining storage capacity of the second storage medium is less than the preset storage capacity, the target resource data is stored in the first storage medium, otherwise, the target resource data is stored in the second storage medium.

在实施中,一方面,在缓存服务器缓存资源数据的初始时段,其第一存储介质和第二存储介质可能没有存储资源数据或者刚刚存储了少量资源数据,由于第二存储介质的读写速度高于第一存储介质,因此,为了获得更好的缓存服务质量,缓存服务器在开始缓存资源数据时,可以将待存储的资源数据优先存储在第二存储介质中,在第二存储介质的剩余存储量达到预设存储量之后,再将待存储的资源数据存储在第一存储介质中。另一方面,在缓存服务器在提供了一段时间的缓存服务之后,其第一存储介质和第二存储介质存储的资源数据都具备一定的热点值,这时,缓存服务器将通过判断热点值大小的方式,来决定是否将资源数据迁移到第二存储介质。In implementation, on the one hand, during the initial period when the cache server caches resource data, its first storage medium and second storage medium may not store resource data or have just stored a small amount of resource data, due to the high read and write speed of the second storage medium Therefore, in order to obtain better caching service quality, when the cache server starts caching resource data, it can preferentially store the resource data to be stored in the second storage medium, and store the remaining resource data in the second storage medium After the amount reaches the preset storage amount, the resource data to be stored is stored in the first storage medium. On the other hand, after the cache server provides the cache service for a period of time, the resource data stored in the first storage medium and the second storage medium both have a certain hotspot value. At this time, the cache server will judge the size of the hotspot value way to decide whether to migrate the resource data to the second storage medium.

具体的,在接收到目标资源数据的存储请求后,缓存服务器首先检测第二存储介质的剩余存储量,如果检测到第二存储介质的剩余存储量大于预设存储量,则将目标资源数据存储在第二存储介质;如果检测到第二存储介质的剩余存储量小于等于预设存储量,则将目标资源数据存储在第一存储介质。例如,上述预设存储量为100M,如果第二存储介质的剩余存储量大于100M,比如200M、300M或者最大存储量(即第二存储介质处于未存储资源数据的空白状态)时,则将目标资源数据存储在第二存储介质;如果第二存储介质的剩余存储量小于等于100M,比如50M,则将目标资源数据存储在第一存储介质。Specifically, after receiving the storage request of the target resource data, the cache server first detects the remaining storage capacity of the second storage medium, and if it detects that the remaining storage capacity of the second storage medium is greater than the preset storage capacity, then stores the target resource data In the second storage medium; if it is detected that the remaining storage capacity of the second storage medium is less than or equal to the preset storage capacity, storing the target resource data in the first storage medium. For example, the above preset storage capacity is 100M, if the remaining storage capacity of the second storage medium is greater than 100M, such as 200M, 300M or the maximum storage capacity (that is, the second storage medium is in a blank state where no resource data is stored), then the target The resource data is stored in the second storage medium; if the remaining storage capacity of the second storage medium is less than or equal to 100M, such as 50M, then the target resource data is stored in the first storage medium.

本发明实施例中,周期性逐个更新第一存储介质和第二存储介质中存储的所有资源数据的热点值,其中,第二存储介质的读写速度高于第一存储介质;在任一资源数据的热点值更新后,确定第一存储介质中热点值最高的第一资源数据,以及第二存储介质中热点值最低的第二资源数据;如果第一资源数据的热点值高于第二资源数据的热点值,则将第一资源数据迁移至第二存储介质。这样,可以始终将访问频率较高的资源数据存储在读写速度快的第二存储介质中,进而,在用户访问这些资源数据时,缓存服务器可以对其进行快速读写,用户无需长时间等待就能获取到资源数据,故而,可以整体上提高获取资源数据的效率。In the embodiment of the present invention, the hotspot values of all resource data stored in the first storage medium and the second storage medium are periodically updated one by one, wherein the read and write speed of the second storage medium is higher than that of the first storage medium; After the hotspot value of is updated, determine the first resource data with the highest hotspot value in the first storage medium, and the second resource data with the lowest hotspot value in the second storage medium; if the hotspot value of the first resource data is higher than the second resource data hotspot value, migrate the first resource data to the second storage medium. In this way, the resource data with high access frequency can always be stored in the second storage medium with fast read and write speed, and then, when the user accesses these resource data, the cache server can quickly read and write them, and the user does not need to wait for a long time The resource data can be obtained, therefore, the efficiency of obtaining resource data can be improved as a whole.

基于相同的技术构思,本发明实施例还提供了一种迁移资源数据的装置,如图3所示,所述装置包括:Based on the same technical concept, the embodiment of the present invention also provides a device for migrating resource data, as shown in Figure 3, the device includes:

更新模块301,用于周期性逐个更新第一存储介质和第二存储介质中存储的所有资源数据的热点值,其中,所述第二存储介质的读写速度高于所述第一存储介质;An update module 301, configured to periodically update hotspot values of all resource data stored in the first storage medium and the second storage medium one by one, wherein the read and write speed of the second storage medium is higher than that of the first storage medium;

判断模块302,用于在任一资源数据的热点值更新后,确定第一存储介质中热点值最高的第一资源数据,以及第二存储介质中热点值最低的第二资源数据;A judging module 302, configured to determine the first resource data with the highest hotspot value in the first storage medium and the second resource data with the lowest hotspot value in the second storage medium after the hotspot value of any resource data is updated;

迁移模块303,用于如果所述第一资源数据的热点值高于所述第二资源数据的热点值,则将所述第一资源数据迁移至所述第二存储介质。A migration module 303, configured to migrate the first resource data to the second storage medium if the hotspot value of the first resource data is higher than the hotspot value of the second resource data.

可选的,所述更新模块301,具体用于:Optionally, the updating module 301 is specifically used for:

确定待更新热点值的目标资源数据;Determine the target resource data of the hotspot value to be updated;

根据历史统计时段中所述目标资源数据的历史访问次数,预测当前统计时段内所述目标资源数据的当前访问次数;predicting the current number of visits to the target resource data in the current statistical period according to the historical visit times of the target resource data in the historical statistical period;

根据所述目标资源数据的数据量和所述目标资源数据的最新访问时刻,以及所述目标资源数据的历史访问次数和当前访问次数,更新所述目标资源数据的热点值。The hotspot value of the target resource data is updated according to the data amount of the target resource data, the latest access time of the target resource data, and the historical visit times and current visit times of the target resource data.

可选的,所述迁移模块303,具体用于:Optionally, the migration module 303 is specifically used for:

如果所述第一资源数据的热点值高于所述第二资源数据的热点值,且所述第一资源数据的数据量大于所述第二存储介质的剩余存储量时,则按照热点值从低到高的顺序,开始将在所述第二存储介质中热点值小于所述第一资源数据的热点值的资源数据依次迁移到所述第一存储介质;If the hotspot value of the first resource data is higher than the hotspot value of the second resource data, and the data volume of the first resource data is greater than the remaining storage capacity of the second storage medium, then according to the hotspot value from In order from low to high, start migrating the resource data whose hotspot value in the second storage medium is smaller than the hotspot value of the first resource data to the first storage medium in sequence;

当检测到所述剩余存储量大于等于所述第一资源数据的数据量时,停止将在所述第二存储介质中热点值小于所述第一资源数据的热点值的资源数据迁移到所述第一存储介质,并将所述第一资源数据迁移至所述第二存储介质。When it is detected that the remaining storage amount is greater than or equal to the data amount of the first resource data, stop migrating the resource data whose hotspot value in the second storage medium is smaller than the hotspot value of the first resource data to the the first storage medium, and migrate the first resource data to the second storage medium.

可选的,所述迁移模块303,具体用于:Optionally, the migration module 303 is specifically used for:

如果所述第一资源数据的热点值高于所述第二资源数据的热点值,且所述第一资源数据的历次访问次数和当前访问次数的标准差小于预设阈值,则将所述第一资源数据迁移至所述第二存储介质。If the hotspot value of the first resource data is higher than the hotspot value of the second resource data, and the standard deviation of the previous access times and the current access times of the first resource data is smaller than a preset threshold, then the second resource data A resource data is migrated to the second storage medium.

可选的,如图4所示,所述装置还包括:Optionally, as shown in Figure 4, the device further includes:

存储模块304,用于在接收到目标资源数据的存储请求后,如果检测到所述第二存储介质的剩余存储量大于预设存储量,则将所述目标资源数据存储在所述第二存储介质,否则将所述目标资源数据存储在所述第一存储介质。The storage module 304 is configured to store the target resource data in the second storage medium if it is detected that the remaining storage capacity of the second storage medium is greater than the preset storage capacity after receiving the storage request of the target resource data. medium, otherwise, store the target resource data in the first storage medium.

本发明实施例中,周期性逐个更新第一存储介质和第二存储介质中存储的所有资源数据的热点值,其中,第二存储介质的读写速度高于第一存储介质;在任一资源数据的热点值更新后,确定第一存储介质中热点值最高的第一资源数据,以及第二存储介质中热点值最低的第二资源数据;如果第一资源数据的热点值高于第二资源数据的热点值,则将第一资源数据迁移至第二存储介质。这样,可以始终将访问频率较高的资源数据存储在读写速度快的第二存储介质中,进而,在用户访问这些资源数据时,缓存服务器可以对其进行快速读写,用户无需长时间等待就能获取到资源数据,故而,可以整体上提高获取资源数据的效率。In the embodiment of the present invention, the hotspot values of all resource data stored in the first storage medium and the second storage medium are periodically updated one by one, wherein the read and write speed of the second storage medium is higher than that of the first storage medium; After the hotspot value of is updated, determine the first resource data with the highest hotspot value in the first storage medium, and the second resource data with the lowest hotspot value in the second storage medium; if the hotspot value of the first resource data is higher than the second resource data hotspot value, migrate the first resource data to the second storage medium. In this way, the resource data with high access frequency can always be stored in the second storage medium with fast read and write speed, and then, when the user accesses these resource data, the cache server can quickly read and write them, and the user does not need to wait for a long time The resource data can be obtained, therefore, the efficiency of obtaining resource data can be improved as a whole.

需要说明的是:上述实施例提供的迁移资源数据的装置在进行迁移资源数据时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的迁移资源数据的装置与迁移资源数据的方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: when the device for migrating resource data provided by the above-mentioned embodiment migrates resource data, it only uses the division of the above-mentioned functional modules for illustration. In practical applications, the above-mentioned functions can be assigned to different function Module completion means that the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device for migrating resource data provided by the above embodiment and the embodiment of the method for migrating resource data belong to the same idea, and its specific implementation process is detailed in the method embodiment, and will not be repeated here.

图5是本发明实施例提供的缓存服务器的结构示意图。该缓存服务器500可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上中央处理器522(例如,一个或一个以上处理器)和存储器532,一个或一个以上存储应用程序542或数据544的存储介质530(例如一个或一个以上海量存储设备)。其中,存储器532和存储介质530可以是短暂存储或持久存储。存储在存储介质530的程序可以包括一个或一个以上模块(图示没标出),每个模块可以包括对缓存服务器中的一系列指令操作。更进一步地,中央处理器522可以设置为与存储介质530通信,在缓存服务器500上执行存储介质530中的一系列指令操作。FIG. 5 is a schematic structural diagram of a cache server provided by an embodiment of the present invention. The cache server 500 may have relatively large differences due to different configurations or performances, and may include one or more central processing units 522 (for example, one or more processors) and memory 532, and one or more storage application programs 542 or Storage medium 530 for data 544 (eg, one or more mass storage devices). Wherein, the memory 532 and the storage medium 530 may be temporary storage or persistent storage. The program stored in the storage medium 530 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the cache server. Furthermore, the central processing unit 522 may be configured to communicate with the storage medium 530 , and execute a series of instruction operations in the storage medium 530 on the cache server 500 .

缓存服务器500还可以包括一个或一个以上电源529,一个或一个以上有线或无线网络接口550,一个或一个以上输入输出接口558,一个或一个以上键盘556,和/或,一个或一个以上操作系统541,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM等等。The cache server 500 may also include one or more power supplies 529, one or more wired or wireless network interfaces 550, one or more input and output interfaces 558, one or more keyboards 556, and/or, one or more operating systems 541, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM and so on.

缓存服务器500可以包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行上述迁移资源数据的指令。The cache server 500 may include a memory, and one or more programs, wherein the one or more programs are stored in the memory, and are configured to be executed by one or more processors, including for performing Instructions for migrating resource data above.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务端,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。Through the above description of the implementations, those skilled in the art can clearly understand that each implementation can be implemented by means of software plus a necessary general hardware platform, and of course also by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products can be stored in computer-readable storage media, such as ROM/RAM, magnetic Discs, optical discs, etc., include several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute the methods described in various embodiments or some parts of the embodiments.

以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection of the present invention. within range.

Claims (11)

1.一种迁移资源数据的方法,其特征在于,所述方法包括:1. A method for migrating resource data, characterized in that the method comprises: 周期性逐个更新第一存储介质和第二存储介质中存储的所有资源数据的热点值,其中,所述第二存储介质的读写速度高于所述第一存储介质;periodically updating hotspot values of all resource data stored in the first storage medium and the second storage medium one by one, wherein the read and write speed of the second storage medium is higher than that of the first storage medium; 在任一资源数据的热点值更新后,确定第一存储介质中热点值最高的第一资源数据,以及第二存储介质中热点值最低的第二资源数据;After the hotspot value of any resource data is updated, determine the first resource data with the highest hotspot value in the first storage medium, and the second resource data with the lowest hotspot value in the second storage medium; 如果所述第一资源数据的热点值高于所述第二资源数据的热点值,则将所述第一资源数据迁移至所述第二存储介质。If the hotspot value of the first resource data is higher than the hotspot value of the second resource data, migrating the first resource data to the second storage medium. 2.根据权利要求1所述的方法,其特征在于,所述周期性逐个更新第一存储介质和第二存储介质中存储的所有资源数据的热点值,包括:2. The method according to claim 1, wherein the periodic updating of hotspot values of all resource data stored in the first storage medium and the second storage medium one by one comprises: 确定待更新热点值的目标资源数据;Determine the target resource data of the hotspot value to be updated; 根据历史统计时段中所述目标资源数据的历史访问次数,预测当前统计时段内所述目标资源数据的当前访问次数;predicting the current number of visits to the target resource data in the current statistical period according to the historical visit times of the target resource data in the historical statistical period; 根据所述目标资源数据的数据量和所述目标资源数据的最新访问时刻,以及所述目标资源数据的历史访问次数和当前访问次数,更新所述目标资源数据的热点值。The hotspot value of the target resource data is updated according to the data amount of the target resource data, the latest access time of the target resource data, and the historical visit times and current visit times of the target resource data. 3.根据权利要求1所述的方法,其特征在于,所述如果所述第一资源数据的热点值高于所述第二资源数据的热点值,则将所述第一资源数据迁移至所述第二存储介质,包括:3. The method according to claim 1, wherein if the hotspot value of the first resource data is higher than the hotspot value of the second resource data, the first resource data is migrated to the The second storage medium includes: 如果所述第一资源数据的热点值高于所述第二资源数据的热点值,且所述第一资源数据的数据量大于所述第二存储介质的剩余存储量时,则按照热点值从低到高的顺序,开始将在所述第二存储介质中热点值小于所述第一资源数据的热点值的资源数据依次迁移到所述第一存储介质;If the hotspot value of the first resource data is higher than the hotspot value of the second resource data, and the data volume of the first resource data is greater than the remaining storage capacity of the second storage medium, then according to the hotspot value from In order from low to high, start migrating the resource data whose hotspot value in the second storage medium is smaller than the hotspot value of the first resource data to the first storage medium in sequence; 当检测到所述剩余存储量大于等于所述第一资源数据的数据量时,停止将在所述第二存储介质中热点值小于所述第一资源数据的热点值的资源数据迁移到所述第一存储介质,并将所述第一资源数据迁移至所述第二存储介质。When it is detected that the remaining storage amount is greater than or equal to the data amount of the first resource data, stop migrating the resource data whose hotspot value in the second storage medium is smaller than the hotspot value of the first resource data to the the first storage medium, and migrate the first resource data to the second storage medium. 4.根据权利要求1所述的方法,其特征在于,所述如果所述第一资源数据的热点值高于所述第二资源数据的热点值,则将所述第一资源数据迁移至所述第二存储介质,包括:4. The method according to claim 1, wherein if the hotspot value of the first resource data is higher than the hotspot value of the second resource data, the first resource data is migrated to the The second storage medium includes: 如果所述第一资源数据的热点值高于所述第二资源数据的热点值,且所述第一资源数据的历次访问次数和当前访问次数的标准差小于预设阈值,则将所述第一资源数据迁移至所述第二存储介质。If the hotspot value of the first resource data is higher than the hotspot value of the second resource data, and the standard deviation of the previous access times and the current access times of the first resource data is smaller than a preset threshold, then the second resource data A resource data is migrated to the second storage medium. 5.根据权利要求1所述的方法,其特征在于,所述方法还包括:5. The method according to claim 1, characterized in that the method further comprises: 在接收到目标资源数据的存储请求后,如果检测到所述第二存储介质的剩余存储量大于预设存储量,则将所述目标资源数据存储在所述第二存储介质,否则将所述目标资源数据存储在所述第一存储介质。After receiving the storage request of the target resource data, if it is detected that the remaining storage capacity of the second storage medium is greater than the preset storage capacity, the target resource data is stored in the second storage medium, otherwise the The target resource data is stored in the first storage medium. 6.一种迁移资源数据的装置,其特征在于,所述装置包括:6. A device for migrating resource data, characterized in that the device comprises: 更新模块,用于周期性逐个更新第一存储介质和第二存储介质中存储的所有资源数据的热点值,其中,所述第二存储介质的读写速度高于所述第一存储介质;An update module, configured to periodically update hotspot values of all resource data stored in the first storage medium and the second storage medium one by one, wherein the read and write speed of the second storage medium is higher than that of the first storage medium; 判断模块,用于在任一资源数据的热点值更新后,确定第一存储介质中热点值最高的第一资源数据,以及第二存储介质中热点值最低的第二资源数据;A judging module, configured to determine the first resource data with the highest hotspot value in the first storage medium and the second resource data with the lowest hotspot value in the second storage medium after the hotspot value of any resource data is updated; 迁移模块,用于如果所述第一资源数据的热点值高于所述第二资源数据的热点值,则将所述第一资源数据迁移至所述第二存储介质。A migration module, configured to migrate the first resource data to the second storage medium if the hotspot value of the first resource data is higher than the hotspot value of the second resource data. 7.根据权利要求6所述的装置,其特征在于,所述更新模块,具体用于:7. The device according to claim 6, wherein the update module is specifically used for: 确定待更新热点值的目标资源数据;Determine the target resource data of the hotspot value to be updated; 根据历史统计时段中所述目标资源数据的历史访问次数,预测当前统计时段内所述目标资源数据的当前访问次数;predicting the current number of visits to the target resource data in the current statistical period according to the historical visit times of the target resource data in the historical statistical period; 根据所述目标资源数据的数据量和所述目标资源数据的最新访问时刻,以及所述目标资源数据的历史访问次数和当前访问次数,更新所述目标资源数据的热点值。The hotspot value of the target resource data is updated according to the data amount of the target resource data, the latest access time of the target resource data, and the historical visit times and current visit times of the target resource data. 8.根据权利要求6所述的装置,其特征在于,所述迁移模块,具体用于:8. The device according to claim 6, wherein the migration module is specifically used for: 如果所述第一资源数据的热点值高于所述第二资源数据的热点值,且所述第一资源数据的数据量大于所述第二存储介质的剩余存储量时,则按照热点值从低到高的顺序,开始将在所述第二存储介质中热点值小于所述第一资源数据的热点值的资源数据依次迁移到所述第一存储介质;If the hotspot value of the first resource data is higher than the hotspot value of the second resource data, and the data volume of the first resource data is greater than the remaining storage capacity of the second storage medium, then according to the hotspot value from In order from low to high, start to migrate the resource data whose hotspot value in the second storage medium is smaller than the hotspot value of the first resource data to the first storage medium in sequence; 当检测到所述剩余存储量大于等于所述第一资源数据的数据量时,停止将在所述第二存储介质中热点值小于所述第一资源数据的热点值的资源数据迁移到所述第一存储介质,并将所述第一资源数据迁移至所述第二存储介质。When it is detected that the remaining storage amount is greater than or equal to the data amount of the first resource data, stop migrating the resource data whose hotspot value in the second storage medium is smaller than the hotspot value of the first resource data to the the first storage medium, and migrate the first resource data to the second storage medium. 9.根据权利要求6所述的装置,其特征在于,所述迁移模块,具体用于:9. The device according to claim 6, wherein the migration module is specifically used for: 如果所述第一资源数据的热点值高于所述第二资源数据的热点值,且所述第一资源数据的历次访问次数和当前访问次数的标准差小于预设阈值,则将所述第一资源数据迁移至所述第二存储介质。If the hotspot value of the first resource data is higher than the hotspot value of the second resource data, and the standard deviation of the previous visit times and the current visit times of the first resource data is less than a preset threshold, then the second A resource data is migrated to the second storage medium. 10.根据权利要求6所述的装置,其特征在于,所述装置还包括:10. The device according to claim 6, further comprising: 存储模块,用于在接收到目标资源数据的存储请求后,如果检测到所述第二存储介质的剩余存储量大于预设存储量,则将所述目标资源数据存储在所述第二存储介质,否则将所述目标资源数据存储在所述第一存储介质。A storage module, configured to store the target resource data in the second storage medium if it detects that the remaining storage capacity of the second storage medium is greater than a preset storage capacity after receiving the storage request of the target resource data , otherwise store the target resource data in the first storage medium. 11.一种缓存服务器,其特征在于,所述缓存服务器包括处理器和存储器,所述存储器中存储有至少一条指令、至少一段程序、代码集或指令集,所述至少一条指令、所述至少一段程序、所述代码集或指令集由所述处理器加载并执行以实现如权利要求1至5任一所述的迁移资源数据的方法。11. A cache server, characterized in that the cache server includes a processor and a memory, at least one instruction, at least one section of program, code set or instruction set are stored in the memory, the at least one instruction, the at least A program, the code set or instruction set is loaded and executed by the processor to implement the method for migrating resource data as claimed in any one of claims 1 to 5.
CN201810098512.4A 2018-01-31 2018-01-31 A kind of method and apparatus for migrating resource data Pending CN108228110A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810098512.4A CN108228110A (en) 2018-01-31 2018-01-31 A kind of method and apparatus for migrating resource data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810098512.4A CN108228110A (en) 2018-01-31 2018-01-31 A kind of method and apparatus for migrating resource data

Publications (1)

Publication Number Publication Date
CN108228110A true CN108228110A (en) 2018-06-29

Family

ID=62670226

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810098512.4A Pending CN108228110A (en) 2018-01-31 2018-01-31 A kind of method and apparatus for migrating resource data

Country Status (1)

Country Link
CN (1) CN108228110A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109558337A (en) * 2018-11-30 2019-04-02 北京同有飞骥科技股份有限公司 The dynamic access method, apparatus and storage medium of cache
CN110187840A (en) * 2019-05-30 2019-08-30 北京奇艺世纪科技有限公司 A kind of data migration method, device, server and storage medium
CN111078160A (en) * 2020-03-23 2020-04-28 上海飞旗网络技术股份有限公司 Data migration and storage method and device based on call proportion and response duration
CN113094001A (en) * 2021-05-11 2021-07-09 浙江争游网络科技有限公司 Software code management system based on cloud platform
CN113535606A (en) * 2020-04-14 2021-10-22 阿里巴巴集团控股有限公司 Data processing method and device
CN113934542A (en) * 2021-10-18 2022-01-14 重庆紫光华山智安科技有限公司 Container resource adjusting method, system, medium and electronic terminal
CN114063880A (en) * 2020-07-31 2022-02-18 伊姆西Ip控股有限责任公司 Method, electronic device and computer program product for processing input and output requests
CN115098760A (en) * 2022-06-29 2022-09-23 北京达佳互联信息技术有限公司 Data processing method and device, electronic equipment and storage medium
CN115203222A (en) * 2022-07-18 2022-10-18 游艺星际(北京)科技有限公司 Media resource updating method and device, electronic equipment and storage medium
CN118535092A (en) * 2024-05-20 2024-08-23 成都佰维存储科技有限公司 Data block management method, device, equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8825964B1 (en) * 2011-09-26 2014-09-02 Emc Corporation Adaptive integration of cloud data services with a data storage system
CN104111900A (en) * 2013-04-22 2014-10-22 中国移动通信集团公司 Method and device for replacing data in cache
CN107273040A (en) * 2016-04-08 2017-10-20 北京优朋普乐科技有限公司 data cache method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8825964B1 (en) * 2011-09-26 2014-09-02 Emc Corporation Adaptive integration of cloud data services with a data storage system
CN104111900A (en) * 2013-04-22 2014-10-22 中国移动通信集团公司 Method and device for replacing data in cache
CN107273040A (en) * 2016-04-08 2017-10-20 北京优朋普乐科技有限公司 data cache method and device

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109558337A (en) * 2018-11-30 2019-04-02 北京同有飞骥科技股份有限公司 The dynamic access method, apparatus and storage medium of cache
CN109558337B (en) * 2018-11-30 2023-09-19 北京同有飞骥科技股份有限公司 Dynamic access method, device and storage medium for cache
CN110187840A (en) * 2019-05-30 2019-08-30 北京奇艺世纪科技有限公司 A kind of data migration method, device, server and storage medium
CN111078160A (en) * 2020-03-23 2020-04-28 上海飞旗网络技术股份有限公司 Data migration and storage method and device based on call proportion and response duration
CN113535606B (en) * 2020-04-14 2025-01-24 阿里巴巴集团控股有限公司 A data processing method and device
CN113535606A (en) * 2020-04-14 2021-10-22 阿里巴巴集团控股有限公司 Data processing method and device
CN114063880A (en) * 2020-07-31 2022-02-18 伊姆西Ip控股有限责任公司 Method, electronic device and computer program product for processing input and output requests
CN114063880B (en) * 2020-07-31 2024-09-06 伊姆西Ip控股有限责任公司 Method, electronic device and computer program product for processing input/output request
CN113094001A (en) * 2021-05-11 2021-07-09 浙江争游网络科技有限公司 Software code management system based on cloud platform
CN113934542A (en) * 2021-10-18 2022-01-14 重庆紫光华山智安科技有限公司 Container resource adjusting method, system, medium and electronic terminal
CN115098760A (en) * 2022-06-29 2022-09-23 北京达佳互联信息技术有限公司 Data processing method and device, electronic equipment and storage medium
CN115203222A (en) * 2022-07-18 2022-10-18 游艺星际(北京)科技有限公司 Media resource updating method and device, electronic equipment and storage medium
CN118535092A (en) * 2024-05-20 2024-08-23 成都佰维存储科技有限公司 Data block management method, device, equipment and medium

Similar Documents

Publication Publication Date Title
CN108228110A (en) A kind of method and apparatus for migrating resource data
EP2562991B1 (en) Data prefetching method, node and system for distributed hash table dht memory system
CN105205014B (en) A kind of date storage method and device
CN103905503B (en) Data access method, dispatching method, equipment and system
CN109947668B (en) Method and device for storing data
US11296940B2 (en) Centralized configuration data in a distributed file system
CN107729570B (en) Data migration method and apparatus for server
CN102780603B (en) Web traffic control method and device
CN102857578A (en) File uploading method and file uploading system of network drive and network drive client
CN112631504B (en) Method and device for implementing local cache using off-heap memory
CN110334073A (en) A kind of metadata forecasting method, device, terminal, server and storage medium
CN106375425A (en) Distributed cache processing method and device
US10819821B2 (en) Method and system for allocating content using a content-based centrality metric
CN107623709A (en) A kind of document down loading method and device
CN116955421A (en) Data query method and related device
JP7192645B2 (en) Information processing device, distributed processing system and distributed processing program
CN108875035A (en) The date storage method and relevant device of distributed file system
CN108536759B (en) Sample playback data access method and device
EP3555767B1 (en) Partial storage of large files in distinct storage systems
Huang et al. S-cache: Toward an low latency service caching for edge clouds
CN109491619A (en) Caching data processing method, device and system
CN113992662A (en) File transmission method, device and storage medium
CN119512718A (en) Resource balancing method, device, and electronic device for distributed code storage system
CN117573756A (en) Service counting method and device, storage medium and electronic equipment
CN113239303B (en) Data storage method and device

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

Application publication date: 20180629

RJ01 Rejection of invention patent application after publication