CN103747276A - CDN data deletion method and CDN server - Google Patents
CDN data deletion method and CDN server Download PDFInfo
- Publication number
- CN103747276A CN103747276A CN201310722667.8A CN201310722667A CN103747276A CN 103747276 A CN103747276 A CN 103747276A CN 201310722667 A CN201310722667 A CN 201310722667A CN 103747276 A CN103747276 A CN 103747276A
- Authority
- CN
- China
- Prior art keywords
- cdn server
- data
- disk space
- data files
- cdn
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the invention provides a CDN data deletion method and a CDN server, and relates to the field of network multimedia technology. According to the invention, data stored in the CDN server can be rapidly and effectively scanned, data status information is collected, and data to be deleted is determined for deletion management. Furthermore, efficiency of the CDN server is raised, and performance of a CDN system is improved. The method comprises the following steps: the CDN server acquires a data scanning instruction; the CDN server scans all data files stored in the CDN server and acquires status information of all data files according to the data scanning instruction, wherein the status information of the data files at least contains disk space occupied by the data files; the CDN server determines data files to be deleted according to disk spaces which need to be released and disk spaces respectively occupied by all data files; and the CDN server deletes the data files to be deleted.
Description
Technical field
The present invention relates to network multimedia technology field, relate in particular to a kind of CDN data-erasure method and CDN server.
Background technology
CDN(Content Delivery Network, content distributing network) be a kind of one deck intelligent virtual network on existing Internet basic forming by place node server everywhere at network.CDN can be in real time leads user's request on the nearest service node of user again according to the connection of network traffics and each node, load state and to integrated informations such as user's distance and response times, its objective is and can select the node close to relatively from user to send the required content of user to user, alleviate the situation of network congestion, improve the response speed of website.
CDN server is because disk space is limited, when the data of CDN server stores have taken the most of disk space of CDN server, CDN server just need to be deleted some data, to guarantee CDN server, eliminate the data of old unmanned access, thereby there are enough disk spaces to store new data, maintain the stable operation of CDN system.In the prior art, the method that CDN server is deleted data is the access log according to data, utilizes LRU(Least Recently Used, recent minimum use) which file least referenced algorithm calculate, CDN server generates delete list subsequently, thereby deletes the file of least referenced.
Yet the method for deleting data due to CDN server in prior art is that CDN server is deleted data according to delete list, so CDN server need to analyze a large amount of access logs, and need to utilize complicated lru algorithm to calculate and generate delete list.CDN server need to increase the amount of calculation of CDN server through the process of a large amount of collection data union data, calculates when inaccurate and even can reduce the efficiency of CDN server, and then affected the performance of CDN system.
Summary of the invention
Embodiments of the invention provide a kind of CDN data-erasure method and CDN server, can fast and effeciently to the data of CDN server memory storage, scan, collect the state information of data, and determine data to be deleted and delete management, and then improved the efficiency of CDN server, promoted the performance of CDN system.
For achieving the above object, embodiments of the invention adopt following technical scheme:
First aspect, the embodiment of the present invention provides a kind of CDN data-erasure method, is applied to CDN system, and described method comprises:
CDN server obtains data scanning instruction;
Described CDN server is according to described data scanning instruction, scan all data files of described CDN server memory storage and obtain the state information of all described data files, the state information of described data file at least comprises the disk space that described data file takies;
The disk space that the disk space that described CDN server discharges as required and all described data files take respectively, determine data file to be deleted, wherein, the shared disk space summation of all described data files to be deleted is more than or equal to the described space that needs release;
Described CDN server is deleted described data file to be deleted.
In the possible implementation of the first, according to first aspect, before CDN server obtains data scanning instruction, described method also comprises:
Described CDN server reads the occupied disk space of described CDN server;
Described CDN server judges whether the occupied disk space of described CDN server is greater than default thresholding;
If the occupied disk space of described CDN server is greater than described default thresholding, described CDN server obtains data delete instruction.
In the possible implementation of the second, in conjunction with first aspect or the possible implementation of the first, at described CDN server, get after data delete instruction, described method also comprises:
Described CDN server is determined the disk space that needs release, and the described disk space that need to discharge is more than or equal to the difference of the occupied disk space of described CDN server and described default thresholding.
In the third possible implementation, in conjunction with first aspect or possible implementation or the possible implementation of the second of the first, the state information of described data file also comprises the last access time of described data file;
Described CDN server is according to described data scanning instruction, scans all data files of described CDN server memory storage and obtains the state information of all described data files, specifically comprises:
Described CDN server scans all data files of described CDN server memory storage;
Described CDN server reads disk space that all described data files take respectively and the last access time of all described data files;
Described CDN server is arranged all described data files according to the last access time inverted order of described all data files.
In the 4th kind of possible implementation, in conjunction with first aspect or the possible implementation of the first to the third possible implementation, the disk space that the disk space that described CDN server discharges as required and all described data files take respectively, determine data file to be deleted, specifically comprise:
The disk space that described CDN server takies respectively according to all described data files, from all described data file of arranging according to the last access time inverted order of all described data files, determine described data file to be deleted, wherein, the shared disk space summation of all described data files to be deleted is more than or equal to the described disk space that needs release.
Second aspect, the embodiment of the present invention provides a kind of CDN server, is applied to CDN system, and described CDN server comprises:
The first acquisition module, for obtaining data scanning instruction;
The second acquisition module, for the described data scanning instruction getting according to described the first acquisition module, scan all data files of described CDN server memory storage and obtain the state information of all described data files, the state information of described data file at least comprises the disk space that described data file takies;
The first determination module, be used for the disk space of release as required and the disk space that all described data files take respectively, determine data file to be deleted, wherein, the shared disk space summation of all described data files to be deleted is more than or equal to the described space that needs release;
Removing module, for deleting described data file to be deleted.
In the possible implementation of the first, according to second aspect, described CDN server, also comprises:
Read module, before obtaining data scanning instruction at described the first acquisition module, reads the occupied disk space of described CDN server;
Judge module, for judging whether the occupied disk space of described CDN server is greater than default thresholding;
The 3rd acquisition module, if be greater than described default thresholding for the occupied disk space of described CDN server, obtains data delete instruction.
In the possible implementation of the second, in conjunction with second aspect or the possible implementation of the first, described CDN server, also comprises:
The second determination module, for getting after data delete instruction at described the 3rd acquisition module, determine the disk space that needs release, the described disk space that need to discharge is more than or equal to the difference of the occupied disk space of described CDN server and described default thresholding.
In the third possible implementation, in conjunction with second aspect or possible implementation or the possible implementation of the second of the first, the state information of described data file also comprises the last access time of described data file;
Described the second acquisition module, specifically comprises:
Scan module, for scanning all data files of described CDN server memory storage;
Reading submodule, for reading disk space that all described data files take respectively and the last access time of all described data files;
Order module, arranges all described data files for the last access time inverted order according to described all data files.
In the 4th kind of possible implementation, in conjunction with second aspect or the possible implementation of the first to the third possible implementation,
Described the first determination module, specifically for the disk space taking respectively according to all described data files, from all described data file of arranging according to the last access time inverted order of all described data files, determine described data file to be deleted, wherein, the shared disk space summation of all described data files to be deleted is more than or equal to the described disk space that needs release.
A kind of CDN data-erasure method and CDN server that the embodiment of the present invention provides, CDN data-erasure method comprises: CDN server obtains data scanning instruction; CDN server is according to data scanning instruction, and all data files of scanning CDN server memory storage are also obtained the state information of all data files, and the state information of data file at least comprises the disk space that data file takies; The disk space that the disk space that CDN server discharges as required and all data files take respectively, determines data file to be deleted, and wherein, the shared disk space summation of all data files to be deleted is more than or equal to the space that needs release; CDN server is deleted data file to be deleted.
With CDN server in prior art according to the access log of data, the method of utilizing lru algorithm calculating generation delete list to delete data is compared, pass through this programme, because CDN server is according to data scanning instruction, all data files that scanning CDN server memory is stored up the state information of obtaining all data files, and the disk space that takies respectively of the disk space discharging as required and all data files, determine data file to be deleted, thereby can delete management to data, and then improved the efficiency of CDN server, promoted the performance of CDN system.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the schematic flow sheet of a kind of CDN data-erasure method in the embodiment of the present invention 1;
Fig. 2 is the schematic flow sheet of a kind of CDN data-erasure method in the embodiment of the present invention 2;
Fig. 3 is the structural representation one of a kind of CDN server in the embodiment of the present invention 3;
Fig. 4 is the structural representation two of a kind of CDN server in the embodiment of the present invention 3;
Fig. 5 is the structural representation three of a kind of CDN server in the embodiment of the present invention 3;
Fig. 6 is the structural representation four of a kind of CDN server in the embodiment of the present invention 3.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
In addition, term " system " and " network " are often used interchangeably in this article herein.Herein term " with ", be only a kind of incidence relation of describing affiliated partner, can there are three kinds of relations in expression, for example, A and B, can represent: individualism A exists A and B, these three kinds of situations of individualism B simultaneously.In addition, character "/", generally represents that forward-backward correlation is to liking a kind of relation of "or" herein.
The CDN server that the present invention mentions can be both the server under memory node coverage, can be also the server under fringe node coverage, and the present invention does not limit.Wherein, memory node is the node of having stored system All Files, and fringe node is that the ordinary node of service is provided for user.Common, memory node is core CDN node, has stored intrasystem All Files; Fringe node is edge C DN node, for user access.
Embodiment 1
The embodiment of the present invention provides a kind of CDN data-erasure method, can be applied to CDN system, and as shown in Figure 1, CDN data-erasure method, comprising:
S101, CDN server obtain data scanning instruction.
In CDN system, CDN server is because disk space is limited, when the data of CDN server stores have taken the most of disk space of CDN server, CDN server just need to be deleted some data, to guarantee CDN server, eliminate the data of old unmanned access, thereby there are enough disk spaces to store new data, maintain the stable operation of CDN system.In the prior art, the method that CDN server is deleted data is the access log according to data, utilizes lru algorithm to calculate which file least referenced, and CDN server generates delete list subsequently, thereby deletes the file of least referenced.Yet, the method of deleting data due to CDN server in prior art is that CDN server is deleted data according to delete list, therefore CDN server is deleted the process that data need to be passed through a large amount of collection data union data, increased the amount of calculation of CDN server, calculate when inaccurate and even can reduce the efficiency of CDN server, and then affected the performance of CDN system.
Embodiments of the invention provide a kind of CDN data-erasure method fast and effeciently to the data of CDN server memory storage, to scan, collect the state information of data, and determine data to be deleted and delete management, and then improved the efficiency of CDN server, promoted the performance of CDN system.
First, CDN server obtains data scanning instruction.
It should be noted that, the data scanning instruction that CDN server obtains be CDN server determine self occupied disk space obtain after need to clearing up, namely CDN server is for raising efficiency, just can obtain when need to delete the partial data of CDN server memory storage.
Concrete, the process that the disk space of CDN server how to confirm CDN server need to be cleared up will be described in detail in the following embodiments, repeat no more herein.
S102, CDN server be according to data scanning instruction, and all data files of scanning CDN server memory storage are also obtained the state information of all data files, and the state information of data file at least comprises the disk space that data file takies.
Delete management to the data of CDN server memory storage, which data file CDN server needs first to determine needs to delete.At CDN server, get after data scanning instruction, CDN server can be according to data scanning instruction, all data files that scanning CDN server memory is stored up the state information of obtaining all data files.
Wherein, the state information of data file at least comprises the disk space that data file takies.
Optionally, CDN server is according to data scanning instruction, and the data that scanning CDN server memory is stored up the method for obtaining the state information of data specifically can comprise: all data files of CDN server scanning CDN server memory storage; CDN server reads disk space that all data files take respectively and the last access time of all data files; CDN server is arranged all data files according to the last access time inverted order of all data files.
The disk space that the disk space that S103, CDN server discharge as required and all data files take respectively, determines data file to be deleted.
Wherein, the shared disk space summation of all data files to be deleted is more than or equal to the space that needs release.
At CDN server, scanned all data files of CDN server memory storage and obtained the state information of all data files, the disk space that the disk space that CDN server discharges as required and all data files take respectively, determines data file to be deleted.Wherein, the shared disk space summation of all data files to be deleted is more than or equal to the space that needs release.
Concrete, the disk space that the disk space that CDN server discharges as required and all data files take respectively, the method of determining data file to be deleted specifically can comprise: the disk space that CDN server takies respectively according to all data files, from all data files of arranging according to the last access time inverted order of all data files, determine data file to be deleted, wherein, the shared disk space summation of all data files to be deleted is more than or equal to the disk space that needs release.
S104, CDN server are deleted data file to be deleted.
At CDN server, determine after data file to be deleted, CDN server can be deleted data file to be deleted, so that CDN server can fast and effeciently be deleted management to the data of CDN server memory storage, and then reached the efficiency that has improved CDN server, promoted the object of the performance of CDN system.
The embodiment of the present invention provides a kind of CDN data-erasure method, and the method comprises: CDN server obtains data scanning instruction; CDN server is according to data scanning instruction, and all data files of scanning CDN server memory storage are also obtained the state information of all data files, and the state information of data file at least comprises the disk space that data file takies; The disk space that the disk space that CDN server discharges as required and all data files take respectively, determines data file to be deleted, and wherein, the shared disk space summation of all data files to be deleted is more than or equal to the space that needs release; CDN server is deleted data file to be deleted.
With CDN server in prior art according to the access log of data, the method of utilizing lru algorithm calculating generation delete list to delete data is compared, pass through this programme, because CDN server is according to data scanning instruction, all data files that scanning CDN server memory is stored up the state information of obtaining all data files, and the disk space that takies respectively of the disk space discharging as required and all data files, determine data file to be deleted, thereby can delete management to data, and then improved the efficiency of CDN server, promoted the performance of CDN system.
Embodiment 2
The embodiment of the present invention provides a kind of CDN data-erasure method, can be applied to CDN system, and as shown in Figure 2, CDN data-erasure method, comprising:
S201, CDN server read the occupied disk space of CDN server.
Embodiments of the invention provide a kind of CDN data-erasure method fast and effeciently to the data of CDN server memory storage, to scan, collect the state information of data, and determine data to be deleted and delete management, and then improved the efficiency of CDN server, promoted the performance of CDN system.
First, CDN server reads the occupied disk space of CDN server.It is in order to confirm whether the occupied disk space of CDN server has exceeded default thresholding, to judge whether CDN server needs to delete data file that CDN server reads the occupied disk space of CDN server.
S202, CDN server judge whether the occupied disk space of CDN server is greater than default thresholding.
At CDN server, read after the occupied disk space of CDN server, CDN server judges whether the occupied disk space of CDN server is greater than default thresholding.
It should be noted that, default thresholding is the threshold value of the occupied disk space of CDN server of CDN system setting, surpasses this threshold value, will likely affect the work of CDN server, and then whole CDN system is exerted an influence.Preferably, default thresholding can be set as CDN system all disk spaces 85%.Exemplary, all disk spaces of CDN server are 100TB(Tera Byte, terabyte), default thresholding is preferably 85TB.CDN server has read after the occupied disk space of CDN server, and CDN server judges whether the occupied disk space of CDN server is greater than 85TB.
If the occupied disk space of S203 CDN server is greater than default thresholding, CDN server obtains data delete instruction.
If the occupied disk space of CDN server is greater than default thresholding, illustrate that now the occupied disk space of CDN server is excessive, need deletion data file, therefore, CDN server obtains data delete instruction.
Exemplary, all disk spaces of CDN server are 100TB, default thresholding is preferably 85TB.CDN server has read after the occupied disk space of CDN server, and CDN server judges whether the occupied disk space of CDN server is greater than 85TB.If the occupied disk space of CDN server is greater than 85TB, the occupied disk space of bright now CDN server is excessive, needs deletion data file, and CDN server obtains data delete instruction.
It should be noted that, if the occupied disk space of CDN server is less than or equal to default thresholding, illustrate that now the occupied disk space of CDN server does not surpass default thresholding, so CDN server do not need deletion data file, will can not carry out following step.
S204, CDN server are determined the disk space that needs release, and the disk space that need to discharge is more than or equal to the difference of the occupied disk space of CDN server and default thresholding.
Exemplary, all disk spaces of CDN server are 100TB, default thresholding is preferably 85TB.The occupied disk space of CDN server that CDN server reads is 95TB, therefore, needs the disk space discharging to be at least 10TB.
S205, CDN server obtain data scanning instruction.
At CDN server, get after data delete instruction, CDN server, according to data delete instruction, first obtains data scanning instruction.Wherein, data scanning instruction is used to indicate all data of CDN server scanning CDN server memory storage.
S206, CDN server be according to data scanning instruction, and all data files of scanning CDN server memory storage are also obtained the state information of all data files, and the state information of data file at least comprises the disk space that data file takies.
Delete management to the data of CDN server memory storage, which data file CDN server needs first to determine needs to delete.At CDN server, get after data scanning instruction, CDN server can be according to data scanning instruction, all data files that scanning CDN server memory is stored up the state information of obtaining all data files.
Wherein, the state information of data file at least comprises the disk space that data file takies.
Concrete, CDN server is according to data scanning instruction, and all data files that scanning CDN server memory is stored up the step S206 that obtains the state information of all data files can comprise step S206a-S206c:
All data files of S206a, the storage of CDN server scanning CDN server memory.
S206b, CDN server read disk space that all data files take respectively and the last access time of all data files.
It should be noted that, it is in order to grasp accurately the size of each data that CDN server reads the disk space that all data files take respectively, thereby determines that CDN server need to delete how many data; The last access time that CDN server reads all data files is in order to guarantee that data to be deleted are unexpected winner data, reduces to delete the impact that focus incident produces CDN system by mistake.
S206c, CDN server are arranged all data files according to the last access time inverted order of all data files.
At CDN server, read after the last access time of disk space that all data files take respectively and all data files, CDN server is arranged all data files according to the last access time inverted order of all data files.
The disk space that S207, CDN server take respectively according to all data files is determined data file to be deleted from all data files of arranging according to the last access time inverted order of all data files.
Wherein, the shared disk space summation of all data files to be deleted is more than or equal to the disk space that needs release.
At CDN server according to data scanning instruction, all data files of scanning CDN server memory storage are also obtained after the state information of all data files, the disk space that CDN server takies respectively according to all data files is determined data file to be deleted from all data files of arranging according to the last access time inverted order of all data files.Wherein, the shared disk space summation of all data files to be deleted is more than or equal to the disk space that needs release, to guarantee that having deleted the occupied disk space of CDN server after data is no longer greater than default thresholding, and then improved the efficiency of CDN server, promoted the performance of CDN system.
Exemplary, all disk spaces of CDN server are 100TB, default thresholding is preferably 85TB.The occupied disk space of CDN server that CDN server reads is 95TB, therefore, needs the disk space discharging to be at least 10TB.The shared disk space summation of all data to be deleted is at least 10TB, to guarantee that having deleted the occupied disk space of CDN server after data is no longer greater than default thresholding.
S208, CDN server are deleted data file to be deleted.
At CDN server, determine after data file to be deleted, CDN server can be deleted data file to be deleted, so that CDN server can fast and effeciently be deleted management to the data of CDN server memory storage, and then reached the efficiency that has improved CDN server, promoted the object of the performance of CDN system.
The embodiment of the present invention provides a kind of CDN data-erasure method, and the method comprises: CDN server obtains data scanning instruction; CDN server is according to data scanning instruction, and all data files of scanning CDN server memory storage are also obtained the state information of all data files, and the state information of data file at least comprises the disk space that data file takies; The disk space that the disk space that CDN server discharges as required and all data files take respectively, determines data file to be deleted, and wherein, the shared disk space summation of all data files to be deleted is more than or equal to the space that needs release; CDN server is deleted data file to be deleted.
With CDN server in prior art according to the access log of data, the method of utilizing lru algorithm calculating generation delete list to delete data is compared, pass through this programme, because CDN server is according to data scanning instruction, all data files that scanning CDN server memory is stored up the state information of obtaining all data files, and the disk space that takies respectively of the disk space discharging as required and all data files, determine data file to be deleted, thereby can delete management to data, and then improved the efficiency of CDN server, promoted the performance of CDN system.
Embodiment 3
The embodiment of the present invention provides a kind of CDN server, can be applied to CDN system, and as shown in Figure 3, described CDN server comprises:
The first acquisition module 10, for obtaining data scanning instruction.
The second acquisition module 11, for the described data scanning instruction getting according to described the first acquisition module 10, scan all data files of described CDN server memory storage and obtain the state information of all described data files, the state information of described data file at least comprises the disk space that described data file takies.
The first determination module 12, be used for the disk space of release as required and the disk space that all described data files take respectively, determine data file to be deleted, wherein, the shared disk space summation of all described data files to be deleted is more than or equal to the described space that needs release.
Removing module 13, for deleting described data file to be deleted.
Further, as shown in Figure 4, described CDN server, also comprises:
Read module 14, before obtaining data scanning instruction at described the first acquisition module 10, reads the occupied disk space of described CDN server.
The 3rd acquisition module 16, if be greater than described default thresholding for the occupied disk space of described CDN server, obtains data delete instruction.
Further, as shown in Figure 5, described CDN server, also comprises:
The second determination module 17, for getting after data delete instruction at described the 3rd acquisition module 16, determine the disk space that needs release, the described disk space that need to discharge is more than or equal to the difference of the occupied disk space of described CDN server and described default thresholding.
Further, the state information of described data file also comprises the last access time of described data file.
As shown in Figure 6, described the second acquisition module 11, specifically comprises:
Scan module 110, for scanning all data files of described CDN server memory storage.
Reading submodule 111, for reading disk space that all described data files take respectively and the last access time of all described data files.
Order module 112, arranges all described data files for the last access time inverted order according to described all data files.
Further, described the first determination module 12, specifically for the disk space taking respectively according to all described data files, from all described data file of arranging according to the last access time inverted order of all described data files, determine described data file to be deleted, wherein, the shared disk space summation of all described data files to be deleted is more than or equal to the described disk space that needs release.
The embodiment of the present invention provides a kind of CDN server, and this CDN server comprises: the first acquisition module, for obtaining data scanning instruction; The second acquisition module, for the data scanning instruction getting according to the first acquisition module, all data files that scanning CDN server memory is stored up the state information of obtaining all data files, the state information of data file at least comprises the disk space that data file takies; The first determination module, be used for the disk space of release as required and the disk space that all data files take respectively, determine data file to be deleted, wherein, the shared disk space summation of all data files to be deleted is more than or equal to the space that needs release; Removing module, for deleting data file to be deleted.
With CDN server in prior art according to the access log of data, the method of utilizing lru algorithm calculating generation delete list to delete data is compared, pass through this programme, because CDN server is according to data scanning instruction, all data files that scanning CDN server memory is stored up the state information of obtaining all data files, and the disk space that takies respectively of the disk space discharging as required and all data files, determine data file to be deleted, thereby can delete management to data, and then improved the efficiency of CDN server, promoted the performance of CDN system.
Through the above description of the embodiments, those skilled in the art can be well understood to, for convenience and simplicity of description, only the division with above-mentioned each functional module is illustrated, in practical application, can above-mentioned functions be distributed and by different functional modules, completed as required, the internal structure that is about to device be divided into different functional modules, to complete all or part of function described above.The system of foregoing description, the specific works process of device and unit, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
In the several embodiment that provide in the application, should be understood that, disclosed system, apparatus and method, can realize by another way.For example, device embodiment described above is only schematic, for example, the division of described module or unit, be only that a kind of logic function is divided, during actual realization, can have other dividing mode, for example a plurality of unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrically, machinery or other form.
The described unit as separating component explanation can or can not be also physically to separate, and the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in a plurality of network element.Can select according to the actual needs some or all of unit wherein to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, and also can adopt the form of SFU software functional unit to realize.
If the form of SFU software functional unit of usining described integrated unit realizes and during as production marketing independently or use, can be stored in a computer read/write memory medium.Understanding based on such, the all or part of of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) carry out all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: various media that can be program code stored such as USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CDs.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.
Claims (10)
1. a CDN data-erasure method, is characterized in that, is applied to CDN system, and described method comprises:
CDN server obtains data scanning instruction;
Described CDN server is according to described data scanning instruction, scan all data files of described CDN server memory storage and obtain the state information of all described data files, the state information of described data file at least comprises the disk space that described data file takies;
The disk space that the disk space that described CDN server discharges as required and all described data files take respectively, determine data file to be deleted, wherein, the shared disk space summation of all described data files to be deleted is more than or equal to the described space that needs release;
Described CDN server is deleted described data file to be deleted.
2. CDN data-erasure method according to claim 1, is characterized in that, before CDN server obtains data scanning instruction, described method also comprises:
Described CDN server reads the occupied disk space of described CDN server;
Described CDN server judges whether the occupied disk space of described CDN server is greater than default thresholding;
If the occupied disk space of described CDN server is greater than described default thresholding, described CDN server obtains data delete instruction.
3. CDN data-erasure method according to claim 2, is characterized in that, at described CDN server, gets after data delete instruction, and described method also comprises:
Described CDN server is determined the disk space that needs release, and the described disk space that need to discharge is more than or equal to the difference of the occupied disk space of described CDN server and described default thresholding.
4. CDN data-erasure method according to claim 1, is characterized in that, the state information of described data file also comprises the last access time of described data file;
Described CDN server is according to described data scanning instruction, scans all data files of described CDN server memory storage and obtains the state information of all described data files, specifically comprises:
Described CDN server scans all data files of described CDN server memory storage;
Described CDN server reads disk space that all described data files take respectively and the last access time of all described data files;
Described CDN server is arranged all described data files according to the last access time inverted order of described all data files.
5. CDN data-erasure method according to claim 4, is characterized in that, the disk space that the disk space that described CDN server discharges as required and all described data files take respectively, determines data file to be deleted, specifically comprises:
The disk space that described CDN server takies respectively according to all described data files, from all described data file of arranging according to the last access time inverted order of all described data files, determine described data file to be deleted, wherein, the shared disk space summation of all described data files to be deleted is more than or equal to the described disk space that needs release.
6. a CDN server, is characterized in that, is applied to CDN system, and described CDN server comprises:
The first acquisition module, for obtaining data scanning instruction;
The second acquisition module, for the described data scanning instruction getting according to described the first acquisition module, scan all data files of described CDN server memory storage and obtain the state information of all described data files, the state information of described data file at least comprises the disk space that described data file takies;
The first determination module, be used for the disk space of release as required and the disk space that all described data files take respectively, determine data file to be deleted, wherein, the shared disk space summation of all described data files to be deleted is more than or equal to the described space that needs release;
Removing module, for deleting described data file to be deleted.
7. CDN server according to claim 6, is characterized in that, described CDN server, also comprises:
Read module, before obtaining data scanning instruction at described the first acquisition module, reads the occupied disk space of described CDN server;
Judge module, for judging whether the occupied disk space of described CDN server is greater than default thresholding;
The 3rd acquisition module, if be greater than described default thresholding for the occupied disk space of described CDN server, obtains data delete instruction.
8. CDN server according to claim 7, is characterized in that, described CDN server, also comprises:
The second determination module, for getting after data delete instruction at described the 3rd acquisition module, determine the disk space that needs release, the described disk space that need to discharge is more than or equal to the difference of the occupied disk space of described CDN server and described default thresholding.
9. CDN server according to claim 6, is characterized in that, the state information of described data file also comprises the last access time of described data file;
Described the second acquisition module, specifically comprises:
Scan module, for scanning all data files of described CDN server memory storage;
Reading submodule, for reading disk space that all described data files take respectively and the last access time of all described data files;
Order module, arranges all described data files for the last access time inverted order according to described all data files.
10. CDN server according to claim 9, is characterized in that,
Described the first determination module, specifically for the disk space taking respectively according to all described data files, from all described data file of arranging according to the last access time inverted order of all described data files, determine described data file to be deleted, wherein, the shared disk space summation of all described data files to be deleted is more than or equal to the described disk space that needs release.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310722667.8A CN103747276A (en) | 2013-12-24 | 2013-12-24 | CDN data deletion method and CDN server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310722667.8A CN103747276A (en) | 2013-12-24 | 2013-12-24 | CDN data deletion method and CDN server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103747276A true CN103747276A (en) | 2014-04-23 |
Family
ID=50504258
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310722667.8A Pending CN103747276A (en) | 2013-12-24 | 2013-12-24 | CDN data deletion method and CDN server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103747276A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105095252A (en) * | 2014-05-06 | 2015-11-25 | 腾讯科技(深圳)有限公司 | File management method and system |
CN105915600A (en) * | 2016-04-13 | 2016-08-31 | 乐视控股(北京)有限公司 | Data writing-in method based CDN network system and CDN network system thereof |
CN108475277A (en) * | 2016-07-28 | 2018-08-31 | 华为技术有限公司 | A kind of recognition methods of the data that are of little use and terminal |
CN109558065A (en) * | 2017-09-25 | 2019-04-02 | 杭州海康威视系统技术有限公司 | Data-erasure method and distributed memory system |
CN110191187A (en) * | 2019-06-04 | 2019-08-30 | 湖北五五互联科技有限公司 | CDN server data managing method, equipment and computer readable storage medium |
CN111356004A (en) * | 2020-04-14 | 2020-06-30 | 深圳市小微学苑科技有限公司 | Storage method and system of universal video file |
CN113268475A (en) * | 2021-06-01 | 2021-08-17 | 广州欢网科技有限责任公司 | Self-clearing method for clickhouse database |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101232388A (en) * | 2007-01-26 | 2008-07-30 | 中兴通讯股份有限公司 | Method for distributing control stream medium data on edge stream medium server |
US20100100935A1 (en) * | 2007-01-26 | 2010-04-22 | Junichi Sato | Content distribution system, content distribution method and program |
-
2013
- 2013-12-24 CN CN201310722667.8A patent/CN103747276A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101232388A (en) * | 2007-01-26 | 2008-07-30 | 中兴通讯股份有限公司 | Method for distributing control stream medium data on edge stream medium server |
US20100100935A1 (en) * | 2007-01-26 | 2010-04-22 | Junichi Sato | Content distribution system, content distribution method and program |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105095252A (en) * | 2014-05-06 | 2015-11-25 | 腾讯科技(深圳)有限公司 | File management method and system |
CN105095252B (en) * | 2014-05-06 | 2019-09-17 | 腾讯科技(深圳)有限公司 | A kind of file management method and system |
CN105915600A (en) * | 2016-04-13 | 2016-08-31 | 乐视控股(北京)有限公司 | Data writing-in method based CDN network system and CDN network system thereof |
CN108475277A (en) * | 2016-07-28 | 2018-08-31 | 华为技术有限公司 | A kind of recognition methods of the data that are of little use and terminal |
CN108475277B (en) * | 2016-07-28 | 2022-08-26 | 华为技术有限公司 | Identification method and terminal for uncommon data |
CN109558065A (en) * | 2017-09-25 | 2019-04-02 | 杭州海康威视系统技术有限公司 | Data-erasure method and distributed memory system |
CN109558065B (en) * | 2017-09-25 | 2020-11-27 | 杭州海康威视系统技术有限公司 | Data deleting method and distributed storage system |
CN110191187A (en) * | 2019-06-04 | 2019-08-30 | 湖北五五互联科技有限公司 | CDN server data managing method, equipment and computer readable storage medium |
CN111356004A (en) * | 2020-04-14 | 2020-06-30 | 深圳市小微学苑科技有限公司 | Storage method and system of universal video file |
CN113268475A (en) * | 2021-06-01 | 2021-08-17 | 广州欢网科技有限责任公司 | Self-clearing method for clickhouse database |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103747276A (en) | CDN data deletion method and CDN server | |
CN108647151B (en) | Full flash system metadata disk-dropping method, device, equipment and storage medium | |
US10303600B2 (en) | Method and storage device for collecting garbage data | |
CN103747047A (en) | CDN file storage method, file distribution control center and system thereof | |
CN102156738B (en) | Method for processing data blocks, and data block storage equipment and system | |
CN105589812B (en) | Disk fragments method for sorting, device and host | |
RU2661280C2 (en) | Massive controller, solid state disk and data recording solid state disk control method | |
CN101446984B (en) | Method and device for storing files and method and device for deleting files | |
CN103984641B (en) | A kind of memory space recovery method and its device based on simplify configuration technology | |
CN103218416A (en) | Method, device and system for loading database | |
CN105159604A (en) | Disk data read-write method and system | |
CN112799584A (en) | Data storage method and device | |
CN111324303B (en) | SSD garbage recycling method, SSD garbage recycling device, computer equipment and storage medium | |
CN105573681A (en) | Method and system for establishing RAID in SSD | |
CN105677236B (en) | A kind of storage device and its method for storing data | |
CN103559139B (en) | A kind of date storage method and device | |
CN102413186B (en) | Resource scheduling method and device based on private cloud computing, and cloud management server | |
CN103995855A (en) | Method and device for storing data | |
CN107491272B (en) | Data migration method, device, equipment and storage medium | |
CN111061752B (en) | Data processing method and device and electronic equipment | |
CN105487823A (en) | Data migration method and device | |
CN103049354A (en) | Data restoration method, data restoration device and storage system | |
CN104123237A (en) | Hierarchical storage method and system for massive small files | |
CN110888837A (en) | Object storage small file merging method and device | |
CN103049508A (en) | Method and device for processing data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C41 | Transfer of patent application or patent right or utility model | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20160108 Address after: 100081 Beijing, Zhongguancun, South Street, No. 1, building 689, building 1153, No., No. 5 Applicant after: LETV CLOUD COMPUTING CO., LTD. Address before: Room six, building 19, building 68, No. 100089 South Road, Haidian District, Beijing Applicant before: LeTV Information Technology (Beijing) Co., Ltd. |
|
AD01 | Patent right deemed abandoned |
Effective date of abandoning: 20180504 |
|
AD01 | Patent right deemed abandoned |