CN111553699B - Resource scheduling method and device - Google Patents

Resource scheduling method and device Download PDF

Info

Publication number
CN111553699B
CN111553699B CN202010372861.8A CN202010372861A CN111553699B CN 111553699 B CN111553699 B CN 111553699B CN 202010372861 A CN202010372861 A CN 202010372861A CN 111553699 B CN111553699 B CN 111553699B
Authority
CN
China
Prior art keywords
resource
platform
resources
task information
generating
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.)
Active
Application number
CN202010372861.8A
Other languages
Chinese (zh)
Other versions
CN111553699A (en
Inventor
潘雅婷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alipay Hangzhou Information Technology Co Ltd
Original Assignee
Alipay Hangzhou Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alipay Hangzhou Information Technology Co Ltd filed Critical Alipay Hangzhou Information Technology Co Ltd
Priority to CN202010372861.8A priority Critical patent/CN111553699B/en
Publication of CN111553699A publication Critical patent/CN111553699A/en
Application granted granted Critical
Publication of CN111553699B publication Critical patent/CN111553699B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/405Establishing or using transaction specific rules
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06315Needs-based resource requirements planning or analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/02Payment architectures, schemes or protocols involving a neutral party, e.g. certification authority, notary or trusted third party [TTP]
    • G06Q20/023Payment architectures, schemes or protocols involving a neutral party, e.g. certification authority, notary or trusted third party [TTP] the neutral party being a clearing house
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The specification discloses a resource scheduling method and device, which are applied to a resource providing system comprising a scheduling platform and a generating platform, and comprise the following steps: after the resource providing system determines a primary resource demand, generating resource scheduling task information aiming at the current resource demand under the condition that the demand meets a preset rule, and providing the task information to a scheduling platform and a generating platform; the scheduling platform acquires corresponding resource quantity from locally stored resources according to the received task information and sends the acquired resources to a resource demand party; updating the received task information into a transmitted state according to the current transmitting behavior; the generation platform generates corresponding resource quantity according to the received task information and sends the resource quantity to the scheduling platform; and the scheduling platform queries corresponding task information stored locally after receiving the resources sent by the generating platform and updates the queried task information into a supplemented state.

Description

Resource scheduling method and device
Technical Field
The present disclosure relates to the field of resource scheduling technologies, and in particular, to a method and an apparatus for resource scheduling.
Background
In a resource scheduling system, there are two roles, namely a resource demand side and a resource provider side. The resource demander generally has actual use requirements for resources, but does not own enough resources, and the resource provider has a certain amount of resources and can provide the resources to the outside. When the resource is needed, the resource demand party needs to acquire the resource from the resource generation party, and further uses the acquired resource to perform corresponding processing.
In the resource scheduling process, after determining the resource demand of the resource demander, the resource provider sends a corresponding number of resources to the resource demander. In practical applications, however, the resource provider may need to generate the resource itself, or even call the resource from elsewhere, in response to the resource demander, which may result in an untimely response. Therefore, when there is a high urgency for the resource demand of the resource demander, the existing resource scheduling scheme cannot meet the use demand of the resource demander for the resource, and thus the resource demander is negatively affected.
Disclosure of Invention
Aiming at the technical problems, the specification provides a resource scheduling method and device, and the technical scheme is as follows:
According to a first aspect of the present specification, there is provided a resource scheduling method applied to a resource providing system including a scheduling platform and a generating platform, the scheduling platform locally storing a preset number of resources; the method comprises the following steps:
after the resource providing system determines a primary resource demand, generating resource scheduling task information aiming at the current resource demand under the condition that the demand meets a preset rule, and providing the task information to a scheduling platform and a generating platform; the task information at least comprises: identification of the resource demander, and the amount of resources required;
the scheduling platform acquires corresponding resource quantity from locally stored resources according to the received task information and sends the acquired resources to a resource demand party; updating the received task information into a transmitted state according to the current transmitting behavior;
the generation platform generates corresponding resource quantity according to the received task information, and sends the generated resource and the received task information to the scheduling platform after being associated;
and the scheduling platform is used for inquiring corresponding task information stored locally according to the associated task information after receiving the resources sent by the generating platform and updating the inquired task information into a supplemented state.
According to a second aspect of the present disclosure, there is provided another resource scheduling method applied to a resource providing system including a scheduling platform, a generating platform, and a storage platform, where resources for responding to resource requirements are stored in the storage platform; the method comprises the following steps:
after the resource providing system determines a primary resource demand, and under the condition that the demand meets a preset rule, generating resource scheduling task information aiming at the current resource demand, and providing the task information to a scheduling platform and a generating platform;
the scheduling platform generates a resource allocation instruction according to the received task information and sends the resource allocation instruction to the storage platform, wherein the resource allocation instruction at least comprises: identification of the resource demander, and the amount of resources required;
the storage platform acquires corresponding resource quantity from locally stored resources under the condition that the resource demand party has the authority of directly acquiring the resources from the local according to the received resource allocation instruction, and sends the acquired resources to the resource demand party; updating the received resource allocation indication into a transmitted state according to the current transmission behavior;
the generation platform generates corresponding resource quantity according to the received task information, and sends the generated resource and the received task information to the storage platform after being associated;
And the storage platform inquires corresponding locally-stored resource allocation instructions according to the associated task information after receiving the resources sent by the generation platform, and updates the inquired resource allocation instructions into a supplemented state.
According to a third aspect of the present specification, there is provided a resource scheduling device, applied to a scheduling platform in a resource providing system, where the scheduling platform locally stores a preset number of resources, and the resource providing system further includes a generating platform; the device comprises:
the acquisition module is used for acquiring corresponding resource quantity from locally stored resources according to the task information provided by the resource providing system; the task information at least comprises: identification of the resource demander, and the amount of resources required;
the sending module is used for sending the acquired resources to a resource requiring party;
the state updating module is used for updating the received task information into a sent state according to the current sending behavior;
the state updating module is also used for inquiring corresponding task information stored locally according to the associated task information after receiving the resource sent by the generating platform and updating the inquired task information into a supplemented state; the resources sent by the generating platform are as follows: the generating platform generates corresponding resources according to the task information provided by the resource providing system.
According to a fourth aspect of the present specification, there is provided another resource scheduling apparatus applied to a scheduling platform in a resource providing system including a generating platform and a storage platform; the resources are used for responding to the resource demands and are stored in the storage platform; the device comprises:
the allocation instruction generation module is used for generating a resource allocation instruction according to the task information provided by the resource providing system; wherein, the resource allocation indication at least comprises: identification of the resource demander, and the amount of resources required;
and the sending module is used for sending the generated resource allocation instruction to the storage platform so that the storage platform can send the resource to the resource demand party according to the resource allocation instruction and update the received resource allocation instruction to a sent state, wherein the storage platform can update the resource allocation instruction to a supplemented state after receiving the resource sent by the generation platform.
According to the technical scheme provided by the embodiment of the specification, a certain amount of resources are stored in the resource providing system in advance, and the resources stored in the resource providing system can be used when the resource demand side has a demand, so that the time interval from the generation of the demand to the acquisition of the resources of the resource demand side is reduced, and the use demand of the resource demand side is met. Meanwhile, the corresponding resources generated by the generating platform are stored in the local of the resource providing system, so that the number of the locally stored resources of the resource providing system is maintained, the situation that the resources stored by the resource providing system are gradually reduced due to the fact that the resources are distributed to each resource requiring party for use is avoided, and further the continuous provision of the resources for each resource requiring party can be ensured.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
In order to more clearly illustrate the embodiments of the present description or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the embodiments of the present description, and other drawings may be obtained according to these drawings for a person having ordinary skill in the art.
FIG. 1 is a schematic diagram of a resource providing system according to an embodiment of the present disclosure;
FIG. 2 is a flow chart of a resource scheduling method according to an embodiment of the present disclosure;
FIG. 3 is a flow chart of a funds scheduling method according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of another resource providing system according to an embodiment of the present disclosure;
FIG. 5 is a flow chart of another resource scheduling method according to an embodiment of the present disclosure;
FIG. 6 is a flow chart of another funds scheduling method of an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a resource scheduling apparatus according to an embodiment of the present disclosure;
Fig. 8 is a schematic structural diagram of another resource scheduling apparatus according to the embodiment of the present disclosure;
fig. 9 is a schematic diagram of an apparatus for configuring the device of the embodiment of the present specification.
Detailed Description
In order for those skilled in the art to better understand the technical solutions in the embodiments of the present specification, the technical solutions in the embodiments of the present specification will be described in detail below with reference to the drawings in the embodiments of the present specification, and it is apparent that the described embodiments are only some embodiments of the present specification, not all embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments in the present specification shall fall within the scope of protection.
The terminology used in the description presented herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the description. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in this specification to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, the first information may also be referred to as second information, and similarly, the second information may also be referred to as first information, without departing from the scope of the present description. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "responsive to a determination", depending on the context.
In a resource scheduling system, there are two roles, namely a resource demand side and a resource provider side. The resource demander generally has actual use requirements for resources, but does not own enough resources, and the resource provider has a certain amount of resources and can provide the resources to the outside. When the resource is needed, the resource demand party needs to acquire the resource from the resource generation party, and further uses the acquired resource to perform corresponding processing.
In the resource scheduling process, after determining the resource demand of the resource demander, the resource provider sends a corresponding number of resources to the resource demander. However, in practical applications, the resource provider may need to generate the resource by itself, or even call the resource from another place to respond to the resource demander, which may result in untimely response, and when there is a high urgency of the resource demander to the demand of the resource, the existing resource scheduling scheme cannot meet the use demand of the resource demander for the resource, and thus may have a negative effect on the resource demander.
The resource provider often generates the resources in a mode of periodically generating the resources or sequentially generating the resources, and distributes the resources to the resource demander for use after generating the resources.
The periodic generation of resources means that a resource provider has a preset period for generating resources, and when the period is reached, the resource provider generates a corresponding number of resources according to the received resource acquisition request. For example, when the generation period is reached, the resource provider may query all the resource acquisition requests received from the current period to the previous period, and determine the number of resources that need to be generated in common in the current period according to the number of resources required in the resource acquisition requests. And executing the generating action after determining the quantity of resources which are required to be generated in the period.
Generating resources in sequence refers to generating resources according to a first-come first-process principle by a resource acquisition request. For example, when the resource acquisition request receives the resource acquisition request a and then receives the resource acquisition request B, the resource acquisition request a is processed, that is, the number of resources required by the resource acquisition request a is generated first, and after the generation is completed, the number of resources required by the resource acquisition request B is generated again.
However, neither generation method can fully satisfy the urgency of the resource demand party for the resource demand.
For example, the resource provider generates the resource in a periodic generation manner, if the resource is currently needed by the resource demander, and the resource provider just spends one generation period, the resource currently needed by the resource demander needs to be generated when the next generation period arrives.
For another example, the resource provider generates resources in an in-order fashion, with a being ranked before B and C being ranked after B if the current plurality of resource requesters A, B, C all require resources. While the resource provider consumes a lot of time to generate the resources required by a, the end result may be: the resource provider meets the needs of resource demander a but cannot meet the urgency of B and C for resource needs.
It can be seen that the existing scheme of resource scheduling cannot fully meet the demands of the resource demander.
Aiming at the technical problems, the resource scheduling scheme provided by the specification is as follows: the resource provider stores a certain amount of resources in advance, and when the resource demand side has a demand, the resources stored by the resource provider can be used, so that the time interval from the generation of the demand to the acquisition of the resources by the resource demand side is reduced, and the use demand of the resource demand side is met. Meanwhile, the resources stored by the resource provider are gradually reduced due to the use of the resources allocated to each resource demander, so that the resource provider can continuously meet the demands of the resource demander in order to maintain the quantity of the resources of the resource provider, and accordingly the resource provider can correspondingly generate the resources and store the resources locally so as to maintain the quantity of the locally stored resources.
According to the configuration of the actual application scenario, the embodiment of the present disclosure further provides two resource scheduling schemes, which are respectively described below:
scheme one:
for convenience of description, it is specified in this specification that in a specific resource scheduling transaction, there is one resource providing system, and at least one resource demander. The resource providing system is responsible for providing the resource needed by the resource demander, so as to meet the use requirement of the resource demander. As shown in fig. 1, the resource providing system at least includes: a generating platform with a function of generating resources and a scheduling platform with a function of distributing the resources to each resource demander.
According to the above description, in order to meet the urgency of the resource demand party to use the resource, a certain amount of resources may be pre-stored in the scheduling platform of the load distribution resource, where the amount may be determined according to the demand of each resource demand party, for example, may be determined according to the history demand record of each resource demand party, where the maximum amount of resources that needs to be provided by the resource providing system to each resource demand party at a certain time point is determined according to the history demand record, for example, is X, and in order to enable the stored resources to meet the demand of each resource demand party as much as possible, the amount of resources that is X may be pre-stored locally in the resource provider. Of course, the number X may be pre-stored by 90% or other ratios to satisfy the needs of the resource demander with a high probability, and the present specification does not limit how to determine the number of pre-stored resources in the scheduling platform, so long as the needs of the resource demander can be satisfied with a high probability.
Based on the above description, the present disclosure provides a resource scheduling method, as shown in fig. 2, which may include the following steps:
s201, after a resource providing system determines a resource demand, generating resource scheduling task information aiming at the resource demand after the demand meets a preset rule, and providing the task information to a scheduling platform and a generating platform; the task information at least comprises: identification of the resource demander, and the amount of resources required;
the resource providing system may determine that there is a primary resource demand after receiving a request sent by a resource demand party, or may determine that there is a primary resource demand after receiving an indication sent by another resource party.
After determining a primary resource demand, the resource providing system further judges whether the demand meets a preset rule, and determines that the current resource demand needs to be processed in the following manner under the condition that the preset rule is met, the resource providing system generates resource scheduling task information aiming at the current demand, and the task information can comprise an identifier of a resource demand party and the number of required resources corresponding to the demand. And after the generation, the generated resource scheduling task information is simultaneously transmitted to a scheduling platform and a generating platform. And then the scheduling platform and the generating platform can perform corresponding operation according to the information in the scheduling task information when receiving the scheduling task information.
According to the above, the generating platform generates the resources in a periodic or sequential way, and allocates the resources to the resource demander for use after generating the resources.
However, neither generation method can fully satisfy the urgency of the resource demand party for the resource demand.
Therefore, the resource providing system first needs to determine whether the manner of generating by the generating platform and then transmitting the generated resource to the resource demander can satisfy the urgency of the resource demander for the resource demand. Where satisfied, resources are provided to the resource demander in this manner. If the resource cannot be satisfied, a mode of directly acquiring the locally stored resource and transmitting the locally stored resource to a resource demander is adopted.
After the resource providing system determines a resource requirement, whether the resource requirement meets a preset rule needs to be judged, and a mode of acquiring local storage resources and sending the local storage resources to the resource requirement party is adopted under the condition that the preset rule is met.
The preset rule may be that a duration of a resource required by the generating platform to generate the resource requirement is longer than a preset duration.
If the time period is longer than the preset time period, the method of generating and sending the resource to the resource demand party firstly is described to provide the resource for the resource demand party, and the urgency of the resource demand party on the resource demand can not be met, so that the resource can not be provided for the resource demand party in the method.
The preset time period can be set according to actual requirements.
The method for predicting the duration of the resource required by the resource demand generated by the generating platform can be determined according to the mode of generating the resource by the generating platform:
if the mode of generating the resource by the generating platform is periodic, predicting the duration of generating the resource required by the resource demand by the generating platform according to the period of generating the resource by the generating platform. For example, a difference between the time of the next generation cycle and the current time is determined, where the determined difference is a time length of the generation platform to generate the resource required by the resource demand.
If the method for generating the resources by the generating platform is to generate the resources in sequence, the duration of generating the resources required by the resource requirement by the generating platform can be predicted according to the quantity of the resources to be generated corresponding to all the requirements arranged in front of the resource requirement and the efficiency of generating the resources by the generating platform.
For example, the resource requirement is a resource requirement C, the generating platform needs to generate requirements corresponding to the resource requirement a and the resource requirement B before processing the requirement, and determines that the resource requirement a and the resource requirement B correspond to Y numbers of resources altogether, and the generating platform processing efficiency is Z, so that it can be determined that the time for waiting for Y/Z for generating the resource required by the resource requirement C by the generating platform is also required. If Y/Z is greater than the preset threshold, the preset rule is satisfied.
The steps performed in the case where the preset rule is not satisfied may refer to schemes described below, which will not be described in detail.
And under the condition that the preset threshold value is met, the resource providing system provides resource scheduling task information for the scheduling platform and the generating platform. The resource providing system may provide resource scheduling task information to the scheduling platform and the generating platform simultaneously, or may provide resource scheduling task information to the scheduling platform first, and the scheduling system forwards the task information to the generating platform, or may provide resource scheduling task information to the generating platform first, and the generating platform forwards the task information to the scheduling platform. That is, the execution sequence of S201a and S201b in fig. 2 is not limited.
Because the resource providing system generates one piece of resource scheduling task information for each resource requirement, the resource providing system can further identify each piece of resource scheduling task information. For example, the generated piece of resource scheduling task information is identified as resource scheduling task information a.
S202, a scheduling platform acquires corresponding resource quantity from locally stored resources according to received task information and sends the acquired resources to a resource demand party; updating the received task information into a transmitted state according to the current transmitting behavior;
In the above S201 example, after receiving the task information a provided by the resource providing system, the scheduling platform may obtain the corresponding resource amount from the local according to the resource demand amount in the task information a, and send the obtained resource to the resource demand party according to the identifier of the resource demand party. After being sent to the resource demander, the scheduling platform locally updates the piece of task information a to the sent state, and the piece of task information a is used for identifying that corresponding resources are acquired locally according to the resource scheduling task information a and sent to the corresponding resource demander.
S203, a generation platform generates corresponding resource quantity according to the received task information, and sends the generated resource and the received task information to a scheduling platform after being associated;
in combination with the above example, the generating platform may generate a corresponding resource amount according to the resource demand amount in the task information a after receiving the task information a provided by the resource providing system, correlate the generated resource with the received task information a, and then send the resource to the scheduling platform.
S204, the scheduling platform queries corresponding task information stored locally according to the associated task information after receiving the resources sent by the generating platform, and updates the queried task information into a supplemented state.
In combination with the above example, after receiving the resource sent by the generating platform, the scheduling platform determines that the associated task information is a, queries the locally stored task information a, and updates the state of the queried task information a to the supplemented state.
According to the technical scheme provided by the embodiment of the specification, a certain amount of resources are stored in the scheduling platform in advance, and the resources stored in the scheduling platform can be used when the resource demand side has a demand, so that the time interval from the generation of the demand to the acquisition of the resources of the resource demand side is reduced, and the use demand of the resource demand side is met. Meanwhile, the generating platform generates corresponding resources and sends the corresponding resources to the scheduling platform so as to maintain the number of the resources locally stored by the scheduling platform, so that the resources stored by the scheduling platform are prevented from being gradually reduced due to being distributed to each resource demand party for use, and further the continuous service for each resource demand party can be ensured.
It should be noted that, although the above process is described according to a scheduling procedure generated by a resource demand, the processes of the scheduling platform and the generating platform are independent from each other in actual running, that is, the scheduling platform does not affect the generating platform to generate the resource, and vice versa.
In S201, if it is determined that the predicted result is not greater than the preset duration threshold, that is, the requirement does not meet the preset rule, it is indicated that the urgency of the resource demand by the resource demand party can be satisfied by generating and sending the predicted result to the demand party.
Therefore, under the condition that the predicted result is not more than the preset time threshold, the resource providing system generates resource scheduling task information aiming at the current resource demand and provides the task information to the generating platform;
the generation platform generates corresponding resource quantity according to the received task information, and sends the generated resource and the received task information to the scheduling platform after being associated;
the scheduling platform can forward the received resources to the resource demander according to the demander identification in the task information.
In this embodiment, when it is determined that the resource does not meet the preset rule, the resource requirement of the demander is met by generating the corresponding resource and then sending the generated resource to the resource demander, that is, when the requirement of the resource demander can be fully met, a manner of obtaining the refill from the locally stored resource is not required. Thus saving processing resources of the scheduling platform.
In addition, in this embodiment, under the condition that the requirement does not meet the preset rule, the generating platform may directly send the generated resource to the resource requiring party after generating the resource, so as to further save the processing resource of the scheduling platform, and improve the efficiency of the resource requiring party to acquire the resource.
In order to more clearly describe a resource scheduling method shown in fig. 2 of the present specification, a method performed by the scheduling platform will be described from a single-side point of view:
the scheduling platform locally stores a preset number of resources, and for the scheduling platform, tasks to be executed are mainly as follows:
acquiring corresponding resource quantity from locally stored resources according to task information provided by a resource providing system, and transmitting the acquired resources to a resource requiring party; the task information at least comprises: identification of the resource demander, and the amount of resources required;
updating the received task information into a transmitted state according to the current transmitting behavior;
after receiving the resources sent by the generating platform, inquiring the corresponding task information stored locally according to the associated task information, and updating the inquired task information into a supplemented state; and the resources sent by the generating platform are generated into corresponding resources according to the task information provided by the resource providing system by the generating platform.
The first aspect of the present disclosure is described below with reference to some specific application scenarios:
specific example 1:
in the resource scheduling system shown in fig. 2, for example, in AM8:00, the resource providing system determines a primary resource demand, the resource demand side is a, and the demand amount is X. The generation platform in the resource providing system adopts periodic generation resources, and the next generation period is AM8:10. while the resource demander a of the current resource demand is very urgent for the resource demand, it is required to be in AM8:05, acquiring resources before. The description is not able to meet the resource requirement of the resource demander by generating and sending the description to the resource demander.
Therefore, the resource providing platform can generate resource scheduling task information A aiming at the current resource requirement, and provide the task information to the scheduling platform and the generating platform.
After receiving the resource scheduling task information A, the scheduling platform directly acquires X number of resources locally and sends the X number of resources to the resource demand party A, so that the resource demand party A can acquire the resources rapidly, and the urgency of the resource demand is met. And simultaneously, the resource scheduling task information A is recorded locally, and the state of the resource scheduling task information A is updated to be the sent state.
In addition, after receiving the resource scheduling task information a, the generating platform arrives at the period AM8: and 10, generating X-number of resources according to the resource scheduling task information A, associating the X-number of resources with the resource scheduling task information A, and then sending the X-number of resources to a scheduling platform.
After the scheduling platform acquires the X number of resources, the X number of resources are stored locally so as to maintain a certain number of locally stored resources, and the state of the resource scheduling task information A is updated to be a supplemented state.
Specific example 2:
the embodiment of the specification can also be applied to a financial resource scene, and in practical application, merchants can cooperate with a payment mechanism to open the function that users can swipe cards and consume in shops of the merchants.
Taking a buyer card consumption scene as an example: after the buyer spends by swiping a card in the shop of the merchant, the settlement platform (generation platform) can settle accounts in one period, usually in the next working day of the user's consumption, and after the settlement is completed, the funds consumed by the user can be sent to the account of the merchant. The merchant is used as a resource demand party, the time for obtaining funds is long, and the fund pressure on the merchant is large.
As shown in fig. 3, the funding system may store a certain amount of funds in advance at the paymate (dispatch platform). After the user swipes the card for consumption, the funds providing system may further determine whether pre-stored funds need to be obtained from the paymate. For example, the time of the user consumption is AM8:00, the consumption amount is 2 ten thousand yuan, the merchant account is B, and the settlement platform can settle the consumption amount this time on the next day AM00:00, namely, the merchant can receive the funds consumed by the user on the next day AM 00:00. However, for merchants, if the funds consumed by the user cannot be received in time, great funds pressure is applied.
Accordingly, the preset rule may be set such that the difference between the settlement time and the time the user consumes funds exceeds 3 hours. The following funding scheme is performed in the case that the preset rule is satisfied.
The fund providing system can be a payment mechanism background server, fund dispatching task information consumed by a user is sent to the settlement platform and the payment platform, the fund dispatching task information comprises the consumption amount and account information of a merchant, the payment platform obtains corresponding amount, namely 2 ten thousand yuan, from locally pre-stored funds, the obtained 2 ten thousand yuan is sent to the merchant according to the account information of the merchant, and then the merchant can quickly receive the amount consumed by the user, and meanwhile, the payment platform locally records the payment record.
When the settlement period is reached, the settlement platform sends the 2 ten thousand yuan to the payment platform, and the payment platform stores the acquired 2 ten thousand yuan in a local account and eliminates the recorded expenditure record.
Of course, when it is determined that the preset rule is not satisfied, for example, the time consumed by the user is PM10:00, and the time settled by the computing platform is AM00:00 of the next day, and the difference between the two is not greater than 3 hours, at this time, after settlement is completed, the settled funds can be directly sent to the account of the merchant.
Scheme II:
as shown in fig. 4, the present specification also proposes another resource providing system, which includes a scheduling platform, a generating platform, and a storage platform. The system decouples the storage function and the resource distribution function of the resource providing system, namely, the resources for responding to the resource demands are not stored in the scheduling platform but are stored in the storage platform, so that the two platforms respectively execute the functions of the two platforms, and the storage and processing resources of the scheduling platform are liberated.
According to the system, the present specification further proposes another resource scheduling method, as shown in fig. 5, which may include the following steps:
s501, after a resource providing system determines a resource demand, and under the condition that the demand meets a preset rule, generating resource scheduling task information aiming at the resource demand, and providing the task information to a scheduling platform and a generating platform;
the manner and the whole flow of determining that the requirement meets the preset rule in this step may refer to the step in S201, which is not described herein. In addition, in the case where it is determined that the demand does not meet the preset rule, the steps to be performed may be referred to hereinafter, which will not be described in detail.
S502, the scheduling platform generates a resource allocation instruction according to the received task information and sends the resource allocation instruction to the storage platform, wherein the resource allocation instruction at least comprises: identification of the resource demander, and the amount of resources required;
the scheduling platform receives the task information, for example, receives the task information B, and may generate a resource allocation indication B according to the identification of the resource demander in the task information B and the required resource amount, and send the resource allocation indication B to the storage platform.
S503, the storage platform acquires corresponding resource quantity from locally stored resources according to the received resource allocation instruction under the condition that the resource demand party has the authority of directly acquiring the resources from the local, and sends the acquired resources to the resource demand party; updating the received resource allocation indication into a transmitted state according to the current transmission behavior;
in combination with the above example, after receiving the resource indication B, the storage platform first determines whether the resource demander has the right to directly obtain the resource from the local. If the resource request has the authority, the corresponding quantity can be obtained locally directly according to the quantity of the resources in the indication B, the obtained resources are directly sent to the resource request party according to the resource request party identifier in the indication B, and after the sending is completed, the resource allocation indication B is updated to be in a sent state.
In this step, after receiving the resource allocation indication B, the storage platform determines whether the resource demander has the authority to directly obtain the resource from the local, or may determine according to the identifier of the resource demander in the resource allocation indication B. For example, the storage platform may locally store an identifier library of the resource demander having authority, further determine whether the resource demander identifier in the received resource allocation indication B is in the locally stored identifier library, if so, determine that the resource demander in the resource allocation indication B has authority, and if not, indicate that the resource demander does not have authority.
Of course, the scheduling platform may execute to determine whether the resource requiring party in the indication B has the authority, then generate the authority identifier according to the result of the determination, identify whether the resource requiring party has the authority through the authority identifier, add the authority identifier to the resource allocation indication B and send the resource allocation indication B to the storage platform, and after receiving the indication B, the storage platform may directly determine whether the resource requiring party in the resource allocation indication B has the authority according to the authority identifier.
In the case where the storage platform determines that the resource-requiring party in the indication does not have the right to directly obtain the resource from the local site, the steps to be performed will be described below, and will not be described in detail.
S504, generating a platform, generating corresponding resource quantity according to the received task information, and sending the generated resource and the received task information to a storage platform after associating;
in combination with the above example, after generating the corresponding resource quantity according to the task information B, the generating platform correlates the generated resource with the received task information and then directly sends the correlated resource with the received task information to the storage platform.
S505, the storage platform queries corresponding locally stored resource allocation instructions according to the associated task information after receiving the resources sent by the generation platform, and updates the queried resource allocation instructions into a supplemented state.
In combination with the above example, the storage platform may store the resource locally after receiving the resource, and may query the currently stored resource allocation indication B according to the task information B, and update the queried resource allocation indication B to a replenished state.
According to the technical scheme provided by the embodiment of the specification, a certain amount of resources are stored in the storage platform in advance, and the resources stored in the storage platform can be used when the resource demand side has a demand, so that the time interval from the generation of the demand to the acquisition of the resources of the resource demand side is reduced, and the use demand of the resource demand side is met. Meanwhile, the generating platform generates corresponding resources and sends the corresponding resources to the storage platform to maintain the number of the resources locally stored by the storage platform, so that the resources stored by the storage platform are prevented from being gradually reduced due to the use of the resources allocated to each resource demander, and further the continuous service for each resource demander can be ensured.
In S501, if it is determined that the predicted result is not greater than the preset duration threshold, that is, the requirement does not meet the preset rule, it is indicated that the urgency of the resource demand by the resource demand party can be satisfied by generating and sending the predicted result to the demand party.
Therefore, under the condition that the predicted result is not more than the preset time threshold, the resource providing system can generate resource scheduling task information aiming at the current resource demand and provide the task information to the generation platform; the task information at least comprises: identification of the resource demander, and the amount of resources required;
The generation platform can generate corresponding resource quantity according to the received task information, and send the generated resource and the received task information to the scheduling platform after being associated;
the scheduling platform can forward the received resources to the resource demander according to the demander identification in the task information.
In this embodiment, when it is determined that the resource does not meet the preset rule, the resource requirement of the demander is met by generating the corresponding resource and then sending the generated resource to the resource demander, that is, when the requirement of the resource demander can be fully met, a manner of obtaining the refill from the locally stored resource is not required. Thus saving processing resources of the scheduling platform and the storage platform. In addition, in this embodiment, under the condition that the requirement does not meet the preset rule, the generating platform may directly send the generated resource to the resource requiring party after generating the resource, so as to further save the processing resource of the scheduling platform, thereby improving the efficiency of the resource requiring party to acquire the resource.
In S503, when it is determined that the resource requiring party in the instruction does not have the authority to directly obtain the resource from the local, the corresponding number of resources may be obtained from the locally stored resources according to the received resource allocation instruction, and the obtained resources and the received allocation instruction are associated and then sent to the scheduling platform; updating the received resource allocation indication into a transmitted state according to the current transmission behavior; after receiving the resources, the scheduling platform can forward the received resources to the resource demand party according to the resource demand party identification in the allocation indication.
In this embodiment, under the condition that it is determined that the resource demand party in the instruction does not have the authority to directly obtain the resource from the local, the generated resource can be sent to the scheduling platform to forward the obtained resource, so that the problem that the required resource can be obtained under the condition that the resource demand party does not directly obtain the resource authority from the storage platform is solved.
In addition, in order to improve the efficiency of the resource demander to acquire the resource, when the storage platform determines that the resource demander does not have the authority to directly acquire the resource from the local, the temporary or permanent authority can be opened for the resource demander so that the resource demander can directly acquire the resource from the local. And further, the overlong time of acquiring the resource by the resource demander caused by forwarding the resource through the scheduling platform can be avoided. I.e. the time for the resource-requiring party to acquire the resource is further shortened. The temporary authority refers to that the authority can only be used for the current resource transmission.
Of course, if the step of determining whether the resource-requiring party has the authority according to the resource-requiring party identifier is performed by the scheduling platform, the scheduling platform may directly open temporary or permanent authority for the resource-requiring party when the determination result indicates that the resource-requiring party does not have the authority, so that the storage platform may directly send the locally acquired resource to the resource-requiring party.
By the method, under the condition that the resource demand side does not have the authority to directly acquire the resources from the local, the time for acquiring the resources by the resource demand side can be further shortened by opening the authority.
In order to more clearly describe a resource scheduling method shown in fig. 5 of the present specification, a method performed by the scheduling platform will be described from a single-side point of view:
for a dispatch platform, the tasks to be performed are mainly as follows:
generating a resource allocation instruction according to task information provided by a resource providing system, and sending the resource allocation instruction to a storage platform, so that the storage platform sends resources to a resource demand party according to the resource allocation instruction and updates the received resource allocation instruction to a sent state; the storage platform updates the resource allocation indication to a supplemented state after receiving the resource sent by the generation platform; the resource allocation indication at least comprises: the identity of the resource demander, and the amount of resources required.
The resource allocation indication at least comprises: the identity of the resource demander, and the amount of resources required.
The second aspect of the present specification is described below with reference to a specific application scenario:
Specific example 3:
as shown in fig. 6, in combination with the application scenario in the above embodiment 2, in order to avoid storing large funds in the payment platform for a long time, a third party funds storage platform may be added to the funds providing system, and funds may be stored in the third party funds storage platform.
After the user swipes the card for consumption, the funds providing system may further determine whether pre-stored funds need to be obtained from the third party funds storage platform. And under the condition that the need is determined, the fund providing system sends fund dispatching task information consumed by the user to the settlement platform and the payment platform, wherein the fund dispatching task information comprises the consumption amount and account information of a merchant, and the payment platform generates fund distribution instructions according to the fund dispatching task information and sends the fund distribution instructions to the third-party fund storage platform.
And the third party fund storage platform can acquire corresponding fund quantity from the locally stored fund under the condition that the merchant has the right of directly acquiring the fund from the local according to the received fund distribution instruction, and sends the acquired fund to the merchant, so that the fund reflux requirement of the merchant is met.
And when the settlement period is reached, the settlement platform sends the settlement amount to a third-party fund storage platform, and the third-party fund storage platform stores the acquired amount in a local account.
Further in this scenario, the third party fund storage platform may be a third party payment mechanism, such as a bank, which does not store a large amount of funds on the payment platform that is originally only used for fund payment, but rather there is a third party payment mechanism, so that the problem that the payment platform itself needs to pay a large amount of interest because of storing a large amount of funds on the payment platform locally for a long period of time can be avoided. Meanwhile, the problem of fund waste caused by excessive storage or insufficient fund caused by insufficient storage can be avoided.
In this scenario, in the case where the third party storage platform is a third party payment mechanism, such as a bank, the third party payment mechanism may forward the funds acquired to the merchant through the payment platform, as the merchant does not necessarily have the authority to acquire funds at the third party payment mechanism, e.g., the merchant does not have an account with the third party payment mechanism.
In the application scene, funds are sent to the merchant in advance through the third party funds storage platform, so that the actual requirement of the merchant on funds backflow is met. Meanwhile, after settlement is completed, the third party fund storage platform receives the fund settled by the settlement platform and fills the amount originally paid out.
Therefore, in the first scheme and the second scheme, in the configuration of different application scenarios, a certain amount of resources can be stored in advance to meet the urgency of the resource demand party on the resource demand, and meanwhile, the generating platform can be utilized to generate a corresponding amount of resources, so that the number of resources of the resource providing system is always maintained at a certain number, and the demands of the resource demand party can be continuously met.
As shown in fig. 7, corresponding to the foregoing resource scheduling method shown in fig. 2, the present disclosure further provides a resource scheduling device, which is applied to a scheduling platform in a resource providing system, where the scheduling platform locally stores a preset number of resources, and the resource providing system further includes a generating platform; the device comprises:
the obtaining module 710 is configured to obtain, from locally stored resources, a corresponding number of resources according to task information provided by the resource providing system; the task information at least comprises: identification of the resource demander, and the amount of resources required;
a sending module 720, configured to send the obtained resource to a resource demander;
a state updating module 730, configured to update the received task information to a sent state according to the current sending behavior;
The state updating module 730 is further configured to query corresponding task information stored locally according to the associated task information after receiving the resource sent by the generating platform, and update the queried task information into a supplemented state; the resources sent by the generating platform are as follows: the generating platform generates corresponding resources according to the task information provided by the resource providing system.
As shown in fig. 8, corresponding to one resource scheduling method shown in fig. 5, another resource scheduling device is provided, which is applied to a scheduling platform in a resource providing system, where the resource providing system includes a generating platform and a storage platform; the resources are used for responding to the resource demands and are stored in the storage platform; the device comprises:
an allocation indication generating module 810, configured to generate a resource allocation indication according to the task information provided by the resource providing system; wherein, the resource allocation indication at least comprises: identification of the resource demander, and the amount of resources required;
and the sending module 820 is configured to send the generated resource allocation indication to a storage platform, so that the storage platform sends resources to a resource demander according to the resource allocation indication and updates the received resource allocation indication to a sent state, where the storage platform updates the resource allocation indication to a replenished state after receiving the resources sent by the generation platform.
The implementation process of the functions and roles of each component in the above device is specifically shown in the implementation process of the corresponding steps in the above method, and will not be described herein again.
For the device embodiments, reference is made to the description of the method embodiments for the relevant points, since they essentially correspond to the method embodiments. The device embodiments described above are merely illustrative. Some or all of the modules may be selected according to actual needs to achieve the purposes of the present description. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
The embodiments of the present disclosure also provide a computer device at least including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the foregoing method when executing the program. The method at least comprises the following steps: the method executed by the dispatching platform.
One of the scheduling platforms is a scheduling platform in a resource providing system, and the resource providing system further comprises a generating platform; the scheduling platform locally stores a preset number of resources, and the method executed by the scheduling platform comprises the following steps:
Acquiring corresponding resource quantity from locally stored resources according to task information provided by a resource providing system, and transmitting the acquired resources to a resource requiring party; the task information at least comprises: identification of the resource demander, and the amount of resources required;
updating the received task information into a transmitted state according to the current transmitting behavior;
after receiving the resources sent by the generating platform, inquiring the corresponding task information stored locally according to the associated task information, and updating the inquired task information into a supplemented state; and the resources sent by the generating platform are generated into corresponding resources according to the task information provided by the resource providing system by the generating platform.
The other scheduling platform is a scheduling platform in a resource providing system, and the resource providing system also comprises a generating platform and a storage platform, wherein the resources are used for responding to resource demands and are stored in the storage platform; the method executed by the dispatching platform comprises the following steps:
generating a resource allocation instruction according to task information provided by a resource providing system, and sending the resource allocation instruction to a storage platform so that the storage platform can send resources to a resource demand party according to the resource allocation instruction and update the received resource allocation instruction to a sent state, wherein the storage platform can update the resource allocation instruction to a supplemented state after receiving the resources sent by the generation platform; the resource allocation indication at least comprises: the identity of the resource demander, and the amount of resources required.
FIG. 9 illustrates a more specific hardware architecture diagram of a computing device provided by embodiments of the present description, which may include: a processor 1010, a memory 1020, an input/output interface 1030, a communication interface 1040, and a bus 1050. Wherein processor 1010, memory 1020, input/output interface 1030, and communication interface 1040 implement communication connections therebetween within the device via a bus 1050.
The processor 1010 may be implemented by a general-purpose CPU (Central Processing Unit ), microprocessor, application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, etc. for executing relevant programs to implement the technical solutions provided in the embodiments of the present disclosure.
The Memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory ), static storage device, dynamic storage device, or the like. Memory 1020 may store an operating system and other application programs, and when the embodiments of the present specification are implemented in software or firmware, the associated program code is stored in memory 1020 and executed by processor 1010.
The input/output interface 1030 is used to connect with an input/output module for inputting and outputting information. The input/output module may be configured as a component in a device (not shown) or may be external to the device to provide corresponding functionality. Wherein the input devices may include a keyboard, mouse, touch screen, microphone, various types of sensors, etc., and the output devices may include a display, speaker, vibrator, indicator lights, etc.
Communication interface 1040 is used to connect communication modules (not shown) to enable communication interactions of the present device with other devices. The communication module may implement communication through a wired manner (such as USB, network cable, etc.), or may implement communication through a wireless manner (such as mobile network, WIFI, bluetooth, etc.).
Bus 1050 includes a path for transferring information between components of the device (e.g., processor 1010, memory 1020, input/output interface 1030, and communication interface 1040).
It should be noted that although the above-described device only shows processor 1010, memory 1020, input/output interface 1030, communication interface 1040, and bus 1050, in an implementation, the device may include other components necessary to achieve proper operation. Furthermore, it will be understood by those skilled in the art that the above-described apparatus may include only the components necessary to implement the embodiments of the present description, and not all the components shown in the drawings.
The present description also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the aforementioned method. The method at least comprises the following steps: the method executed by the dispatching platform.
One of the scheduling platforms is a scheduling platform in a resource providing system, and the resource providing system further comprises a generating platform; the scheduling platform locally stores a preset number of resources, and the method executed by the scheduling platform comprises the following steps:
acquiring corresponding resource quantity from locally stored resources according to task information provided by a resource providing system, and transmitting the acquired resources to a resource requiring party; the task information at least comprises: identification of the resource demander, and the amount of resources required;
updating the received task information into a transmitted state according to the current transmitting behavior;
after receiving the resources sent by the generating platform, inquiring the corresponding task information stored locally according to the associated task information, and updating the inquired task information into a supplemented state; and the resources sent by the generating platform are generated into corresponding resources according to the task information provided by the resource providing system by the generating platform.
The other scheduling platform is a scheduling platform in a resource providing system, and the resource providing system also comprises a generating platform and a storage platform, wherein the resources are used for responding to resource demands and are stored in the storage platform; the method executed by the dispatching platform comprises the following steps:
generating a resource allocation instruction according to task information provided by a resource providing system, and sending the resource allocation instruction to a storage platform so that the storage platform can send resources to a resource demand party according to the resource allocation instruction and update the received resource allocation instruction to a sent state, wherein the storage platform can update the resource allocation instruction to a supplemented state after receiving the resources sent by the generation platform; the resource allocation indication at least comprises: the identity of the resource demander, and the amount of resources required.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
From the above description of embodiments, it will be apparent to those skilled in the art that the embodiments of the present specification may be implemented in software plus a necessary general purpose hardware platform. Based on such understanding, the technical solutions of the embodiments of the present specification may be embodied in essence or what contributes to the prior art in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the embodiments or some parts of the embodiments of the present specification.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. A typical implementation device is a computer, which may be in the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email device, game console, tablet computer, wearable device, or a combination of any of these devices.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points. The apparatus embodiments described above are merely illustrative, in which the modules illustrated as separate components may or may not be physically separate, and the functions of the modules may be implemented in the same piece or pieces of software and/or hardware when implementing the embodiments of the present disclosure. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
The foregoing is merely illustrative of the embodiments of this disclosure, and it will be appreciated by those skilled in the art that variations and modifications may be made without departing from the principles of the embodiments of this disclosure, which are also intended to be within the scope of the embodiments of this disclosure.

Claims (14)

1. The resource scheduling method is applied to a resource providing system comprising a scheduling platform and a generating platform, wherein the scheduling platform locally stores a preset number of resources; the method comprises the following steps:
after the resource providing system determines a primary resource demand, generating resource scheduling task information aiming at the current resource demand under the condition that the demand meets a preset rule, and providing the task information to a scheduling platform and a generating platform; the task information at least comprises: identification of the resource demander, and the amount of resources required; the determining that the demand meets the preset rule includes: predicting the duration of generating the resources required by the resource demand by the generating platform; if the predicted result is greater than the preset duration threshold, determining that the requirement meets a preset rule;
the scheduling platform acquires corresponding resource quantity from locally stored resources according to the received task information and sends the acquired resources to a resource demand party; updating the received task information into a transmitted state according to the current transmitting behavior;
the generation platform generates corresponding resource quantity according to the received task information, and sends the generated resource and the received task information to the scheduling platform after being associated; the generated corresponding resource quantity is the same as the required resource quantity;
And the scheduling platform is used for inquiring corresponding task information stored locally according to the associated task information after receiving the resources sent by the generating platform and updating the inquired task information into a supplemented state.
2. The method of claim 1, further comprising:
if the prediction result is not greater than the preset duration threshold, the resource providing system generates resource scheduling task information aiming at the current resource demand and provides the task information to the generating platform; the task information at least comprises: identification of the resource demander, and the amount of resources required;
the generation platform generates corresponding resource quantity according to the received task information, and sends the generated resource and the received task information to the scheduling platform after being associated;
and the scheduling platform forwards the received resources to a resource demander.
3. The method of claim 1, the generation platform periodically generating resources; the prediction generation platform generates the duration of the resources required by the resource demand; comprising the following steps:
and predicting the duration of generating the resources required by the resource demand by the generating platform according to the period of generating the resources by the generating platform.
4. The resource scheduling method is applied to a scheduling platform in a resource providing system, wherein the scheduling platform locally stores a preset number of resources, and the resource providing system further comprises a generating platform; the method comprises the following steps:
Under the condition that the resource providing system determines that the resource requirement meets the preset rule, acquiring corresponding resource quantity from locally stored resources according to task information provided by the resource providing system, and transmitting the acquired resources to a resource requirement party; the task information at least comprises: identification of the resource demander, and the amount of resources required; the determining that the demand meets the preset rule includes: predicting the duration of generating the resources required by the resource demand by the generating platform; if the predicted result is greater than the preset duration threshold, determining that the requirement meets a preset rule;
updating the received task information into a transmitted state according to the current transmitting behavior;
after receiving the resource sent by the generating platform, inquiring the corresponding task information stored locally according to the task information associated with the received resource, and updating the inquired task information into a supplemented state; the resources sent by the generating platform are as follows: the generating platform generates resources according to the task information provided by the resource providing system; the number of resources generated by the generating platform is the same as the number of resources required.
5. The resource scheduling method is applied to a resource providing system comprising a scheduling platform, a generating platform and a storage platform, and is used for responding to the resource required by the resource and storing the resource in the storage platform; the method comprises the following steps:
After the resource providing system determines a primary resource demand, generating resource scheduling task information aiming at the current resource demand under the condition that the demand meets a preset rule, and providing the task information to a scheduling platform and a generating platform; the determining that the demand meets the preset rule includes: predicting the duration of generating the resources required by the resource demand by the generating platform; if the predicted result is greater than the preset duration threshold, determining that the requirement meets a preset rule;
the scheduling platform generates a resource allocation instruction according to the received task information and sends the resource allocation instruction to the storage platform, wherein the resource allocation instruction at least comprises: identification of the resource demander, and the amount of resources required;
the storage platform acquires corresponding resource quantity from locally stored resources under the condition that the resource demand party has the authority of directly acquiring the resources from the local according to the received resource allocation instruction, and sends the acquired resources to the resource demand party; updating the received resource allocation indication into a transmitted state according to the current transmission behavior;
the generation platform generates corresponding resource quantity according to the received task information, and sends the generated resource and the received task information to the storage platform after being associated; the generated corresponding resource quantity is the same as the required resource quantity;
And the storage platform inquires corresponding locally-stored resource allocation instructions according to the associated task information after receiving the resources sent by the generation platform, and updates the inquired resource allocation instructions into a supplemented state.
6. The method of claim 5, further comprising:
if the prediction result is not greater than the preset duration threshold, the resource providing system generates resource scheduling task information aiming at the current resource demand and provides the task information to the generating platform; the task information at least comprises: identification of the resource demander, and the amount of resources required;
the generation platform generates corresponding resource quantity according to the received task information, and sends the generated resource and the received task information to the scheduling platform after being associated;
and the scheduling platform forwards the received resources to a resource demander.
7. The method of claim 5, the generation platform periodically generating resources; the prediction generation platform generates the duration of the resource required by the resource demand, and comprises the following steps:
and predicting the duration of generating the resources required by the resource demand by the generating platform according to the period of generating the resources by the generating platform.
8. The method of claim 5, wherein the storage platform determining that the resource demander has the right to directly obtain the resource from the local according to the received resource allocation indication comprises:
The storage platform acquires the identification of the resource demand party in the resource allocation indication, and determines that the resource demand party has the right to directly acquire the resource from the local according to the identification of the resource demand party.
9. The method of claim 5, the resource allocation indication further comprising: a right identifier; the permission identifier is used for identifying whether the resource requiring party has permission to directly acquire the resource from the storage platform;
the storage platform determines that the resource demand party has the right to directly acquire the resource from the local according to the received resource allocation instruction, and comprises the following steps:
and the storage platform acquires the authority identification in the resource allocation indication, and determines that the resource requiring party has the authority for directly acquiring the resource from the local according to the authority identification.
10. The method of claim 5, further comprising:
the storage platform acquires corresponding resource quantity from locally stored resources according to the received resource allocation instruction under the condition that the resource demand party does not have the authority to directly acquire the resources from the local, and sends the acquired resources to the scheduling platform after being associated with the received allocation instruction; updating the received resource allocation indication into a transmitted state according to the current transmission behavior;
And the scheduling platform forwards the received resources to a resource demander.
11. The resource scheduling method is applied to a scheduling platform in a resource providing system, and the resource providing system further comprises a generating platform and a storage platform; the resources are used for responding to the resource demands and are stored in the storage platform; the method comprises the following steps:
under the condition that the resource providing system determines that the resource requirement meets the preset rule, generating a resource allocation instruction according to task information provided by the resource providing system, and sending the resource allocation instruction to a storage platform, so that the storage platform sends the resource to a resource requiring party according to the resource allocation instruction and updates the received resource allocation instruction to a sent state; the storage platform updates the resource allocation indication to a replenished state after receiving the resource sent by the generation platform; the resource allocation indication at least comprises: identification of the resource demander, and the amount of resources required; the number of the resources sent by the generating platform is the same as the number of the resources required; the determining that the demand meets the preset rule includes: predicting the duration of generating the resources required by the resource demand by the generating platform; if the predicted result is greater than the preset duration threshold, determining that the requirement meets a preset rule.
12. The resource scheduling device is applied to a scheduling platform in a resource providing system, wherein the scheduling platform locally stores a preset number of resources, and the resource providing system further comprises a generating platform; the device comprises:
the acquisition module is used for acquiring corresponding resource quantity from locally stored resources according to task information provided by the resource providing system under the condition that the resource providing system determines that the resource requirement meets a preset rule; the task information at least comprises: identification of the resource demander, and the amount of resources required; the determining that the demand meets the preset rule includes: predicting the duration of generating the resources required by the resource demand by the generating platform; if the predicted result is greater than the preset duration threshold, determining that the requirement meets a preset rule;
the sending module is used for sending the acquired resources to a resource requiring party;
the state updating module is used for updating the received task information into a sent state according to the current sending behavior;
the state updating module is also used for inquiring corresponding task information stored locally according to the associated task information after receiving the resource sent by the generating platform and updating the inquired task information into a supplemented state; the resources sent by the generating platform are as follows: the generation platform generates corresponding resources according to the task information provided by the resource providing system; the corresponding resource quantity generated by the generating platform is the same as the required resource quantity.
13. A resource scheduling device is applied to a scheduling platform in a resource providing system, wherein the resource providing system comprises a generating platform and a storage platform; the resources are used for responding to the resource demands and are stored in the storage platform; the device comprises:
the allocation indication generation module is used for generating a resource allocation indication according to the task information provided by the resource providing system under the condition that the resource providing system determines that the resource requirement meets the preset rule; wherein, the resource allocation indication at least comprises: identification of the resource demander, and the amount of resources required; the determining that the demand meets the preset rule includes: predicting the duration of generating the resources required by the resource demand by the generating platform; if the predicted result is greater than the preset duration threshold, determining that the requirement meets a preset rule;
the sending module is used for sending the generated resource allocation instruction to the storage platform so that the storage platform can send resources to a resource demand party according to the resource allocation instruction and update the received resource allocation instruction to a sent state, wherein the storage platform can update the resource allocation instruction to a supplemented state after receiving the resources sent by the generation platform; the number of the resources sent by the generating platform is the same as the number of the resources required.
14. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 4 or 11 when the program is executed by the processor.
CN202010372861.8A 2020-05-06 2020-05-06 Resource scheduling method and device Active CN111553699B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010372861.8A CN111553699B (en) 2020-05-06 2020-05-06 Resource scheduling method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010372861.8A CN111553699B (en) 2020-05-06 2020-05-06 Resource scheduling method and device

