WO2017101576A1 - Data resource storage method and apparatus - Google Patents

Data resource storage method and apparatus Download PDF

Info

Publication number
WO2017101576A1
WO2017101576A1 PCT/CN2016/101926 CN2016101926W WO2017101576A1 WO 2017101576 A1 WO2017101576 A1 WO 2017101576A1 CN 2016101926 W CN2016101926 W CN 2016101926W WO 2017101576 A1 WO2017101576 A1 WO 2017101576A1
Authority
WO
WIPO (PCT)
Prior art keywords
data resource
level
storage medium
cdn system
accesses
Prior art date
Application number
PCT/CN2016/101926
Other languages
French (fr)
Chinese (zh)
Inventor
武炳亮
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017101576A1 publication Critical patent/WO2017101576A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/21815Source of audio or video content, e.g. local disk arrays comprising local storage units
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/21815Source of audio or video content, e.g. local disk arrays comprising local storage units
    • H04N21/2182Source of audio or video content, e.g. local disk arrays comprising local storage units involving memory arrays, e.g. RAID disk arrays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/61Network physical structure; Signal processing

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a data resource storage method and apparatus.
  • OTT Over The Top
  • CDN Content Delivery Network
  • the performance of the storage medium in the CDN system may vary.
  • the SSD can be considered as a first-level cache, and its performance is generally better, and the performance of the memory is generally inferior to the performance of the SSD.
  • some videos are viewed by a large number of users, and this video is stored in the memory, so when the user views the video, the viewing may not be smooth due to memory performance limitations.
  • the embodiment of the invention provides a data resource storage method and device for solving the technical problem that the performance of the CDN system is poor due to unreasonable use of the storage medium of the CDN system.
  • the embodiment of the invention provides a data resource storage method, including:
  • the first data resource is stored in a hard disk in the CDN system; otherwise, the first data resource is stored in a memory of the CDN system.
  • it also includes:
  • the number of accesses of the first data resource is increased by a first value.
  • Determining whether the number of accesses of the first data resource stored in the CDN system is greater than or equal to the first heat threshold including:
  • storing the first data resource in a hard disk in the CDN system including:
  • the first sub-thermal threshold If the number of accesses of the first data resource is greater than or equal to the first sub-thermal threshold, storing the first data resource in a first-level hard disk in the CDN system; The highest level of hard disk in the CDN system.
  • the method further includes:
  • storing the first data resource in a hard disk in the CDN system including:
  • the number of accesses of the first data resource is greater than or equal to the second sub-thermal threshold, storing the first data resource in a second-level hard disk in the CDN system; It is lower than the level of the first-level hard disk.
  • the first data resource is stored in the memory of the CDN system, including:
  • the method further includes:
  • the first data resource is not stored in the storage medium of the CDN system, determining, according to the type of the first data resource, a level of the storage medium in the CDN system corresponding to the first data resource is a primary storage medium; the first level storage medium is a hard disk or a memory in the CDN system;
  • the method further includes:
  • the second-level storage medium is the first-level hard disk or the second level in the CDN system Hard disk, M is a positive integer;
  • the third level storage medium is a hard disk in the CDN system
  • the second data resource of the M data resources corresponding to the first access number is stored in the third-level storage medium; otherwise, from the second level The second data resource is deleted from the storage medium.
  • the embodiment of the invention provides a data resource storage device, including:
  • a determining module configured to determine whether the number of accesses of the first data resource stored in the content distribution network CDN system is greater than or equal to a first heat threshold
  • a first operation module configured to store the first data resource in a hard disk in the CDN system if the number of accesses of the first data resource is greater than or equal to the first heat threshold; otherwise, The first data resource is stored in a memory of the CDN system.
  • the device further includes a receiving module and a second operating module;
  • the receiving module is configured to receive an access request for the first data resource
  • the second operation module is configured to increase a number of accesses of the first data resource by a first value.
  • the determining module is configured to: determine whether the number of accesses of the first data resource is greater than or equal to a first sub-thermal threshold;
  • the first operation module is configured to: when the number of accesses of the first data resource is greater than or equal to the first sub-thermal threshold, storing the first data resource in a first-level hard disk in the CDN system
  • the first level hard disk is the highest level hard disk in the CDN system.
  • the determining module is configured to: after determining whether the number of accesses of the first data resource is greater than or equal to a first sub-thermal threshold, if the number of accesses of the first data resource is less than the first sub-thermal threshold, determining Whether the number of accesses of the first data resource is greater than or equal to the second sub-thermal threshold;
  • the first operation module is configured to: when the number of accesses of the first data resource is greater than or equal to the second sub-thermal threshold, storing the first data resource in a second-level hard disk in the CDN system The level of the second level hard disk is lower than the level of the first level hard disk.
  • the first operation module is set to:
  • the device further includes:
  • a query module configured to receive an access to the first data resource at the receiving module After the request, querying whether the first data resource is stored in a storage medium of the CDN system;
  • the level of the medium is a first level storage medium; the first level storage medium is a hard disk or a memory in the CDN system;
  • An acquiring module configured to acquire the first data resource from a source station corresponding to the first data resource, and store the first data resource into the first-level storage medium;
  • the setting is to return the first data resource by the first level storage medium.
  • the device further includes:
  • a statistics module configured to count the number of accesses of the M data resources stored in the second-level storage medium of the CDN system, to obtain M access times;
  • the second-level storage medium is the first level in the CDN system Hard disk or second-level hard disk, M is a positive integer;
  • the determining module is further configured to determine, respectively, whether the number of accesses of the M access times is lower than a second heat threshold
  • the determining module is further configured to determine, if the first access number of the M access times is lower than the second heat threshold, whether the level of the CDN system is lower than the second-level storage medium a third level storage medium of the level; the third level storage medium is a hard disk in the CDN system;
  • the first operation module is further configured to: if the third-level storage medium exists, store the second data resource of the M data resources corresponding to the first access times to the third-level storage medium And deleting the second data resource from the second level storage medium.
  • a computer storage medium is further provided, and the computer storage medium may store an execution instruction for executing the implementation of the data resource storage method in the foregoing embodiment.
  • the number of accesses of the data resource may be counted, that is, the data resource is analyzed.
  • the access heat if the number of accesses of the data resource is greater than the first heat threshold, indicating that the data resource is accessed more times, that is, the data resource is a hotspot resource, then the data resource can be stored in the CDN system.
  • the performance of the hard disk is higher than that of the memory.
  • the hotspot resource is stored in the hard disk, which can provide faster access speed for users to access more resources (ie hotspot resources), and ensure the smoothness of viewing as much as possible. To improve the user experience. In this way, the overall performance and utilization of the CDN system is improved by making rational use of various levels of storage media in the CDN system.
  • FIG. 1 is a flowchart of a method for storing a data resource according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a first structure of a CDN system according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a second structure of a CDN system according to an embodiment of the present invention.
  • the CDN system may include a storage medium such as a hard disk and a memory.
  • the hard disk may include multiple types, for example, an SSD (Solid State Drive) or a SATA (Serial Advanced Technology Attachment). Different types of hard drives.
  • the storage medium can be classified according to the performance of the cache, and the level of the cache performance is higher.
  • the cache performance of memory is generally not as good as that of the hard disk. Therefore, memory can be considered as a lower-level storage medium in the CDN system, and the cache performance of different hard disks is different.
  • the cache performance of SSD is generally better than SATA.
  • the cache performance, such as the storage speed of the SSD is generally higher than the storage speed of the SATA, so the SSD level can be considered higher than the SATA level, and so on.
  • the data resource can also be understood as a file, data, and the like.
  • system and “network” in the embodiments of the present invention may be used interchangeably.
  • Multiple means two or more.
  • the character "/”, unless otherwise specified, generally indicates that the contextual object is an "or" relationship.
  • an embodiment of the present invention provides a data resource storage method, and a process of the method is described as follows.
  • Step 101 Determine whether the number of accesses of the first data resource stored in the CDN system is greater than or equal to a first heat threshold.
  • Step 102 If the number of accesses of the first data resource is greater than or equal to the first heat threshold, the first data resource is stored in the hard disk in the CDN system; otherwise, the first data resource is stored in the memory of the CDN system.
  • the method may further include:
  • the number of accesses of the first data resource is increased by a first value.
  • the first value is added to the number of accesses of the first data resource, and the first value is, for example, 1, or may be other values.
  • the access request for the first data resource may be, for example, a user-initiated request, for example, the first data resource is a video resource, and the user may request to play or download the video resource or the like.
  • the counted number of accesses of the data resource may be incremented by one.
  • the statistics can be started from the time after the initialization of the CDN system, or the statistics can be started at any other time point, which is not limited by the present invention.
  • the first data resource After the number of accesses of the first data resource is increased by one, it can be determined whether the total number of accesses of the first data resource is greater than or equal to the first heat threshold. If yes, the first data resource can be considered to be accessed more times. A hot data resource, the first data resource can be stored in the hard disk to improve the access speed of the first data resource, and the cache time of the first data resource is extended, and the first data resource is lost.
  • the first data resource can be considered to be accessed less frequently, which is a colder data resource, and then the first data can be
  • the resources are placed in the memory, so that more storage space can be hollowed out on the hard disk to store more hot data resources, providing a better experience for most users.
  • the first heat threshold can be set by the user or can be set by the system.
  • Determining whether the number of accesses of the first data resource stored in the CDN system is greater than or equal to the first heat threshold including:
  • the first data resource is stored in the first-level hard disk in the CDN system; the first-level hard disk is the highest-level hard disk in the CDN system.
  • the first sub-thermal threshold After the number of accesses of the first data resource is increased by one, it can be determined whether the number of accesses of the first data resource is greater than or equal to the first sub-thermal threshold, and the first sub-thermal threshold can be stored.
  • the threshold of the first-level hard disk, the first-level hard disk can be the best hard disk in the CDN system, such as SSD, and of course other types of hard disk.
  • the first data resource may be stored in the first-level hard disk, and the first-level hard disk has the best cache performance. Because the first data resource has a large number of accesses, it can provide a better experience for more users.
  • the query may determine whether the first data resource is stored in the second-level hard disk, and if so, the second-level hard disk may be directly The first data resource is re-stored in the first-level hard disk. If the first data resource is not stored in the second-level hard disk, the first data resource may be requested from the source station where the first data resource is located, and the first data resource may be obtained. The first data resource is stored in the first level hard disk.
  • the method further includes:
  • the first data resource is stored in the second-level hard disk in the CDN system; the level of the second-level hard disk is lower than the level of the first-level hard disk.
  • the sub-thermal threshold, the second sub-thermal threshold may be a threshold that can be stored in the second-level hard disk, and the second-level hard disk may be a hard disk with a cache performance lower than that of the first-level hard disk in the CDN system, for example, may be a cache in the CDN system. Performance is second only to the first level hard drive Hard drive. For example, if the first-level hard disk is an SSD, the second-level hard disk can be SATA, and of course other types of hard disks.
  • the second sub-heat threshold is also smaller than the first sub-heat threshold.
  • the threshold of the storage medium such as the first sub-heat threshold and the second sub-heat threshold may be set by the user, or may be set by the system itself, or may be set when the CDN system is shipped, etc., the present invention No restrictions.
  • the first data resource may be stored in the second-level hard disk, and the second-level hard disk is cached.
  • the performance is also better, because the number of accesses to the first data resource is also more, which can provide a better experience.
  • the first data resource may be requested to be obtained from the source station where the first data resource is located, and the obtained first A data resource is stored in the first level hard disk.
  • the first data resource is stored in the memory of the CDN system, including:
  • the first data resource is stored in the memory.
  • the first data resource if the number of accesses of the first data resource is also less than the second sub-thermal threshold, it indicates that the first data resource may be a relatively unpopular data resource, and the first data resource is stored to the hard disk without being stored in the hard disk. In memory.
  • the embodiments of the present invention are based on three levels of storage media (ie, memory and two levels of hard disks) in the CDN system.
  • the CDN system may have multiple types of hard disks.
  • the solution to store data resources into a reasonable storage medium is within the scope of protection of the present invention.
  • the foregoing describes that after receiving a request for a data resource by a user, by counting the heat of the data resource, it is determined to which storage medium the data resource should be stored, and after receiving the user's request for a certain data resource.
  • the CDN system should also provide the user with the data resources requested by the user in response to the user's request. This section is described below.
  • the method further includes:
  • the level of the storage medium in the CDN system corresponding to the first data resource is a first-level storage medium; the first-level storage medium a hard disk or memory in a CDN system;
  • the first data resource is returned through the first level storage medium.
  • the CDN system After receiving the access request for the first data resource stored in the CDN system, first look at whether the first data resource has been stored in the storage medium of the CDN system, and if it has been stored, for example, stored in the first-level storage medium, The first data resource can then be returned to the user directly through the first level storage medium. If the first data resource is not stored, the CDN system may determine, according to the type of the first data resource, which level of the storage medium the first data resource should be stored in, for example, a video resource, for example, if the data is a live type service.
  • Resources which are less demanding on the cache, can be determined to be serviced through the memory, and if it is a data resource corresponding to the service of the on-demand type, it can be determined that the service is performed through a lower level of film review, such as SATA.
  • the CDN system requests the source station where the first data resource is located to obtain the first data resource, and stores the obtained first data resource into the first-level storage medium.
  • the first data resource is returned to the user through the first level storage medium to complete the response to the user's request.
  • step 103 may be performed to determine whether to continue storing the first data resource in the first level storage medium. in.
  • the number of accesses is cumulative.
  • the number of accesses may be relatively large, thus forming a pseudo hotspot.
  • the main purpose of the following is to eliminate such pseudo hotspots.
  • the method further includes:
  • the second-level storage medium is the first-level hard disk or the second-level hard disk in the CDN system, and M is a positive integer ;
  • the third-level storage medium is a hard disk in a CDN system
  • the second level storage medium may be any level of hard disk in the CDN system, that is, the pseudo hotspot may be eliminated by performing the above process for each level of the hard disk in the CDN system.
  • the number of accesses of the M data resources stored in the second-level storage medium may be periodically or periodically counted, and the M data resources may be all data resources stored in the second-level storage medium, or may be second-level storage.
  • the data resources stored in the medium are not limited in the present invention.
  • the value of the number of accesses may be large, which is convenient for calculation, and is more suitable for the second heat threshold mentioned later, after obtaining M actual access times.
  • a fixed value is subtracted, for example, k (k is a positive integer). If the actual number of accesses of the data resource 1 is n before the subtraction, the number of accesses of the obtained data resource 1 is n-k.
  • the number of M accesses obtained as a premise is obtained, and whether there are access times below the second heat threshold can be separately determined.
  • the second heat threshold may be a threshold that is removed from the second storage medium.
  • the first sub-heat threshold is a threshold stored in the first-level hard disk
  • the second heat threshold is a threshold removed from the first-level hard disk
  • the second heat threshold may be equal to, or the first child heat threshold may be greater than the second heat threshold.
  • the data resource corresponding to the first access number may be considered (for example, referred to as the second data resource, and the second data resource and the first data resource may be the same).
  • the data resource, or it may be a different data resource is a pseudo hotspot. It can be seen whether there is a hard disk in the CDN system whose level is lower than the level of the second storage medium.
  • the hard disk of the CDN system includes the first-level hard disk and the second-level hard disk
  • the second-level storage medium is the first-level hard disk
  • the second-level hard disk has a lower level than the first-level hard disk
  • the second-level hard disk is lower than the first-level hard disk
  • the second The level storage medium is a second-level hard disk
  • the second data resource can be moved from the second level storage medium to the third level storage medium, and if the CDN system is in the CDN system There is no hard disk lower than the second-level storage medium, and the second data resource can be directly deleted from the second-level storage medium.
  • the embodiment of the invention implements a method for implementing hierarchical storage of resources in a CDN system, and the access awareness of the user can be improved by using the method, and the faster access speed is provided for the hotspot resource, and the device cost is also considered. To maximize revenue.
  • resource grading storage based on user request can be implemented in the CDN system.
  • FIG. 2 is a schematic diagram of the function of a component module for implementing multi-level storage of a CDN system according to the present invention, which includes:
  • Protocol identification and processing module The module is responsible for receiving the request protocol packet of the client, parsing the type of the request according to the configured parsing rule, and determining whether it is a content request that needs to be hierarchically cached. For example, through the filtering control of the regular expression, it is parsed out which of the user's requests are requesting the live type data resource, and which are requesting the on-demand type data resources, and then distinguishing the storage policy. For content that needs to be stored hierarchically, the request is forwarded to the storage scheduling module for processing.
  • Storage scheduling module responsible for controlling the storage path selection of data resources, and storing the data resources on a specified storage medium. At the same time, it is responsible for the scheduling control of hot and cold sheets (ie, unpopular resources and hotspot resources), transferring hotspot resources to a higher level storage medium, and transferring cold resource scheduling to lower level storage media. At the same time, maintain a list of the contents of all cached data resources in the system for use during scheduling.
  • the heat statistics module is responsible for counting and maintaining the number of accesses of each data resource, forming the click heat information, and periodically refreshing the heat information, forming the mutual rotation of the hot and cold sheets through the change of the heat information, and notifying the storage scheduling module to perform the hot and cold sheet. Schedule transfer.
  • Multi-level storage module responsible for managing all storage media and providing management functions. When data resources are transferred to storage media, they are responsible for implementing migration and copying of data resources. At the same time, it is responsible for implementing the LRU (Least Recently Used) elimination algorithm, and automatically eliminates the most frequently accessed content when the storage area is full.
  • LRU Least Recently Used
  • the source download module implements the return source download function of the data resource (that is, the source station request data where the data resource is located), and when the data resource has not been cached, the content is pulled back to the source station through the source download module, and transmitted to the storage module. Save the drop-down data resource.
  • the data resource that is, the source station request data where the data resource is located
  • the CDN system in FIG. 2 includes a multi-level storage module, for example, three-level storage, such as memory, SSD, and SATA.
  • a multi-level storage module for example, three-level storage, such as memory, SSD, and SATA.
  • the user can send a request through a terminal (or a client), for example, a mobile phone, a PC (personal computer), an STB (Set Top Box), and the like shown in FIG. 2, Or it can be other types of devices.
  • a terminal for example, a mobile phone, a PC (personal computer), an STB (Set Top Box), and the like shown in FIG. 2, Or it can be other types of devices.
  • an embodiment of the present invention provides a data resource storage device, which may be, for example, the CDN system itself, or may be a functional module located in a CDN system.
  • the apparatus can include a determination module 301 and a first operational module 302.
  • the determining module 301 is configured to determine whether the number of accesses of the first data resource stored in the CDN system is greater than or equal to a first heat threshold
  • the first operation module 302 is configured to store the first data resource in a hard disk in the CDN system if the number of accesses of the first data resource is greater than or equal to the first heat threshold; otherwise, store the first data resource in the CDN system. In memory.
  • the device may further include a receiving module and a second operating module;
  • a receiving module configured to receive an access request for the first data resource
  • the second operation module is configured to increase the number of accesses of the first data resource by a first value.
  • the determining module 301 is configured to: determine whether the number of accesses of the first data resource is greater than or equal to the first sub-thermal threshold;
  • the first operation module 302 is configured to: if the number of accesses of the first data resource is greater than or equal to the first sub-thermal threshold, store the first data resource in the first-level hard disk in the CDN system; the first-level hard disk is in the CDN system The highest level of hard drive.
  • the determining module 301 is configured to: after determining whether the number of accesses of the first data resource is greater than or equal to the first sub-thermal threshold, if the number of accesses of the first data resource is less than the first sub-thermal threshold, determining whether the number of accesses of the first data resource is greater than Equal to the second sub-thermal threshold;
  • the first operation module 302 is configured to: if the number of accesses of the first data resource is greater than or equal to the second sub-thermal threshold, store the first data resource in the second-level hard disk in the CDN system; the level of the second-level hard disk is lower than The level of the first level of the hard disk.
  • the first operation module 302 is configured to:
  • the first data resource is stored in the memory.
  • the device further includes:
  • a query module configured to query, after the receiving module receives an access request for the first data resource stored in the CDN system, whether the first data resource is stored in a storage medium of the CDN system;
  • Determining a module if the first data resource is not stored in the storage medium of the CDN system, determining, according to the type of the first data resource, a level of the storage medium in the CDN system corresponding to the first data resource as a first level storage medium;
  • the first level storage medium is a hard disk or a memory in the CDN system;
  • An acquiring module configured to acquire a first data resource from a source station corresponding to the first data resource, and store the first data resource in the first-level storage medium;
  • the device further includes:
  • the statistics module is configured to count the number of accesses of the M data resources stored in the second-level storage medium of the CDN system, and obtain M access times;
  • the second-level storage medium is the first-level hard disk or the second-level hard disk in the CDN system.
  • M is a positive integer;
  • the determining module 301 is further configured to determine whether the number of accesses of the M access times is lower than the second heat threshold;
  • the determining module 301 is further configured to: if the first access number of the M access times is lower than the second heat threshold, determine whether there is a third-level storage medium whose level is lower than the level of the second-level storage medium in the CDN system;
  • the tertiary storage medium is a hard disk in the CDN system;
  • the first operation module 302 is further configured to: if the third-level storage medium exists, store the second data resource of the M data resources corresponding to the first access number into the third-level storage medium; otherwise, store from the second-level storage medium; The second data resource is deleted from the media.
  • the number of accesses of the data resource when receiving an access request for a data resource, the number of accesses of the data resource may be counted, that is, the access heat of the data resource is analyzed, and if the number of accesses of the data resource is greater than the first heat threshold, The data resource is accessed more times, too It is to say that the data resource is a hotspot resource, and then the data resource can be stored in the hard disk of the CDN system.
  • the performance of the hard disk is higher than the performance of the memory, and the hotspot resource is stored in the hard disk, which can be accessed for the user. More resources (ie hotspot resources) provide faster access speed, try to ensure the smoothness of viewing and improve the user experience. In this way, the overall performance and utilization of the CDN system is improved by making rational use of various levels of storage media in the CDN system.
  • the disclosed systems, devices, and methods may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit or unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be used. Combinations can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit is implemented as a software functional unit and as a standalone product When sold or used, it can be stored on a computer readable storage medium.
  • a computer device which may be a personal computer, a server, or a network device, etc.
  • a processor to execute all or part of the steps of the methods described in various embodiments of the present application.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a ROM (Read-Only Memory), a RAM, a magnetic disk, or an optical disk, and the like, which can store program codes.
  • the foregoing technical solution provided by the embodiment of the present invention may be applied to a data resource storage process, and may count the number of accesses of the data resource, that is, analyze the access heat of the data resource, and if the number of accesses of the data resource is greater than the first heat threshold, The data resource is accessed more frequently, that is to say, the data resource is a hot resource, and then the data resource can be stored in the hard disk of the CDN system.
  • the performance of the hard disk is higher than the performance of the memory, and the hot spot is
  • the resources are stored on the hard disk, which can provide faster access speed for users to access more resources (ie, hotspot resources), and ensure the smoothness of viewing as much as possible. In this way, the overall performance and utilization of the CDN system is improved by making rational use of various levels of storage media in the CDN system.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

Disclosed in the present invention are a data resource storage method and apparatus, for use in resolving the technical problem of poor performance of a CDN system due to improper use of a storage medium of the CDN system. The method comprises: determining whether the number of times of accessing a first data resource stored in a CDN system is greater than or equal to a first popularity threshold; if the number of times of accessing the first data resource is greater than or equal to the first popularity threshold, storing the first data resource into a hard disk in the CDN system; and otherwise, storing the first data resource into a memory of the CDN system.

Description

一种数据资源存储方法及装置Data resource storage method and device 技术领域Technical field
本发明涉及通信技术领域,尤其涉及一种数据资源存储方法及装置。The present invention relates to the field of communications technologies, and in particular, to a data resource storage method and apparatus.
背景技术Background technique
在宽带大发展背景下,通信运营商提供了很多OTT(Over The Top,指互联网公司越过运营商,发展基于开放互联网的各种视频及数据服务业务)视频业务,建设了容量足够大的用于存储视频文件的CDN(Content Delivery Network,内容分发网络)系统。In the context of the development of broadband, communication operators have provided a lot of OTT (Over The Top, which refers to Internet companies crossing operators, developing various video and data service services based on open Internet) video services, and building a capacity large enough for A CDN (Content Delivery Network) system that stores video files.
由于视频文件的数量及容量都较大,CDN系统中可能会存储较多的数据。而CDN系统中的存储介质的性能可能存在差异,例如,在CDN系统中,SSD可以认为是第一级缓存,其性能一般来说比较好,而内存的性能一般来说会次于SSD的性能。例如,有的视频观看的用户比较多,而这个视频存储在内存中,那么在用户观看该视频时,可能会因为内存性能的限制而导致观看不流畅等问题。Due to the large number and capacity of video files, more data may be stored in the CDN system. The performance of the storage medium in the CDN system may vary. For example, in a CDN system, the SSD can be considered as a first-level cache, and its performance is generally better, and the performance of the memory is generally inferior to the performance of the SSD. . For example, some videos are viewed by a large number of users, and this video is stored in the memory, so when the user views the video, the viewing may not be smooth due to memory performance limitations.
可见,目前对于CDN系统的存储介质的使用不够合理,也影响了CDN系统整体的性能。It can be seen that the current use of the storage medium of the CDN system is not reasonable enough, and also affects the overall performance of the CDN system.
发明内容Summary of the invention
本发明实施例提供一种数据资源存储方法及装置,用于解决因对CDN系统的存储介质使用不合理而导致CDN系统性能较差的技术问题。The embodiment of the invention provides a data resource storage method and device for solving the technical problem that the performance of the CDN system is poor due to unreasonable use of the storage medium of the CDN system.
本发明实施例提供了一种数据资源存储方法,包括:The embodiment of the invention provides a data resource storage method, including:
判断CDN系统中存储的第一数据资源的访问次数是否大于等于第一热度阈值;Determining whether the number of accesses of the first data resource stored in the CDN system is greater than or equal to a first heat threshold;
若所述第一数据资源的访问次数大于等于所述第一热度阈值,则将所 述第一数据资源存储到所述CDN系统中的硬盘中;否则,将所述第一数据资源存储到所述CDN系统的内存中。If the number of accesses of the first data resource is greater than or equal to the first heat threshold, The first data resource is stored in a hard disk in the CDN system; otherwise, the first data resource is stored in a memory of the CDN system.
可选的,还包括:Optionally, it also includes:
接收针对所述第一数据资源的访问请求;Receiving an access request for the first data resource;
将所述第一数据资源的访问次数增加第一值。The number of accesses of the first data resource is increased by a first value.
可选的,Optional,
判断CDN系统中存储的第一数据资源的访问次数是否大于等于第一热度阈值,包括:Determining whether the number of accesses of the first data resource stored in the CDN system is greater than or equal to the first heat threshold, including:
判断所述第一数据资源的访问次数是否大于等于第一子热度阈值;Determining whether the number of accesses of the first data resource is greater than or equal to a first sub-thermal threshold;
若所述第一数据资源的访问次数大于等于所述第一热度阈值,则将所述第一数据资源存储到所述CDN系统中的硬盘中,包括:And if the number of times of accessing the first data resource is greater than or equal to the first heat threshold, storing the first data resource in a hard disk in the CDN system, including:
若所述第一数据资源的访问次数大于等于所述第一子热度阈值,则将所述第一数据资源存储到所述CDN系统中的第一级硬盘中;所述第一级硬盘为所述CDN系统中最高级别的硬盘。If the number of accesses of the first data resource is greater than or equal to the first sub-thermal threshold, storing the first data resource in a first-level hard disk in the CDN system; The highest level of hard disk in the CDN system.
可选的,Optional,
在判断所述第一数据资源的访问次数是否大于等于第一子热度阈值之后,还包括:After determining whether the number of accesses of the first data resource is greater than or equal to the first sub-thermal threshold, the method further includes:
若所述第一数据资源的访问次数小于所述第一子热度阈值,判断所述第一数据资源的访问次数是否大于等于第二子热度阈值;If the number of accesses of the first data resource is less than the first sub-thermal threshold, determining whether the number of accesses of the first data resource is greater than or equal to a second sub-thermal threshold;
若所述第一数据资源的访问次数大于等于所述第一热度阈值,则将所述第一数据资源存储到所述CDN系统中的硬盘中,包括:And if the number of times of accessing the first data resource is greater than or equal to the first heat threshold, storing the first data resource in a hard disk in the CDN system, including:
若所述第一数据资源的访问次数大于等于所述第二子热度阈值,则将所述第一数据资源存储到所述CDN系统中的第二级硬盘中;所述第二级硬盘的级别低于所述第一级硬盘的级别。If the number of accesses of the first data resource is greater than or equal to the second sub-thermal threshold, storing the first data resource in a second-level hard disk in the CDN system; It is lower than the level of the first-level hard disk.
可选的,否则,将所述第一数据资源存储到所述CDN系统的内存中,包括: Optionally, the first data resource is stored in the memory of the CDN system, including:
若所述第一数据资源的访问次数小于所述第二子热度阈值,将所述第一数据资源存储到所述内存中。And if the number of accesses of the first data resource is less than the second sub-thermal threshold, storing the first data resource into the memory.
可选的,在接收针对CDN系统中存储的第一数据资源的访问请求之后,还包括:Optionally, after receiving the access request for the first data resource stored in the CDN system, the method further includes:
查询所述第一数据资源是否存储在所述CDN系统的存储介质中;Querying whether the first data resource is stored in a storage medium of the CDN system;
若所述第一数据资源未存储在所述CDN系统的存储介质中,则根据所述第一数据资源的类型确定所述第一数据资源对应的所述CDN系统中的存储介质的级别为第一级存储介质;所述第一级存储介质为所述CDN系统中的硬盘或内存;If the first data resource is not stored in the storage medium of the CDN system, determining, according to the type of the first data resource, a level of the storage medium in the CDN system corresponding to the first data resource is a primary storage medium; the first level storage medium is a hard disk or a memory in the CDN system;
从所述第一数据资源对应的源站获取所述第一数据资源,并将所述第一数据资源存储到所述第一级存储介质中;Obtaining the first data resource from a source station corresponding to the first data resource, and storing the first data resource in the first-level storage medium;
通过所述第一级存储介质返回所述第一数据资源。Returning the first data resource through the first level storage medium.
可选的,所述方法还包括:Optionally, the method further includes:
统计所述CDN系统的第二级存储介质中存储的M个数据资源的访问次数,获得M个访问次数;所述第二级存储介质为所述CDN系统中的第一级硬盘或第二级硬盘,M为正整数;Counting the number of accesses of the M data resources stored in the second-level storage medium of the CDN system to obtain M access times; the second-level storage medium is the first-level hard disk or the second level in the CDN system Hard disk, M is a positive integer;
分别判断所述M个访问次数中是否有访问次数低于第二热度阈值;Determining whether the number of accesses of the M access times is lower than a second heat threshold;
若所述M个访问次数中的第一访问次数低于所述第二热度阈值,则判断所述CDN系统中是否存在级别低于所述第二级存储介质的级别的第三级存储介质;所述第三级存储介质为所述CDN系统中的硬盘;If the first access number of the M access times is lower than the second heat threshold, determining whether there is a third-level storage medium in a level lower than a level of the second-level storage medium in the CDN system; The third level storage medium is a hard disk in the CDN system;
若存在所述第三级存储介质,将所述第一访问次数对应的所述M个数据资源中的第二数据资源存储到所述第三级存储介质中;否则,从所述第二级存储介质中删除所述第二数据资源。If the third-level storage medium exists, the second data resource of the M data resources corresponding to the first access number is stored in the third-level storage medium; otherwise, from the second level The second data resource is deleted from the storage medium.
本发明实施例提供了一种数据资源存储装置,包括:The embodiment of the invention provides a data resource storage device, including:
判断模块,设置为判断内容分发网络CDN系统中存储的第一数据资源的访问次数是否大于等于第一热度阈值; a determining module, configured to determine whether the number of accesses of the first data resource stored in the content distribution network CDN system is greater than or equal to a first heat threshold;
第一操作模块,设置为若所述第一数据资源的访问次数大于等于所述第一热度阈值,则将所述第一数据资源存储到所述CDN系统中的硬盘中;否则,将所述第一数据资源存储到所述CDN系统的内存中。a first operation module, configured to store the first data resource in a hard disk in the CDN system if the number of accesses of the first data resource is greater than or equal to the first heat threshold; otherwise, The first data resource is stored in a memory of the CDN system.
可选的,所述装置还包括接收模块和第二操作模块;Optionally, the device further includes a receiving module and a second operating module;
所述接收模块,设置为接收针对所述第一数据资源的访问请求;The receiving module is configured to receive an access request for the first data resource;
所述第二操作模块,设置为将所述第一数据资源的访问次数增加第一值。The second operation module is configured to increase a number of accesses of the first data resource by a first value.
可选的,Optional,
所述判断模块设置为:判断所述第一数据资源的访问次数是否大于等于第一子热度阈值;The determining module is configured to: determine whether the number of accesses of the first data resource is greater than or equal to a first sub-thermal threshold;
所述第一操作模块设置为:若所述第一数据资源的访问次数大于等于所述第一子热度阈值,则将所述第一数据资源存储到所述CDN系统中的第一级硬盘中;所述第一级硬盘为所述CDN系统中最高级别的硬盘。The first operation module is configured to: when the number of accesses of the first data resource is greater than or equal to the first sub-thermal threshold, storing the first data resource in a first-level hard disk in the CDN system The first level hard disk is the highest level hard disk in the CDN system.
可选的,Optional,
所述判断模块设置为:在判断所述第一数据资源的访问次数是否大于等于第一子热度阈值之后,若所述第一数据资源的访问次数小于所述第一子热度阈值,判断所述第一数据资源的访问次数是否大于等于第二子热度阈值;The determining module is configured to: after determining whether the number of accesses of the first data resource is greater than or equal to a first sub-thermal threshold, if the number of accesses of the first data resource is less than the first sub-thermal threshold, determining Whether the number of accesses of the first data resource is greater than or equal to the second sub-thermal threshold;
所述第一操作模块设置为:若所述第一数据资源的访问次数大于等于所述第二子热度阈值,则将所述第一数据资源存储到所述CDN系统中的第二级硬盘中;所述第二级硬盘的级别低于所述第一级硬盘的级别。The first operation module is configured to: when the number of accesses of the first data resource is greater than or equal to the second sub-thermal threshold, storing the first data resource in a second-level hard disk in the CDN system The level of the second level hard disk is lower than the level of the first level hard disk.
可选的,所述第一操作模块设置为:Optionally, the first operation module is set to:
若所述第一数据资源的访问次数小于所述第二子热度阈值,将所述第一数据资源存储到所述内存中。And if the number of accesses of the first data resource is less than the second sub-thermal threshold, storing the first data resource into the memory.
可选的,所述装置还包括:Optionally, the device further includes:
查询模块,设置为在所述接收模块接收针对所述第一数据资源的访问 请求之后,查询所述第一数据资源是否存储在所述CDN系统的存储介质中;a query module configured to receive an access to the first data resource at the receiving module After the request, querying whether the first data resource is stored in a storage medium of the CDN system;
确定模块,设置为若所述第一数据资源未存储在所述CDN系统的存储介质中,则根据所述第一数据资源的类型确定所述第一数据资源对应的所述CDN系统中的存储介质的级别为第一级存储介质;所述第一级存储介质为所述CDN系统中的硬盘或内存;Determining, if the first data resource is not stored in the storage medium of the CDN system, determining, according to the type of the first data resource, the storage in the CDN system corresponding to the first data resource The level of the medium is a first level storage medium; the first level storage medium is a hard disk or a memory in the CDN system;
获取模块,设置为从所述第一数据资源对应的源站获取所述第一数据资源,并将所述第一数据资源存储到所述第一级存储介质中;An acquiring module, configured to acquire the first data resource from a source station corresponding to the first data resource, and store the first data resource into the first-level storage medium;
返回模块,设置为通过所述第一级存储介质返回所述第一数据资源。Returning to the module, the setting is to return the first data resource by the first level storage medium.
可选的,所述装置还包括:Optionally, the device further includes:
统计模块,设置为统计所述CDN系统的第二级存储介质中存储的M个数据资源的访问次数,获得M个访问次数;所述第二级存储介质为所述CDN系统中的第一级硬盘或第二级硬盘,M为正整数;a statistics module, configured to count the number of accesses of the M data resources stored in the second-level storage medium of the CDN system, to obtain M access times; the second-level storage medium is the first level in the CDN system Hard disk or second-level hard disk, M is a positive integer;
所述判断模块,还设置为分别判断所述M个访问次数中是否有访问次数低于第二热度阈值;The determining module is further configured to determine, respectively, whether the number of accesses of the M access times is lower than a second heat threshold;
所述判断模块,还设置为若所述M个访问次数中的第一访问次数低于所述第二热度阈值,则判断所述CDN系统中是否存在级别低于所述第二级存储介质的级别的第三级存储介质;所述第三级存储介质为所述CDN系统中的硬盘;The determining module is further configured to determine, if the first access number of the M access times is lower than the second heat threshold, whether the level of the CDN system is lower than the second-level storage medium a third level storage medium of the level; the third level storage medium is a hard disk in the CDN system;
所述第一操作模块,还设置为若存在所述第三级存储介质,将所述第一访问次数对应的所述M个数据资源中的第二数据资源存储到所述第三级存储介质中;否则,从所述第二级存储介质中删除所述第二数据资源。The first operation module is further configured to: if the third-level storage medium exists, store the second data resource of the M data resources corresponding to the first access times to the third-level storage medium And deleting the second data resource from the second level storage medium.
在本发明实施例中,还提供了一种计算机存储介质,该计算机存储介质可以存储有执行指令,该执行指令用于执行上述实施例中的数据资源存储方法的实现。In the embodiment of the present invention, a computer storage medium is further provided, and the computer storage medium may store an execution instruction for executing the implementation of the data resource storage method in the foregoing embodiment.
上述技术方案中的一个或两个,至少具有如下技术效果:One or both of the above technical solutions have at least the following technical effects:
本发明实施例中,可以统计数据资源的访问次数,即分析该数据资源 的访问热度,如果该数据资源的访问次数大于第一热度阈值,说明该数据资源被访问的次数较多,也就是说明该数据资源为热点资源,那么就可以将该数据资源存储到CDN系统的硬盘中,CDN系统中,硬盘的性能高于内存的性能,将热点资源存储在硬盘中,能够为用户访问较多的资源(即热点资源)提供更快的访问速度,尽量保证观看的流畅度,提高用户体验。这样,通过较为合理地利用CDN系统中的各级存储介质,提高了CDN系统整体的性能和利用率。In the embodiment of the present invention, the number of accesses of the data resource may be counted, that is, the data resource is analyzed. The access heat, if the number of accesses of the data resource is greater than the first heat threshold, indicating that the data resource is accessed more times, that is, the data resource is a hotspot resource, then the data resource can be stored in the CDN system. In a hard disk, in a CDN system, the performance of the hard disk is higher than that of the memory. The hotspot resource is stored in the hard disk, which can provide faster access speed for users to access more resources (ie hotspot resources), and ensure the smoothness of viewing as much as possible. To improve the user experience. In this way, the overall performance and utilization of the CDN system is improved by making rational use of various levels of storage media in the CDN system.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1为本发明实施例中数据资源存储方法的流程图;FIG. 1 is a flowchart of a method for storing a data resource according to an embodiment of the present invention;
图2为本发明实施例中CDN系统的第一种结构示意图;2 is a schematic diagram of a first structure of a CDN system according to an embodiment of the present invention;
图3为本发明实施例中CDN系统的第二种结构示意图。FIG. 3 is a schematic diagram of a second structure of a CDN system according to an embodiment of the present invention.
具体实施方式detailed description
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明实施例中,CDN系统中可以包括硬盘和内存等存储介质,其中硬盘可以包括多种类型,例如可以包括SSD(SolidState Drive,固态硬盘)、SATA(Serial Advanced Technology Attachment,串行硬盘接口技 术)等不同类型的硬盘。In the embodiment of the present invention, the CDN system may include a storage medium such as a hard disk and a memory. The hard disk may include multiple types, for example, an SSD (Solid State Drive) or a SATA (Serial Advanced Technology Attachment). Different types of hard drives.
在CDN系统中,按照本发明实施例的技术方案,可以将存储介质按照缓存的性能进行分级,缓存的性能越高的级别也就越高。例如,内存的缓存性能一般不如硬盘的缓存性能,因此可以认为内存是CDN系统中级别较低的存储介质,而不同的硬盘的缓存性能也不同,比如SSD的缓存性能一般来说会优于SATA的缓存性能,例如SSD的存储速度等一般会高于SATA的存储速度,那么可以认为SSD的级别高于SATA的级别,等等。In the CDN system, according to the technical solution of the embodiment of the present invention, the storage medium can be classified according to the performance of the cache, and the level of the cache performance is higher. For example, the cache performance of memory is generally not as good as that of the hard disk. Therefore, memory can be considered as a lower-level storage medium in the CDN system, and the cache performance of different hard disks is different. For example, the cache performance of SSD is generally better than SATA. The cache performance, such as the storage speed of the SSD, is generally higher than the storage speed of the SATA, so the SSD level can be considered higher than the SATA level, and so on.
本发明实施例中,数据资源也可以理解为文件、数据等。In the embodiment of the present invention, the data resource can also be understood as a file, data, and the like.
本发明实施例中的术语“系统”和“网络”可被互换使用。“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,字符“/”,如无特殊说明,一般表示前后关联对象是一种“或”的关系。The terms "system" and "network" in the embodiments of the present invention may be used interchangeably. "Multiple" means two or more. "and/or", describing the association relationship of the associated objects, indicating that there may be three relationships, for example, A and/or B, which may indicate that there are three cases where A exists separately, A and B exist at the same time, and B exists separately. In addition, the character "/", unless otherwise specified, generally indicates that the contextual object is an "or" relationship.
下面结合附图介绍本发明实施例中优选的实施例。Preferred embodiments of the embodiments of the present invention are described below with reference to the accompanying drawings.
请参见图1,本发明实施例提供一种数据资源存储方法,该方法的流程描述如下。Referring to FIG. 1, an embodiment of the present invention provides a data resource storage method, and a process of the method is described as follows.
步骤101:判断CDN系统中存储的第一数据资源的访问次数是否大于等于第一热度阈值;Step 101: Determine whether the number of accesses of the first data resource stored in the CDN system is greater than or equal to a first heat threshold.
步骤102:若第一数据资源的访问次数大于等于第一热度阈值,则将第一数据资源存储到CDN系统中的硬盘中;否则,将第一数据资源存储到CDN系统的内存中。Step 102: If the number of accesses of the first data resource is greater than or equal to the first heat threshold, the first data resource is stored in the hard disk in the CDN system; otherwise, the first data resource is stored in the memory of the CDN system.
可选的,在步骤101之前,还可以包括:Optionally, before step 101, the method may further include:
接收针对第一数据资源的访问请求;Receiving an access request for the first data resource;
将第一数据资源的访问次数增加第一值。The number of accesses of the first data resource is increased by a first value.
其中,增加第一值,是指将本次访问请求也统计到第一数据资源的访问次数中,第一值例如为1,或者也可以是其他值。 The first value is added to the number of accesses of the first data resource, and the first value is, for example, 1, or may be other values.
针对第一数据资源的访问请求,例如可能是用户发起的请求,比如第一数据资源为视频资源,那么用户可能请求播放或下载该视频资源等。The access request for the first data resource may be, for example, a user-initiated request, for example, the first data resource is a video resource, and the user may request to play or download the video resource or the like.
本发明实施例中,每接收到针对一个数据资源的请求,就可以将统计的该数据资源的访问次数加1。对数据资源的热度统计,可以从CDN系统每次初始化之后起开始统计,或者也可以在其他任意时间点开始统计,本发明对此不作限制。In the embodiment of the present invention, each time a request for one data resource is received, the counted number of accesses of the data resource may be incremented by one. For the heat statistics of the data resources, the statistics can be started from the time after the initialization of the CDN system, or the statistics can be started at any other time point, which is not limited by the present invention.
在将第一数据资源的访问次数加1后,可以判断第一数据资源的总的访问次数是否大于等于第一热度阈值,如果是,那么可以认为第一数据资源被访问的次数较多,是较为热点的数据资源,那么可以将第一数据资源存储到硬盘中,以提高对第一数据资源的访问速度,以及延长对第一数据资源的缓存时间,避免第一数据资源丢失等,为用户提供更好的体验,而如果第一数据资源的总的访问次数小于第一热度阈值,那么可以认为第一数据资源被访问的次数较少,是较冷的数据资源,那么可以将第一数据资源放在内存中,这样可以在硬盘中空出更多的存储空间以存储较为热点的数据资源,为大多数用户提供较好的体验。第一热度阈值可以由用户自行设定,或者也可以由系统设定。After the number of accesses of the first data resource is increased by one, it can be determined whether the total number of accesses of the first data resource is greater than or equal to the first heat threshold. If yes, the first data resource can be considered to be accessed more times. A hot data resource, the first data resource can be stored in the hard disk to improve the access speed of the first data resource, and the cache time of the first data resource is extended, and the first data resource is lost. Providing a better experience, and if the total number of accesses of the first data resource is less than the first heat threshold, then the first data resource can be considered to be accessed less frequently, which is a colder data resource, and then the first data can be The resources are placed in the memory, so that more storage space can be hollowed out on the hard disk to store more hot data resources, providing a better experience for most users. The first heat threshold can be set by the user or can be set by the system.
可选的,Optional,
判断CDN系统中存储的第一数据资源的访问次数是否大于等于第一热度阈值,包括:Determining whether the number of accesses of the first data resource stored in the CDN system is greater than or equal to the first heat threshold, including:
判断第一数据资源的访问次数是否大于等于第一子热度阈值;Determining whether the number of accesses of the first data resource is greater than or equal to the first sub-thermal threshold;
若第一数据资源的访问次数大于等于第一热度阈值,则将第一数据资源存储到所述CDN系统中的硬盘中,包括:If the number of accesses of the first data resource is greater than or equal to the first heat threshold, storing the first data resource in the hard disk in the CDN system, including:
若第一数据资源的访问次数大于等于第一子热度阈值,则将第一数据资源存储到CDN系统中的第一级硬盘中;第一级硬盘为CDN系统中最高级别的硬盘。If the number of accesses of the first data resource is greater than or equal to the first sub-thermal threshold, the first data resource is stored in the first-level hard disk in the CDN system; the first-level hard disk is the highest-level hard disk in the CDN system.
在将第一数据资源的访问次数加1后,可以判断第一数据资源的访问次数是否大于等于第一子热度阈值,第一子热度阈值可以为是否能存储到 第一级硬盘中的门限,第一级硬盘可以是CDN系统中缓存性能最好的硬盘,例如可以是SSD,当然也可能是其他类型的硬盘。After the number of accesses of the first data resource is increased by one, it can be determined whether the number of accesses of the first data resource is greater than or equal to the first sub-thermal threshold, and the first sub-thermal threshold can be stored. The threshold of the first-level hard disk, the first-level hard disk can be the best hard disk in the CDN system, such as SSD, and of course other types of hard disk.
如果第一数据资源的访问次数大于等于第一子热度阈值,表明第一数据资源为热点资源,那么就可以将第一数据资源存储到第一级硬盘中,第一级硬盘的缓存性能最好,因为第一数据资源的访问次数较多,可以为更多用户提供更好的体验。If the number of accesses of the first data resource is greater than or equal to the first sub-thermal threshold, indicating that the first data resource is a hot resource, the first data resource may be stored in the first-level hard disk, and the first-level hard disk has the best cache performance. Because the first data resource has a large number of accesses, it can provide a better experience for more users.
可选的,如果第一数据资源的访问次数大于等于第一子热度阈值,那么可以通过查询确定第一数据资源是否已存储在第二级硬盘中,如果是,那么可以直接将第二级硬盘中的第一数据资源重新存储到第一级硬盘中,如果第一数据资源未存储在第二级硬盘中,那么可以向第一数据资源所在的源站请求获得第一数据资源,并将获得的第一数据资源存储到第一级硬盘中。Optionally, if the number of accesses of the first data resource is greater than or equal to the first sub-thermal threshold, the query may determine whether the first data resource is stored in the second-level hard disk, and if so, the second-level hard disk may be directly The first data resource is re-stored in the first-level hard disk. If the first data resource is not stored in the second-level hard disk, the first data resource may be requested from the source station where the first data resource is located, and the first data resource may be obtained. The first data resource is stored in the first level hard disk.
可选的,Optional,
在判断第一数据资源的访问次数是否大于等于第一子热度阈值之后,还包括:After determining whether the number of accesses of the first data resource is greater than or equal to the first sub-thermal threshold, the method further includes:
若第一数据资源的访问次数小于第一子热度阈值,判断第一数据资源的访问次数是否大于等于第二子热度阈值;If the number of accesses of the first data resource is less than the first sub-thermal threshold, determining whether the number of accesses of the first data resource is greater than or equal to the second sub-thermal threshold;
若第一数据资源的访问次数大于等于第一热度阈值,则将第一数据资源存储到CDN系统中的硬盘中,包括:If the number of accesses of the first data resource is greater than or equal to the first heat threshold, storing the first data resource in the hard disk in the CDN system, including:
若第一数据资源的访问次数大于等于第二子热度阈值,则将第一数据资源存储到CDN系统中的第二级硬盘中;第二级硬盘的级别低于第一级硬盘的级别。If the number of accesses of the first data resource is greater than or equal to the second sub-thermal threshold, the first data resource is stored in the second-level hard disk in the CDN system; the level of the second-level hard disk is lower than the level of the first-level hard disk.
如果第一数据资源的访问次数小于第一子热度阈值,表明第一数据资源还未达到能存储到第一级硬盘中的热度,那么可以继续判断第一数据资源的访问次数是否大于等于第二子热度阈值,第二子热度阈值可以为是否能存储到第二级硬盘中的门限,第二级硬盘可以是CDN系统中缓存性能次于第一级硬盘的硬盘,例如可以是CDN系统中缓存性能仅次于第一级硬盘 的硬盘。例如,若第一级硬盘是SSD,则第二级硬盘可以是SATA,当然也可能是其他类型的硬盘。If the number of accesses of the first data resource is less than the first sub-thermal threshold, indicating that the first data resource has not reached the heat stored in the first-level hard disk, it may continue to determine whether the number of accesses of the first data resource is greater than or equal to the second. The sub-thermal threshold, the second sub-thermal threshold may be a threshold that can be stored in the second-level hard disk, and the second-level hard disk may be a hard disk with a cache performance lower than that of the first-level hard disk in the CDN system, for example, may be a cache in the CDN system. Performance is second only to the first level hard drive Hard drive. For example, if the first-level hard disk is an SSD, the second-level hard disk can be SATA, and of course other types of hard disks.
另外,因为第二级硬盘的缓存性能次于第一级硬盘,因此第二子热度阈值也小于第一子热度阈值。第一子热度阈值和第二子热度阈值等存储介质的门限,可以由用户设定,或者也可以由系统自行设定,或者也可以在CDN系统出厂时即设定好,等等,本发明不作限制。In addition, because the cache performance of the second-level hard disk is inferior to that of the first-level hard disk, the second sub-heat threshold is also smaller than the first sub-heat threshold. The threshold of the storage medium such as the first sub-heat threshold and the second sub-heat threshold may be set by the user, or may be set by the system itself, or may be set when the CDN system is shipped, etc., the present invention No restrictions.
如果第一数据资源的访问次数大于等于第二子热度阈值,表明第一数据资源为较为热点的数据资源,那么就可以将第一数据资源存储到第二级硬盘中,第二级硬盘的缓存性能也比较好,因为第一数据资源的访问次数也算较多,可以提供更好的体验。If the number of accesses of the first data resource is greater than or equal to the second sub-thermal threshold, indicating that the first data resource is a hot data resource, the first data resource may be stored in the second-level hard disk, and the second-level hard disk is cached. The performance is also better, because the number of accesses to the first data resource is also more, which can provide a better experience.
可选的,如果第一数据资源的访问次数小于第一子热度阈值且大于等于第二子热度阈值,那么可以向第一数据资源所在的源站请求获得第一数据资源,并将获得的第一数据资源存储到第一级硬盘中。Optionally, if the number of accesses of the first data resource is less than the first sub-thermal threshold and greater than or equal to the second sub-thermal threshold, the first data resource may be requested to be obtained from the source station where the first data resource is located, and the obtained first A data resource is stored in the first level hard disk.
可选的,否则,将第一数据资源存储到所述CDN系统的内存中,包括:Optionally, the first data resource is stored in the memory of the CDN system, including:
若第一数据资源的访问次数小于第二子热度阈值,将第一数据资源存储到内存中。If the number of accesses of the first data resource is less than the second sub-thermal threshold, the first data resource is stored in the memory.
本发明实施例中,如果第一数据资源的访问次数也小于第二子热度阈值,那么表明第一数据资源可能是较为冷门的数据资源,无需存储到硬盘中,则将第一数据资源存储到内存中即可。In the embodiment of the present invention, if the number of accesses of the first data resource is also less than the second sub-thermal threshold, it indicates that the first data resource may be a relatively unpopular data resource, and the first data resource is stored to the hard disk without being stored in the hard disk. In memory.
当然,本发明实施例以上均是以CDN系统中具有三个级别的存储介质(即内存和两个级别的硬盘)为例,在实际应用中,CDN系统中可能具有多种不同类型的硬盘,那么也就相当于具有多个级别的硬盘,例如可能会有三个级别或四个级别的硬盘等,那么根据本发明实施例所提供的方案,对于一个数据资源可以依次判断是否满足每个级别的存储介质的门限,从而可以确定该数据资源究竟存储在哪个级别的存储介质中比较合适,具体的方式可参考如前的介绍,本领域技术人员自然知道无论CDN系统中包括多少个级别的存储介质,将数据资源存储到合理的存储介质中的方案都在 本发明的保护范围之内。Certainly, all the embodiments of the present invention are based on three levels of storage media (ie, memory and two levels of hard disks) in the CDN system. In practical applications, the CDN system may have multiple types of hard disks. Then, it is equivalent to a hard disk having multiple levels, for example, there may be three levels or four levels of hard disks, etc., according to the solution provided by the embodiment of the present invention, it is possible to sequentially determine whether each level is satisfied for one data resource. It is suitable to determine the threshold of the storage medium, so that it can be determined in which level of the storage medium the data resource is stored. For details, refer to the introduction above, and those skilled in the art naturally know how many levels of storage media are included in the CDN system. , the solution to store data resources into a reasonable storage medium is Within the scope of protection of the present invention.
前面介绍的是在接收用户针对某个数据资源的请求后,通过统计该数据资源的热度来确定该数据资源应存储到哪个级别的存储介质中,而在接收用户针对某个数据资源的请求后,CDN系统还应该响应用户的请求,为用户提供用户所请求的数据资源,下面就介绍这部分内容。The foregoing describes that after receiving a request for a data resource by a user, by counting the heat of the data resource, it is determined to which storage medium the data resource should be stored, and after receiving the user's request for a certain data resource. The CDN system should also provide the user with the data resources requested by the user in response to the user's request. This section is described below.
可选的,在接收针对CDN系统中存储的第一数据资源的访问请求之后,还包括:Optionally, after receiving the access request for the first data resource stored in the CDN system, the method further includes:
查询第一数据资源是否存储在CDN系统的存储介质中;Query whether the first data resource is stored in a storage medium of the CDN system;
若第一数据资源未存储在CDN系统的存储介质中,则根据第一数据资源的类型确定第一数据资源对应的CDN系统中的存储介质的级别为第一级存储介质;第一级存储介质为CDN系统中的硬盘或内存;If the first data resource is not stored in the storage medium of the CDN system, determining, according to the type of the first data resource, the level of the storage medium in the CDN system corresponding to the first data resource is a first-level storage medium; the first-level storage medium a hard disk or memory in a CDN system;
从第一数据资源对应的源站获取第一数据资源,并将第一数据资源存储到第一级存储介质中;Acquiring the first data resource from the source station corresponding to the first data resource, and storing the first data resource in the first-level storage medium;
通过第一级存储介质返回第一数据资源。The first data resource is returned through the first level storage medium.
在接收针对CDN系统中存储的第一数据资源的访问请求后,首先看看第一数据资源是否已存储在CDN系统的存储介质中,如果已经存储了,例如存储在第一级存储介质中,那么可以直接通过第一级存储介质向用户返回第一数据资源。如果未存储第一数据资源,那么CDN系统可以根据第一数据资源的类型确定第一数据资源应存储在哪个级别的存储介质中,例如以视频资源为例,如果是直播类型的业务对应的数据资源,对缓存的要求性低,则可以确定通过内存进行服务,而如果是点播类型的业务对应的数据资源,则可以确定通过较低级别的影评进行服务,例如SATA。After receiving the access request for the first data resource stored in the CDN system, first look at whether the first data resource has been stored in the storage medium of the CDN system, and if it has been stored, for example, stored in the first-level storage medium, The first data resource can then be returned to the user directly through the first level storage medium. If the first data resource is not stored, the CDN system may determine, according to the type of the first data resource, which level of the storage medium the first data resource should be stored in, for example, a video resource, for example, if the data is a live type service. Resources, which are less demanding on the cache, can be determined to be serviced through the memory, and if it is a data resource corresponding to the service of the on-demand type, it can be determined that the service is performed through a lower level of film review, such as SATA.
若CDN系统的存储介质中未存储第一数据资源,则CDN系统向第一数据资源所在的源站请求获得第一数据资源,并将获得的第一数据资源存储到第一级存储介质中,通过第一级存储介质向用户返回第一数据资源,以完成对用户的请求的响应。If the first data resource is not stored in the storage medium of the CDN system, the CDN system requests the source station where the first data resource is located to obtain the first data resource, and stores the obtained first data resource into the first-level storage medium. The first data resource is returned to the user through the first level storage medium to complete the response to the user's request.
在将获得的第一数据资源存储到第一级存储介质之后,或者如果第一 数据资源已存储在第一级存储介质中,则在确定第一数据资源存储在第一存储介质中之后,可以进行步骤103,以确定是否要继续将第一数据资源存储在第一级存储介质中。After storing the obtained first data resource to the first level storage medium, or if the first After the data resource is stored in the first level storage medium, after determining that the first data resource is stored in the first storage medium, step 103 may be performed to determine whether to continue storing the first data resource in the first level storage medium. in.
由于CDN系统的热度统计都是基于对数据资源的访问次数,访问次数具有累加性,当一个不是很热点的数据资源经过长时间的积累,访问次数也有可能会比较大,这样就形成了伪热点。下面介绍的内容,主要目的是剔除掉此类伪热点。Since the heat statistics of the CDN system are based on the number of accesses to the data resources, the number of accesses is cumulative. When a data resource that is not very hot is accumulated for a long time, the number of accesses may be relatively large, thus forming a pseudo hotspot. . The main purpose of the following is to eliminate such pseudo hotspots.
可选的,所述方法还包括:Optionally, the method further includes:
统计CDN系统的第二级存储介质中存储的M个数据资源的访问次数,获得M个访问次数;第二级存储介质为CDN系统中的第一级硬盘或第二级硬盘,M为正整数;Counting the number of accesses of M data resources stored in the second-level storage medium of the CDN system, and obtaining M access times; the second-level storage medium is the first-level hard disk or the second-level hard disk in the CDN system, and M is a positive integer ;
分别判断M个访问次数中是否有访问次数低于第二热度阈值;Determining whether the number of accesses of the M access times is lower than the second heat threshold;
若M个访问次数中的第一访问次数低于所述第二热度阈值,则判断CDN系统中是否存在级别低于第二级存储介质的级别的第三级存储介质;第三级存储介质为CDN系统中的硬盘;If the first access number of the M access times is lower than the second heat threshold, determining whether there is a third-level storage medium whose level is lower than the level of the second-level storage medium in the CDN system; the third-level storage medium is a hard disk in a CDN system;
若存在第三级存储介质,将第一访问次数对应的所述M个数据资源中的第二数据资源存储到第三级存储介质中;否则,从第二级存储介质中删除第二数据资源。If there is a third-level storage medium, storing the second data resource of the M data resources corresponding to the first access number into the third-level storage medium; otherwise, deleting the second data resource from the second-level storage medium .
第二级存储介质可以是CDN系统中任意一个级别的硬盘,即,对于CDN系统中的每个级别的硬盘都可以通过执行以上流程来剔除伪热点。The second level storage medium may be any level of hard disk in the CDN system, that is, the pseudo hotspot may be eliminated by performing the above process for each level of the hard disk in the CDN system.
例如,可以定时或周期性统计第二级存储介质中存储的M个数据资源的访问次数,M个数据资源可以是第二级存储介质中存储的全部数据资源,或者也可以是第二级存储介质中存储的部分数据资源,本发明对此不作限制。For example, the number of accesses of the M data resources stored in the second-level storage medium may be periodically or periodically counted, and the M data resources may be all data resources stored in the second-level storage medium, or may be second-level storage. The data resources stored in the medium are not limited in the present invention.
可选的,因为热点统计可能持续很长时间,则访问次数的值可能会很大,为计算方便,也为了更能适应后面即将提到的第二热度阈值,在得到M个实际访问次数后,对于M个实际访问次数中的每个实际访问次数,可 以均减去一个固定的数值,例如为k(k为正整数),假设减之前数据资源1的实际访问次数为n,则减完后,得到的数据资源1的访问次数为n-k。Optionally, because the hotspot statistics may last for a long time, the value of the number of accesses may be large, which is convenient for calculation, and is more suitable for the second heat threshold mentioned later, after obtaining M actual access times. For each actual number of M actual visits, A fixed value is subtracted, for example, k (k is a positive integer). If the actual number of accesses of the data resource 1 is n before the subtraction, the number of accesses of the obtained data resource 1 is n-k.
在将M个实际访问次数中的每个实际访问次数均减去k后,得到如前提到的M个访问次数,可以分别判断其中是否有低于第二热度阈值的访问次数。After subtracting k from each of the M actual access times, the number of M accesses obtained as a premise is obtained, and whether there are access times below the second heat threshold can be separately determined.
第二热度阈值可以是从第二存储介质中移除的门限。例如,如果第二存储介质是第一级硬盘,第一子热度阈值是存储到第一级硬盘中的门限,第二热度阈值是从第一级硬盘中移除的门限,第一子热度阈值可以等于第二热度阈值,或者,第一子热度阈值可以大于第二热度阈值。The second heat threshold may be a threshold that is removed from the second storage medium. For example, if the second storage medium is a first-level hard disk, the first sub-heat threshold is a threshold stored in the first-level hard disk, and the second heat threshold is a threshold removed from the first-level hard disk, the first sub-heat threshold The second heat threshold may be equal to, or the first child heat threshold may be greater than the second heat threshold.
例如M个访问次数中,第一访问次数低于第二热度阈值,那么可以认为第一访问次数对应的数据资源(例如称为第二数据资源,第二数据资源与第一数据资源可以是同一数据资源,或者也可以是不同的数据资源)是伪热点,可以看CDN系统的硬盘中是否有级别低于第二存储介质的级别的硬盘。比如,如果CDN系统的硬盘包括第一级硬盘和第二级硬盘,如果第二级存储介质为第一级硬盘,那么还有第二级硬盘的级别低于第一级硬盘,而如果第二级存储介质为第二级硬盘,那么CDN系统中就没有级别再低于第二级硬盘的其他硬盘了。For example, among the M access times, the first access number is lower than the second heat threshold, then the data resource corresponding to the first access number may be considered (for example, referred to as the second data resource, and the second data resource and the first data resource may be the same The data resource, or it may be a different data resource, is a pseudo hotspot. It can be seen whether there is a hard disk in the CDN system whose level is lower than the level of the second storage medium. For example, if the hard disk of the CDN system includes the first-level hard disk and the second-level hard disk, if the second-level storage medium is the first-level hard disk, then the second-level hard disk has a lower level than the first-level hard disk, and if the second-level hard disk is lower than the first-level hard disk, and if the second The level storage medium is a second-level hard disk, so there is no other hard disk in the CDN system that is lower than the second-level hard disk.
如果CDN系统中还有级别低于第二级存储介质的第三级存储介质,那么就可以将第二数据资源从第二级存储介质中移到第三级存储介质中,而如果CDN系统中再没有级别低于第二级存储介质的硬盘,可以直接从第二级存储介质中删除第二数据资源。If there is a third level storage medium in the CDN system lower than the second level storage medium, then the second data resource can be moved from the second level storage medium to the third level storage medium, and if the CDN system is in the CDN system There is no hard disk lower than the second-level storage medium, and the second data resource can be directly deleted from the second-level storage medium.
本发明实施例实现了CDN系统中资源分级存储的实现方法,通过该方法,可以提升用户的访问感知度,对于热点资源,越高级别的存储区提供越快的访问速度,同时兼顾了设备成本,使得收益最大化。The embodiment of the invention implements a method for implementing hierarchical storage of resources in a CDN system, and the access awareness of the user can be improved by using the method, and the faster access speed is provided for the hotspot resource, and the device cost is also considered. To maximize revenue.
通过前述的内容,即可以在CDN系统中实现基于用户请求的资源分级存储。Through the foregoing, resource grading storage based on user request can be implemented in the CDN system.
下面结合附图介绍本发明实施例中的系统和装置。 The system and apparatus in the embodiments of the present invention will be described below with reference to the accompanying drawings.
请参见图2,为本发明实现CDN系统多级存储的组件模块功能示意图,其中包括:2 is a schematic diagram of the function of a component module for implementing multi-level storage of a CDN system according to the present invention, which includes:
协议识别及处理模块:该模块负责接收客户端的请求协议报文,根据配置的解析规则,解析出请求的类型,判断是否是属于需要进行分级缓存的内容请求。如通过正则表达式的过滤控制,解析出用户的请求中哪些是请求直播类型的数据资源,哪些是请求点播类型的数据资源等,再区分存储策略。对于需要进行分级存储的内容,将请求转发给存储调度模块进行处理。Protocol identification and processing module: The module is responsible for receiving the request protocol packet of the client, parsing the type of the request according to the configured parsing rule, and determining whether it is a content request that needs to be hierarchically cached. For example, through the filtering control of the regular expression, it is parsed out which of the user's requests are requesting the live type data resource, and which are requesting the on-demand type data resources, and then distinguishing the storage policy. For content that needs to be stored hierarchically, the request is forwarded to the storage scheduling module for processing.
存储调度模块:负责控制数据资源的存储路径选择,将数据资源存储到指定的存储介质上。同时负责冷热片(即冷门资源和热点资源)的调度控制,将热点资源往更高一级的存储介质上转移,将冷们资源调度转移到低一级的存储介质上。同时维护系统内所有缓存的数据资源的内容清单,供调度时使用。Storage scheduling module: responsible for controlling the storage path selection of data resources, and storing the data resources on a specified storage medium. At the same time, it is responsible for the scheduling control of hot and cold sheets (ie, unpopular resources and hotspot resources), transferring hotspot resources to a higher level storage medium, and transferring cold resource scheduling to lower level storage media. At the same time, maintain a list of the contents of all cached data resources in the system for use during scheduling.
热度统计模块:负责统计并维护各数据资源的访问次数,形成点击热度信息,同时定时刷新热度信息,通过热度信息的变化,形成冷热片的互转,并通知存储调度模块进行冷热片的调度转移。The heat statistics module is responsible for counting and maintaining the number of accesses of each data resource, forming the click heat information, and periodically refreshing the heat information, forming the mutual rotation of the hot and cold sheets through the change of the heat information, and notifying the storage scheduling module to perform the hot and cold sheet. Schedule transfer.
多级存储模块:负责管理所有的存储介质,并提供管理功能,当数据资源发生存储介质迁移时,负责实现数据资源的迁移拷贝工作。同时负责实现LRU(Least Recently Used,近期最少使用)淘汰算法,当存储区内容满时,自动淘汰掉最不常被访问的内容。Multi-level storage module: Responsible for managing all storage media and providing management functions. When data resources are transferred to storage media, they are responsible for implementing migration and copying of data resources. At the same time, it is responsible for implementing the LRU (Least Recently Used) elimination algorithm, and automatically eliminates the most frequently accessed content when the storage area is full.
回源下载模块:实现数据资源的回源下载功能(即回数据资源所在的源站请求数据),当数据资源尚未缓存时,通过回源下载模块向源站进行内容下拉,并传输给存储模块保存下拉的数据资源。The source download module: implements the return source download function of the data resource (that is, the source station request data where the data resource is located), and when the data resource has not been cached, the content is pulled back to the source station through the source download module, and transmitted to the storage module. Save the drop-down data resource.
图2中的CDN系统包括多级存储模块,以三级存储为例,例如分别为内存、SSD和SATA。The CDN system in FIG. 2 includes a multi-level storage module, for example, three-level storage, such as memory, SSD, and SATA.
用户可以通过终端(或称为客户端)发送请求,终端例如可以是图2中所示的手机、PC(个人计算机)、STB(Set Top Box,机顶盒)等设备, 或者也可以是其他类型的设备。The user can send a request through a terminal (or a client), for example, a mobile phone, a PC (personal computer), an STB (Set Top Box), and the like shown in FIG. 2, Or it can be other types of devices.
请参见图3,基于同一发明构思,本发明实施例提供一种数据资源存储装置,该装置例如可以是CDN系统本身,或者可以作为一个功能模块,位于CDN系统中。该装置可以包括判断模块301和第一操作模块302。Referring to FIG. 3, based on the same inventive concept, an embodiment of the present invention provides a data resource storage device, which may be, for example, the CDN system itself, or may be a functional module located in a CDN system. The apparatus can include a determination module 301 and a first operational module 302.
判断模块301,设置为判断CDN系统中存储的第一数据资源的访问次数是否大于等于第一热度阈值;The determining module 301 is configured to determine whether the number of accesses of the first data resource stored in the CDN system is greater than or equal to a first heat threshold;
第一操作模块302,设置为若第一数据资源的访问次数大于等于第一热度阈值,则将第一数据资源存储到CDN系统中的硬盘中;否则,将第一数据资源存储到CDN系统的内存中。The first operation module 302 is configured to store the first data resource in a hard disk in the CDN system if the number of accesses of the first data resource is greater than or equal to the first heat threshold; otherwise, store the first data resource in the CDN system. In memory.
可选的,该装置还可以包括接收模块和第二操作模块;Optionally, the device may further include a receiving module and a second operating module;
接收模块,设置为接收针对第一数据资源的访问请求;a receiving module, configured to receive an access request for the first data resource;
第二操作模块,设置为将第一数据资源的访问次数增加第一值。The second operation module is configured to increase the number of accesses of the first data resource by a first value.
可选的,Optional,
判断模块301设置为:判断第一数据资源的访问次数是否大于等于第一子热度阈值;The determining module 301 is configured to: determine whether the number of accesses of the first data resource is greater than or equal to the first sub-thermal threshold;
第一操作模块302设置为:若第一数据资源的访问次数大于等于第一子热度阈值,则将第一数据资源存储到CDN系统中的第一级硬盘中;第一级硬盘为CDN系统中最高级别的硬盘。The first operation module 302 is configured to: if the number of accesses of the first data resource is greater than or equal to the first sub-thermal threshold, store the first data resource in the first-level hard disk in the CDN system; the first-level hard disk is in the CDN system The highest level of hard drive.
可选的,Optional,
判断模块301设置为:在判断第一数据资源的访问次数是否大于等于第一子热度阈值之后,若第一数据资源的访问次数小于第一子热度阈值,判断第一数据资源的访问次数是否大于等于第二子热度阈值;The determining module 301 is configured to: after determining whether the number of accesses of the first data resource is greater than or equal to the first sub-thermal threshold, if the number of accesses of the first data resource is less than the first sub-thermal threshold, determining whether the number of accesses of the first data resource is greater than Equal to the second sub-thermal threshold;
第一操作模块302设置为:若第一数据资源的访问次数大于等于第二子热度阈值,则将第一数据资源存储到CDN系统中的第二级硬盘中;第二级硬盘的级别低于第一级硬盘的级别。The first operation module 302 is configured to: if the number of accesses of the first data resource is greater than or equal to the second sub-thermal threshold, store the first data resource in the second-level hard disk in the CDN system; the level of the second-level hard disk is lower than The level of the first level of the hard disk.
可选的,第一操作模块302设置为: Optionally, the first operation module 302 is configured to:
若第一数据资源的访问次数小于第二子热度阈值,将第一数据资源存储到内存中。If the number of accesses of the first data resource is less than the second sub-thermal threshold, the first data resource is stored in the memory.
可选的,所述装置还包括:Optionally, the device further includes:
查询模块,设置为在接收模块接收针对CDN系统中存储的第一数据资源的访问请求之后,查询第一数据资源是否存储在CDN系统的存储介质中;a query module, configured to query, after the receiving module receives an access request for the first data resource stored in the CDN system, whether the first data resource is stored in a storage medium of the CDN system;
确定模块,设置为若第一数据资源未存储在CDN系统的存储介质中,则根据第一数据资源的类型确定第一数据资源对应的CDN系统中的存储介质的级别为第一级存储介质;第一级存储介质为CDN系统中的硬盘或内存;Determining a module, if the first data resource is not stored in the storage medium of the CDN system, determining, according to the type of the first data resource, a level of the storage medium in the CDN system corresponding to the first data resource as a first level storage medium; The first level storage medium is a hard disk or a memory in the CDN system;
获取模块,设置为从第一数据资源对应的源站获取第一数据资源,并将第一数据资源存储到第一级存储介质中;An acquiring module, configured to acquire a first data resource from a source station corresponding to the first data resource, and store the first data resource in the first-level storage medium;
返回模块,设置为通过第一级存储介质返回第一数据资源。Returning to the module, set to return the first data resource through the first level storage medium.
可选的,所述装置还包括:Optionally, the device further includes:
统计模块,设置为统计CDN系统的第二级存储介质中存储的M个数据资源的访问次数,获得M个访问次数;第二级存储介质为CDN系统中的第一级硬盘或第二级硬盘,M为正整数;The statistics module is configured to count the number of accesses of the M data resources stored in the second-level storage medium of the CDN system, and obtain M access times; the second-level storage medium is the first-level hard disk or the second-level hard disk in the CDN system. , M is a positive integer;
判断模块301,还设置为分别判断M个访问次数中是否有访问次数低于第二热度阈值;The determining module 301 is further configured to determine whether the number of accesses of the M access times is lower than the second heat threshold;
判断模块301,还设置为若M个访问次数中的第一访问次数低于第二热度阈值,则判断CDN系统中是否存在级别低于第二级存储介质的级别的第三级存储介质;第三级存储介质为CDN系统中的硬盘;The determining module 301 is further configured to: if the first access number of the M access times is lower than the second heat threshold, determine whether there is a third-level storage medium whose level is lower than the level of the second-level storage medium in the CDN system; The tertiary storage medium is a hard disk in the CDN system;
第一操作模块302,还设置为若存在第三级存储介质,将第一访问次数对应的M个数据资源中的第二数据资源存储到第三级存储介质中;否则,从第二级存储介质中删除第二数据资源。The first operation module 302 is further configured to: if the third-level storage medium exists, store the second data resource of the M data resources corresponding to the first access number into the third-level storage medium; otherwise, store from the second-level storage medium; The second data resource is deleted from the media.
本发明实施例中,在接收针对一个数据资源的访问请求时,就可以统计该数据资源的访问次数,即分析该数据资源的访问热度,如果该数据资源的访问次数大于第一热度阈值,说明该数据资源被访问的次数较多,也 就是说明该数据资源为热点资源,那么就可以将该数据资源存储到CDN系统的硬盘中,CDN系统中,硬盘的性能高于内存的性能,将热点资源存储在硬盘中,能够为用户访问较多的资源(即热点资源)提供更快的访问速度,尽量保证观看的流畅度,提高用户体验。这样,通过较为合理地利用CDN系统中的各级存储介质,提高了CDN系统整体的性能和利用率。In the embodiment of the present invention, when receiving an access request for a data resource, the number of accesses of the data resource may be counted, that is, the access heat of the data resource is analyzed, and if the number of accesses of the data resource is greater than the first heat threshold, The data resource is accessed more times, too It is to say that the data resource is a hotspot resource, and then the data resource can be stored in the hard disk of the CDN system. In the CDN system, the performance of the hard disk is higher than the performance of the memory, and the hotspot resource is stored in the hard disk, which can be accessed for the user. More resources (ie hotspot resources) provide faster access speed, try to ensure the smoothness of viewing and improve the user experience. In this way, the overall performance and utilization of the CDN system is improved by making rational use of various levels of storage media in the CDN system.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能单元的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元完成,即将装置的内部结构划分成不同的功能单元,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。It will be clearly understood by those skilled in the art that for the convenience and brevity of the description, only the division of each functional unit described above is exemplified. In practical applications, the above function assignment can be completed by different functional units as needed. The internal structure of the device is divided into different functional units to perform all or part of the functions described above. For the specific working process of the system, the device and the unit described above, reference may be made to the corresponding process in the foregoing method embodiments, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、设备和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit or unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be used. Combinations can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品 销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或processor(处理器)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM(Read-Only Memory,只读存储器)、RAM、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit is implemented as a software functional unit and as a standalone product When sold or used, it can be stored on a computer readable storage medium. Based on such understanding, the technical solution of the present application, in essence or the contribution to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a ROM (Read-Only Memory), a RAM, a magnetic disk, or an optical disk, and the like, which can store program codes.
以上所述,以上实施例仅用以对本申请的技术方案进行了详细介绍,但以上实施例的说明只是用于帮助理解本发明的方法及其核心思想,不应理解为对本发明的限制。本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。The above embodiments are only used to describe the technical solutions of the present application in detail, but the description of the above embodiments is only for helping to understand the method and the core idea of the present invention, and should not be construed as limiting the present invention. Those skilled in the art will be able to devise variations or alternatives within the scope of the present invention within the scope of the present invention.
工业实用性Industrial applicability
本发明实施例提供的上述技术方案,可以应用于数据资源存储过程中,可以统计数据资源的访问次数,即分析该数据资源的访问热度,如果该数据资源的访问次数大于第一热度阈值,说明该数据资源被访问的次数较多,也就是说明该数据资源为热点资源,那么就可以将该数据资源存储到CDN系统的硬盘中,CDN系统中,硬盘的性能高于内存的性能,将热点资源存储在硬盘中,能够为用户访问较多的资源(即热点资源)提供更快的访问速度,尽量保证观看的流畅度。这样,通过较为合理地利用CDN系统中的各级存储介质,提高了CDN系统整体的性能和利用率。 The foregoing technical solution provided by the embodiment of the present invention may be applied to a data resource storage process, and may count the number of accesses of the data resource, that is, analyze the access heat of the data resource, and if the number of accesses of the data resource is greater than the first heat threshold, The data resource is accessed more frequently, that is to say, the data resource is a hot resource, and then the data resource can be stored in the hard disk of the CDN system. In the CDN system, the performance of the hard disk is higher than the performance of the memory, and the hot spot is The resources are stored on the hard disk, which can provide faster access speed for users to access more resources (ie, hotspot resources), and ensure the smoothness of viewing as much as possible. In this way, the overall performance and utilization of the CDN system is improved by making rational use of various levels of storage media in the CDN system.

Claims (14)

  1. 一种数据资源存储方法,包括:A data resource storage method includes:
    判断内容分发网络CDN系统中存储的第一数据资源的访问次数是否大于等于第一热度阈值;Determining whether the number of accesses of the first data resource stored in the content distribution network CDN system is greater than or equal to a first heat threshold;
    若所述第一数据资源的访问次数大于等于所述第一热度阈值,则将所述第一数据资源存储到所述CDN系统中的硬盘中;否则,将所述第一数据资源存储到所述CDN系统的内存中。If the number of accesses of the first data resource is greater than or equal to the first heat threshold, storing the first data resource into a hard disk in the CDN system; otherwise, storing the first data resource to the In the memory of the CDN system.
  2. 如权利要求1所述的方法,其中,还包括:The method of claim 1 further comprising:
    接收针对所述第一数据资源的访问请求;Receiving an access request for the first data resource;
    将所述第一数据资源的访问次数增加第一值。The number of accesses of the first data resource is increased by a first value.
  3. 如权利要求2所述的方法,其中,The method of claim 2, wherein
    判断CDN系统中存储的第一数据资源的访问次数是否大于等于第一热度阈值,包括:Determining whether the number of accesses of the first data resource stored in the CDN system is greater than or equal to the first heat threshold, including:
    判断所述第一数据资源的访问次数是否大于等于第一子热度阈值;Determining whether the number of accesses of the first data resource is greater than or equal to a first sub-thermal threshold;
    若所述第一数据资源的访问次数大于等于所述第一热度阈值,则将所述第一数据资源存储到所述CDN系统中的硬盘中,包括:And if the number of times of accessing the first data resource is greater than or equal to the first heat threshold, storing the first data resource in a hard disk in the CDN system, including:
    若所述第一数据资源的访问次数大于等于所述第一子热度阈值,则将所述第一数据资源存储到所述CDN系统中的第一级硬盘中;所述第一级硬盘为所述CDN系统中最高级别的硬盘。If the number of accesses of the first data resource is greater than or equal to the first sub-thermal threshold, storing the first data resource in a first-level hard disk in the CDN system; The highest level of hard disk in the CDN system.
  4. 如权利要求3所述的方法,其中,The method of claim 3, wherein
    在判断所述第一数据资源的访问次数是否大于等于第一子热度 阈值之后,还包括:Determining whether the number of accesses of the first data resource is greater than or equal to the first sub-heat After the threshold, it also includes:
    若所述第一数据资源的访问次数小于所述第一子热度阈值,判断所述第一数据资源的访问次数是否大于等于第二子热度阈值;If the number of accesses of the first data resource is less than the first sub-thermal threshold, determining whether the number of accesses of the first data resource is greater than or equal to a second sub-thermal threshold;
    若所述第一数据资源的访问次数大于等于所述第一热度阈值,则将所述第一数据资源存储到所述CDN系统中的硬盘中,包括:And if the number of times of accessing the first data resource is greater than or equal to the first heat threshold, storing the first data resource in a hard disk in the CDN system, including:
    若所述第一数据资源的访问次数大于等于所述第二子热度阈值,则将所述第一数据资源存储到所述CDN系统中的第二级硬盘中;所述第二级硬盘的级别低于所述第一级硬盘的级别。If the number of accesses of the first data resource is greater than or equal to the second sub-thermal threshold, storing the first data resource in a second-level hard disk in the CDN system; It is lower than the level of the first-level hard disk.
  5. 如权利要求4所述的方法,其中,否则,将所述第一数据资源存储到所述CDN系统的内存中,包括:The method of claim 4, wherein otherwise storing the first data resource in a memory of the CDN system comprises:
    若所述第一数据资源的访问次数小于所述第二子热度阈值,将所述第一数据资源存储到所述内存中。And if the number of accesses of the first data resource is less than the second sub-thermal threshold, storing the first data resource into the memory.
  6. 如权利要求2-5任一所述的方法,其中,在接收针对所述第一数据资源的访问请求之后,还包括:The method of any of claims 2-5, wherein after receiving the access request for the first data resource, the method further comprises:
    查询所述第一数据资源是否存储在所述CDN系统的存储介质中;Querying whether the first data resource is stored in a storage medium of the CDN system;
    若所述第一数据资源未存储在所述CDN系统的存储介质中,则根据所述第一数据资源的类型确定所述第一数据资源对应的所述CDN系统中的存储介质的级别为第一级存储介质;所述第一级存储介质为所述CDN系统中的硬盘或内存;If the first data resource is not stored in the storage medium of the CDN system, determining, according to the type of the first data resource, a level of the storage medium in the CDN system corresponding to the first data resource is a primary storage medium; the first level storage medium is a hard disk or a memory in the CDN system;
    从所述第一数据资源对应的源站获取所述第一数据资源,并将所述第一数据资源存储到所述第一级存储介质中;Obtaining the first data resource from a source station corresponding to the first data resource, and storing the first data resource in the first-level storage medium;
    通过所述第一级存储介质返回所述第一数据资源。 Returning the first data resource through the first level storage medium.
  7. 如权利要求1-5任一所述的方法,其中,所述方法还包括:The method of any of claims 1-5, wherein the method further comprises:
    统计所述CDN系统的第二级存储介质中存储的M个数据资源的访问次数,获得M个访问次数;所述第二级存储介质为所述CDN系统中的第一级硬盘或第二级硬盘,M为正整数;Counting the number of accesses of the M data resources stored in the second-level storage medium of the CDN system to obtain M access times; the second-level storage medium is the first-level hard disk or the second level in the CDN system Hard disk, M is a positive integer;
    分别判断所述M个访问次数中是否有访问次数低于第二热度阈值;Determining whether the number of accesses of the M access times is lower than a second heat threshold;
    若所述M个访问次数中的第一访问次数低于所述第二热度阈值,则判断所述CDN系统中是否存在级别低于所述第二级存储介质的级别的第三级存储介质;所述第三级存储介质为所述CDN系统中的硬盘;If the first access number of the M access times is lower than the second heat threshold, determining whether there is a third-level storage medium in a level lower than a level of the second-level storage medium in the CDN system; The third level storage medium is a hard disk in the CDN system;
    若存在所述第三级存储介质,将所述第一访问次数对应的所述M个数据资源中的第二数据资源存储到所述第三级存储介质中;否则,从所述第二级存储介质中删除所述第二数据资源。If the third-level storage medium exists, the second data resource of the M data resources corresponding to the first access number is stored in the third-level storage medium; otherwise, from the second level The second data resource is deleted from the storage medium.
  8. 一种数据资源存储装置,包括:A data resource storage device includes:
    判断模块,设置为判断内容分发网络CDN系统中存储的第一数据资源的访问次数是否大于等于第一热度阈值;a determining module, configured to determine whether the number of accesses of the first data resource stored in the content distribution network CDN system is greater than or equal to a first heat threshold;
    第一操作模块,设置为若所述第一数据资源的访问次数大于等于所述第一热度阈值,则将所述第一数据资源存储到所述CDN系统中的硬盘中;否则,将所述第一数据资源存储到所述CDN系统的内存中。a first operation module, configured to store the first data resource in a hard disk in the CDN system if the number of accesses of the first data resource is greater than or equal to the first heat threshold; otherwise, The first data resource is stored in a memory of the CDN system.
  9. 如权利要求8所述的装置,其中,所述装置还包括接收模块和第二操作模块;The device of claim 8 wherein said device further comprises a receiving module and a second operating module;
    所述接收模块,设置为接收针对所述第一数据资源的访问请求;The receiving module is configured to receive an access request for the first data resource;
    所述第二操作模块,设置为将所述第一数据资源的访问次数增加第一值。 The second operation module is configured to increase a number of accesses of the first data resource by a first value.
  10. 如权利要求9所述的装置,其中,The device according to claim 9, wherein
    所述判断模块设置为:判断所述第一数据资源的访问次数是否大于等于第一子热度阈值;The determining module is configured to: determine whether the number of accesses of the first data resource is greater than or equal to a first sub-thermal threshold;
    所述第一操作模块设置为:若所述第一数据资源的访问次数大于等于所述第一子热度阈值,则将所述第一数据资源存储到所述CDN系统中的第一级硬盘中;所述第一级硬盘为所述CDN系统中最高级别的硬盘。The first operation module is configured to: when the number of accesses of the first data resource is greater than or equal to the first sub-thermal threshold, storing the first data resource in a first-level hard disk in the CDN system The first level hard disk is the highest level hard disk in the CDN system.
  11. 如权利要求10所述的装置,其中,The device of claim 10, wherein
    所述判断模块设置为:在判断所述第一数据资源的访问次数是否大于等于第一子热度阈值之后,若所述第一数据资源的访问次数小于所述第一子热度阈值,判断所述第一数据资源的访问次数是否大于等于第二子热度阈值;The determining module is configured to: after determining whether the number of accesses of the first data resource is greater than or equal to a first sub-thermal threshold, if the number of accesses of the first data resource is less than the first sub-thermal threshold, determining Whether the number of accesses of the first data resource is greater than or equal to the second sub-thermal threshold;
    所述第二操作模块设置为:若所述第一数据资源的访问次数大于等于所述第二子热度阈值,则将所述第一数据资源存储到所述CDN系统中的第二级硬盘中;所述第二级硬盘的级别低于所述第一级硬盘的级别。The second operation module is configured to: when the number of accesses of the first data resource is greater than or equal to the second sub-thermal threshold, storing the first data resource in a second-level hard disk in the CDN system The level of the second level hard disk is lower than the level of the first level hard disk.
  12. 如权利要求11所述的装置,其中,所述第一操作模块设置为:The apparatus of claim 11 wherein said first operational module is configured to:
    若所述第一数据资源的访问次数小于所述第二子热度阈值,将所述第一数据资源存储到所述内存中。And if the number of accesses of the first data resource is less than the second sub-thermal threshold, storing the first data resource into the memory.
  13. 如权利要求9-12任一所述的装置,其中,所述装置还包括:The device of any of claims 9-12, wherein the device further comprises:
    查询模块,设置为在所述接收模块接收针对所述第一数据资源的访问请求之后,查询所述第一数据资源是否存储在所述CDN系统的存 储介质中;a query module, configured to query, after the receiving module receives an access request for the first data resource, whether the first data resource is stored in the CDN system In the storage medium;
    确定模块,设置为若所述第一数据资源未存储在所述CDN系统的存储介质中,则根据所述第一数据资源的类型确定所述第一数据资源对应的所述CDN系统中的存储介质的级别为第一级存储介质;所述第一级存储介质为所述CDN系统中的硬盘或内存;Determining, if the first data resource is not stored in the storage medium of the CDN system, determining, according to the type of the first data resource, the storage in the CDN system corresponding to the first data resource The level of the medium is a first level storage medium; the first level storage medium is a hard disk or a memory in the CDN system;
    获取模块,设置为从所述第一数据资源对应的源站获取所述第一数据资源,并将所述第一数据资源存储到所述第一级存储介质中;An acquiring module, configured to acquire the first data resource from a source station corresponding to the first data resource, and store the first data resource into the first-level storage medium;
    返回模块,设置为通过所述第一级存储介质返回所述第一数据资源。Returning to the module, the setting is to return the first data resource by the first level storage medium.
  14. 如权利要求8-12任一所述的装置,其中,所述装置还包括:The device of any of claims 8-12, wherein the device further comprises:
    统计模块,设置为统计所述CDN系统的第二级存储介质中存储的M个数据资源的访问次数,获得M个访问次数;所述第二级存储介质为所述CDN系统中的第一级硬盘或第二级硬盘,M为正整数;a statistics module, configured to count the number of accesses of the M data resources stored in the second-level storage medium of the CDN system, to obtain M access times; the second-level storage medium is the first level in the CDN system Hard disk or second-level hard disk, M is a positive integer;
    所述判断模块,还设置为分别判断所述M个访问次数中是否有访问次数低于第二热度阈值;The determining module is further configured to determine, respectively, whether the number of accesses of the M access times is lower than a second heat threshold;
    所述判断模块,还设置为若所述M个访问次数中的第一访问次数低于所述第二热度阈值,则判断所述CDN系统中是否存在级别低于所述第二级存储介质的级别的第三级存储介质;所述第三级存储介质为所述CDN系统中的硬盘;The determining module is further configured to determine, if the first access number of the M access times is lower than the second heat threshold, whether the level of the CDN system is lower than the second-level storage medium a third level storage medium of the level; the third level storage medium is a hard disk in the CDN system;
    所述第一操作模块,还设置为若存在所述第三级存储介质,将所述第一访问次数对应的所述M个数据资源中的第二数据资源存储到所述第三级存储介质中;否则,从所述第二级存储介质中删除所述第二数据资源。 The first operation module is further configured to: if the third-level storage medium exists, store the second data resource of the M data resources corresponding to the first access times to the third-level storage medium And deleting the second data resource from the second level storage medium.
PCT/CN2016/101926 2015-12-16 2016-10-12 Data resource storage method and apparatus WO2017101576A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510941113.6 2015-12-16
CN201510941113.6A CN106888381B (en) 2015-12-16 2015-12-16 A kind of data resource storage method and device

Publications (1)

Publication Number Publication Date
WO2017101576A1 true WO2017101576A1 (en) 2017-06-22

Family

ID=59055685

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/101926 WO2017101576A1 (en) 2015-12-16 2016-10-12 Data resource storage method and apparatus

Country Status (2)

Country Link
CN (1) CN106888381B (en)
WO (1) WO2017101576A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109783478A (en) * 2019-03-12 2019-05-21 长沙理工大学 A kind of UTXO date storage method, device, equipment and storage medium
CN110362400A (en) * 2019-06-17 2019-10-22 中国平安人寿保险股份有限公司 Distribution method, device, equipment and the storage medium of caching resource
CN110807009A (en) * 2019-11-06 2020-02-18 湖南快乐阳光互动娱乐传媒有限公司 File processing method and device
CN111049840A (en) * 2019-12-17 2020-04-21 锐捷网络股份有限公司 Message detection method and device
CN113329065A (en) * 2021-05-18 2021-08-31 武汉联影医疗科技有限公司 Resource preheating method and device, computer equipment and storage medium

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108418877A (en) * 2018-02-22 2018-08-17 上海思华科技股份有限公司 Polymorphic type storage scheduling plug-flow method, system, data-updating method
CN108810144A (en) * 2018-06-14 2018-11-13 北京中飞艾维航空科技有限公司 A kind of data transmission method, server and storage medium
CN109005056B (en) 2018-07-16 2020-06-23 网宿科技股份有限公司 CDN application-based storage capacity evaluation method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102740159A (en) * 2011-03-31 2012-10-17 丛林网络公司 Media file storage format and adaptive delivery system
US20130227051A1 (en) * 2012-01-10 2013-08-29 Edgecast Networks, Inc. Multi-Layer Multi-Hit Caching for Long Tail Content
CN104935653A (en) * 2015-06-09 2015-09-23 中国人民解放军国防科学技术大学 Bypass cache method for visiting hot spot resource and device
CN105207993A (en) * 2015-08-17 2015-12-30 深圳市云宙多媒体技术有限公司 Data access and scheduling method in CDN, and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102740159A (en) * 2011-03-31 2012-10-17 丛林网络公司 Media file storage format and adaptive delivery system
US20130227051A1 (en) * 2012-01-10 2013-08-29 Edgecast Networks, Inc. Multi-Layer Multi-Hit Caching for Long Tail Content
CN104935653A (en) * 2015-06-09 2015-09-23 中国人民解放军国防科学技术大学 Bypass cache method for visiting hot spot resource and device
CN105207993A (en) * 2015-08-17 2015-12-30 深圳市云宙多媒体技术有限公司 Data access and scheduling method in CDN, and system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109783478A (en) * 2019-03-12 2019-05-21 长沙理工大学 A kind of UTXO date storage method, device, equipment and storage medium
CN110362400A (en) * 2019-06-17 2019-10-22 中国平安人寿保险股份有限公司 Distribution method, device, equipment and the storage medium of caching resource
CN110362400B (en) * 2019-06-17 2022-06-17 中国平安人寿保险股份有限公司 Resource cache allocation method, device, equipment and storage medium
CN110807009A (en) * 2019-11-06 2020-02-18 湖南快乐阳光互动娱乐传媒有限公司 File processing method and device
CN111049840A (en) * 2019-12-17 2020-04-21 锐捷网络股份有限公司 Message detection method and device
CN111049840B (en) * 2019-12-17 2022-04-26 锐捷网络股份有限公司 Message detection method and device
CN113329065A (en) * 2021-05-18 2021-08-31 武汉联影医疗科技有限公司 Resource preheating method and device, computer equipment and storage medium
CN113329065B (en) * 2021-05-18 2022-08-23 武汉联影医疗科技有限公司 Resource preheating method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN106888381B (en) 2019-11-08
CN106888381A (en) 2017-06-23

Similar Documents

Publication Publication Date Title
WO2017101576A1 (en) Data resource storage method and apparatus
US9344515B2 (en) Social-driven precaching of accessible objects
WO2018059222A1 (en) File slice uploading method and apparatus, and cloud storage system
US20190132222A1 (en) Apparatus for providing cloud service based on cloud service brokerage and method thereof
US20160269501A1 (en) Using a cache cluster of a cloud computing service as a victim cache
CN113010818B (en) Access current limiting method, device, electronic equipment and storage medium
CN111684777A (en) Distributed multi-data center video packaging system
CN108156267A (en) Improve the method and system of website visiting time delay in a kind of mist computing architecture using caching
US9313270B2 (en) Adaptive asynchronous data replication in a data storage system
US20150381678A1 (en) Managing content on an isp cache
JP2007510224A (en) A method for determining the segment priority of multimedia content in proxy cache
US9756094B1 (en) Determining a referral source by a mobile application or operating system
WO2019041738A1 (en) Client resource obtaining method and apparatus, terminal device, and storage medium
US11204702B2 (en) Storage domain growth management
WO2016115957A1 (en) Method and device for accelerating computers and intelligent devices for users and applications
US20170163556A1 (en) Method and system for reclaiming unused resources in a networked application environment
KR20160056944A (en) Acceleration based on cached flows
US8209711B2 (en) Managing cache reader and writer threads in a proxy server
Moharir et al. Serving content with unknown demand: the high-dimensional regime
US9716666B2 (en) Process cage providing attraction to distributed storage
US11706313B2 (en) Systems, methods, and devices for user interface customization based on content data network priming
TWI579708B (en) Method and apparatus for interacting with user data
CN112433848A (en) Resource processing method, device, storage medium and cache server
US20170337253A1 (en) In-memory db connection support type scheduling method and system for real-time big data analysis in distributed computing environment
WO2017096886A1 (en) Content pushing method, apparatus and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16874634

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16874634

Country of ref document: EP

Kind code of ref document: A1