CN107870822A - asynchronous task control method and system based on distributed system - Google Patents

asynchronous task control method and system based on distributed system Download PDF

Info

Publication number
CN107870822A
CN107870822A CN201610854007.9A CN201610854007A CN107870822A CN 107870822 A CN107870822 A CN 107870822A CN 201610854007 A CN201610854007 A CN 201610854007A CN 107870822 A CN107870822 A CN 107870822A
Authority
CN
China
Prior art keywords
asynchronous task
asynchronous
distributed system
queue
database
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610854007.9A
Other languages
Chinese (zh)
Other versions
CN107870822B (en
Inventor
唐雁斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201610854007.9A priority Critical patent/CN107870822B/en
Publication of CN107870822A publication Critical patent/CN107870822A/en
Application granted granted Critical
Publication of CN107870822B publication Critical patent/CN107870822B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/548Queue

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a kind of asynchronous task control method based on distributed system, including:Asynchronous task control system is that the asynchronous task of corresponding distributed system establishes asynchronous task queue, and the asynchronous task quantity in asynchronous task queue is monitored;If asynchronous task quantity is less than predetermined threshold value, Database lock is obtained from Database Systems, the asynchronous task of predetermined number is captured for distributed system, and is put into asynchronous task queue;To be identified in task processing corresponding to each asynchronous task generation of crawl, to prevent each asynchronous task of crawl from being captured by other asynchronous task control systems, and the Database lock of acquisition is discharged, so that asynchronous task control system is obtained corresponding to each distributed system.The invention also discloses a kind of asynchronous task control system based on distributed system.The present invention takes full advantage of each distributed system to carry out asynchronous task processing, effectively improves the asynchronous task disposal ability of whole distributed system.

Description

Asynchronous task control method and system based on distributed system
Technical field
The present invention relates to field of computer technology, more particularly to a kind of asynchronous task control method based on distributed system And system.
Background technology
With mobile Internet, cloud computing, the arrival in big data epoch, the asynchronous task of existing distributed system is handled Often can only single thread or the processing of specified single server, the distributed system overload operation often easily having, and having Distributed system be in the situation of idle condition and occur, the performance of whole distributed system can not be made full use of to enter line asynchronous Task processing, causes task treatment effeciency low.
The content of the invention
It is a primary object of the present invention to provide a kind of asynchronous task control method and system based on distributed system, purport Improving the asynchronous task disposal ability of distributed system.
To achieve the above object, a kind of asynchronous task control method based on distributed system provided by the invention, it is described Method comprises the following steps:
Asynchronous task control system is that the asynchronous task of corresponding distributed system establishes asynchronous task queue, and to described Asynchronous task quantity in asynchronous task queue is monitored;
If the asynchronous task quantity in the asynchronous task queue is less than predetermined threshold value, data are obtained from Database Systems Lock in storehouse;
If success gets Database lock from the Database Systems, predetermined number is captured for the distributed system Asynchronous task, and be put into the asynchronous task queue;
To be identified in task processing corresponding to each asynchronous task generation of crawl, to prevent each asynchronous task of crawl Asynchronous task control system captures corresponding to other distributed systems, and discharges the Database lock of acquisition, for each distribution Asynchronous task control system is obtained corresponding to formula system.
Preferably, if the success gets Database lock from the Database Systems, grabbed for the distributed system The asynchronous task of predetermined number is taken, and the step being put into the asynchronous task queue includes:
If the asynchronous task control system success gets Database lock, and the default threshold from the Database Systems The difference quantities of value and the asynchronous task quantity in the asynchronous task queue are more than or equal to default fixed qty, then to be described The asynchronous task of the default fixed qty of distributed system crawl, and be put into the asynchronous task queue, for the distribution System is handled the asynchronous task in the asynchronous task queue.
Preferably, if the success gets Database lock from the Database Systems, grabbed for the distributed system The step for taking the asynchronous task of predetermined number to be put into the asynchronous task queue includes:
If the asynchronous task control system success gets Database lock, and the default threshold from the Database Systems The difference quantities of value and the asynchronous task quantity in the asynchronous task queue are less than default fixed qty, then are the distribution The asynchronous task of difference quantities described in system grabs, and be put into the asynchronous task queue, for the distributed system pair Asynchronous task in the asynchronous task queue is handled.
Preferably, this method also includes:
If the asynchronous task quantity in the asynchronous task queue is more than or equal to predetermined threshold value, the asynchronous task control System processed stops obtaining Database lock from the Database Systems.
In addition, to achieve the above object, the present invention also provides a kind of asynchronous task control system based on distributed system, The asynchronous task control system includes:
Module is established, for establishing asynchronous task queue for the asynchronous task of corresponding distributed system, and to described different Asynchronous task quantity in step task queue is monitored;
Acquisition module, if being less than predetermined threshold value for the asynchronous task quantity in the asynchronous task queue, from data Storehouse system obtains Database lock;
Handling module, if Database lock is got from the Database Systems for success, for the distributed system The asynchronous task of predetermined number is captured, and is put into the asynchronous task queue;
Mark module, for being identified in task processing corresponding to each asynchronous task generation for crawl, to prevent from capturing Each asynchronous task asynchronous task control system corresponding to other distributed systems capture, and discharge the database of acquisition Lock, so that asynchronous task control system is obtained corresponding to each distributed system.
Preferably, the handling module is additionally operable to:
If the asynchronous task control system success gets Database lock, and the default threshold from the Database Systems The difference quantities of value and the asynchronous task quantity in the asynchronous task queue are more than or equal to default fixed qty, then to be described The asynchronous task of the default fixed qty of distributed system crawl, and be put into the asynchronous task queue, for the distribution System is handled the asynchronous task in the asynchronous task queue.
Preferably, the handling module is additionally operable to:
If the asynchronous task control system success gets Database lock, and the default threshold from the Database Systems The difference quantities of value and the asynchronous task quantity in the asynchronous task queue are less than default fixed qty, then are the distribution The asynchronous task of difference quantities described in system grabs, and be put into the asynchronous task queue, for the distributed system pair Asynchronous task in the asynchronous task queue is handled.
Preferably, the asynchronous task control system also includes:
Stopping modular, if being more than or equal to predetermined threshold value for the asynchronous task quantity in the asynchronous task queue, Stop obtaining Database lock from the Database Systems.
Asynchronous task control method and system proposed by the present invention based on distributed system, system is controlled by asynchronous task Unite and establish asynchronous task queue for the asynchronous task of corresponding distributed system, if monitoring different in the asynchronous task queue Step task quantity is less than predetermined threshold value, then timing obtains Database lock from Database Systems, pre- for distributed system crawl If the asynchronous task of quantity is put into the asynchronous task queue.Because asynchronous task control system is monitoring its corresponding point When the current asynchronous task of cloth system is less, it is asynchronous to the distributed system that extra asynchronous task can be captured from system In task queue, handled for the distributed system, so as to take full advantage of each distributed system to carry out asynchronous task processing, Effectively improve the asynchronous task disposal ability of whole distributed system.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of the asynchronous task control method first embodiment of the invention based on distributed system;
Fig. 2 is the schematic flow sheet of the asynchronous task control method second embodiment of the invention based on distributed system;
Fig. 3 is the high-level schematic functional block diagram of asynchronous task control system first embodiment of the present invention;
Fig. 4 is the high-level schematic functional block diagram of asynchronous task control system second embodiment of the present invention.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Distributed system (distributed system) is built upon the software systems on network.In a distribution In system, what the computer of one group of independence was presented to user is a unified entirety, just looks like as being a system.System Possess the physics and logical resource of many general, can dynamically distribute task, scattered physics and logical resource pass through calculating Machine real-time performance information exchanges.A distributed operating system that computer resource is managed in a manner of global in system be present. Generally, for user, distributed system only has a model or pattern, there is one layer of software middleware on operating system (middleware) it is responsible for realizing this model.The present invention provides a kind of asynchronous task control method based on distributed system.
Reference picture 1, Fig. 1 are that the flow of the asynchronous task control method first embodiment of the invention based on distributed system is shown It is intended to.
In the first embodiment, being somebody's turn to do the asynchronous task control method based on distributed system includes:
Step S10, asynchronous task control system are that the asynchronous task of corresponding distributed system establishes asynchronous task queue, And the asynchronous task quantity in the asynchronous task queue is monitored;
In the present embodiment, the corresponding asynchronous task control system of each distributed system, asynchronous task control system Management and control is carried out for the asynchronous task of its corresponding distributed system.It is distributed for example, asynchronous task control system is collected corresponding to it All asynchronous tasks of formula system itself, and establish an asynchronous task team for all asynchronous tasks of the distributed system itself Row, are monitored, you can it is current to grasp the distributed system in real time to the asynchronous task quantity in the asynchronous task queue of foundation Task burden.
Step S20, if the asynchronous task quantity in the asynchronous task queue is less than predetermined threshold value, from Database Systems Obtain Database lock;
Step S30, it is pre- for distributed system crawl if success gets Database lock from the Database Systems If the asynchronous task of quantity, and be put into the asynchronous task queue;
When asynchronous task number in the asynchronous task queue that asynchronous task control system monitors its corresponding distributed system Amount is when being less than predetermined threshold value (for example, 20), then illustrate the distributed system currently itself asynchronous task it is less, i.e. the distribution Formula system is currently at compared with idle condition, and the disposal ability of the distributed system is only used on a small quantity.The then asynchronous task Control system is in real time or timing obtains Database lock from Database Systems, and data are got from the Database Systems in success After the lock of storehouse, you can capture the extra asynchronous task of predetermined number (for example, 3) for the distributed system, other such as current points The asynchronous task that cloth system can not be handled.The extra asynchronous task of crawl is put into described asynchronous of the distributed system It is engaged in queue, so, the distributed system can be to the asynchronous task of its own in the asynchronous task queue and the volume of crawl Outer asynchronous task is all handled, and takes full advantage of the asynchronous task disposal ability of the distributed system.
Step S40, to be identified in task processing corresponding to each asynchronous task generation of crawl, to prevent each of crawl Asynchronous task asynchronous task control system corresponding to other distributed systems captures, and discharges the Database lock of acquisition, for Asynchronous task control system is obtained corresponding to each distributed system.So, each distributed system is except handling certainly Outside the asynchronous task of body, can also be controlled by Database lock each distributed system capture successively except itself asynchronous task it Outer extra asynchronous task is handled.
The present embodiment establishes asynchronous task by the asynchronous task that asynchronous task control system is corresponding distributed system Queue, if the asynchronous task quantity monitored in the asynchronous task queue is less than predetermined threshold value, regularly from Database Systems Database lock is obtained, the asynchronous task that predetermined number is captured for the distributed system is put into the asynchronous task queue.By In asynchronous task control system monitor the current asynchronous task of its corresponding distributed system it is less when, can be grabbed from system Extra asynchronous task is taken into the asynchronous task queue of the distributed system, for distributed system processing, so as to fully sharp Asynchronous task processing is carried out with each distributed system, effectively improves the asynchronous task processing of whole distributed system Ability.
Further, in other embodiments, above-mentioned steps S30 can include:
If the asynchronous task control system success gets Database lock, and the default threshold from the Database Systems The difference quantities of value and the asynchronous task quantity in the asynchronous task queue are more than or equal to default fixed qty, then explanation should Distributed system it is current itself asynchronous task amount it is less, the distributed system is currently at compared with idle condition, then is described point Cloth system grabs preset the asynchronous task of fixed qty, and are put into the asynchronous task queue, for the distributed system System is handled the asynchronous task in the asynchronous task queue.
Further, in other embodiments, above-mentioned steps S30 can include:
If the asynchronous task control system success gets Database lock, and the default threshold from the Database Systems The difference quantities of value and the asynchronous task quantity in the asynchronous task queue are less than default fixed qty, then illustrate the distribution Although the current asynchronous task amount not up to saturation state of itself of system, the maximum functional threshold value from setting are also more or less the same, Therefore, it is only the distributed system and captures the asynchronous task of the difference quantities, and is put into the asynchronous task queue, So that the distributed system is handled the asynchronous task in the asynchronous task queue.
As shown in Fig. 2 second embodiment of the invention proposes a kind of asynchronous task control method based on distributed system, On the basis of above-described embodiment, in addition to:
Step S50, it is described different if the asynchronous task quantity in the asynchronous task queue is more than or equal to predetermined threshold value Task control system is walked to stop obtaining Database lock from the Database Systems.
In the present embodiment, when asynchronous task control system is monitored in the asynchronous task queue of its corresponding distributed system When asynchronous task quantity is more than or equal to predetermined threshold value (for example, 20), then illustrate itself current asynchronous of the distributed system It is engaged in more, has reached or be nearly in its work saturation state, extra asynchronous task can not be reprocessed.The then asynchronous task Control system stops obtaining Database lock from the Database Systems, to stop capturing extra asynchronous for the distributed system Business, avoid the asynchronous task disposal ability beyond the distributed system.
The present invention further provides a kind of asynchronous task control system based on distributed system.Distributed system (distributed system) is built upon the software systems on network.In a distributed system, one group of independence What computer was presented to user is a unified entirety, just looks like as being a system.System possesses the thing of many general Reason and logical resource, it can dynamically distribute task, scattered physics and logical resource and realize that information is handed over by computer network Change.A distributed operating system that computer resource is managed in a manner of global in system be present.Generally, for user, Distributed system only has a model or pattern, has one layer of software middleware (middleware) to be responsible on operating system real This existing model.The present invention provides a kind of asynchronous task control method based on distributed system.
Reference picture 3, Fig. 3 are the function mould of the asynchronous task control system first embodiment of the invention based on distributed system Block schematic diagram.
In the first embodiment, being somebody's turn to do the asynchronous task control system based on distributed system includes:
Module 01 is established, for establishing asynchronous task queue for the asynchronous task of corresponding distributed system, and to described Asynchronous task quantity in asynchronous task queue is monitored;
In the present embodiment, the corresponding asynchronous task control system of each distributed system, asynchronous task control system Management and control is carried out for the asynchronous task of its corresponding distributed system.It is distributed for example, asynchronous task control system is collected corresponding to it All asynchronous tasks of formula system itself, and establish an asynchronous task team for all asynchronous tasks of the distributed system itself Row, are monitored, you can it is current to grasp the distributed system in real time to the asynchronous task quantity in the asynchronous task queue of foundation Task burden.
Acquisition module 02, if being less than predetermined threshold value for the asynchronous task quantity in the asynchronous task queue, from number Database lock is obtained according to storehouse system;
Handling module 03, if getting Database lock from the Database Systems for success, for the distributed system The asynchronous task of system crawl predetermined number, and be put into the asynchronous task queue;
When asynchronous task number in the asynchronous task queue that asynchronous task control system monitors its corresponding distributed system Amount is when being less than predetermined threshold value (for example, 20), then illustrate the distributed system currently itself asynchronous task it is less, i.e. the distribution Formula system is currently at compared with idle condition, and the disposal ability of the distributed system is only used on a small quantity.The then asynchronous task Control system is in real time or timing obtains Database lock from Database Systems, and data are got from the Database Systems in success After the lock of storehouse, you can capture the extra asynchronous task of predetermined number (for example, 3) for the distributed system, other such as current points The asynchronous task that cloth system can not be handled.The extra asynchronous task of crawl is put into described asynchronous of the distributed system It is engaged in queue, so, the distributed system can be to the asynchronous task of its own in the asynchronous task queue and the volume of crawl Outer asynchronous task is all handled, and takes full advantage of the asynchronous task disposal ability of the distributed system.
Mark module 04, for being identified in task processing corresponding to each asynchronous task generation for crawl, to prevent from grabbing The each asynchronous task taken asynchronous task control system corresponding to other distributed systems captures, and discharges the database of acquisition Lock, so that asynchronous task control system is obtained corresponding to each distributed system.So, each distributed system except Outside the asynchronous task for handling itself, also each distributed system can be controlled to capture successively except itself is asynchronous by Database lock Extra asynchronous task outside task is handled.
The present embodiment establishes asynchronous task by the asynchronous task that asynchronous task control system is corresponding distributed system Queue, if the asynchronous task quantity monitored in the asynchronous task queue is less than predetermined threshold value, regularly from Database Systems Database lock is obtained, the asynchronous task that predetermined number is captured for the distributed system is put into the asynchronous task queue.By In asynchronous task control system monitor the current asynchronous task of its corresponding distributed system it is less when, can be grabbed from system Extra asynchronous task is taken into the asynchronous task queue of the distributed system, for distributed system processing, so as to fully sharp Asynchronous task processing is carried out with each distributed system, effectively improves the asynchronous task processing of whole distributed system Ability.
Further, in other embodiments, the handling module 03 is additionally operable to:
If the asynchronous task control system success gets Database lock, and the default threshold from the Database Systems The difference quantities of value and the asynchronous task quantity in the asynchronous task queue are more than or equal to default fixed qty, then illustrate this point Cloth system it is current itself asynchronous task amount it is less, the distributed system is currently at compared with idle condition, then is the distribution Formula system grabs preset the asynchronous task of fixed qty, and are put into the asynchronous task queue, for the distributed system Asynchronous task in the asynchronous task queue is handled.
Further, in other embodiments, the handling module 03 is additionally operable to:
If the asynchronous task control system success gets Database lock, and the default threshold from the Database Systems The difference quantities of value and the asynchronous task quantity in the asynchronous task queue are less than default fixed qty, then illustrate the distribution Although the current asynchronous task amount not up to saturation state of itself of system, the maximum functional threshold value from setting are also more or less the same, Therefore, then the asynchronous task of the difference quantities is captured for the distributed system, and is put into the asynchronous task queue, with The asynchronous task in the asynchronous task queue is handled for the distributed system.
As shown in Fig. 2 second embodiment of the invention proposes a kind of asynchronous task control system based on distributed system, On the basis of above-described embodiment, in addition to:
Stopping modular 05, if being more than or equal to predetermined threshold value for the asynchronous task quantity in the asynchronous task queue, Then stop obtaining Database lock from the Database Systems.
In the present embodiment, when asynchronous task control system is monitored in the asynchronous task queue of its corresponding distributed system When asynchronous task quantity is more than or equal to predetermined threshold value (for example, 20), then illustrate itself current asynchronous of the distributed system It is engaged in more, has reached or be nearly in its work saturation state, extra asynchronous task can not be reprocessed.The then asynchronous task Control system stops obtaining Database lock from the Database Systems, to stop capturing extra asynchronous for the distributed system Business, avoid the asynchronous task disposal ability beyond the distributed system.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.Embodiment party more than The description of formula, it is required general that those skilled in the art can be understood that above-described embodiment method can add by software The mode of hardware platform is realized, naturally it is also possible to which by hardware, but the former is more preferably embodiment in many cases.It is based on Such understanding, the part that technical scheme substantially contributes to prior art in other words can be with software products Form embody, the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disc, CD), including Some instructions are causing a station terminal equipment (can be mobile phone, computer, server, or network equipment etc.) to perform this hair Method described in bright each embodiment.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair The equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (8)

