CN109922050A - A kind of task detection method and device - Google Patents

A kind of task detection method and device Download PDF

Info

Publication number
CN109922050A
CN109922050A CN201910108943.9A CN201910108943A CN109922050A CN 109922050 A CN109922050 A CN 109922050A CN 201910108943 A CN201910108943 A CN 201910108943A CN 109922050 A CN109922050 A CN 109922050A
Authority
CN
China
Prior art keywords
task
performer
actuator
goal
allocated
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
CN201910108943.9A
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.)
Pu Xin Heng Ye Technology Development (beijing) Co Ltd
Original Assignee
Pu Xin Heng Ye Technology Development (beijing) 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 Pu Xin Heng Ye Technology Development (beijing) Co Ltd filed Critical Pu Xin Heng Ye Technology Development (beijing) Co Ltd
Priority to CN201910108943.9A priority Critical patent/CN109922050A/en
Publication of CN109922050A publication Critical patent/CN109922050A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

This application provides a kind of task detection method and device, wherein the task detection method includes: to send task after the heartbeat data packets for receiving the transmission of at least one task performer to the corresponding task performer of each heartbeat data packets and determine detection packet;It receives at least one task performer response task and determines the response message that detection packet returns;Information according to response, determines whether at least one task performer is able to carry out task to be allocated.Using the above scheme, task based access control determines the response message of detection packet feedback to be determined to execute the task performer of task to be allocated, ensures that the task requests of user can be responded by task performer in time, improves the usage experience of user.

Description

