CN104468174A - Method and device for cluster servers to execute task - Google Patents

Method and device for cluster servers to execute task Download PDF

Info

Publication number
CN104468174A
CN104468174A CN201310453196.5A CN201310453196A CN104468174A CN 104468174 A CN104468174 A CN 104468174A CN 201310453196 A CN201310453196 A CN 201310453196A CN 104468174 A CN104468174 A CN 104468174A
Authority
CN
China
Prior art keywords
task
node server
pending
mark
bit stream
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.)
Granted
Application number
CN201310453196.5A
Other languages
Chinese (zh)
Other versions
CN104468174B (en
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.)
Beijing Feinno Communication Technology Co Ltd
Original Assignee
Beijing Feinno Communication Technology 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 Beijing Feinno Communication Technology Co Ltd filed Critical Beijing Feinno Communication Technology Co Ltd
Priority to CN201310453196.5A priority Critical patent/CN104468174B/en
Publication of CN104468174A publication Critical patent/CN104468174A/en
Application granted granted Critical
Publication of CN104468174B publication Critical patent/CN104468174B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention discloses a method and device for cluster servers to execute a task, and belongs to the field of Internet communication. The method comprises the steps that information of the task, in an unexecuted task state, to be executed is acquired from a task state table; an identification of a node server for executing the task to be executed is acquired; when a timestamp for executing the task to be executed arrives, the identification of the node server for executing the task to be executed is sent to the node server so that the node server can acquire the task to be executed according to an identification of the task to be executed and then executes the task to be executed; when the node server fails executing the task to be executed, a task response is sent to a management node server so that the management node server can modify the task state of the task to be executed into the unexecuted task state, and then other node servers except the node server in a cluster can execute the task to be executed. The device comprises a first acquisition module, a second acquisition module, a first sending module and a second sending module. By means of the method, the task execution reliability of the cluster servers can be guaranteed.

Description