1. a kind of asynchronous task control method based on distributed system, it is characterised in that the described method comprises the following steps:
Asynchronous task control system is that the asynchronous task of corresponding distributed system establishes asynchronous task queue, and to described asynchronous Asynchronous task quantity in task queue is monitored;
If the asynchronous task quantity in the asynchronous task queue is less than predetermined threshold value, database is obtained from Database Systems Lock;
If success gets Database lock from the Database Systems, the asynchronous of predetermined number is captured for the distributed system Task, and be put into the asynchronous task queue;
To be identified in task processing corresponding to each asynchronous task generation of crawl, to prevent each asynchronous task of crawl by it Asynchronous task control system corresponding to his distributed system captures, and discharges the Database lock of acquisition, for each distributed system Asynchronous task control system is obtained corresponding to system.
2. the asynchronous task control method based on distributed system as claimed in claim 1, it is characterised in that if the success Database lock is got from the Database Systems, then the asynchronous task of predetermined number is captured for the distributed system, and is put The step entered in the asynchronous task queue includes:
If asynchronous task control system success gets Database lock from the Database Systems, and the predetermined threshold value with The difference quantities of asynchronous task quantity in the asynchronous task queue are more than or equal to default fixed qty, then are the distribution Formula system grabs preset the asynchronous task of fixed qty, and are put into the asynchronous task queue, for the distributed system Asynchronous task in the asynchronous task queue is handled.
3. the asynchronous task control method based on distributed system as claimed in claim 1 or 2, it is characterised in that if described Success gets Database lock from the Database Systems, then the asynchronous task that predetermined number is captured for the distributed system is put The step entered in the asynchronous task queue includes:
If asynchronous task control system success gets Database lock from the Database Systems, and the predetermined threshold value with The difference quantities of asynchronous task quantity in the asynchronous task queue are less than default fixed qty, then are the distributed system The asynchronous task of the difference quantities is captured, and is put into the asynchronous task queue, so that the distributed system is to described Asynchronous task in asynchronous task queue is handled.
4. the asynchronous task control method based on distributed system as claimed in claim 1, it is characterised in that this method is also wrapped Include:
If the asynchronous task quantity in the asynchronous task queue is more than or equal to predetermined threshold value, the asynchronous task control system System stops obtaining Database lock from the Database Systems.
A kind of 5. asynchronous task control system based on distributed system, it is characterised in that the asynchronous task control system bag Include:
Module is established, for establishing asynchronous task queue for the asynchronous task of corresponding distributed system, and to described asynchronous Asynchronous task quantity in business queue is monitored;
Acquisition module, if being less than predetermined threshold value for the asynchronous task quantity in the asynchronous task queue, from data base set System obtains Database lock;
Handling module, if getting Database lock from the Database Systems for success, captured for the distributed system The asynchronous task of predetermined number, and be put into the asynchronous task queue;
Mark module, for being identified in task processing corresponding to each asynchronous task generation for crawl, to prevent each of crawl Individual asynchronous task asynchronous task control system corresponding to other distributed systems captures, and discharges the Database lock of acquisition, with Obtained for asynchronous task control system corresponding to each distributed system.
6. the asynchronous task control system based on distributed system as claimed in claim 5, it is characterised in that the crawl mould Block is additionally operable to:
If asynchronous task control system success gets Database lock from the Database Systems, and the predetermined threshold value with The difference quantities of asynchronous task quantity in the asynchronous task queue are more than or equal to default fixed qty, then are the distribution Formula system grabs preset the asynchronous task of fixed qty, and are put into the asynchronous task queue, for the distributed system Asynchronous task in the asynchronous task queue is handled.
7. the asynchronous task control system based on distributed system as described in claim 5 or 6, it is characterised in that described to grab Modulus block is additionally operable to:
If asynchronous task control system success gets Database lock from the Database Systems, and the predetermined threshold value with The difference quantities of asynchronous task quantity in the asynchronous task queue are less than default fixed qty, then are the distributed system The asynchronous task of the difference quantities is captured, and is put into the asynchronous task queue, so that the distributed system is to described Asynchronous task in asynchronous task queue is handled.
8. the asynchronous task control system based on distributed system as claimed in claim 5, it is characterised in that also include:
Stopping modular, if being more than or equal to predetermined threshold value for the asynchronous task quantity in the asynchronous task queue, stop Database lock is obtained from the Database Systems.
CN201610854007.9A 2016-09-26 2016-09-26 Asynchronous task control method and system based on distributed system Active CN107870822B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610854007.9A CN107870822B (en) 2016-09-26 2016-09-26 Asynchronous task control method and system based on distributed system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610854007.9A CN107870822B (en) 2016-09-26 2016-09-26 Asynchronous task control method and system based on distributed system

