CN106681808A - Task scheduling method and device - Google Patents

Task scheduling method and device Download PDF

Info

Publication number
CN106681808A
CN106681808A CN201611091472.8A CN201611091472A CN106681808A CN 106681808 A CN106681808 A CN 106681808A CN 201611091472 A CN201611091472 A CN 201611091472A CN 106681808 A CN106681808 A CN 106681808A
Authority
CN
China
Prior art keywords
task
cluster
data
run
configuration information
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
CN201611091472.8A
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.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201611091472.8A priority Critical patent/CN106681808A/en
Publication of CN106681808A publication Critical patent/CN106681808A/en
Pending legal-status Critical Current

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/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Mathematical Physics (AREA)
  • Quality & Reliability (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a task scheduling method and device. The scheduling method comprises the steps that a submission interface of task configuration information for receiving the task configuration information is provided;corresponding alarm threshold values are set for at least one running status parameters of the task scheduling device, the current running status parameters of the task scheduling device are monitored;when any of the running status parameters is detected to reach the corresponding alarm threshold value, a preset alarm operation corresponding to the alarm threshold value is executed, and the submission interface of the task configuration information is set as not available. The receiving of the submitted task is stopped when the running status parameter of the task scheduling device is detected to reach the alarm threshold value, the collapse of the task scheduling device because of volume overload is avoided, and the stability of the task scheduling device is increased.

Description

A kind of method for scheduling task and device
Technical field
The present invention relates to field of computer technology, and in particular to a kind of method for scheduling task and device.
Background technology
Existing Task Scheduling Mechanism is all that the task to receiving is scheduled, but task scheduling server itself Easily go wrong, when task scheduling server is in higher load condition, continue to be easily caused to its submission task Task scheduling server crash, and prior art is not prevented this.
The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome the problems referred to above or at least in part solve on State the method for scheduling task and device of problem.
According to one aspect of the present invention, there is provided a kind of method for scheduling task, wherein, the method includes:
Task configuration information for receiving task configuration information is provided and submits interface to;
At least one running state parameter for task scheduling server arranges corresponding alarm threshold value, monitor task scheduling The current operating conditions parameter of server;
When any one running state parameter for monitoring reaches corresponding alarm threshold value, perform corresponding with the alarm threshold value Predetermined warning operation, and by the task configuration information submission interface be set to it is unavailable.
Alternatively, the method also includes:
When the running state parameter for monitoring drops under alarm threshold value, the task configuration information is submitted to again Interface is set to available;
The task configuration information of interface submission is submitted to by the task configuration information, corresponding appointing is generated and preserve Business configuration file.
Alternatively, the method also includes:
According to the task configuration information, the cluster of task run is determined;
Judge whether the cluster of task run meets task and submit condition to, if meeting, corresponding task configuration file is carried It is sent on corresponding cluster.
Alternatively, at least one during the task submits to condition to include as follows:
The cluster of task run can be accessed;
The available resources of the cluster of task run are not less than predetermined threshold;
The cluster of task run is not in maintenance state.
Alternatively, the method also includes:
Front end page for showing task run status information is provided;
In response to the task choosing instruction that front end page is submitted to, the task run state letter of corresponding task in each cluster is obtained Breath, returns to the task run status information of corresponding task the front end page and is shown.
Alternatively, at least one during the task run status information is included as follows:
Task run session information;
Task run progress msg;
Tasks leave temporal information;
Task run log information.
Alternatively, the method also includes:
Receive the mission failure daily record that each cluster is submitted to;
Mission failure daily record is analyzed, the failure information of task is obtained.
Alternatively, described that mission failure daily record is analyzed, obtaining the failure information of task includes:
The default failure sample storehouse comprising at least one failure model;The failure model includes:Mission failure daily record Failure information with rule and task;
Mission failure daily record is matched with the failure model in failure sample storehouse, is obtained according to the failure model for matching To the failure information of task.
Alternatively, at least one during the failure information of the task is included as follows:The failure cause of task, the mistake of task Miss code, the type of error of task.
Alternatively, the failure information of the task includes:The solution of mission failure;
The method also includes:According to the solution of mission failure, the task is resubmited on corresponding cluster, or Person, carries out the alert process of predetermined way.
According to another aspect of the present invention, there is provided a kind of task scheduling apparatus, including:
Task dispensing unit, is adapted to provide for the task configuration information for receiving task configuration information and submits interface to;
Monitoring unit, at least one running state parameter for being suitable for task scheduling server arranges corresponding warning level Value, the current operating conditions parameter of monitor task dispatch server;
Alert process unit, is suitable to, when any one running state parameter for monitoring reaches corresponding alarm threshold value, hold Row predetermined operation of reporting to the police corresponding with the alarm threshold value, and task configuration information submission interface is set to unavailable.
Alternatively, the alert process unit, be further adapted for when the running state parameter that monitor drop to alarm threshold value it When lower, task configuration information submission interface is set to again available;
The task dispensing unit, is suitable to submit to the task that interface is submitted to match somebody with somebody confidence by the task configuration information Breath, generates and preserves corresponding task configuration file.
Alternatively, the task dispensing unit, is further adapted for determining the collection of task run according to the task configuration information Group;Judge whether the cluster of task run meets task and submit condition to, if meeting, corresponding task configuration file is submitted to into phase On the cluster answered.
Alternatively, at least one during the task submits to condition to include as follows:
The cluster of task run can be accessed;
The available resources of the cluster of task run are not less than predetermined threshold;
The cluster of task run is not in maintenance state.
Alternatively, the device also includes:
Task run state display unit, is adapted to provide for the front end page for showing task run status information;And The task choosing instruction of front end page submission is adapted for, the task run status information of corresponding task in each cluster is obtained, The task run status information of corresponding task is returned to into the front end page to be shown.
Alternatively, at least one during the task run status information is included as follows:
Task run session information;
Task run progress msg;
Tasks leave temporal information;
Task run log information.
Alternatively, the device also includes:
Mission failure journal processing unit, is suitable to receive the mission failure daily record that each cluster is submitted to, to mission failure daily record It is analyzed, obtains the failure information of task.
Alternatively, the mission failure journal processing unit, is preset with the failure sample comprising at least one failure model Storehouse, the failure model includes:The failure information of mission failure log matches rule and task;
The failure log analysis unit is suitable to carry out the failure model in mission failure daily record and failure sample storehouse Match somebody with somebody, the failure information of task is obtained according to the failure model for matching.
Alternatively, at least one during the failure information of the task is included as follows:The failure cause of task, the mistake of task Miss code, the type of error of task.
Alternatively, the failure information of the task includes:The solution of mission failure;
The mission failure journal processing unit, is further adapted for, according to the solution of mission failure, the task being carried again It is sent on corresponding cluster, or, carry out the alert process of predetermined way.
From the foregoing, technical scheme, submits to interface to receive an assignment with confidence by task configuration information Breath, but while at least one running state parameter for task scheduling server arranges corresponding alarm threshold value, monitor task tune The current operating conditions parameter of degree server;When any one running state parameter for monitoring reaches corresponding alarm threshold value, Task configuration information submission interface is set to unavailable.The technical scheme in the operation for monitoring task scheduling server by joining Number stops receiving the mode of submission task when reaching alarm threshold value, it is to avoid task scheduling server is produced because of overload Collapse, enhances the stability of task scheduling server.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of description, and in order to allow the above and other objects of the present invention, feature and advantage can Become apparent, below especially exemplified by the specific embodiment of the present invention.
Description of the drawings
By the detailed description for reading hereafter preferred implementation, various other advantages and benefit is common for this area Technical staff will be clear from understanding.Accompanying drawing is only used for illustrating the purpose of preferred implementation, and is not considered as to the present invention Restriction.And in whole accompanying drawing, it is denoted by the same reference numerals identical part.In the accompanying drawings:
Fig. 1 shows the workflow schematic diagram of daily record data platform;
Fig. 2 shows a kind of schematic flow sheet of method for scheduling task according to an embodiment of the invention;
Fig. 3 shows a kind of structural representation of task scheduling apparatus according to an embodiment of the invention.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure and should not be by embodiments set forth here Limited.On the contrary, there is provided these embodiments are able to be best understood from the disclosure, and can be by the scope of the present disclosure Complete conveys to those skilled in the art.
Technical scheme can apply to daily record data platform, and Fig. 1 shows the workflow of daily record data platform Journey schematic diagram.As shown in figure 1, the daily record data platform is by daily record data, and by ETL, (Extract-Transform-Load takes out Take-change-load) process, result data is saved in into data warehouse, while supporting the statistical computation to daily record data, generate Form is saved in report database;And front end page is provided, and it is easy to the access of user, understand the operation conditions of task and incite somebody to action Report data carries out visual presentation etc..Whole platform also provides rights management function and task scheduling function, to daily record data Process, statistics and displaying regulated and controled.The present invention will focus on introduce it is interior in terms of rights management therein and visual presentation Hold.
Fig. 2 shows a kind of schematic flow sheet of method for scheduling task according to an embodiment of the invention, such as Fig. 2 institutes Show, the method includes:
Step S210, there is provided the task configuration information for receiving task configuration information submits interface to.
Step S220, is that at least one running state parameter of task scheduling server arranges corresponding alarm threshold value, prison The current operating conditions parameter of control task scheduling server.
Step S230, when any one running state parameter for monitoring reaches corresponding alarm threshold value, performs and the report The corresponding predetermined operation of reporting to the police of police's threshold value, and task configuration information submission interface is set to unavailable.
It can be seen that, the method shown in Fig. 2 submits interface to come the configuration information that receives an assignment by task configuration information, but while At least one running state parameter for task scheduling server arranges corresponding alarm threshold value, monitor task dispatch server Current operating conditions parameter;When any one running state parameter for monitoring reaches corresponding alarm threshold value, task is configured It is unavailable that information submits to interface to be set to.The technical scheme is by reaching warning in the operational factor for monitoring task scheduling server During threshold value, stop receiving the mode of submission task, it is to avoid the collapse that task scheduling server is produced because of overload, enhance The stability of task scheduling server.
In task dispatch server no longer heavy-duty service, can again recover form task and submit the available of interface to Property.That is, when the running state parameter for monitoring drops under alarm threshold value, report generation task submission interface is put again It is available;The report generation task of interface submission is submitted to by report generation task, is generated and is preserved corresponding task and match somebody with somebody Put file.
Task generally needs to be submitted in corresponding cluster to be run.In one embodiment of the invention, additionally provide as Lower method:Judge whether the cluster of task run meets task and submit condition to, if meeting, corresponding task configuration file is submitted to To on corresponding cluster.Wherein, at least one during task submits to condition to include as follows:The cluster of task run can be accessed; The available resources of the cluster of task run are not less than predetermined threshold;The cluster of task run is not in maintenance state.
That is, first judging the cluster of task run, whether whether whether network is unobstructed, safeguarded, can also be transported The capable task.Otherwise task cannot normally be submitted to the cluster, even if being submitted to the cluster, can not correctly run.
User can also check the operation conditions of task by front end page.In one embodiment of the invention, the party Method also includes:In response to the task choosing instruction that front end page is submitted to, the task run state of corresponding task in each cluster is obtained Information, returns to the task run status information of corresponding task front end page and is shown.So user can check at any time It has the running state information of the checking authority of the task, such as:Task run session information;Task run progress msg;Task is remained Remaining temporal information;Task run log information.The error log of task can be read in time, and task is modified;Or, Task is divided into multiple stages, for example, need the statistical computation for carrying out multiple stages, can check that task is carried out that stage. According to the amount of work and cluster resource of task, it may also be inferred that the operation progress of task and tasks leave time.
Task tends not to enough mistake letters for always normally running on cluster, artificial Exclusion Tasks being needed in prior art Breath, wastes time and energy, and in one embodiment of the invention, said method also includes:Receive the mission failure day that each cluster is submitted to Will;Mission failure daily record is analyzed, the failure information of task is obtained.Thus mission failure daily record is manually checked, arrange The time for looking into failure cause saves.Specifically, mission failure daily record is analyzed, obtains the failure information bag of task Include:The default failure sample storehouse comprising at least one failure model;Failure model includes:Mission failure log matches are regular and appoint The failure information of business;Mission failure daily record is matched with the failure model in failure sample storehouse, according to the failure for matching Model obtains the failure information of task.
For example, it is input into without data in path, such task cannot be run, then corresponding record is just had in daily record. Corresponding failure model is unsuccessfully set if such, then by mission failure daily record and the failure model failed in sample storehouse Matched, it is possible to the quick failure information for determining task, for example, included:The failure cause of task, the error code of task, The type of error of task.The type of error of task can include that type can be retried and can not retry type.Without number in be input into path According to as a example by, even if retrying the task, still without data in the input path, then task still will not normally be run.And such as Fruit is only to cannot connect to corresponding data base, then being likely to after retrying will be successful, and such type of error is exactly can be again Examination type mistake.Therefore the failure information of task can also include:The solution of mission failure;The method also includes:Foundation is appointed The solution of business failure, the task is resubmited on corresponding cluster, or, carry out the alert process of predetermined way. For type mistake can be retried, the task is resubmited by it and is retried on corresponding cluster;It is wrong for type can not be retried By mistake, the alert process of predetermined way is carried out, for example, sends mail or note to attendant.
In addition to aforesaid way, the run time of the task of its dependence is often estimated in the scheduling of existing task, for example Task B may be finished in the afternoon in 2 points of operations, then the run time of task A is possibly set to afternoon two point ten minutes.But Relevant in view of the operation of task and the idle degree of the cluster of operation task, when cluster is compared with busy, possible task B can in the afternoon two Thirty is just run and finishes, and so in the afternoon task A of 2 points of operations in ten minutes will operation exception;And work as cluster compared with idle, may Task B in the afternoon just run and finish by the half past one, and until ten minutes afternoons two point task A just can run, this 40 minutes when Between the resource of cluster be just wasted.And in the present embodiment, after the other conditions of task run meet, in appointing that it is relied on The task just can be run after business operation is finished.
Specifically, task can be the report generation task in daily record data platform.Task also include it is following in it is arbitrary Kind:The basic parameter of task;The time conditions of task run;The cluster of task run;The physical resource condition of task run;Appoint The data resource condition of business operation;The dependence of task and other tasks.
For example, it is intended that task is run on which cluster, it is desirable to which what configuration the machine on cluster meets;Periodic task Could be arranged to be performed in daily fixed time period, and temporary duty can also increase restrictive condition, as only specified Perform in daily fixed time period in one week.When task is submitted to into cluster, can be according to load balancing principle, from task At least one machine is selected to run the task in the cluster of operation.
If the dependence comprising task and other tasks in report generation task, can directly according to task and its The dependence of his task generates task topological diagram;Task topology can also be generated according to the data resource condition of task run Figure, wherein, the data resource condition of task run includes:The input address of task run desired data, and/or task run knot The OPADD of fruit.
For example, the data needed for task A are the results that task B is obtained, then the OPADD of task B and task A Input address matching, thus obtained task A and depended on task B.
User can be viewed by front end page and check the task topological diagram of authority, and it is modified.Therefore In one embodiment of the invention, the method also includes:In response to the displaying instruction that front end page sends, by multiple tasks And/or the task topological diagram comprising dependence between multiple tasks returns to front end page and is shown.User can be with basis There are the multiple tasks for checking authority, generate new task topological diagram.For example, task A and task B are added to into new task topology In figure, and the task A of formulation depends on task B.Or, the dependence in existing task topological diagram is modified.I.e.:Connect Newly-increased/modification/deletion the instruction of dependence between the task that front end page sends is received, is correspondingly generated or modification task topology Figure.Front end page can be visually presented with task topological diagram, and for example, user is when topological diagram is changed, it is only necessary to make task Pull into for node or hauling-out figure, with arrow logo dependence between two tasks.
In one embodiment of the present of invention, corresponding appointing can also be caused by modifying to report generation task Business topological diagram sends change.The modification instruction of report generation task is received, the task configuration file of corresponding task is modified; Instruction is changed according to report generation task to judge whether to need the task topological diagram related to the task to modify, if so, then Modified according to the task topological diagram that amended task configuration file is related to the task.For example, input address are have changed, The task A of may be such that eliminates the reliance on task B, but is changed into dependence task C.
It is mentioned above, user can view the task topological diagram for checking authority.In addition, the specific tasks of task scheduling Can be report generation task or daily record data parsing task, the following examples will introduce daily record number with reference to rights management According to implementing for parsing, warehouse-in and report generation.
In one embodiment of the invention, said method includes:The daily record data of at least one specified services is carried out Dissection process, obtains the daily record data of the formatting of business and is saved in data warehouse in corresponding Data Mart;For data Each Data Mart in warehouse configures authority by user grouping;Front end page is provided, according to the User logs in that front end page sends Information, determines the user grouping information of the user;When the Data Mart for receiving front end page transmission checks instruction, according to this The user grouping information of user, shows that it has the Data Mart information for checking authority by front end page to the user.
Data warehouse (Data Warehouse) is particularly suitable for for scattered data carrying out standardization storage, and data bins Can be according to the particular content of business in storehouse, the fact that arrange corresponding table and dimension table, it is generally the case that daily record data can be protected In the fact that be stored to corresponding table.When business is more, multiple Data Marts (Data Mart) can be set in data warehouse, each Data Mart can correspond to a class business.For example, the sector member of product A only possesses the power of checking of the Data Mart to product A Limit, without possess the Data Mart to product B authority is checked.If user A submits to Data Mart to look into by front end page Instruction is seen, it can be viewed and possessed the Data Mart information for checking authority, such as Data Mart title.The technical scheme is realized Unified management warehouse-in and authority distribution to the daily record data of business, specification, orderly realizes the pipe to daily record data Control, is particularly suitable for the enterprise that service line is more, daily record data amount is big, organizational structure is complicated.
Following embodiments on the basis of rights management, will introduce the ETL process of daily record data.
In one embodiment of the invention, the method shown in Fig. 2 also includes:The corresponding relation of configuration service and domain name, The daily record data for receiving is classified by domain name;Dissection process bag is carried out to the daily record data of at least one specified services Include:According to the corresponding domain name of the business, dissection process is carried out to the daily record data under the domain name classification.
In actual applications, by taking Internet firm as an example, it is often opened for the different domain name of each traffic assignments managed The development of the business of carrying out, thus produce daily record data both also be from different domain names, by the daily record data for receiving by domain Name carries out classification fast can realize exactly that daily record data is classified.Due to the extensive application of distributed type assemblies, each industry Business is often carried out on different distributed type assemblies, and for example, the functional module of same business may be in some of the whole nation Dispose on individual different clusters, similarly, there are multiple service lines of the task may be run on same cluster, then daily record data is by next The modes such as source carry out classification and are nothing like classifying fast and convenient by domain name.There can also be multiple subdomains under each domain name in this example Name, the subservice in correspondence business, such domain name compares various, can be saved as metadata with the corresponding relation of business, It is managed as data dictionary and uses.It is of course also possible to distribute not by user grouping for checking, change etc. for metadata With authority, such as manager can possess modification authority, and domestic consumer only possesses authority for checking partial content etc..
In one embodiment of the invention, said method also includes:A sample daily record to being input into is carried out at parsing Reason, the analysis result of output formatting;The analysis result of receive user confirms after instruction that record parsing sample daily record is adopted Daily record resolution rules;Carrying out dissection process to the daily record data of at least one specified services includes:According to the daily record solution for being recorded Analysis rule, the Source log data of the business specified to user carry out dissection process.
For example for sample daily record:<Id=123><Sex=male><Age=18>, daily record resolution rules can be obtained For:ID is the string number started with " id=";Sex is a string of the characters started with " sex=";Age is with " age =" start numeral.So apply the daily record resolution rules, it is possible to right<Id=1233><Sex=male><Age=8>、< Id=12332><Sex=male><Age=28>Such Source log data carry out parsing.
Specifically, multiple log contents identification engines can be preset, for recognize different-format respectively log content simultaneously It is parsed into one or more fields;Sample daily record is sequentially inputted in multiple log content identification engines;By each log content The each field of output of identification engine carries out collecting the analysis result for obtaining formatting.
The system used due to each business or server may be different, and the form of the daily record data of generation is also various many Sample.Shown below is the example of several daily records:
1、http://mbs.hao.360.cn/index.phpId=1353332&sex=male&age=28&....
2、{"id":"13532232332","sex":"male","age":"28"}
3、<Id=13532232332><Sex=male><Age=28>
4、id->13532232332;sex->male;age->28
It can be seen that the form of these four daily records is diverse.Default multiple daily records can be utilized in the above-described embodiments Recognize engine to recognize the log content of different-format.For example, JSON is a kind of more conventional data form, and its content is included Structure it is typically specific, for example log content is divided into (as above by multiple fields with symbols such as braces, colon, quotation marks The example 2 in face), and be directed to the daily record of JSON forms identification engine just can be carried out log content at parsing by these separators Reason, obtains one or more data of one or more fields.Specifically, during log content identification engine can include as follows One or more:IP address recognizes engine;Time-stamp Recognition engine;ID recognizes engine;Channel recognizes engine;JSON forms Content recognition engine.The form of IP address can be estimate (for example:Xxx.xxx.xxx.xxx), ID often by NAME, USER_ID or ID etc. can arrange corresponding key values (such as channel) as key values, channel by developer, timestamp Form is usually " YYYY-MM-DD HH:mm:SS”.Especially, IP address identification engine can with after IP address is identified, IP address is further parsed, IP address analysis result includes following one or more fields:Country, province, city, operator.Certainly, According to demand more detailed address can also be extended to, IP address analysis result can also include that word is expanded in area, street etc. Section, but these are relatively low for follow-up process use under normal conditions, can waste certain resource, can carry out according to demand Arrange.
As can be seen that daily record identification engine is also configurable, the key that such as different business is used channel is probably Different.Therefore in one embodiment of the invention, there is provided log content recognizes engine edition interface, by the interface Increase/delete/modification log content recognizes the instruction of engine, according to instruction perform corresponding log content identification module increase/ Delete/modification operation.
In practice the form of daily record is very various.Luckily these journal formats all include specification, discernible knot mostly Structure, can be recognized by different daily record identification engines.But for the daily record data that a business is produced, generally can't All of daily record identification engine is used, and the daily record data quantity that business is produced is various, if calling all of daily record every time Recognize engine to be identified, not only waste of resource, efficiency is also very beneath.Therefore in one embodiment of the invention, it is above-mentioned In method, each log content for having output result is only recognized the identification resolution rules summary record of engine.So next time is right When the daily record data of the business carries out dissection process, it is not necessary to which waste actually will not recognize engine using to log content .
However, not all daily record data is generated with the form of such specification, default daily record recognizes engine Most daily record data can be processed, but can also there is the situation that analysis result does not meet daily record original meaning.Therefore in the present invention One embodiment in, when there is the content of the equal None- identified of each log content identification engine in sample daily record, by making by oneself Justice identification interface exports the content;The recognition result being input into after self-defined identification interface artificial cognition and corresponding knowledge Other resolution rules;The identification resolution rules being input into after the artificial cognition are recorded as to parse the daily record parsing that sample daily record is adopted A part for rule.For example, conventional separator includes colon, branch, big round bracket etc., if the daily record data of a class business In contain the separator being of little use, it is necessary to user is identified result and corresponding identification solution in self-defined identification interface Analysis rule input.
In one embodiment of the invention, said method also includes:By front end page receives input to parsing knot The instruction that each field in fruit is operated, and perform corresponding operation;The finger that each field in analysis result is operated Make one or more in including as follows:Adjust the instruction of the clooating sequence of each field;The instruction of the title of modification specific field; Delete the instruction of specific field.
For example, the data of a field in analysis result are calculated without any help subsequent statistical, can delete this Field;Field name in analysis result is " USERNAME ", wishes to be changed to " user name " etc. during subsequent treatment, these Can be operated in analysis result editing interface.
Whole field can be operated in a upper embodiment, and in one embodiment of the invention, said method In, the identification resolution rules of a log content identification engine include:To recognizing and in one or more fields for parsing The parameter value of specific field is arranged and limits threshold value;For parameter value carries out discard processing beyond the daily record data for limiting threshold value.This Sample can just discard the unwanted data in part when daily record is parsed, and reduce the later stage and carry out the operation of daily record data discarding.
Describing in above-described embodiment carries out the operation of dissection process to daily record data, and parses the form of the business for obtaining The daily record data of change is saved in data warehouse in corresponding Data Mart, is somebody's turn to do in particular it is required that being determined according to field attribute Row in the corresponding data warehouse of field;Data to be stored are stored in data warehouse in corresponding row by field.
Address above, table and dimension table can be included the fact that in data warehouse, what these tables of data were typically built up in advance, For storing the data for receiving.Therefore, the data for receiving can by by attribute determine its it is corresponding be which in tables of data Row.And each table is included, and row are typically different, thus only need to determine in the present embodiment its it is corresponding be data warehouse In which row.
Specifically, determine that the row in the corresponding data warehouse of the field include according to field attribute:Read data warehouse Metadata, obtains the attribute of each row in data warehouse;According to the attribute of each row in field attribute and data warehouse, set up to be stored The mapping relations of the data of each field and Ge Lie in data.Metadata includes:Service attribute and/or data that data warehouse is respectively arranged Attribute, wherein, service attribute include it is following at least one:Business Name, business domain name, business description information;Data belong to Property include it is following at least one:Row name, data form, data type.For example, it is which that " user name " this field is corresponding Individual row, such corresponding relation can be stored in the metadata of data warehouse.
In one embodiment of the invention, said method also includes:By front end page receives input to specifying row The instruction that processed of data, instruction include it is following at least one:Data deciphering, Data Format Transform, data encoding Conversion;According to the instruction for receiving, the data to specifying row are processed accordingly.
For example, unserializing process is carried out to the data of the row so as to become readable;Time in daily record is colon form Data, be converted into timestamp, etc..
Data can be screened out in daily record identification engine in previous embodiment, in one embodiment of the invention Additionally provide the method screened out to the data in data warehouse:By the train value to specifying row of front end page receives input The instruction for limiting threshold value is set;According to the instruction, train value is carried out into delete processing beyond the whole piece data for limiting threshold value.For example, Whole piece data of the access times less than 3 are deleted.
Analogously, can also by front-end interface receives input he to data warehouse in the finger that operated of each row Order, and perform corresponding operation;The instruction that each row in data warehouse are operated include it is following in one or more:Adjust The instruction of the clooating sequence of whole each row;The instruction of the row name of row is specified in modification;Delete the instruction for specifying row.
It should be noted that directly the data in data warehouse are adjusted in this embodiment, and in aforementioned enforcement Although the clooating sequence of each field, the title of modification specific field can also be adjusted in example or specific field is deleted, these numbers According to data warehouse is not also stored in, in data buffer storage.
In one embodiment of the invention, in said method, Data Mart includes at least one tables of data;For data bins Each Data Mart in storehouse is also included by user grouping configuration authority:Each tables of data for Data Mart is looked into by user grouping configuration See authority, and authority is checked by user grouping configuration for each row of tables of data;According to the user grouping information of the user, pass through Front end page shows that it has the Data Mart information for checking authority to include to the user:According to the user grouping information of the user, Show that it has the tables of data for checking authority to the user, and/or show that it there are the row in the tables of data for checking authority to the user. For example, operation personnel can check the tables of data of business flowing water, and technical staff can not check.
Following embodiments will be introduced and include report generation, i.e. the daily record data to formatting carries out the concrete reality of statistical computation It is existing.
In one embodiment of the invention, said method also includes:Receive and preserve user to submit to by front end page Report generation task;According to the daily record data in the Data Mart specified in report generation task, generate form and preserve to Report database;Wherein, the authority for arranging in the tables of data in the corresponding Data Mart of the authority of each row of the form of generation It is identical;The authority of the form is determined according to the authority of each row of form.
Daily record data that in the present embodiment can be in data warehouse, carries out statistical computation, generates statistical report form etc.. By the form thus according to the data genaration in data warehouse, its authority has also followed the authority of former data.Finally, if one Form includes four row, then the user of the user grouping only having permission to either rank in this four row can just check the form, and And it can only view it and have that string for checking authority.For example, the user grouping that user A is located can check first three of form Row, then the form that he sees just only three is arranged rather than four row.
In one embodiment of the invention, in said method, according in the Data Mart specified in report generation task Daily record data, generating form and preserving to report database includes:According to report generation task, it is determined that complete report generation appointing The data processing model of business, and specified daily record data is read from corresponding Data Mart;Using the data processing mould for determining Type treats daily record data and carries out data processing, generates form and preserves to report database.
Existing form exploitation generally requires technical staff and writes code manually, and data are carried out with statistical computation, time-consuming to take Power, and when the form quantity of demand is more, it is impossible to quickly meet the demand of user.Present embodiments provide a kind of form Automatic generation method, user only needs to specify the daily record data generated needed for form, selects the data processing model specified, so that it may To obtain corresponding form, simply save time.Wherein, report generation task includes:Input address;According to report generation task middle finger Daily record data in fixed Data Mart, generating form and preserving to report database includes:Daily record number is read from input address According to generation form is simultaneously preserved to report database.Certainly, report database can also be specified by OPADD.
Except specifying input address, can be so that more many condition be limited in report generation task by user, such as using number According to the partial data of certain tables of data in fairground.Therefore in one embodiment of the invention, report generation task includes:User The standard queries sentence or the query argument of user input of input;The method also includes:With the standard queries sentence of user input Corresponding Data Mart is inquired about, the daily record data in the Data Mart that user specifies is obtained;Or, according to the inquiry of user input Parameter generates standard queries sentence, and with the standard queries sentence for generating corresponding Data Mart is inquired about, and obtains the data set specified Daily record data in city.For example for the technical staff of enterprise data center, standard of compiling query statement is handy, but For common business personnel may can't write such query statement.Therefore provide in the present embodiment user is defeated The querying condition for entering carries out the function of assembly.The content that for convenience identifying user is input into, user is in inquiry except specifying phase Outside the Data Mart answered, can also specify for the character repertoire of identified input content, it is to avoid the content of input is not correctly validated.
Due to the data volume in Data Mart it is very huge, if user do not arrange in querying condition it is corresponding limit, Such as time conditions, the data volume asked may cause the collapse of Data Mart.Therefore in one embodiment of the present of invention In, said method also includes:Sentence filtering rule, the standard queries language of standard queries sentence or generation to user input are set Sentence is filtered.The method of above-mentioned inquiry can be not only used for the inquiry of concrete daily record data, it is also possible to for Data Mart letter The inquiry of breath.
Generate form needed for data processing model can user specify, it is also possible to user from provide data processing Select in model, in one embodiment of the invention, according to report generation task, it is determined that completing the number of report generation task Include according to model is processed:The data processing model specified is selected from data processing model storehouse, wherein, in data processing model storehouse Comprising following at least one data processing model:Newly-increased statistical model;Enliven statistical model;Retain statistical model.These moulds Type can respectively be counted in the daily record of a certain day from daily record, user's (Adding User) quantity for not occurring in history, The retention situation that the quantity of any active ues, a certain day Add User in the specified time period.Certainly, specific data model can be with root It is added according to business demand or configures, here is not limited.User is typically no longer needed when using these data processing models Write code, it is only necessary to use by parameter information is provided, for example, which row to carry out statistical computation etc. using.That is, Report generation task also includes:The parameter information of the data processing model specified;Using the data processing model for determining to daily record Data carry out data processing to be included:Application parameter information carries out with postponing to specified data processing model, using with postponing Data processing model carries out data processing to daily record.
Certainly, the model of this " foolproof " can not meet all demands of user.Therefore in a reality of the present invention In applying example, the data processing model specified in said method is streaming models;Report generation task also includes:At least one The self-defining code snippet of section;Parameter information includes:One piece of logic partitioning is right in every section of code snippet and streaming models Should be related to.
For example, user is desirable with statistical computation of the Map-Reduce frameworks execution to daily record data.So in this enforcement In example, user only needs to develop respectively Map program code segments and Reduce program code segments, and (core for namely performing calculating is patrolled Volume), without writing complete code again.When form task is submitted to, it is only necessary to by Map program code segments and Reduce program generations Code section is respectively filled in front end page code input frame corresponding with Map sections and Reduce sections, it is possible to realize on backstage overall The assembly of code, such program is easily managed and changes, and decreases the possibility of written in code mistake.
In the case where above-mentioned model can not all meet user's request, user can also select self-defining model, therefore In said method, report generation task includes:The address of self-defining data processing model;It is determined that completing report generation task Data processing model includes:Self-defining data processing model is read from the address.Or, in the case of size of code is less Can be by uploading between front end page.Self-defining data processing model can also be saved in data processing model storehouse, on Biography person can also be its distribution authority.
Except the method that daily record data above in Data Mart generates form, user can also open other modes The report upload sent out carries out unified control of authority and management to report database.Therefore in one embodiment of the invention, Said method also includes:The form that receive user is uploaded by front end page, and/or submitted to by front end page according to user Form store path, the form specified is obtained from the path, is saved in report database.
In one embodiment of the invention, said method also includes:According to the user grouping information of user, to its displaying The Data Mart and/or form of editable authority;The authority edit instruction that receive user is submitted to, to Data Mart and/or form Authority edited accordingly.
In the present embodiment there is provided the management control method of authority, possess the manager of higher-rights (such as in data The manager of the heart) authority of data that can possess it editing authority enters edlin.For example, business director can control it The member of each group can only see the related form of the group.
In one embodiment of the invention, said method also includes:According to the user grouping information of the user, by front End page shows that it has the report name for checking authority towards the user;Report generation task includes:The form that user specifies;According to Daily record data in the Data Mart specified in report generation task, generating form and preserving to report database includes:Use The configuration information of the form that user specifies, the daily record data in the Data Mart specified in report generation task generates report Table.
The method according to the new form of existing report generation is provided in the present embodiment, is properly termed as " form clone ", i.e., Using a configuration information for having developed the form for completing, generate new form, form of so new form etc. all with develop Former form it is similar.
Following embodiments will also be introduced and for report data carry out implementing for visual presentation.
In one embodiment of the invention, said method also includes:When the form for receiving user input checks instruction When, data of the user with the row for checking authority in the form are shown to the user by front end page.
Due to the data volume in form be typically it is very big (business that may include carry out since all data, such as it is several The data in year), row name is only shown in the aforementioned embodiment and does not show the concrete data in row.And check instruction in user input Afterwards, then by specific data (including restrictive condition, for example, time conditions) it is shown.
In one embodiment of the invention, said method also includes:New Report in report database is checked time Number is initialized as zero;When the form for receiving user input checks instruction, corresponding report is checked into that number of times increases by one;For each Whether form arranges cleaning cycle, when the time point of cleaning cycle is reached, check number of times less than clearly according to judge the form Reason threshold value, if being less than, deletes corresponding report generation task.
After report generation task is set up, because daily record data is being continuously generated, therefore report data is also constantly more Newly, this undoubtedly consumes substantial amounts of resource, therefore even 0 form less for the amount of checking, corresponding report generation is appointed Business carries out deletion can economize on resources.
In one embodiment of the invention, said method also includes:According to the user grouping information of user, to its displaying It has the statistics graph model of access right, so that front end page is according to user's statistics graph model selected and the number for having shown that form According to the corresponding cartogram of generation.
Form is typically the mode of form, and this is simultaneously unfavorable for viewing, and the mode of cartogram is just more directly perceived, such as pie Figure, block diagram etc..Therefore the method that cartogram is generated according to report data is provided in the present embodiment.And specifically, statistics Graph model include it is following in any one:According to the mould of the data genaration cartogram for having shown that form cached in front end page Type;Again the data that user in the form has the row for checking authority are obtained from data source, generates the model of cartogram;To opening up The data source for showing form enters the statistics graph model of edlin.
In above-mentioned model, need not according to the model of the data genaration cartogram for having shown that form cached in front end page Interact with server, even if such user is ranked up, classifies etc. operation in front end page to data, all without again Lose time to conduct interviews report database with resource;And the form more sensitive for real-time property, it is possible to use Again the data that user in the form has the row for checking authority are obtained from data source, generates the model of cartogram.Further, since In many cases user wishes to modify form, for example change row name, and access report database be it is sufficiently complex, because This additionally provides the statistics graph model that the data source to having shown that form enters edlin.
Following embodiments describe the monitoring management carried out to whole platform.
In one embodiment of the invention, said method also includes:Any one operation performed to user is recorded, Corresponding with user profile it is saved in monitoring data storehouse by the operating time.
Although as can be seen that the operation that user performs has strict rights management, being still very sensitive operation. Any one operation for performing to user in the present embodiment is recorded, and can facilitate exclusion in the future, and secret is occurring A suspect is quickly determined during leakage accident.
In one embodiment of the invention, said method also includes:Operation is set by action type and reports to the police tactful and right The warning operation that should be performed;When strategy is reported to the police in the operation for matching the action type of any one operation that user performs, perform Corresponding operation of reporting to the police.
For example, although certain user possesses the authority of checking to large quantities of forms, but within the shorter time period, it is visited in large quantities These forms are asked, this behavior is likely to reveal the behavior of corporate secret, it is therefore desirable to perform corresponding operation of reporting to the police, this Sample just can as far as possible reduce the loss of secret, be saved in time.
Fig. 3 shows a kind of structural representation of task scheduling apparatus according to an embodiment of the invention, such as Fig. 3 institutes Show, task scheduling apparatus 300 include:
Task dispensing unit 310, is adapted to provide for the task configuration information for receiving task configuration information and submits interface to;
Monitoring unit 320, at least one running state parameter for being suitable for task scheduling server arranges corresponding warning Threshold value, the current operating conditions parameter of monitor task dispatch server;
Alert process unit 330, is suitable to when any one running state parameter for monitoring reaches corresponding alarm threshold value, Predetermined operation of reporting to the police corresponding with the alarm threshold value is performed, and task configuration information submission interface is set to unavailable.
It can be seen that, the device shown in Fig. 3 submits interface to come the configuration information that receives an assignment by task configuration information, but while At least one running state parameter for task scheduling server arranges corresponding alarm threshold value, monitor task dispatch server Current operating conditions parameter;When any one running state parameter for monitoring reaches corresponding alarm threshold value, task is configured It is unavailable that information submits to interface to be set to.The technical scheme is by reaching warning in the operational factor for monitoring task scheduling server During threshold value, stop receiving the mode of submission task, it is to avoid the collapse that task scheduling server is produced because of overload, enhance The stability of task scheduling server.
In one embodiment of the invention, in said apparatus, the alert process unit 330 is further adapted for monitoring Running state parameter when dropping under alarm threshold value, task configuration information submission interface is set to again available;Institute Task dispensing unit 310 is stated, is suitable to submit the task configuration information of interface submission to by the task configuration information, generated And preserve corresponding task configuration file.
In one embodiment of the invention, in said apparatus, the task dispensing unit 310 is further adapted for according to described Task configuration information, determines the cluster of task run;Judge whether the cluster of task run meets task and submit condition to, if full Foot, corresponding task configuration file is submitted on corresponding cluster.
In one embodiment of the invention, in said apparatus, the task submit to condition include it is following at least one Kind:The cluster of task run can be accessed;The available resources of the cluster of task run are not less than predetermined threshold;The collection of task run Group is not in maintenance state.
In one embodiment of the invention, said apparatus also include:Task run state display unit, is adapted to provide for using In the front end page for showing task run status information;And the task choosing instruction that front end page is submitted to is adapted for, obtain Take the task run status information of corresponding task in each cluster, by the task run status information of corresponding task return to it is described before End page face is shown.
In one embodiment of the invention, in said apparatus, the task run status information include it is following in extremely Few one kind:Task run session information;Task run progress msg;Tasks leave temporal information;Task run log information.
In one embodiment of the invention, said apparatus also include:Mission failure journal processing unit, is suitable to receive each The mission failure daily record that cluster is submitted to, is analyzed to mission failure daily record, obtains the failure information of task.
In one embodiment of the invention, in said apparatus, the mission failure journal processing unit is preset with and includes The failure sample storehouse of at least one failure model, the failure model includes:The mistake of mission failure log matches rule and task Lose information;The failure log analysis unit is suitable to carry out the failure model in mission failure daily record and failure sample storehouse Match somebody with somebody, the failure information of task is obtained according to the failure model for matching.
In one embodiment of the invention, in said apparatus, the failure information of the task include it is following at least It is a kind of:The failure cause of task, the error code of task, the type of error of task.
In one embodiment of the invention, in said apparatus, the failure information of the task includes:The solution of mission failure Certainly scheme;The mission failure journal processing unit, is further adapted for, according to the solution of mission failure, the task being resubmited To on corresponding cluster, or, carry out the alert process of predetermined way.
It should be noted that the specific embodiment of above-mentioned each device embodiment is concrete with aforementioned corresponding method embodiment Mode is identical, will not be described here.
In sum, technical scheme, interface is submitted to come the configuration information that receives an assignment by task configuration information, But while at least one running state parameter for task scheduling server arranges corresponding alarm threshold value, monitor task scheduling clothes The current operating conditions parameter of business device;When any one running state parameter for monitoring reaches corresponding alarm threshold value, will appoint It is unavailable that business configuration information submits to interface to be set to.The technical scheme in the operational factor for monitoring task scheduling server by reaching During to alarm threshold value, stop receiving the mode of submission task, it is to avoid the collapse that task scheduling server is produced because of overload, Enhance the stability of task scheduling server.
It should be noted that:
Provided herein algorithm and display be not inherently related to any certain computer, virtual bench or miscellaneous equipment. Various fexible units can also be used together based on teaching in this.As described above, construct required by this kind of device Structure be obvious.Additionally, the present invention is also not for any certain programmed language.It is understood that, it is possible to use it is various Programming language realizes the content of invention described herein, and the description done to language-specific above is to disclose this Bright preferred forms.
In description mentioned herein, a large amount of details are illustrated.It is to be appreciated, however, that the enforcement of the present invention Example can be put into practice in the case of without these details.In some instances, known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help understand one or more in each inventive aspect, exist Above in the description of the exemplary embodiment of the present invention, each feature of the present invention is grouped together into single enforcement sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor The more features of feature that the application claims ratio of shield is expressly recited in each claim.More precisely, such as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself All as the separate embodiments of the present invention.
Those skilled in the art are appreciated that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment Unit or component are combined into a module or unit or component, and can be divided in addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit is excluded each other, can adopt any Combine to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification is (including adjoint power Profit is required, summary and accompanying drawing) disclosed in each feature can it is identical by offers, be equal to or the alternative features of similar purpose carry out generation Replace.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment required for protection appoint One of meaning can in any combination mode using.
The present invention all parts embodiment can be realized with hardware, or with one or more processor operation Software module realize, or with combinations thereof realization.It will be understood by those of skill in the art that can use in practice Microprocessor or digital signal processor (DSP) to realize task scheduling apparatus according to embodiments of the present invention in some or The some or all functions of person's whole part.The present invention is also implemented as perform method as described herein one Divide the equipment or program of device (for example, computer program and computer program) of either whole.It is such to realize this Bright program can be stored on a computer-readable medium, or can have the form of one or more signal.It is such Signal can be downloaded from internet website and obtained, or be provided on carrier signal, or be provided in any other form.
It should be noted that above-described embodiment the present invention will be described rather than limits the invention, and ability Field technique personnel can design without departing from the scope of the appended claims alternative embodiment.In the claims, Any reference markss between bracket should not be configured to limitations on claims.Word "comprising" is not excluded the presence of not Element listed in the claims or step.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can come real by means of the hardware for including some different elements and by means of properly programmed computer It is existing.If in the unit claim for listing equipment for drying, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and be run after fame Claim.
The invention discloses A1, a kind of method for scheduling task, wherein, the method includes:
Task configuration information for receiving task configuration information is provided and submits interface to;
At least one running state parameter for task scheduling server arranges corresponding alarm threshold value, monitor task scheduling The current operating conditions parameter of server;
When any one running state parameter for monitoring reaches corresponding alarm threshold value, perform corresponding with the alarm threshold value Predetermined warning operation, and by the task configuration information submission interface be set to it is unavailable.
A2, the method as described in A1, wherein, the method also includes:
When the running state parameter for monitoring drops under alarm threshold value, the task configuration information is submitted to again Interface is set to available;
The task configuration information of interface submission is submitted to by the task configuration information, corresponding appointing is generated and preserve Business configuration file.
A3, the method as described in A2, wherein, the method also includes:
According to the task configuration information, the cluster of task run is determined;
Judge whether the cluster of task run meets task and submit condition to, if meeting, corresponding task configuration file is carried It is sent on corresponding cluster.
A4, the method as described in A3, wherein, the task submit to condition include it is following at least one:
The cluster of task run can be accessed;
The available resources of the cluster of task run are not less than predetermined threshold;
The cluster of task run is not in maintenance state.
A5, the method as described in A3, wherein, the method also includes:
Front end page for showing task run status information is provided;
In response to the task choosing instruction that front end page is submitted to, the task run state letter of corresponding task in each cluster is obtained Breath, returns to the task run status information of corresponding task the front end page and is shown.
A6, the method as described in A5, wherein, the task run status information include it is following at least one:
Task run session information;
Task run progress msg;
Tasks leave temporal information;
Task run log information.
A7, the method as described in A3, wherein, the method also includes:
Receive the mission failure daily record that each cluster is submitted to;
Mission failure daily record is analyzed, the failure information of task is obtained.
A8, the method as described in A7, wherein, it is described that mission failure daily record is analyzed, obtain the failure information of task Including:
The default failure sample storehouse comprising at least one failure model;The failure model includes:Mission failure daily record Failure information with rule and task;
Mission failure daily record is matched with the failure model in failure sample storehouse, is obtained according to the failure model for matching To the failure information of task.
A9, the method as described in A8, wherein, the failure information of the task include it is following at least one:Task Failure cause, the error code of task, the type of error of task.
A10, the method as described in A8, wherein, the failure information of the task includes:The solution of mission failure;
The method also includes:According to the solution of mission failure, the task is resubmited on corresponding cluster, or Person, carries out the alert process of predetermined way.
The invention also discloses B11, a kind of task scheduling apparatus, wherein, the device includes:
Task dispensing unit, is adapted to provide for the task configuration information for receiving task configuration information and submits interface to;
Monitoring unit, at least one running state parameter for being suitable for task scheduling server arranges corresponding warning level Value, the current operating conditions parameter of monitor task dispatch server;
Alert process unit, is suitable to, when any one running state parameter for monitoring reaches corresponding alarm threshold value, hold Row predetermined operation of reporting to the police corresponding with the alarm threshold value, and task configuration information submission interface is set to unavailable.
B12, the device as described in B11, wherein,
The alert process unit, is further adapted for when the running state parameter for monitoring drops under alarm threshold value, weight Newly task configuration information submission interface is set to available;
The task dispensing unit, is suitable to submit to the task that interface is submitted to match somebody with somebody confidence by the task configuration information Breath, generates and preserves corresponding task configuration file.
B13, the device as described in B12, wherein,
The task dispensing unit, is further adapted for determining the cluster of task run according to the task configuration information;Judge to appoint Whether the cluster of business operation meets task is submitted condition to, if meeting, corresponding task configuration file is submitted to into corresponding cluster On.
B14, the device as described in B13, wherein, the task submit to condition include it is following at least one:
The cluster of task run can be accessed;
The available resources of the cluster of task run are not less than predetermined threshold;
The cluster of task run is not in maintenance state.
B15, the device as described in B13, wherein, the device also includes:
Task run state display unit, is adapted to provide for the front end page for showing task run status information;And The task choosing instruction of front end page submission is adapted for, the task run status information of corresponding task in each cluster is obtained, The task run status information of corresponding task is returned to into the front end page to be shown.
B16, the device as described in B15, wherein, the task run status information include it is following at least one:
Task run session information;
Task run progress msg;
Tasks leave temporal information;
Task run log information.
B17, the device as described in B13, wherein, the device also includes:
Mission failure journal processing unit, is suitable to receive the mission failure daily record that each cluster is submitted to, to mission failure daily record It is analyzed, obtains the failure information of task.
B18, the device as described in B17, wherein,
The mission failure journal processing unit, is preset with the failure sample storehouse comprising at least one failure model, described Failure model includes:The failure information of mission failure log matches rule and task;
The failure log analysis unit is suitable to carry out the failure model in mission failure daily record and failure sample storehouse Match somebody with somebody, the failure information of task is obtained according to the failure model for matching.
B19, the device as described in B18, wherein, the failure information of the task include it is following at least one:Task Failure cause, the error code of task, the type of error of task.
B20, the device as described in B18, wherein, the failure information of the task includes:The solution of mission failure;
The mission failure journal processing unit, is further adapted for, according to the solution of mission failure, the task being carried again It is sent on corresponding cluster, or, carry out the alert process of predetermined way.

Claims (10)

1. a kind of method for scheduling task, wherein, the method includes:
Task configuration information for receiving task configuration information is provided and submits interface to;
At least one running state parameter for task scheduling server arranges corresponding alarm threshold value, monitor task dispatch service The current operating conditions parameter of device;
When any one running state parameter for monitoring reaches corresponding alarm threshold value, perform corresponding with the alarm threshold value pre- Fixed operation of reporting to the police, and task configuration information submission interface is set to unavailable.
2. the method for claim 1, wherein the method also includes:
When the running state parameter for monitoring drops under alarm threshold value, the task configuration information is submitted to interface again It is set to available;
The task configuration information of interface submission is submitted to by the task configuration information, is generated and is preserved corresponding task and match somebody with somebody Put file.
3. method as claimed in claim 2, wherein, the method also includes:
According to the task configuration information, the cluster of task run is determined;
Judge whether the cluster of task run meets task and submit condition to, if meeting, corresponding task configuration file is submitted to On corresponding cluster.
4. method as claimed in claim 3, wherein, the task submit to condition include it is following at least one:
The cluster of task run can be accessed;
The available resources of the cluster of task run are not less than predetermined threshold;
The cluster of task run is not in maintenance state.
5. method as claimed in claim 3, wherein, the method also includes:
Front end page for showing task run status information is provided;
In response to the task choosing instruction that front end page is submitted to, the task run status information of corresponding task in each cluster is obtained, The task run status information of corresponding task is returned to into the front end page to be shown.
6. a kind of task scheduling apparatus, wherein, the device includes:
Task dispensing unit, is adapted to provide for the task configuration information for receiving task configuration information and submits interface to;
Monitoring unit, at least one running state parameter for being suitable for task scheduling server arranges corresponding alarm threshold value, prison The current operating conditions parameter of control task scheduling server;
Alert process unit, is suitable to when any one running state parameter for monitoring reaches corresponding alarm threshold value, perform with The corresponding predetermined operation of reporting to the police of the alarm threshold value, and task configuration information submission interface is set to unavailable.
7. device as claimed in claim 6, wherein,
The alert process unit, is further adapted for when the running state parameter for monitoring drops under alarm threshold value, again will It is available that the task configuration information submits to interface to be set to;
The task dispensing unit, is suitable to submit the task configuration information of interface submission to by the task configuration information, Generate and preserve corresponding task configuration file.
8. device as claimed in claim 7, wherein,
The task dispensing unit, is further adapted for determining the cluster of task run according to the task configuration information;Judgement task is transported Whether capable cluster meets task is submitted condition to, if meeting, corresponding task configuration file is submitted on corresponding cluster.
9. device as claimed in claim 8, wherein, the task submit to condition include it is following at least one:
The cluster of task run can be accessed;
The available resources of the cluster of task run are not less than predetermined threshold;
The cluster of task run is not in maintenance state.
10. device as claimed in claim 8, wherein, the device also includes:
Task run state display unit, is adapted to provide for the front end page for showing task run status information;And be suitable to In response to the task choosing instruction that front end page is submitted to, the task run status information of corresponding task in each cluster is obtained, by phase The task run status information for answering task returns to the front end page and is shown.
CN201611091472.8A 2016-12-01 2016-12-01 Task scheduling method and device Pending CN106681808A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611091472.8A CN106681808A (en) 2016-12-01 2016-12-01 Task scheduling method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611091472.8A CN106681808A (en) 2016-12-01 2016-12-01 Task scheduling method and device

Publications (1)

Publication Number Publication Date
CN106681808A true CN106681808A (en) 2017-05-17

Family

ID=58867397

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611091472.8A Pending CN106681808A (en) 2016-12-01 2016-12-01 Task scheduling method and device

Country Status (1)

Country Link
CN (1) CN106681808A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107908465A (en) * 2017-10-19 2018-04-13 深圳索信达数据技术股份有限公司 The method for scheduling task of big data platform
CN109144695A (en) * 2018-08-30 2019-01-04 百度在线网络技术(北京)有限公司 A kind of processing method, device, equipment and the medium of task topological relation
CN109582451A (en) * 2018-11-21 2019-04-05 金色熊猫有限公司 Method for scheduling task, system, equipment and readable medium
CN109726062A (en) * 2018-05-14 2019-05-07 网联清算有限公司 The inserting method and control server of proxy server
CN111352963A (en) * 2018-12-24 2020-06-30 北京奇虎科技有限公司 Data statistical method and device
CN112328705A (en) * 2020-11-03 2021-02-05 成都中科大旗软件股份有限公司 Task scheduling method supporting any configuration period
CN113868090A (en) * 2021-10-09 2021-12-31 维沃移动通信有限公司 Application program monitoring method and device
CN115292141A (en) * 2022-09-29 2022-11-04 深圳联友科技有限公司 Scheduling abnormity early warning method based on sliding time window and monitoring server

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102006314A (en) * 2009-09-02 2011-04-06 中国银联股份有限公司 Multiserver adaptive task scheduling method and device thereof
CN102855297A (en) * 2012-08-14 2013-01-02 北京高森明晨信息科技有限公司 Method for controlling data transmission, and connector
CN105183625A (en) * 2015-08-31 2015-12-23 北京奇虎科技有限公司 Log data processing method and apparatus
CN105335219A (en) * 2014-07-08 2016-02-17 阿里巴巴集团控股有限公司 Distribution-based task scheduling method and system
CN105373428A (en) * 2015-12-09 2016-03-02 北京奇虎科技有限公司 Task scheduling method and system
CN105373429A (en) * 2014-08-20 2016-03-02 腾讯科技(深圳)有限公司 Task scheduling method, device and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102006314A (en) * 2009-09-02 2011-04-06 中国银联股份有限公司 Multiserver adaptive task scheduling method and device thereof
CN102855297A (en) * 2012-08-14 2013-01-02 北京高森明晨信息科技有限公司 Method for controlling data transmission, and connector
CN105335219A (en) * 2014-07-08 2016-02-17 阿里巴巴集团控股有限公司 Distribution-based task scheduling method and system
CN105373429A (en) * 2014-08-20 2016-03-02 腾讯科技(深圳)有限公司 Task scheduling method, device and system
CN105183625A (en) * 2015-08-31 2015-12-23 北京奇虎科技有限公司 Log data processing method and apparatus
CN105373428A (en) * 2015-12-09 2016-03-02 北京奇虎科技有限公司 Task scheduling method and system

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107908465B (en) * 2017-10-19 2020-11-03 深圳索信达数据技术有限公司 Task scheduling method for big data platform
CN107908465A (en) * 2017-10-19 2018-04-13 深圳索信达数据技术股份有限公司 The method for scheduling task of big data platform
CN109726062A (en) * 2018-05-14 2019-05-07 网联清算有限公司 The inserting method and control server of proxy server
CN109726062B (en) * 2018-05-14 2021-10-15 网联清算有限公司 Off-line method of proxy server and control server
US11321122B2 (en) 2018-08-30 2022-05-03 Apollo Intelligent Driving Technology (Beijing) Co., Ltd. Method, apparatus, device and medium for processing topological relation of tasks
CN109144695A (en) * 2018-08-30 2019-01-04 百度在线网络技术(北京)有限公司 A kind of processing method, device, equipment and the medium of task topological relation
CN109144695B (en) * 2018-08-30 2021-08-10 百度在线网络技术(北京)有限公司 Method, device, equipment and medium for processing task topological relation
CN109582451A (en) * 2018-11-21 2019-04-05 金色熊猫有限公司 Method for scheduling task, system, equipment and readable medium
CN111352963A (en) * 2018-12-24 2020-06-30 北京奇虎科技有限公司 Data statistical method and device
CN112328705A (en) * 2020-11-03 2021-02-05 成都中科大旗软件股份有限公司 Task scheduling method supporting any configuration period
CN113868090A (en) * 2021-10-09 2021-12-31 维沃移动通信有限公司 Application program monitoring method and device
CN115292141A (en) * 2022-09-29 2022-11-04 深圳联友科技有限公司 Scheduling abnormity early warning method based on sliding time window and monitoring server
CN115292141B (en) * 2022-09-29 2023-02-03 深圳联友科技有限公司 Scheduling abnormity early warning method based on sliding time window and monitoring server

Similar Documents

Publication Publication Date Title
CN106682097A (en) Method and device for processing log data
CN106648859A (en) Task scheduling method and device
CN106682096A (en) Method and device for log data management
CN106681808A (en) Task scheduling method and device
CN106682099A (en) Data storage method and device
CN106708965A (en) Data processing method and apparatus
Dijkman et al. Business process architectures: overview, comparison and framework
JP5306360B2 (en) Method and system for analysis of systems for matching data records
US10073837B2 (en) Method and system for implementing alerts in semantic analysis technology
US8296311B2 (en) Solution search for software support
US8788443B2 (en) Automated observational decision tree classifier
US20150095303A1 (en) Knowledge Graph Generator Enabled by Diagonal Search
CN110263105A (en) Inquiry processing method, query processing system, server and computer-readable medium
US20140207786A1 (en) System and methods for computerized information governance of electronic documents
US9292571B1 (en) Joining database tables
WO2011080772A1 (en) Method and system for ranking affinity degree among functional blocks
CN103473672A (en) System, method and platform for auditing metadata quality of enterprise-level data center
CN109656963A (en) Metadata acquisition methods, device, equipment and computer readable storage medium
KR100898465B1 (en) Data storage and inquiry method for time series analysis of weblog and system for executing the method
US20230359960A1 (en) Systems and methods for efficiently distributing alert messages
US9652740B2 (en) Fan identity data integration and unification
CN110414259A (en) A kind of method and apparatus for constructing data element, realizing data sharing
US11928100B2 (en) Method and system for creating a unified data repository
CN111414410A (en) Data processing method, device, equipment and storage medium
CN105335466A (en) Audio data retrieval method and apparatus

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: 20170517