A kind of task detection method and device
Technical field
This application involves task scheduling technique fields, in particular to a kind of task detection method and device.
Background technique
Currently, remote procedure call (Remote Procedure Call, RPC) is in Distributed Application, cloud computing, in incognito It is widely applied in business.It is being transported specifically, executing task by task central dispatching task performer to complete the request of user During row, carrying out detection in time to the operating status of task performer is the premise item for guaranteeing remote procedure call stability Part.
In the prior art, the operating status of task performer is detected by way of heart beat probes, and passes through length The heart beat probes of time carry out the operating status of monitor task actuator, situation that can be normal in task performer operating status Under, task is distributed to task performer so that task performer executes task.
Wherein, based on the mode of heart beat probes come monitor task actuator, only it can determine whether task performer is in Normal operating condition (i.e. health status).But in the case where network environment is poor, task performer may postpone to execute Task causes the request of user that cannot be timely responded to.
Therefore, the method whether task performer can execute task can be determined by needing one kind.
Summary of the invention
In view of this, the embodiment of the present application is designed to provide a kind of task detection method and device, can be based on appointing Business determines that the response message of detection packet feedback can be determined to execute the task performer of task to be allocated, ensures that use The task requests at family can be responded by task performer in time, improve the usage experience of user.
In a first aspect, the embodiment of the present application provides a kind of task detection method, wherein include:
After the heartbeat data packets for receiving the transmission of at least one task performer, to each heartbeat data packets corresponding Actuator transmission task of being engaged in determines detection packet;
It receives at least one described task performer and responds the response message that the determining detection packet of the task returns;
According to the response message, determine whether at least one described task performer is able to carry out task to be allocated.
With reference to first aspect, the embodiment of the present application provides the first possible embodiment of first aspect, wherein institute It states according to the response message, determines whether at least one described task performer is able to carry out task to be allocated, comprising:
According to the response message, the corresponding detection score value of each task performer is determined;
For each task performer, by the corresponding detection score value of the task performer and minimum detection score value progress is preset Comparison;If the detection score value presets minimum detection score value more than or equal to described, it is determined that the task performer is able to carry out Task to be allocated.
With reference to first aspect or the first possible embodiment of first aspect, the embodiment of the present application provide first party The possible embodiment of second of face, wherein determining it is to be allocated whether at least one described task performer is able to carry out After task, further includes:
The task to be allocated is distributed to the goal task actuator for being able to carry out the task to be allocated.
The possible embodiment of second with reference to first aspect, the embodiment of the present application provide the third of first aspect Possible embodiment, wherein the task to be allocated is distributed to the goal task for being able to carry out the task to be allocated and is executed After device, further includes:
Detect the goal task actuator whether the task that successful execution distributes;
If it is not, then controlling the goal task actuator repeats distributing for task;
It is more than preset threshold, and the goal task in the number that the goal task actuator repeats the task When actuator executes the mission failure, controls the goal task actuator and stop executing the task.
The third possible embodiment with reference to first aspect, the embodiment of the present application provide the 4th kind of first aspect Possible embodiment, wherein the task to be allocated is multiple;Stop described in execution controlling the goal task actuator After task, further includes:
Stop executing distributing for a task in multiple distributing for tasks controlling the goal task actuator Afterwards, it controls the goal task actuator and executes its in multiple distributing for tasks in addition to one distributing for task The task that he distributes.
The third possible embodiment with reference to first aspect, the embodiment of the present application provide the 5th kind of first aspect Possible embodiment, wherein the goal task actuator is multiple;The control goal task actuator stopping is held The row task, comprising:
A goal task actuator in multiple goal task actuators is controlled to stop executing the task;
After controlling the goal task actuator and stopping the execution task, further includes:
Other goal tasks in multiple goal task actuators in addition to one goal task actuator are controlled to hold Row device executes the task.
With reference to first aspect to the 5th kind of possible embodiment of first aspect, the embodiment of the present application provides first party The 6th kind of possible embodiment in face, wherein further include:
For each task performer, executed according to the corresponding response message of the task performer and the task performer The task execution information generated when the task to be allocated obtains the monitoring log corresponding to the task performer.
Second aspect, the embodiment of the present application also provide a kind of task detection device, comprising:
Sending module, for receive at least one task performer transmission heartbeat data packets after, to each heartbeat The corresponding task performer of data packet sends task and determines detection packet;
Receiving module responds the sound that the task determines detection packet return for receiving at least one described task performer Answer information;
Determining module, for determining whether at least one described task performer is able to carry out according to the response message Task to be allocated.
In conjunction with second aspect, the embodiment of the present application provides the first possible embodiment of second aspect, wherein institute Determining module is stated, is specifically used for:
According to the response message, the corresponding detection score value of each task performer is determined;
For each task performer, by the corresponding detection score value of the task performer and minimum detection score value progress is preset Comparison;If the detection score value presets minimum detection score value more than or equal to described, it is determined that the task performer is able to carry out Task to be allocated.
In conjunction with the possible embodiment of the first of second aspect or second aspect, the embodiment of the present application provides second party The possible embodiment of second of face, wherein further include:
Distribution module is executed for distributing the task to be allocated to the goal task for being able to carry out the task to be allocated Device.
A kind of task detection method and device provided by the embodiments of the present application, wherein the task detection method includes: to connect After the heartbeat data packets for receiving the transmission of at least one task performer, sent to the corresponding task performer of each heartbeat data packets Task determines detection packet;It receives at least one task performer response task and determines the response message that detection packet returns;According to sound Information is answered, determines whether at least one task performer is able to carry out task to be allocated.The technical solution energy of the embodiment of the present application Enough task based access controls determine the response message of detection packet feedback to be determined to execute the task performer of task to be allocated, thus really The task requests for having protected user can be responded by task performer in time, improved the usage experience of user, avoided the prior art In based on the mode of heart beat probes come monitor task actuator, only can determine whether task performer is in normal operation shape State, not can determine that whether task performer can execute task but, may not be able to be timely responded to so as to cause the request of user The problem of.
To enable the above objects, features, and advantages of the application to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate Appended attached drawing, is described in detail below.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only some embodiments of the application, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 shows a kind of flow chart of task detection method provided by the embodiment of the present application;
Fig. 2 shows the flow charts of another kind task detection method provided by the embodiment of the present application;
Fig. 3 shows the flow chart of another kind task detection method provided by the embodiment of the present application;
Fig. 4 shows a kind of structural schematic diagram of task detection device provided by the embodiment of the present application;
Fig. 5 shows the structural schematic diagram of another kind task detection device provided by the embodiment of the present application;
Fig. 6 shows a kind of structural schematic diagram of server provided by the embodiment of the present application.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application Middle attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only It is some embodiments of the present application, instead of all the embodiments.The application being usually described and illustrated herein in the accompanying drawings is real The component for applying example can be arranged and be designed with a variety of different configurations.Therefore, below to the application's provided in the accompanying drawings The detailed description of embodiment is not intended to limit claimed scope of the present application, but is merely representative of the selected reality of the application Apply example.Based on embodiments herein, those skilled in the art institute obtained without making creative work There are other embodiments, shall fall in the protection scope of this application.
In the prior art, the operating status of task performer is detected by way of heart beat probes, and passes through length The heart beat probes of time carry out the operating status of monitor task actuator, and still, the mode based on heart beat probes is held come monitor task Row device, can only determine whether task performer is in normal operating condition (i.e. health status).But it is poor in network environment In the case where, task performer may postpone execution task, cause the request of user that cannot be timely responded to.It is asked for above-mentioned Topic, a kind of task detection method and device provided by the embodiments of the present application are capable of the response of the determining detection packet feedback of task based access control Information is determined to execute the task performer of task to be allocated, ensures that the task requests of user can be in time by task Actuator response improves the usage experience of user.
For convenient for understanding the present embodiment, first to a kind of task detection method disclosed in the embodiment of the present application into Row is discussed in detail.
As shown in Figure 1, being the flow chart of task detection method provided by the embodiments of the present application, the specific steps are as follows:
S101, receive at least one task performer transmission heartbeat data packets after, to each heartbeat data packets pair The task performer answered sends task and determines detection packet.
Here it is possible to which each task performer is arranged according to preset rules, heartbeat data packets are sent to server, for example, Heartbeat data packets etc. were sent to server every 10 seconds.
Heartbeat data packets, in specific implementation, server are sent to server wherein it is possible to control multiple tasks actuator It can receive the heartbeat data packets of at least one task performer transmission, it is ensured that the request of user can be timely responded to.
If server receives the heartbeat data packets of task performer, it can determine that the task performer is in normal fortune Row state.After determining that the task performer is in normal operating condition, server is true to task performer transmission task Fixed detection packet, if server receives the heartbeat data packets of at least one task performer transmission, to each heartbeat data packets Corresponding task performer sends task and determines detection packet.
S102, the response message that at least one task performer response task determines detection packet return is received.
Here, task is sent to the corresponding task performer of each heartbeat data packets in server determine detection packet Afterwards, each task performer will determine that detection packet makes a response to task, and response message is back to server.
Server receives the response message that each task performer returns, wherein the response message includes response message The response time of corresponding task performer, task throughput, central processing unit (Central Processing Unit, CPU) Load and query rate per second (Queries Per Second, QPS) etc..
S103, according to response information, determine whether at least one task performer is able to carry out task to be allocated.
Here, server, can be respectively to every after the response message for receiving the return of at least one task performer Response time, task throughput, cpu load and the QPS of a task performer are analyzed, to determine that at least one task is held In row device, it is able to carry out the task performer of task to be allocated and the task performer of task to be allocated cannot be executed.
It is determined specifically, being referred to method as shown in Figure 2, wherein specific step is as follows:
S201, according to response information determine the corresponding detection score value of each task performer;
S202, it is directed to each task performer, by the corresponding detection score value of the task performer and presets minimum detection point Value compares;If detection score value be greater than or equal to preset minimum detection score value, it is determined that the task performer be able to carry out to Distribution task.
Here, the response time of task performer can indicate that the task performer, will in the network state of present period The response time of task performer compares with the benchmark response time, if the response time of actuator is more than that benchmark responds Between, then it represents that the task performer is poor in the network state of present period, can be lower for task performer imparting one Network score value, if the response time of actuator be lower than the benchmark response time, then it represents that the task performer is in present period Network state is good, can assign a higher network score value for the task performer.
The task throughput of task performer indicates that the task performer executes within the unit time (such as in one second) and appoints The quantity of business.The mapping relations that task throughput with corresponding score value of handling up can be preset determine task execution in server After the task throughput of device, the corresponding score value of handling up of the task performer can be determined according to the mapping relations.For example, unit The quantity of execution task is more in time, and corresponding score value is more high.
The cpu load and QPS of task performer can be weighted processing, such as cpu load is 0%~10%, Weight is 9, and cpu load score value is 9;For cpu load 10%~20%, weight 8, cpu load score value is 8, and so on, The corresponding QPS score value of QPS is similar with the calculating of cpu load score value, does not do excessively repeat herein.
Network score value, score value of handling up, cpu load score value and the QPS score value of comprehensive each task performer can determine every The detection score value of a task performer.
Further, after determining the detection score value of each task performer, by the corresponding spy of each task performer Survey score value respectively with preset minimum detection score value and compare, if detection score value more than or equal to presetting minimum detection score value, Determine that the task performer is able to carry out task to be allocated.
Wherein, it is that task performer is able to carry out the corresponding minimum detection point of task to be allocated that this, which presets minimum detection score value, Value.
S104, task to be allocated is distributed to the goal task actuator for being able to carry out the task to be allocated.
Here, after determining whether at least one task performer is able to carry out task to be allocated, by task to be allocated It distributes to the goal task actuator for being able to carry out the task to be allocated, wherein goal task actuator can be one, can also To be multiple.
The embodiment of the present application determines that detection packet is determined to execute the task performer of task to be allocated by task, so that The task performer that task to be allocated must be able to carry out timely responds to the request of user, avoids and is visited in the prior art based on heartbeat The mode looked into carrys out monitor task actuator, only can determine whether task performer is in normal operating condition, not can determine that but The problem of whether task performer can execute task, may not be able to be timely responded to so as to cause the request of user.
Task to be allocated is being distributed to after being able to carry out the goal task actuator of the task to be allocated, it can be real-time Monitoring objective task performer executes the case where task, and specific method is referred to method shown in Fig. 3, wherein specific steps It is as follows:
S301, detection goal task actuator whether the task that successful execution distributes;
If S302, goal task actuator execute distributing for task not successfully, controls goal task execution and think highly of Distributing for task is executed again;
It S303, in the number that goal task actuator repeats task is more than preset threshold, and goal task actuator When executing mission failure, control goal task actuator stops execution task.
Here, task to be allocated is distributed to after being able to carry out the goal task actuator of the task to be allocated, is serviced Device can with real-time detection goal task device whether the task that successful execution distributes.
If goal task actuator executes distributing for task not successfully, it can control the goal task actuator and repeat to hold Row the distributing of the task, in order to goal task actuator can with successful execution distributing for the task.
Wherein, server will record the goal task actuator and repeat the number of task, and by the number and preset Threshold value compares, if the number is more than preset threshold, and when goal task actuator execution mission failure, server will be controlled The control goal task actuator stops execution task, avoids the goal task actuator number of repetition excessive, user is caused to ask It asks and is not timely responded to.
If goal task actuator repeats mission failure, server will generate prompt information, and by the prompt information It is sent to user.Wherein it is possible to be sent by forms such as mail, short message, wechats.
In specific implementation, synchronization can generate multiple tasks to be allocated, so that server is by multiple tasks to be allocated It carries out while distributing, can be goal task when the quantity of task to be allocated is more than the quantity of goal task actuator therefore Actuator distributes multiple tasks to be allocated.
Mission failure is repeated in goal task actuator, and server control goal task actuator stops execution and appoints After business, it can control in addition to the goal task actuator executes distributing in multiple distributing for tasks except one for task Other distributing for tasks.Wherein, which is that goal task actuator repeats and executes failure Task.
In addition, goal task actuator repeats mission failure, and server control when goal task actuator is multiple After goal task actuator processed stops execution task, the task of execution failure can be transferred to except a target by controller Other goal task actuators except task performer execute the task, wherein a goal task actuator is to execute The goal task actuator of the mission failure.
It is worth noting that server can control each goal task actuator and execute the task, directly if mission failure It is completed to task execution success or all goal task actuator polls.If being completed in all goal task actuator polls Later, which still carries out failure, then server generates prompt information, and the prompt information is sent to user.
For each task performer, server will record the corresponding response message of the task performer and the task The task execution information that actuator is generated when executing task to be allocated, and according to the corresponding response message of the task performer with And task execution information, obtain the monitoring log corresponding to the task performer.
Wherein, the corresponding task execution information of the task performer is the quantity of execution task, executes time of same task Number, executes the result (success or failure) of task, executes each task corresponding time etc..
Server can analyze each task performer according to obtained monitoring log, and obtain analysis result. Further, the detection score value etc. of each task performer can also be determined according to the analysis result.
By task detection method provided by the embodiments of the present application, being determined to the execute task to be allocated of task is held Row device, and after goal task actuator executes mission failure, progress is subsequent unsuccessfully to be compensated, so that task can be by success It executes, i.e. the request of user is timely responded to.
Based on the same inventive concept, task detection dress corresponding with task detection method is additionally provided in the embodiment of the present application It sets, since the principle that the device in the embodiment of the present application solves the problems, such as is similar to the above-mentioned task detection method of the embodiment of the present application, Therefore the implementation of device may refer to the implementation of method, and overlaps will not be repeated.
Shown in Figure 4, task detection device provided by the another embodiment of the application includes:
Sending module 401, for receive at least one task performer transmission heartbeat data packets after, to each heart It jumps the corresponding task performer of data packet and sends the determining detection packet of task;
Receiving module 402 determines the response letter of detection packet return for receiving at least one task performer response task Breath;
It is to be allocated to determine whether at least one task performer is able to carry out for information according to response for determining module 403 Task.
In one embodiment, above-mentioned determining module 403, is specifically used for:
Information according to response determines the corresponding detection score value of each task performer;
For each task performer, by the corresponding detection score value of the task performer and minimum detection score value progress is preset Comparison;If detection score value, which is greater than or equal to, presets minimum detection score value, it is determined that the task performer is able to carry out to be allocated Business.
In another embodiment, above-mentioned task detection device further include:
Distribution module 404 is executed for distributing task to be allocated to the goal task for being able to carry out the task to be allocated Device.
It is shown in Figure 5, in another embodiment of the application, above-mentioned task detection device further include:
Detection module 501, for detect goal task actuator whether the task that successful execution distributes;
Replicated blocks 502 control the mesh if executing distributing for task not successfully for detecting goal task actuator Mark task performer repeats distributing for task;
Stopping modular 503, the number for repeating task in goal task actuator are more than preset threshold, and target When task performer executes mission failure, control goal task actuator stops execution task.
In another embodiment, above-mentioned task detection device further include:
First execution module 504, for stopping executing in multiple distributing for tasks in control goal task actuator After one distributing for task, control goal task actuator is executed in multiple distributing for tasks except distributing for a task Except other distributing for tasks.
In another embodiment, above-mentioned task detection device further include:
Stopping modular 503 stops specifically for the goal task actuator controlled in multiple goal task actuators Execution task;
Second execution module 505, for controlling in multiple goal task actuators in addition to a goal task actuator Other goal task actuators execute task.
As shown in fig. 6, be server architecture schematic diagram provided by the embodiments of the present application, the server include processor 601, Memory 602 and bus 603, the storage of memory 602 execute instruction, when server operation, processor 601 and memory 602 Between communicated by bus 603, processor 601 executes instruction so that the following method of server execution:
After the heartbeat data packets for receiving the transmission of at least one task performer, to each heartbeat data packets corresponding Actuator transmission task of being engaged in determines detection packet;
It receives at least one task performer response task and determines the response message that detection packet returns;
Information according to response, determines whether at least one task performer is able to carry out task to be allocated.
Optionally, in the method that processor 601 executes, whether information, determine at least one task performer according to response It is able to carry out task to be allocated, comprising:
Information according to response determines the corresponding detection score value of each task performer;
For each task performer, by the corresponding detection score value of the task performer and minimum detection score value progress is preset Comparison;If detection score value, which is greater than or equal to, presets minimum detection score value, it is determined that the task performer is able to carry out to be allocated Business.
Optionally, after determining whether at least one task performer is able to carry out task to be allocated, processor 601 is held Capable method further include:
Task to be allocated is distributed to the goal task actuator for being able to carry out the task to be allocated.
Optionally, task to be allocated is distributed to after being able to carry out the goal task actuator of the task to be allocated, is located Manage the method that device 601 executes further include:
Detect goal task actuator whether the task that successful execution distributes;
If it is not, then controlling the goal task actuator repeats distributing for task;
It is more than preset threshold in the number that goal task actuator repeats task, and goal task actuator executes and appoints When business failure, control goal task actuator stops execution task.
Optionally, task to be allocated is multiple;After control goal task actuator stops execution task, processor 601 methods executed further include:
After control goal task actuator stops executing distributing for a task in multiple distributing for tasks, control Goal task actuator processed execute distributing in multiple distributing for tasks except one for task in addition to other distribute appoint Business.
Optionally, goal task actuator is multiple;In the method that processor 601 executes, goal task actuator is controlled Stop execution task, comprising:
The goal task actuator controlled in multiple goal task actuators stops execution task;
After control goal task actuator stops execution task, further includes:
Control other goal task actuators in multiple goal task actuators in addition to a goal task actuator Execution task.
Optionally, the method that processor 601 executes further include:
For each task performer, executed according to the corresponding response message of the task performer and the task performer The task execution information generated when task to be allocated obtains the monitoring log corresponding to the task performer.
The computer program product of task detection method and device provided by the embodiment of the present application, including store program The computer readable storage medium of code, the instruction that said program code includes can be used for executing described in previous methods embodiment Method, specific implementation can be found in embodiment of the method, details are not described herein.
Specifically, which can be general storage medium, such as mobile disk, hard disk, on the storage medium Computer program when being run, be capable of task based access control and determine that the response message of detection packet feedback is to be allocated to be determined to execute The task performer of task ensures that the task requests of user can be responded by task performer in time, improves user's Usage experience.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in the executable non-volatile computer-readable storage medium of a processor.Based on this understanding, the application Technical solution substantially the part of the part that contributes to existing technology or the technical solution can be with software in other words The form of product embodies, which is stored in a storage medium, including some instructions use so that One computer equipment (can be personal computer, server or the network equipment etc.) executes each embodiment institute of the application State all or part of the steps of method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. is various to deposit Store up the medium of program code.
Finally, it should be noted that embodiment described above, the only specific embodiment of the application, to illustrate the application Technical solution, rather than its limitations, the protection scope of the application is not limited thereto, although with reference to the foregoing embodiments to this Shen It please be described in detail, those skilled in the art should understand that: anyone skilled in the art Within the technical scope of the present application, it can still modify to technical solution documented by previous embodiment or can be light It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make The essence of corresponding technical solution is detached from the spirit and scope of the embodiment of the present application technical solution, should all cover the protection in the application Within the scope of.Therefore, the protection scope of the application should be subject to protection scope documented by claims.