Publications (2)

Publication Number Publication Date
CN107870822A true CN107870822A (en) 2018-04-03
CN107870822B CN107870822B (en) 2020-11-24

Family

ID=61752140

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610854007.9A Active CN107870822B (en) 2016-09-26 2016-09-26 Asynchronous task control method and system based on distributed system

Country Status (1)

Country Link
CN (1) CN107870822B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109766172A (en) * 2018-12-13 2019-05-17 中国平安财产保险股份有限公司 A kind of asynchronous task scheduling method and device
CN110457126A (en) * 2019-08-13 2019-11-15 杭州有赞科技有限公司 A kind of asynchronous invoking method and system
CN112486654A (en) * 2020-12-08 2021-03-12 浙江诺诺网络科技有限公司 Asynchronous slow task scheduling method, device, equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1786917A (en) * 2004-12-07 2006-06-14 国际商业机器公司 Borrowing threads as a form of load balancing in a multiprocessor data processing system
US20090288086A1 (en) * 2008-05-16 2009-11-19 Microsoft Corporation Local collections of tasks in a scheduler
CN101715001A (en) * 2009-10-21 2010-05-26 南京邮电大学 Method for controlling execution of grid task
CN104266657A (en) * 2014-09-12 2015-01-07 海华电子企业(中国)有限公司 Shortest path planning parallelization method based on cooperative computing of CPU and MIC

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1786917A (en) * 2004-12-07 2006-06-14 国际商业机器公司 Borrowing threads as a form of load balancing in a multiprocessor data processing system
US20090288086A1 (en) * 2008-05-16 2009-11-19 Microsoft Corporation Local collections of tasks in a scheduler
CN101715001A (en) * 2009-10-21 2010-05-26 南京邮电大学 Method for controlling execution of grid task
CN104266657A (en) * 2014-09-12 2015-01-07 海华电子企业(中国)有限公司 Shortest path planning parallelization method based on cooperative computing of CPU and MIC

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109766172A (en) * 2018-12-13 2019-05-17 中国平安财产保险股份有限公司 A kind of asynchronous task scheduling method and device
CN109766172B (en) * 2018-12-13 2024-05-14 中国平安财产保险股份有限公司 Asynchronous task scheduling method and device
CN110457126A (en) * 2019-08-13 2019-11-15 杭州有赞科技有限公司 A kind of asynchronous invoking method and system
CN112486654A (en) * 2020-12-08 2021-03-12 浙江诺诺网络科技有限公司 Asynchronous slow task scheduling method, device, equipment and medium

Also Published As

Publication number Publication date
CN107870822B (en) 2020-11-24

Similar Documents

Publication Publication Date Title
CN104601696B (en) Service processing method, service calling system, device and system
CN105677477B (en) Method and device for optimizing application program resources and electronic equipment
CN103634409B (en) Realize that mobile Internet applies always online method and system
CN105653425B (en) Monitoring system based on complex event processing engine
CN107832200A (en) Alert processing method, device, computer equipment and storage medium
CN107870822A (en) asynchronous task control method and system based on distributed system
CN104618162B (en) A kind of management method of system docking, device and system
EP2453357A3 (en) Event-based orchestration in distributed order orchestration system
CN105430030B (en) Based on OSGI technology can parallel expansion application server
CN105306622B (en) A kind of cloud net fusion domain name analysis system and its DNS service method
CN109802986A (en) Device management method, system, device and server
CN106339217B (en) Event management method and system based on Unity
CN107528766A (en) Information-pushing method, apparatus and system
CN108121511A (en) Data processing method, device and equipment in a kind of distributed edge storage system
CN105608220A (en) Acquisition method and device based on distributed message system
CN106790678A (en) A kind of Transmission system and method for ensureing the consumption of significant data prioritised transmission
CN107479974A (en) A kind of dispatching method of virtual machine and device
CN109902103A (en) Service data management method, device, equipment and computer readable storage medium
CN107341045A (en) A kind of scheduling virtual machine management method and scheduler
WO2020117542A1 (en) Object oriented call management
CN110457555A (en) Collecting method, device and computer equipment, storage medium based on Docker
CN107038067A (en) The management method and device of process resource in distributed stream processing
CN106254534B (en) Distributed type assemblies monitoring agent and method based on mixed architecture
CN108282523A (en) A kind of SiteServer LBS based on SDN
CN110450189B (en) Abnormity processing method and device for robot

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
GR01 Patent grant
GR01 Patent grant