The method and apparatus that a kind of cluster server is executed the task
Technical field
The present invention relates to field of Internet communication, particularly a kind of cluster server method and apparatus of executing the task.
Background technology
Timer is set in cluster server, a corresponding timer of server; When arriving the timestamp performing pending task, the server that Timer Controlling is corresponding with it performs pending task.
Prior art provides a kind of method that cluster server is executed the task, can be: the multiple timers in cluster are simultaneously by the ID(Identity of the number of units of server in cluster and pending task, identify label number) carry out modulo operation, obtain the numbering of the node server performing this pending task; When arriving the timestamp performing pending task, the timer corresponding with the numbering of this node server sends the mark of pending task to this node server, this node server receives the mark of this pending task, obtains and perform this pending task according to the mark of this pending task.
Realizing in process of the present invention, inventor finds that prior art at least exists following problem:
When this node server delays machine, this pending tasks carrying failure, thus the method that cluster server of the prior art is executed the task is unreliable.
Summary of the invention
In order to make the problem of solution prior art, the invention provides the method and apparatus that a kind of cluster server is executed the task.Described technical scheme is as follows:
On the one hand, the invention provides a kind of method that cluster server is executed the task, described method comprises:
From task status table, obtain task status is unenforced pending mission bit stream, and described pending mission bit stream comprises the mark of pending task and performs the timestamp of described pending task;
Obtain the mark of the node server performing described pending task;
When arriving the timestamp performing described pending task, send the mark of described pending task to described node server according to the mark of described node server, make described node server obtain according to the mark of described pending task and perform described pending task;
When described node server performs described pending mission failure, transmission task responds to management node server, described task response carrier state information is not for complete, described state information is for pointing out the task status of pending task described in described management node server, the task status of described pending task to be revised as according to the response of described task by described management node server do not perform, to make the described pending task of the execution of other node servers in cluster except described node server except.
Preferably, describedly obtain after task status is unenforced pending mission bit stream from task status table, described method also comprises:
Send task requests to management node server, described task requests carries the mark of described pending task, and described management node server is revised as in execution according to the task status of described task requests by described pending task.
Preferably, the described task status that obtains from task status table is unenforced pending mission bit stream, comprising:
Obtaining task status is unenforced mission bit stream;
Calculate the difference of timestamp that execution needs that described mission bit stream comprises execute the task and current time stamp;
Minimum value is selected from described difference;
Using mission bit stream corresponding for described minimum value as described pending mission bit stream.
Preferably, described from task status table, obtain pending mission bit stream before, described method also comprises:
Receive the needs mark of executing the task of user's input and perform the timestamp that described needs execute the task;
The mark that described needs are executed the task and are performed the timestamp that described needs execute the task and be kept in described task status table.
Preferably, the described mark obtaining the node server performing described pending task, comprising:
Stochastic choice node server from cluster server, using the node server of described selection as the node server performing described pending task;
Or, according to the load of the node server in cluster server, select the node server of least-loaded, using the node server of described least-loaded as the node server performing described pending task.
On the other hand, the invention provides the device that a kind of cluster server is executed the task, described device comprises:
First acquisition module is unenforced pending mission bit stream for obtaining task status from task status table, and described pending mission bit stream comprises the mark of pending task and performs the timestamp of described pending task;
Second acquisition module, for obtaining the mark of the node server performing described pending task;
First sending module, for when arriving the timestamp performing described pending task, send the mark of described pending task to described node server according to the mark of described node server, make described node server obtain according to the mark of described pending task and perform described pending task;
Second sending module, for when described node server performs described pending mission failure, transmission task responds to management node server, described task response carrier state information is not for complete, described state information is for pointing out the task status of pending task described in described management node server, the task status of described pending task to be revised as according to the response of described task by described management node server do not perform, to make the described pending task of the execution of other node servers in cluster except described node server except.
Preferably, described device also comprises:
3rd sending module, for sending task requests to management node server, described task requests carries the mark of described pending task, and described management node server is revised as in execution according to the task status of described task requests by described pending task.
Preferably, described first acquisition module, comprising:
Acquiring unit is unenforced mission bit stream for obtaining task status;
Computing unit, the difference of the timestamp that the execution needs comprised for calculating described mission bit stream are executed the task and current time stamp;
First selected cell, for selecting minimum value from described difference, using mission bit stream corresponding for described minimum value as described pending mission bit stream.
Preferably, described device also comprises:
Receiver module, for receiving the needs mark of executing the task of user's input and performing the timestamp that described needs execute the task;
Preserve module, for the mark of being executed the task by described needs with perform the timestamp that described needs execute the task and be kept in described task status table.
Preferably, described second acquisition module, comprising:
Second selected cell, for the node server of Stochastic choice from cluster server, using the node server of described selection as the node server performing described pending task;
Or the 3rd selected cell, for the load according to the node server in cluster server, selects the node server of least-loaded, using the node server of described least-loaded as the node server performing described pending task.
In the embodiment of the present invention, when node server performs pending mission failure, timer sends task and responds to management node server, this task response carrier state information is not for complete, the task status of pending task to be revised as according to the response of this task and not to perform by management node server, makes other node servers in cluster except this node server perform this pending task.Therefore, the machine even if this node server is delayed, also can make this pending task be performed, thus ensure that the reliability that cluster server is executed the task.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the method flow diagram that cluster server that the embodiment of the present invention 1 provides is executed the task;
Fig. 2 is the method flow diagram that cluster server that the embodiment of the present invention 2 provides is executed the task;
Fig. 3 is the apparatus structure schematic diagram that cluster server that the embodiment of the present invention 3 provides is executed the task.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment 1
Embodiments provide a kind of method that cluster server is executed the task.See Fig. 1, wherein, the method comprises:
101: it is unenforced pending mission bit stream that timer obtains task status from task status table, this pending mission bit stream comprises the mark of pending task and performs the timestamp of pending task;
102: timer obtains the mark of the node server performing pending task;
103: when arriving the timestamp performing pending task, timer sends the mark of pending task to node server according to the mark of node server, makes node server obtain according to the mark of pending task and perform pending task;
104: when node server performs pending mission failure, timer sends task and responds to management node server, this task response carrier state information is not for complete, this state information is for pointing out the task status of the pending task of management node server, the task status of pending task to be revised as according to the response of this task by management node server do not perform, to perform this pending task to make other node servers in cluster except this node server.
In the embodiment of the present invention, when node server performs pending mission failure, timer sends task and responds to management node server, this task response carrier state information is not for complete, the task status of pending task to be revised as according to the response of this task and not to perform by management node server, makes other node servers in cluster except this node server perform this pending task.Therefore, the machine even if this node server is delayed, also can make this pending task be performed, thus ensure that the reliability that cluster server is executed the task.
Embodiment 2
Embodiments provide a kind of method that cluster server is executed the task.See Fig. 2, wherein, the method comprises:
201: the mark that the needs that timer receives user's input are executed the task and execution need the timestamp of executing the task;
Wherein, timer is the arbitrary timer in cluster server, in cluster server, disposes at least one timer.
Wherein, it should be noted that, need the task of executing the task as user's input; The timestamp of executing the task is needed to be perform to need the corresponding moment of executing the task.
Wherein, when user needs to allow cluster server need to execute the task in the execution of certain timestamp, user inputs to be needed the mark of executing the task and performs to need the timestamp of executing the task to timer, the mark that the needs that timer receives user's input are executed the task and perform the timestamp needing to execute the task.
Such as, user needs when 2013-9-18-12:00 sends SMS message to good friend's first, the mark that user inputs the task that sends SMS message in timer and the timestamp 2013-9-18-12:00 sent SMS message, the mark that timer receives the task that sends SMS message of user's input and the timestamp 2013-9-18-12:00 sent SMS message.
202: the mark needing to execute the task and execution need the timestamp of executing the task to be kept in task status table by timer;
Particularly, timer binding needs the mark of executing the task and performs the timestamp needing to execute the task, by the mark needing to execute the task, perform need to execute the task timestamp, task status three corresponding relation be kept in task status table.
Wherein, task status comprise do not perform, perform in and executed.
Wherein, do not perform and refer to that these needs are executed the task and do not performed by node server; Refer in execution that these needs are executed the task to be performed by node server; Executed refers to that these needs are executed the task complete by node server.
Such as, the mark needing to execute the task and execution need the timestamp of executing the task to be kept in task status table by timer, as shown in table 1:
Table 1
Need to execute the task mark Perform the timestamp needing to execute the task Task status
Send SMS message 2013-9-18-12:00 Do not perform
…… …… ……
Wherein, need to execute the task as job_name, this job_name user can carry out arranging and changing according to hobby, is not specifically limited in embodiments of the present invention to job_name.
203: it is unenforced pending mission bit stream that timer obtains task status from task status table, this pending mission bit stream comprises the mark of pending task and performs the timestamp of this pending task;
Wherein, it should be noted that, pending task is the task of being about to be performed; The timestamp of pending task is perform moment corresponding to pending task.
Wherein, timer obtains the operation that task status is unenforced pending mission bit stream from task status table, Ke Yiwei:
It is unenforced mission bit stream that timer obtains task status from task status table, is Stochastic choice mission bit stream unenforced mission bit stream, using the mission bit stream of Stochastic choice as pending mission bit stream from the task status obtained.
Wherein, timer obtains the operation that task status is unenforced pending mission bit stream from task status table, can also be:
From task status table, obtain task status is unenforced mission bit stream; Obtain according to unenforced mission bit stream the timestamp that this execution needs to execute the task, obtain current time stamp; The difference of the timestamp that the execution needs that calculation task information comprises are executed the task and current time stamp; Minimum value is selected from difference; Using mission bit stream corresponding for minimum value as pending mission bit stream.
Wherein, in embodiments of the present invention, the minimum mission bit stream of difference of the timestamp that the execution needs comprised by mission bit stream are executed the task and current time stamp as pending mission bit stream, thus can ensure the promptness of tasks carrying, improves the reliability that cluster server is executed the task.
204: timer sends task requests to management node server, and this task requests carries the mark of pending task;
Wherein, management node server is any node server in cluster server, and management node server not only can be executed the task to cluster server and be managed, and this management node server can also perform pending task.
Wherein, after timer obtains pending mission bit stream, send task requests to management node server, to notify that management node server revises the task status of pending task, as step 205.
Such as, timer obtains pending mission bit stream and comprises pending task identification from table 1: send SMS message and perform the timestamp of pending task: after 2013-9-18-12:00, send task requests to management node server, this task requests carries the mark of pending task: send SMS message, to notify that management node server revises the task status of pending task.
205: management node server receives the task requests that timer sends, and according to this task requests, the task status of pending task is set in execution;
Particularly, management node server receives the task requests that timer sends, and obtain the mark of pending task according to this task requests, the task status of pending task is revised as in execution by not performing by the mark according to pending task.
Wherein, the task status of pending task is revised as in execution by management node server, repeats this pending task to prevent the node server in cluster.
Such as, management node server receives the task requests that timer sends, the mark of pending task is obtained: send SMS message according to this task requests, mark according to pending task: send SMS message and be revised as in execution by the task status of pending task by not performing, amended task status table is as shown in table 2:
Table 2
Need to execute the task mark Perform the timestamp needing to execute the task Task status
Send SMS message 2013-9-18-12:00 In execution
…… …… ……
206: timer obtains the mark of the node server performing pending task;
Wherein, when timer obtains pending task, timer obtains the node server performing pending task.
Wherein, timer obtains the operation of the mark of the node server performing pending task, Ke Yiwei:
Timer is Stochastic choice node server from cluster server, using the node server of selection as the node server performing pending task.
Wherein, timer obtains the operation of the mark of the node server performing pending task, can also be:
Timer, according to the load of the node server in cluster server, selects the node server of least-loaded, using the node server of least-loaded as the node server performing pending task.
207: when arriving the timestamp performing pending task, timer sends the mark of pending task to node server according to the mark of node server;
Particularly, timer obtains the timestamp performing pending task according to pending mission bit stream, timestamp according to performing pending task starts timing, when arriving the timestamp performing pending task, timer sends the mark of pending task to node server according to the mark of node server.
208: node server receives the mark of the pending task that timer sends, and obtains and perform pending task according to the mark of pending task;
Particularly, node server receives the mark of the pending task that timer sends, and obtains pending task according to the mark of pending task, according to the pending task of pending tasks carrying obtained.
Such as, when arriving the timestamp performing pending task, timer sends the mark of pending task according to the mark of node server 1: send SMS message to node server 1; Node server 1 receives the mark of the pending task that timer sends: send SMS message, obtain pending task according to the mark of pending task: send SMS message to good friend's first, and send SMS message to good friend's first.
209: when node server performs pending mission failure, timer sends task and responds to management node server, and this task response carrier state information is not for complete, and this state information is for pointing out the task status of the pending task of management node server;
Wherein, after node server is executed the task and terminated, timer sends task and responds to management node server, this task response carrier state information, this state information is for pointing out the task status of the pending task of management node, and this state information can for not complete or to complete.
Wherein, when node server performs pending mission failure, timer sends task and responds to management node server, and the state information that node server performs pending task is carried in the response of this task, and this state information is not for complete; When node server performs pending Mission Success, timer sends task and responds to management node server, and the state information that node server performs pending task is carried in the response of this task, and this state information is for complete.
210: management node server receives the task response that timer sends, and according to the response of this task the task status of pending task is revised as and do not perform, perform this pending task to make other node servers in cluster except this node server.
Wherein, when node server performs pending mission failure, timer sends task and responds to management node server, and the state information that node server performs pending task is carried in the response of this task, and this state information is not for complete; Management node server receives the task response that timer sends, and obtain according to the response of this task the state information that node server performs pending task: do not complete, according to this state information: do not complete and the task status of pending task is not performed by being revised as in performing, to make other node servers in cluster except this node server obtain this pending task, and perform this pending task.
Further, when node server performs pending Mission Success, timer sends task and responds to management node server, and the state information that node server performs pending task is carried in the response of this task, and this state information is for complete; Management node server receives the task response that timer sends, and obtain according to the response of this task the state information that node server performs pending task: complete, according to this state information: completed and the task status of pending task is revised as executed in performing.
Such as, node server 1 performs pending task: when sending SMS message to the failure of good friend's first, transmission task responds to management node server, and the response of this task is carried node server 1 and performed the state information of pending task for not complete; The task response that management node server receiving node server 1 sends, and according to the response of this task, the task status of pending task is not performed by being revised as in performing, amended task status table is as shown in table 1.Node server 1 performs pending task: when sending SMS message to the success of good friend's first, transmission task responds to management node server, and the response of this task is carried node server 1 and performed the state information of pending task for complete; The task response that management node server receiving node server 1 sends, and according to the response of this task, the task status of pending task is revised as executed in performing, amended task status table is as shown in table 3:
Table 3
Need to execute the task mark Perform the timestamp needing to execute the task Task status
Send SMS message 2013-9-18-12:00 Executed
…… …… ……
In the embodiment of the present invention, when node server performs pending mission failure, timer sends task and responds to management node server, this task response carrier state information is not for complete, the task status of pending task to be revised as according to the response of this task and not to perform by management node server, makes other node servers in cluster except this node server perform this pending task.Therefore, the machine even if this node server is delayed, also can make this pending task be performed, thus ensure that the reliability that cluster server is executed the task.
Embodiment 3
Embodiments provide the device that a kind of cluster server is executed the task.See Fig. 3, wherein, this device comprises:
First acquisition module 301, be unenforced pending mission bit stream for obtaining task status from task status table, this pending mission bit stream comprises the mark of pending task and performs the timestamp of pending task;
Second acquisition module 302, for obtaining the mark of the node server performing pending task;
First sending module 303, for when arriving the timestamp performing pending task, sending the mark of pending task to node server according to the mark of node server, making node server obtain according to the mark of pending task and perform pending task;
Second sending module 304, for when node server performs pending mission failure, transmission task responds to management node server, this task response carrier state information is not for complete, this state information is for pointing out the task status of the pending task of management node server, the task status of pending task to be revised as according to the response of this task by management node server do not perform, to perform this pending task to make other node servers in cluster except this node server.
Preferably, this device also comprises:
3rd sending module 305, for sending task requests to management node server, this task requests carries the mark of pending task, and management node server is revised as in execution according to the task status of task requests by pending task.
Preferably, this first acquisition module 301, comprising:
Acquiring unit 3011 is unenforced mission bit stream for obtaining task status;
Computing unit 3012, the difference of the timestamp that the execution needs comprised for calculation task information are executed the task and current time stamp;
First selected cell 3013, for selecting minimum value from difference, using mission bit stream corresponding for minimum value as pending mission bit stream.
Preferably, this device also comprises:
Receiver module 306, the mark that the needs for receiving user's input are executed the task and execution need the timestamp of executing the task;
Preserve module 307, for needing the timestamp of executing the task to be kept in task status table the mark needing to execute the task and execution.
Preferably, this second acquisition module 302, comprising:
Second selected cell 3021, for the node server of Stochastic choice from cluster server, using the node server of selection as the node server performing pending task;
Or the 3rd selected cell 3022, for the load according to the node server in cluster server, selects the node server of least-loaded, using the node server of least-loaded as the node server performing pending task.
In the embodiment of the present invention, when node server performs pending mission failure, timer sends task and responds to management node server, this task response carrier state information is not for complete, the task status of pending task to be revised as according to the response of this task and not to perform by management node server, makes other node servers in cluster except this node server perform this pending task.Therefore, the machine even if this node server is delayed, also can make this pending task be performed, thus ensure that the reliability that cluster server is executed the task.
It should be noted that: the device that the cluster server that above-described embodiment provides is executed the task is when cluster server is executed the task, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, internal structure by device is divided into different functional modules, to complete all or part of function described above.In addition, the device that the cluster server that above-described embodiment provides is executed the task and the embodiment of the method that cluster server is executed the task belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a cluster server method of executing the task, it is characterized in that, described method comprises:
From task status table, obtain task status is unenforced pending mission bit stream, and described pending mission bit stream comprises the mark of pending task and performs the timestamp of described pending task;
Obtain the mark of the node server performing described pending task;
When arriving the timestamp performing described pending task, send the mark of described pending task to described node server according to the mark of described node server, make described node server obtain according to the mark of described pending task and perform described pending task;
When described node server performs described pending mission failure, transmission task responds to management node server, described task response carrier state information is not for complete, described state information is for pointing out the task status of pending task described in described management node server, the task status of described pending task to be revised as according to the response of described task by described management node server do not perform, to make the described pending task of the execution of other node servers in cluster except described node server except.
2. the method for claim 1, is characterized in that, describedly obtains after task status is unenforced pending mission bit stream from task status table, and described method also comprises:
Send task requests to management node server, described task requests carries the mark of described pending task, and described management node server is revised as in execution according to the task status of described task requests by described pending task.
3. the method for claim 1, is characterized in that, the described task status that obtains from task status table is unenforced pending mission bit stream, comprising:
Obtaining task status is unenforced mission bit stream;
Calculate the difference of timestamp that execution needs that described mission bit stream comprises execute the task and current time stamp;
Minimum value is selected from described difference;
Using mission bit stream corresponding for described minimum value as described pending mission bit stream.
4. the method for claim 1, is characterized in that, described from task status table, obtain pending mission bit stream before, described method also comprises:
Receive the needs mark of executing the task of user's input and perform the timestamp that described needs execute the task;
The mark that described needs are executed the task and are performed the timestamp that described needs execute the task and be kept in described task status table.
5. the method for claim 1, is characterized in that, the described mark obtaining the node server performing described pending task, comprising:
Stochastic choice node server from cluster server, using the node server of described selection as the node server performing described pending task;
Or, according to the load of the node server in cluster server, select the node server of least-loaded, using the node server of described least-loaded as the node server performing described pending task.
6. a cluster server device of executing the task, it is characterized in that, described device comprises:
First acquisition module is unenforced pending mission bit stream for obtaining task status from task status table, and described pending mission bit stream comprises the mark of pending task and performs the timestamp of described pending task;
Second acquisition module, for obtaining the mark of the node server performing described pending task;
First sending module, for when arriving the timestamp performing described pending task, send the mark of described pending task to described node server according to the mark of described node server, make described node server obtain according to the mark of described pending task and perform described pending task;
Second sending module, for when described node server performs described pending mission failure, transmission task responds to management node server, described task response carrier state information is not for complete, described state information is for pointing out the task status of pending task described in described management node server, the task status of described pending task to be revised as according to the response of described task by described management node server do not perform, to make the described pending task of the execution of other node servers in cluster except described node server except.
7. device as claimed in claim 6, it is characterized in that, described device also comprises:
3rd sending module, for sending task requests to management node server, described task requests carries the mark of described pending task, and described management node server is revised as in execution according to the task status of described task requests by described pending task.
8. device as claimed in claim 6, it is characterized in that, described first acquisition module, comprising:
Acquiring unit is unenforced mission bit stream for obtaining task status;
Computing unit, the difference of the timestamp that the execution needs comprised for calculating described mission bit stream are executed the task and current time stamp;
First selected cell, for selecting minimum value from described difference, using mission bit stream corresponding for described minimum value as described pending mission bit stream.
9. device as claimed in claim 6, it is characterized in that, described device also comprises:
Receiver module, for receiving the needs mark of executing the task of user's input and performing the timestamp that described needs execute the task;
Preserve module, for the mark of being executed the task by described needs with perform the timestamp that described needs execute the task and be kept in described task status table.
10. device as claimed in claim 6, it is characterized in that, described second acquisition module, comprising:
Second selected cell, for the node server of Stochastic choice from cluster server, using the node server of described selection as the node server performing described pending task;
Or the 3rd selected cell, for the load according to the node server in cluster server, selects the node server of least-loaded, using the node server of described least-loaded as the node server performing described pending task.
CN201310453196.5A 2013-09-25 2013-09-25 The method and apparatus that a kind of cluster server performs task Active CN104468174B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310453196.5A CN104468174B (en) 2013-09-25 2013-09-25 The method and apparatus that a kind of cluster server performs task

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310453196.5A CN104468174B (en) 2013-09-25 2013-09-25 The method and apparatus that a kind of cluster server performs task

