CN110381335A - The method and system that video file in internet video server is cleared up - Google Patents
The method and system that video file in internet video server is cleared up Download PDFInfo
- Publication number
- CN110381335A CN110381335A CN201910786874.7A CN201910786874A CN110381335A CN 110381335 A CN110381335 A CN 110381335A CN 201910786874 A CN201910786874 A CN 201910786874A CN 110381335 A CN110381335 A CN 110381335A
- Authority
- CN
- China
- Prior art keywords
- video
- deleted
- file
- server
- video server
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/231—Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
- H04N21/23113—Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion involving housekeeping operations for stored content, e.g. prioritizing content for deletion because of storage space restrictions
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention discloses the method and system that the video file in a kind of pair of internet video server is cleared up, method comprises determining that in internet the current status information of each video server in all video servers in target area, video server to be processed is selected from multiple video servers, each video server in addition to video server to be processed is determined as video server to be tested, multiple video files to be deleted are selected from all video files stored in video server to be processed;Information aggregate is sent to each video server to be tested by video server to be processed;The content degree of association of each video server to be tested in each video file to be deleted and multiple video servers to be tested is determined based on the file information item;Determine that specific video file to be deleted whether there is target video server based on the content degree of association, if it does not exist, then specific video file to be deleted is deleted.
Description
Technical field
The present invention relates to internet information process fields, and more particularly, to a kind of pair of internet video server
In the method and system cleared up of video file.
Background technique
With the development of internet, the quantity of the video file transmitted based on internet in a manner of geometric progression into
Line number amount increases.For this purpose, the provider of each video file is required to be continuously increased server to store more video files.
Since the timeliness of video file is more and more stronger, partial video file may over time, become just without any amount of access or
Amount of access polar region.For this reason, it may be necessary to be cleared up the video file in internet video server to save valuable storage and provide
Source.
Summary of the invention
The present invention provides the method that the video file in a kind of pair of internet video server is cleared up, the method packet
It includes:
Determine in internet the current status information of each video server in all video servers in target area,
The current status information of each video server is parsed with the residual storage capacity of each video server of determination, always
Memory capacity, acess control information and document size information;
Based on residual storage capacity, total memory capacity, acess control information and document size information from multiple Video services
Video server to be processed is selected in device, and Video service to be processed will be removed in all video servers in the target area
Each video server except device is determined as video server to be tested, is stored from video server to be processed
Multiple video files to be deleted are selected in all video files, and for each video file to be deleted, life span is set;
Video server to be processed is each generation the file information item in multiple video files to be deleted, and will be every
The file information item of a video file to be deleted forms information aggregate, and information aggregate is sent to each video to be tested and is taken
Business device;
Each video server to be tested from obtain each video file to be deleted in received information aggregate
The file information item is determined every in each video file to be deleted and multiple video servers to be tested based on the file information item
The content degree of association of a video server to be tested;
When the life span of video file to be deleted specific in multiple video files to be deleted is expired, based on spy
The content degree of association of fixed video file to be deleted and each video server to be tested determines described specific to be deleted
Video file whether there is target video server, if it does not exist, then the specific video file to be deleted is deleted
It removes.
Based on residual storage capacity, total memory capacity, acess control information and document size information from multiple Video services
The video server to be processed is selected to include: in device
Multiple video clothes are determined based on residual storage capacity, total memory capacity, acess control information and document size information
The fragmentation index of each video server, the maximum video server of fragmentation index is selected as to be processed in business device
Video server;
Multiple video files to be deleted are selected from all video files stored in video server to be processed
Include:
Determine the deletion coefficient of each video file in all video files stored in video server to be processed:
It is selected from all video files stored in video server to be processed based on deletion coefficient multiple wait delete
The video file removed;
It is selected from all video files stored in video server to be processed based on deletion coefficient multiple wait delete
The video file removed includes:
It is less than the more of coefficient threshold for coefficient is deleted in all video files stored in video server to be processed
A video file is selected as multiple video files to be deleted.
Life span, which is arranged, for video file to be deleted each in multiple video files to be deleted includes:
The sub- period is set by the life span of video file to be deleted each in multiple video files to be deleted
Time span.
The present invention also provides the system that the video file in a kind of pair of internet video server is cleared up, the systems
Include:
Resolver determines in internet in target area the current of each video server in all video servers
Status information is parsed the current status information of each video server and is deposited with the residue of each video server of determination
Store up capacity, total memory capacity, acess control information and document size information;
Selection device, based on residual storage capacity, total memory capacity, acess control information and document size information from multiple
Video server to be processed is selected in video server, it is to be processed by being removed in all video servers in the target area
Each video server except video server is determined as video server to be tested, from video server to be processed
Multiple video files to be deleted are selected in all video files stored, and for each video file to be deleted, existence is set
Time;
Sending device, video server to be processed are each generation the file information in multiple video files to be deleted
, and the file information item of each video file to be deleted is formed into information aggregate, information aggregate is sent to each to be measured
The video server of examination;
Determining device, each video server to be tested from obtain each view to be deleted in received information aggregate
The file information item of frequency file determines that each video file to be deleted and multiple videos to be tested take based on the file information item
The content degree of association of each video server to be tested in business device;
Processing unit, when the life span of video file to be deleted specific in multiple video files to be deleted is expired
When, based on specific video file and each video server to be tested to be deleted the content degree of association determine it is described specific
Video file to be deleted whether there is target video server, if it does not exist, then by the specific view to be deleted
Frequency file is deleted.
Based on residual storage capacity, total memory capacity, acess control information and document size information from multiple Video services
The video server to be processed is selected to include: in device
Multiple video clothes are determined based on residual storage capacity, total memory capacity, acess control information and document size information
The fragmentation index of each video server, the maximum video server of fragmentation index is selected as to be processed in business device
Video server;
Multiple video files to be deleted are selected from all video files stored in video server to be processed
Include:
Determine the deletion coefficient of each video file in all video files stored in video server to be processed:
It is selected from all video files stored in video server to be processed based on deletion coefficient multiple wait delete
The video file removed;
It is selected from all video files stored in video server to be processed based on deletion coefficient multiple wait delete
The video file removed includes:
It is less than the more of coefficient threshold for coefficient is deleted in all video files stored in video server to be processed
A video file is selected as multiple video files to be deleted.
Life span, which is arranged, for video file to be deleted each in multiple video files to be deleted includes:
The sub- period is set by the life span of video file to be deleted each in multiple video files to be deleted
Time span.
Detailed description of the invention
By reference to the following drawings, exemplary embodiments of the present invention can be more fully understood by:
Fig. 1 is the flow chart for the method cleared up the video file in internet video server;
Fig. 2 is the logical schematic according to the present invention cleared up video file;And
Fig. 3 is the structural schematic diagram for the system cleared up the video file in internet video server.
Specific embodiment
Fig. 1 is the flow chart for the method 100 cleared up the video file in internet video server.
Method includes: step 101, determines in internet in target area each video server in all video servers
Current status information, the current status information of each video server is parsed with each video server of determination
Residual storage capacity, total memory capacity, acess control information and document size information.
It include multiple regions in internet, wherein including multiple video servers in each region.Each video server
For storing multiple video files.Each video server can receive from requestor and be directed to the multiple video files stored
In one or more video files access request, and provide one or more videos text according to access request for requestor
Part.Each region in multiple regions can be internal network or the internal network region of internet video service provider.It presses
Select a region as target area from the multiple regions of internet according to pre-defined rule.It is inputted according to user from internet
A region is selected to randomly choose a region as target area, from the multiple regions of internet as mesh in multiple regions
Mark region.
Current status information includes: residual storage capacity, total memory capacity, acess control information and document size letter
Breath.The current status information of each video server includes: the residual storage capacity of each video server, total storage appearance
Amount, acess control information and document size information.Wherein, total memory capacity is that video server can be used in storing video file
Total memory space capacity.Residual storage capacity is that video server can be used for storing new video file at current time
Memory space capacity.Acess control information includes multiple access items, wherein each access item includes: accessed time, text
Part identifier, requestor identifier.Wherein each access item is used to record the accessed information of video file.Document size letter
Breath includes that multiple sizes record, and each size record includes file identifier and document size.
Step 102, based on residual storage capacity, total memory capacity, acess control information and document size information from multiple
Video server to be processed is selected in video server, it is to be processed by being removed in all video servers in the target area
Each video server except video server is determined as video server to be tested, from video server to be processed
Multiple video files to be deleted are selected in all video files stored, and for each video file to be deleted, existence is set
Time.
Based on residual storage capacity, total memory capacity, acess control information and document size information from multiple Video services
It includes: based on residual storage capacity, total memory capacity, acess control information and file that video server to be processed is selected in device
Dimension information determines the fragmentation index of each video server in multiple video servers, by the maximum video of fragmentation index
Server is selected as video server to be processed.
Multiple video clothes are determined based on residual storage capacity, total memory capacity, acess control information and document size information
The fragmentation coefficient of each video server includes: all visits in the acess control information to each video server in business device
Ask that item is counted, all video files stored with each video server of determination are in predetermined amount of time TiInterior is total interviewed
Ask number Ai,
That is, the accessed time obtained in all access items in the acess control information of each video server is making a reservation for
Period TiInterior multiple access items, in predetermined amount of time TiThe quantity of interior multiple access items is as each video server institute
All video files of storage are in predetermined amount of time TiInterior total accessed number Ai;Wherein predetermined amount of time TiMore than or equal to 5
It, 10 days, 15 days, 20 days, 30 days etc..For example, predetermined amount of time TiIt is to be arrived since the previous day (yesterday) of current time
During 10 days of the specific date gone.
All access items in the acess control information of each video server are counted, with each video clothes of determination
All video files that business device is stored are in nearest time period tiInterior total accessed number Ai。
That is, obtaining accessed time in all access items in the acess control information of each video server nearest
Time period tiInterior multiple access items, the quantity of multiple access items in nearest time period t is as each Video service
All video files that device is stored are in nearest time period tiInterior total accessed number Ai-recent;The wherein nearest period
tiLess than predetermined amount of time Ti, for example, 2 days, 3 days, 5 days, 8 days, 10 days etc..For example, in the above example, predetermined amount of time
TiDuring being the 10 day time since the previous day (yesterday) of current time, until the past specific date, when nearest
Between section tiDuring being the 2 day time since the previous day (yesterday) of current time, until the past specific date.Above
Term " day " is consecutive days.tiFor TiSubset.
By predetermined amount of time TiIt is divided into the sub- period of multiple same time length, for example, by predetermined amount of time TiIt is divided into j
The sub- period of a same time length, specifically, each sub- period can be 1 day, 0.5 day or 0.25 day etc..
All access items in the acess control information of each video server are counted, with each video clothes of determination
Accessed number A of all video files that business device is stored within each sub- periodij, that is, according to each sub- period and
The accessed time in all access items in the acess control information of each video server is to predetermined amount of time TiInterior institute
There is access item to be grouped, the quantity of the access item within each sub- period is stored all as each video server
Video file is in predetermined amount of time TiAccessed number A in each of interior sub- periodij;For example, predetermined amount of time TiIt is 10
It and sub- period are 1 day, then the accessed number A in each sub- periodijFor in 10 days daily in each video clothes
The accessed number for all video files of business device stored;The wherein predetermined amount of time T of each video serveriInside include
niA sub- period.
Calculate the accessed number A of all video files that each video server is stored within each sub- periodij
Average value, and using average value as Aiavg。
Size record in the document size information of each video server is counted, with each Video service of determination
The document size Q of each video file in all video files that device is storedik, wherein qiIt is stored by each video server
All video files quantity.
The document size Q of each video file in all video files stored according to each video serverik, calculate
The average file size Q for all video files that each video server is storediavg。
Size record in the document size information of each video server is counted with each Video service of determination
The median of the document size for all video files that device is stored, that is, according to the descending order of document size to each video
All video files that server is stored are ranked up.
It will be located atOrThe document size of the video file at place is stored all as each video server
The median Z of the document size of video file;
First size threshold k is determined based on median Z and adjustment factor α1With the second size threshold K2:
k1=Z × (1+ α)
k2=Z × (1- α)
Wherein the application can preset α, and/or dynamic adjustment α.α be greater than 0, α be, for example, 0.2,0.3,0.4,0.5,
0.55, any reasonable value such as 0.6.Or α is greater than 0 and less than 1.
Size record in the document size information of each video server is counted, document size is greater than first
Size threshold K1Video file be selected as large-sized video file, determine all views that each video server is stored
In frequency file, the quantity C of large-sized video fileil.For example, first size threshold value is 100MB, the second size threshold is
50MB。
Size record in the document size information of each video server is counted, document size is less than or is waited
In first size threshold k1And it is greater than or equal to the second size threshold K2Video file be selected as middle size video text
Part determines in all video files that each video server is stored, the quantity C of the video file of middle sizeim.To each view
Size record in the document size information of frequency server is counted, by document size less than the second size threshold K2Video
File is selected as the video file of small size, determines in all video files that each video server is stored, small size
Video file quantity Cis。
Formula based on following calculates the fragmentation coefficient S of each video server in multiple video serversi:
Wherein, SiFor in target area in (all) multiple video servers i-th of video server fragmentation coefficient;
RiFor the residual storage capacity of i-th of video server;GiFor the total memory capacity of i-th of video server;AiIt is regarded for i-th
(all) multiple video files that frequency server is stored are in predetermined amount of time TiThe sum of interior accessed number;Ai-recentFor
All (multiple) video files that i-th of video server is stored are in nearest time period tiInterior accessed number it is total
Number;
The wherein predetermined amount of time T of each video serveriIt is all the same, and the nearest time of each video server
Section tiIt is all the same.1≤i≤N, wherein N is the quantity of video server in target area;10≤N, 5≤N, 20≤N or 15≤N,
I is natural number.
Ai,j(all) the multiple video files stored by i-th of video server are interviewed within j-th of sub- period
Ask the sum of number;AiavgAll video files stored by i-th of video server are in niIn each of a sub- period
Accessed number Ai,jAverage value;Wherein 1≤j≤ni,niFor the quantity of sub- period;The sub- period of each video server
Quantity niIt is all the same;10≤ni, 5≤ni, 20≤niOr 15≤ni
Qi,kThe file ruler of k-th of video file in (all) the multiple video files stored by i-th of video server
It is very little;QiavgBy the average file size for all video files that i-th of video server stores;qiFor i-th of video server
The quantity of documents of all video files stored;Wherein 1≤k≤qi,100≤qi, 1000≤qi, 10000≤qiOr 100000
≤qi, wherein k is natural number.
CisThe number of the video file of the small size in (all) multiple video files stored by i-th of video server
Amount;CimThe quantity of the video file of the middle size in (all) multiple video files stored by i-th of video server;
CilThe quantity of the large-sized video file in (all) multiple video files stored by i-th of video server.
Cis+Cim+Cil=qi;
By S in video servers multiple in target areaiThe maximum video server of value be determined as video to be processed
Server.
Multiple video files to be deleted are selected from all video files stored in video server to be processed
It include: that all access items in the acess control information to video server to be processed count, it is to be processed with determination
Total accessed number f of all video files that video server is stored in predetermined amount of time Ti-to, to view to be processed
All access items in the acess control information of frequency server are counted, and are stored with determination video server to be processed
Total accessed number f of all video files in nearest time period ti-re, unite to the access of video server to be processed
All access items in meter information are counted, every in all video files stored with determination video server to be processed
Access times f of a video file within each sub- periodi,j。
Determine the deletion coefficient of each video file in all video files stored in video server to be processed:
DiBy the deletion system of i-th of video file in all video files for being stored in video server to be processed
Number, fi-toFor accessed number of i-th of the video file in video server to be processed in predetermined amount of time T, fi-reFor to
Accessed number of i-th of video file in nearest time period t in the video server of processing.1≤i≤m, m are wait locate
The quantity of video file, 100≤m, 50≤m, 200≤m or 500≤m in the video server of reason.
Predetermined amount of time T was divided for the sub- period of multiple same time length, for example, it is j that predetermined amount of time T, which is divided,
The sub- period of same time length.fi,jI-th of video in all video files stored by video server to be processed
Access times of the file within j-th of sub- period.2≤j≤n-1, n are the quantity of sub- period, and i and j are natural number.
Wherein, access of any video file in video server to be processed within two adjacent sub- periods time
Number is not identical.It is selected from all video files stored in video server to be processed based on deletion coefficient multiple wait delete
The video file removed.
It is selected from all video files stored in video server to be processed based on deletion coefficient multiple wait delete
The video file removed includes: to delete coefficient in all video files that will be stored in video server to be processed to be less than coefficient
Multiple video files of threshold value are selected as multiple video files to be deleted.Alternatively, right based on the ascending order sequence for deleting coefficient
All video files stored in video server to be processed are ranked up, will sequence preceding 1%, 2%, 3%, 5%,
10% or 15% etc. multiple video files are selected as multiple video files to be deleted.Coefficient threshold is, for example, 0.75,
1.25,1.8,2.9 et al. with reasonable value.
Multiple video files to be deleted are selected from all video files stored in video server to be processed
It include: that multiple video files are randomly choosed from all video files stored in video server to be processed using as more
A video file to be deleted.
Ascending order sequence based on document size carries out all video files stored in video server to be processed
The multiple video files to sort in preceding 1%, 2%, 3%, 5%, 10% or 15% etc. are selected as multiple to be deleted by sequence
Video file.
It includes: according to file that life span, which is arranged, for video file to be deleted each in multiple video files to be deleted
The descending order of size is ranked up multiple video files to be deleted, to generate sorted lists;In sorted lists, in addition to
Sequence is at first or except last video file to be deleted, arbitrary video file to be deleted it is adjacent under
One video file to be deleted is that the document size of document size and the arbitrary video file to be deleted is closest
And document size that be less than the arbitrary video file to be deleted video file to be deleted;It is arbitrary to be deleted
The upper one adjacent video file to be deleted of video file be document size and the arbitrary video to be deleted
The document size of file is immediate and is greater than the to be deleted of the document size of the arbitrary video file to be deleted
Video file.
All access items in the acess control information of video server to be processed are counted, with determination it is multiple to
Accessed number f of each video file to be deleted in predetermined amount of time T in the video file of deletionk.Calculate it is multiple to
Accessed number f of each video file to be deleted in predetermined amount of time T in the video file of deletionkAverage value favg。
Size record in the document size information of video server to be processed is counted, with the multiple videos to be deleted of determination
The document size of each video file to be deleted in file.
Calculate the average value h of the document size of each video file to be deleted in multiple video files to be deletedavg。
Calculate the flat of accessed number of each video file to be deleted in predetermined amount of time T in multiple video files to be deleted
Mean value favg。
Wherein, tk-liveFor the life span of k-th of video file to be deleted in multiple video files to be deleted, tsub
For the time span of sub- period;fkIt is k-th of video file to be deleted in multiple video files to be deleted in pre- timing
Between accessed number in section T, favgIt is each video file to be deleted in multiple video files to be deleted in the predetermined time
The average value of accessed number in section T;hk-sFor the video file to be deleted less than k-th of the document size in sorted lists
Adjacent video file to be deleted document size, hk-lIt is to be deleted greater than k-th for the document size in sorted lists
The document size of the adjacent video file to be deleted of video file, havgFor in multiple video files to be deleted each to
The average value of the document size of the video file of deletion.
For video file to be deleted each in multiple video files to be deleted be arranged life span include: by it is multiple to
The life span of each video file to be deleted is set as the time span of sub- period in the video file of deletion;Alternatively,
By the life span of video file to be deleted each in multiple video files to be deleted be set as 1 day, 2 days, 3 days, 5 days,
10 days or 20 days etc..
Step 103, video server to be processed is each generation the file information in multiple video files to be deleted
, and the file information item of each video file to be deleted is formed into information aggregate, information aggregate is sent to each to be measured
The video server of examination.Wherein video server to be processed is each generation file letter in multiple video files to be deleted
Breath item includes: to obtain video server to be processed as each of multiple video files to be deleted video file to be deleted
Summary info, wherein summary info includes: file name, file class and recommended information;Based on file name, file class
It is that each video file to be deleted generates the file information item with recommended information.Wherein file name is video file or to be deleted
Video file title.File class is the classification that video file or video file to be deleted are belonged to, for example, sport,
Amusement or music etc..Recommended information is for introducing or describing content involved in video file or video file to be deleted
Information, for example, the recommended information of video file A includes: 2019 2 in XXX basketball course/basketball Cup/basketball warm-up match etc.
The Basketball Match of month A team and B team on the 21st, both sides starting player be respectively ..., result of the match is ..., wherein each sportsman
Scoring is ..., and the other contents for needing to introduce.
It is that each video file to be deleted generates the file information item packet based on file name, file class and recommended information
It includes: using file name, file class and the recommended information of each video file to be deleted as three information subitems, and
The file information item is constructed by three information subitems.The file information item of each video file to be deleted is formed into information aggregate
It include: to merge the file information item of each video file to be deleted in single set to form information aggregate.
Step 104, each video server to be tested from obtain each view to be deleted in received information aggregate
The file information item of frequency file determines that each video file to be deleted and multiple videos to be tested take based on the file information item
The content degree of association of each video server to be tested in business device.
Each video server to be tested from obtain each video file to be deleted in received information aggregate
It further include the file information item of each video server to be tested to each video file to be deleted after the file information item
It is parsed with file name, file class and the content information of each video file to be deleted of determination.
It is determined based on the file information item each in each video file to be deleted and multiple video servers to be tested
Before the content degree of association of video server to be tested further include: each video server to be tested obtains respective service
Device information, and server info is parsed with the respective subject categories of determination and subject content.Wherein subject categories are view
At least one pre-set classification of frequency server or video server to be tested is using video server or to be measured
It is pre-set for depositing for video server or video server to be tested when the video server of examination stores video file
Store up the video file of at least one classification;In general, being arranged by the controller or control system of internet inner region;For example,
The subject categories of video server or video server to be tested are sport and amusement.
Involved in all video files that subject content is stored by video server or video server to be tested
The information aggregate of respective subject content, subject content information includes multiple theme items, wherein each theme item includes: subject description
Item and quantitative proportion.For example, theme item are as follows: on May 5,1 day to 2019 January in 2019 XXX basketball course match video,
2.5%.Wherein subject description item is the profile of the video file of identical theme, and quantitative proportion is the view of identical theme
The ratio of the quantity for all video files that the quantity and video server or video server to be tested of frequency file are stored.
It is determined based on the file information item each in each video file to be deleted and multiple video servers to be tested
The content degree of association of video server to be tested include: calculate the file class of each video file to be deleted with each to
The matching degree of the subject categories of the video server of test is using as categorical match degree.Calculate each video file to be deleted
The matching degree of the subject categories of file class and each video server to be tested as categorical match degree to comprise determining that often
At least one classification in the subject categories of the file class of a video file to be deleted and each video server to be tested
In each classification the meaning of a word degree of association.When in the subject categories of video server to be tested including a classification, by the meaning of a word
The degree of association is as the file class of each video file to be deleted and the subject categories of each video server to be tested
Categorical match degree.When in the subject categories of video server to be tested including multiple classifications, by file class and each class
The average value of other meaning of a word degree of association takes as the file class of each video file to be deleted and each video to be tested
The categorical match degree of the subject categories of business device.
Calculate the content information of each video file to be deleted and the subject content of each video server to be tested
Matching degree using as content matching degree.Calculate the content information and each video to be tested of each video file to be deleted
The matching degree of subject description item in each theme item of the subject content of server, by the maximum subject description of matching degree
Quantitative proportion (quantitative proportion in theme item where the maximum subject description item of matching degree) corresponding to is as each
The content matching degree of the subject content of the content information of video file to be deleted and each video server to be tested.
Each video file to be deleted and multiple videos to be tested are determined based on categorical match degree and content matching degree
The content degree of association of each video server to be tested includes: that each video file to be deleted is multiple to be measured in server
In the video server of examination the sum of the categorical match degree of each video server to be tested and content matching degree as it is each to
The content degree of association of each video server to be tested in the video file of deletion and multiple video servers to be tested.
Each video server to be tested from obtain each video file to be deleted in received information aggregate
It further include the file information item of each video server to be tested to each video file to be deleted after the file information item
It is parsed with the file class of each video file to be deleted of determination.
It is determined based on the file information item each in each video file to be deleted and multiple video servers to be tested
Before the content degree of association of video server to be tested further include: each video server to be tested obtains respective service
Device information, and server info is parsed with the respective subject categories of determination;Wherein subject categories be video server or
The pre-set classification of video server to be tested is stored using video server or video server to be tested
When video file, for video server or the pre-set video text for storing a classification of video server to be tested
Part;In general, being arranged by the controller or control system of internet inner region;For example, video server or view to be tested
The subject categories of frequency server are sport and amusement.
It is determined based on the file information item each in each video file to be deleted and multiple video servers to be tested
The content degree of association of video server to be tested include: calculate the file class of each video file to be deleted with each to
The matching degree of the subject categories of the video server of test is using as the content degree of association.Calculate each video file to be deleted
The matching degree of the subject categories of file class and each video server to be tested as the content degree of association to comprise determining that often
The meaning of a word degree of association of the subject categories of the file class of a video file to be deleted and each video server to be tested, will
The meaning of a word degree of association is as each video to be tested in each video file to be deleted and multiple video servers to be tested
The content degree of association of server.
The degree of association of the meaning of a word degree of association between pre-set two words, in order to determine two words, for example, file class
When with the meaning of a word degrees of association of subject categories, by two words (file class and subject categories) as input the meaning of a word degree of association
With inquiry is carried out in library it can obtain the meaning of a word degrees of association of two words (file class and subject categories), i.e. the meaning of a word degree of association
Matching library includes multiple matchings pair, for example, (word A, word B, the degree of association).When, when word A is equal to word B, the meaning of a word degree of association
It is 100%, when word A and word B is antonym, the meaning of a word degree of association is 0%.
Step 105, when the life span of video file to be deleted specific in multiple video files to be deleted is expired
When, based on specific video file and each video server to be tested to be deleted the content degree of association determine it is described specific
Video file to be deleted whether there is target video server, if it does not exist, then by the specific view to be deleted
Frequency file is deleted.
When the life span of video file to be deleted specific in multiple video files to be deleted is expired, based on spy
The content degree of association of fixed video file to be deleted and each video server to be tested determines described specific to be deleted
Video file whether there is target video server, if it does not exist, then the specific video file to be deleted is deleted
It removes.Since the life span of each video file to be deleted in multiple video files to be deleted may be identical or different, because
This, the life span of each video file to be deleted may also be identical or different at the time of expiring.
Institute is determined based on the content degree of association of specific video file and each video server to be tested to be deleted
It states specific video file to be deleted and comprises determining that specific video file to be deleted with the presence or absence of target video server
Maximum value with the content degree of association of each video server to be tested, that is, determine the maximum content degree of association.In determination
Whether the maximum value or the maximum content degree of association held in the degree of association are less than degree of association threshold value, if it is less, specifically wait delete
Target video server is not present in the video file removed, then deletes the specific video file to be deleted.If content
Maximum value or the maximum content degree of association in the degree of association are greater than or equal to degree of association threshold value, then by the maximum in the content degree of association
Video server to be tested corresponding to value or the maximum content degree of association is determined as target video server, will be described specific
Video file to be deleted be moved in the target video server.Degree of association threshold value is, for example, 40%, 50%, 60%,
70%, 80%.
Fig. 2 is the logical schematic according to the present invention cleared up video file.As shown in Fig. 2, the application is first
The current status information for determining in internet each video server in all video servers in target area, to each view
The current status information of frequency server is parsed to be held with the residual storage capacity of each video server of determination, total storage
Amount, acess control information and document size information.The application is based on residual storage capacity, total memory capacity, acess control information
Video server to be processed is selected from multiple video servers with document size information.By all views in the target area
Each video server in frequency server in addition to video server to be processed is determined as video server to be tested.Such as
Shown in Fig. 2, video server 1 to be tested, video server 2 to be tested ..., video server n to be tested.Its
In, video server 1 to be tested, video server 2 to be tested ..., video server n to be tested and to be processed
Video server is all video servers in target area.
Multiple video files to be deleted are selected from all video files stored in video server to be processed,
Life span is set for each video file to be deleted, as shown in the elliptic region of Fig. 2.Video server to be processed
For each generation the file information item in multiple video files to be deleted, and the file of each video file to be deleted is believed
It ceases item and forms information aggregate, information aggregate is sent to video server 1 to be tested, video server to be tested
2 ..., each of video server n to be tested video server to be tested.It is video server 1 to be tested, to be measured
The video server 2 of examination ..., each of video server n to be tested video server to be tested it is received from institute
The file information item that each video file to be deleted is obtained in information aggregate is determined each to be deleted based on the file information item
Video file and video server 1 to be tested, video server 2 to be tested ..., in video server n to be tested
Each of video server to be tested the content degree of association.
When the life span of video file to be deleted specific in multiple video files to be deleted is expired, based on spy
Fixed video file to be deleted and video server 1 to be tested, video server 2 to be tested ..., view to be tested
The content degree of association of each of frequency server n video server to be tested determines the specific video file to be deleted
With the presence or absence of target video server, if it does not exist, then the specific video file to be deleted is deleted.If deposited
Then specific video file to be deleted is being moved in target video server.Wherein target video server is to be measured
The video server 1 of examination, video server 2 to be tested ..., one in video server n to be tested.
Fig. 3 is the structural schematic diagram for the system cleared up the video file in internet video server.System packet
It includes: resolver 301, selection device 302, sending device 303, determining device 304 and processing unit 305.
Resolver 301 determines in internet in target area the current of each video server in all video servers
Status information, the current status information of each video server is parsed with the residue of each video server of determination
Memory capacity, total memory capacity, acess control information and document size information.
It include multiple regions in internet, wherein including multiple video servers in each region.Each video server
For storing multiple video files.Each video server can receive from requestor and be directed to the multiple video files stored
In one or more video files access request, and provide one or more videos text according to access request for requestor
Part.Each region in multiple regions can be internal network or the internal network region of internet video service provider.It presses
Select a region as target area from the multiple regions of internet according to pre-defined rule.It is inputted according to user from internet
A region is selected to randomly choose a region as target area, from the multiple regions of internet as mesh in multiple regions
Mark region.
Current status information includes: residual storage capacity, total memory capacity, acess control information and document size letter
Breath.The current status information of each video server includes: the residual storage capacity of each video server, total storage appearance
Amount, acess control information and document size information.Wherein, total memory capacity is that video server can be used in storing video file
Total memory space capacity.Residual storage capacity is that video server can be used for storing new video file at current time
Memory space capacity.Acess control information includes multiple access items, wherein each access item includes: accessed time, text
Part identifier, requestor identifier.Wherein each access item is used to record the accessed information of video file.Document size letter
Breath includes that multiple sizes record, and each size record includes file identifier and document size.
Selection device 302 is based on residual storage capacity, total memory capacity, acess control information and document size information from more
Video server to be processed is selected in a video server, it is to be processed by being removed in all video servers in the target area
Video server except each video server be determined as video server to be tested, from video server to be processed
Multiple video files to be deleted are selected in middle stored all video files, life is set for each video file to be deleted
Deposit the time.
Based on residual storage capacity, total memory capacity, acess control information and document size information from multiple Video services
It includes: based on residual storage capacity, total memory capacity, acess control information and file that video server to be processed is selected in device
Dimension information determines the fragmentation index of each video server in multiple video servers, by the maximum video of fragmentation index
Server is selected as video server to be processed.
Multiple video clothes are determined based on residual storage capacity, total memory capacity, acess control information and document size information
The fragmentation coefficient of each video server includes: all visits in the acess control information to each video server in business device
Ask that item is counted, all video files stored with each video server of determination are in predetermined amount of time TiInterior is total interviewed
Ask number Ai,
That is, the accessed time obtained in all access items in the acess control information of each video server is making a reservation for
Period TiInterior multiple access items, in predetermined amount of time TiThe quantity of interior multiple access items is as each video server institute
All video files of storage are in predetermined amount of time TiInterior total accessed number Ai;Wherein predetermined amount of time TiMore than or equal to 5
It, 10 days, 15 days, 20 days, 30 days etc..For example, predetermined amount of time TiIt is to be arrived since the previous day (yesterday) of current time
During 10 days of the specific date gone.
All access items in the acess control information of each video server are counted, with each video clothes of determination
All video files that business device is stored are in nearest time period tiInterior total accessed number Ai。
That is, obtaining accessed time in all access items in the acess control information of each video server nearest
Time period tiInterior multiple access items, the quantity of multiple access items in nearest time period t is as each Video service
All video files that device is stored are in nearest time period tiInterior total accessed number Ai-recent;The wherein nearest period
tiLess than predetermined amount of time Ti, for example, 2 days, 3 days, 5 days, 8 days, 10 days etc..For example, in the above example, predetermined amount of time
TiDuring being the 10 day time since the previous day (yesterday) of current time, until the past specific date, when nearest
Between section tiDuring being the 2 day time since the previous day (yesterday) of current time, until the past specific date.Above
Term " day " is consecutive days.tiFor TiSubset.
By predetermined amount of time TiIt is divided into the sub- period of multiple same time length, for example, by predetermined amount of time TiIt is divided into j
The sub- period of a same time length, specifically, each sub- period can be 1 day, 0.5 day or 0.25 day etc..
All access items in the acess control information of each video server are counted, with each video clothes of determination
Accessed number A of all video files that business device is stored within each sub- periodij, that is, according to each sub- period and
The accessed time in all access items in the acess control information of each video server is to predetermined amount of time TiInterior institute
There is access item to be grouped, the quantity of the access item within each sub- period is stored all as each video server
Video file is in predetermined amount of time TiAccessed number A in each of interior sub- periodij;For example, predetermined amount of time TiIt is 10
It and sub- period are 1 day, then the accessed number A in each sub- periodijFor in 10 days daily in each video clothes
The accessed number for all video files of business device stored;The wherein predetermined amount of time T of each video serveriInside include
niA sub- period.
Calculate the accessed number A of all video files that each video server is stored within each sub- periodij
Average value, and using average value as Aiavg。
Size record in the document size information of each video server is counted, with each Video service of determination
The document size Q of each video file in all video files that device is storedik, wherein qiIt is stored by each video server
All video files quantity.
The document size Q of each video file in all video files stored according to each video serverik, calculate
The average file size Q for all video files that each video server is storediavg。
Size record in the document size information of each video server is counted with each Video service of determination
The median of the document size for all video files that device is stored, that is, according to the descending order of document size to each video
All video files that server is stored are ranked up.
It will be located atOrThe document size of the video file at place is stored all as each video server
The median Z of the document size of video file;
First size threshold k is determined based on median Z and adjustment factor α1With the second size threshold K2:
k1=Z × (1+ α)
k2=Z × (1- α)
Wherein the application can preset α, and/or dynamic adjustment α.α is, for example, 0.2,0.3,0.4,0.5,0.55,
Any reasonable value such as 0.6.
Size record in the document size information of each video server is counted, document size is greater than first
Size threshold K1Video file be selected as large-sized video file, determine all views that each video server is stored
In frequency file, the quantity C of large-sized video fileil。
Size record in the document size information of each video server is counted, document size is less than or is waited
In first size threshold k1And it is greater than or equal to the second size threshold K2Video file be selected as middle size video text
Part determines in all video files that each video server is stored, the quantity C of the video file of middle sizeim.To each view
Size record in the document size information of frequency server is counted, by document size less than the second size threshold K2Video
File is selected as the video file of small size, determines in all video files that each video server is stored, small size
Video file quantity Cis。
Formula based on following calculates the fragmentation coefficient S of each video server in multiple video serversi:
Wherein, SiFor in target area in (all) multiple video servers i-th of video server fragmentation coefficient;
RiFor the residual storage capacity of i-th of video server;GiFor the total memory capacity of i-th of video server;AiIt is regarded for i-th
(all) multiple video files that frequency server is stored are in predetermined amount of time TiThe sum of interior accessed number;Ai-recentFor
All (multiple) video files that i-th of video server is stored are in nearest time period tiInterior accessed number it is total
Number;
The wherein predetermined amount of time T of each video serveriIt is all the same, and the nearest time of each video server
Section tiIt is all the same.1≤i≤N, wherein N is the quantity of video server in target area;10≤N, 5≤N, 20≤N or 15≤N,
I is natural number.
Ai,j(all) the multiple video files stored by i-th of video server are interviewed within j-th of sub- period
Ask the sum of number;AiavgAll video files stored by i-th of video server are in niIn each of a sub- period
Accessed number Ai,jAverage value;Wherein 1≤j≤ni,niFor the quantity of sub- period;The sub- period of each video server
Quantity niIt is all the same;10≤ni, 5≤ni, 20≤niOr 15≤ni
Qi,kThe file ruler of k-th of video file in (all) the multiple video files stored by i-th of video server
It is very little;QiavgBy the average file size for all video files that i-th of video server stores;qiFor i-th of video server
The quantity of documents of all video files stored;Wherein 1≤k≤qi,100≤qi, 1000≤qi, 10000≤qiOr 100000
≤qi, wherein k is natural number.
CisThe number of the video file of the small size in (all) multiple video files stored by i-th of video server
Amount;CimThe quantity of the video file of the middle size in (all) multiple video files stored by i-th of video server;
CilThe quantity of the large-sized video file in (all) multiple video files stored by i-th of video server.
Cis+Cim+Cil=qi;
By S in video servers multiple in target areaiThe maximum video server of value be determined as video to be processed
Server.
Multiple video files to be deleted are selected from all video files stored in video server to be processed
It include: that all access items in the acess control information to video server to be processed count, it is to be processed with determination
Total accessed number f of all video files that video server is stored in predetermined amount of time Ti-to, to view to be processed
All access items in the acess control information of frequency server are counted, and are stored with determination video server to be processed
Total accessed number f of all video files in nearest time period ti-re, unite to the access of video server to be processed
All access items in meter information are counted, every in all video files stored with determination video server to be processed
Access times f of a video file within each sub- periodi,j。
Determine the deletion coefficient of each video file in all video files stored in video server to be processed:
DiBy the deletion system of i-th of video file in all video files for being stored in video server to be processed
Number, fi-toFor accessed number of i-th of the video file in video server to be processed in predetermined amount of time T, fi-reFor to
Accessed number of i-th of video file in nearest time period t in the video server of processing.1≤i≤m, m are wait locate
The quantity of video file, 100≤m, 50≤m, 200≤m or 500≤m in the video server of reason.
Predetermined amount of time T was divided for the sub- period of multiple same time length, for example, it is j that predetermined amount of time T, which is divided,
The sub- period of same time length.fi,jI-th of video in all video files stored by video server to be processed
Access times of the file within j-th of sub- period.2≤j≤n-1, n are the quantity of sub- period, and i and j are natural number.
Wherein, access of any video file in video server to be processed within two adjacent sub- periods time
Number is not identical.It is selected from all video files stored in video server to be processed based on deletion coefficient multiple wait delete
The video file removed.
It is selected from all video files stored in video server to be processed based on deletion coefficient multiple wait delete
The video file removed includes: to delete coefficient in all video files that will be stored in video server to be processed to be less than coefficient
Multiple video files of threshold value are selected as multiple video files to be deleted.Alternatively, right based on the ascending order sequence for deleting coefficient
All video files stored in video server to be processed are ranked up, will sequence preceding 1%, 2%, 3%, 5%,
10% or 15% etc. multiple video files are selected as multiple video files to be deleted.
Multiple video files to be deleted are selected from all video files stored in video server to be processed
It include: that multiple video files are randomly choosed from all video files stored in video server to be processed using as more
A video file to be deleted.
Ascending order sequence based on document size carries out all video files stored in video server to be processed
The multiple video files to sort in preceding 1%, 2%, 3%, 5%, 10% or 15% etc. are selected as multiple to be deleted by sequence
Video file.
It includes: according to file that life span, which is arranged, for video file to be deleted each in multiple video files to be deleted
The descending order of size is ranked up multiple video files to be deleted, to generate sorted lists;In sorted lists, in addition to
Sequence is at first or except last video file to be deleted, arbitrary video file to be deleted it is adjacent under
One video file to be deleted is that the document size of document size and the arbitrary video file to be deleted is closest
And document size that be less than the arbitrary video file to be deleted video file to be deleted;It is arbitrary to be deleted
The upper one adjacent video file to be deleted of video file be document size and the arbitrary video to be deleted
The document size of file is immediate and is greater than the to be deleted of the document size of the arbitrary video file to be deleted
Video file.
All access items in the acess control information of video server to be processed are counted, with determination it is multiple to
Accessed number f of each video file to be deleted in predetermined amount of time T in the video file of deletionk.Calculate it is multiple to
Accessed number f of each video file to be deleted in predetermined amount of time T in the video file of deletionkAverage value favg。
Size record in the document size information of video server to be processed is counted, with the multiple videos to be deleted of determination
The document size of each video file to be deleted in file.
Calculate the average value h of the document size of each video file to be deleted in multiple video files to be deletedavg。
Calculate the flat of accessed number of each video file to be deleted in predetermined amount of time T in multiple video files to be deleted
Mean value favg。
Wherein, tk-liveFor the life span of k-th of video file to be deleted in multiple video files to be deleted, tsub
For the time span of sub- period;fkIt is k-th of video file to be deleted in multiple video files to be deleted in pre- timing
Between accessed number in section T, favgIt is each video file to be deleted in multiple video files to be deleted in the predetermined time
The average value of accessed number in section T;hk-sFor the video file to be deleted less than k-th of the document size in sorted lists
Adjacent video file to be deleted document size, hk-lIt is to be deleted greater than k-th for the document size in sorted lists
The document size of the adjacent video file to be deleted of video file, havgFor in multiple video files to be deleted each to
The average value of the document size of the video file of deletion.
For video file to be deleted each in multiple video files to be deleted be arranged life span include: by it is multiple to
The life span of each video file to be deleted is set as the time span of sub- period in the video file of deletion;Alternatively,
By the life span of video file to be deleted each in multiple video files to be deleted be set as 1 day, 2 days, 3 days, 5 days,
10 days or 20 days etc..
The video server to be processed of sending device 303 is each generation file letter in multiple video files to be deleted
Cease item, and by the file information item of each video file to be deleted form information aggregate, by information aggregate be sent to it is each to
The video server of test.Wherein video server to be processed is each generation file in multiple video files to be deleted
Item of information includes: to obtain the video server to be processed video text to be deleted for each of multiple video files to be deleted
The summary info of part, wherein summary info includes: file name, file class and recommended information;Based on file name, files classes
Not and recommended information is that each video file to be deleted generates the file information item.Wherein file name is video file or wait delete
The title of the video file removed.File class is the classification that video file or video file to be deleted are belonged to, for example, body
It educates, entertain or music etc..Recommended information is for introducing or describing in involved in video file or video file to be deleted
The information of appearance, for example, the recommended information of video file A includes: in XXX basketball course/basketball Cup/basketball warm-up match etc.,
The Basketball Match of 2 months A teams and B team on the 21st in 2019, both sides starting player be respectively ..., result of the match is ..., wherein often
The scoring of a sportsman is ..., and the other contents for needing to introduce.
It is that each video file to be deleted generates the file information item packet based on file name, file class and recommended information
It includes: using file name, file class and the recommended information of each video file to be deleted as three information subitems, and
The file information item is constructed by three information subitems.The file information item of each video file to be deleted is formed into information aggregate
It include: to merge the file information item of each video file to be deleted in single set to form information aggregate.
The each video server to be tested of determining device 304 from obtain in received information aggregate it is each to be deleted
The file information item of video file determines each video file to be deleted and multiple videos to be tested based on the file information item
The content degree of association of each video server to be tested in server.
Each video server to be tested from obtain each video file to be deleted in received information aggregate
It further include the file information item of each video server to be tested to each video file to be deleted after the file information item
It is parsed with file name, file class and the content information of each video file to be deleted of determination.
It is determined based on the file information item each in each video file to be deleted and multiple video servers to be tested
Before the content degree of association of video server to be tested further include: each video server to be tested obtains respective service
Device information, and server info is parsed with the respective subject categories of determination and subject content.Wherein subject categories are view
At least one pre-set classification of frequency server or video server to be tested is using video server or to be measured
It is pre-set for depositing for video server or video server to be tested when the video server of examination stores video file
Store up the video file of at least one classification;In general, being arranged by the controller or control system of internet inner region;For example,
The subject categories of video server or video server to be tested are sport and amusement.
Involved in all video files that subject content is stored by video server or video server to be tested
The information aggregate of respective subject content, subject content information includes multiple theme items, wherein each theme item includes: subject description
Item and quantitative proportion.For example, theme item are as follows: on May 5,1 day to 2019 January in 2019 XXX basketball course match video,
2.5%.Wherein subject description item is the profile of the video file of identical theme, and quantitative proportion is the view of identical theme
The ratio of the quantity for all video files that the quantity and video server or video server to be tested of frequency file are stored.
It is determined based on the file information item each in each video file to be deleted and multiple video servers to be tested
The content degree of association of video server to be tested include: calculate the file class of each video file to be deleted with each to
The matching degree of the subject categories of the video server of test is using as categorical match degree.Calculate each video file to be deleted
The matching degree of the subject categories of file class and each video server to be tested as categorical match degree to comprise determining that often
At least one classification in the subject categories of the file class of a video file to be deleted and each video server to be tested
In each classification the meaning of a word degree of association.When in the subject categories of video server to be tested including a classification, by the meaning of a word
The degree of association is as the file class of each video file to be deleted and the subject categories of each video server to be tested
Categorical match degree.When in the subject categories of video server to be tested including multiple classifications, by file class and each class
The average value of other meaning of a word degree of association takes as the file class of each video file to be deleted and each video to be tested
The categorical match degree of the subject categories of business device.
Calculate the content information of each video file to be deleted and the subject content of each video server to be tested
Matching degree using as content matching degree.Calculate the content information and each video to be tested of each video file to be deleted
The matching degree of subject description item in each theme item of the subject content of server, by the maximum subject description of matching degree
Quantitative proportion (quantitative proportion in theme item where the maximum subject description item of matching degree) corresponding to is as each
The content matching degree of the subject content of the content information of video file to be deleted and each video server to be tested.
Each video file to be deleted and multiple videos to be tested are determined based on categorical match degree and content matching degree
The content degree of association of each video server to be tested includes: that each video file to be deleted is multiple to be measured in server
In the video server of examination the sum of the categorical match degree of each video server to be tested and content matching degree as it is each to
The content degree of association of each video server to be tested in the video file of deletion and multiple video servers to be tested.
Each video server to be tested from obtain each video file to be deleted in received information aggregate
It further include the file information item of each video server to be tested to each video file to be deleted after the file information item
It is parsed with the file class of each video file to be deleted of determination.
It is determined based on the file information item each in each video file to be deleted and multiple video servers to be tested
Before the content degree of association of video server to be tested further include: each video server to be tested obtains respective service
Device information, and server info is parsed with the respective subject categories of determination;Wherein subject categories be video server or
The pre-set classification of video server to be tested is stored using video server or video server to be tested
When video file, for video server or the pre-set video text for storing a classification of video server to be tested
Part;In general, being arranged by the controller or control system of internet inner region;For example, video server or view to be tested
The subject categories of frequency server are sport and amusement.
It is determined based on the file information item each in each video file to be deleted and multiple video servers to be tested
The content degree of association of video server to be tested include: calculate the file class of each video file to be deleted with each to
The matching degree of the subject categories of the video server of test is using as the content degree of association.Calculate each video file to be deleted
The matching degree of the subject categories of file class and each video server to be tested as the content degree of association to comprise determining that often
The meaning of a word degree of association of the subject categories of the file class of a video file to be deleted and each video server to be tested, will
The meaning of a word degree of association is as each video to be tested in each video file to be deleted and multiple video servers to be tested
The content degree of association of server.
The degree of association of the meaning of a word degree of association between pre-set two words, in order to determine two words, for example, file class
When with the meaning of a word degrees of association of subject categories, by two words (file class and subject categories) as input the meaning of a word degree of association
With inquiry is carried out in library it can obtain the meaning of a word degrees of association of two words (file class and subject categories), i.e. the meaning of a word degree of association
Matching library includes multiple matchings pair, for example, (word A, word B, the degree of association).When, when word A is equal to word B, the meaning of a word degree of association
It is 100%, when word A and word B is antonym, the meaning of a word degree of association is 0%.
Life span phase of the processing unit 305 when video file to be deleted specific in multiple video files to be deleted
Man Shi determines the spy based on the content degree of association of specific video file and each video server to be tested to be deleted
Fixed video file to be deleted whether there is target video server, if it does not exist, then by described specific to be deleted
Video file is deleted.
When the life span of video file to be deleted specific in multiple video files to be deleted is expired, based on spy
The content degree of association of fixed video file to be deleted and each video server to be tested determines described specific to be deleted
Video file whether there is target video server, if it does not exist, then the specific video file to be deleted is deleted
It removes.Since the life span of each video file to be deleted in multiple video files to be deleted may be identical or different, because
This, the life span of each video file to be deleted may also be identical or different at the time of expiring.
Institute is determined based on the content degree of association of specific video file and each video server to be tested to be deleted
It states specific video file to be deleted and comprises determining that specific video file to be deleted with the presence or absence of target video server
Maximum value with the content degree of association of each video server to be tested, that is, determine the maximum content degree of association.In determination
Whether the maximum value or the maximum content degree of association held in the degree of association are less than degree of association threshold value, if it is less, specifically wait delete
Target video server is not present in the video file removed, then deletes the specific video file to be deleted.If content
Maximum value or the maximum content degree of association in the degree of association are greater than or equal to degree of association threshold value, then by the maximum in the content degree of association
Video server to be tested corresponding to value or the maximum content degree of association is determined as target video server, will be described specific
Video file to be deleted be moved in the target video server.
Claims (10)
1. the method that the video file in a kind of pair of internet video server is cleared up, which comprises
The current status information for determining in internet each video server in all video servers in target area, to every
The current status information of a video server is parsed with the residual storage capacity of each video server of determination, total storage
Capacity, acess control information and document size information;
Based on residual storage capacity, total memory capacity, acess control information and document size information from multiple video servers
Select video server to be processed, will in all video servers in the target area except video server to be processed it
Outer each video server is determined as video server to be tested, and what is stored from video server to be processed is all
Multiple video files to be deleted are selected in video file, and for each video file to be deleted, life span is set;
Video server to be processed be multiple video files to be deleted in each generation the file information item, and will each to
The file information item of the video file of deletion forms information aggregate, and information aggregate is sent to each Video service to be tested
Device;
Each video server to be tested from the file of each video file to be deleted is obtained in received information aggregate
Item of information, based on the file information item determine in each video file to be deleted and multiple video servers to be tested each to
The content degree of association of the video server of test;
When the life span of video file to be deleted specific in multiple video files to be deleted is expired, based on specific
The content degree of association of video file and each video server to be tested to be deleted determines the specific view to be deleted
Frequency file whether there is target video server, if it does not exist, then the specific video file to be deleted is deleted.
2. according to the method described in claim 1,
Based on residual storage capacity, total memory capacity, acess control information and document size information from multiple video servers
The video server to be processed is selected to include:
Multiple video servers are determined based on residual storage capacity, total memory capacity, acess control information and document size information
In each video server fragmentation index, the maximum video server of fragmentation index is selected as video to be processed
Server.
3. according to the method described in claim 2, being selected from all video files stored in video server to be processed
Selecting multiple video files to be deleted includes:
Determine the deletion coefficient of each video file in all video files stored in video server to be processed:
It is selected from all video files stored in video server to be processed based on deletion coefficient multiple to be deleted
Video file.
4. according to the method described in claim 3, being stored from video server to be processed based on deletion coefficient all
Multiple video files to be deleted are selected to include: in video file
Multiple views of the coefficient less than coefficient threshold will be deleted in all video files stored in video server to be processed
Frequency file is selected as multiple video files to be deleted.
5. method according to claim 4 or 5 is each video file to be deleted in multiple video files to be deleted
Life span, which is arranged, includes:
By the life span of video file to be deleted each in multiple video files to be deleted be set as the sub- period when
Between length.
6. the system that the video file in a kind of pair of internet video server is cleared up, the system comprises:
Resolver determines in internet the current state of each video server in all video servers in target area
Information is parsed the current status information of each video server and is held with the remaining storage of each video server of determination
Amount, total memory capacity, acess control information and document size information;
Selection device is based on residual storage capacity, total memory capacity, acess control information and document size information from multiple videos
Video server to be processed is selected in server, and video to be processed will be removed in all video servers in the target area
Each video server except server is determined as video server to be tested, is deposited from video server to be processed
Multiple video files to be deleted are selected in all video files of storage, when existence is set for each video file to be deleted
Between;
Sending device, video server to be processed are each generation the file information item in multiple video files to be deleted,
And the file information item of each video file to be deleted is formed into information aggregate, information aggregate is sent to each to be tested
Video server;
Determining device, each video server to be tested from each video text to be deleted is obtained in received information aggregate
The file information item of part determines each video file to be deleted and multiple video servers to be tested based on the file information item
In each video server to be tested the content degree of association;
Processing unit, when the life span of video file to be deleted specific in multiple video files to be deleted is expired,
Based on specific video file and each video server to be tested to be deleted the content degree of association determine it is described specific
Video file to be deleted whether there is target video server, if it does not exist, then by the specific video to be deleted
File is deleted.
7. according to the method described in claim 6,
Based on residual storage capacity, total memory capacity, acess control information and document size information from multiple video servers
The video server to be processed is selected to include:
Multiple video servers are determined based on residual storage capacity, total memory capacity, acess control information and document size information
In each video server fragmentation index, the maximum video server of fragmentation index is selected as video to be processed
Server.
8. system according to claim 7 is selected from all video files stored in video server to be processed
Selecting multiple video files to be deleted includes:
Determine the deletion coefficient of each video file in all video files stored in video server to be processed:
It is selected from all video files stored in video server to be processed based on deletion coefficient multiple to be deleted
Video file.
9. system according to claim 8 is stored from video server to be processed all based on deletion coefficient
Multiple video files to be deleted are selected to include: in video file
Multiple views of the coefficient less than coefficient threshold will be deleted in all video files stored in video server to be processed
Frequency file is selected as multiple video files to be deleted.
10. system according to claim 9 sets for each video file to be deleted in multiple video files to be deleted
Setting life span includes:
By the life span of video file to be deleted each in multiple video files to be deleted be set as the sub- period when
Between length.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910786874.7A CN110381335A (en) | 2019-08-24 | 2019-08-24 | The method and system that video file in internet video server is cleared up |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910786874.7A CN110381335A (en) | 2019-08-24 | 2019-08-24 | The method and system that video file in internet video server is cleared up |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110381335A true CN110381335A (en) | 2019-10-25 |
Family
ID=68260556
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910786874.7A Pending CN110381335A (en) | 2019-08-24 | 2019-08-24 | The method and system that video file in internet video server is cleared up |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110381335A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111372027A (en) * | 2020-03-18 | 2020-07-03 | 浙江大华技术股份有限公司 | Video file storage method and device, storage medium and electronic device |
CN114157880A (en) * | 2022-02-08 | 2022-03-08 | 飞狐信息技术(天津)有限公司 | Video deleting method and device, storage medium and electronic equipment |
-
2019
- 2019-08-24 CN CN201910786874.7A patent/CN110381335A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111372027A (en) * | 2020-03-18 | 2020-07-03 | 浙江大华技术股份有限公司 | Video file storage method and device, storage medium and electronic device |
CN111372027B (en) * | 2020-03-18 | 2023-07-14 | 浙江大华技术股份有限公司 | Video file storage method and device, storage medium and electronic device |
CN114157880A (en) * | 2022-02-08 | 2022-03-08 | 飞狐信息技术(天津)有限公司 | Video deleting method and device, storage medium and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Perugini et al. | Recommender systems research: A connection-centric survey | |
US8260823B2 (en) | Dissemination, acquisition, discovery and use of people-oriented folksonomies | |
US9225676B1 (en) | Social network exploration systems and methods | |
US8667009B2 (en) | Systems and methods for utilizing and searching social network information | |
TWI416344B (en) | Computer-implemented method and computer-readable medium for providing access to content | |
US20020178161A1 (en) | Optimization of system performance based on communication relationship | |
US20040172415A1 (en) | Methods, systems, and software for automated growth of intelligent on-line communities | |
KR20110069067A (en) | Method, system, and apparatus for arranging content search results | |
CN101140588A (en) | Method and apparatus for ordering incidence relation search result | |
US9442986B2 (en) | Ranking of heterogeneous information objects | |
US10311072B2 (en) | System and method for metadata transfer among search entities | |
US20140006523A1 (en) | System and Method to Enable Communication Group Identification | |
KR102153806B1 (en) | Data processing method and device | |
US10380121B2 (en) | System and method for query temporality analysis | |
CN110381335A (en) | The method and system that video file in internet video server is cleared up | |
CN112822051B (en) | Service acceleration method based on service perception | |
Pacuk et al. | RecSys Challenge 2016: Job recommendations based on preselection of offers and gradient boosting | |
CN110275943A (en) | Article method for pushing and device | |
JP3799907B2 (en) | Document management method and apparatus | |
JP2006202223A (en) | User terminal and program | |
US20170041277A1 (en) | Method for distributing a message | |
CN108345699A (en) | Obtain the method, apparatus and storage medium of multi-medium data | |
Mustafa et al. | Recommendation system based on item and user similarity on restaurants directory online | |
CN110781384B (en) | Priority-based content recommendation method, device, equipment and medium | |
US20190317937A1 (en) | System and method for metadata transfer among search entities |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |