CN108920278A - Resource allocation methods and device - Google Patents
Resource allocation methods and device Download PDFInfo
- Publication number
- CN108920278A CN108920278A CN201810709625.3A CN201810709625A CN108920278A CN 108920278 A CN108920278 A CN 108920278A CN 201810709625 A CN201810709625 A CN 201810709625A CN 108920278 A CN108920278 A CN 108920278A
- Authority
- CN
- China
- Prior art keywords
- request
- resource
- contention
- resources
- hot point
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
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
-
- 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/5011—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
-
- 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
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- General Engineering & Computer Science (AREA)
- Development Economics (AREA)
- General Business, Economics & Management (AREA)
- Technology Law (AREA)
- Strategic Management (AREA)
- Marketing (AREA)
- Economics (AREA)
- Information Transfer Between Computers (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The present invention relates to technical field of data processing, and in particular to a kind of resource allocation methods and device are applied to server, and method includes:Obtain the contention for resources request that each terminal device is sent for hot point resource in a setting period, wherein, it include that resource request amount and resource request are numbered in contention for resources request, classification preservation is carried out to the request of each contention for resources according to resource request number, and the resource request for obtaining each type numbers the summation of corresponding hot point resource and resource request amount, when obtaining the trading privilege of target hot point resource, obtain the corresponding total demand of target hot point resource and target hot point resource number, it is traded according to the summation and total demand of the corresponding request amount of request resource number by the corresponding each contention for resources request of matched request resource number is numbered with target hot point resource and obtains transaction results, wherein, transaction results are to trade successfully or Fail Transaction.By the above method, contention for resources request is quickly handled with realizing.
Description
Technical field
The present invention relates to technical field of data processing, in particular to a kind of resource allocation methods and device.
Background technique
Currently, there are mass data to need concurrently to access and modify a certain item or a few notes in banking system
The application scenarios of record, to realize transaction.Inventor it has been investigated that, in the case where black volume, these data are easy to form
Hot spot, and then influence the entire throughput of system.Therefore providing the method that a kind of pair of contention for resources request is quickly handled is
Technical problem urgently to be resolved.
Summary of the invention
In view of this, can effectively improve the purpose of the present invention is to provide a kind of resource allocation methods and device to money
The efficiency that source contention request is handled.
To achieve the above object, the embodiment of the present invention adopts the following technical scheme that:
A kind of resource allocation methods, applied to the server for being associated with multiple terminal devices, the method includes:
Obtain the contention for resources request that each terminal device is sent for hot point resource in a setting period, wherein institute
State in contention for resources request includes that resource request amount and resource request are numbered;
Classification preservation is carried out to the request of each contention for resources according to resource request number, and obtains the resource request of each type
Number the summation of corresponding hot point resource and resource request amount;
When obtaining the trading privilege of target hot point resource, the corresponding total demand of target hot point resource and target are obtained
Hot point resource number;
Each contention for resources corresponding with the target hot point resource matched request resource number of number is requested according to right
Resource request amount, the summation of request amount and the total demand answered are traded and obtain transaction results, wherein the friendship
Easy result is to trade successfully or Fail Transaction.
Optionally, further include request time in contention for resources request in above-mentioned resource allocation methods, will with it is described
Target hot point resource numbers the corresponding each contention for resources of matched request resource number and requests according to corresponding resource request amount, asks
The summation for the amount of asking and the total demand are traded and include the step of obtaining transaction results:
The request of the corresponding each contention for resources request of matched request resource number will be numbered with the target hot point resource
The request total amount is compared by the summation of amount as request total amount with the total demand;
When the request total amount is less than or equal to the total demand, by the total demand according to hot with the target
The request amount of the corresponding each contention for resources request of the matched request resource number of point resource number is allocated;
When the request total amount be greater than the total demand when, by the total demand according to the target hot point resource
The sequencing and request amount for numbering the request time of the corresponding each contention for resources request of matched request resource number are divided
Match.
It optionally, further include device numbering in the contention for resources request, and the equipment in above-mentioned resource allocation methods
Number is corresponding with terminal device, will each money corresponding with the target hot point resource matched request resource number of number executing
Source contention request is traded and is traded according to corresponding resource request amount, the summation of request amount and the total demand
As a result after the step of, the method also includes:
The transaction results for each request resource traded are respectively sent in each request resource traded with this
The corresponding terminal device of device numbering.
Optionally, in above-mentioned resource allocation methods, matched request will be numbered with the target hot point resource executing
The corresponding each contention for resources request of resource number is total according to the summation of the corresponding request amount of request resource number and the demand
After the step of amount is traded to obtain transaction results, the method also includes:
The result queries information that receiving terminal apparatus is sent based on user's operation, wherein include looking into the query information
Ask number and device numbering corresponding with the terminal device;
Transaction results corresponding with the matched request resource number of the number of queries are obtained, and the transaction results are fed back
To terminal device corresponding with the device numbering.
Optionally, in above-mentioned resource allocation methods, each terminal device is directed in executing the one setting period of acquisition
Before the step of contention for resources request that hot point resource is sent, the method also includes:
Receive each terminal device for hot point resource send contention for resources request and save sequentially in time to
In the associated database of the server;
The step for obtaining the contention for resources request that each terminal device is sent for hot point resource in a setting period
Suddenly include:
The resource that each terminal device is sent for hot point resource in a setting period is obtained from the database to strive
With request.
The present invention also provides a kind of resource allocation devices, applied to the server for being associated with multiple terminal devices, the dress
Set including:
First obtains module, is directed to the resource that hot point resource is sent for obtaining each terminal device in a setting period
Contention request, wherein include that resource request amount and resource request are numbered in the contention for resources request;
Categorization module for carrying out classification preservation to the request of each contention for resources according to resource request number, and obtains each
The resource request of type numbers the summation of corresponding hot point resource and resource request amount;
Second obtains module, for obtaining the target hot point resource pair when obtaining the trading privilege of target hot point resource
Total demand and target the hot point resource number answered;
Distribution module, for striving each resource corresponding with the target hot point resource matched request resource number of number
It is traded with request according to corresponding resource request amount, the summation of request amount and the total demand and obtains transaction knot
Fruit, wherein the transaction results are to trade successfully or Fail Transaction.
It optionally, further include request time in the contention for resources request in above-mentioned resource allocation device, the distribution
Module is also used to that asking for the matched corresponding each contention for resources request of request resource number will be numbered with the target hot point resource
The request total amount is compared by the summation for the amount of asking as request total amount with the total demand;
When the request total amount is less than or equal to the total demand, by the total demand according to hot with the target
The request amount of the corresponding each contention for resources request of the matched request resource number of point resource number is allocated;
When the request total amount be greater than the total demand when, by the total demand according to the target hot point resource
The sequencing and request amount for numbering the request time of the corresponding each contention for resources request of matched request resource number are divided
Match.
It optionally, further include device numbering in the contention for resources request, and the equipment in above-mentioned resource allocation device
Number is corresponding with terminal device, and described device further includes:
Sending module, for be respectively sent to trade with this by the transaction results for each request resource traded
The corresponding terminal device of device numbering in each request resource.
Optionally, in above-mentioned resource allocation device, described device further includes:
Receiving module, the result queries information sent for receiving terminal apparatus based on user's operation, wherein the inquiry
It include number of queries and device numbering corresponding with the terminal device in information;
Feedback module, for obtaining transaction results corresponding with the matched request resource number of the number of queries, and will
The transaction results feed back to terminal device corresponding with the device numbering.
Optionally, in above-mentioned resource allocation device, described device further includes:
Preserving module, for receive each terminal device for hot point resource send contention for resources request and according to when
Between sequentially save to and in the associated database of the server;
Described first obtains module, is also used to obtain each terminal device needle in a setting period from the database
The contention for resources request that hot point resource is sent.
A kind of task executing method and device provided by the invention are applied to server, are sent out by obtaining each terminal device
Classification preservation is requested and carried out to the contention for resources sent, to trade in the trading privilege of target hot point resource, with realization pair
Contention for resources request is quickly handled.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate
Appended attached drawing, is described in detail below.
Detailed description of the invention
Fig. 1 is a kind of connection block diagram of resource allocation system provided in an embodiment of the present invention.
Fig. 2 is a kind of structural block diagram of server provided in an embodiment of the present invention.
Fig. 3 is a kind of flow diagram of resource allocation methods provided in an embodiment of the present invention.
Fig. 4 is a kind of another flow diagram of resource allocation methods provided in an embodiment of the present invention.
Fig. 5 is a kind of connection block diagram of resource allocation device provided in an embodiment of the present invention.
Fig. 6 is a kind of another connection block diagram of resource allocation device provided in an embodiment of the present invention.
Icon:10- server;12- memory;14- processor;20- terminal device;100- resource allocation device;110-
First obtains module;120- categorization module;130- second obtains module;140- distribution module;150- sending module;160- is received
Module;170- feedback module.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment only
It is a part of the embodiments of the present invention, instead of all the embodiments.The present invention being usually described and illustrated herein in the accompanying drawings
The component of embodiment can be arranged and be designed with a variety of different configurations.
Therefore, the detailed description of the embodiment of the present invention provided in the accompanying drawings is not intended to limit below claimed
The scope of the present invention, but be merely representative of selected embodiment of the invention.Based on the embodiments of the present invention, this field is common
Technical staff's every other embodiment obtained without creative efforts belongs to the model that the present invention protects
It encloses.
It should be noted that:Similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.
As shown in Figure 1, being a kind of resource allocation system that present pre-ferred embodiments provide, and schematically illustrate this Shen
The application scenarios of embodiment please.The resource allocation system include server 10 and with the server 10 associated multiple ends
End equipment 20, the server 10 may include processor, hard disk, memory, system bus etc., and be not particularly limited its kind
Class.
It is a kind of connection block diagram of server 10 provided by the invention, including processor 14 and storage incorporated by reference to Fig. 2, Fig. 2
Device 12, the memory 12 is directly or indirectly electrically connected between each other with processor 14, to realize the transmission or friendship of data
Mutually.The software function being stored in the memory 12 in the form of software or firmware (Firmware) is stored in memory 12
Module, the software program and module that the processor 14 is stored in memory 12 by operation, in the embodiment of the present invention
Resource allocation device 100, the resource thereby executing various function application and data processing, i.e., in the realization embodiment of the present invention
Distribution method.
Incorporated by reference to Fig. 3, the present invention provides a kind of resource allocation methods that can be applied to above-mentioned resource allocation system, the side
Method includes tetra- steps of step S110-S140.
Step S110:The contention for resources that each terminal device 20 is sent for hot point resource in a setting period is obtained to ask
It asks.
It wherein, include that resource request amount and resource request are numbered in the contention for resources request.
The hot point resource can be but not limited to the product resources such as national debt, fund, financing or loan, the hot point resource
It can be one kind, be also possible to a variety of, be not specifically limited herein.The setting duration can be half an hour, a hour or
It two hours, is not specifically limited herein, is configured according to actual needs.The hot point resource can be one,
It can be multiple, be not specifically limited herein, be configured according to actual needs.
Step S120:Classification preservation is carried out to the request of each contention for resources according to resource request number, and obtains each type
Resource request number the summation of corresponding hot point resource and resource request amount.
Wherein, it can be by way of carrying out classification preservation to the request of each contention for resources according to resource request number:It will
The resource request of each type obtained after classification is numbered corresponding contention for resources request and is saved by the way of thread pool,
It is also possible to for the corresponding contention for resources request of the resource request number of each type obtained after classification being sent to and the clothes
The business associated database of device 10 or storage equipment are saved.
In this embodiment, it is in such a way that resource request numbers and carries out classifying preservation to the request of each contention for resources:According to
Resource request number carries out classification to the request of each contention for resources and saves into the bucket processing thread pool of the server 10, and each
The resource request of type is numbered corresponding contention for resources request and is cached using a bucket in bucket processing thread pool.
Step S130:When obtaining the trading privilege of target hot point resource, the corresponding demand of target hot point resource is obtained
Total amount and target hot point resource number.
Wherein, the mode for obtaining the trading privilege of target hot point resource can be, and receive external equipment to the server
The 10 target hot point resource transaction control commands sent, with the generation when receiving the target hot point resource transaction control commands
The trading privilege of the target hot point resource is also possible to the server 10 when timing reaches a setting time point, generates
The trading privilege of the target hot point resource, is not specifically limited herein, is configured according to actual needs.
Step S140:Each contention for resources corresponding with the target hot point resource matched request resource number of number is asked
It asks and transaction results is traded and obtained according to corresponding resource request amount, the summation of request amount and the total demand,
In, the transaction results are to trade successfully or Fail Transaction.
Wherein, when the summation of the request amount be greater than total demand when, the mode traded can be according to it is described
Target hot point resource is numbered the resource request amount for including in the corresponding each contention for resources request of matched request resource number and is asked
The comprehensive accounting of the amount of asking is allocated;It is also possible to number matched request resource number pair according to the target hot point resource
The request time for including in each contention for resources request answered is allocated with arriving first the principle first obtained, is not specifically limited herein,
It is configured according to actual needs.
It optionally, in the present embodiment, further include request time in the contention for resources request, it will be with the target hot spot
The corresponding each contention for resources request of the matched request resource number of resource number is according to the corresponding request amount of request resource number
Summation and total demand the step of trading to obtain transaction results include:
The request of the corresponding each contention for resources request of matched request resource number will be numbered with the target hot point resource
The request total amount is compared by the summation of amount as request total amount with the total demand.
When the request total amount is less than or equal to the total demand, by the total demand according to hot with the target
The request amount of the corresponding each contention for resources request of the matched request resource number of point resource number is allocated;
When the request total amount be greater than the total demand when, by the total demand according to the target hot point resource
The sequencing and request amount for numbering the request time of the corresponding each contention for resources request of matched request resource number are divided
Match.
Optionally, in the present embodiment, to be set executing acquisition one convenient for carrying out unified management to contention for resources request
Before the step of contention for resources request that each terminal device 20 is sent for hot point resource in timing section, the method is also wrapped
It includes:
Receive the terminal device 20 for hot point resource send contention for resources request and save sequentially in time to
In the associated database of the server 10.
It is described to obtain what each terminal device 20 in a setting period was requested for the contention for resources that hot point resource is sent
Step includes:
Each terminal device 20 in a setting period is obtained from the database is directed to the resource that hot point resource is sent
Contention request.
Incorporated by reference to Fig. 4, optionally, for convenient for the transaction results are fed back to user, optionally, in the present embodiment,
Further include device numbering in contention for resources request, and the device numbering is corresponding with terminal device 20, execute will with it is described
It is corresponding according to the request resource number that target hot point resource numbers the corresponding each contention for resources request of matched request resource number
Request amount summation and after total demand the step of trading to obtain transaction results, the method also includes:
Step S160:The result queries information that receiving terminal apparatus 20 is sent based on user's operation, wherein the inquiry letter
It include number of queries and device numbering corresponding with the terminal device 20 in breath.
Step S170:Obtain corresponding with the matched request resource number of number of queries transaction results, and by the friendship
Easy result feeds back to terminal device 20 corresponding with the device numbering.
Incorporated by reference to Fig. 5, the present invention also provides a kind of resource allocation device 100 that can be applied to above-mentioned resource allocation system,
The resource allocation device 100 includes:First obtains module 110, categorization module 120, second obtains module 130 and distribution mould
Block 140.
Described first, which obtains module 110, sends out for each terminal device 20 in the one setting period of acquisition for hot point resource
The contention for resources request sent, wherein include that resource request amount and resource request are numbered in the contention for resources request.In this implementation
In example, the first acquisition module 110 can be used for executing step S110 shown in Fig. 3, obtain module 110 about described first
Specific descriptions are referred to the description to step S110 above.
The categorization module 120 is used to carry out classification preservation to the request of each contention for resources according to resource request number, and obtains
The resource request for obtaining each type numbers the summation of corresponding hot point resource and resource request amount.In the present embodiment, described point
Generic module 120 can be used for executing step S120 shown in Fig. 3, before the specific descriptions about the categorization module 120 are referred to
Description of the text to step S120.
Described second, which obtains module 130, is used to obtain the target hot spot when obtaining the trading privilege of target hot point resource
The corresponding total demand of resource and target hot point resource number.In the present embodiment, the second acquisition module 130 can be used for holding
Row step S130 shown in Fig. 3 is referred to above in the specific descriptions of the second acquisition module 130 to step S130.
The distribution module 140 is corresponding each for that will number matched request resource number with the target hot point resource
Contention for resources request is traded and is handed over according to corresponding resource request amount, the summation of request amount and the total demand
Easy result, wherein the transaction results are to trade successfully or Fail Transaction.The distribution module 140 can be used for executing Fig. 3 institute
The step S140 shown, the specific descriptions about the distribution module 140 can also be referring to the description to step S140 above.
It optionally, in the present embodiment, further include request time in the contention for resources request, the distribution module 140
It is also used to that the request amount of the corresponding each contention for resources request of matched request resource number will be numbered with the target hot point resource
Summation as request total amount, and the request total amount is compared with the total demand.When the request total amount is less than
Or when being equal to the total demand, the total demand is numbered into matched request resource volume according to the target hot point resource
The request amount of number corresponding each contention for resources request is allocated;When the request total amount is greater than the total demand, by institute
It states total demand and numbers the corresponding each contention for resources request of matched request resource number according to the target hot point resource
The sequencing and request amount of request time are allocated.
It optionally, in the present embodiment, further include device numbering in the contention for resources request, and the device numbering is corresponding
There is terminal device 20, the resource allocation device 100 further includes sending module 150.
The transaction results for each request resource traded for being respectively sent to and the progress by the sending module 150
The corresponding terminal device 20 of device numbering in each request resource of transaction.Specific descriptions about the sending module 150 are asked
Referring to above to the specific descriptions of the resource allocation methods.
Optionally, in the present embodiment, the resource allocation device 100 further includes preserving module.
The preserving module is used to receive each terminal device 20 and requests simultaneously for the contention for resources that hot point resource is sent
It is saved extremely and in the associated database of the server 10 sequentially in time.
The first acquisition module 110 is also used to obtain each terminal device in a setting period from the database
The 20 contention for resources requests sent for hot point resource.
Incorporated by reference to Fig. 6, optionally, in the present embodiment, the resource allocation device 100 further includes 160 He of receiving module
Feedback module 170.
The receiving module 160 is used for the result queries information that receiving terminal apparatus 20 is sent based on user's operation, wherein
It include number of queries and device numbering corresponding with the terminal device 20 in the query information.The receiving module 160 can be with
For executing step S160 shown in Fig. 4, the specific descriptions about the receiving module 160 can also be referring to above to step
The description of S160.
The feedback module 170 is for obtaining transaction knot corresponding with the matched request resource number of the number of queries
Fruit, and the transaction results are fed back into terminal device 20 corresponding with the device numbering.The feedback module 170 can be used for
Step S170 shown in Fig. 4 is executed, the specific descriptions about the feedback module 170 can also be referring to above to step S170's
Description.
To sum up, a kind of resource allocation methods and device provided by the invention, by carrying out classification guarantor to contention for resources request
It deposits and the resource request for obtaining each type numbers the summation of corresponding hot point resource and resource request amount, to obtain target money
It, will be with the target hot spot according to the corresponding total demand of target hot point resource and target hot point resource number when the trading privilege of source
The corresponding each contention for resources request of the matched request resource number of resource number is according to the corresponding request amount of request resource number
Summation and the total demand trade, with realize to resource requisition request uniformly rapidly processed, and then effectively
Treatment effeciency is improved, the utilization rate of the CPU of server 10 is effectively reduced.
In several embodiments provided by the embodiment of the present invention, it should be understood that disclosed device and method, it can also
To realize by another way.Device and method embodiment described above is only schematical, for example, in attached drawing
Flow chart and block diagram show that the devices of multiple embodiments according to the present invention, method and computer program product are able to achieve
Architecture, function and operation.In this regard, each box in flowchart or block diagram can represent module, a program
A part of section or code, a part of the module, section or code include that one or more is patrolled for realizing defined
Collect the executable instruction of function.It should also be noted that in some implementations as replacement, function marked in the box
It can occur in a different order than that indicated in the drawings.For example, two continuous boxes can actually be held substantially in parallel
Row, they can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that block diagram and/or
The combination of each box in flow chart and the box in block diagram and or flow chart, can the function as defined in executing or dynamic
The dedicated hardware based system made is realized, or can be realized using a combination of dedicated hardware and computer instructions.
In addition, each functional module in each embodiment of the present invention can integrate one independent portion of formation together
Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, electronic equipment or network equipment etc.) execute all or part of step of each embodiment the method for the present invention
Suddenly.And storage medium above-mentioned includes:USB flash disk, read-only memory (ROM, Read-Only Memory), is deposited mobile hard disk at random
The various media that can store program code such as access to memory (RAM, Random Access Memory), magnetic or disk.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to the packet of nonexcludability
Contain, so that the process, method, article or equipment for including a series of elements not only includes those elements, but also including
Other elements that are not explicitly listed, or further include for elements inherent to such a process, method, article, or device.
In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including the element
Process, method, article or equipment in there is also other identical elements.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.
Claims (10)
1. a kind of resource allocation methods, applied to the server for being associated with multiple terminal devices, which is characterized in that the method packet
It includes:
Obtain the contention for resources request that each terminal device is sent for hot point resource in a setting period, wherein the money
It include that resource request amount and resource request are numbered in the contention request of source;
Classification preservation is carried out to the request of each contention for resources according to resource request number, and obtains the resource request number of each type
The summation of corresponding hot point resource and resource request amount;
When obtaining the trading privilege of target hot point resource, the corresponding total demand of target hot point resource and target hot spot are obtained
Resource number;
Each contention for resources corresponding with the target hot point resource matched request resource number of number is requested according to corresponding
Resource request amount, the summation of request amount and the total demand are traded and obtain transaction results, wherein the transaction knot
Fruit is to trade successfully or Fail Transaction.
2. resource allocation methods according to claim 1, which is characterized in that further include request in the contention for resources request
Time requests each contention for resources corresponding with the target hot point resource matched request resource number of number according to corresponding
Resource request amount, the summation of request amount and the total demand are traded and include the step of obtaining transaction results:
The resource request of the corresponding each contention for resources request of matched request resource number will be numbered with the target hot point resource
The request total amount is compared by the summation of amount as request total amount with the total demand;
When the request total amount is less than or equal to the total demand, the total demand is provided according to the target hot spot
The request amount that the corresponding each contention for resources request of matched request resource number is numbered in source is allocated;
When the request total amount is greater than the total demand, the total demand is numbered according to the target hot point resource
The sequencing and request amount of the matched request time for requesting the corresponding each contention for resources request of resource number are allocated.
3. resource allocation methods according to claim 1, which is characterized in that further include equipment in the contention for resources request
Number, and the device numbering is corresponding with terminal device, will number matched request resource with the target hot point resource executing
Corresponding each contention for resources request is numbered to carry out according to corresponding resource request amount, the summation of request amount and the total demand
After the step of trading and obtaining transaction results, the method also includes:
The transaction results for each request resource traded are respectively sent to setting in each request resource traded with this
It is standby to number corresponding terminal device.
4. resource allocation methods according to claim 1, which is characterized in that will be compiled with the target hot point resource executing
The corresponding each contention for resources request of number matched request resource number according to corresponding resource request amount, the summation of request amount and
After the step of total demand is traded and obtains transaction results, the method also includes:
The result queries information that receiving terminal apparatus is sent based on user's operation, wherein include that inquiry is compiled in the query information
Number and device numbering corresponding with the terminal device;
Obtain corresponding with the matched request resource number of number of queries transaction results, and the transaction results are fed back to and
The corresponding terminal device of the device numbering.
5. resource allocation methods according to claim 1, which is characterized in that each described in the one setting period of acquisition executing
Before the step of contention for resources request that terminal device is sent for hot point resource, the method also includes:
Receive each terminal device for hot point resource send contention for resources request and sequentially in time save extremely with institute
It states in the associated database of server;
Described the step of obtaining the contention for resources request that each terminal device is sent for hot point resource in a setting period, wraps
It includes:
The contention for resources that each terminal device is sent for hot point resource in a setting period is obtained from the database to ask
It asks.
6. a kind of resource allocation device, applied to the server for being associated with multiple terminal devices, which is characterized in that described device packet
It includes:
First obtains module, is directed to the contention for resources that hot point resource is sent for obtaining each terminal device in a setting period
Request, wherein include that resource request amount and resource request are numbered in the contention for resources request;
Categorization module for carrying out classification preservation to the request of each contention for resources according to resource request number, and obtains each type
Resource request number the summation of corresponding hot point resource and resource request amount;
Second obtains module, for it is corresponding to obtain the target hot point resource when obtaining the trading privilege of target hot point resource
Total demand and target hot point resource number;
Distribution module, for asking each contention for resources corresponding with the target hot point resource matched request resource number of number
It asks and transaction results is traded and obtained according to corresponding resource request amount, the summation of request amount and the total demand,
In, the transaction results are to trade successfully or Fail Transaction.
7. resource allocation device according to claim 6, which is characterized in that further include request in the contention for resources request
Time, the distribution module are also used to each money corresponding with the target hot point resource matched request resource number of number
The request total amount is compared by the summation of the request amount of source contention request as request total amount with the total demand;
When the request total amount is less than or equal to the total demand, the total demand is provided according to the target hot spot
The request amount that the corresponding each contention for resources request of matched request resource number is numbered in source is allocated;
When the request total amount is greater than the total demand, the total demand is numbered according to the target hot point resource
The sequencing and request amount of the matched request time for requesting the corresponding each contention for resources request of resource number are allocated.
8. resource allocation device according to claim 6, which is characterized in that further include equipment in the contention for resources request
Number, and the device numbering is corresponding with terminal device, described device further includes:
Sending module is respectively asked for be respectively sent to trade with this by the transaction results for each request resource traded
Seek the corresponding terminal device of the device numbering in resource.
9. resource allocation device according to claim 6, which is characterized in that described device further includes:
Receiving module, the result queries information sent for receiving terminal apparatus based on user's operation, wherein the query information
In include number of queries and device numbering corresponding with the terminal device;
Feedback module, for obtaining corresponding with the matched request resource number of number of queries transaction results, and by the friendship
Easy result feeds back to terminal device corresponding with the device numbering.
10. resource allocation device according to claim 6, which is characterized in that described device further includes:
Preserving module, for receive each terminal device for hot point resource send contention for resources request and according to the time it is suitable
Sequence save to in the associated database of the server;
Described first obtains module, is also used to obtain each terminal device in a setting period from the database and is directed to heat
The contention for resources request that point resource is sent.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810709625.3A CN108920278B (en) | 2018-07-02 | 2018-07-02 | Resource allocation method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810709625.3A CN108920278B (en) | 2018-07-02 | 2018-07-02 | Resource allocation method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108920278A true CN108920278A (en) | 2018-11-30 |
CN108920278B CN108920278B (en) | 2021-12-24 |
Family
ID=64424874
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810709625.3A Active CN108920278B (en) | 2018-07-02 | 2018-07-02 | Resource allocation method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108920278B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110347513A (en) * | 2019-07-15 | 2019-10-18 | 中国工商银行股份有限公司 | Hot spot data lot size scheduling method and device |
CN110781000A (en) * | 2019-10-17 | 2020-02-11 | 中国建设银行股份有限公司 | Multi-application resource allocation method and device |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101178671A (en) * | 2007-12-11 | 2008-05-14 | 北大方正集团有限公司 | Method and system for dynamically configuring service treatment progress on server terminal |
CN104219167A (en) * | 2013-05-31 | 2014-12-17 | 中国电信股份有限公司 | Network resource scheduling method and server |
KR20150012071A (en) * | 2013-07-24 | 2015-02-03 | 한국과학기술정보연구원 | Apparatus and method for allocating computing resource to multiple users |
CN104408065A (en) * | 2014-10-29 | 2015-03-11 | 中国建设银行股份有限公司 | Trade information on-line inquiry method and device |
CN104966198A (en) * | 2015-07-10 | 2015-10-07 | 苏州海博智能系统有限公司 | Authorized consumption method and system |
CN105378667A (en) * | 2013-12-10 | 2016-03-02 | 华为技术有限公司 | Method and apparatus for scheduling virtual machine resources |
CN106209953A (en) * | 2015-05-08 | 2016-12-07 | 阿里巴巴集团控股有限公司 | The processing method of sequence information, Apparatus and system |
CN106254528A (en) * | 2016-09-14 | 2016-12-21 | 北京佰才邦技术有限公司 | A kind of resource downloading method and buffer memory device |
CN106897144A (en) * | 2017-01-05 | 2017-06-27 | 阿里巴巴集团控股有限公司 | A kind of resource allocation methods and device |
CN107632887A (en) * | 2016-07-18 | 2018-01-26 | 阿里巴巴集团控股有限公司 | Resource allocation methods and device |
CN107886328A (en) * | 2017-11-23 | 2018-04-06 | 上海壹账通金融科技有限公司 | Transaction processing method, device, computer equipment and storage medium |
-
2018
- 2018-07-02 CN CN201810709625.3A patent/CN108920278B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101178671A (en) * | 2007-12-11 | 2008-05-14 | 北大方正集团有限公司 | Method and system for dynamically configuring service treatment progress on server terminal |
CN104219167A (en) * | 2013-05-31 | 2014-12-17 | 中国电信股份有限公司 | Network resource scheduling method and server |
KR20150012071A (en) * | 2013-07-24 | 2015-02-03 | 한국과학기술정보연구원 | Apparatus and method for allocating computing resource to multiple users |
CN105378667A (en) * | 2013-12-10 | 2016-03-02 | 华为技术有限公司 | Method and apparatus for scheduling virtual machine resources |
CN104408065A (en) * | 2014-10-29 | 2015-03-11 | 中国建设银行股份有限公司 | Trade information on-line inquiry method and device |
CN106209953A (en) * | 2015-05-08 | 2016-12-07 | 阿里巴巴集团控股有限公司 | The processing method of sequence information, Apparatus and system |
CN104966198A (en) * | 2015-07-10 | 2015-10-07 | 苏州海博智能系统有限公司 | Authorized consumption method and system |
CN107632887A (en) * | 2016-07-18 | 2018-01-26 | 阿里巴巴集团控股有限公司 | Resource allocation methods and device |
CN106254528A (en) * | 2016-09-14 | 2016-12-21 | 北京佰才邦技术有限公司 | A kind of resource downloading method and buffer memory device |
CN106897144A (en) * | 2017-01-05 | 2017-06-27 | 阿里巴巴集团控股有限公司 | A kind of resource allocation methods and device |
CN107886328A (en) * | 2017-11-23 | 2018-04-06 | 上海壹账通金融科技有限公司 | Transaction processing method, device, computer equipment and storage medium |
Non-Patent Citations (2)
Title |
---|
厉以宁: "《宏观经济学的产生和发展》", 30 June 1997 * |
霍红 等: "《仓储与配送实务习题与解答》", 31 January 2013 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110347513A (en) * | 2019-07-15 | 2019-10-18 | 中国工商银行股份有限公司 | Hot spot data lot size scheduling method and device |
CN110347513B (en) * | 2019-07-15 | 2022-05-20 | 中国工商银行股份有限公司 | Hot data batch scheduling method and device |
CN110781000A (en) * | 2019-10-17 | 2020-02-11 | 中国建设银行股份有限公司 | Multi-application resource allocation method and device |
Also Published As
Publication number | Publication date |
---|---|
CN108920278B (en) | 2021-12-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104283975B (en) | Document distribution method and device | |
CN108111554B (en) | Control method and device for access queue | |
US20140089023A1 (en) | Method and system for distributing data stream | |
TW201933151A (en) | Method and apparatus for determining data exception | |
CN101963969B (en) | Method and database server for realizing load balancing in Oracle RAC (Real Application Cluster) system | |
CN111199379A (en) | Examination and approval method, examination and approval device and storage medium of workflow engine | |
CN111563820B (en) | Intelligent contract parallel execution method and device | |
CN106257893A (en) | Storage server task response method, client, server and system | |
US9124570B1 (en) | Providing an assessment of authentication requests | |
CN109255056A (en) | Data referencing processing method, device, equipment and the storage medium of block chain | |
CN106815254A (en) | A kind of data processing method and device | |
CN107729137A (en) | Server, the method and storage medium of the decryption of block chain sign test | |
US7606906B2 (en) | Bundling and sending work units to a server based on a weighted cost | |
CN107229656A (en) | Full dose data export method, apparatus and system | |
CN108920278A (en) | Resource allocation methods and device | |
CN104899278A (en) | Method and apparatus for generating data operation logs of Hbase database | |
CN104376056B (en) | A kind of method and apparatus of data processing | |
CN105872082B (en) | Fine granularity resource response system based on container cluster load-balancing algorithm | |
CN110781134A (en) | Data processing method and device, computer storage medium and electronic equipment | |
CN112800415B (en) | Weak password detection method and system based on greedy algorithm model | |
CN107295052A (en) | A kind of method for processing business and device | |
CN106933873A (en) | A kind of cross-platform data querying method and equipment | |
CN107395663A (en) | Data capture method and device | |
CN102201922A (en) | Data charging method and relevant apparatus | |
US20180196653A1 (en) | Methods for adaptive placement of applications and devices thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |