CN104408552A - Method, device and system for cooperatively processing task - Google Patents

Method, device and system for cooperatively processing task Download PDF

Info

Publication number
CN104408552A
CN104408552A CN201410640243.1A CN201410640243A CN104408552A CN 104408552 A CN104408552 A CN 104408552A CN 201410640243 A CN201410640243 A CN 201410640243A CN 104408552 A CN104408552 A CN 104408552A
Authority
CN
China
Prior art keywords
task
node
working node
working
identification
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
CN201410640243.1A
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201410640243.1A priority Critical patent/CN104408552A/en
Publication of CN104408552A publication Critical patent/CN104408552A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06316Sequencing of tasks or work
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06313Resource planning in a project environment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0633Workflow analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management

Abstract

The invention relates to a method, a device and a system for cooperatively processing a task. The method comprises the following steps of: issuing the task to a management node by virtue of a first working node, wherein the task is carried with task identification and node identification of the first working node; enabling a second working node to obtain the task from the management node, sending the task approval request to the first working node to perform task approval according to the task approval request carried on the task; determining the approval result of the second working node as approved results by virtue of the first working node according to the mask approval result, sending the approval result to the second working node, and enabling the second working node to cooperatively process the task for the first working node. In the embodiment of the invention, the task is not assigned by virtue of the management node, but issued to the management node by virtue of the first working node, the task is obtained from the management node by virtue of the second management node without the need of sensing other nodes, and the task approval is performed on the first working node, so that the flexible task cooperative processing among the working nodes is realized.

Description

Task cooperative disposal route, device and system
Technical field
The present invention relates to field of computer technology, particularly relate to task cooperative disposal route, device and system.
Background technology
Along with the development of computer technology, when utilizing computing machine to carry out task process, other this computing machine of computer assisted can be adopted to carry out this task process.Its application scenarios can be the scene such as media processing, large data analysis, and the tasks such as concrete performing of task can be transcoding, play up, data analysis, effectively can improve the speed of tasks carrying by the task cooperative process of intercomputer.
In task cooperative disposal route of the prior art, first will build distributed cluster system, this system comprises a scheduling node and several working nodes, and wherein, scheduling node is responsible for carrying out task scheduling, and working node is responsible for carrying out task process.Particularly, the load of scheduling node collection work node, according to certain strategy, as load balancing, processes task assignment to corresponding working node.
Therefore, adopt task cooperative disposal route of the prior art, need scheduling node to be responsible for the scheduling assignment of task, therefore scheduling node needs the load of first collection work node, and obtain in advance and have which working node and status information thereof, ability assigned tasks, complex disposal process.
Summary of the invention
The embodiment of the present invention provides a kind of task cooperative disposal route, device and system, carries out task assignment without the need to management node, simply can realize task cooperative process flexibly between working node.
First aspect, provide a kind of task cooperative disposal route, described method comprises:
First working node release tasks is to management node, described task carries the node identification of task identification and described first working node, described task is obtained from described management node to make the second working node, and according to the task approval requirements that described task is carried, send task approval request and carry out task examination & approval to described first working node;
According to described task approval request, described first working node determines that the approval results of described second working node is that examination & approval are passed through, the approval results that described examination & approval are passed through is sent to described second working node, to make described second working node for task described in described first working node collaborative process.
In conjunction with first aspect, in the first implementation of first aspect, described method also comprises:
Send task cancel request message to described management node, described task cancel request message carries the node identification of described task identification and described first working node, sends task cancellation notice by described management node to described second working node.
In conjunction with first aspect, in the second implementation of first aspect, described task is also carried report and is submitted strategy to, and described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described management node, and described method also comprises:
Receive the Mission Monitor report message that described management node sends, described Mission Monitor report message is the Mission Monitor report message that described management node receives that described second working node submits strategy transmission to according to described report, and described Mission Monitor report message carries the node identification of described task identification and described first working node.
In conjunction with first aspect, in the third implementation of first aspect, described task is also carried report and is submitted strategy to, and described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described first working node, and described method also comprises:
Receive the Mission Monitor report message that described second working node submits to strategy to send according to described report, described Mission Monitor report message carries the node identification of described task identification and described first working node.
In conjunction with first aspect, in the 4th kind of implementation of first aspect, described task is also carried report and is submitted strategy to, and described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described management node, and described method also comprises:
Mission Monitor inquiry request message is sent to described management node;
Receive the Mission Monitor report message that described management node sends, described Mission Monitor report message is the Mission Monitor report message that described management node receives described second working node transmission, and described Mission Monitor report message carries the node identification of described task identification and described first working node.
In conjunction with first aspect, in the 5th kind of implementation of first aspect, described task is also carried report and is submitted strategy to, and described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described management node, and described method also comprises:
By the Mission Monitor of described first working node, condition of subscribing to sends to described management node, and described Mission Monitor subscribes to the node identification that condition comprises described task identification and described first working node;
Receive the Mission Monitor report message that described management node sends, described Mission Monitor report message carries the node identification of described task identification and described first working node, described Mission Monitor report message is the Mission Monitor report message that described management node receives described second working node transmission, and when the Mission Monitor that described Mission Monitor report message meets described first working node subscribes to condition, send to the Mission Monitor report message of described first working node.
In conjunction with first aspect, in the 6th kind of implementation of first aspect, before described first working node release tasks to management node, described method also comprises:
First working node is to management node signalling of bouquet login request message, and described cluster login request message comprises node identification and the node communication address of described first working node;
The cluster receiving the transmission of described management node has registered message, described cluster has been registered message as described management node and has been registered the node identification of described first working node and node communication address, and has registered message to the cluster that described first working node sends.
In conjunction with the 6th kind of implementation of first aspect, in the 7th kind of implementation of first aspect, described method also comprises:
First working node is to described management node signalling of bouquet de-registration request message, and described cluster de-registration request message comprises the node identification of described first working node;
The cluster receiving the transmission of described management node has nullified message, and it is that the node identification of described management node to described first working node is nullified that described cluster has nullified message, and has nullified message to the cluster that described first working node sends.
Second aspect, provide a kind of task cooperative disposal route, described method comprises:
Second working node obtains task from management node, and described task carries the node identification of task identification and described first working node, and described task is the task that the first working node is published to described management node;
According to the task approval requirements that described task is carried, send task approval request and carry out task examination & approval to described first working node;
The approval results that the examination & approval receiving described first working node transmission are passed through, the approval results that described examination & approval are passed through is the approval results of described second working node that described first working node is determined according to described task approval request is that examination & approval are passed through;
Described second working node is task described in described first working node collaborative process.
In conjunction with second aspect, in the first implementation of second aspect, described second working node obtains task from management node, comprising:
The task notifications that second working node receiving management node sends, described task notifications is after the first working node release tasks to described management node, the task notifications sent by described management node, described task notifications carries the node identification of described task identification and described first working node;
Node identification according to the described task identification carried in described task notifications and described first working node obtains described task from described management node.
In conjunction with the first implementation of second aspect, in the second implementation of second aspect, the task notifications that described second working node receiving management node sends, comprising: the second working node receiving management node issues the task notifications requiring to send to all working node according to the task that task is carried;
The node identification of described described task identification according to carrying in described task notifications and described first working node obtains described task from described management node, comprising:
Send first task inquiry request message according to described task notifications to described management node, in described first task inquiry request message, carry the node identification of described task identification and described first working node;
Receive the first task query response message that described management node sends, described task is carried, the described task described task that to be described management node inquire according to the node identification of described task identification and described first working node in described first task query response message.
In conjunction with second aspect, in the third implementation of second aspect, described second working node obtains task from management node, comprising:
Second working node is to management node timed sending second job enquiry request message;
Receive the second job enquiry response message that described management node sends, described second job enquiry response message is that described management node is when inquiring described task according to described second job enquiry request message, to the second job enquiry response message that described second working node sends, in described second job enquiry response message, carry described task.
In conjunction with second aspect, in the 4th kind of implementation of second aspect, described second working node obtains task from management node, comprising:
Second working node receiving management node issues the described task requiring to send to all working node according to the task that task is carried.
In conjunction with second aspect, in the 5th kind of implementation of second aspect, described second working node is from before management node acquisition task, described method also comprises: by the task of described second working node, condition of subscribing to sends to management node to the second working node, and described task subscribes to the service attribute condition that condition comprises task;
Described second working node obtains task from management node, comprising:
The task that second working node receiving management node sends, when the described task task that to be described management node carry according to described task is issued and required to judge that the task that described task meets described second working node subscribes to condition, described task is sent to described second working node.
In conjunction with the 5th kind of implementation of second aspect, in the 6th kind of implementation of second aspect, described method also comprises:
Receive the task cancellation notice that described management node sends, described task cancellation notice carries the node identification of described task identification and described first working node, described task cancellation notice is after described management node receives the task cancel request message of described first working node transmission, to the task cancellation notice that described second working node sends.
In conjunction with any one implementation in first to the 6th kind of implementation of second aspect or second aspect, in the 7th kind of implementation of second aspect, described method also comprises:
Receive the task cancellation notice that described management node sends, described task cancellation notice carries the node identification of described task identification and described first working node, described task cancellation notice is after described management node receives the task cancel request message of described first working node transmission, to the task cancellation notice that all working node sends.
In conjunction with second aspect, in the 8th kind of implementation of second aspect, described task is also carried report and is submitted strategy to, and described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described management node, and described method also comprises:
Strategy is submitted to send Mission Monitor report message to described management node according to described report, described Mission Monitor report message carries the node identification of described task identification and described first working node, to make described management node, described Mission Monitor report message is sent to described first working node.
In conjunction with second aspect, in the 9th kind of implementation of second aspect, described task is also carried report and is submitted strategy to, and described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described first working node, and described method also comprises:
Submit to strategy to send Mission Monitor report message to described first working node according to described report, described Mission Monitor report message carries the node identification of described task identification and described first working node.
In conjunction with second aspect, in the tenth kind of implementation of second aspect, described task is also carried report and is submitted strategy to, and described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described management node, and described method also comprises:
Strategy is submitted to send Mission Monitor report message to described management node according to described report, when receiving the Mission Monitor inquiry request message of described first working node transmission to make described management node, described Mission Monitor report message is sent to described first working node, and described Mission Monitor report message carries the node identification of described task identification and described first working node.
In conjunction with second aspect, in the 11 kind of implementation of second aspect, described task is also carried report and is submitted strategy to, and described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described management node, and described method also comprises:
Strategy is submitted to send Mission Monitor report message to described management node according to described report, described Mission Monitor report message carries the node identification of described task identification and described first working node, to make described management node when the Mission Monitor that described Mission Monitor report message meets the working node comprising described first working node subscribes to condition, the working node of described first working node is comprised described in being sent to by described Mission Monitor report message, described Mission Monitor subscribes to the node identification that condition comprises described task identification and described first working node.
In conjunction with second aspect, in the 12 kind of implementation of second aspect, described second working node is from before management node acquisition task, and described method also comprises:
Second working node is to management node signalling of bouquet login request message, and described cluster login request message comprises node identification and the node communication address of described second working node;
Receive the cluster that described management node sends and registered message, described cluster has been registered message as described management node and has been registered message to the cluster that the node identification of described second working node and node communication address register rear transmission.
In conjunction with the 12 kind of implementation of second aspect, in the 13 kind of implementation of second aspect, described method also comprises:
To described management node signalling of bouquet de-registration request message, described cluster de-registration request message comprises the node identification of described second working node;
Receive the cluster that described management node sends and nullified message, it is that the cluster that the node identification of described management node to described second working node nullifies rear transmission has nullified message that described cluster has nullified message.
The third aspect, provides a kind of task cooperative treating apparatus, and described device is arranged on the first working node, and described device comprises:
Transmitting element, for release tasks to management node, described task carries the node identification of task identification and described first working node, described task is obtained from described management node to make the second working node, and according to the task approval requirements that described task is carried, send task approval request and carry out task examination & approval to described first working node;
Examination & approval unit, for determining that according to described task approval request the approval results of described second working node is that examination & approval are passed through, the approval results that described examination & approval are passed through is sent to described second working node, to make described second working node for task described in described first working node collaborative process.
In conjunction with the third aspect, in the first implementation of the third aspect, described transmitting element, also for sending task cancel request message to described management node, described task cancel request message carries the node identification of described task identification and described first working node, sends task cancellation notice by described management node to described second working node.
In conjunction with the third aspect, in the second implementation of the third aspect, the described task that described transmitting element is issued also is carried report and is submitted strategy to, described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described management node, and described device also comprises:
Receiving element, for receiving the Mission Monitor report message that described management node sends, described Mission Monitor report message is the Mission Monitor report message that described management node receives that described second working node submits strategy transmission to according to described report, and described Mission Monitor report message carries the node identification of described task identification and described first working node.
In conjunction with the third aspect, in the third implementation of the third aspect, the described task that described transmitting element is issued also is carried report and is submitted strategy to, described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described first working node, and described device also comprises:
Receiving element, for receiving the Mission Monitor report message that described second working node submits to strategy to send according to described report, described Mission Monitor report message carries the node identification of described task identification and described first working node.
In conjunction with the third aspect, in the 4th kind of implementation of the third aspect, the described task that described transmitting element is issued also is carried report and is submitted strategy to, described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described management node, described transmitting element, also for sending Mission Monitor inquiry request message to described management node; Described device also comprises:
Receiving element, for receiving the Mission Monitor report message that described management node sends, described Mission Monitor report message is the Mission Monitor report message that described management node receives described second working node transmission, and described Mission Monitor report message carries the node identification of described task identification and described first working node.
In conjunction with the third aspect, in the 5th kind of implementation of the third aspect, the described task that described transmitting element is issued also is carried report and is submitted strategy to, described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described management node, described transmitting element, also for by the Mission Monitor of described first working node, condition of subscribing to sends to described management node, described Mission Monitor subscribes to the node identification that condition comprises described task identification and described first working node; Described device also comprises:
Receiving element, for receiving the Mission Monitor report message that described management node sends, described Mission Monitor report message carries the node identification of described task identification and described first working node, described Mission Monitor report message is the Mission Monitor report message that described management node receives described second working node transmission, and when the Mission Monitor that described Mission Monitor report message meets described first working node subscribes to condition, send to the Mission Monitor report message of described first working node.
In conjunction with the third aspect, in the 6th kind of implementation of the third aspect, described transmitting element, also for before release tasks to management node, to management node signalling of bouquet login request message, described cluster login request message comprises node identification and the node communication address of described first working node; Described device also comprises:
Receiving element, the cluster sent for receiving described management node has registered message, described cluster has been registered message as described management node and has been registered the node identification of described first working node and node communication address, and has registered message to the cluster that described first working node sends.
In conjunction with the 6th kind of implementation of the third aspect, in the 7th kind of implementation of the third aspect, described transmitting element, also for described management node signalling of bouquet de-registration request message, described cluster de-registration request message comprises the node identification of described first working node;
Described receiving element, the cluster also sent for receiving described management node has nullified message, it is that the node identification of described management node to described first working node is nullified that described cluster has nullified message, and has nullified message to the cluster that described first working node sends.
Fourth aspect, provides a kind of task cooperative treating apparatus, and described device is arranged on the second working node, and described device comprises:
Acquiring unit, for obtaining task from management node, described task carries the node identification of task identification and described first working node, and described task is the task that the first working node is published to described management node;
Transmitting element, the task approval requirements that the task for obtaining according to described acquiring unit is carried, sends task approval request and carries out task examination & approval to described first working node;
Receiving element, the approval results that the examination & approval sent for receiving described first working node are passed through, the approval results that described examination & approval are passed through is the approval results of described second working node that described first working node is determined according to described task approval request is that examination & approval are passed through;
Processing unit, for being task described in described first working node collaborative process.
In conjunction with fourth aspect, in the first implementation of fourth aspect, described acquiring unit comprises:
Receive subelement, for the task notifications that receiving management node sends, described task notifications is after the first working node release tasks to described management node, the task notifications sent by described management node, described task notifications carries the node identification of described task identification and described first working node;
Obtain subelement, for obtaining described task according to the node identification of the described task identification carried in the task notifications of described reception subelement reception and described first working node from described management node.
In conjunction with the first implementation of fourth aspect, in the second implementation of fourth aspect, described reception subelement, issues the task notifications requiring to send to all working node according to the task that task is carried specifically for receiving management node;
Described acquisition subelement, task notifications specifically for receiving according to described reception subelement sends first task inquiry request message to described management node, carries the node identification of described task identification and described first working node in described first task inquiry request message; Receive the first task query response message that described management node sends, described task is carried, the described task described task that to be described management node inquire according to the node identification of described task identification and described first working node in described first task query response message.
In conjunction with fourth aspect, in the third implementation of fourth aspect, described acquiring unit comprises:
Send subelement, for management node timed sending second job enquiry request message;
Receive subelement, for receiving the second job enquiry response message that described management node sends, described second job enquiry response message is that described management node is when inquiring described task according to described second job enquiry request message, to the second job enquiry response message that described second working node sends, in described second job enquiry response message, carry described task.
In conjunction with fourth aspect, in the 4th kind of implementation of fourth aspect, described acquiring unit, issues the described task requiring to send to all working node according to the task that task is carried specifically for receiving management node.
In conjunction with fourth aspect, in the 5th kind of implementation of fourth aspect, described transmitting element, also at described acquiring unit from before management node acquisition task, by the task of described second working node, condition of subscribing to sends to management node, and described task subscribes to the service attribute condition that condition comprises task;
Described acquiring unit, specifically for the task that receiving management node sends, when the described task task that to be described management node carry according to described task is issued and required to judge that the task that described task meets described second working node subscribes to condition, described task is sent to described second working node.
In conjunction with the 5th kind of implementation of fourth aspect, in the 6th kind of implementation of fourth aspect, described receiving element, also for receiving the task cancellation notice that described management node sends, described task cancellation notice carries the node identification of described task identification and described first working node, described task cancellation notice is after described management node receives the task cancel request message of described first working node transmission, to the task cancellation notice that described second working node sends.
In conjunction with any one implementation in first to the 6th kind of implementation of fourth aspect or fourth aspect, in the 7th kind of implementation of fourth aspect, described receiving element, also for receiving the task cancellation notice that described management node sends, described task cancellation notice carries the node identification of described task identification and described first working node, described task cancellation notice is after described management node receives the task cancel request message of described first working node transmission, to the task cancellation notice that all working node sends.
In conjunction with fourth aspect, in the 8th kind of implementation of fourth aspect, the described task that described acquiring unit obtains also is carried report and is submitted strategy to, described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described management node, described transmitting element, also for submitting to strategy to send Mission Monitor report message to described management node according to described report, described Mission Monitor report message carries the node identification of described task identification and described first working node, to make described management node, described Mission Monitor report message is sent to described first working node.
In conjunction with fourth aspect, in the 9th kind of implementation of fourth aspect, the described task that described acquiring unit obtains also is carried report and is submitted strategy to, described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described first working node, described transmitting element, also for submitting to strategy to send Mission Monitor report message to described first working node according to described report, described Mission Monitor report message carries the node identification of described task identification and described first working node.
In conjunction with fourth aspect, in the tenth kind of implementation of fourth aspect, the described task that described acquiring unit obtains also is carried report and is submitted strategy to, described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described management node, described transmitting element, also for submitting to strategy to send Mission Monitor report message to described management node according to described report, when receiving the Mission Monitor inquiry request message of described first working node transmission to make described management node, described Mission Monitor report message is sent to described first working node, described Mission Monitor report message carries the node identification of described task identification and described first working node.
In conjunction with fourth aspect, in the 11 kind of implementation of fourth aspect, the described task that described acquiring unit obtains also is carried report and is submitted strategy to, described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described management node, described transmitting element, also for submitting to strategy to send Mission Monitor report message to described management node according to described report, described Mission Monitor report message carries the node identification of described task identification and described first working node, to make described management node when the Mission Monitor that described Mission Monitor report message meets the working node comprising described first working node subscribes to condition, the working node of described first working node is comprised described in being sent to by described Mission Monitor report message, described Mission Monitor subscribes to the node identification that condition comprises described task identification and described first working node.
In conjunction with fourth aspect, in the 12 kind of implementation of fourth aspect, described transmitting element, also for before management node acquisition task, to management node signalling of bouquet login request message, described cluster login request message comprises node identification and the node communication address of described second working node;
Described receiving element, the cluster also sent for receiving described management node has registered message, and described cluster has been registered message as described management node and registered message to the cluster that the node identification of described second working node and node communication address register rear transmission.
In conjunction with the 12 kind of implementation of fourth aspect, in the 13 kind of implementation of fourth aspect, described transmitting element, also for described management node signalling of bouquet de-registration request message, described cluster de-registration request message comprises the node identification of described second working node;
Described receiving element, the cluster also sent for receiving described management node has nullified message, and it is that the cluster that the node identification of described management node to described second working node nullifies rear transmission has nullified message that described cluster has nullified message.
5th aspect, provides a kind of task cooperative processing system, and described system comprises: the first working node, the second working node and management node;
Described first working node, for release tasks to management node, described task carries the node identification of task identification and described first working node, described task is obtained from described management node to make the second working node, and according to the task approval requirements that described task is carried, send task approval request and carry out task examination & approval to described first working node; Determine that the approval results of described second working node is that examination & approval are passed through according to described task approval request, the approval results that described examination & approval are passed through is sent to described second working node, to make described second working node for task described in described first working node collaborative process;
Described second working node, for obtaining task from management node, described task carries the node identification of task identification and described first working node, and described task is the task that the first working node is published to described management node; According to the task approval requirements that described task is carried, send task approval request and carry out task examination & approval to described first working node; The approval results that the examination & approval receiving described first working node transmission are passed through, the approval results that described examination & approval are passed through is the approval results of described second working node that described first working node is determined according to described task approval request is that examination & approval are passed through; For task described in described first working node collaborative process;
Described management node, for receiving the task that the first working node is issued; Described task is sent to the second working node, the task approval requirements carried according to described task by described second working node, transmission task approval request carries out task examination & approval to described first working node, determine that the approval results of described second working node is that examination & approval are passed through by described first working node according to described task approval request, the approval results that described examination & approval are passed through is sent to described second working node, to make described second working node for task described in described first working node collaborative process.
In the task cooperative disposal route that the embodiment of the present invention provides, first by the first working node release tasks to management node, task is obtained from management node to make the second working node, and according to the task approval requirements that task is carried, task carries the node identification of task identification and the first working node, sends task approval request and carries out task examination & approval to the first working node; And then determine that the approval results of the second working node is that examination & approval are passed through by the first working node according to task approval request, sending to the second working node by examining the approval results passed through, is the first working node collaborative process task to make the second working node.Therefore, in the embodiment of the present invention, not carry out task assignment by management node, but by the first working node, task is distributed to management node, wherein, any working node all can be used as the first working node release tasks, thus realize assigning without the task scheduling concentrated, and, without the need to other node of perception cluster during the first working node release tasks, task is obtained to management node by the second working node, and carry out task examination & approval to the first working node, realize the selection to the second working node, thus achieve task cooperative process flexibly between working node simply.
Accompanying drawing explanation
The distributed type assemblies network architecture schematic diagram that Fig. 1 provides for the embodiment of the present invention;
The functional schematic of the management node that Fig. 2 provides for the embodiment of the present invention;
The functional schematic of the working node that Fig. 3 provides for the embodiment of the present invention;
The interface diagram of the management node that Fig. 4 provides for the embodiment of the present invention;
The interface diagram of the working node that Fig. 5 provides for the embodiment of the present invention;
The process flow diagram of the task cooperative disposal route of the first working node side that Fig. 6 provides for the embodiment of the present invention one;
The process flow diagram of the task cooperative disposal route of the second working node side that Fig. 7 provides for the embodiment of the present invention two;
The process flow diagram of the task cooperative disposal route of the management node side that Fig. 8 provides for the embodiment of the present invention three;
The task cooperative treating apparatus structural representation that Fig. 9 provides for the embodiment of the present invention four;
The task cooperative treating apparatus structural representation that Figure 10 provides for the embodiment of the present invention five;
The task cooperative treating apparatus structural representation that Figure 11 provides for the embodiment of the present invention six;
The task cooperative processing system structural representation that Figure 12 provides for the embodiment of the present invention seven.
Embodiment
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
For ease of the understanding to the embodiment of the present invention, be further explained explanation below in conjunction with accompanying drawing with specific embodiment, embodiment does not form the restriction to the embodiment of the present invention.
The distributed type assemblies network architecture schematic diagram that Fig. 1 provides for the embodiment of the present invention.This network architecture is made up of management node 101 and working node 102, wherein, the number of working node 102 is at least two, task cooperative process can be carried out between different working nodes 102, management node 101 and working node 102 are specifically as follows the equipment with computing power, such as computing machine.
In the embodiment of the present invention, management node 101 can have the function shown in Fig. 2, and particularly, management node 101 can comprise two kinds of functions below:
The first function is task management functions, and for realizing, task is issued/cancelled, task obtains and Mission Monitor;
Task is issued/is cancelled, and task can be provided to issue and cancel interface, and the task that receives is issued and cancelled, and preserves and the task of deletion.
Task obtains, and can provide job enquiry interface, and support performance querying node obtains task; Task subscribing interface can also be provided, support performance node subscription task.
Mission Monitor, can provide Mission Monitor reporting interface, and support performance node sends Mission Monitor information; Can also provide Mission Monitor query interface, support performance querying node obtains the monitor message of task; Mission Monitor subscribing interface can also be provided, support performance node subscription task monitor message.
The second function is cluster management function, for realizing Node registry/exit.
Node registry/exit, can provide cluster registration and unregistration interface, support performance node adds and exits cluster.
Working node 102 can have the function shown in Fig. 3, and particularly, working node 102 can comprise three kinds of functions below:
The first function is task management functions, issues/cancellation, task acquisition, Mission Monitor and task examination & approval for realizing task;
Task is issued/is cancelled, and the use management node task of providing can issue and cancel interface, issue or cancel announced task.
Task obtains, and can provide task notifications interface, reception task makes an announcement or cancellation notice; Task receiving interface can also be provided, receive task; Can also the task reception mechanism that provides of use management node, obtain task.
Mission Monitor, can provide Mission Monitor reporting interface, receives Mission Monitor information; Can also the Mission Monitor reporting interface that provides of use management node or task publisher node, send Mission Monitor information; Can also the Mission Monitor query interface that provides of use management node, obtain Mission Monitor information.
Task is examined, and task can be provided to examine interface, and the task of obtaining the submission of task receiving node receives approval request and examines.
The second function is cluster management function, for realizing Node registry/exit;
Node registry/exit, can the cluster registration and unregistration interface that provides of use management node, adds or exits cluster.
The third function is tasks carrying function, for realizing tasks carrying process.
Management node 101 can provide the relevant interface shown in Fig. 4, comprising: task issuing interface, task are cancelled interface, job enquiry interface, task subscribing interface, Mission Monitor reporting interface, monitoring and inquiry interface, Mission Monitor subscribing interface, cluster registration interface and cluster and nullified interface.
Working node 102 can provide the relevant interface shown in Fig. 5, comprising: task notifications interface, task receiving interface, Mission Monitor reporting interface, task examination & approval interface and node state query interface.
The process flow diagram of the task cooperative disposal route of the first working node side that Fig. 6 provides for the embodiment of the present invention one.First working node is task publisher node, and this task cooperative disposal route is based on the network architecture shown in Fig. 1, and the executive agent of described method is the first working node, and as shown in Figure 6, described method specifically comprises:
Step 601, first working node release tasks is to management node, described task carries the node identification of task identification and described first working node, described task is obtained from described management node to make the second working node, and according to the task approval requirements that described task is carried, send task approval request and carry out task examination & approval to described first working node.
Wherein, above-mentioned task can carry one or more following information:
Task examination & approval policy information, comprises and needs examination & approval, without the need to examination & approval.
Mission Monitor policy information, comprising: Report Tasks executing state, and executing state comprises normally, exception, in execution, complete, abandon; Report Tasks performs tolerance, performs metric data and comprises executed time, deadline etc.; Report sending strategy, sends report, tasks carrying and sends at the end of sending report, task by designated period and report, not report etc. and combinations thereof strategy when comprising task start; Strategy is submitted in report to, comprises that report sends to task publisher node, report sends to management node etc. and combinations thereof strategy; Report privacy policy, comprise task publisher node and can obtain/can not obtain, management node can obtain/can not obtain, all can obtain/can not to obtain etc. and combinations thereof strategy.
Mission bit stream, comprising: task identification; Task input definition, comprises input parameter mark and value, output parameter path etc.; Task process defines, and comprises task process type, mark, program or execution route (such as script or link etc.); Task exports definition, comprises task result and submits path (such as interface or address etc.) to.
Task distributor information, comprises exclusive node mark in cluster, mailing address, cluster authentication token (token).
Task digestion time information, if task exceeds the time limit not receive, then management node can remove this task.
Step 602, according to task approval request, the first working node determines that the approval results of the second working node is that examination & approval are passed through, approval results is sent to the second working node, to make the second working node for task described in the first working node collaborative process.
Wherein, after the second working node acquisition task, according to task examination & approval strategy, if need examination & approval, then can pass through the task examination & approval interface of the first working node (i.e. task publisher node), send task approval request; Otherwise, directly can carry out tasks carrying.
Above-mentioned task approval request can carry one or more information following: task identification; The clustered node mark of release tasks; The clustered node mark of reception task; Receive the state, load, service attribute (such as, alarm management node, performance management node) etc. of task node.
Task publisher node receives task approval request, can, according to preset strategy, as load balancing, select the examination & approval of load low working node to pass through, other node of examination & approval refusal.Working node obtains examination & approval by rear, executes the task.
In the embodiment of the present invention, the first working node specifically can be examined response message by task and approval results is sent to the second working node.
Task examination & approval response message can carry one or more information following: task identification; The clustered node mark of release tasks; The clustered node mark of reception task; Approval results: by, refusal.
In the embodiment of the present invention, after first working node release tasks to management node, described method can also comprise: send task cancel request message to described management node, described task cancel request message carries the node identification of described task identification and described first working node, sends task cancellation notice by described management node to described second working node.
Particularly, the first working node can be cancelled interface by the task of management node and cancel having issued of task.Task cancel request message can carry one or more information following: task identification; The clustered node mark of release tasks.Management node, by the task notifications interface of working node, sends task cancellation notice to all working node or subscriber node.Task cancellation notice can carry one or more information following: task identification; The clustered node mark of release tasks.Second working node can stop tasks carrying, abandon task after receiving the task cancellation notice of management node transmission.
In the embodiment of the present invention, the first working node can also carry out Mission Monitor to the tasks carrying situation of the second working node, and the first working node can take any one acquisition Mission Monitor report message in following manner.First kind of way, described task is also carried report and is submitted strategy to, described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described management node, first working node receives the Mission Monitor report message that described management node sends, described Mission Monitor report message is the Mission Monitor report message that described management node receives that described second working node submits strategy transmission to according to described report, and described Mission Monitor report message carries the node identification of described task identification and described first working node, the second way, described task is also carried report and is submitted strategy to, described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described first working node, first working node receives the Mission Monitor report message that described second working node submits to strategy to send according to described report, and described Mission Monitor report message carries the node identification of described task identification and described first working node, the third mode, described task is also carried report and is submitted strategy to, described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described management node, and the first working node sends Mission Monitor inquiry request message to described management node, receive the Mission Monitor report message that described management node sends, described Mission Monitor report message is the Mission Monitor report message that described management node receives described second working node transmission, and described Mission Monitor report message carries the node identification of described task identification and described first working node, 4th kind of mode, described task is also carried report and is submitted strategy to, described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described management node, by the Mission Monitor of described first working node, condition of subscribing to sends to described management node to first working node, described Mission Monitor subscribes to the node identification that condition comprises described task identification and described first working node, receive the Mission Monitor report message that described management node sends, described Mission Monitor report message carries the node identification of described task identification and described first working node, described Mission Monitor report message is the Mission Monitor report message that described management node receives described second working node transmission, and when the Mission Monitor that described Mission Monitor report message meets described first working node subscribes to condition, send to the Mission Monitor report message of described first working node.
First working node can select any one mode above-mentioned to obtain the Mission Monitor report message of the second working node generation, specifically can carry Mission Monitor strategy in task, so that strategy is submitted in the report that the second working node comprises according to the Mission Monitor strategy of task to, if require to send to management node, then send Mission Monitor report by the Mission Monitor reporting interface of management node, management node preserves Mission Monitor information; If require in Mission Monitor strategy to send to task publisher node, then send Mission Monitor report by the Mission Monitor reporting interface of the first working node.
Mission Monitor report message can carry following information: task identification; The clustered node mark of release tasks; The information of Mission Monitor policy mandates, comprises execution status of task, tasks carrying metric data etc.
The above-mentioned second way specifically can comprise: the second working node obtains Mission Monitor information by the Mission Monitor query interface of management node.After working node adds cluster, by the Mission Monitor subscribing interface subscription task monitor message of management node, can arrange subscription condition according to task identification, task attribute etc., task attribute comprises the service attribute of task, such as alarming assignment, performance tasks etc.Mission Monitor subscribe message can carry following information: the clustered node mark of subscriber; Subscription condition, comprises task identification, the clustered node mark of release tasks, the service attribute of task, such as alarming assignment, performance tasks etc.Management node meets subscription condition according to judgement task after receiving Mission Monitor report, then send Mission Monitor report by the Mission Monitor reporting interface of subscriber node.
Above-mentioned first kind of way and the second way can be implemented separately or implement simultaneously.
Management node can pass through cluster management working node, and therefore working node is before the described method of execution, also will carry out cluster registration.In the embodiment of the present invention, before described first working node release tasks to management node, described method can also comprise: the first working node is to management node signalling of bouquet login request message, and described cluster login request message comprises node identification and the node communication address of described first working node; The cluster receiving the transmission of described management node has registered message, described cluster has been registered message as described management node and has been registered the node identification of described first working node and node communication address, and has registered message to the cluster that described first working node sends.
After working node adds cluster, can ask to exit cluster, described method can also comprise: the first working node is to described management node signalling of bouquet de-registration request message, and described cluster de-registration request message comprises the node identification of described first working node; The cluster receiving the transmission of described management node has nullified message, and it is that the node identification of described management node to described first working node is nullified that described cluster has nullified message, and has nullified message to the cluster that described first working node sends.
Particularly, working node can provide cluster registration interface by management node, and signalling of bouquet registration request carries out clustered node registration to management node.Cluster registration request can carry following information: node identification; Node communication address.Management node receives cluster registration request, carries out Node registry and preserves Node registry information, returning cluster and registered message.Cluster has registered message can carry following information: clustered node identifies, and this is designated the unique identification of this node in cluster distributed by management node.
In addition, working node can nullify interface by the cluster of management node, and signalling of bouquet de-registration request is to management node.Cluster de-registration request can carry following information: clustered node identifies.Management node receives cluster de-registration request, nullifies this working node.
From above-mentioned processing procedure, in the task cooperative disposal route that the embodiment of the present invention provides, first by the first working node release tasks to management node, task is obtained from management node to make the second working node, and according to the task approval requirements that task is carried, send task approval request and carry out task examination & approval to the first working node; And then determine that the approval results of the second working node is that examination & approval are passed through by the first working node according to task approval request, sending to the second working node by examining the approval results passed through, is the first working node collaborative process task to make the second working node.Therefore, in the embodiment of the present invention, not carry out task assignment by management node, but by the first working node, task is distributed to management node, wherein, any working node all can be used as the first working node release tasks, thus realize assigning without the task scheduling concentrated, and, without the need to other node of perception cluster during the first working node release tasks, task is obtained to management node by the second working node, and carry out task examination & approval to the first working node, realize the selection to the second working node, thus achieve task cooperative process flexibly between working node simply.
The process flow diagram of the task cooperative disposal route of the second working node side that Fig. 7 provides for the embodiment of the present invention two.Second working node is task receiving node, and this task cooperative disposal route is based on the network architecture shown in Fig. 1, and the executive agent of described method is the second working node, and as shown in Figure 7, described method specifically comprises:
Step 701, the second working node obtains task from management node, and described task carries the node identification of task identification and described first working node, and described task is the task that the first working node is published to described management node.
Wherein, described second working node obtains task from management node, can take following various ways.
The first obtain manner, described second working node obtains task from management node, can comprise: the task notifications that the second working node receiving management node sends, described task notifications is after the first working node release tasks to described management node, the task notifications sent by described management node, described task notifications carries the node identification of described task identification and described first working node; Node identification according to the described task identification carried in described task notifications and described first working node obtains described task from described management node.
Preferably, the task notifications that described second working node receiving management node sends, can comprise: the second working node receiving management node issues the task notifications requiring to send to all working node according to the task that task is carried; The node identification of described described task identification according to carrying in described task notifications and described first working node obtains described task from described management node, can comprise: send first task inquiry request message according to described task notifications to described management node, in described first task inquiry request message, carry the node identification of described task identification and described first working node; Receive the first task query response message that described management node sends, described task is carried, the described task described task that to be described management node inquire according to the node identification of described task identification and described first working node in described first task query response message.
The second obtain manner, described second working node obtains task from management node, can comprise: the second working node is to management node timed sending second job enquiry request message; Receive the second job enquiry response message that described management node sends, described second job enquiry response message is that described management node is when inquiring described task according to described second job enquiry request message, to the second job enquiry response message that described second working node sends, in described second job enquiry response message, carry described task.
The third obtain manner, described second working node obtains task from management node, can comprise: the second working node receiving management node issues the described task requiring to send to all working node according to the task that task is carried.
4th kind of obtain manner, described second working node is from before management node acquisition task, described method also comprises: by the task of described second working node, condition of subscribing to sends to management node to the second working node, and described task subscribes to the service attribute condition that condition comprises task; Described second working node obtains task from management node, can comprise: the task that the second working node receiving management node sends, when the described task task that to be described management node carry according to described task is issued and required to judge that the task that described task meets described second working node subscribes to condition, described task is sent to described second working node.
Step 702, according to the task approval requirements that described task is carried, sends task approval request and carries out task examination & approval to described first working node.
Step 703, the approval results that the examination & approval receiving described first working node transmission are passed through, the approval results that described examination & approval are passed through is the approval results of described second working node that described first working node is determined according to described task approval request is that examination & approval are passed through.
Step 704, the second working node is task described in described first working node collaborative process.
In the embodiment of the present invention, second service node can also cancel the execution of task according to task cancellation notice, obtains task cancellation notice can take in following manner any one:
The first obtains the mode of task cancellation notice, receive the task cancellation notice that described management node sends, described task cancellation notice carries the node identification of described task identification and described first working node, described task cancellation notice is after described management node receives the task cancel request message of described first working node transmission, to the task cancellation notice that described second working node sends.
The second obtains the mode of task cancellation notice, receive the task cancellation notice that described management node sends, described task cancellation notice carries the node identification of described task identification and described first working node, described task cancellation notice is after described management node receives the task cancel request message of described first working node transmission, to the task cancellation notice that all working node sends.
In addition, Mission Monitor report message can also be sent to the first working node by the second working node in the process of executing the task, and sends Mission Monitor report message can take in following manner any one:
The first reports send mode, described task is also carried report and is submitted strategy to, described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described management node, second working node submits to strategy to send Mission Monitor report message to described management node according to described report, described Mission Monitor report message carries the node identification of described task identification and described first working node, to make described management node, described Mission Monitor report message is sent to described first working node.
The second report send mode, described task is also carried report and is submitted strategy to, described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described first working node, second working node submits to strategy to send Mission Monitor report message to described first working node according to described report, and described Mission Monitor report message carries the node identification of described task identification and described first working node.
The third reports send mode, described task is also carried report and is submitted strategy to, described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described management node, second working node submits to strategy to send Mission Monitor report message to described management node according to described report, when receiving the Mission Monitor inquiry request message of described first working node transmission to make described management node, described Mission Monitor report message is sent to described first working node, described Mission Monitor report message carries the node identification of described task identification and described first working node.
4th kind of report send mode, described task is also carried report and is submitted strategy to, described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described management node, second working node submits to strategy to send Mission Monitor report message to described management node according to described report, to make described management node when the Mission Monitor that described Mission Monitor report message meets the working node comprising described first working node subscribes to condition, the working node of described first working node is comprised described in being sent to by described Mission Monitor report message, described Mission Monitor subscribes to the node identification that condition comprises described task identification and described first working node.
In the embodiment of the present invention, the unified management of management node to working node can be realized by cluster registration, described second working node is from before management node acquisition task, described method can also comprise: the second working node is to management node signalling of bouquet login request message, and described cluster login request message comprises node identification and the node communication address of described second working node; Receive the cluster that described management node sends and registered message, described cluster has been registered message as described management node and has been registered message to the cluster that the node identification of described second working node and node communication address register rear transmission.
Working node also can exit cluster, and described method can also comprise: to described management node signalling of bouquet de-registration request message, described cluster de-registration request message comprises the node identification of described second working node; Receive the cluster that described management node sends and nullified message, it is that the cluster that the node identification of described management node to described second working node nullifies rear transmission has nullified message that described cluster has nullified message.
This task cooperative disposal route of process flow diagram of the task cooperative disposal route of the management node side that Fig. 8 provides for the embodiment of the present invention three is based on the network architecture shown in Fig. 1, and the executive agent of described method is management node, and as shown in Figure 8, described method specifically comprises:
Step 801, management node receives the task that the first working node is issued.
Step 802, described task is sent to the second working node, the task approval requirements carried according to described task by described second working node, transmission task approval request carries out task examination & approval to described first working node, determine that the approval results of described second working node is that examination & approval are passed through by described first working node according to described task approval request, the approval results that described examination & approval are passed through is sent to described second working node, to make described second working node for task described in described first working node collaborative process.
In the embodiment of the present invention, describedly send described task to the second working node, can comprise: send task notifications to the second working node; When receiving described second working node and obtaining request according to the task that described task notifications sends, send described task to described second working node.
Wherein, described transmission task notifications, to the second working node, can comprise: issue requirement to all working node transmission task notifications according to the task that described task is carried, carry the task identification of described task in described task notifications; Described when receiving described second working node and obtaining request according to the task that described task notifications sends, described task is sent to described second working node, can comprise: receive the first task inquiry request message that described second working node sends, in described first task inquiry request message, carry the task identification of described task; Described task is inquired about according to the task identification of described task; Send first task query response message to described second working node, in described first task query response message, carry described task.
In the embodiment of the present invention, describedly send described task to the second working node, can comprise: issue according to the task that described task is carried the second job enquiry request message requiring to receive described second working node timed sending; When inquiring described task according to described second job enquiry request message, sending the second job enquiry response message to described second working node, in described second job enquiry response message, carrying described task.
Or, describedly send described task to the second working node, can comprise: the task of carrying according to described task is issued and required described task to be sent to all working node, using described all working node as described second working node.
Or, describedly send described task to the second working node, can comprise: when the task issue of carrying according to described task requires to judge that described task meets the task subscription condition of described second working node, described task is sent to described second working node.
Or described method can also comprise: receive the task cancel request message that described first working node sends; Task cancellation notice is sent to described second working node.
Or described method can also comprise: receive the task cancel request message that described first working node sends; Task cancellation notice is sent to all working node.
Or described method can also comprise: receive the Mission Monitor report message that described second working node sends; Described Mission Monitor report message is sent to described first working node.
Or described method can also comprise: receive the Mission Monitor report message that described second working node sends; When receiving the Mission Monitor inquiry request message that described first working node sends, described Mission Monitor report message is sent to described first working node.
Or described method can also comprise: receive the Mission Monitor report message that described second working node sends; When meeting the Mission Monitor comprising the working node of described first working node and subscribing to condition, described in being sent to by described Mission Monitor report message, comprise the working node of described first working node.
Or, before described management node receives the task of the first working node issue, described method can also comprise: management node receives the cluster login request message that the first working node sends, and described cluster login request message comprises node identification and the node communication address of described first working node; The node identification of described first working node and node communication address are registered, and has registered message to described first working node signalling of bouquet;
Described send described task to the second working node before, described method can also comprise: receive the cluster login request message that the second working node sends, described cluster login request message comprises node identification and the node communication address of described second working node; The node identification of described second working node and node communication address are registered, and has registered message to described second working node signalling of bouquet.
In the embodiment of the present invention, described method can also comprise: receive the cluster de-registration request message that described first working node sends, described cluster de-registration request message comprises the node identification of described first working node; The node identification of described first working node is nullified, and has nullified message to described first working node signalling of bouquet; Or receive the cluster de-registration request message that described second working node sends, described cluster de-registration request message comprises the node identification of described second working node; The node identification of described second working node is nullified, and has nullified message to described second working node signalling of bouquet.
From above-mentioned processing procedure, in the task cooperative disposal route that the embodiment of the present invention provides, without the task scheduling dispatch node concentrated, any working node all can release tasks, when working node task is issued, can not other node of perception cluster, can task cooperative flexibly be carried out between working node.Further, based on task cooperative flexibly between working node, provide the working node of cluster in operational flexible planning ability, the working node of different business ability can being combined cooperation provides the business function of needs; . cluster can free transversal stretching, according to service needed, can increase working node online; Support the quick merging of cluster: two or more cluster merges into a cluster, and need only select based on a cluster, other clustered node is registered to this cluster management node.
The task cooperative treating apparatus structural representation that Fig. 9 provides for the embodiment of the present invention four.This device is arranged on the first working node, and as shown in Figure 9, this device comprises:
Transmitting element 901, for release tasks to management node, described task carries the node identification of task identification and described first working node, described task is obtained from described management node to make the second working node, and according to the task approval requirements that described task is carried, send task approval request and carry out task examination & approval to described first working node;
Examination & approval unit 902, for determining that according to described task approval request the approval results of described second working node is that examination & approval are passed through, the approval results that described examination & approval are passed through is sent to described second working node, to make described second working node for task described in described first working node collaborative process.
Preferably, described transmitting element 901, also for sending task cancel request message to described management node, described task cancel request message carries the node identification of described task identification and described first working node, sends task cancellation notice by described management node to described second working node.
Preferably, the described task that described transmitting element 901 is issued also is carried report and is submitted strategy to, and described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described management node, and described device also comprises:
Receiving element, for receiving the Mission Monitor report message that described management node sends, described Mission Monitor report message is the Mission Monitor report message that described management node receives that described second working node submits strategy transmission to according to described report, and described Mission Monitor report message carries the node identification of described task identification and described first working node.
Preferably, the described task that described transmitting element 901 is issued also is carried report and is submitted strategy to, and described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described first working node, and described device also comprises:
Receiving element, for receiving the Mission Monitor report message that described second working node submits to strategy to send according to described report, described Mission Monitor report message carries the node identification of described task identification and described first working node.
Preferably, the described task that described transmitting element 901 is issued also is carried report and is submitted strategy to, described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described management node, described transmitting element 901, also for sending Mission Monitor inquiry request message to described management node; Described device also comprises:
Receiving element, for receiving the Mission Monitor report message that described management node sends, described Mission Monitor report message is the Mission Monitor report message that described management node receives described second working node transmission, and described Mission Monitor report message carries the node identification of described task identification and described first working node.
Preferably, the described task that described transmitting element 901 is issued also is carried report and is submitted strategy to, described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described management node, described transmitting element 901, also for by the Mission Monitor of described first working node, condition of subscribing to sends to described management node, described Mission Monitor subscribes to the node identification that condition comprises described task identification and described first working node; Described device also comprises:
Receiving element, for receiving the Mission Monitor report message that described management node sends, described Mission Monitor report message carries the node identification of described task identification and described first working node, described Mission Monitor report message is the Mission Monitor report message that described management node receives described second working node transmission, and when the Mission Monitor that described Mission Monitor report message meets described first working node subscribes to condition, send to the Mission Monitor report message of described first working node.
Preferably, described transmitting element 901, also for before release tasks to management node, to management node signalling of bouquet login request message, described cluster login request message comprises node identification and the node communication address of described first working node; Described device also comprises:
Receiving element, the cluster sent for receiving described management node has registered message, described cluster has been registered message as described management node and has been registered the node identification of described first working node and node communication address, and has registered message to the cluster that described first working node sends.
Preferably, described transmitting element 901, also for described management node signalling of bouquet de-registration request message, described cluster de-registration request message comprises the node identification of described first working node;
Described receiving element, the cluster also sent for receiving described management node has nullified message, it is that the node identification of described management node to described first working node is nullified that described cluster has nullified message, and has nullified message to the cluster that described first working node sends.
The task cooperative treating apparatus structural representation that Figure 10 provides for the embodiment of the present invention five.This device is arranged on the second working node, and as shown in Figure 10, this device comprises:
Acquiring unit 1001, for obtaining task from management node, described task carries the node identification of task identification and described first working node, and described task is the task that the first working node is published to described management node;
Transmitting element 1002, the task approval requirements that the task for obtaining according to described acquiring unit 1001 is carried, sends task approval request and carries out task examination & approval to described first working node;
Receiving element 1003, the approval results that the examination & approval sent for receiving described first working node are passed through, the approval results that described examination & approval are passed through is the approval results of described second working node that described first working node is determined according to described task approval request is that examination & approval are passed through;
Processing unit 1004, for being task described in described first working node collaborative process.
Preferably, described acquiring unit 1001 comprises:
Receive subelement, for the task notifications that receiving management node sends, described task notifications is after the first working node release tasks to described management node, the task notifications sent by described management node, described task notifications carries the node identification of described task identification and described first working node;
Obtain subelement, for obtaining described task according to the node identification of the described task identification carried in the task notifications of described reception subelement reception and described first working node from described management node.
Preferably, described reception subelement, issues the task notifications requiring to send to all working node according to the task that task is carried specifically for receiving management node;
Described acquisition subelement, task notifications specifically for receiving according to described reception subelement sends first task inquiry request message to described management node, carries the node identification of described task identification and described first working node in described first task inquiry request message; Receive the first task query response message that described management node sends, described task is carried, the described task described task that to be described management node inquire according to the node identification of described task identification and described first working node in described first task query response message.
Preferably, described acquiring unit 1001 comprises:
Send subelement, for management node timed sending second job enquiry request message;
Receive subelement, for receiving the second job enquiry response message that described management node sends, described second job enquiry response message is that described management node is when inquiring described task according to described second job enquiry request message, to the second job enquiry response message that described second working node sends, in described second job enquiry response message, carry described task.
Preferably, described acquiring unit 1001, issues the described task requiring to send to all working node according to the task that task is carried specifically for receiving management node.
Preferably, described transmitting element 1002, also at described acquiring unit 1001 from before management node acquisition task, by the task of described second working node, condition of subscribing to sends to management node, and described task subscribes to the service attribute condition that condition comprises task;
Described acquiring unit 1001, specifically for the task that receiving management node sends, when the described task task that to be described management node carry according to described task is issued and required to judge that the task that described task meets described second working node subscribes to condition, described task is sent to described second working node.
Preferably, described receiving element 1003, also for receiving the task cancellation notice that described management node sends, described task cancellation notice carries the node identification of described task identification and described first working node, described task cancellation notice is after described management node receives the task cancel request message of described first working node transmission, to the task cancellation notice that described second working node sends.
Preferably, described receiving element 1003, also for receiving the task cancellation notice that described management node sends, described task cancellation notice carries the node identification of described task identification and described first working node, described task cancellation notice is after described management node receives the task cancel request message of described first working node transmission, to the task cancellation notice that all working node sends.
Preferably, the described task that described acquiring unit 1001 obtains also is carried report and is submitted strategy to, described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described management node, described transmitting element 1002, also for submitting to strategy to send Mission Monitor report message to described management node according to described report, described Mission Monitor report message carries the node identification of described task identification and described first working node, to make described management node, described Mission Monitor report message is sent to described first working node.
Preferably, the described task that described acquiring unit 1001 obtains also is carried report and is submitted strategy to, described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described first working node, described transmitting element 1002, also for submitting to strategy to send Mission Monitor report message to described first working node according to described report, described Mission Monitor report message carries the node identification of described task identification and described first working node.
Preferably, the described task that described acquiring unit 1001 obtains also is carried report and is submitted strategy to, described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described management node, described transmitting element 1002, also for submitting to strategy to send Mission Monitor report message to described management node according to described report, when receiving the Mission Monitor inquiry request message of described first working node transmission to make described management node, described Mission Monitor report message is sent to described first working node, described Mission Monitor report message carries the node identification of described task identification and described first working node.
Preferably, the described task that described acquiring unit 1001 obtains also is carried report and is submitted strategy to, described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described management node, described transmitting element 1002, also for submitting to strategy to send Mission Monitor report message to described management node according to described report, described Mission Monitor report message carries the node identification of described task identification and described first working node, to make described management node when the Mission Monitor that described Mission Monitor report message meets the working node comprising described first working node subscribes to condition, the working node of described first working node is comprised described in being sent to by described Mission Monitor report message, described Mission Monitor subscribes to the node identification that condition comprises described task identification and described first working node.
Preferably, described transmitting element 1002, also for before management node acquisition task, to management node signalling of bouquet login request message, described cluster login request message comprises node identification and the node communication address of described second working node;
Described receiving element 1003, the cluster also sent for receiving described management node has registered message, and described cluster has been registered message as described management node and registered message to the cluster that the node identification of described second working node and node communication address register rear transmission.
Preferably, described transmitting element 1002, also for described management node signalling of bouquet de-registration request message, described cluster de-registration request message comprises the node identification of described second working node;
Described receiving element 1003, the cluster also sent for receiving described management node has nullified message, and it is that the cluster that the node identification of described management node to described second working node nullifies rear transmission has nullified message that described cluster has nullified message.
The task cooperative treating apparatus structural representation that Figure 11 provides for the embodiment of the present invention six.This device is arranged on management node, and as shown in figure 11, this device comprises:
Receiving element 1101, for receiving the task that the first working node is issued;
Transmitting element 1102, for sending the task that described receiving element 1101 receives to the second working node, the task approval requirements carried according to described task by described second working node, transmission task approval request carries out task examination & approval to described first working node, determine that the approval results of described second working node is that examination & approval are passed through by described first working node according to described task approval request, the approval results that described examination & approval are passed through is sent to described second working node, to make described second working node for task described in described first working node collaborative process.
Preferably, described transmitting element 1102 comprises:
First sends subelement, for sending task notifications to the second working node;
Second sends subelement, for when receiving described second working node and obtaining request according to the task that described task notifications sends, sends described task to described second working node.
Preferably, described first sends subelement, and the task specifically for carrying according to described task is issued and required to send task notifications to all working node, carries the task identification of described task in described task notifications;
Described second sends subelement comprises:
Receiver module, for receiving the first task inquiry request message that described second working node sends, carries the task identification of described task in described first task inquiry request message;
Enquiry module, the task identification for receiving according to described receiver module inquires about described task;
Sending module, for sending first task query response message to described second working node, carries described task in described first task query response message.
Preferably, described transmitting element 1102 comprises:
Receive subelement, the task for carrying according to described task issues the second job enquiry request message requiring to receive described second working node timed sending;
Send subelement, for when inquiring described task according to described second job enquiry request message, sending the second job enquiry response message to described second working node, in described second job enquiry response message, carrying described task.
Preferably, described transmitting element 1102, the task specifically for carrying according to described task is issued and is required described task to be sent to all working node, using described all working node as described second working node.
Preferably, described transmitting element 1102, when requiring to judge that described task meets the task subscription condition of described second working node specifically for issuing when the task of carrying according to described task, sends to described second working node by described task.
Preferably, described receiving element 1101, also for receiving the task cancel request message that described first working node sends;
Described transmitting element 1102, also for sending task cancellation notice to described second working node.
Preferably, described receiving element 1101, also for receiving the task cancel request message that described first working node sends;
Described transmitting element 1102, also for sending task cancellation notice to all working node.
Preferably, described receiving element 1101, also for receiving the Mission Monitor report message that described second working node sends;
Described transmitting element 1102, the Mission Monitor report message also for being received by described receiving element 1101 sends to described first working node.
Preferably, described receiving element 1101, also for receiving the Mission Monitor report message that described second working node sends;
Described transmitting element 1102, also for when receiving the Mission Monitor inquiry request message that described first working node sends, sends to described first working node by described Mission Monitor report message.
Preferably, described receiving element 1101, also for receiving the Mission Monitor report message that described second working node sends;
Described transmitting element 1102, also for when meeting the Mission Monitor comprising the working node of described first working node and subscribing to condition, comprises the working node of described first working node described in being sent to by described Mission Monitor report message.
Preferably, described receiving element 1101, also for before the task of issuing at reception first working node, receive the cluster login request message that the first working node sends, described cluster login request message comprises node identification and the node communication address of described first working node;
Described transmitting element 1102, also for registering the node identification of described first working node and node communication address, and has registered message to described first working node signalling of bouquet;
Described receiving element 1101, also for before sending described task to the second working node, receive the cluster login request message that the second working node sends, described cluster login request message comprises node identification and the node communication address of described second working node;
Described transmitting element 1102, also for registering the node identification of described second working node and node communication address, and has registered message to described second working node signalling of bouquet.
Preferably, described receiving element 1101, also for receiving the cluster de-registration request message that described first working node sends, described cluster de-registration request message comprises the node identification of described first working node;
Described transmitting element 1102, also for nullifying the node identification of described first working node, and has nullified message to described first working node signalling of bouquet; Or
Described receiving element 1101, also for receiving the cluster de-registration request message that described second working node sends, described cluster de-registration request message comprises the node identification of described second working node;
Described transmitting element 1102, also for nullifying the node identification of described second working node, and has nullified message to described second working node signalling of bouquet.
The task cooperative processing system structural representation that Figure 12 provides for the embodiment of the present invention seven.As shown in figure 12, this system comprises: the first working node 1201, second working node 1202 and management node 1203;
Described first working node 1201, for release tasks to management node 1203, described task carries the node identification of task identification and described first working node, described task is obtained from described management node 1203 to make the second working node 1202, and according to the task approval requirements that described task is carried, send task approval request and carry out task examination & approval to described first working node 1201; Determine that the approval results of described second working node 1202 is that examination & approval are passed through according to described task approval request, the approval results that described examination & approval are passed through is sent to described second working node 1202, to make described second working node 1202 for task described in described first working node 1201 collaborative process;
Described second working node 1202, for obtaining task from management node 1203, described task carries the node identification of task identification and described first working node, and described task is the task that the first working node is published to described management node 1203; According to the task approval requirements that described task is carried, send task approval request and carry out task examination & approval to described first working node 1201; The approval results that the examination & approval receiving described first working node 1201 transmission are passed through, the approval results that described examination & approval are passed through is the approval results of described second working node 1202 that described first working node 1201 is determined according to described task approval request is that examination & approval are passed through; For task described in described first working node 1201 collaborative process;
Described management node 1203, for receiving the task that the first working node 1201 is issued; Described task is sent to the second working node 1202, the task approval requirements carried according to described task by described second working node 1202, transmission task approval request carries out task examination & approval to described first working node 1201, determine that the approval results of described second working node 1202 is that examination & approval are passed through by described first working node 1201 according to described task approval request, the approval results that described examination & approval are passed through is sent to described second working node 1202, to make described second working node for task described in described first working node 1201 collaborative process.
Professional should recognize further, in conjunction with unit and the algorithm steps of each example of embodiment disclosed herein description, can realize with electronic hardware, computer software or the combination of the two, in order to the interchangeability of hardware and software is clearly described, generally describe composition and the step of each example in the above description according to function.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
The software module that the method described in conjunction with embodiment disclosed herein or the step of algorithm can use hardware, processor to perform, or the combination of the two is implemented.Software module can be placed in the storage medium of other form any known in random access memory (RAM), internal memory, ROM (read-only memory) (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field.
Above-described embodiment; object of the present invention, technical scheme and beneficial effect are further described; be understood that; the foregoing is only the specific embodiment of the present invention; the protection domain be not intended to limit the present invention; within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (45)

1. a task cooperative disposal route, is characterized in that, described method comprises:
First working node release tasks is to management node, described task carries the node identification of task identification and described first working node, described task is obtained from described management node to make the second working node, and according to the task approval requirements that described task is carried, send task approval request and carry out task examination & approval to described first working node;
According to described task approval request, described first working node determines that the approval results of described second working node is that examination & approval are passed through, the approval results that described examination & approval are passed through is sent to described second working node, to make described second working node for task described in described first working node collaborative process.
2. method according to claim 1, is characterized in that, described method also comprises:
Send task cancel request message to described management node, described task cancel request message carries the node identification of described task identification and described first working node, sends task cancellation notice by described management node to described second working node.
3. method according to claim 1, is characterized in that, described task is also carried report and submitted strategy to, and described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described management node, and described method also comprises:
Receive the Mission Monitor report message that described management node sends, described Mission Monitor report message is the Mission Monitor report message that described management node receives that described second working node submits strategy transmission to according to described report, and described Mission Monitor report message carries the node identification of described task identification and described first working node.
4. method according to claim 1, it is characterized in that, described task is also carried report and is submitted strategy to, and described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described first working node, and described method also comprises:
Receive the Mission Monitor report message that described second working node submits to strategy to send according to described report, described Mission Monitor report message carries the node identification of described task identification and described first working node.
5. method according to claim 1, is characterized in that, described task is also carried report and submitted strategy to, and described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described management node, and described method also comprises:
Mission Monitor inquiry request message is sent to described management node;
Receive the Mission Monitor report message that described management node sends, described Mission Monitor report message is the Mission Monitor report message that described management node receives described second working node transmission, and described Mission Monitor report message carries the node identification of described task identification and described first working node.
6. method according to claim 1, is characterized in that, described task is also carried report and submitted strategy to, and described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described management node, and described method also comprises:
By the Mission Monitor of described first working node, condition of subscribing to sends to described management node, and described Mission Monitor subscribes to the node identification that condition comprises described task identification and described first working node;
Receive the Mission Monitor report message that described management node sends, described Mission Monitor report message carries the node identification of described task identification and described first working node, described Mission Monitor report message is the Mission Monitor report message that described management node receives described second working node transmission, and when the Mission Monitor that described Mission Monitor report message meets described first working node subscribes to condition, send to the Mission Monitor report message of described first working node.
7. method according to claim 1, is characterized in that, before described first working node release tasks to management node, described method also comprises:
First working node is to management node signalling of bouquet login request message, and described cluster login request message comprises node identification and the node communication address of described first working node;
The cluster receiving the transmission of described management node has registered message, described cluster has been registered message as described management node and has been registered the node identification of described first working node and node communication address, and has registered message to the cluster that described first working node sends.
8. method according to claim 7, is characterized in that, described method also comprises:
First working node is to described management node signalling of bouquet de-registration request message, and described cluster de-registration request message comprises the node identification of described first working node;
The cluster receiving the transmission of described management node has nullified message, and it is that the node identification of described management node to described first working node is nullified that described cluster has nullified message, and has nullified message to the cluster that described first working node sends.
9. a task cooperative disposal route, is characterized in that, described method comprises:
Second working node obtains task from management node, and described task carries the node identification of task identification and described first working node, and described task is the task that the first working node is published to described management node;
According to the task approval requirements that described task is carried, send task approval request and carry out task examination & approval to described first working node;
The approval results that the examination & approval receiving described first working node transmission are passed through, the approval results that described examination & approval are passed through is the approval results of described second working node that described first working node is determined according to described task approval request is that examination & approval are passed through;
Described second working node is task described in described first working node collaborative process.
10. method according to claim 9, is characterized in that, described second working node obtains task from management node, comprising:
The task notifications that second working node receiving management node sends, described task notifications is after the first working node release tasks to described management node, the task notifications sent by described management node, described task notifications carries the node identification of described task identification and described first working node;
Node identification according to the described task identification carried in described task notifications and described first working node obtains described task from described management node.
11. methods according to claim 10, it is characterized in that, the task notifications that described second working node receiving management node sends, comprising: the second working node receiving management node issues the task notifications requiring to send to all working node according to the task that task is carried;
The node identification of described described task identification according to carrying in described task notifications and described first working node obtains described task from described management node, comprising:
Send first task inquiry request message according to described task notifications to described management node, in described first task inquiry request message, carry the node identification of described task identification and described first working node;
Receive the first task query response message that described management node sends, described task is carried, the described task described task that to be described management node inquire according to the node identification of described task identification and described first working node in described first task query response message.
12. methods according to claim 9, is characterized in that, described second working node obtains task from management node, comprising:
Second working node is to management node timed sending second job enquiry request message;
Receive the second job enquiry response message that described management node sends, described second job enquiry response message is that described management node is when inquiring described task according to described second job enquiry request message, to the second job enquiry response message that described second working node sends, in described second job enquiry response message, carry described task.
13. methods according to claim 9, is characterized in that, described second working node obtains task from management node, comprising:
Second working node receiving management node issues the described task requiring to send to all working node according to the task that task is carried.
14. methods according to claim 9, it is characterized in that, described second working node is from before management node acquisition task, described method also comprises: by the task of described second working node, condition of subscribing to sends to management node to the second working node, and described task subscribes to the service attribute condition that condition comprises task;
Described second working node obtains task from management node, comprising:
The task that second working node receiving management node sends, when the described task task that to be described management node carry according to described task is issued and required to judge that the task that described task meets described second working node subscribes to condition, described task is sent to described second working node.
15. methods according to claim 14, is characterized in that, described method also comprises:
Receive the task cancellation notice that described management node sends, described task cancellation notice carries the node identification of described task identification and described first working node, described task cancellation notice is after described management node receives the task cancel request message of described first working node transmission, to the task cancellation notice that described second working node sends.
16. methods according to claim arbitrary in claim 9 to 15, it is characterized in that, described method also comprises:
Receive the task cancellation notice that described management node sends, described task cancellation notice carries the node identification of described task identification and described first working node, described task cancellation notice is after described management node receives the task cancel request message of described first working node transmission, to the task cancellation notice that all working node sends.
17. methods according to claim 9, is characterized in that, described task is also carried report and submitted strategy to, and described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described management node, and described method also comprises:
Strategy is submitted to send Mission Monitor report message to described management node according to described report, described Mission Monitor report message carries the node identification of described task identification and described first working node, to make described management node, described Mission Monitor report message is sent to described first working node.
18. methods according to claim 9, it is characterized in that, described task is also carried report and is submitted strategy to, and described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described first working node, and described method also comprises:
Submit to strategy to send Mission Monitor report message to described first working node according to described report, described Mission Monitor report message carries the node identification of described task identification and described first working node.
19. methods according to claim 9, is characterized in that, described task is also carried report and submitted strategy to, and described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described management node, and described method also comprises:
Strategy is submitted to send Mission Monitor report message to described management node according to described report, when receiving the Mission Monitor inquiry request message of described first working node transmission to make described management node, described Mission Monitor report message is sent to described first working node, and described Mission Monitor report message carries the node identification of described task identification and described first working node.
20. methods according to claim 9, is characterized in that, described task is also carried report and submitted strategy to, and described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described management node, and described method also comprises:
Strategy is submitted to send Mission Monitor report message to described management node according to described report, described Mission Monitor report message carries the node identification of described task identification and described first working node, to make described management node when the Mission Monitor that described Mission Monitor report message meets the working node comprising described first working node subscribes to condition, the working node of described first working node is comprised described in being sent to by described Mission Monitor report message, described Mission Monitor subscribes to the node identification that condition comprises described task identification and described first working node.
21. methods according to claim 9, is characterized in that, described second working node is from before management node acquisition task, and described method also comprises:
Second working node is to management node signalling of bouquet login request message, and described cluster login request message comprises node identification and the node communication address of described second working node;
Receive the cluster that described management node sends and registered message, described cluster has been registered message as described management node and has been registered message to the cluster that the node identification of described second working node and node communication address register rear transmission.
22. methods according to claim 21, is characterized in that, described method also comprises:
To described management node signalling of bouquet de-registration request message, described cluster de-registration request message comprises the node identification of described second working node;
Receive the cluster that described management node sends and nullified message, it is that the cluster that the node identification of described management node to described second working node nullifies rear transmission has nullified message that described cluster has nullified message.
23. 1 kinds of task cooperative treating apparatus, described device is arranged on the first working node, it is characterized in that, described device comprises:
Transmitting element, for release tasks to management node, described task carries the node identification of task identification and described first working node, described task is obtained from described management node to make the second working node, and according to the task approval requirements that described task is carried, send task approval request and carry out task examination & approval to described first working node;
Examination & approval unit, for determining that according to described task approval request the approval results of described second working node is that examination & approval are passed through, the approval results that described examination & approval are passed through is sent to described second working node, to make described second working node for task described in described first working node collaborative process.
24. devices according to claim 23, it is characterized in that, described transmitting element, also for sending task cancel request message to described management node, described task cancel request message carries the node identification of described task identification and described first working node, sends task cancellation notice by described management node to described second working node.
25. devices according to claim 23, it is characterized in that, the described task that described transmitting element is issued also is carried report and is submitted strategy to, and described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described management node, and described device also comprises:
Receiving element, for receiving the Mission Monitor report message that described management node sends, described Mission Monitor report message is the Mission Monitor report message that described management node receives that described second working node submits strategy transmission to according to described report, and described Mission Monitor report message carries the node identification of described task identification and described first working node.
26. devices according to claim 23, it is characterized in that, the described task that described transmitting element is issued also is carried report and is submitted strategy to, described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described first working node, and described device also comprises:
Receiving element, for receiving the Mission Monitor report message that described second working node submits to strategy to send according to described report, described Mission Monitor report message carries the node identification of described task identification and described first working node.
27. devices according to claim 23, it is characterized in that, the described task that described transmitting element is issued also is carried report and is submitted strategy to, described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described management node, described transmitting element, also for sending Mission Monitor inquiry request message to described management node; Described device also comprises:
Receiving element, for receiving the Mission Monitor report message that described management node sends, described Mission Monitor report message is the Mission Monitor report message that described management node receives described second working node transmission, and described Mission Monitor report message carries the node identification of described task identification and described first working node.
28. devices according to claim 23, it is characterized in that, the described task that described transmitting element is issued also is carried report and is submitted strategy to, described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described management node, described transmitting element, also for by the Mission Monitor of described first working node, condition of subscribing to sends to described management node, described Mission Monitor subscribes to the node identification that condition comprises described task identification and described first working node; Described device also comprises:
Receiving element, for receiving the Mission Monitor report message that described management node sends, described Mission Monitor report message carries the node identification of described task identification and described first working node, described Mission Monitor report message is the Mission Monitor report message that described management node receives described second working node transmission, and when the Mission Monitor that described Mission Monitor report message meets described first working node subscribes to condition, send to the Mission Monitor report message of described first working node.
29. devices according to claim 23, it is characterized in that, described transmitting element, also for before release tasks to management node, to management node signalling of bouquet login request message, described cluster login request message comprises node identification and the node communication address of described first working node; Described device also comprises:
Receiving element, the cluster sent for receiving described management node has registered message, described cluster has been registered message as described management node and has been registered the node identification of described first working node and node communication address, and has registered message to the cluster that described first working node sends.
30. devices according to claim 29, is characterized in that, described transmitting element, and also for described management node signalling of bouquet de-registration request message, described cluster de-registration request message comprises the node identification of described first working node;
Described receiving element, the cluster also sent for receiving described management node has nullified message, it is that the node identification of described management node to described first working node is nullified that described cluster has nullified message, and has nullified message to the cluster that described first working node sends.
31. 1 kinds of task cooperative treating apparatus, described device is arranged on the second working node, it is characterized in that, described device comprises:
Acquiring unit, for obtaining task from management node, described task carries the node identification of task identification and described first working node, and described task is the task that the first working node is published to described management node;
Transmitting element, the task approval requirements that the task for obtaining according to described acquiring unit is carried, sends task approval request and carries out task examination & approval to described first working node;
Receiving element, the approval results that the examination & approval sent for receiving described first working node are passed through, the approval results that described examination & approval are passed through is the approval results of described second working node that described first working node is determined according to described task approval request is that examination & approval are passed through;
Processing unit, for being task described in described first working node collaborative process.
32. devices according to claim 31, is characterized in that, described acquiring unit comprises:
Receive subelement, for the task notifications that receiving management node sends, described task notifications is after the first working node release tasks to described management node, the task notifications sent by described management node, described task notifications carries the node identification of described task identification and described first working node;
Obtain subelement, for obtaining described task according to the node identification of the described task identification carried in the task notifications of described reception subelement reception and described first working node from described management node.
33. devices according to claim 32, is characterized in that, described reception subelement, issue the task notifications requiring to send to all working node specifically for receiving management node according to the task that task is carried;
Described acquisition subelement, task notifications specifically for receiving according to described reception subelement sends first task inquiry request message to described management node, carries the node identification of described task identification and described first working node in described first task inquiry request message; Receive the first task query response message that described management node sends, described task is carried, the described task described task that to be described management node inquire according to the node identification of described task identification and described first working node in described first task query response message.
34. devices according to claim 31, is characterized in that, described acquiring unit comprises:
Send subelement, for management node timed sending second job enquiry request message;
Receive subelement, for receiving the second job enquiry response message that described management node sends, described second job enquiry response message is that described management node is when inquiring described task according to described second job enquiry request message, to the second job enquiry response message that described second working node sends, in described second job enquiry response message, carry described task.
35. devices according to claim 31, is characterized in that, described acquiring unit, issue the described task requiring to send to all working node specifically for receiving management node according to the task that task is carried.
36. devices according to claim 31, it is characterized in that, described transmitting element, also at described acquiring unit from before management node acquisition task, by the task of described second working node, condition of subscribing to sends to management node, and described task subscribes to the service attribute condition that condition comprises task;
Described acquiring unit, specifically for the task that receiving management node sends, when the described task task that to be described management node carry according to described task is issued and required to judge that the task that described task meets described second working node subscribes to condition, described task is sent to described second working node.
37. devices according to claim 36, it is characterized in that, described receiving element, also for receiving the task cancellation notice that described management node sends, described task cancellation notice carries the node identification of described task identification and described first working node, described task cancellation notice is after described management node receives the task cancel request message of described first working node transmission, to the task cancellation notice that described second working node sends.
38. devices according to claim arbitrary in claim 31 to 37, it is characterized in that, described receiving element, also for receiving the task cancellation notice that described management node sends, described task cancellation notice carries the node identification of described task identification and described first working node, described task cancellation notice is after described management node receives the task cancel request message of described first working node transmission, to the task cancellation notice that all working node sends.
39. devices according to claim 31, it is characterized in that, the described task that described acquiring unit obtains also is carried report and is submitted strategy to, described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described management node, described transmitting element, also for submitting to strategy to send Mission Monitor report message to described management node according to described report, described Mission Monitor report message carries the node identification of described task identification and described first working node, to make described management node, described Mission Monitor report message is sent to described first working node.
40. devices according to claim 31, it is characterized in that, the described task that described acquiring unit obtains also is carried report and is submitted strategy to, described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described first working node, described transmitting element, also for submitting to strategy to send Mission Monitor report message to described first working node according to described report, described Mission Monitor report message carries the node identification of described task identification and described first working node.
41. devices according to claim 31, it is characterized in that, the described task that described acquiring unit obtains also is carried report and is submitted strategy to, described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described management node, described transmitting element, also for submitting to strategy to send Mission Monitor report message to described management node according to described report, when receiving the Mission Monitor inquiry request message of described first working node transmission to make described management node, described Mission Monitor report message is sent to described first working node, described Mission Monitor report message carries the node identification of described task identification and described first working node.
42. devices according to claim 31, it is characterized in that, the described task that described acquiring unit obtains also is carried report and is submitted strategy to, described report is submitted to strategy to be used to indicate described second working node and Mission Monitor report message is sent to described management node, described transmitting element, also for submitting to strategy to send Mission Monitor report message to described management node according to described report, described Mission Monitor report message carries the node identification of described task identification and described first working node, to make described management node when the Mission Monitor that described Mission Monitor report message meets the working node comprising described first working node subscribes to condition, the working node of described first working node is comprised described in being sent to by described Mission Monitor report message, described Mission Monitor subscribes to the node identification that condition comprises described task identification and described first working node.
43. devices according to claim 31, it is characterized in that, described transmitting element, also for before management node acquisition task, to management node signalling of bouquet login request message, described cluster login request message comprises node identification and the node communication address of described second working node;
Described receiving element, the cluster also sent for receiving described management node has registered message, and described cluster has been registered message as described management node and registered message to the cluster that the node identification of described second working node and node communication address register rear transmission.
44. devices according to claim 43, is characterized in that, described transmitting element, and also for described management node signalling of bouquet de-registration request message, described cluster de-registration request message comprises the node identification of described second working node;
Described receiving element, the cluster also sent for receiving described management node has nullified message, and it is that the cluster that the node identification of described management node to described second working node nullifies rear transmission has nullified message that described cluster has nullified message.
45. 1 kinds of task cooperative processing systems, is characterized in that, described system comprises: the first working node, the second working node and management node;
Described first working node, for release tasks to management node, described task carries the node identification of task identification and described first working node, described task is obtained from described management node to make the second working node, and according to the task approval requirements that described task is carried, send task approval request and carry out task examination & approval to described first working node; Determine that the approval results of described second working node is that examination & approval are passed through according to described task approval request, the approval results that described examination & approval are passed through is sent to described second working node, to make described second working node for task described in described first working node collaborative process;
Described second working node, for obtaining task from management node, described task carries the node identification of task identification and described first working node, and described task is the task that the first working node is published to described management node; According to the task approval requirements that described task is carried, send task approval request and carry out task examination & approval to described first working node; The approval results that the examination & approval receiving described first working node transmission are passed through, the approval results that described examination & approval are passed through is the approval results of described second working node that described first working node is determined according to described task approval request is that examination & approval are passed through; For task described in described first working node collaborative process;
Described management node, for receiving the task that the first working node is issued; Described task is sent to the second working node, the task approval requirements carried according to described task by described second working node, transmission task approval request carries out task examination & approval to described first working node, determine that the approval results of described second working node is that examination & approval are passed through by described first working node according to described task approval request, the approval results that described examination & approval are passed through is sent to described second working node, to make described second working node for task described in described first working node collaborative process.
CN201410640243.1A 2014-11-13 2014-11-13 Method, device and system for cooperatively processing task Pending CN104408552A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410640243.1A CN104408552A (en) 2014-11-13 2014-11-13 Method, device and system for cooperatively processing task

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410640243.1A CN104408552A (en) 2014-11-13 2014-11-13 Method, device and system for cooperatively processing task

Publications (1)

Publication Number Publication Date
CN104408552A true CN104408552A (en) 2015-03-11

Family

ID=52646181

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410640243.1A Pending CN104408552A (en) 2014-11-13 2014-11-13 Method, device and system for cooperatively processing task

Country Status (1)

Country Link
CN (1) CN104408552A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104951306A (en) * 2015-06-17 2015-09-30 深圳市腾讯计算机系统有限公司 Data processing method and system based on real-time calculation frame
CN106960307A (en) * 2017-03-01 2017-07-18 广州明动软件股份有限公司 A kind of trans-departmental multi-layer investment administrative examination and approval system and method
CN107634987A (en) * 2017-08-23 2018-01-26 国网西藏电力有限公司电力科学研究院 Intelligent transprovincially commission verification system and method based on most optimum distribution of resources
CN107911406A (en) * 2017-09-30 2018-04-13 平安科技(深圳)有限公司 Network task flow shifting method, equipment and storage medium
CN108243085A (en) * 2016-12-26 2018-07-03 腾讯科技(深圳)有限公司 Push, setting method and the device of communication group status indicator
CN108810042A (en) * 2017-04-28 2018-11-13 华为技术有限公司 A kind of task processing method, relevant device and system
CN109614232A (en) * 2018-12-07 2019-04-12 网易(杭州)网络有限公司 Task processing method, device, storage medium and electronic device
CN109842671A (en) * 2018-11-30 2019-06-04 畅捷通信息技术股份有限公司 A kind of method and system of browser and interapplication communications of declaring dutiable goods automatically
CN111553545A (en) * 2020-07-13 2020-08-18 四川新网银行股份有限公司 Method for optimizing batch task scheduling dependence

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101072133A (en) * 2007-05-23 2007-11-14 华中科技大学 High-performance computing system based on peer-to-peer network
CN101986650A (en) * 2010-07-09 2011-03-16 广东工业大学 Dynamic group establishment-based cooperative control method
CN102081841A (en) * 2011-01-18 2011-06-01 北京世纪高通科技有限公司 Method and system for processing huge traffic data
CN102622265A (en) * 2011-01-28 2012-08-01 天脉聚源(北京)传媒科技有限公司 Method and system for task distribution
CN103152428A (en) * 2013-03-19 2013-06-12 汉柏科技有限公司 Method for carrying out service communication among nodes on cloud platform
CN103581225A (en) * 2012-07-25 2014-02-12 中国银联股份有限公司 Distributed system node processing task method
CN103685416A (en) * 2012-09-20 2014-03-26 联想(北京)有限公司 Distributed task allocation and claim method and electronic devices

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101072133A (en) * 2007-05-23 2007-11-14 华中科技大学 High-performance computing system based on peer-to-peer network
CN101986650A (en) * 2010-07-09 2011-03-16 广东工业大学 Dynamic group establishment-based cooperative control method
CN102081841A (en) * 2011-01-18 2011-06-01 北京世纪高通科技有限公司 Method and system for processing huge traffic data
CN102622265A (en) * 2011-01-28 2012-08-01 天脉聚源(北京)传媒科技有限公司 Method and system for task distribution
CN103581225A (en) * 2012-07-25 2014-02-12 中国银联股份有限公司 Distributed system node processing task method
CN103685416A (en) * 2012-09-20 2014-03-26 联想(北京)有限公司 Distributed task allocation and claim method and electronic devices
CN103152428A (en) * 2013-03-19 2013-06-12 汉柏科技有限公司 Method for carrying out service communication among nodes on cloud platform

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104951306B (en) * 2015-06-17 2018-03-20 深圳市腾讯计算机系统有限公司 Data processing method and system based on real-time Computational frame
CN104951306A (en) * 2015-06-17 2015-09-30 深圳市腾讯计算机系统有限公司 Data processing method and system based on real-time calculation frame
CN108243085A (en) * 2016-12-26 2018-07-03 腾讯科技(深圳)有限公司 Push, setting method and the device of communication group status indicator
CN108243085B (en) * 2016-12-26 2020-08-04 腾讯科技(深圳)有限公司 Method and device for pushing and setting communication group state identifier
CN106960307A (en) * 2017-03-01 2017-07-18 广州明动软件股份有限公司 A kind of trans-departmental multi-layer investment administrative examination and approval system and method
CN108810042A (en) * 2017-04-28 2018-11-13 华为技术有限公司 A kind of task processing method, relevant device and system
CN107634987B (en) * 2017-08-23 2020-07-24 国网西藏电力有限公司电力科学研究院 Intelligent trans-provincial entrustment verification system and method based on resource optimization configuration
CN107634987A (en) * 2017-08-23 2018-01-26 国网西藏电力有限公司电力科学研究院 Intelligent transprovincially commission verification system and method based on most optimum distribution of resources
CN107911406A (en) * 2017-09-30 2018-04-13 平安科技(深圳)有限公司 Network task flow shifting method, equipment and storage medium
WO2019062180A1 (en) * 2017-09-30 2019-04-04 平安科技(深圳)有限公司 Network-based task transfer method, and device and storage medium
CN107911406B (en) * 2017-09-30 2021-03-23 平安科技(深圳)有限公司 Network-based task flow method, equipment and storage medium
CN109842671A (en) * 2018-11-30 2019-06-04 畅捷通信息技术股份有限公司 A kind of method and system of browser and interapplication communications of declaring dutiable goods automatically
CN109842671B (en) * 2018-11-30 2022-08-30 畅捷通信息技术股份有限公司 Method and system for communication between browser and automatic tax declaring application program
CN109614232A (en) * 2018-12-07 2019-04-12 网易(杭州)网络有限公司 Task processing method, device, storage medium and electronic device
CN111553545A (en) * 2020-07-13 2020-08-18 四川新网银行股份有限公司 Method for optimizing batch task scheduling dependence

Similar Documents

Publication Publication Date Title
CN104408552A (en) Method, device and system for cooperatively processing task
CN109510846B (en) API calling system, method and device, electronic equipment and storage medium
CN105472400B (en) A kind of information push method and system
CN103944924B (en) Method of ubiquitous network publish-subscribe middleware model based on RESTful
CN107294808A (en) The methods, devices and systems of interface testing
CN111861140A (en) Service processing method, device, storage medium and electronic device
CN103577251A (en) Event based Internet computing processing system and method
CN108111499A (en) Service process performance optimization method, device, electronic equipment and storage medium
CN109831507A (en) Internet of Things system, load balancing method and storage medium
CN106161643A (en) Task distribution formula processing method, device and Cloud Server
WO2020249345A1 (en) Method for providing control applications, and configuration controller
CN102957594A (en) Message queue-based message processing method, related device and system
CN102750472B (en) A kind of method for authenticating, Apparatus and system
CN106855795A (en) A kind of Proxy program operated between App and server software
CN106874371A (en) A kind of data processing method and device
KR20180015027A (en) Apparatus and Method for Automatic Error Alarm of DDS Applications System
Isah et al. A Data-Driven Digital Twin Network Architecture in the Industrial Internet of Things (IIoT) Applications
CN105335362B (en) The processing method and system of real time data, instant disposal system for treating
JPH10320362A (en) Method for transmitting communication in network including communication service and network for using the same
CN104253702A (en) Terminal management method and system
CN104104555B (en) Monitoring method, system, control terminal and actuating station
CN104270431A (en) Method and device for concurrency control
CN109102256A (en) A kind of O&M method and server
CN114817671A (en) Log analysis method and system for air conditioner Internet of things
CN107566216A (en) A kind of monitoring method, device and operation system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150311

RJ01 Rejection of invention patent application after publication