Publications (2)

Publication Number Publication Date
CN104468174A true CN104468174A (en) 2015-03-25
CN104468174B CN104468174B (en) 2017-10-13

Family

ID=52913593

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310453196.5A Active CN104468174B (en) 2013-09-25 2013-09-25 The method and apparatus that a kind of cluster server performs task

Country Status (1)

Country Link
CN (1) CN104468174B (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105100280A (en) * 2015-08-31 2015-11-25 广州酷狗计算机科技有限公司 Task allocation method and device
CN105959346A (en) * 2016-04-19 2016-09-21 ***股份有限公司 Data processing system and data processing method based on server cluster
CN106227596A (en) * 2016-07-13 2016-12-14 百度在线网络技术(北京)有限公司 Mission Monitor method and apparatus for task scheduling server
CN106339255A (en) * 2016-08-24 2017-01-18 北京小米移动软件有限公司 Timed task scheduling method, system and device, and servers
CN106529673A (en) * 2016-11-17 2017-03-22 北京百度网讯科技有限公司 Deep learning network training method and device based on artificial intelligence
CN106569878A (en) * 2015-10-08 2017-04-19 北京奇虎科技有限公司 Distributed timing task management method and system
CN107040607A (en) * 2017-05-19 2017-08-11 郑州云海信息技术有限公司 A kind of server data distribution system
CN107181788A (en) * 2017-03-31 2017-09-19 北京奇艺世纪科技有限公司 A kind of task processing method and device
CN107636551A (en) * 2016-09-22 2018-01-26 深圳市大疆创新科技有限公司 A kind of flight control method, device and intelligent terminal
CN107678840A (en) * 2016-08-01 2018-02-09 百度在线网络技术(北京)有限公司 System, method and apparatus for operation task
CN107832165A (en) * 2017-11-23 2018-03-23 国云科技股份有限公司 A kind of method for lifting distributed system processing request stability
CN108446171A (en) * 2018-02-01 2018-08-24 平安科技(深圳)有限公司 Electronic device, distributed system execute method for allocating tasks and storage medium
CN109144744A (en) * 2017-06-28 2019-01-04 北京京东尚科信息技术有限公司 Task processing system, method and apparatus
CN110650172A (en) * 2018-06-27 2020-01-03 广东神马搜索科技有限公司 Streaming task processing method and device and server
CN113448699A (en) * 2020-12-30 2021-09-28 北京新氧科技有限公司 Distributed timed task processing system, method and related device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101236513A (en) * 2007-01-30 2008-08-06 阿里巴巴公司 Distributed task system and distributed task management process
CN101471810A (en) * 2007-12-28 2009-07-01 华为技术有限公司 Method, device and system for implementing task in cluster circumstance
US20090210148A1 (en) * 2008-02-05 2009-08-20 Madhavi Jayanthi Mobile device and server for facilitating GPS based services
CN101715001A (en) * 2009-10-21 2010-05-26 南京邮电大学 Method for controlling execution of grid task
CN101834890A (en) * 2010-04-02 2010-09-15 浪潮(北京)电子信息产业有限公司 Intelligent management system and method of distributed system
CN102075358A (en) * 2010-12-31 2011-05-25 网宿科技股份有限公司 System and method for distributing and deploying content of large-scale server cluster
CN102508709A (en) * 2011-11-30 2012-06-20 国电南瑞科技股份有限公司 Distributed-cache-based acquisition task scheduling method in purchase, supply and selling integrated electric energy acquiring and monitoring system
CN102880503A (en) * 2012-08-24 2013-01-16 新浪网技术(中国)有限公司 Data analysis system and data analysis method
CN103227839A (en) * 2013-05-10 2013-07-31 网宿科技股份有限公司 Management system for regional autonomy of content distribution network server

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101236513A (en) * 2007-01-30 2008-08-06 阿里巴巴公司 Distributed task system and distributed task management process
CN101471810A (en) * 2007-12-28 2009-07-01 华为技术有限公司 Method, device and system for implementing task in cluster circumstance
US20090210148A1 (en) * 2008-02-05 2009-08-20 Madhavi Jayanthi Mobile device and server for facilitating GPS based services
CN101715001A (en) * 2009-10-21 2010-05-26 南京邮电大学 Method for controlling execution of grid task
CN101834890A (en) * 2010-04-02 2010-09-15 浪潮(北京)电子信息产业有限公司 Intelligent management system and method of distributed system
CN102075358A (en) * 2010-12-31 2011-05-25 网宿科技股份有限公司 System and method for distributing and deploying content of large-scale server cluster
CN102508709A (en) * 2011-11-30 2012-06-20 国电南瑞科技股份有限公司 Distributed-cache-based acquisition task scheduling method in purchase, supply and selling integrated electric energy acquiring and monitoring system
CN102880503A (en) * 2012-08-24 2013-01-16 新浪网技术(中国)有限公司 Data analysis system and data analysis method
CN103227839A (en) * 2013-05-10 2013-07-31 网宿科技股份有限公司 Management system for regional autonomy of content distribution network server

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
郑响萍, 周晓峰: "基于分布式软负载均衡的重试框架设计与实现", 《工业控制计算机》 *

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105100280A (en) * 2015-08-31 2015-11-25 广州酷狗计算机科技有限公司 Task allocation method and device
CN105100280B (en) * 2015-08-31 2019-09-13 广州酷狗计算机科技有限公司 Method for allocating tasks and device
CN106569878A (en) * 2015-10-08 2017-04-19 北京奇虎科技有限公司 Distributed timing task management method and system
CN105959346A (en) * 2016-04-19 2016-09-21 ***股份有限公司 Data processing system and data processing method based on server cluster
CN106227596A (en) * 2016-07-13 2016-12-14 百度在线网络技术(北京)有限公司 Mission Monitor method and apparatus for task scheduling server
CN107678840A (en) * 2016-08-01 2018-02-09 百度在线网络技术(北京)有限公司 System, method and apparatus for operation task
CN107678840B (en) * 2016-08-01 2021-08-24 百度在线网络技术(北京)有限公司 System, method and device for running tasks
CN106339255B (en) * 2016-08-24 2019-10-11 北京小米移动软件有限公司 Dispatching method, system, device and the server of timed task
CN106339255A (en) * 2016-08-24 2017-01-18 北京小米移动软件有限公司 Timed task scheduling method, system and device, and servers
CN107636551A (en) * 2016-09-22 2018-01-26 深圳市大疆创新科技有限公司 A kind of flight control method, device and intelligent terminal
CN106529673B (en) * 2016-11-17 2019-05-03 北京百度网讯科技有限公司 Deep learning network training method and device based on artificial intelligence
CN106529673A (en) * 2016-11-17 2017-03-22 北京百度网讯科技有限公司 Deep learning network training method and device based on artificial intelligence
CN107181788A (en) * 2017-03-31 2017-09-19 北京奇艺世纪科技有限公司 A kind of task processing method and device
CN107040607A (en) * 2017-05-19 2017-08-11 郑州云海信息技术有限公司 A kind of server data distribution system
CN109144744A (en) * 2017-06-28 2019-01-04 北京京东尚科信息技术有限公司 Task processing system, method and apparatus
CN107832165A (en) * 2017-11-23 2018-03-23 国云科技股份有限公司 A kind of method for lifting distributed system processing request stability
CN108446171A (en) * 2018-02-01 2018-08-24 平安科技(深圳)有限公司 Electronic device, distributed system execute method for allocating tasks and storage medium
CN108446171B (en) * 2018-02-01 2022-07-08 平安科技(深圳)有限公司 Electronic device, distributed system execution task allocation method and storage medium
CN110650172A (en) * 2018-06-27 2020-01-03 广东神马搜索科技有限公司 Streaming task processing method and device and server
CN110650172B (en) * 2018-06-27 2022-04-19 阿里巴巴(中国)有限公司 Streaming task processing method and device and server
CN113448699A (en) * 2020-12-30 2021-09-28 北京新氧科技有限公司 Distributed timed task processing system, method and related device

Also Published As

Publication number Publication date
CN104468174B (en) 2017-10-13

Similar Documents

Publication Publication Date Title
CN104468174A (en) Method and device for cluster servers to execute task
US20210377337A1 (en) Load balanced network file accesses
US20230376347A1 (en) Task allocation method, apparatus, storage medium, and electronic device
CN115328663B (en) Method, device, equipment and storage medium for scheduling resources based on PaaS platform
CN103561049A (en) Method for processing terminal scheduling request, system thereof and device thereof
CN105677462A (en) Distributed task system based on internet of things and business processing method
CN106528289B (en) Resource operation processing method and device
CN105468302B (en) A kind of method, apparatus and system of processing data
CN110489437A (en) Distributed transaction processing method, device, computer equipment and storage medium
CN104113435A (en) Method and device for generating identifier
CN104461747A (en) Distributed type task scheduling system
CN103945000A (en) Load balance method and load balancer
CN102385536B (en) Method and system for realization of parallel computing
CN105516086A (en) Service processing method and apparatus
CN113220431A (en) Cross-cloud distributed data task scheduling method, device and storage medium
CN110750453B (en) HTML 5-based intelligent mobile terminal testing method, system, server and storage medium
CN106059940A (en) Flow control method and device
CN109710397A (en) Data processing method, device, storage medium, processor and system
CN103581273A (en) Service executing method, device and system for distributed system
CN104267985A (en) Software loading method and device
CN103299298B (en) The method and system of process business
CN104092661A (en) Serial port communication method and apparatus of virtual machines
CN106101710A (en) A kind of distributed video transcoding method and device
CN102629345A (en) Chain type communication cooperation method, apparatus and system thereof
CN106210159A (en) A kind of domain name analytic method and equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: Room 810, 8 / F, 34 Haidian Street, Haidian District, Beijing 100080

Patentee after: BEIJING D-MEDIA COMMUNICATION TECHNOLOGY Co.,Ltd.

Address before: 100089 Beijing city Haidian District wanquanzhuang Road No. 28 Wanliu new building block A room 602

Patentee before: BEIJING D-MEDIA COMMUNICATION TECHNOLOGY Co.,Ltd.