Publications (2)

Publication Number Publication Date
CN111553699A CN111553699A (en) 2020-08-18
CN111553699B true CN111553699B (en) 2023-05-16

Family

ID=72000462

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010372861.8A Active CN111553699B (en) 2020-05-06 2020-05-06 Resource scheduling method and device

Country Status (1)

Country Link
CN (1) CN111553699B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113298336A (en) * 2020-08-21 2021-08-24 阿里巴巴集团控股有限公司 Resource scheduling information determining method and device
CN112764676B (en) * 2020-12-31 2022-11-04 北京三快在线科技有限公司 Resource allocation system and method
CN116360990B (en) * 2023-03-27 2024-01-09 合芯科技有限公司 Distributed computing task rationality pre-judging method, system, equipment and storage medium
CN116366355A (en) * 2023-04-14 2023-06-30 北京智享嘉网络信息技术有限公司 Intelligent scheduling method and system for hardware resources of network equipment

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108460507A (en) * 2017-02-22 2018-08-28 阿里巴巴集团控股有限公司 order processing method, transaction system and server
CN108510337B (en) * 2017-02-24 2021-12-10 阿里巴巴集团控股有限公司 Order generation and inventory updating method, client and server
CN108876497B (en) * 2017-05-11 2022-03-29 腾讯科技(深圳)有限公司 Resource transfer method and device and third-party server
CN109389257A (en) * 2017-08-02 2019-02-26 上海策赢网络科技有限公司 A kind of fund distribution method and device
CN111582699A (en) * 2017-08-11 2020-08-25 广州睿临网络科技有限公司 Medical resource scheduling platform
CN108009731A (en) * 2017-12-08 2018-05-08 成都该呀科技有限公司 Resource allocation methods and device
CN109639599B (en) * 2018-12-26 2023-04-07 天翼电子商务有限公司 Network resource scheduling method and system, storage medium and scheduling device
CN111008064B (en) * 2019-11-29 2021-10-29 北京首都在线科技股份有限公司 Virtual machine resource scheduling method and device, and cluster deployment method and device

Also Published As

Publication number Publication date
CN111553699A (en) 2020-08-18

Similar Documents

Publication Publication Date Title
CN111553699B (en) Resource scheduling method and device
CN109144414B (en) Multi-level storage method and device for block chain data
US11146502B2 (en) Method and apparatus for allocating resource
CN110008018B (en) Batch task processing method, device and equipment
CN109857551B (en) Service resource scheduling method and device based on cloud computing and electronic equipment
CN109003069B (en) Resource rollback method and device
CN107943854B (en) Credit investigation service query method, apparatus and computer readable storage medium
CN109005214B (en) Resource scheduling method and device
CN110020846B (en) Transfer service processing method and system
CN110020383B (en) Page data request processing method and device
CN108153795B (en) Data processing method, system and device for electronic red packet
CN112862293A (en) Resource allocation method, device, storage medium and electronic equipment
CN114155026A (en) Resource allocation method, device, server and storage medium
CN112686528B (en) Method, device, server and medium for distributing customer service resources
CN111913807B (en) Event processing method, system and device based on multiple storage areas
CN111190910B (en) Method and device for processing quota resources, electronic equipment and readable storage medium
CN112764676B (en) Resource allocation system and method
CN111625344A (en) Resource scheduling system, method and device in application system
CN115421926A (en) Task scheduling method, distributed system, electronic device and storage medium
CN110188975A (en) A kind of resource acquiring method and device
CN110187987B (en) Method and apparatus for processing requests
CN114138444A (en) Task scheduling method, device, equipment, storage medium and program product
CN109901925B (en) Task processing method and system
CN112819606A (en) Middle-platform cross-industry point settlement method and system
CN110148044A (en) A kind of buffer threshold setting method and device for book keeping operation

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