CN110413404A - Resource allocation methods, device, equipment and storage medium priority-based - Google Patents
Resource allocation methods, device, equipment and storage medium priority-based Download PDFInfo
- Publication number
- CN110413404A CN110413404A CN201910525836.6A CN201910525836A CN110413404A CN 110413404 A CN110413404 A CN 110413404A CN 201910525836 A CN201910525836 A CN 201910525836A CN 110413404 A CN110413404 A CN 110413404A
- Authority
- CN
- China
- Prior art keywords
- timer
- priority
- target
- resource allocation
- target service
- 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
Links
- 238000013468 resource allocation Methods 0.000 title claims abstract description 70
- 238000000034 method Methods 0.000 title claims abstract description 44
- 238000003860 storage Methods 0.000 title claims abstract description 19
- 239000010410 layer Substances 0.000 claims abstract description 38
- 230000015572 biosynthetic process Effects 0.000 claims abstract description 28
- 239000011229 interlayer Substances 0.000 claims abstract description 24
- 230000001960 triggered effect Effects 0.000 claims description 145
- 238000012163 sequencing technique Methods 0.000 claims description 58
- 238000012545 processing Methods 0.000 claims description 17
- 238000006116 polymerization reaction Methods 0.000 claims description 6
- 238000004590 computer program Methods 0.000 claims 2
- NJPPVKZQTLUDBO-UHFFFAOYSA-N novaluron Chemical compound C1=C(Cl)C(OC(F)(F)C(OC(F)(F)F)F)=CC=C1NC(=O)NC(=O)C1=C(F)C=CC=C1F NJPPVKZQTLUDBO-UHFFFAOYSA-N 0.000 abstract 1
- 230000008569 process Effects 0.000 description 15
- 238000000605 extraction Methods 0.000 description 13
- 239000000284 extract Substances 0.000 description 12
- 238000009826 distribution Methods 0.000 description 9
- 238000010586 diagram Methods 0.000 description 7
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 230000007812 deficiency Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000010354 integration Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000005012 migration Effects 0.000 description 2
- 238000013508 migration Methods 0.000 description 2
- 241001269238 Data Species 0.000 description 1
- 238000004140 cleaning Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 239000004744 fabric Substances 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
- G06F9/5038—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
- G06Q10/0631—Resource planning, allocation, distributing or scheduling for enterprises or organisations
- G06Q10/06316—Sequencing of tasks or work
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Human Resources & Organizations (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Software Systems (AREA)
- Economics (AREA)
- Entrepreneurship & Innovation (AREA)
- Strategic Management (AREA)
- General Physics & Mathematics (AREA)
- Educational Administration (AREA)
- Quality & Reliability (AREA)
- Tourism & Hospitality (AREA)
- Operations Research (AREA)
- General Business, Economics & Management (AREA)
- Marketing (AREA)
- Game Theory and Decision Science (AREA)
- Development Economics (AREA)
- General Engineering & Computer Science (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present invention relates to pedestal O&M technical fields, disclose a kind of resource allocation methods, device, equipment and storage medium priority-based.Resource allocation methods include: acquisition target data source priority-based;Target data source is handled, multiple target service sequences are obtained, each target service sequence includes corresponding target formation business, target interlayer business and object set city layer service;Corresponding priority factor is arranged to each target service sequence;Resource allocation is carried out to multiple target service sequences according to corresponding priority factor.The present invention generates multiple target service sequences according to target data source, corresponding priority factor is arranged to each target service sequence, and system resource allocation is carried out to multiple target service sequences according to corresponding priority factor, it is ensured that the high target service sequence of priority is preferentially run.
Description
Technical field
The present invention relates to Business Process Optimizing fields, more particularly to resource allocation methods, device, equipment priority-based
And storage medium.
Background technique
High priority Priority-driven Scheduling Algorithm refers to a kind of to obtain priority processing after urgent type operation enters system
Computerized algorithm, system Yi Dan multi-frame system to the process of highest priority in ready queue after, which can be always
Execution is gone down, until completing;Or when because waiting certain event that the process is made to have to abandon processor, system could will be located
Reason machine distributes to the high ready process of another priority.
Priority rule is rule applicable when carrying out production schedules sequence, and production schedules sequence sometimes may
It is very simple, operation can be ranked up according only to a data, such as go out single, indemnity, premium sequence, need sub-module meter sometimes
Sequence is drawn, and duration etc. is averaged because usually determining priority level according to critical ratio or minimum single program.
In existing technology, for the business of no addition priority rule, system can only be according to traffic scheduling sequence
Resource allocation is successively carried out, causes insignificant business in core time section occupying system resources, urgency traffic cannot preferentially be located
Reason, is constantly in wait state, system resource allocation is unreasonable.
Summary of the invention
It is a primary object of the present invention to solve insignificant business in core time section occupying system resources, urgency traffic is not
Wait state, the unreasonable problem of system resource allocation can be constantly in by priority processing.
To achieve the above object, first aspect present invention provides a kind of resource allocation methods priority-based, comprising:
Obtain target data source;The target data source is handled, multiple target service sequences, each target service sequence are obtained
Including corresponding target formation business, target interlayer business and object set city layer service;To each target service sequence
Corresponding priority factor is set;According to corresponding priority factor to the multiple target service sequence into
Row resource allocation.
Optionally, in the first implementation of first aspect present invention, it is described to the target data source at
Reason, obtains multiple target service sequences, each target service sequence includes corresponding target formation business, target interlayer
Business and object set city level business include: to carry out data pick-up to the target data source, obtain multiple target formation business;It is right
The data being drawn into carry out polymerization processing, provide data for data warehouse, obtain multiple target interlayer business;According to the pre- purchase of property
The classification of business extracts corresponding professional metadata from the data warehouse, forms Data Mart, obtains multiple object sets
City's layer service;By the multiple target formation business, the multiple target interlayer business and the multiple object set city level industry
Business generates multiple target service sequences according to corresponding relationship.
Optionally, in second of implementation of first aspect present invention, each target service sequence is arranged respective
Corresponding priority factor includes: that the multiple target service sequence is generated multiple timer-triggered scheduler tasks according to corresponding relationship;
The multiple timer-triggered scheduler task is written in timer-triggered scheduler task data sheet;According to preset priority rule to each timing
Corresponding priority factor is arranged in scheduler task.
Optionally, described according to described corresponding preferential in the third implementation of first aspect present invention
It includes: to judge current time with the presence or absence of the more of waiting operation that grade coefficient, which carries out resource allocation to the multiple target service sequence,
A timer-triggered scheduler task;If the current time, there are the multiple timer-triggered scheduler tasks for waiting operation, obtain described each
Self-corresponding priority factor;The multiple timer-triggered schedulers for waiting operation are appointed according to corresponding priority factor
Business is ranked up, and obtains sequencing queue;Resource allocation is carried out to the sequencing queue.
Optionally, in the 4th kind of implementation of first aspect present invention, the judgement current time with the presence or absence of etc.
Multiple timer-triggered scheduler tasks to be run include: to read the timer-triggered scheduler task data sheet, obtain reading result;Described in judgement
Read whether result is greater than 0;If the reading result is not more than 0, it is determined that the current time, there is no waiting operations
Multiple timer-triggered scheduler tasks;If the reading result is greater than 0, it is determined that the current time waits the more of operation there are described
A timer-triggered scheduler task.
Optionally, described according to described corresponding preferential in the 5th kind of implementation of first aspect present invention
Grade coefficient is ranked up the multiple timer-triggered scheduler tasks for waiting operation, and obtaining the sequencing queue includes: described in judgement
Wait multiple corresponding priority factors of timer-triggered scheduler task of operation whether identical;If institute is not present in the current time
The multiple timer-triggered scheduler tasks for waiting operation are stated, then carry out next cycle polling;If the multiple timer-triggered schedulers for waiting operation
The corresponding priority factor of task is identical, then according to it is described wait operation multiple timer-triggered scheduler tasks preset waiting when
Long sequence from small to large is ranked up, and obtains the sequencing queue;If the multiple timer-triggered scheduler tasks for waiting operation are each
Self-corresponding priority factor is not identical, then according to corresponding priority factor from high to low successively to the waiting
Multiple timer-triggered scheduler tasks of operation are ranked up, and obtain the sequencing queue.
Optionally, described that resource is carried out to the sequencing queue in the 6th kind of implementation of first aspect present invention
Distribution includes: acquisition available resources;Judge whether the available resources meet the sequencing queue;If the available resources are discontented
The foot sequencing queue then waits and has distributed resource release;If the available resources meet the sequencing queue, according to preset
Resource allocation ratio is sequentially allocated resource to the sequencing queue, obtains allocation result;According to allocation result operation
Sequencing queue;When the sequencing queue end of run, the resource that the sequencing queue occupies is discharged.
Second aspect of the present invention provides a kind of resource allocation device priority-based, comprising: acquiring unit, for obtaining
Take target data source;Processing unit obtains multiple target service sequences for handling the target data source, described
Each target service sequence includes corresponding target formation business, target interlayer business and object set city layer service;If
Unit is set, for corresponding priority factor to be arranged to each target service sequence;Allocation unit, for according to described each
Self-corresponding priority factor carries out resource allocation to the multiple target service sequence.
Optionally, in the first implementation of second aspect of the present invention, the processing unit is specifically used for: to described
Target data source carries out data pick-up, obtains multiple target formation business;Polymerization processing is carried out to the data being drawn into, is data
Warehouse provides data, obtains multiple target interlayer business;It is extracted from the data warehouse according to the classification of preset business each
Self-corresponding profession metadata, forms Data Mart, obtains multiple object set cities layer service;By the multiple target formation industry
Business, the multiple target interlayer business and the multiple object set city layer service generate multiple target services according to corresponding relationship
Sequence.
Optionally, in second of implementation of second aspect of the present invention, the setting unit is specifically used for: will be described
Multiple target service sequences generate multiple timer-triggered scheduler tasks according to corresponding relationship;The write-in of the multiple timer-triggered scheduler task is fixed
When scheduler task tables of data in;Corresponding priority is arranged to each timer-triggered scheduler task according to preset priority rule
Coefficient.
Optionally, in the third implementation of second aspect of the present invention, the allocation unit further include: judgement is single
Member, for judging current time with the presence or absence of the multiple timer-triggered scheduler tasks for waiting operation;Poll subelement, if when described current
It carves there is no the multiple timer-triggered scheduler tasks for waiting operation, is then used to carry out next cycle polling;Subelement is obtained, if institute
Stating current time, there are the multiple timer-triggered scheduler tasks for waiting operation, then for obtaining corresponding priority system
Number;Sorting subunit, for being appointed according to corresponding priority factor to the multiple timer-triggered schedulers for waiting operation
Business is ranked up, and obtains sequencing queue;Subelement is distributed, for carrying out resource allocation to the multiple sequence traffic sequence.
Optionally, in the 4th kind of implementation of second aspect of the present invention, the judgment sub-unit is specifically used for: reading
The timer-triggered scheduler task data sheet obtains reading result;Judge whether the reading result is greater than 0;If the reading result
No more than 0, it is determined that the current time, there is no the multiple timer-triggered scheduler tasks for waiting operation;If the reading result
Greater than 0, it is determined that the current time, there are the multiple timer-triggered scheduler tasks for waiting operation.
Optionally, in the 5th kind of implementation of second aspect of the present invention, the sorting subunit is specifically used for: judgement
Whether the multiple corresponding priority factors of timer-triggered scheduler task for waiting operation are identical;If described wait the more of operation
A corresponding priority factor of timer-triggered scheduler task is identical, then according to the multiple timer-triggered scheduler tasks for waiting operation
The sequence of preset waiting time from small to large is ranked up, and obtains the sequencing queue;If the multiple timings for waiting operation
The corresponding priority factor of scheduler task is not identical, then from high to low successively according to corresponding priority factor
The multiple timer-triggered scheduler tasks for waiting operation are ranked up, the sequencing queue is obtained.
Optionally, in the 6th kind of implementation of second aspect of the present invention, the distribution subelement is specifically used for: obtaining
Available resources;Judge whether the available resources meet the sequencing queue;If the available resources are unsatisfactory for the sequence team
Column then wait and have distributed resource release;If the available resources meet the sequencing queue, according to preset resource allocation proportion
Resource is sequentially allocated to the sequencing queue, obtains allocation result;The sequencing queue is run according to the allocation result;Work as institute
When stating sequencing queue end of run, the resource that the sequencing queue occupies is discharged.
Third aspect present invention provides a kind of resource allocation apparatus priority-based, comprising: memory and at least one
A processor, instruction, the memory and at least one described processor is stored in the memory passes through route and interconnect;Institute
It states at least one processor and calls described instruction in the memory, so that the resource allocation apparatus priority-based
Execute method described in above-mentioned various aspects.
The fourth aspect of the present invention provides a kind of computer readable storage medium, in the computer readable storage medium
It is stored with instruction, when run on a computer, so that computer executes method described in above-mentioned various aspects.
As can be seen from the above technical solutions, the invention has the following advantages that
In technical solution provided by the invention, target data source is obtained;The target data source is handled, is obtained more
A target service sequence, each target service sequence include corresponding target formation business, target interlayer business and mesh
Mark fairground layer service;Corresponding priority factor is arranged to each target service sequence;According to described corresponding excellent
First grade coefficient carries out resource allocation to the multiple target service sequence.In the embodiment of the present invention, generated according to target data source
Corresponding priority factor is arranged to each target service sequence in multiple target service sequences, and according to corresponding
Priority factor carries out system resource allocation to multiple target service sequences, it is ensured that the high target service sequence of priority is preferentially transported
Row.
Detailed description of the invention
Fig. 1 is one embodiment schematic diagram of resource allocation methods priority-based in the embodiment of the present invention;
Fig. 2 is another embodiment schematic diagram of resource allocation methods priority-based in the embodiment of the present invention;
Fig. 3 is one embodiment schematic diagram of resource allocation device priority-based in the embodiment of the present invention;
Fig. 4 is another embodiment schematic diagram of resource allocation device priority-based in the embodiment of the present invention;
Fig. 5 is another embodiment schematic diagram of resource allocation apparatus priority-based in the embodiment of the present invention.
Specific embodiment
The embodiment of the invention provides a kind of resource allocation methods, device, equipment and storage mediums priority-based, originally
In inventive embodiments, multiple target service sequences are generated according to target data source, it is respectively right to the setting of each target service sequence
The priority factor answered, and system resource allocation is carried out to multiple target service sequences according to corresponding priority factor,
Ensure the high target service sequence priority distribution system available resources of priority, ensures that the high target service sequence of priority is preferential
Operation.
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
The embodiment of the present invention is described in attached drawing.
Description and claims of this specification and term " first ", " second ", " third ", " in above-mentioned attached drawing
The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage
The data that solution uses in this way are interchangeable under appropriate circumstances, so that the embodiments described herein can be in addition to illustrating herein
Or the sequence other than the content of description is implemented.In addition, term " includes " or " having " and its any deformation, it is intended that covering is not
Exclusive includes, for example, the process, method, system, product or equipment for containing a series of steps or units be not necessarily limited to it is clear
Step or unit those of is listed on ground, but is not clearly listed or for these process, methods, product or is set
Standby intrinsic other step or units.
For ease of understanding, the detailed process of the embodiment of the present invention is described below, referring to Fig. 1, the present invention is implemented
One embodiment of resource allocation methods includes: priority-based in example
101, target data source is obtained;
Server obtains target data source.The target data source is the data source that server is determined according to practical business, mesh
Mark data source can be file, be also possible to database table, wherein and the quantity of target data source dynamically can be adjusted and be changed,
The data of a data source are not limited to, specifically herein without limitation.For example, server reads enterprise from specified file A
Strategical planning data source, the specified file are .txt .xls file format, which includes enterprise strategic programming number
According to whole fields in source.Optionally, server establishes database connection, generates structuralized query SQL statement, is looked into according to structuring
It askes SQL statement and reads enterprise strategic programming data source from the database table of enterprise planning operation system A, B and C.
102, target data source is handled, obtains multiple target service sequences, each target service sequence includes each
Self-corresponding target formation business, target interlayer business and object set city layer service;
Server handles target data source, obtains multiple target service sequences, and each target service sequence includes
Corresponding target formation business, target interlayer business and object set city layer service.For example, server advises corporate strategy
It draws business datum and is set as target data source, server is handled enterprise strategic programming business datum according to Predistribution Algorithm,
Enterprise planning target service sequence is generated, which includes enterprise planning underlying services, enterprise planning centre layer service and enterprise planning
Fairground layer service.
Specifically, server carries out data pick-up according to target data source first, multiple target formation business are obtained.Its
In, data pick-up is the process that server extracts data from target data source, and data source can be relevant database or text
Part, it includes full dose extraction and increment extraction that server extracts data from database, and full dose, which extracts, is similar to Data Migration or number
According to duplication, it is extracted from database by the data of table or view in data source are intact.Full dose extraction is also fitted
For the extraction to file data, the MD5 Message Digest 5 of the primary timestamp for extracting preceding storable file or calculation document
Check code, next time are compared when extracting, this extraction if the same can be ignored.Increment extraction, which refers to, is drawn from last time extraction
Since increased newly in the table to be extracted in database, modification, the data deleted, that is, only extract the data of variation.Server pair
It further include data cleansing, mainly to deficiency of data, wrong data and repeated data when target data source carries out data pick-up
It is cleared up, incomplete data are mainly some due loss of learning, such as the area information missing and business of client
Main table cannot be matched with detail list in system.The data of mistake include numeric data be whole-angle figure character, date format not
The correct and date crosses the border.
Then server carries out polymerization processing to the data being drawn into, and provides data for data warehouse, obtains multiple targets
Intermediate layer service;Specifically, server carries out invoice summary to the data being drawn into, invoice summary refers to for most fine-grained
The data of data center carry out summarizing operation, this process is the process of an integration, by the same type of different business systems
Data carry out unification, retain most fine-grained critical field, such as number of policy, batch odd numbers and customer ID etc..Secondly, server
Most fine-grained critical field is carried out summarizing calculating, operation system data are polymerize according to data warehouse granularity, such as
The basic datas such as holding structure, channel, product, declaration form amount and premium, provide data for data warehouse in vehicle insurance middle layer table.
Last server extracts corresponding professional metadata from data warehouse, forms number according to the classification of preset business
According to fairground, multiple object set cities layer service is obtained;Server is by multiple target formation business, multiple target interlayer business and more
A object set city layer service generates multiple target service sequences according to corresponding relationship.It should be noted that Data Mart is also number
According to market, Data Mart is exactly to meet the needs of specific department or user, is stored in the way of multidimensional, including fixed
Adopted dimension, calculative index, level of dimension etc. generate the data cube of decision making-oriented analysis demand.
103, corresponding priority factor is arranged to each target service sequence;
Corresponding priority factor is arranged to each target service sequence in server.Further, server according to
The urgent distribution for carrying out priority factor of each target service sequence, for example, enterprise planning target service sequence is arranged in server
It is urgent task with vehicle insurance target service sequence, wherein enterprise planning target service sequence includes enterprise planning underlying task, enterprise planning middle layer
Task and enterprise planning collection city level task, vehicle insurance target service sequence include vehicle insurance underlying task, vehicle insurance middle layer task and vehicle insurance collection
City level task.Server carries out priority setting to enterprise planning target service sequence and vehicle insurance target service sequence, and enterprise is respectively set
The priority factor for drawing target service sequence is 1 and the priority factor of vehicle insurance target service sequence is 2, priority factor
It is higher than the priority-level for the vehicle insurance target service sequence that priority factor is 2 for 1 enterprise planning target service sequence, then, clothes
Priority factor 1 and 2 is recorded in database table by business device.
104, resource allocation is carried out to multiple target service sequences according to corresponding priority factor.
Server carries out resource allocation to multiple target service sequences according to corresponding priority factor, specifically,
Server obtains preset system resource, and preset system resource includes database purchase UNDO resource and data concurrent resource,
Preset system resource is allocated by server according to each corresponding priority factor of target service sequence.For example,
At the 2:00 AM moment, server obtains available UNDO resource 200G and data concurrent resource 50, and enterprise planning mesh is arranged in server
The priority factor for marking traffic sequence is 1, and the priority factor of vehicle insurance target service sequence is 2, then enterprise planning target service sequence
The UNDO resource of 50G and 30 data concurrent resources are preferentially distributed to enterprise planning target service sequence by highest priority, server,
Ensure that the daily data of enterprise planning target service sequence preferentially can send and handle.Then, server is by the UNDO resource of 30G and 20
A data concurrent resource preferentially distributes to vehicle insurance target service sequence, it is ensured that vehicle insurance target service sequence can be run.
It should be noted that server judges that the available resources at current time are unsatisfactory for the multiple of current time waiting operation
When target service sequence, then server waits the multiple target service sequences operation knot of occupying system resources being currently running
Beam, server obtain the system resource occupied, and server distributes to the multiple target service sequences for waiting operation.For example, In
At the 2:00 AM moment, available UNDO resource 50G and data concurrent resource 30 are obtained in server, enterprise planning mesh is arranged in server
The priority factor for marking traffic sequence is 1, and the priority factor of vehicle insurance target service sequence is 2, then enterprise planning target service sequence
The UNDO resource of 50G and 30 data concurrent resources are preferentially distributed to enterprise planning target service sequence by highest priority, server
Afterwards, vehicle insurance target service sequence is still within waiting operating status.
In the embodiment of the present invention, multiple target service sequences are generated according to target data source, to each target service sequence
Corresponding priority factor is set, and system is carried out to multiple target service sequences according to corresponding priority factor
Resource allocation, it is ensured that the high target service sequence priority distribution system available resources of priority ensure the high target industry of priority
Business sequence is preferentially run.
Referring to Fig. 2, another embodiment of resource allocation methods includes: priority-based in the embodiment of the present invention
201, target data source is obtained;
Server obtains target data source.The target data source is the data source that server is determined according to practical business, mesh
Mark data source can be file, be also possible to database table, wherein and the quantity of target data source dynamically can be adjusted and be changed,
The data of a data source are not limited to, specifically herein without limitation.For example, server reads enterprise from specified file A
Layout data source, the specified file are .txt either .xls file format, which includes enterprise planning data source
Whole fields.Optionally, server establishes database connection, structuralized query SQL statement is generated, according to structuralized query SQL
Sentence reads enterprise planning data source from the database table in enterprise planning operation system A, B and C.
202, target data source is handled, obtains multiple target service sequences, each target service sequence includes each
Self-corresponding target formation business, target interlayer business and object set city layer service;
Server handles target data source, obtains multiple target service sequences, and each target service sequence includes
Corresponding target formation business, target interlayer business and object set city layer service.For example, enterprise strategic programming business number
According to that is, enterprise planning business datum is set target data source by enterprise planning business datum, server, and server is according to Predistribution Algorithm to enterprise
It draws business datum to be handled, generates enterprise planning target service sequence, which includes enterprise planning underlying task, enterprise
Draw middle layer task and enterprise planning collection city level task.
Specifically, server carries out data pick-up according to target data source first, multiple target formation business are obtained.Its
In, data pick-up is the process that server extracts data from data source, and data source can be relevant database or file, clothes
It includes full dose extraction and increment extraction that business device extracts data from database, and full dose extracts multiple similar to Data Migration or data
System, it is extracted from database by the data of table or view in data source are intact.Full dose extraction is also applied for
Extraction to file data, the MD5 Message Digest 5 verification of the primary timestamp for extracting preceding storable file or calculation document
Code, next time are compared when extracting, this extraction if the same can be ignored.Since increment extraction refers to that being drawn from last time extracts
The data for increasing newly, modifying, deleting in the table to be extracted in database, that is, only extract the data of variation.Server is carrying out
When data pick-up, it is also necessary to data cleansing is carried out, mainly deficiency of data, wrong data and repeated data are cleared up,
Incomplete data are mainly main table in some due loss of learning, such as the area information missing and operation system of client
It cannot be matched with detail list.The data of mistake include that numeric data is that whole-angle figure character, date format be incorrect and the date
It crosses the border.
Optionally, server converts the data after cleaning, that is, by the same type of different business systems
Data are unified, such as coding of the same enterprise in operation system A is code1110, and the coding in operation system B is
CODE1110 after server carries out data pick-up, will uniformly be converted into a coding.Target formation business is exactly according to number of targets
The process of data pick-up is carried out according to source, that is, target data source is sorted out and integrated according to business-subject, it is ensured that data
Serviceability.
Then server carries out polymerization processing to the data being drawn into, and provides data for data warehouse, obtains multiple targets
Intermediate layer service;Specifically, server carries out invoice summary to the data being drawn into, invoice summary refers to for most fine-grained
The data of data center carry out certain dimension and summarize operation, this is the process of an integration, by the mutually similar of different business systems
The data of type carry out unification, retain most fine-grained critical field, such as number of policy, batch odd numbers and customer ID etc..Then, it services
Device carries out summarizing calculating to most fine-grained critical field, operation system data is polymerize according to data warehouse granularity, example
Holding structure, channel, product, declaration form amount and premium basic data, provide data for data warehouse in such as vehicle insurance middle layer table.
Last server extracts corresponding professional metadata from data warehouse, forms number according to the classification of preset business
According to fairground, obtain multiple object set cities layer service, wherein Data Mart is also Data Market, Data Mart be exactly meet it is specific
Department or user demand, stored in the way of multidimensional, including define dimension, calculative index, dimension
Level etc., generate the data cube of decision making-oriented analysis demand;Server will be in multiple target formation business, multiple targets
Between layer service and multiple object set cities layer service according to corresponding relationship generate multiple target service sequences.For example, server generates
Enterprise planning underlying task, enterprise planning middle layer task and enterprise planning collection city level task, server appoint enterprise planning underlying task, enterprise planning middle layer
Business and enterprise planning collection city level task are set as enterprise planning target service sequence.
203, multiple target service sequences are generated into multiple timer-triggered scheduler tasks according to corresponding relationship;
Multiple target service sequences are generated multiple timer-triggered scheduler tasks by server, wherein each target service sequence packet
Corresponding target formation business, target interlayer business and object set city layer service are included, timer-triggered scheduler task is according to mesh
The timed task of traffic sequence setting is marked, timer-triggered scheduler task refers to according to preset time instant operational objective traffic sequence.For example, clothes
Device be engaged according to enterprise planning target service sequence and vehicle insurance target service sequence setting enterprise planning timer-triggered scheduler task and vehicle insurance timer-triggered scheduler
Task, enterprise planning timer-triggered scheduler task include enterprise planning underlying task, enterprise planning middle layer task and enterprise planning collection city level task, vehicle insurance timing
Scheduler task includes vehicle insurance underlying task, vehicle insurance middle layer task and vehicle insurance collection city level task.Server is arranged enterprise planning timing and adjusts
Degree task is the operation of daily 1:00 AM, and vehicle insurance timer-triggered scheduler task is arranged as the operation of daily 2:00 AM.
Optionally, multiple timer-triggered scheduler tasks are written in timer-triggered scheduler task list server.Specifically, server according to
At the time of multiple timer-triggered scheduler task names and timer-triggered scheduler is arranged in multiple target service sequences, server is by multiple timer-triggered schedulers
Timer-triggered scheduler task list is recorded at the time of task names and timer-triggered scheduler.
204, each corresponding priority factor of timer-triggered scheduler task is arranged according to preset priority rule;
Each corresponding priority factor of timer-triggered scheduler task is arranged according to preset priority rule in server.Its
In, preset priority rule includes priority factor and ordering rule, for example, preset priority rule is arranged in server
Priority factor is 1,2,3 ..., and server is arranged the priority that ordering rule is priority factor 1 and is higher than priority factor 2
Priority, and so on, conversely, setting priority factor 2 prior to priority factor 1, specifically herein without limitation.Specifically
, server obtains preset priority rule, and server is according to preset priority rule and each timer-triggered scheduler task
Urgency carries out the setting of priority factor, for example, server is according to enterprise planning target service sequence and vehicle insurance target service sequence
Enterprise planning timer-triggered scheduler task and vehicle insurance timer-triggered scheduler task are set, and server is to enterprise planning timer-triggered scheduler task and vehicle insurance timer-triggered scheduler
Task carries out priority setting, and the priority factor that enterprise planning timer-triggered scheduler task is respectively set is 1 and vehicle insurance timer-triggered scheduler is appointed
The priority factor of business is 2.Wherein, the enterprise planning timer-triggered scheduler task that priority factor is 1 is more fixed than the vehicle insurance that priority factor is 2
When scheduler task priority-level it is high, then, priority factor 1 and 2 is recorded in timer-triggered scheduler task list by server.
It should be noted that server adjusts the priority factor of timer-triggered scheduler task according to the actual situation, for example, vehicle insurance
The initial priority coefficient of timer-triggered scheduler task is 2, due to the priority of the priority ratio priority factor 1 of priority factor 2
Low, to ensure that vehicle insurance timer-triggered scheduler task can preferentially be run, then server is by the initial priority of vehicle insurance timer-triggered scheduler task
Coefficient adjustment is 1.
205, judge current time with the presence or absence of the multiple timer-triggered scheduler tasks for waiting operation;
Server judges current time with the presence or absence of the multiple timer-triggered scheduler tasks for waiting operation, specifically, server is read
Timer-triggered scheduler task data sheet is taken, obtains reading result;Server judges to read whether result is greater than 0;If it is little to read result
In 0, then server determines that current time, there is no the multiple timer-triggered scheduler tasks for waiting operation;If reading result is greater than 0, take
Business device determines that current time has the multiple timer-triggered scheduler tasks for waiting operation.For example, server reads timing in 03:10:00
Scheduler task tables of data, it is 1 that acquisition, which waits the quantity of operation, then server determines that current time, there are what 1 waiting was run to determine
When scheduler task.
If 206, current time there is no the multiple timer-triggered scheduler tasks for waiting operation, carries out next cycle polling;
If current time, there is no the multiple timer-triggered scheduler tasks for waiting operation, servers to carry out next cycle polling.
Cycle polling is exactly server according to preset time period interval reading timer-triggered scheduler task list, is read as a result, tying according to reading
Fruit judges current time with the presence or absence of the multiple timer-triggered scheduler tasks for waiting operation.For example, preset time period interval is arranged in server
It is one minute, then server every one minute access timer-triggered scheduler task list, obtains reading result.This is preset to be spaced often
It can be set to 2 minutes, 3 minutes or 5 minutes etc., specifically herein without limitation.
If 207, current time has the multiple timer-triggered scheduler tasks for waiting operation, corresponding priority system is obtained
Number;
If current time has the multiple timer-triggered scheduler tasks for waiting operation, server obtains corresponding priority
Coefficient waits the more of operation specifically, server reads the multiple timer-triggered scheduler tasks for waiting operation from timer-triggered scheduler task
A timer-triggered scheduler task includes corresponding priority factor, and server obtains corresponding priority factor.For example, clothes
Business device, according to timer-triggered scheduler task list is read, obtains the enterprise planning timer-triggered scheduler task for waiting operation and vehicle insurance timing in 2:00 AM
Scheduler task, the priority factor that server obtains the enterprise planning timer-triggered scheduler task for waiting operation is 1, and waits the vehicle of operation
The priority factor of dangerous timer-triggered scheduler task is 2.
208, it is ranked up, is obtained according to corresponding priority factor equity multiple timer-triggered scheduler tasks to be run
Sequencing queue;
Server is ranked up according to corresponding priority factor equity multiple timer-triggered scheduler tasks to be run, and is obtained
To collating sequence.Specifically, multiple corresponding priority factors of timer-triggered scheduler task of server judgement waiting operation are
It is no identical;If waiting multiple corresponding priority factors of timer-triggered scheduler task of operation identical, server is according to waiting
The sequence of the waiting time of multiple timer-triggered scheduler tasks of operation from small to large is ranked up, and obtains sequencing queue, for example, service
Device obtains multiple timer-triggered scheduler the task A and B for waiting operation, wherein and the priority factor of timer-triggered scheduler task A and B are all 3,
The waiting time of timer-triggered scheduler task A and B are respectively 5 minutes and 3 minutes, then server determines that collating sequence is B and A, also
It is server priority processing B;If waiting multiple corresponding priority factors of timer-triggered scheduler task of operation not identical, take
According to corresponding priority factor, successively equity multiple timer-triggered scheduler tasks to be run are ranked up business device from high to low,
Sequencing queue is obtained, for example, server obtains multiple timer-triggered scheduler the task A and B for waiting operation, wherein timer-triggered scheduler task A
Priority factor with B is all 3 and 4, then server determines that collating sequence includes A and B, that is, server priority handles A.
It should be noted that when server detect wait operation multiple timer-triggered scheduler tasks do not exist simultaneously respectively it is right
When the priority factor answered, then server setting is most there is no multiple timer-triggered scheduler tasks of corresponding priority factor
Low priority.For example, server obtain wait operation multiple timer-triggered scheduler task A, B and C, wherein timer-triggered scheduler task A and
The priority factor of B is respectively 3 and 4, but the priority factor of timer-triggered scheduler task C is sky, then server setting timing is adjusted
The priority factor of degree task C is 0, that is, lowest priority.
209, resource allocation is carried out to sequencing queue.
Server carries out resource allocation to sequencing queue.Specifically, server obtains available resources;Server judgement is available
Whether resource meets sequencing queue;If available resources are unsatisfactory for sequencing queue, server waiting has distributed resource release;If can
Meet sequencing queue with resource, then resource is sequentially allocated to sequencing queue according to preset resource allocation proportion, obtains allocation result;
Sequencing queue is run according to allocation result;When sequencing queue end of run, the resource of release sequencing queue occupancy.For example, clothes
Business device includes enterprise planning timer-triggered scheduler task and vehicle insurance timer-triggered scheduler task, server in the sequencing queue that the 2:00 AM moment obtains
Obtaining available resources includes data UNDO resource 200G and data concurrent resource 50, and server is first by the UNDO resource of 50G
Enterprise planning timer-triggered scheduler task is preferentially distributed to 30 data concurrent resources, then ensures the daily data of enterprise planning timer-triggered scheduler task
Preferentially it can send and handle.Then, the UNDO resource of 30G and 20 data concurrent resources are distributed to vehicle insurance target industry by server
Business sequence, it is ensured that vehicle insurance timer-triggered scheduler task can be run.If vehicle insurance target service sequence needs 30 concurrent resources, vehicle insurance
Timer-triggered scheduler task, which is in, waits operating status that could operate normally after obtaining 30 concurrent resources.
In the embodiment of the present invention, multiple target service sequences are generated according to target data source, by multiple target service sequences
Multiple timer-triggered scheduler tasks are generated according to corresponding relationship, corresponding priority factor is arranged to each timer-triggered scheduler task,
And system resource allocation is carried out according to corresponding priority factor equity multiple timer-triggered scheduler tasks to be run, it is ensured that excellent
The high timer-triggered scheduler task priority distribution system available resources of first grade ensure that the high target service sequence of priority is preferentially run.
Above to resource allocation methods are described priority-based in the embodiment of the present invention, below to of the invention real
Apply in example that resource allocation device is described priority-based, referring to Fig. 3, providing priority-based in the embodiment of the present invention
Source distributor one embodiment includes:
Acquiring unit 301, for obtaining target data source;
Processing unit 302 obtains multiple target service sequences, each target industry for handling target data source
Sequence of being engaged in includes corresponding target formation business, target interlayer business and object set city layer service;
Setting unit 303, for corresponding priority factor to be arranged to each target service sequence;
Allocation unit 304, for carrying out resource point to multiple target service sequences according to corresponding priority factor
Match.
In the embodiment of the present invention, multiple target service sequences are generated according to target data source, to each target service sequence
Corresponding priority factor is set, and system is carried out to multiple target service sequences according to corresponding priority factor
Resource allocation, it is ensured that the high target service sequence priority distribution system available resources of priority ensure the high target industry of priority
Business sequence is preferentially run.
Referring to Fig. 4, another embodiment of resource allocation device includes: priority-based in the embodiment of the present invention
Acquiring unit 301, for obtaining target data source;
Processing unit 302 obtains multiple target service sequences, each target industry for handling target data source
Sequence of being engaged in includes corresponding target formation business, target interlayer business and object set city layer service;
Setting unit 303, for corresponding priority factor to be arranged to each target service sequence;
Allocation unit 304, for carrying out resource point to multiple target service sequences according to corresponding priority factor
Match.
Optionally, processing unit 302 can also be specifically used for:
Data pick-up is carried out according to target data source, obtains multiple target formation business;
Polymerization processing is carried out to the data being drawn into, provides data for data warehouse, obtains multiple target interlayer business;
According to the classification of preset business, corresponding professional metadata is extracted from data warehouse, Data Mart is formed, obtains
Multiple object set cities layer service;
By multiple target formation business, multiple target interlayer business and multiple object set cities layer service according to corresponding relationship
Generate multiple target service sequences.
Optionally, setting unit 303 can also be specifically used for:
Multiple target service sequences are generated into multiple timer-triggered scheduler tasks according to corresponding relationship;
Multiple timer-triggered scheduler tasks are written in timer-triggered scheduler task data sheet;
According to preset priority rule, each corresponding priority factor of timer-triggered scheduler task is set.
Optionally, allocation unit 304 further include:
Judgment sub-unit 3041, for judging current time with the presence or absence of the multiple timer-triggered scheduler tasks for waiting operation;
Poll subelement 3042, if current time, there is no the multiple timer-triggered scheduler tasks for waiting operation, for carrying out
Next cycle polling;
Subelement 3043 is obtained, it is respectively right for obtaining if current time has the timer-triggered scheduler task for waiting operation
The priority factor answered;
Sorting subunit 3044, for being appointed according to corresponding priority factor equity multiple timer-triggered schedulers to be run
Business is ranked up, and obtains sequencing queue;
Subelement 3045 is distributed, for carrying out resource allocation to sequencing queue.
Optionally, judgment sub-unit 3041 can also be specifically used for:
Timer-triggered scheduler task data sheet is read, obtains reading result;
Judge to read whether result is greater than 0;
If reading result is not more than 0, it is determined that current time, there is no the multiple timer-triggered scheduler tasks for waiting operation;
If reading result is greater than 0, it is determined that current time has the multiple timer-triggered scheduler tasks for waiting operation.
Optionally, sorting subunit 3044 can also be specifically used for:
Judge to wait multiple corresponding priority factors of timer-triggered scheduler task of operation whether identical;
If waiting multiple corresponding priority factors of timer-triggered scheduler task of operation identical, according to waiting operation
The sequence of the preset waiting time of multiple timer-triggered scheduler tasks from small to large is ranked up, and obtains sequencing queue;
If waiting multiple corresponding priority factors of timer-triggered scheduler task of operation not identical, according to respectively corresponding
Priority factor successively equity multiple timer-triggered scheduler tasks to be run are ranked up from high to low, obtain sequencing queue.
Optionally, distribution subelement 3045 can also be specifically used for:
Obtain available resources;
Judge whether available resources meet sequencing queue;
If available resources are unsatisfactory for sequencing queue, wait and distributed resource release;
If available resources meet sequencing queue, resource is sequentially allocated to sequencing queue according to preset resource allocation proportion,
Obtain allocation result;
Sequencing queue is run according to allocation result;
When sequencing queue end of run, the resource of release sequencing queue occupancy.
In the embodiment of the present invention, multiple target service sequences are generated according to target data source, by multiple target service sequences
Multiple timer-triggered scheduler tasks are generated according to corresponding relationship, corresponding priority factor is arranged to each timer-triggered scheduler task,
And system resource allocation is carried out according to corresponding priority factor equity multiple timer-triggered scheduler tasks to be run, it is ensured that excellent
The high timer-triggered scheduler task priority distribution system available resources of first grade ensure that the high target service sequence of priority is preferentially run.
Above figure 3 and Fig. 4 are from the angle of modular functionality entity to the resource priority-based in the embodiment of the present invention
Distributor is described in detail, below from the angle of hardware handles to resource allocation priority-based in the embodiment of the present invention
Equipment is described in detail.
Fig. 5 is a kind of structural schematic diagram of resource allocation apparatus priority-based provided in an embodiment of the present invention, the base
Bigger difference can be generated because configuration or performance are different in the resource allocation apparatus 500 of priority, may include one or
More than one processor (central processing units, CPU) 501 (for example, one or more processors) and
Storage medium 508 (such as one or one of memory 509, one or more storage application programs 509 or data 509
The above mass memory unit).Wherein, memory 509 and storage medium 508 can be of short duration storage or persistent storage.It is stored in
The program of storage medium 508 may include one or more modules (diagram does not mark), and each module may include to base
Series of instructions operation in the resource allocation of priority.Further, processor 501 can be set to and storage medium
508 communications execute the series of instructions operation in storage medium 508 in resource allocation apparatus 500 priority-based.
Priority-based resource allocation apparatus 500 can also include one or more power supplys 502, one or one
The above wired or wireless network interface 503, one or more input/output interfaces 504, and/or, one or more
Operating system 505, such as Windows Serve, Mac OS X, Unix, Linux, FreeBSD etc..Those skilled in the art
It is appreciated that the structure of resource allocation apparatus priority-based shown in Fig. 5 is not constituted to resource allocation priority-based
The restriction of equipment may include perhaps combining certain components or different component cloth than illustrating more or fewer components
It sets.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided by the present invention, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit
It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention
Portion or part steps.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (read-only memory,
ROM), random access memory (random access memory, RAM), magnetic or disk etc. are various can store program
The medium of code.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before
Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to preceding
Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these
It modifies or replaces, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.
Claims (10)
1. a kind of resource allocation methods priority-based characterized by comprising
Obtain target data source;
The target data source is handled, multiple target service sequences are obtained, each target service sequence includes respectively right
Target formation business, target interlayer business and the object set city layer service answered;
Corresponding priority factor is arranged to each target service sequence;
Resource allocation is carried out to the multiple target service sequence according to corresponding priority factor.
2. resource allocation methods priority-based according to claim 1, which is characterized in that described to the number of targets
Handled according to source, obtain multiple target service sequences, each target service sequence include corresponding target formation business,
Target interlayer business and object set city level business include:
Data pick-up is carried out to the target data source, obtains multiple target formation business;
Polymerization processing is carried out to the data being drawn into, provides data for data warehouse, obtains multiple target interlayer business;
Corresponding professional metadata is extracted from the data warehouse according to the classification of preset business, forms Data Mart,
Obtain multiple object set cities layer service;
By the multiple target formation business, the multiple target interlayer business and the multiple object set city layer service according to
Corresponding relationship generates multiple target service sequences.
3. resource allocation methods priority-based according to claim 1, which is characterized in that described to each target industry
Corresponding priority factor is arranged in business sequence
The multiple target service sequence is generated into multiple timer-triggered scheduler tasks according to corresponding relationship;
The multiple timer-triggered scheduler task is written in timer-triggered scheduler task data sheet;
Corresponding priority factor is arranged to each timer-triggered scheduler task according to preset priority rule.
4. resource allocation methods priority-based according to claim 3, which is characterized in that described according to described respective
Corresponding priority factor carries out resource allocation to the multiple target service sequence
Judge current time with the presence or absence of the multiple timer-triggered scheduler tasks for waiting operation;
If the current time there is no the multiple timer-triggered scheduler tasks for waiting operation, carries out next cycle polling;
If the current time, there are the multiple timer-triggered scheduler tasks for waiting operation, obtain described corresponding preferential
Grade coefficient;
The multiple timer-triggered scheduler tasks for waiting operation are ranked up according to corresponding priority factor, are obtained
Sequencing queue;
Resource allocation is carried out to the sequencing queue.
5. resource allocation methods priority-based according to claim 3, which is characterized in that the judgement current time
With the presence or absence of wait operation multiple timer-triggered scheduler tasks include:
The timer-triggered scheduler task data sheet is read, obtains reading result;
Judge whether the reading result is greater than 0;
If the reading result is not more than 0, it is determined that the current time, there is no the multiple timer-triggered schedulers for waiting operation
Task;
If the reading result is greater than 0, it is determined that the current time, there are the multiple timer-triggered scheduler tasks for waiting operation.
6. resource allocation methods priority-based according to claim 4, which is characterized in that described according to described respective
Corresponding priority factor is ranked up the multiple timer-triggered scheduler tasks for waiting operation, obtains the sequencing queue packet
It includes:
Judge whether the multiple corresponding priority factors of timer-triggered scheduler task for waiting operation are identical;
If the multiple corresponding priority factors of timer-triggered scheduler task for waiting operation are identical, according to described etc. to be shipped
The sequence of the preset waiting time of capable multiple timer-triggered scheduler tasks from small to large is ranked up, and obtains the sequencing queue;
If the multiple corresponding priority factors of timer-triggered scheduler task for waiting operation are not identical, according to described respective
Corresponding priority factor is from high to low successively ranked up the multiple timer-triggered scheduler tasks for waiting operation, obtains described
Sequencing queue.
7. resource allocation methods priority-based according to claim 4, which is characterized in that described to the sequence
Queue carries out resource allocation
Obtain available resources;
Judge whether the available resources meet the sequencing queue;
If the available resources are unsatisfactory for the sequencing queue, wait and distributed resource release;
If the available resources meet the sequencing queue, the sequencing queue is sequentially divided according to preset resource allocation proportion
With resource, allocation result is obtained;
The sequencing queue is run according to the allocation result;
When the sequencing queue end of run, the resource that the sequencing queue occupies is discharged.
8. a kind of resource allocation device priority-based, which is characterized in that the resource allocation device packet priority-based
It includes:
Acquiring unit, for obtaining target data source;
Processing unit obtains multiple target service sequences, each target service sequence for handling the target data source
Column include corresponding target formation business, target interlayer business and object set city layer service;
Setting unit, for corresponding priority factor to be arranged to each target service sequence;
Allocation unit, for carrying out resource point to the multiple target service sequence according to corresponding priority factor
Match.
9. a kind of resource allocation apparatus priority-based, which is characterized in that the resource allocation apparatus packet priority-based
Include: memory and at least one processor are stored with instruction in the memory, the memory and it is described at least one handle
Device is interconnected by route;
At least one described processor calls the described instruction in the memory, so that the resource priority-based point
The method as described in any one of claim 1-7 is executed with equipment.
10. a kind of computer readable storage medium, is stored thereon with computer program, it is characterised in that: the computer program
It is realized when being executed by processor such as the step of any one of claim 1-7 the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910525836.6A CN110413404A (en) | 2019-06-18 | 2019-06-18 | Resource allocation methods, device, equipment and storage medium priority-based |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910525836.6A CN110413404A (en) | 2019-06-18 | 2019-06-18 | Resource allocation methods, device, equipment and storage medium priority-based |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110413404A true CN110413404A (en) | 2019-11-05 |
Family
ID=68359306
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910525836.6A Pending CN110413404A (en) | 2019-06-18 | 2019-06-18 | Resource allocation methods, device, equipment and storage medium priority-based |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110413404A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111291065A (en) * | 2020-02-12 | 2020-06-16 | 中国工商银行股份有限公司 | Asset data change method and device executed by computing equipment and computing equipment |
CN111580964A (en) * | 2020-04-29 | 2020-08-25 | 杭州涂鸦信息技术有限公司 | Application task priority allocation method, system and related equipment |
CN112785323A (en) * | 2019-11-07 | 2021-05-11 | 北京沃东天骏信息技术有限公司 | Resource allocation method and device and electronic equipment |
CN114666347A (en) * | 2022-03-23 | 2022-06-24 | 广州经传多赢投资咨询有限公司 | Distributed high-availability data synchronization method, computer equipment and storage medium |
CN115776524A (en) * | 2023-02-10 | 2023-03-10 | 广东瑞恩科技有限公司 | Internet of things mass data multistage scheduling transmission system for intelligent manufacturing |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107948095A (en) * | 2017-11-21 | 2018-04-20 | 中国银行股份有限公司 | A kind of resource control method, device and bus system server |
CN108268319A (en) * | 2016-12-31 | 2018-07-10 | 中国移动通信集团河北有限公司 | Method for scheduling task, apparatus and system |
CN108846076A (en) * | 2018-06-08 | 2018-11-20 | 山大地纬软件股份有限公司 | The massive multi-source ETL process method and system of supporting interface adaptation |
-
2019
- 2019-06-18 CN CN201910525836.6A patent/CN110413404A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108268319A (en) * | 2016-12-31 | 2018-07-10 | 中国移动通信集团河北有限公司 | Method for scheduling task, apparatus and system |
CN107948095A (en) * | 2017-11-21 | 2018-04-20 | 中国银行股份有限公司 | A kind of resource control method, device and bus system server |
CN108846076A (en) * | 2018-06-08 | 2018-11-20 | 山大地纬软件股份有限公司 | The massive multi-source ETL process method and system of supporting interface adaptation |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112785323A (en) * | 2019-11-07 | 2021-05-11 | 北京沃东天骏信息技术有限公司 | Resource allocation method and device and electronic equipment |
CN111291065A (en) * | 2020-02-12 | 2020-06-16 | 中国工商银行股份有限公司 | Asset data change method and device executed by computing equipment and computing equipment |
CN111291065B (en) * | 2020-02-12 | 2023-07-25 | 中国工商银行股份有限公司 | Asset data modification method and device executed by computing equipment and computing equipment |
CN111580964A (en) * | 2020-04-29 | 2020-08-25 | 杭州涂鸦信息技术有限公司 | Application task priority allocation method, system and related equipment |
CN114666347A (en) * | 2022-03-23 | 2022-06-24 | 广州经传多赢投资咨询有限公司 | Distributed high-availability data synchronization method, computer equipment and storage medium |
CN114666347B (en) * | 2022-03-23 | 2022-11-22 | 广州经传多赢投资咨询有限公司 | Distributed high-availability data synchronization method, computer equipment and storage medium |
CN115776524A (en) * | 2023-02-10 | 2023-03-10 | 广东瑞恩科技有限公司 | Internet of things mass data multistage scheduling transmission system for intelligent manufacturing |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110413404A (en) | Resource allocation methods, device, equipment and storage medium priority-based | |
US10698891B2 (en) | MxN dispatching in large scale distributed system | |
US8954497B2 (en) | Parallel distributed processing method and computer system | |
US8612476B1 (en) | Dynamic tree determination for data processing | |
CN111506404A (en) | Kubernetes-based shared GPU (graphics processing Unit) scheduling method | |
CN107203424A (en) | A kind of method and apparatus that deep learning operation is dispatched in distributed type assemblies | |
CN107992359A (en) | The task scheduling algorithm that cost perceives under a kind of cloud environment | |
CN106557471A (en) | Method for scheduling task and device | |
CN107704597A (en) | Relevant database to Hive ETL script creation methods | |
CN115292016A (en) | Task scheduling method based on artificial intelligence and related equipment | |
CN110458407A (en) | A kind of method for allocating tasks, device and computer readable storage medium | |
CN113886034A (en) | Task scheduling method, system, electronic device and storage medium | |
CN107070645A (en) | Compare the method and system of the data of tables of data | |
JP2002169718A (en) | Continuous data storage technology | |
CN113886419A (en) | SQL statement processing method and device, computer equipment and storage medium | |
CN109062683A (en) | The method, apparatus and computer readable storage medium of host resource distribution | |
CN111159355A (en) | Customer complaint order processing method and device | |
CN109583691B (en) | Electronic device, orphan list distribution method, and computer-readable storage medium | |
CN107122849B (en) | Spark R-based product detection total completion time minimization method | |
US7392359B2 (en) | Non-blocking distinct grouping of database entries with overflow | |
US20090144337A1 (en) | Commitment control for less than an entire record in an in-memory database in a parallel computer system | |
CN109829005A (en) | A kind of big data processing method and processing device | |
CN115964176A (en) | Cloud computing cluster scheduling method, electronic device and storage medium | |
CN102147750A (en) | Method and system for processing operation | |
CN111796934B (en) | Task issuing method and device, storage medium and electronic equipment |
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 |