CN106603702A - Method and device for downloading resource data - Google Patents
Method and device for downloading resource data Download PDFInfo
- Publication number
- CN106603702A CN106603702A CN201611249249.1A CN201611249249A CN106603702A CN 106603702 A CN106603702 A CN 106603702A CN 201611249249 A CN201611249249 A CN 201611249249A CN 106603702 A CN106603702 A CN 106603702A
- Authority
- CN
- China
- Prior art keywords
- moment
- target
- acquisition
- push
- resource data
- 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
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1004—Server selection for load balancing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
- H04L67/30—Profiles
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Embodiments of the invention provide a method and a device for downloading resource data. The method comprises the following steps: acquiring a target configuration file from a cloud server, wherein the target configuration file comprises a peak period of time of a CDN (content distribution network) server; determining a target acquisition and push task time not belonging to the peak period of time of the CDN server by a computational node; and after the target acquisition and push task time is reached, acquiring a push task list, and acquiring corresponding resource data from the CDN server according to the push task list. Because the computational node downloads the resource data from the CDN server in a non-peak period of time of the CDN server, the use of the bandwidth resource in the peak period of time of the CDN server is avoided, then the appearance of a bandwidth peak value in the peak period of time of the CDN server is avoided, and then reduction of the speed of each computational node downloading resources from the CDN server can be avoided and network paralysis caused by the speed reduction is also avoided.
Description
Technical field
The invention relates to networking technology area, more particularly relates to a kind of resource data method for down loading and device.
Background technology
P2P (peer-to-peer) technologies claim Peer-To-Peer technology, are a kind of by different computers (based on being also called
Operator node) between, without the direct exchange resource data of trunking or the technology of service.Calculate node in peer-to-peer network
With client and server end double characteristic, user that can simultaneously as service and supplier.P2P technologies reasonably can make
With the idling-resource of calculate node, user while media program is watched, also using the idle money of itself calculate node
Source provides service for other users.If the resource that needs of user each calculate node in P2P networks is not present, can be from
Corresponding resource is downloaded in CDN (ContentDelivery Network, content distributing network) server.
When there are multiple calculate nodes while when downloading resource to CDN server, there are excessive data in network, occur
The bandwidth peak of CDN server, can cause the speed that each calculate node downloads resource from CDN server to decline, or even can lead
Cause network paralysis.
The content of the invention
In view of this, the invention provides a kind of resource data method for down loading and device, multiple in prior art to overcome
When calculate node simultaneously downloads resource to CDN server, the problem of the bandwidth peak for causing CDN server occur.
For achieving the above object, the present invention provides following technical scheme:
A kind of resource data method for down loading, including:
Target configuration file is obtained from cloud server, the target configuration file includes the rush hour of CDN server
Section;
It is determined that be not belonging to the CDN server rush hour section Target Acquisition push the task moment;
When the Target Acquisition push task moment is reached, obtain and push task list, the push task list bag
Include the store path information in the CDN server of each resource data;
Corresponding resource data is obtained from the CDN server according to the push task list.
Wherein, the target configuration file also includes obtaining the target time interval for pushing task list, and the determination is not
Belong to the CDN server rush hour section Target Acquisition push the task moment include:
When the section in rush hour of the CDN server is not belonging at current time, the current time is defined as described
Target Acquisition pushes the task moment;
When the section in rush hour of the CDN server is belonged at the current time, according to the current time with it is described
Target time interval, acquisition be not belonging to the CDN server rush hour section the Target Acquisition push the task moment, and
Storage.
Wherein, it is described determine be not belonging to the CDN server rush hour section Target Acquisition push the task moment bag
Include:
Whether the acquisition that judgement is prestored pushes the task moment more than current time;
When the acquisition push task moment is less than or equal to the current time, and the current time be not belonging to it is described
During the section in rush hour of CDN server, the current time is defined as the Target Acquisition and is pushed the task moment.
Preferably, it is described determine be not belonging to the CDN server rush hour section Target Acquisition push the task moment
Also include:
When the current time is more than at the acquisition push task moment, the acquisition for prestoring is pushed into the task moment
It is defined as the Target Acquisition and pushes the task moment.
Wherein, the target configuration file also includes obtaining the target time interval for pushing task list, the number of resources
Also include according to method for down loading:
In the push task list once obtained before judging, whether each resource data is downloaded and is finished;
Finish and when the front push task list for once obtaining is effective when not downloading, record from the CDN server according to
According to the front push task list for once obtaining, what acquisition finished corresponding resource data completes the moment;
Moment and the target time interval are completed according to described, it is determined that when being not belonging to the peak of the CDN server
Between the acquisition of section push the task moment, and store.
Wherein, it is described to include from cloud server acquisition target configuration file:
Determine the target terminal attribute information of itself;
From the corresponding configuration file of each terminal attributive information of cloud server storage, obtain and belong to the target terminal
The property corresponding target configuration file of information.
Wherein, it is described determine be not belonging to the CDN server rush hour section Target Acquisition push the task moment bag
Include:
Will in idle condition, and be not belonging to the CDN server rush hour section moment, be defined as the target
Obtain the push task moment.
A kind of resource data download apparatus, including:
First acquisition module, for obtaining target configuration file from cloud server, the target configuration file includes CDN
The section in rush hour of server;
First determining module, for determine be not belonging to the CDN server rush hour section Target Acquisition push appoint
The business moment;
Second acquisition module, for when the Target Acquisition push task moment is reached, obtaining and pushing task list, institute
Stating push task list includes the store path information in the CDN server of each resource data;
3rd acquisition module, for corresponding resource is obtained from the CDN server according to the push task list
Data.
Wherein, the target configuration file also includes obtaining the target time interval for pushing task list, and described first is true
Cover half block includes:
First determining unit, for being not belonging at current time during the section in rush hour of the CDN server, works as described
The front moment is defined as the Target Acquisition and pushes the task moment;
Acquiring unit, for belonging at the current time during section in rush hour of the CDN server, works as according to described
Front moment and the target time interval, acquisition be not belonging to the CDN server rush hour section the Target Acquisition push away
The task moment is sent, and is stored.
Wherein, first determining module includes:
Whether judging unit, the acquisition for judging to prestore push the task moment more than current time;
Second determining unit, for when it is described acquisition the push task moment be less than or equal to the current time, and it is described work as
When the front moment is not belonging to the section in rush hour of the CDN server, the current time is defined as the Target Acquisition and is pushed
The task moment.
Wherein, first determining module also includes:
3rd determining unit, for when the current time is more than at the acquisition push task moment, prestoring
Acquisition push the task moment and be defined as the Target Acquisition and push the task moment.
Preferably, the target configuration file also includes obtaining the target time interval for pushing task list, the resource
Data download apparatus also includes:
Judge module, finishes for whether each resource data in the push task list that once obtains before judging is downloaded;
Logging modle, for finishing and when the front push task list for once obtaining is effective when not downloading, records from described
According to the front push task list for once obtaining in CDN server, what acquisition finished corresponding resource data completes the moment;
Second determining module, for completing moment and the target time interval according to described, it is determined that being not belonging to described
CDN server rush hour section the acquisition push the task moment, and store.
Understand via above-mentioned technical scheme, compared with prior art, embodiments provide a kind of resource data
In method for down loading, target configuration file is obtained from cloud server, when the target configuration file includes the peak of CDN server
Between section;Calculate node determine be not belonging to the CDN server rush hour section Target Acquisition push the task moment;Reaching
When the Target Acquisition pushes the task moment, obtain and push task list, according to the push task list from the CDN service
Corresponding resource data is obtained in device.Due to calculate node be CDN server off-peak hours section from CDN server download
Resource data, therefore the bandwidth resources using CDN server in section in rush hour are avoided, so as to avoid CDN server on peak
There is the situation of bandwidth peak in time period, so as to being not under speed that each calculate node downloads resource from CDN server
The situation of network paralysis drops and causes.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
Accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this
Inventive embodiment, for those of ordinary skill in the art, on the premise of not paying creative work, can be with basis
The accompanying drawing of offer obtains other accompanying drawings.
Structural representations of the Fig. 1 for a kind of resource data download system of the embodiment of the present application offer;
A kind of schematic flow sheet of resource data method for down loading that Fig. 2 is provided for the embodiment of the present application;
The height for being not belonging to the CDN server is determined in the resource data method for down loading that Fig. 3 is provided for the embodiment of the present application
The Target Acquisition of peak time section pushes the schematic flow sheet of the implementation method at task moment;
The height for being not belonging to the CDN server is determined in the resource data method for down loading that Fig. 4 is provided for the embodiment of the present application
The Target Acquisition of peak time section pushes the schematic flow sheet of the implementation method at task moment;
A kind of structural representation of resource data download apparatus that Fig. 5 is provided for the embodiment of the present application;
The bandwidth wandering of CDN server during the resource data method for down loading that Fig. 6 is provided for unused the embodiment of the present application is shown
It is intended to;
Fig. 7 for provided using the embodiment of the present application resource data method for down loading when CDN server bandwidth wandering illustrate
Figure.
Specific 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 carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
A kind of resource data method for down loading that the embodiment of the present application is provided can apply to resource data download system, such as scheme
Shown in 1, it is a kind of structural representation of resource data download system of the embodiment of the present application offer, the resource data downloads system
System includes:Push server 10, multiple calculate nodes 11, cloud server 12 and CDN server 13.
Calculate node 11 can be terminal, such as smart mobile phone, panel computer, computer etc..
Multiple calculate nodes 11 constitute a P2P networks.In same P2P networks, the resource data of each calculate node can be total to
Enjoy, when in same P2P networks, each calculate node does not include a certain resource data A, push server 10 will be by the resource
In task list is pushed, calculate node 11 can obtain push task list from push server 10 to data A record, and from
Corresponding resource data is obtained in CDN server.
It is understood that user watches the moment of video using calculate node, it is possible to phase is obtained from CDN server
At the moment of the resource data answered, mostly concentrate the moment after work, and obtain through multiple statistical result, CDN server
It is [12 that bandwidth reaches the section in rush hour of bandwidth peak:00-14:00] and [19:30-23:00] (the embodiment of the present application is provided
But the not limited to this time period).So each calculate node is when resource data is downloaded from CDN server, most in the embodiment of the present application
Amount avoids above-mentioned section in rush hour.
With reference to Fig. 1, a kind of resource data method for down loading that the embodiment of the present application is provided is illustrated, such as Fig. 2 institutes
Show, a kind of schematic flow sheet of the resource data method for down loading provided for the embodiment of the present application, the method include:
Step S201:Target configuration file is obtained from cloud server, the target configuration file includes CDN server
Rush hour section.
For example, section in rush hour is [12:00-14:00] and [19:30-23:00].
Step S202:It is determined that be not belonging to the CDN server rush hour section Target Acquisition push the task moment.
The resource data method for down loading that the embodiment of the present application is provided can download application program for resource data, each to calculate section
Point can be installed the resource data and download application program.After calculate node opens resource data downloads application program, section is calculated
Point can determine one be not belonging to CDN server rush hour section Target Acquisition push the task moment.
Still with section in rush hour as [12:00-14:00] and [19:30-23:00] as a example by, then Target Acquisition pushes task
Moment can be [23:01-11:59]、[14:01-19:29] any instant in.
It is understood that calculate node is likely to be at busy state, for example, video etc. is played, it is preferred, therefore, that step
Rapid S202 is specially:Will in idle condition, and be not belonging to the CDN server rush hour section moment, be defined as institute
State Target Acquisition and push the task moment.
Idle condition may refer to the CPU (Central Processing Unit, central processing unit) of calculate node and take
Rate is less than or equal to predetermined threshold value.
Step S203:When the Target Acquisition push task moment is reached, obtain and push task list, the push is appointed
Business list includes the store path information in the CDN server of each resource data.
Step S204:Corresponding resource data is obtained from the CDN server according to the push task list.
In the resource data method for down loading embodiment that the embodiment of the present application is provided, target configuration text is obtained from cloud server
Part, the target configuration file include the section in rush hour of CDN server;Calculate node determination is not belonging to the CDN server
Rush hour section Target Acquisition push the task moment;When the Target Acquisition push task moment is reached, obtain and push
Task list, obtains corresponding resource data from the CDN server according to the push task list.Due to calculate node
It is to download resource data from CDN server in the off-peak hours section of CDN server, therefore avoids using CDN server in height
The bandwidth resources of peak time section, so as to avoid CDN server rush hour section there is the situation of bandwidth peak., so as to will not
There is each calculate node the speed decline of resource to be downloaded from CDN server and causes the situation of network paralysis.
In order to avoid all of calculate node all CDN server off-peak hours section certain time period, from CDN take
Resource data is downloaded in business device, causes new section in rush hour occur;Acquisition is additionally provided with calculate node and pushes task list
Time interval;Or in configuration file, it is provided with time interval.
Preferably, the memory space of the terminal of different attribute information (such as Configuration Type, model etc.), from CDN service
The speed that resource data is downloaded in device is different, therefore the attribute information of each terminal that can be stored with cloud server is corresponding
Configuration file, then obtaining target configuration file from cloud server includes:Determine the target terminal attribute information of itself;From high in the clouds
In the corresponding configuration file of each terminal attributive information of server storage, mesh corresponding with the target terminal attribute information is obtained
Mark configuration file.
Preferably, the time interval of the faster terminal (i.e. calculate node) of the speed of download resource data is less.
In the embodiment of the present application, the time interval that target configuration file includes is referred to as into target time interval.
When calculate node is opened resource data for the first time and downloads application program, the resource data that the embodiment of the present application is provided
In method for down loading determine be not belonging to the CDN server rush hour section Target Acquisition push the task moment implementation method
As shown in figure 3, the method includes:
Step S301:When the section in rush hour of the CDN server is not belonging at current time, will be true at the current time
It is set to the Target Acquisition and pushes the task moment.
Current time is calculate node and opens the moment that resource data downloads application program.With section in rush hour it is still
[12:00-14:00] and [19:30-23:00], as a example by, if current time was 10 o'clock sharps, current time can think target
Obtain the push task moment.
Step S302:When the section in rush hour of the CDN server is belonged at the current time, according to it is described current when
Carve and the target time interval, acquisition be not belonging to the CDN server rush hour section the Target Acquisition push and appoint
The business moment, and store.
If current time is 19:When 40, due to belonging to section in rush hour, thus need according to the current time with it is described
Target time interval, acquisition be not belonging to the CDN server rush hour section the Target Acquisition push the task moment.
Specifically, L=moment, target time intervals current time+N*, wherein N are equal to positive integer.Assume between the object time
Be divided into 30 minutes, then when N is equal to 1, moment L=19:40+30 minute=20:10, when still belonging to the peak of CDN server
Between section;As N=2, moment L=19:40+2*30 minute=20:40, still belong to the section in rush hour of CDN server;Always
Value, until during N=7, moment L=19:40+7*30 minute=23:10, due to 23:10 be not belonging to CDN server peak when
Between section, therefore Target Acquisition push the task moment be 23:10.
When the secondary unlatching resource datas of calculate node K (K is the positive integer more than or equal to 2) download application program, this Shen
Please embodiment provide resource data method for down loading in determine be not belonging to the CDN server rush hour section Target Acquisition
The implementation method at push task moment is as shown in figure 4, the method includes:
Step S401:Whether the acquisition that judgement is prestored pushes the task moment more than current time, if it is not, entering step
S402, if entering step S403.
The acquisition push task moment can be set by way of Fig. 3 in the embodiment of the present application, it is also possible to serviced beyond the clouds
Arrange in the configuration file of device storage and obtain the push task moment.
Current time described in step S401 is the moment that calculate node opens that resource data downloads application program.
The task moment is pushed as 23 with the acquisition for prestoring still:As a example by 10, it is assumed that calculate node is opened under resource data
The moment for carrying application program is 23:20.Obviously the acquisition for prestoring pushes the task moment less than current time, i.e., for current
For moment, 23:10 has been a past moment, and calculate node can not possibly return to 23:10.
Step S402:The current time is less than or equal to when the acquisition push task moment, and the current time is not
When belonging to the section in rush hour of the CDN server, the current time is defined as the Target Acquisition and is pushed the task moment.
As current time is 23:20 be not belonging to the CDN server section in rush hour when, therefore can be when will be current
It is defined as Target Acquisition quarter and pushes the task moment.
Step S403:When the current time is more than at the acquisition push task moment, the acquisition for prestoring is pushed away
Send the task moment to be defined as the Target Acquisition and push the task moment.
The task moment is pushed as 23 with the acquisition for prestoring still:As a example by 10, it is assumed that calculate node is opened under resource data
The moment for carrying application program is 21:20, then into waiting state, until waiting until 23:10, if the resource data of calculate node is downloaded
Application program is still opened, then obtain and push task list.
When each resource data is not downloaded and finished in the push task list once obtained before assuming calculate node, section is calculated
The resource data of point is downloaded application program and is turned off, or enters the section in rush hour of CDN server, causes number of resources
Interrupt according to downloading.Application program is downloaded when the resource data of calculate node to be unlocked again, or is again introduced into CDN server
During off-peak hours section, if the front push task list for once obtaining is still effectively, may proceed to not download the resource for finishing
Data.
Assume that section in rush hour is [12:00-14:00] and [19:30-23:, and the acquisition that prestores is pushed and appointed 00]
The business moment is 23:10, the previous moment is 19:00, then resource data is downloaded to 19 in calculate node:When 30, due to entering
The section in rush hour of CDN server, stops downloading resource data, when 23:When 10, the resource data of the calculate node downloads application
Program is unlocked, then calculate node can ignore 23:10 this acquisition push the task moment, and the resource for finishing is not downloaded in continuation
Data.
Specific method includes:In the push task list once obtained before judging, whether each resource data is downloaded and is finished;
Finish and when the front push task list for once obtaining is effective when not downloading, record from the CDN server according to it is front once
The push task list of acquisition, what acquisition finished corresponding resource data complete the moment;Moment and described is completed according to described
Target time interval, it is determined that be not belonging to the CDN server rush hour section the acquisition push the task moment, and deposit
Storage.
The embodiment of the present application additionally provides a kind of resource data download apparatus corresponding with resource data method for down loading, below
Resource data download apparatus is introduced, module that resource data download apparatus is included, the detailed description of unit can be joined
See the description of corresponding steps in resource data method for down loading, repeat no more here.
Fig. 5 is referred to, a kind of structural representation of the resource data download apparatus provided for the embodiment of the present application, the resource
Data download apparatus includes:
First acquisition module 51, for obtaining target configuration file from cloud server, the target configuration file includes
The section in rush hour of CDN server.
First determining module 52, for determine be not belonging to the CDN server rush hour section Target Acquisition push
The task moment.
Second acquisition module 53, for when the Target Acquisition push task moment is reached, obtaining and pushing task list,
The task list that pushes includes the store path information in the CDN server of each resource data.
3rd acquisition module 54, for corresponding money is obtained from the CDN server according to the push task list
Source data.
Optionally, target configuration file also includes obtaining the target time interval for pushing task list, and described first determines
Module includes:
First determining unit, for being not belonging at current time during the section in rush hour of the CDN server, works as described
The front moment is defined as the Target Acquisition and pushes the task moment;
Acquiring unit, for belonging at the current time during section in rush hour of the CDN server, works as according to described
Front moment and the target time interval, acquisition be not belonging to the CDN server rush hour section the Target Acquisition push away
The task moment is sent, and is stored.
Optionally, first determining module includes:
Whether judging unit, the acquisition for judging to prestore push the task moment more than current time;
Second determining unit, for when it is described acquisition the push task moment be less than or equal to the current time, and it is described work as
When the front moment is not belonging to the section in rush hour of the CDN server, the current time is defined as the Target Acquisition and is pushed
The task moment.
Optionally, first determining module also includes:
3rd determining unit, for when the current time is more than at the acquisition push task moment, prestoring
Acquisition push the task moment and be defined as the Target Acquisition and push the task moment.
Optionally, the target configuration file also includes obtaining the target time interval for pushing task list, the resource
Data download apparatus also includes:
Judge module, finishes for whether each resource data in the push task list that once obtains before judging is downloaded;
Logging modle, for finishing and when the front push task list for once obtaining is effective when not downloading, records from described
According to the front push task list for once obtaining in CDN server, what acquisition finished corresponding resource data completes the moment;
Second determining module, for completing moment and the target time interval according to described, it is determined that being not belonging to described
CDN server rush hour section the acquisition push the task moment, and store.
Optionally, the first acquisition module 51 includes:
4th determining unit, for determining the target terminal attribute information of itself;
Configuration file unit is obtained, for the corresponding configuration file of each terminal attributive information stored from cloud server
In, obtain target configuration file corresponding with the target terminal attribute information.
Optionally, the first determining module 52 includes:
5th determining unit, for will in idle condition, and be not belonging to the CDN server rush hour section when
Carve, be defined as the Target Acquisition and push the task moment.
In order to those skilled in the art more understand the beneficial effect brought by the embodiment of the present application, applicant has counted not
During the resource data method for down loading provided using the embodiment of the present application, the bandwidth wandering of CDN server is as shown in fig. 6, and use
After the resource data method for down loading that the embodiment of the present application is provided, the bandwidth wandering of CDN server.As shown in Figure 7.
In Fig. 6, the use that the bandwidth of CDN server is browsed is concentrated mainly on [12:00-14:00] and [19:30-23:
, and bandwidth traffic is all higher 00].
In Fig. 7, the use that the bandwidth of CDN server is browsed is concentrated mainly on [10:00-22:30], and entirety bandwidth it is clear
It is low in looking at all than Fig. 6.
Finally, in addition it is also necessary to explanation, herein, such as first and second or the like relational terms be used merely to by
One entity or operation are made a distinction with another entity or operation, and are not necessarily required or implied these entities or operation
Between there is any this actual relation or order.And, term " including ", "comprising" or its any other variant are anticipated
Covering including for nonexcludability, so that a series of process, method, article or equipment including key elements not only includes that
A little key elements, but also including other key elements being not expressly set out, or also include for this process, method, article or
The intrinsic key element of equipment.In the absence of more restrictions, the key element for being limited by sentence "including a ...", does not arrange
Except also there is other identical element in including the process of the key element, method, article or equipment.
In this specification, each embodiment is described by the way of progressive, and what each embodiment was stressed is and other
The difference of embodiment, between each embodiment identical similar portion mutually referring to.
The foregoing description of the disclosed embodiments, enables professional and technical personnel in the field to realize or use the application.
Various modifications to these embodiments will be apparent for those skilled in the art, as defined herein
General Principle can be realized in the case of without departing from spirit herein or scope in other embodiments.Therefore, the application
The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one
The most wide scope for causing.
Claims (12)
1. a kind of resource data method for down loading, it is characterised in that include:
Target configuration file is obtained from cloud server, the target configuration file includes the section in rush hour of CDN server;
It is determined that be not belonging to the CDN server rush hour section Target Acquisition push the task moment;
When the Target Acquisition push task moment is reached, obtain and push task list, the push task list includes respectively
The store path information in the CDN server of resource data;
Corresponding resource data is obtained from the CDN server according to the push task list.
2. resource data method for down loading according to claim 1, it is characterised in that the target configuration file also includes obtaining
Push task list target time interval, the determination be not belonging to the CDN server rush hour section Target Acquisition
The push task moment includes:
When the section in rush hour of the CDN server is not belonging at current time, the current time is defined as into the target
Obtain the push task moment;
When the section in rush hour of the CDN server is belonged at the current time, according to the current time and the target
Time interval, acquisition be not belonging to the CDN server rush hour section the Target Acquisition push the task moment, and deposit
Storage.
3. resource data method for down loading according to claim 1, it is characterised in that the determination is not belonging to the CDN service
Device rush hour section Target Acquisition push the task moment include:
Whether the acquisition that judgement is prestored pushes the task moment more than current time;
The current time is less than or equal to when the acquisition push task moment, and the current time is not belonging to the CDN clothes
During the section in rush hour of business device, the current time is defined as the Target Acquisition and is pushed the task moment.
4. resource data method for down loading according to claim 3, it is characterised in that the determination is not belonging to the CDN service
Device rush hour section Target Acquisition push the task moment also include:
When the current time is more than at the acquisition push task moment, the acquisition for prestoring is pushed into the determination of task moment
The task moment is pushed for the Target Acquisition.
5. the resource data method for down loading according to claim 3 or 4, it is characterised in that the target configuration file also includes
The target time interval for pushing task list is obtained, the resource data method for down loading also includes:
In the push task list once obtained before judging, whether each resource data is downloaded and is finished;
Finish and when the front push task list for once obtaining is effective when not downloading, record from the CDN server according to front
The push task list for once obtaining, what acquisition finished corresponding resource data complete the moment;
Moment and the target time interval are completed according to described, it is determined that being not belonging to the section in rush hour of the CDN server
The acquisition push the task moment, and store.
6. according to the arbitrary resource data method for down loading of claim 1 to 5, it is characterised in that described to obtain from cloud server
Taking target configuration file includes:
Determine the target terminal attribute information of itself;
From the corresponding configuration file of each terminal attributive information of cloud server storage, obtain and believe with the target terminal attribute
Cease corresponding target configuration file.
7. according to the arbitrary resource data method for down loading of claim 1 to 5, it is characterised in that the determination is not belonging to described
CDN server rush hour section Target Acquisition push the task moment include:
Will in idle condition, and be not belonging to the CDN server rush hour section moment, be defined as the Target Acquisition
The push task moment.
8. a kind of resource data download apparatus, it is characterised in that include:
First acquisition module, for obtaining target configuration file from cloud server, the target configuration file includes CDN service
The section in rush hour of device;
First determining module, for determine be not belonging to the CDN server rush hour section Target Acquisition push task when
Carve;
Second acquisition module, it is for when the Target Acquisition push task moment is reached, obtaining and pushing task list, described to push away
Task list is sent to include the store path information in the CDN server of each resource data;
3rd acquisition module, for corresponding resource data is obtained from the CDN server according to the push task list.
9. resource data download apparatus according to claim 8, it is characterised in that the target configuration file also includes obtaining
The target time interval of task list is pushed, first determining module includes:
First determining unit, for being not belonging at current time during the section in rush hour of the CDN server, when will be described current
It is defined as the Target Acquisition quarter and pushes the task moment;
Acquiring unit, for belonging at the current time during section in rush hour of the CDN server, according to it is described current when
Carve and the target time interval, acquisition be not belonging to the CDN server rush hour section the Target Acquisition push and appoint
The business moment, and store.
10. resource data download apparatus according to claim 8, it is characterised in that first determining module includes:
Whether judging unit, the acquisition for judging to prestore push the task moment more than current time;
Second determining unit, for being less than or equal to the current time when the acquisition push task moment, and when described current
When quarter is not belonging to the section in rush hour of the CDN server, the current time is defined as the Target Acquisition and is pushed task
Moment.
11. resource data download apparatus according to claim 10, it is characterised in that first determining module also includes:
3rd determining unit, for when the current time is more than at the acquisition push task moment, by obtaining for prestoring
Taking the push task moment is defined as the Target Acquisition and pushes the task moment.
12. according to claim 10 or 11 resource data download apparatus, it is characterised in that the target configuration file is also wrapped
Include and obtain the target time interval for pushing task list, the resource data download apparatus also includes:
Judge module, finishes for whether each resource data in the push task list that once obtains before judging is downloaded;
Logging modle, for finishing and when the front push task list for once obtaining is effective when not downloading, records from the CDN and takes
According to the front push task list for once obtaining in business device, what acquisition finished corresponding resource data completes the moment;
Second determining module, for completing moment and the target time interval according to described, it is determined that being not belonging to the CDN clothes
Business device rush hour section the acquisition push the task moment, and store.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611249249.1A CN106603702A (en) | 2016-12-29 | 2016-12-29 | Method and device for downloading resource data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611249249.1A CN106603702A (en) | 2016-12-29 | 2016-12-29 | Method and device for downloading resource data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106603702A true CN106603702A (en) | 2017-04-26 |
Family
ID=58604075
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611249249.1A Pending CN106603702A (en) | 2016-12-29 | 2016-12-29 | Method and device for downloading resource data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106603702A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115002216A (en) * | 2022-04-27 | 2022-09-02 | 北京奇艺世纪科技有限公司 | Downloading method, downloading device, terminal equipment and readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101030873A (en) * | 2007-02-15 | 2007-09-05 | 深圳市迅雷网络技术有限公司 | Method and system for downloading data |
CN101141475A (en) * | 2007-10-15 | 2008-03-12 | 中兴通讯股份有限公司 | Wireless network data booking download system and method |
CN101222716A (en) * | 2008-01-23 | 2008-07-16 | 中国联合通信有限公司 | Method and system for timing downloading of mobile terminal |
CN101911636A (en) * | 2007-12-26 | 2010-12-08 | 阿尔卡特朗讯公司 | Predictive caching content distribution network |
CN105763616A (en) * | 2016-03-29 | 2016-07-13 | 广东欧珀移动通信有限公司 | Resource-downloading method and device |
-
2016
- 2016-12-29 CN CN201611249249.1A patent/CN106603702A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101030873A (en) * | 2007-02-15 | 2007-09-05 | 深圳市迅雷网络技术有限公司 | Method and system for downloading data |
CN101141475A (en) * | 2007-10-15 | 2008-03-12 | 中兴通讯股份有限公司 | Wireless network data booking download system and method |
CN101911636A (en) * | 2007-12-26 | 2010-12-08 | 阿尔卡特朗讯公司 | Predictive caching content distribution network |
CN101222716A (en) * | 2008-01-23 | 2008-07-16 | 中国联合通信有限公司 | Method and system for timing downloading of mobile terminal |
CN105763616A (en) * | 2016-03-29 | 2016-07-13 | 广东欧珀移动通信有限公司 | Resource-downloading method and device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115002216A (en) * | 2022-04-27 | 2022-09-02 | 北京奇艺世纪科技有限公司 | Downloading method, downloading device, terminal equipment and readable storage medium |
CN115002216B (en) * | 2022-04-27 | 2024-02-23 | 北京奇艺世纪科技有限公司 | Downloading method, downloading device, terminal equipment and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020001108A1 (en) | Block chain-based data processing method and device | |
CN105103506B (en) | For the method and system for the non-homogeneous bandwidth request allocation bandwidth in system for cloud computing | |
CN101442558B (en) | Method and system for providing index service for P2SP network | |
CN103873505B (en) | Method, system and the device uploaded offline to cloud storage service device | |
CN101771723A (en) | Data synchronization method | |
CN109491758A (en) | Docker mirror image distribution method, system, data gateway and computer readable storage medium | |
CN103744618B (en) | Realize the method and system of the shared storage of team | |
CN104811473B (en) | A kind of method, system and management system for creating virtual non-volatile storage medium | |
CN108667867A (en) | Date storage method and device | |
CN108196787A (en) | The quota management method and cluster storage system of cluster storage system | |
CN103095848B (en) | The cloud folder arrangement of To enterprises client and the method for information interaction | |
CN103605798A (en) | Method for directly operating file stored at cloud end | |
CN107888666A (en) | A kind of cross-region data-storage system and method for data synchronization and device | |
CN106897442A (en) | A kind of distributed file system user quota method for pre-distributing and distribution system | |
CN106716968A (en) | Account management method, device and account management system | |
CN104767810A (en) | Cloud-client cooperative service system and cloud-client cooperative work method | |
CN107741859A (en) | Software package management method, apparatus and system based on domestic CPU and OS | |
CN107330680A (en) | Red packet control method, device, computer equipment and computer-readable recording medium | |
Moharir et al. | Serving content with unknown demand: the high-dimensional regime | |
CN101778131A (en) | Data synchronization system | |
CN104835004A (en) | Guest room information management method and system | |
CN108573063A (en) | A kind of data query method and system | |
CN101789963A (en) | Data synchronization system | |
EP2874059A1 (en) | Personal cloud storage chain service system and method | |
CN106603702A (en) | Method and device for downloading resource data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170426 |