Claims (10)

1. a kind of task detection method characterized by comprising
After the heartbeat data packets for receiving the transmission of at least one task performer, held to the corresponding task of each heartbeat data packets Row device sends task and determines detection packet;
It receives at least one described task performer and responds the response message that the determining detection packet of the task returns;
According to the response message, determine whether at least one described task performer is able to carry out task to be allocated.
2. the method according to claim 1, wherein described according to the response message, determination described at least one Whether a task performer is able to carry out task to be allocated, comprising:
According to the response message, the corresponding detection score value of each task performer is determined;
For each task performer, by the corresponding detection score value of the task performer and presets minimum detection score value and carry out pair Than;If the detection score value, which is greater than or equal to, described presets minimum detection score value, it is determined that the task performer be able to carry out to Distribution task.
3. method according to claim 1 or 2, which is characterized in that whether determining at least one described task performer It is able to carry out after task to be allocated, further includes:
The task to be allocated is distributed to the goal task actuator for being able to carry out the task to be allocated.
4. according to the method described in claim 3, it is characterized in that, by the task to be allocated distribute to be able to carry out this to point After goal task actuator with task, further includes:
Detect the goal task actuator whether the task that successful execution distributes;
If it is not, then controlling the goal task actuator repeats distributing for task;
It is more than preset threshold in the number that the goal task actuator repeats the task, and the goal task executes When device executes the mission failure, controls the goal task actuator and stop executing the task.
5. according to the method described in claim 4, it is characterized in that, the task to be allocated is multiple;Controlling the target Task performer stops after the execution task, further includes:
After controlling the goal task actuator and stopping executing distributing for a task in multiple distributing for tasks, control It makes the goal task actuator and executes other points in multiple distributing for tasks in addition to one distributing for task Preparing for task.
6. according to the method described in claim 4, it is characterized in that, the goal task actuator is multiple;The control institute Goal task actuator is stated to stop executing the task, comprising:
A goal task actuator in multiple goal task actuators is controlled to stop executing the task;
After controlling the goal task actuator and stopping the execution task, further includes:
Control other goal task actuators in multiple goal task actuators in addition to one goal task actuator Execute the task.
7. method according to claim 1-6, which is characterized in that further include:
For each task performer, according to the corresponding response message of the task performer and task performer execution The task execution information generated when task to be allocated obtains the monitoring log corresponding to the task performer.
8. a kind of task detection device characterized by comprising
Sending module, for receive at least one task performer transmission heartbeat data packets after, to each heartbeat data It wraps corresponding task performer and sends the determining detection packet of task;
Receiving module responds the response letter that the task determines detection packet return for receiving at least one described task performer Breath;
Determining module, for determining whether at least one described task performer is able to carry out wait divide according to the response message With task.
9. device according to claim 8, which is characterized in that the determining module is specifically used for:
According to the response message, the corresponding detection score value of each task performer is determined;
For each task performer, by the corresponding detection score value of the task performer and presets minimum detection score value and carry out pair Than;If the detection score value, which is greater than or equal to, described presets minimum detection score value, it is determined that the task performer be able to carry out to Distribution task.
10. device according to claim 8 or claim 9, which is characterized in that further include:
Distribution module, for distributing the task to be allocated to the goal task actuator for being able to carry out the task to be allocated.
CN201910108943.9A 2019-02-03 2019-02-03 A kind of task detection method and device Pending CN109922050A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910108943.9A CN109922050A (en) 2019-02-03 2019-02-03 A kind of task detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910108943.9A CN109922050A (en) 2019-02-03 2019-02-03 A kind of task detection method and device

Publications (1)

Publication Number Publication Date
CN109922050A true CN109922050A (en) 2019-06-21

Family

ID=66961479

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910108943.9A Pending CN109922050A (en) 2019-02-03 2019-02-03 A kind of task detection method and device

Country Status (1)

Country Link
CN (1) CN109922050A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113965482A (en) * 2021-10-19 2022-01-21 北京天融信网络安全技术有限公司 Data transmission method and device based on gRPC and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102073546A (en) * 2010-12-13 2011-05-25 北京航空航天大学 Task-dynamic dispatching method under distributed computation mode in cloud computing environment
CN106227596A (en) * 2016-07-13 2016-12-14 百度在线网络技术(北京)有限公司 Mission Monitor method and apparatus for task scheduling server
CN106936925A (en) * 2017-04-17 2017-07-07 广州孩教圈信息科技股份有限公司 Load-balancing method and system
CN108415847A (en) * 2018-05-08 2018-08-17 平安普惠企业管理有限公司 Performance test methods, device, computer equipment and storage medium
CN108563502A (en) * 2017-12-14 2018-09-21 中国银联股份有限公司 A kind of method for scheduling task and device
CN109120679A (en) * 2018-07-27 2019-01-01 平安科技(深圳)有限公司 Method for allocating tasks and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102073546A (en) * 2010-12-13 2011-05-25 北京航空航天大学 Task-dynamic dispatching method under distributed computation mode in cloud computing environment
CN106227596A (en) * 2016-07-13 2016-12-14 百度在线网络技术(北京)有限公司 Mission Monitor method and apparatus for task scheduling server
CN106936925A (en) * 2017-04-17 2017-07-07 广州孩教圈信息科技股份有限公司 Load-balancing method and system
CN108563502A (en) * 2017-12-14 2018-09-21 中国银联股份有限公司 A kind of method for scheduling task and device
CN108415847A (en) * 2018-05-08 2018-08-17 平安普惠企业管理有限公司 Performance test methods, device, computer equipment and storage medium
CN109120679A (en) * 2018-07-27 2019-01-01 平安科技(深圳)有限公司 Method for allocating tasks and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113965482A (en) * 2021-10-19 2022-01-21 北京天融信网络安全技术有限公司 Data transmission method and device based on gRPC and storage medium
CN113965482B (en) * 2021-10-19 2023-03-24 北京天融信网络安全技术有限公司 Data transmission method and device based on gRPC and storage medium

Similar Documents

Publication Publication Date Title
AU2017204203B2 (en) Computer resource allocation to workloads in an information technology environment
US6434513B1 (en) Method of load testing web applications based on performance goal
US8533729B2 (en) Distributed task system and distributed task management method
US8380843B2 (en) System and method for determining affinity groups and co-locating the affinity groups in a distributing network
US8386512B2 (en) System for managing data collection processes
Yan et al. An improved ant algorithm for job scheduling in grid computing
Chen et al. Self-adaptive and sensitivity-aware QoS modeling for the cloud
US9934071B2 (en) Job scheduler for distributed systems using pervasive state estimation with modeling of capabilities of compute nodes
CN105159782A (en) Cloud host based method and apparatus for allocating resources to orders
CN108205541A (en) The dispatching method and device of distributed network reptile task
Welch et al. A dynamic real-time benchmark for assessment of QoS and resource management technology
Delamare et al. SpeQuloS: a QoS service for BoT applications using best effort distributed computing infrastructures
CN105378668B (en) The interruption of operating system management in multicomputer system guides
CN108958975A (en) A kind of method, device and equipment controlling data resume speed
CN109922050A (en) A kind of task detection method and device
WO2015019538A1 (en) Virtual resource control system and virtual resource control method
Vahora et al. Cloudsim-a survey on vm management techniques
CN117149665A (en) Continuous integration method, control device, continuous integration system, and storage medium
CN105511959A (en) Method and device for distributing virtual resource
CN107707424A (en) The control method and system of load condition
US20050170891A1 (en) Venus system
US20050251801A1 (en) Tuning control method and system using thereof
CN116450451A (en) Server hardware management method, system, equipment and storage medium
CN106102126B (en) A kind of connection control method and device
CN112764837B (en) Data reporting method, device, storage medium and terminal

Legal Events

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

Application publication date: 20190621