CN105955873A - Task processing method and apparatus - Google Patents

Task processing method and apparatus Download PDF

Info

Publication number
CN105955873A
CN105955873A CN201610274499.4A CN201610274499A CN105955873A CN 105955873 A CN105955873 A CN 105955873A CN 201610274499 A CN201610274499 A CN 201610274499A CN 105955873 A CN105955873 A CN 105955873A
Authority
CN
China
Prior art keywords
task
time
consuming
consumingly
prediction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610274499.4A
Other languages
Chinese (zh)
Inventor
王孝庆
刘永华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
LeCloud Computing Co Ltd
LeTV Holding Beijing Co Ltd
LeTV Cloud Computing Co Ltd
Original Assignee
LeTV Holding Beijing Co Ltd
LeTV Cloud Computing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by LeTV Holding Beijing Co Ltd, LeTV Cloud Computing Co Ltd filed Critical LeTV Holding Beijing Co Ltd
Priority to CN201610274499.4A priority Critical patent/CN105955873A/en
Publication of CN105955873A publication Critical patent/CN105955873A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
    • G06F11/3419Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment by assessing time
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3452Performance evaluation by statistical analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Evolutionary Biology (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Embodiments of the present disclosure provide a task processing method and apparatus. The method specifically comprises: acquiring a time consumption ratio of at least one historical task within a preset time range; determining a prediction time consumption ratio of a task according to the time consumption ratio of the historical task; and predicting consumed time of the task according to an attribute parameter and the prediction time consumption ratio of the task. According to the method and apparatus provided by the embodiments of the present invention, consumed time required by the task in the running process can be predicted, so that the user can arrange time reasonably according to the task, and user experience of the user is improved.

Description

A kind of task processing method and device
Technical field
It relates to data processing field, particularly relate to a kind of task processing method and device.
Background technology
Along with developing rapidly of network technology, data handling equipment can process polytype task, Such as: uploading and the task of the type such as download of Voice & Video.
Existing a kind of task processing method carry out above-mentioned Voice & Video upload and download etc. is appointed During business, required in above-mentioned task processes is time-consumingly unknowable, so may result in user and exists Carry out uploading and during the task operating such as download, owing to above-mentioned task cannot be learnt of above-mentioned Voice & Video Required time-consuming, and problems with occurs, such as: if current task is the longest during performing, but User is not aware that this required by task is time-consuming, has processed in wait task, the waiting time the most always Long, waste the time of user, this is for the Consumer's Experience of user, is the most bad.
Therefore, present shocking need a kind of task processing method, it is possible to task in running required Time-consumingly it is predicted, so that user can improve user according to this task time-consuming reasonable arrangement time Consumer's Experience.
Summary of the invention
Disclosure embodiment provides a kind of task processing method and device, processes in order to solve existing task Method is due to time-consuming needed for can not learning task run and that cause Consumer's Experience is bad problem so that energy Enough required being time-consumingly predicted in running to task, and then make the user can be according to this task The time-consuming reasonable arrangement time, improve the Consumer's Experience of user.
Disclosure embodiment provides a kind of task processing method, including:
Gather at least one historic task in the range of preset time time-consumingly than;
According to described historic task time-consumingly than determine the prediction of task time-consumingly than;
Property parameters and described prediction time-consumingly ratio according to described task predict the time-consuming of described task.
Disclosure embodiment provides a kind of Task Processing Unit, including:
Acquisition module, for gather at least one historic task in the range of preset time time-consumingly than;
Determine module, for according to described historic task time-consumingly than determine the prediction of task time-consumingly than;
Prediction module, time-consumingly appoints than described in prediction for the property parameters according to described task and described prediction That is engaged in is time-consuming.
A kind of task processing method of disclosure embodiment offer and device, can appoint according to the history gathered Business time-consumingly than determine the prediction of task run time-consumingly than, and then the most when can appoint according to above-mentioned prediction Business property parameters prediction task time-consuming, so, needed for task run time-consumingly can be predicted Out, after time-consuming needed for knowing task run of user, can be with the reasonable arrangement time, such as: if working as Needed for front task run time-consumingly the longest, then user can be to planning during this period of time, during to utilize this section Between go to process other things;Or current task is run shorter, and user can wait completing of task, with After this task run terminates, the operation directly carrying out next task processes operation;That is, the disclosure can Make user's reasonable arrangement time, and then the Consumer's Experience of user can be improved.
Accompanying drawing explanation
In order to be illustrated more clearly that disclosure embodiment or technical scheme of the prior art, below will be to reality Execute the required accompanying drawing used in example or description of the prior art to be briefly described, it should be apparent that under, Accompanying drawing in the description of face is some embodiments of the disclosure, for those of ordinary skill in the art, On the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the flow chart of steps of a kind of task processing method embodiment one of the disclosure;
Fig. 2 is the flow chart of steps of a kind of task processing method embodiment two of the disclosure;
Fig. 3 is the structural representation of a kind of Task Processing Unit embodiment one of the disclosure;
Fig. 4 is the structural representation of a kind of Task Processing Unit embodiment two of the disclosure;
Fig. 5 is the structural representation of a kind of Task Processing Unit embodiment three of the disclosure;And
Fig. 6 is the structural representation of device embodiment four at a kind of task of the disclosure.
Detailed description of the invention
For making the purpose of disclosure embodiment, technical scheme and advantage clearer, below in conjunction with these public affairs Open the accompanying drawing in embodiment, the technical scheme in disclosure embodiment be clearly and completely described, Obviously, described embodiment is a part of embodiment of the disclosure rather than whole embodiments.Based on Embodiment in the disclosure, those of ordinary skill in the art are obtained under not making creative work premise The every other embodiment obtained, broadly falls into the scope of disclosure protection.
Embodiment of the method one
With reference to Fig. 1, it is shown that the flow chart of steps of a kind of task processing method embodiment one of the disclosure, Specifically may include that
Step 101, gather at least one historic task in the range of preset time time-consumingly than;
In disclosure embodiment, the type of task specifically may include that transcoding, uploads, downloads, stores Deng, described task processing method may be used for carrying out the task of a type task process, a described type Task specifically can comprise multiple-task, that is, disclosure embodiment can apply to video and/or The transcoding of audio frequency, upload, download, in the task process such as storage, disclosure embodiment mainly with upload for Example illustrates, and other task types are cross-referenced.
In disclosure embodiment, above-mentioned time-consuming ratio is specifically as follows the processing speed of task, is specifically as follows The size of task and the time-consuming ratio processing this task, such as: the size of historic task is 100Mb, Processing the time-consuming of this task is 10s, then the time-consuming ratio of this historic task is 10M/s;
In disclosure embodiment, above-mentioned preset time may range from gathering above-mentioned historic task time-consumingly than Time range, such as, above-mentioned preset time scope is three months, then can adopt in nearest three months Collect at least one historic task time-consumingly than;
Be appreciated that above-mentioned preset time scope be within three months, be only used as in disclosure embodiment above-mentioned preset One example of time range, and be not understood to preset time scope above-mentioned in disclosure embodiment A kind of restriction, it practice, above-mentioned preset time may range from random time value range, such as: two Month, four months;Above-mentioned preset time scope can be determined the most voluntarily by those skilled in the art, Above-mentioned preset time scope is not specifically limited by disclosure embodiment at this.
Step 102, according to described historic task time-consumingly than determine the prediction of task time-consumingly than;
In disclosure embodiment, the above-mentioned prediction time-consumingly ratio processing speed of the task of can be used to indicate that prediction, Specifically the time-consuming ratio of historic task can be weighted, to determine that final weighing computation results is The prediction of above-mentioned task time-consumingly than;
In a kind of alternative embodiment of the disclosure, above-mentioned time-consumingly appointing than determining according to described historic task The step predicting time-consuming ratio of business, specifically may include that
Step A1, determine the time-consuming ratio of the historic task gathered in the range of described preset time quantity and Each time-consuming than the number of times occurred;
The number of the time-consuming ratio of step A2, the number of times occurred according to described each time-consuming ratio and described historic task Amount determines described each time-consuming than shared weight;
Step A3, weight according to described the most described time-consuming time-consuming ratio determine that the prediction of described task is time-consuming Ratio.
In disclosure embodiment, it is assumed that preset time scope is 3 months, then 3 months interior history is appointed The time-consuming ratio of business is acquired, it is assumed that the quantity of the time-consuming ratio of the historic task of collection is M, including consumption Time than 1, time-consumingly than 2, time-consuming ratio 3 and time-consuming ratio 4, wherein, be time-consumingly A time than the number of times of 1 appearance, Time-consuming is B time than 2 number of times occurred, time-consuming is C time than 3 number of times occurred, time-consumingly than 4 appearance Number of times is D time, above-mentioned A, B, C, D and be M, the most above-mentioned time-consuming than 1 weight 1 be A/M, The above-mentioned time-consuming weight 2 than 2 is B/M, and the above-mentioned time-consuming weight 3 than 3 is C/M, above-mentioned time-consuming ratio The weight of 4 is D/M, the prediction of the most above-mentioned task time-consumingly than for: time-consumingly than 1 × weight 1+ time-consumingly ratio 2 × weight 2+ time-consumingly than 3 × weight 3+ time-consumingly than 4 × weight 4.
Step 103, predict described task according to the property parameters of described task and described prediction time-consumingly ratio Time-consumingly.
In disclosure embodiment, the property parameters of above-mentioned task specifically can include the size of task, then go up State the time-consuming size that specifically can be predicted as task and the product predicting time-consuming ratio of above-mentioned task of task; Such as: the size of above-mentioned task is 100M, above-mentioned prediction is time-consumingly than for 0.8M/s, the consumption of the most above-mentioned task Time can be predicted as: 100 × 0.8=80s;
In a kind of alternative embodiment of the disclosure, said method specifically can also include step:
Time-consuming ratio according to the presetting rule described historic task to gathering in the range of described preset time is carried out Filter;
In disclosure embodiment, above-mentioned presetting rule is specifically as follows the scope of the time-consuming ratio to above-mentioned collection A kind of restriction, such as: it is time-consuming than filtration that above-mentioned presetting rule is specifically as follows less than first threshold Fall, and/or the time-consuming ratio that will be greater than Second Threshold filters out;The historic task of the most above-mentioned collection time-consumingly than Quantity be specifically as follows filter out do not meet presetting rule time-consumingly than after the time-consuming ratio of historic task Quantity;Now predict time-consuming ratio determination process with reference to above-mentioned prediction time-consumingly than determination process, The determination process predicting time-consuming ratio is repeated no more by disclosure embodiment at this.
Be appreciated that above-mentioned according to presetting rule in the range of described preset time gather described history appoint Time-consumingly being only used as in disclosure embodiment time-consumingly ratio one of the method filtered than carrying out filtering of business Example, and be not understood to be to a restriction to the time-consuming ratio method filtered in disclosure embodiment, It practice, can also gather described historic task time-consuming than time, according to presetting rule to above-mentioned history The time-consuming ratio of task is acquired, namely gathers the time-consuming ratio of the historic task meeting presetting rule, these public affairs Open embodiment to above-mentioned to being time-consumingly not specifically limited than the method filtered.
To sum up, a kind of task processing method that disclosure embodiment provides, can appoint according to the history gathered Business time-consumingly than determine the prediction of task run time-consumingly than, and then the most when can appoint according to above-mentioned prediction Business property parameters prediction task time-consuming, so, needed for task run time-consumingly can be predicted Out, after time-consuming needed for knowing task run of user, can be with the reasonable arrangement time, such as: if working as Needed for front task run time-consumingly the longest, then user can be to planning during this period of time, during to utilize this section Between go to process other things;Or current task is run shorter, and user can wait completing of task, with After this task run terminates, the operation directly carrying out next task processes operation;That is, the disclosure can Make user's reasonable arrangement time, and then the Consumer's Experience of user can be improved.
Embodiment of the method two
With reference to Fig. 2, it is shown that the flow chart of steps of a kind of task processing method embodiment two of the disclosure, Specifically may include that
Step 201, gather at least one historic task in the range of preset time time-consumingly than;
Step 202, according to described historic task time-consumingly than determine the prediction of task time-consumingly than;
Step 203, predict described task according to the property parameters of described task and described prediction time-consumingly ratio Time-consumingly;
Step 204, time-consuming according to task, and task take the resource situation of server, carry out task Distribution.
Relative to embodiment of the method one, disclosure embodiment adds step 204, with according to prediction Task time-consuming, and task takies situation to resource, carries out the distribution of task for server, and such one Coming, due to task is time-consumingly predictable, therefore can carry out appointing to server according to the time-consuming of task The distribution of business so that can be reasonably utilized with the resource of server, improves the utilization of resources of server Rate, and make to decrease the waiting times to be treated such as task queue, improve server process task Efficiency.
In disclosure embodiment, when the resource that the idling-resource in server takies less than task needs Time, task needs to wait outside server, until server there being task processed, and release After going out resource, when server has enough idling-resources, this task can be distributed to server and enter Row processes, so, when in above-mentioned server, available resources are unsatisfactory for waiting the required by task run Resource time, until server there being task run terminate, before discharging resource, above-mentioned available resources The most vacant, in turn result in the waste of server resource;It practice, task is in processing procedure, Can be divided into the different operation phase, when the operation phase started, the resource shared by task is phase To less, therefore can be that above-mentioned server does a gain, have the task will be in the server When completing after preset time to run, task will be distributed to server, owing to this task is in the fortune started During row order section, the resource of the server that needs take is less, and therefore server can utilize idling-resource Run above-mentioned task.
In a kind of alternative embodiment of the disclosure, described task specifically may include that be currently running appoints Business, and wait running of task, the most described time-consuming according to task, and task take the resource of server Situation, carries out the step of the distribution of task, specifically may include that
Step B1, the resource taken in described being currently running of task with the summation of idling-resource more than described When waiting the resource shared by task run, being currently running described in acquisition of task has run duration;
Step B2, according to described in task time-consuming that be currently running and described run duration, determine task Distribution timing;
Step B3, described task distribution timing meet preset distribution time threshold time, by described wait as ready The task of row is distributed to described server.
In disclosure embodiment, above-mentioned being currently running of task is specifically as follows to be run the most in the server, And have precedence at least one task that other tasks terminate to run, it is assumed that in the task that server currently runs Have precedence over the resource shared by task A and the money of the idling-resource in server that other tasks terminate to run Source summation more than the resource taken needed for current waiting and running of task B, has then obtained current task A Run duration, time-consuming according to above-mentioned task A, and the duration of operation of task A, determine that task is distributed Timing, concrete, the distribution timing of above-mentioned task can be the time-consuming of above-mentioned task A and above-mentioned task A Run the difference of duration;
In disclosure embodiment, above-mentioned preset distribution time threshold is that those skilled in the art are set in advance Time value is when the task distribution timing of above-mentioned task A meets preset distribution time threshold namely above-mentioned Task A will terminate to run after preset distribution time threshold, the resource of the server of release busy;Such as: Above-mentioned preset distribution time threshold is 1 minute, then distribute timing when the task of above-mentioned task A and meet preset During distribution time threshold, namely above-mentioned task A will terminate to run after 1 minute;The most now can be by above-mentioned Task B is distributed to server so that task B can start to run on the server, although along with task The operation duration of B, the resource taken needed for task B gets more and more, but owing to, after one minute, appointing End is run by business A, discharges server resource so that the available resources on server increase, and therefore exist In the running of task B, server can meet the resource requirement of above-mentioned task B.
It is understood that above-mentioned preset distribution time threshold is to be only used as in disclosure embodiment for 1 minute A kind of example of preset distribution time threshold, and being not understood to is in disclosure embodiment above-mentioned preset point Send out a kind of restriction of time threshold, it practice, above-mentioned preset distribution time threshold can be random time value, Such as: two minutes, three minutes etc., can be set according to demand by those skilled in the art, this Above-mentioned preset distribution time threshold is not specifically limited by open embodiment at this.
To sum up, a kind of task processing method that disclosure embodiment provides, can according to the time-consuming of task and Task is server distributed tasks to the occupation condition of server, so that the resource of server obtains To reasonably utilizing, improve the resource utilization of server;
The task processing method provided disclosure embodiment below by way of concrete example can Appropriate application clothes The resource utilization of business device resource and raising server is illustrated:
Assuming that the resource of current server has 100G, running in server of task occupies 95G, namely Current server also has the resource of 5G can use, outside present server, have needs to take 10G money The task in source, in traditional task processing method, owing to the available resources in current server is less than being somebody's turn to do Wait the resource of the required by task run, then the current task of waiting operation needs to wait, until server In when having sufficient resources may utilize, just now this task is distributed to above-mentioned server, so, is waiting Treating in the time, the resource of above-mentioned 5G is the most vacant, causes the waste of the resource of server;
And in disclosure embodiment, the task of a certain task owing to can run in above-mentioned server When distribution timing meets preset distribution time threshold, the task that above-mentioned wait runs is distributed to service Device, so, relative to traditional task processing method, in disclosure embodiment, above-mentioned wait The waiting time of running of task decreases preset distribution time threshold so that above-mentioned server is in unit The task that running in time of task to be run more than the server of above-mentioned traditional task processing method, Improve the efficiency of server process task;And above-mentioned 5G available resources are full above-mentioned distribution timing During the preset distribution time threshold of foot, i.e. can be utilized by above-mentioned task so that above-mentioned 5G available resources It is not constantly in the state of free time, hence in so that the resource of server is reasonably used, carries The high resource utilization of server.
It should be noted that for embodiment of the method, in order to be briefly described, therefore it is all expressed as one it be The combination of actions of row, but those skilled in the art should know, and the embodiment of the present application is not by described The restriction of sequence of movement because according to the embodiment of the present application, some step can use other orders or Person is carried out simultaneously.Secondly, those skilled in the art also should know, embodiment described in this description Belong to preferred embodiment, necessary to involved action not necessarily the embodiment of the present application.
Device embodiment one
With reference to Fig. 3, it is shown that the structural representation of a kind of Task Processing Unit embodiment one of the disclosure, Specifically may include that acquisition module 301, determine module 302 and prediction module 303;
Wherein, acquisition module 301, may be used for gathering at least one historic task in the range of preset time Time-consumingly than;
Determine module 302, may be used for time-consumingly consuming than the prediction determining task according to described historic task Time ratio;
Prediction module 303, may be used for the property parameters according to described task and described prediction time-consumingly ratio in advance Survey the time-consuming of described task.
In a kind of alternative embodiment of the disclosure, the type of above-mentioned task specifically can include transcoding, on Passing, download, store, described task processing method is used for processing the task of a type, and described one The task of type specifically can comprise multiple-task.
Device embodiment two
With reference to Fig. 4, it is shown that the structural representation of a kind of Task Processing Unit embodiment two of the disclosure, Specifically may include that acquisition module 401, determine module 402 and prediction module 403;
Wherein, acquisition module 401, may be used for gathering at least one historic task in the range of preset time Time-consumingly than;
Determine module 402, may be used for time-consumingly consuming than the prediction determining task according to described historic task Time ratio;
Prediction module 403, may be used for the property parameters according to described task and described prediction time-consumingly ratio in advance Survey the time-consuming of described task;
Wherein, above-mentioned determine that module 402 specifically may include that
First determines unit 4021, the historic task gathered in the range of being determined for described preset time Time-consuming ratio quantity and each time-consuming than occur number of times;
Second determines unit 4022, may be used for according to described each time-consuming than occur number of times and described in go through The quantity of the time-consuming ratio of history task determines described each time-consuming than shared weight;
3rd determines unit 4023, may be used for the weight according to described the most described time-consuming time-consuming ratio and determines The prediction of described task time-consumingly than.
Device embodiment three
With reference to Fig. 5, it is shown that the structural representation of a kind of Task Processing Unit embodiment three of the disclosure, Specifically may include that acquisition module 501, determine module 502, prediction module 503 and filtering module 504;
Wherein, acquisition module 501, may be used for gathering at least one historic task in the range of preset time Time-consumingly than;
Determine module 502, may be used for time-consumingly consuming than the prediction determining task according to described historic task Time ratio;
Prediction module 503, may be used for the property parameters according to described task and described prediction time-consumingly ratio in advance Survey the time-consuming of described task;
Filtering module 504, may be used for according to presetting rule the institute of collection in the range of described preset time The time-consuming ratio stating historic task filters.
Device embodiment four
With reference to Fig. 6, it is shown that the structural representation of a kind of Task Processing Unit embodiment four of the disclosure, Specifically may include that acquisition module 601, determine module 602, prediction module 603 and distribution module 604;
Wherein, acquisition module 601, may be used for gathering at least one historic task in the range of preset time Time-consumingly than;
Determine module 602, may be used for time-consumingly consuming than the prediction determining task according to described historic task Time ratio;
Prediction module 603, may be used for the property parameters according to described task and described prediction time-consumingly ratio in advance Survey the time-consuming of described task;
Distribution module 604, may be used for according to task is time-consuming, and task takies the resource feelings of server Condition, carries out the distribution of task.
In a kind of alternative embodiment of the disclosure, described task specifically may include that be currently running appoints Business, and wait running of task, the most described distribution module 604 specifically may include that
Acquiring unit, may be used for the total of the resource that takies in described being currently running of task and idling-resource With during more than resource shared by described waiting and running of task, being currently running described in acquisition of task is transported Row duration;
4th determines unit, may be used for according to described in task time-consuming that be currently running and described run Duration, determines that task distributes timing;
Task Dispatching Unit, may be used for when the distribution timing of described task meets preset distribution time threshold, Wait that running of task is distributed to described server by described.
For device embodiment, due to itself and embodiment of the method basic simlarity, so the comparison described Simply, relevant part sees the part of embodiment of the method and illustrates.
Device embodiment described above is only schematically, wherein said illustrates as separating component Unit can be or may not be physically separate, the parts shown as unit can be or Person may not be physical location, i.e. may be located at a place, or can also be distributed to multiple network On unit.Some or all of module therein can be selected according to the actual needs to realize the present embodiment The purpose of scheme.Those of ordinary skill in the art are not in the case of paying performing creative labour, the most permissible Understand and implement.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive each reality The mode of executing can add the mode of required general hardware platform by software and realize, naturally it is also possible to by firmly Part.Based on such understanding, the portion that prior art is contributed by technique scheme the most in other words Dividing and can embody with the form of software product, this computer software product can be stored in computer can Read in storage medium, such as ROM/RAM, magnetic disc, CD etc., including some instructions with so that one Computer equipment (can be personal computer, server, or the network equipment etc.) performs each to be implemented The method described in some part of example or embodiment.
Last it is noted that above example is only in order to illustrate the technical scheme of the disclosure, rather than to it Limit;Although the disclosure being described in detail with reference to previous embodiment, the ordinary skill of this area Personnel it is understood that the technical scheme described in foregoing embodiments still can be modified by it, or Person carries out equivalent to wherein portion of techniques feature;And these amendments or replacement, do not make corresponding skill The essence of art scheme departs from the spirit and scope of the disclosure each embodiment technical scheme.

Claims (12)

1. a task processing method, wherein, including:
Gather at least one historic task in the range of preset time time-consumingly than;
According to described historic task time-consumingly than determine the prediction of task time-consumingly than;
Property parameters and described prediction time-consumingly ratio according to described task predict the time-consuming of described task.
Method the most according to claim 1, wherein, described according to described historic task time-consumingly than Determine the prediction of task time-consumingly than, including:
Determine the time-consuming ratio of the historic task gathered in the range of described preset time quantity and each time-consumingly Than the number of times occurred;
Quantity according to described each time-consuming number of times than appearance and the time-consuming ratio of described historic task determines institute State each time-consuming than shared weight;
Weight according to described the most described time-consuming time-consuming ratio determine the prediction of described task time-consumingly than.
Method the most according to claim 1, described method also includes:
Time-consuming ratio according to the presetting rule described historic task to gathering in the range of described preset time is carried out Filter.
Method the most according to claim 1, the type of described task include transcoding, upload, download, Storage, described task processing method is used for processing the task of a type, the task of a described type In comprise multiple-task.
5., according to the method described in any one of Claims 1-4, described method also includes:
Time-consuming according to task, and task takies the resource situation of server, carries out the distribution of task.
Method the most according to claim 5, described task includes: being currently running of task, and etc. Task to be run, the most described time-consuming according to task, and task take the resource situation of server, enter The distribution of row task, including:
The resource taken in described being currently running of task is run more than described wait with the summation of idling-resource The resource shared by task time, being currently running described in acquisition of task has run duration;
According to the time-consuming of described being currently running of task and described run duration, determine that task distributes timing;
When the distribution timing of described task meets preset distribution time threshold, by described waiting and running of task It is distributed to described server.
7. a Task Processing Unit, described device includes:
Acquisition module, for gather at least one historic task in the range of preset time time-consumingly than;
Determine module, for according to described historic task time-consumingly than determine the prediction of task time-consumingly than;
Prediction module, time-consumingly appoints than described in prediction for the property parameters according to described task and described prediction That is engaged in is time-consuming.
Device the most according to claim 7, described determines that module includes:
First determines unit, for determine the historic task that gathers in the range of described preset time time-consumingly than Quantity and each time-consuming than occur number of times;
Second determine unit, for according to described each time-consuming than the number of times occurred and described historic task Time-consumingly than quantity determine described each time-consuming than shared weight;
3rd determines unit, for determining described task according to the weight of described the most described time-consuming time-consuming ratio Prediction time-consumingly than.
Device the most according to claim 7, described device also includes:
Filtering module, for appointing the described history gathered in the range of described preset time according to presetting rule The time-consuming ratio of business filters.
Device the most according to claim 7, the type of described task include transcoding, upload, under Carrying, store, described task processing method is used for processing the task of a type, a described type Task comprises multiple-task.
11. also include according to the device described in any one of claim 7 to 10, described device:
Distribution module, time-consuming for according to task, and task take the resource situation of server, carry out The distribution of task.
12. devices according to claim 11, described task includes: being currently running of task, and Waiting running of task, the most described distribution module includes:
Acquiring unit is big with the summation of idling-resource for the resource taken in described being currently running of task When resource shared by described waiting and running of task, when being currently running described in acquisition of task is run Long;
4th determines unit, for according to described in task time-consuming that be currently running and described run duration, Determine that task distributes timing;
Task Dispatching Unit, is used for when the distribution timing of described task meets preset distribution time threshold, will The described task of waiting operation is distributed to described server.
CN201610274499.4A 2016-04-27 2016-04-27 Task processing method and apparatus Pending CN105955873A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610274499.4A CN105955873A (en) 2016-04-27 2016-04-27 Task processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610274499.4A CN105955873A (en) 2016-04-27 2016-04-27 Task processing method and apparatus

Publications (1)

Publication Number Publication Date
CN105955873A true CN105955873A (en) 2016-09-21

Family

ID=56916998

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610274499.4A Pending CN105955873A (en) 2016-04-27 2016-04-27 Task processing method and apparatus

Country Status (1)

Country Link
CN (1) CN105955873A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108255681A (en) * 2018-02-09 2018-07-06 腾讯科技(北京)有限公司 Task alarm method and device
CN109471783A (en) * 2017-09-08 2019-03-15 北京京东尚科信息技术有限公司 The method and apparatus for predicting task run parameter
CN109495531A (en) * 2017-09-13 2019-03-19 北京国双科技有限公司 Request processing method and device
CN110928751A (en) * 2019-10-12 2020-03-27 平安国际智慧城市科技股份有限公司 Task processing time automatic prediction method, device, medium and electronic equipment
CN111143049A (en) * 2019-12-27 2020-05-12 中国银行股份有限公司 File batch processing method and device
CN111246291A (en) * 2018-11-29 2020-06-05 浙江宇视科技有限公司 Video transcoding method and device and electronic equipment
CN112085289A (en) * 2020-09-17 2020-12-15 广州华多网络科技有限公司 Program maintenance task processing method, device, equipment and storage medium
CN112363821A (en) * 2021-01-12 2021-02-12 湖南大学 Computing resource scheduling method and device and computer equipment
CN114911620A (en) * 2022-05-16 2022-08-16 四川大学华西医院 Medical scientific research data subscription method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040255279A1 (en) * 2003-04-22 2004-12-16 Alasdair Rawsthorne Block translation optimizations for program code conversation
CN103473345A (en) * 2013-09-23 2013-12-25 深圳市融创天下科技股份有限公司 Method of predicating time duration
CN103488691A (en) * 2013-09-02 2014-01-01 用友软件股份有限公司 Task scheduling device and task scheduling method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040255279A1 (en) * 2003-04-22 2004-12-16 Alasdair Rawsthorne Block translation optimizations for program code conversation
CN103488691A (en) * 2013-09-02 2014-01-01 用友软件股份有限公司 Task scheduling device and task scheduling method
CN103473345A (en) * 2013-09-23 2013-12-25 深圳市融创天下科技股份有限公司 Method of predicating time duration

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109471783A (en) * 2017-09-08 2019-03-15 北京京东尚科信息技术有限公司 The method and apparatus for predicting task run parameter
CN109471783B (en) * 2017-09-08 2022-07-05 北京京东尚科信息技术有限公司 Method and device for predicting task operation parameters
CN109495531A (en) * 2017-09-13 2019-03-19 北京国双科技有限公司 Request processing method and device
CN108255681B (en) * 2018-02-09 2021-08-13 腾讯科技(北京)有限公司 Task warning method and device
CN108255681A (en) * 2018-02-09 2018-07-06 腾讯科技(北京)有限公司 Task alarm method and device
CN111246291A (en) * 2018-11-29 2020-06-05 浙江宇视科技有限公司 Video transcoding method and device and electronic equipment
CN111246291B (en) * 2018-11-29 2022-03-11 浙江宇视科技有限公司 Video transcoding method and device and electronic equipment
CN110928751A (en) * 2019-10-12 2020-03-27 平安国际智慧城市科技股份有限公司 Task processing time automatic prediction method, device, medium and electronic equipment
CN110928751B (en) * 2019-10-12 2021-07-16 深圳赛安特技术服务有限公司 Task processing time automatic prediction method, device, medium and electronic equipment
CN111143049A (en) * 2019-12-27 2020-05-12 中国银行股份有限公司 File batch processing method and device
CN111143049B (en) * 2019-12-27 2023-09-05 中国银行股份有限公司 File batch processing method and device
CN112085289A (en) * 2020-09-17 2020-12-15 广州华多网络科技有限公司 Program maintenance task processing method, device, equipment and storage medium
CN112363821A (en) * 2021-01-12 2021-02-12 湖南大学 Computing resource scheduling method and device and computer equipment
CN114911620A (en) * 2022-05-16 2022-08-16 四川大学华西医院 Medical scientific research data subscription method and system

Similar Documents

Publication Publication Date Title
CN105955873A (en) Task processing method and apparatus
CN110198344A (en) A kind of resource regulating method and system
CN107968802A (en) The method, apparatus and filtering type scheduler of a kind of scheduling of resource
CN109815011A (en) A kind of method and apparatus of data processing
CN105516347B (en) A kind of method and device of the load balancing allotment of streaming media server
CN102508709B (en) Distributed-cache-based acquisition task scheduling method in purchase, supply and selling integrated electric energy acquiring and monitoring system
CN111985851B (en) Bank outlet resource scheduling method and device
CN109471705A (en) Method, equipment and system, the computer equipment of task schedule
CN107800756A (en) A kind of load-balancing method and load equalizer
CN107026900B (en) Shooting task allocation method and device
CN105843687A (en) Method and device for quantifying task resource
CN110515730A (en) Resource secondary dispatching method and device based on kubernetes container arranging system
CN111200528A (en) Intelligent linkage method for smart city with edge cloud cooperation
CN113886034A (en) Task scheduling method, system, electronic device and storage medium
CN109032769B (en) Container-based continuous integrated CI (CI) task processing method and device
CN107958349A (en) Method for allocating tasks, device, computer equipment and storage medium
CN105573840A (en) Event processing method and device in workflow operating period
CN106713375A (en) Method and device for allocating cloud resources
CN107229660A (en) A kind of method and apparatus of data deduplication
CN109936593A (en) A kind of method and system of message distribution
CN114153580A (en) Cross-multi-cluster work scheduling method and device
CN106681839A (en) Elasticity calculation dynamic allocation method
CN110516155A (en) Marketing strategy generation method and system
CN104572298B (en) The resource regulating method and device of video cloud platform
CN109872049B (en) Resource allocation optimization method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160921