CN111553699A - Resource scheduling method and device - Google Patents

Resource scheduling method and device Download PDF

Info

Publication number
CN111553699A
CN111553699A CN202010372861.8A CN202010372861A CN111553699A CN 111553699 A CN111553699 A CN 111553699A CN 202010372861 A CN202010372861 A CN 202010372861A CN 111553699 A CN111553699 A CN 111553699A
Authority
CN
China
Prior art keywords
resource
platform
resources
task information
scheduling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010372861.8A
Other languages
Chinese (zh)
Other versions
CN111553699B (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

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Accounting & Taxation (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Development Economics (AREA)
  • Computer Security & Cryptography (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Educational Administration (AREA)
  • Game Theory and Decision Science (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Finance (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present specification discloses a resource scheduling method and device, which are applied to a resource providing system including a scheduling platform and a generating platform, and include: after the resource providing system determines a resource requirement, under the condition that the requirement is determined to meet a preset rule, resource scheduling task information is generated aiming at the resource requirement, and the task information is provided for a scheduling platform and a generating platform; the scheduling platform acquires the corresponding resource quantity from the locally stored resources according to the received task information and sends the acquired resources to the resource demand side; updating the received task information into a sent state according to the sending behavior; the generating platform generates corresponding resource quantity according to the received task information and sends the corresponding resource quantity to the scheduling platform; and the scheduling platform inquires corresponding task information stored locally after receiving the resources sent by the generation platform, and updates the inquired 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 resource scheduling method and apparatus.
Background
In a resource scheduling system, two roles of a resource demander and a resource provider exist. The resource demander generally has actual use requirements on the resource, but does not own enough resource, while the resource provider has a certain amount of resource and can provide the resource externally. When the resource demand side needs the resource, the resource demand side needs to acquire the resource from the resource generation side, and further performs corresponding processing by using the acquired resource.
In the resource scheduling process, after determining the resource demand of the resource demand side, the resource provider sends the corresponding quantity of resources to the resource demand side. In practical applications, however, the resource provider may need to generate the resource by itself, or even call the resource from another place, in order to respond to the resource demander, and all the above operations may result in a response being not timely. Therefore, when the resource demanding party has a high urgency to demand for the resource, the existing resource scheduling scheme cannot meet the use demand of the resource demanding party for the resource, and further has a negative impact on the resource demanding party.
Disclosure of Invention
In view of the above technical problems, the present specification provides a method and an apparatus for resource scheduling, and the technical scheme is as follows:
according to a first aspect of the present description, there is provided a resource scheduling method applied to a resource providing system including a scheduling platform and a generating platform, where a preset number of resources are locally stored in the scheduling platform; the method comprises the following steps:
after the resource providing system determines the primary resource requirement, under the condition that the requirement is determined to meet a preset rule, resource scheduling task information is generated aiming at the current resource requirement, and the task information is provided for a scheduling platform and a generating platform; the task information at least comprises: the identification of the resource demander and the required resource quantity;
the scheduling platform acquires the corresponding resource quantity from the locally stored resources according to the received task information and sends the acquired resources to the resource demand side; updating the received task information into a sent state according to the sending behavior;
the generation platform generates corresponding resource quantity according to the received task information, associates the generated resources with the received task information and then sends the associated resources to the scheduling platform;
and the scheduling platform inquires corresponding task information stored locally according to the associated task information after receiving the resources sent by the generation platform, and updates the inquired task information into a supplemented state.
According to a second aspect of the present specification, there is provided another resource scheduling method, which is applied to a resource providing system including a scheduling platform, a generating platform, and a storage platform, and is used for responding to a 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 the primary resource requirement, under the condition that the requirement is determined to meet a preset rule, resource scheduling task information is generated aiming at the current resource requirement, and the task information is provided for 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 the following steps: the identification of the resource demander and the required resource quantity;
the storage platform acquires the corresponding resource quantity from the locally stored resources under the condition that the resource demand side is determined to have the right of directly acquiring the resources from the local according to the received resource allocation indication, and sends the acquired resources to the resource demand side; updating the received resource allocation indication into a sent state according to the sending behavior;
the generating platform generates corresponding resource quantity according to the received task information, associates the generated resources with the received task information and then sends the associated resources to the storage platform;
and the storage platform queries the corresponding resource allocation indication stored locally according to the associated task information after receiving the resource sent by the generation platform, and updates the queried resource allocation indication to a supplemented state.
According to a third aspect of the present specification, there is provided a resource scheduling apparatus, applied to a scheduling platform in a resource providing system, where a preset number of resources are locally stored in the scheduling platform, and the resource providing system further includes a generating platform; the device comprises:
the acquisition module is used for acquiring the corresponding resource quantity from the locally stored resources according to the task information provided by the resource providing system; the task information at least comprises: the identification of the resource demander and the required resource quantity;
the sending module is used for sending the acquired resources to the resource demand side;
the state updating module is used for updating the received task information into a sent state according to the 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 resources sent by the generating platform, and updating the inquired task information into a supplemented state; the resources sent by the generation platform are as follows: and the generation 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, where the resource providing system includes a generation platform and a storage platform; the resources are used for responding to the resource requirements and are stored in the storage platform; the device comprises:
the allocation indication generating module is used for generating a resource allocation indication according to the task information provided by the resource providing system; wherein the resource allocation indication at least comprises: the identification of the resource demander and the required resource quantity;
and the sending module is used for sending the generated resource allocation indication to a storage platform so that the storage platform sends the resource to the resource demander according to the resource allocation indication and updates the received resource allocation indication to a sent state, wherein the storage platform updates the resource allocation indication 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 by the resource providing system can be used when the resource demander needs the resources, so that the time interval from the generation of the demands to the acquisition of the resources by the resource demander is reduced, and the use demands of the resource demander are met. Meanwhile, the generation platform generates corresponding resources to be stored in the local of the resource providing system so as to maintain the quantity of the resources stored in the local of the resource providing system, avoid the gradual reduction of the resources stored in the resource providing system due to the allocation of the resources to each resource demand side, and further ensure the continuous provision of the resources for each resource demand side.
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 specification.
Drawings
In order to more clearly illustrate the embodiments of the present specification or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the embodiments of the present specification, and other drawings can be obtained by those skilled in the art according to the drawings.
Fig. 1 is a schematic structural diagram of a resource providing system according to an embodiment of the present specification;
fig. 2 is a flowchart illustrating a resource scheduling method according to an embodiment of the present disclosure;
FIG. 3 is a schematic flow chart diagram illustrating a method for fund scheduling in accordance with an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of another resource providing system according to an embodiment of the present specification;
FIG. 5 is a flowchart illustrating another resource scheduling method according to an embodiment of the present disclosure;
FIG. 6 is a schematic flow chart diagram illustrating another fund scheduling method according to 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 specification;
fig. 8 is a schematic structural diagram of another resource scheduling apparatus according to an embodiment of the present specification;
fig. 9 is a schematic structural diagram of an apparatus for configuring a device according to an embodiment of the present disclosure.
Detailed Description
In order to make those skilled in the art 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 obvious that the described embodiments are only a part of the embodiments of the present specification, and not all the embodiments. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of protection.
The terminology used in the description 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 and 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 herein 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 specification. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
In a resource scheduling system, two roles of a resource demander and a resource provider exist. The resource demander generally has actual use requirements on the resource, but does not own enough resource, while the resource provider has a certain amount of resource and can provide the resource externally. When the resource demand side needs the resource, the resource demand side needs to acquire the resource from the resource generation side, and further performs corresponding processing by using the acquired resource.
In the resource scheduling process, after determining the resource demand of the resource demand side, the resource provider sends the corresponding quantity of resources to the resource demand side. However, in practical applications, a resource provider may need to generate resources by itself, or even call resources from other places, to respond to a resource demander, and the above operations may result in a response being not timely, and further, when the resource demander has a high urgency to the demand of the resource, the existing resource scheduling scheme cannot meet the use demand of the resource demander for the resource, and further, a negative effect may be generated on the resource demander.
The resource provider often generates resources in a mode of periodically generating resources or sequentially generating resources, and allocates the resources to the resource demander for use after the resources are generated.
The resource is generated periodically, which means that a resource provider has a preset resource generation period, and when the period is reached, the resource provider generates a corresponding amount of resources according to the received resource acquisition request. For example, when the generation cycle is reached, the resource provider may query all resource acquisition requests received from the current cycle to the previous cycle, and determine the number of resources that need to be generated in the cycle according to the number of resources required in the resource acquisition requests. And executing the generation action after determining the quantity of the resources which need to be generated in the period.
And generating resources in sequence, namely generating resources according to a first-come-first-processed principle by using the resource acquisition request. For example, if the resource acquisition request receives the resource acquisition request a first and then receives the resource acquisition request B, the resource acquisition request a is processed first, that is, the amount of resources required by the resource acquisition request a is generated first, and after the generation is completed, the amount of resources required by the resource acquisition request B is generated.
However, neither generation method can completely satisfy the urgency of resource demand of the resource demand side.
For example, the resource provider generates the resource in a periodic generation manner, and if the resource demander currently needs the resource and the resource provider has just passed a generation cycle, the resource demander can generate the resource currently needed by the resource demander only when the next generation cycle arrives.
For another example, if the resource provider generates the resource in a sequential manner, and a currently needs the resource from multiple resource requesters A, B, C, a is before B and C is after B. The resource provider needs to consume a lot of time to generate the resources required by a, and the end result may be: the resource provider satisfies the needs of resource demander A, but does not satisfy the urgency of B and C for the resource needs.
Therefore, the existing resource scheduling scheme can not completely meet the requirements of resource demanders.
In view of the above technical problems, the resource scheduling scheme provided in this specification is: the resource provider stores a certain amount of resources in advance, and the resources stored by the resource provider can be used when the resource demander has a demand, so that the time interval from the generation of the demand to the acquisition of the resources by the resource demander is reduced, and the use demand of the resource demander is met. Meanwhile, since the resources stored by the resource provider are gradually reduced due to the allocation to each resource demander, in order to maintain the number of the resources of the resource provider so as to continuously meet the requirements of the resource demander, the resource provider correspondingly generates the resources and stores the resources locally so as to maintain the number of the locally stored resources.
According to the configuration of the practical application scenario, the embodiments of the present specification further provide two resource scheduling schemes, which are respectively described below:
the first scheme is as follows:
for convenience of description, in this specification, it is specified that in a specific resource scheduling transaction, there exist one resource providing system and at least one resource demanding party. The resource providing system is responsible for providing the required resources for the resource demander so as to meet the use requirements of the resource demander. As shown in fig. 1, the resource providing system at least includes: the system comprises a generation platform with a resource generation function and a scheduling platform with a resource distribution function to each resource demand party.
According to the above description, in order to meet the usage urgency of the resource demander for the resource, a certain amount of resources may be pre-stored in the scheduling platform for load distribution of the resource, where the amount may be determined according to the demand of each resource demander, for example, the maximum value that the resource providing system needs to provide may be determined according to the historical demand record of each resource demander, for example, the maximum amount of resources that the resource providing system needs to provide to each resource demander at a certain time point may be determined according to the historical demand record, and is X, then, in order to enable the stored resources to meet the demand of each resource demander as much as possible, the amount of resources of X may be pre-stored locally at the resource provider. Certainly, the quantity may also be pre-stored as 90% of the quantity X or other proportions to meet the requirement of the resource demander approximately, and how to determine the quantity of the pre-stored resources in the scheduling platform is not limited in this specification as long as the requirement of the resource demander can be met with a high probability.
On the basis of the above description, the present specification provides a resource scheduling method, which is shown in fig. 2 and may include the following steps:
s201, after a resource providing system determines a resource requirement, under the condition that the requirement meets a preset rule, resource scheduling task information is generated aiming at the resource requirement, and the task information is provided for a scheduling platform and a generating platform; the task information at least comprises: the identification of the resource demander and the required resource quantity;
the resource providing system may determine that there is a primary resource demand after receiving a request sent by a resource demanding party, or may determine that there is a primary resource demand after receiving an instruction sent by another resource party.
After determining the primary resource requirement, the resource providing system further determines whether the requirement meets a preset rule, and determines that the current resource requirement needs to be processed in the following manner if the requirement meets the preset rule, the resource providing system generates resource scheduling task information aiming at the current requirement, and the task information may include an identifier of a resource demander and a quantity of required resources corresponding to the requirement. And after the resource scheduling task information is generated, the generated resource scheduling task information is simultaneously sent to the scheduling platform and the generation platform. And then the scheduling platform and the generating platform can perform corresponding operation according to the information when receiving the scheduling task information.
According to the above, the generation platform often generates resources in a manner of periodically generating resources or sequentially generating resources, and allocates the resources to the resource demander for use after the resources are generated.
However, neither generation method can completely satisfy the urgency of resource demand of the resource demand side.
Therefore, the resource providing system needs to determine whether the urgency of the resource demand side for the resource demand can be met by adopting a mode that the generation platform generates the resource first and then sends the generated resource to the resource demand side. In the case of satisfaction, resources are provided to the resource demander in this way. And under the condition that the resource cannot be met, a mode of directly acquiring the locally stored resource and sending the locally stored resource to the resource demand side is adopted.
After the resource providing system determines the resource requirement once, it needs to first judge whether the resource requirement meets the preset rule, and only if the preset rule is met, the method of obtaining the local storage resource and sending the local storage resource to the resource requiring party is adopted.
The preset rule may be that the time length of the resource required by the generation platform to generate the resource demand is longer than a preset time length.
When the time length is longer than the preset time length, the method of generating and sending the resource demand side to the resource demand side firstly is explained to provide the resource for the resource demand side, and the urgency of the resource demand side to the resource demand cannot be met, so that the method cannot be adopted to provide the resource for the resource demand side.
The preset time length can be set according to actual requirements.
The method for predicting the time length of the resource required by the generation platform to generate the resource demand can be determined according to the mode of generating the resource by the generation platform:
if the mode of generating the resources by the generation platform is to periodically generate the resources, the time length of generating the resources required by the resource demand by the generation platform is predicted according to the period of generating the resources by the generation platform. For example, a difference value between the time of the next generation cycle and the current time is determined, and the determined difference value is a time length of the resource required by the generation platform to generate the resource demand.
If the resource generation mode of the generation platform is to generate resources in sequence, the time length of generating the resources required by the resource demand by the generation platform can be predicted according to the quantity of the resources to be generated corresponding to all the demands arranged before the resource demand and the efficiency of generating the resources by the generation platform.
For example, the resource requirement is a resource requirement C, before the requirement is processed, the generation platform needs to generate requirements corresponding to the resource requirement a and the resource requirement B, determine that the resource requirement a and the resource requirement B correspond to Y number of resources, and if the processing efficiency of the generation platform is Z, it may be determined that the generation platform needs to wait for Y/Z of the resources required by the resource requirement C. If Y/Z is larger than the preset threshold value, the preset rule is met.
The steps performed in the case where the preset rule is not satisfied may refer to the schemes described below, which will not be described in detail.
And under the condition of meeting the preset threshold value, the resource providing system provides resource scheduling task information for the scheduling platform and the generating platform. The resource providing system may provide the resource scheduling task information to the scheduling platform and the generating platform at the same time, or may provide the resource scheduling task information to the scheduling platform first and forward the task information to the generating platform by the scheduling system, or may provide the resource scheduling task information to the generating platform first and forward the task information to the scheduling platform by the generating platform. That is, the execution sequence of S201a and S201b in fig. 2 is not limited.
Because the resource providing system generates a 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 resource scheduling task information is identified as resource scheduling task information a.
S202, the scheduling platform acquires corresponding resource quantity from the locally stored resources according to the received task information and sends the acquired resources to a resource demand side; updating the received task information into a sent state according to the sending behavior;
by combining the above example of S201, after receiving the task information a provided by the resource providing system, the scheduling platform may obtain the corresponding resource quantity from the local according to the resource quantity required in the task information a, and send the obtained resource to the resource requiring party according to the identifier of the resource requiring party. After the information is sent to the resource demander, the scheduling platform locally updates the piece of task information a to a sent state, which is used for identifying that the corresponding resource is obtained locally according to the resource scheduling task information a and sent to the corresponding resource demander.
S203, the generating platform generates corresponding resource quantity according to the received task information, associates the generated resource with the received task information and then sends the associated resource quantity to the scheduling platform;
with reference to the above example, after receiving the task information a provided by the resource providing system, the generation platform may generate a corresponding resource amount according to the resource demand amount in the task information a, associate the generated resource with the received task information a, and then send the resource to the scheduling platform.
And S204, after receiving the resources sent by the generation platform, the scheduling platform inquires corresponding task information stored locally according to the associated task information and updates the inquired task information into a supplemented state.
With reference to the above example, after receiving the resource sent by the generation 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 by the scheduling platform can be used when the resource demander has a demand, so that the time interval from the generation of the demand to the acquisition of the resources by the resource demander is reduced, and the use demand of the resource demander is met. Meanwhile, the generation platform generates corresponding resources and sends the resources to the scheduling platform to maintain the number of the resources stored locally by the scheduling platform, so that the problem that the resources stored by the scheduling platform are gradually reduced due to the fact that the resources are distributed to all resource demanders for use is avoided, and further the continuous service for all the resource demanders can be guaranteed.
It should be noted that, although the above process is described as a scheme according to a scheduling flow generated by a resource requirement, the processes of the scheduling platform and the generating platform in actual runtime are independent from each other, that is, the scheduling platform does not affect the generation of the resource by the generating platform, and vice versa.
In the above S201, if it is determined that the prediction result is not greater than the preset duration threshold, that is, the requirement does not satisfy the preset rule, it indicates that the urgency of the resource requiring party to the resource requirement can be satisfied by generating and then sending the prediction result to the requiring party.
Therefore, under the condition that the prediction result is not larger than the preset time threshold, the resource providing system generates resource scheduling task information aiming at the current resource requirement and provides the task information to the generating platform;
the generation platform generates corresponding resource quantity according to the received task information, associates the generated resources with the received task information and then sends the associated resources to the scheduling platform;
the scheduling platform may forward the received resource to the resource demander according to the demander identifier in the task information.
In this embodiment, when it is determined that the resource does not satisfy the preset rule, the resource requirement of the demander is satisfied by generating the corresponding resource and sending the resource to the resource demander, that is, when the requirement of the resource demander can be fully satisfied, a method of obtaining the resource from the locally stored resource for replenishment is not necessary. Thus saving processing resources of the scheduling platform.
In addition, in this embodiment, under the condition that it is determined that the requirement does not satisfy the preset rule, the generation platform may also directly send the generated resource to the resource demander, so as to further save the processing resource of the scheduling platform, and improve the efficiency of the resource demander for acquiring the resource.
In order to more clearly illustrate a resource scheduling method shown in fig. 2 of this specification, the following describes a method executed by a scheduling platform from a single-side perspective:
the scheduling platform locally stores a preset number of resources, and for the scheduling platform, tasks to be executed are mainly as follows:
according to task information provided by a resource providing system, acquiring corresponding resource quantity from locally stored resources, and sending the acquired resources to a resource demand side; the task information at least comprises: the identification of the resource demander and the required resource quantity;
updating the received task information into a sent state according to the sending behavior;
after receiving the resources sent by the generation platform, inquiring corresponding task information stored locally according to the associated task information, and updating the inquired task information into a supplemented state; the resource sent by the generation platform is the corresponding resource generated by the generation platform according to the task information provided by the resource providing system.
The following describes a first embodiment of the present disclosure 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 the primary resource requirement, the resource demander is a, and the demand amount is X. The generation platform in the resource providing system adopts the periodic generation resources, and the following generation period is AM8: 10. the resource demander a of the current resource demand is very urgent to demand the resource, and needs to be in AM8: the resource is acquired before 05. The method of generating and sending the resource request to the resource demander first cannot meet the requirement of the resource demander on the resource.
Therefore, the resource providing platform generates the resource scheduling task information a according to the current resource requirement, and provides the task information to the scheduling platform and the generating platform.
After receiving the resource scheduling task information A, the scheduling platform can directly obtain X number of resources from the local and send the resources to the resource demander A, so that the resource demander A can quickly obtain the resources, and the urgency of the resource demander to the resource requirements is met. And simultaneously, locally recording the resource scheduling task information A, and updating the state of the resource scheduling task information A into a sent state.
Further, after receiving the resource scheduling task information a, the generation platform, at the arrival period AM8: and 10, generating the resources with the quantity of X according to the resource scheduling task information A, associating the resources with the quantity of X with the resource scheduling task information A, and then sending the resources to the scheduling platform.
After acquiring the X number of resources, the scheduling platform stores the X number of resources locally so as to maintain a certain number of locally stored resources, and updates the state of the resource scheduling task information a to a supplemented state.
Specific example 2:
the embodiment of the specification can also be applied to financial resource scenes, and in practical application, merchants can cooperate with payment mechanisms to open the function that users can swipe cards for consumption in shops of the merchants.
Taking the buyer card swiping consumption scene as an example: after the buyer consumes the card in the merchant shop, the settlement platform (generation platform) will settle in one period, usually in the next working day of the current day of the user consumption, and the funds consumed by the user can be sent to the account of the merchant after the settlement is completed. The merchant is used as a resource demand party, the time for obtaining funds is longer, and the fund pressure on the merchant is larger.
As shown in fig. 3, the money providing system may store a certain money in advance at a payment platform (a dispatching platform). After the user has spent swiping the card, the funds-providing system may further determine whether pre-stored funds need to be obtained from the payment platform. For example, the time of the user consumption is AM8:00, the consumption amount is 2 ten thousand yuan, the merchant account is B, the settlement platform settles the consumption amount the time the next day AM00:00, namely, the merchant can receive the funds consumed by the user the next day AM00: 00. However, for the merchant, if the funds consumed by the user cannot be received in time, the merchant faces a great fund pressure.
Accordingly, the preset rule may be set such that the difference between the settlement time and the time when the user consumes funds exceeds 3 hours. The following funding scheme is performed if a preset rule is satisfied.
The fund providing system can be a payment mechanism background server and sends fund scheduling task information consumed by a user to a settlement platform and a payment platform, the fund scheduling task information comprises consumption amount and account information of a merchant, the payment platform obtains corresponding amount of money, namely 2 ten thousand yuan from locally pre-stored fund, the obtained 2 ten thousand yuan is sent to the merchant according to the account information of the merchant, the merchant can quickly receive the amount of money consumed by the user, and meanwhile the payment platform locally records the expenditure 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 expense records.
Certainly, when the preset rule is determined not to be met, for example, the time consumed by the user is PM10:00, and the time of settlement by the computing platform is AM00:00 of the next day, the difference between the two is not more than 3 hours, and at this time, the settled funds can be sent to the account of the merchant directly after the settlement is completed.
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 resource for responding to the resource requirement is stored in the storage platform, and the storage function and the resource distribution function of the resource providing system are decoupled in the system, namely the resource for responding to the resource requirement is not stored in the dispatching platform but is stored in the storage platform, so that the two platforms only execute the functions of the two platforms respectively, and the storage and processing resources of the dispatching platform are liberated.
According to the system, the present specification further proposes another resource scheduling method, and referring to fig. 5, the method may include the following steps:
s501, after a resource providing system determines a resource requirement, and under the condition that the requirement is determined to meet a preset rule, resource scheduling task information is generated aiming at the resource requirement, and the task information is provided for a scheduling platform and a generating platform;
in this step, the step in S201 may be referred to for determining the manner and the overall process in which the requirement satisfies the preset rule, and is not described herein again. In addition, in the case that it is determined that the requirement does not satisfy the preset rule, the steps executed may refer to the following contents, which are not described in detail herein.
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 the following steps: the identification of the resource demander and the required resource quantity;
and the scheduling platform receives the task information, for example, receives the task information B, generates a resource allocation indication B according to the identifier of the resource demander in the task information B and the required resource quantity, and sends the resource allocation indication B to the storage platform.
S503, the storage platform acquires the corresponding resource quantity from the locally stored resources under the condition that the resource demand side is determined to have the right of directly acquiring the resources from the local according to the received resource allocation indication, and sends the acquired resources to the resource demand side; updating the received resource allocation indication into a sent state according to the sending behavior;
with reference to 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 local. If the resource allocation indication B has the authority, the corresponding quantity can be directly obtained locally according to the quantity of the resources in the indication B, the obtained resources are directly sent to the resource demander according to the resource demander identification in the indication B, and the resource allocation indication B is updated to be a sent state after the sending is finished.
In this step, after receiving the resource allocation indication B, the storage platform determines whether the resource demander has the right to directly obtain the resource from the local, which may be determined 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 a resource demander with an authority, further determine whether the identifier of the resource demander in the received resource allocation indication B is in the locally stored identifier library, determine that the resource demander in the resource allocation indication B has the authority if the identifier exists, and indicate that the resource demander does not have the authority if the identifier does not exist.
Of course, the scheduling platform may also perform judgment on whether the resource demander in the indication B has the right, generate a right identifier according to the judgment result, identify whether the resource demander has the right through the right identifier, add the right 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 demander in the resource allocation indication B has the right according to the right identifier.
In the case that the storage platform determines that the resource demander in the indication does not have the right to directly obtain the resource from the local, the steps performed by the storage platform can be referred to below, and will not be described in detail here.
S504, a generating platform generates corresponding resource quantity according to the received task information, associates the generated resources with the received task information and then sends the resources to a storage platform;
with the above example, after the generation platform generates the corresponding resource quantity according to the task information B, the generated resource is associated with the received task information and then directly sent to the storage platform.
And S505, after receiving the resources sent by the generation platform, the storage platform queries the corresponding resource allocation indication stored locally according to the associated task information, and updates the queried resource allocation indication to a supplemented state.
With reference to the above example, the storage platform stores the resource locally after receiving the resource, and may query the resource allocation indication B stored this time according to the task information B, and update the queried resource allocation indication B 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 storage platform in advance, and the resources stored by the storage platform can be used when the resource demander needs the resources, so that the time interval from the generation of the needs to the acquisition of the resources by the resource demander is reduced, and the use needs of the resource demander are met. Meanwhile, the generation platform generates corresponding resources and sends the resources to the storage platform to maintain the number of the resources stored locally by the storage platform, so that the resources stored by the storage platform are prevented from being gradually reduced due to the fact that the resources are distributed to all resource demanders for use, and further, the continuous service for all the resource demanders can be guaranteed.
In the above S501, if it is determined that the prediction result is not greater than the preset duration threshold, that is, the requirement does not satisfy the preset rule, it indicates that the urgency of the resource requiring party to the resource requirement can be satisfied by generating and then sending the prediction result to the requiring party.
Therefore, under the condition that the prediction result is not larger than the preset time threshold, the resource providing system can generate resource scheduling task information aiming at the current resource requirement and provide the task information to the generating platform; the task information at least comprises: the identification of the resource demander and the required resource quantity;
the generation platform can generate corresponding resource quantity according to the received task information, and sends the generated resources to the scheduling platform after being associated with the received task information;
the scheduling platform may forward the received resource to the resource demander according to the demander identifier in the task information.
In this embodiment, when it is determined that the resource does not satisfy the preset rule, the resource requirement of the demander is satisfied by generating the corresponding resource and sending the resource to the resource demander, that is, when the requirement of the resource demander can be fully satisfied, a method of obtaining the resource from the locally stored resource for replenishment is not necessary. Thus saving the processing resources of the scheduling platform and the storage platform. In addition, in this embodiment, under the condition that it is determined that the requirement does not satisfy the preset rule, the generation platform may also directly send the generated resource to the resource demander, so as to further save the processing resource of the scheduling platform, thereby improving the efficiency of the resource demander for acquiring the resource.
In the above S503, in a case that it is determined that the resource demander in the indication does not have the right to directly obtain the resource from the local, the corresponding resource quantity may be obtained from the locally stored resource according to the received resource allocation indication, and the obtained resource is associated with the received allocation indication and then sent to the scheduling platform; updating the received resource allocation indication into a sent state according to the sending behavior; after receiving the resource, the scheduling platform may forward the received resource to the resource demanding party according to the resource demanding party identifier in the allocation indication.
In this embodiment, under the condition that it is determined that the resource demander in the indication does not have the right to directly acquire the resource from the local, the generated resource may be sent to the scheduling platform to forward the acquired resource, thereby solving the problem that the resource demander may also acquire the required resource under the condition that the resource demander does not directly acquire the resource right from the storage platform.
In addition, in order to improve the efficiency of the resource demander for acquiring the resource, under the condition that the storage platform determines that the resource demander does not have the right to directly acquire the resource from the local, a temporary or permanent right can be opened for the resource demander so that the resource demander can directly acquire the resource from the local. And further, the problem that the time for a resource demand party to acquire the resource is too long due to the fact that the resource is forwarded through the scheduling platform can be avoided. Namely, the time for the resource demander to acquire the resource is further shortened. The temporary permission means that the permission can only be used for the resource transmission of this time.
Of course, if the step of determining whether the resource demander has the right according to the resource demander identifier is executed by the scheduling platform, the scheduling platform may directly open a temporary or permanent right for the resource demander while determining that the resource demander does not have the right, so that the storage platform may directly send the locally acquired resource to the resource demander.
By the method, under the condition that the resource demander is determined not to have the right of directly acquiring the resource from the local, the time for the resource demander to acquire the resource can be further shortened by opening the right.
In order to more clearly illustrate a resource scheduling method shown in fig. 5 in this specification, the following describes a method executed by a scheduling platform from a single-side perspective:
for the scheduling platform, the tasks to be executed 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 demander according to the resource allocation instruction and updates the received resource allocation instruction into 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: an identification of the resource demander, and the amount of resources required.
The resource allocation indication at least comprises: an identification of the resource demander, and the amount of resources required.
The following describes a second embodiment of the present disclosure with reference to a specific application scenario:
specific example 3:
as shown in fig. 6, in combination with the application scenario in embodiment 2, in order to avoid storing a large amount of funds in the payment platform for a long time, a third-party funds storage platform may be added to the funds providing system, and the funds are stored in the third-party funds storage platform.
After the user has spent swiping the card, the funds-providing system may further determine whether the pre-stored funds need to be retrieved from the third-party funds-storage platform. And under the condition of determining the need, the fund providing system sends fund scheduling task information consumed by the user to the settlement platform and the payment platform, wherein the fund scheduling task information comprises the consumption amount and account information of the merchant, and the payment platform generates a fund allocation instruction according to the fund scheduling task information and sends the fund allocation instruction to the third-party fund storage platform.
And the third-party fund storage platform can obtain corresponding fund quantity from the locally stored fund under the condition that the merchant is determined to have the right of directly obtaining the fund from the local according to the received fund distribution instruction, and send the obtained fund to the merchant, thereby meeting the fund return requirement of the merchant.
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, and instead of storing a large amount of funds in the original payment platform for fund payment, the third-party payment mechanism may avoid the problem that the payment platform itself needs to pay a large amount of interest due to the fact that a large amount of funds are stored locally in the payment platform for a long time. Meanwhile, the problems that the funds are wasted due to excessive storage or insufficient storage causes insufficient funds can be solved.
In addition, in this scenario, in the case that the third-party storage platform is a third-party payment mechanism, such as a bank, since the merchant does not necessarily have the authority to obtain funds at the third-party payment mechanism, for example, the merchant does not make an account at the third-party payment mechanism, in this case, the third-party payment mechanism may forward the obtained funds to the merchant through the payment platform.
In the application scenario, funds are sent to the merchant in advance through the third-party fund storage platform, and the actual requirements of the merchant on fund return are met. Meanwhile, after settlement is completed, the third-party fund storage platform receives the fund settled by the settlement platform and fills the amount of money originally paid out.
Therefore, according to the first scheme and the second scheme, in the configuration of different application scenarios, the urgency of the resource demand party for the resource demand can be met by storing a certain amount of resources in advance, and meanwhile, the corresponding amount of resources can be generated by using the generation platform, so that the quantity of the resources of the resource providing system is always maintained at a certain quantity, and the demand of the resource demand party can be continuously met.
As shown in fig. 7, corresponding to the resource scheduling method shown in fig. 2, the present specification further provides a resource scheduling apparatus, 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:
an obtaining module 710, configured to obtain, according to task information provided by the resource providing system, a corresponding resource amount from a locally stored resource; the task information at least comprises: the identification of the resource demander and the required resource quantity;
a sending module 720, configured to send the acquired resource to the resource demanding party;
the state updating module 730 is configured to update the received task information to the sent state according to the sending behavior of this time;
the state updating module 730 is further configured to, after receiving the resource sent by the generation platform, query locally stored corresponding task information according to the associated task information, and update the queried task information to a supplemented state; the resources sent by the generation platform are as follows: and the generation platform generates corresponding resources according to the task information provided by the resource providing system.
As shown in fig. 8, corresponding to the resource scheduling method shown in fig. 5, the present specification further provides another resource scheduling apparatus, which is applied to a scheduling platform in a resource providing system, where the resource providing system includes a generation platform and a storage platform; the resources are used for responding to the resource requirements 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 task information provided by the resource providing system; wherein the resource allocation indication at least comprises: the identification of the resource demander and the required resource quantity;
a sending module 820, configured to send the generated resource allocation indication to a storage platform, so that the storage platform sends a resource to a resource demanding party 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 supplemented state after receiving the resource sent by the generation platform.
The implementation processes of the functions and actions of the components in the above device are specifically described in the implementation processes of the corresponding steps in the above method, and are not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described apparatus embodiments are merely illustrative. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution in the specification. One of ordinary skill in the art can understand and implement it without inventive effort.
Embodiments of the present specification also provide a computer device, which at least includes a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the aforementioned method when executing the program. The method at least comprises the following steps: the method executed by the dispatching platform.
One scheduling platform 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:
according to task information provided by a resource providing system, acquiring corresponding resource quantity from locally stored resources, and sending the acquired resources to a resource demand side; the task information at least comprises: the identification of the resource demander and the required resource quantity;
updating the received task information into a sent state according to the sending behavior;
after receiving the resources sent by the generation platform, inquiring corresponding task information stored locally according to the associated task information, and updating the inquired task information into a supplemented state; the resource sent by the generation platform is the corresponding resource generated by the generation platform according to the task information provided by the resource providing system.
The other scheduling platform is a scheduling platform in the resource providing system, and the resource providing system also comprises a generating platform and a storage platform, and resources used for responding to resource requirements 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 sends resources to a resource demander according to the resource allocation instruction and updates the received resource allocation instruction to a sent state, wherein the storage platform updates the resource allocation instruction to a supplemented state after receiving the resources sent by a generation platform; the resource allocation indication at least comprises: an identification of the resource demander, and the amount of resources required.
Fig. 9 is a schematic diagram illustrating a more specific hardware structure of a computing device according to an embodiment of the present disclosure, where the computing device may include: a processor 1010, a memory 1020, an input/output interface 1030, a communication interface 1040, and a bus 1050. Wherein the processor 1010, memory 1020, input/output interface 1030, and communication interface 1040 are communicatively coupled to each other within the device via bus 1050.
The processor 1010 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solutions provided in the embodiments of the present disclosure.
The Memory 1020 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random access Memory), a static storage device, a dynamic storage device, or the like. The memory 1020 may store an operating system and other application programs, and when the technical solution provided by the embodiments of the present specification is implemented by software or firmware, the relevant program codes are stored in the memory 1020 and called to be executed by the processor 1010.
The input/output interface 1030 is used for connecting an input/output module to input and output information. The i/o module may be configured as a component in a device (not shown) or may be external to the device to provide a corresponding function. The input devices may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output devices may include a display, a speaker, a vibrator, an indicator light, etc.
The communication interface 1040 is used for connecting a communication module (not shown in the drawings) to implement communication interaction between the present apparatus and other apparatuses. The communication module can realize communication in a wired mode (such as USB, network cable and the like) and also can realize communication in a wireless mode (such as mobile network, WIFI, Bluetooth and the like).
Bus 1050 includes a path that transfers information between various components of the device, such as processor 1010, memory 1020, input/output interface 1030, and communication interface 1040.
It should be noted that although the above-mentioned device only shows the processor 1010, the memory 1020, the input/output interface 1030, the communication interface 1040 and the bus 1050, in a specific implementation, the device may also include other components necessary for normal operation. In addition, those skilled in the art will appreciate that the above-described apparatus may also include only those components necessary to implement the embodiments of the present description, and not necessarily all of the components shown in the figures.
Embodiments of the present specification also provide a computer-readable storage medium on which a computer program is stored, which when executed by a processor implements the foregoing method. The method at least comprises the following steps: the method executed by the dispatching platform.
One scheduling platform 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:
according to task information provided by a resource providing system, acquiring corresponding resource quantity from locally stored resources, and sending the acquired resources to a resource demand side; the task information at least comprises: the identification of the resource demander and the required resource quantity;
updating the received task information into a sent state according to the sending behavior;
after receiving the resources sent by the generation platform, inquiring corresponding task information stored locally according to the associated task information, and updating the inquired task information into a supplemented state; the resource sent by the generation platform is the corresponding resource generated by the generation platform according to the task information provided by the resource providing system.
The other scheduling platform is a scheduling platform in the resource providing system, and the resource providing system also comprises a generating platform and a storage platform, and resources used for responding to resource requirements 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 sends resources to a resource demander according to the resource allocation instruction and updates the received resource allocation instruction to a sent state, wherein the storage platform updates the resource allocation instruction to a supplemented state after receiving the resources sent by a generation platform; the resource allocation indication at least comprises: an identification 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 computer storage media 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 that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
From the above description of the embodiments, it is clear to those skilled in the art that the embodiments of the present disclosure can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the embodiments of the present specification may be essentially or partially implemented 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., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments of the present specification.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus embodiment, since it is substantially similar to the method embodiment, it is relatively simple to describe, and reference may be made to some descriptions of the method embodiment for relevant points. The above-described apparatus embodiments are merely illustrative, and the modules described as separate components may or may not be physically separate, and the functions of the modules may be implemented in one or more software and/or hardware when implementing the embodiments of the present disclosure. And part or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The foregoing is only a specific embodiment of the embodiments of the present disclosure, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the embodiments of the present disclosure, and these modifications and decorations should also be regarded as the protection scope of the embodiments of the present disclosure.

Claims (16)

1. A resource scheduling method is applied to a resource providing system comprising a scheduling platform and a generating platform, wherein a preset number of resources are locally stored in the scheduling platform; the method comprises the following steps:
after the resource providing system determines a resource requirement, under the condition that the requirement is determined to meet a preset rule, resource scheduling task information is generated aiming at the resource requirement, and the task information is provided for a scheduling platform and a generating platform; the task information at least comprises: the identification of the resource demander and the required resource quantity;
the scheduling platform acquires the corresponding resource quantity from the locally stored resources according to the received task information and sends the acquired resources to the resource demand side; updating the received task information into a sent state according to the sending behavior;
the generation platform generates corresponding resource quantity according to the received task information, associates the generated resources with the received task information and then sends the associated resources to the scheduling platform;
and the scheduling platform inquires corresponding task information stored locally according to the associated task information after receiving the resources sent by the generation platform, and updates the inquired task information into a supplemented state.
2. The method of claim 1, the determining that the demand satisfies a preset rule comprising:
predicting the time length of the generation platform for generating the resources required by the resource demand;
and if the prediction result is greater than the preset time threshold, determining that the requirement meets the preset rule.
3. The method of claim 2, further comprising:
if the prediction result is not greater 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 task information at least comprises: the identification of the resource demander and the required resource quantity;
the generation platform generates corresponding resource quantity according to the received task information, associates the generated resources with the received task information and then sends the associated resources to the scheduling platform;
and the scheduling platform forwards the received resources to a resource demand side.
4. The method of claim 2, the generation platform periodically generating resources; the prediction generation platform generates the duration of the resource required by the resource demand; the method comprises the following steps:
and predicting the time length of the generation platform for generating the resources required by the resource demand according to the period of the generation platform for generating the resources.
5. A resource scheduling method is applied to a scheduling platform in a resource providing system, the scheduling platform locally stores a preset number of resources, and the resource providing system also comprises a generating platform; the method comprises the following steps:
according to task information provided by a resource providing system, acquiring corresponding resource quantity from locally stored resources, and sending the acquired resources to a resource demand side; the task information at least comprises: the identification of the resource demander and the required resource quantity;
updating the received task information into a sent state according to the sending behavior;
after receiving the resources sent by the generation platform, inquiring corresponding task information stored locally according to the received task information associated with the resources, and updating the inquired task information into a supplemented state; the resources sent by the generation platform are as follows: and the generation platform generates the resources according to the task information provided by the resource providing system.
6. A 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 resources required by the resources and storing the resources in the storage platform; the method comprises the following steps:
after the resource providing system determines a resource requirement, under the condition that the requirement is determined to meet a preset rule, resource scheduling task information is generated aiming at the resource requirement, and the task information is provided for 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 the following steps: the identification of the resource demander and the required resource quantity;
the storage platform acquires the corresponding resource quantity from the locally stored resources under the condition that the resource demand side is determined to have the right of directly acquiring the resources from the local according to the received resource allocation indication, and sends the acquired resources to the resource demand side; updating the received resource allocation indication into a sent state according to the sending behavior;
the generating platform generates corresponding resource quantity according to the received task information, associates the generated resources with the received task information and then sends the associated resources to the storage platform;
and the storage platform queries the corresponding resource allocation indication stored locally according to the associated task information after receiving the resource sent by the generation platform, and updates the queried resource allocation indication to a supplemented state.
7. The method of claim 6, the determining that the demand satisfies a preset rule comprising:
predicting the time length of the generation platform for generating the resources required by the resource demand;
and if the prediction result is greater than the preset time threshold, determining that the requirement meets the preset rule.
8. The method of claim 7, further comprising:
if the prediction result is not greater 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 task information at least comprises: the identification of the resource demander and the required resource quantity;
the generation platform generates corresponding resource quantity according to the received task information, associates the generated resources with the received task information and then sends the associated resources to the scheduling platform;
and the scheduling platform forwards the received resources to a resource demand side.
9. The method of claim 7, the generation platform periodically generating resources; the time length of the resource required by the resource demand generated by the prediction generation platform comprises the following steps:
and predicting the time length of the generation platform for generating the resources required by the resource demand according to the period of the generation platform for generating the resources.
10. The method of claim 6, wherein the storage platform, according to the received resource allocation indication, determines that the resource demander has the right to directly obtain the resource from the local, comprising:
and the storage platform acquires the identifier of the resource demander in the resource allocation indication, and determines that the resource demander has the authority of directly acquiring the resources from the local according to the identifier of the resource demander.
11. The method of claim 6, further comprising in the resource allocation indication: an authority identifier; the authority identification is used for identifying whether the resource demander has the authority of directly acquiring the resource from the storage platform;
the storage platform determines that the resource demander has the right to directly acquire resources from local according to the received resource allocation indication, and the method comprises the following steps:
and the storage platform acquires the authority identifier in the resource allocation indication, and determines that the resource demander has the authority to directly acquire the resource from the local according to the authority identifier.
12. The method of claim 6, further comprising:
the storage platform acquires the corresponding resource quantity from the locally stored resources according to the received resource allocation instruction under the condition that the resource demander is determined not to have the authority of directly acquiring the resources from the local, and transmits the acquired resources to the scheduling platform after associating the acquired resources with the received allocation instruction; updating the received resource allocation indication into a sent state according to the sending behavior;
and the scheduling platform forwards the received resources to a resource demand side.
13. A resource scheduling method is applied to a scheduling platform in a resource providing system, and the resource providing system also comprises a generating platform and a storage platform; the resources are used for responding to the resource requirements and are stored in the storage platform; the method 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 sends resources to a resource demander according to the resource allocation instruction and updates the received resource allocation instruction into 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: an identification of the resource demander, and the amount of resources required.
14. A resource scheduling device is applied to a scheduling platform in a resource providing system, the scheduling platform locally stores a preset number of resources, and the resource providing system also comprises a generating platform; the device comprises:
the acquisition module is used for acquiring the corresponding resource quantity from the locally stored resources according to the task information provided by the resource providing system; the task information at least comprises: the identification of the resource demander and the required resource quantity;
the sending module is used for sending the acquired resources to the resource demand side;
the state updating module is used for updating the received task information into a sent state according to the 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 resources sent by the generating platform, and updating the inquired task information into a supplemented state; the resources sent by the generation platform are as follows: and the generation platform generates corresponding resources according to the task information provided by the resource providing system.
15. A resource scheduling device is applied to a scheduling platform in a resource providing system, wherein the resource providing system comprises a generation platform and a storage platform; the resources are used for responding to the resource requirements and are stored in the storage platform; the device comprises:
the allocation indication generating module is used for generating a resource allocation indication according to the task information provided by the resource providing system; wherein the resource allocation indication at least comprises: the identification of the resource demander and the required resource quantity;
and the sending module is used for sending the generated resource allocation indication to a storage platform so that the storage platform sends the resource to the resource demander according to the resource allocation indication and updates the received resource allocation indication to a sent state, wherein the storage platform updates the resource allocation indication to a supplemented state after receiving the resource sent by the generation platform.
16. 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 5 or 13 when executing the program.
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 true CN111553699A (en) 2020-08-18
CN111553699B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112764676A (en) * 2020-12-31 2021-05-07 北京三快在线科技有限公司 Resource allocation system and method
CN113298336A (en) * 2020-08-21 2021-08-24 阿里巴巴集团控股有限公司 Resource scheduling information determining method and device
CN116360990A (en) * 2023-03-27 2023-06-30 合芯科技有限公司 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

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107506912A (en) * 2017-08-11 2017-12-22 广州睿临网络科技有限公司 A kind of medical resource dispatching platform
CN108009731A (en) * 2017-12-08 2018-05-08 成都该呀科技有限公司 Resource allocation methods and device
CN108460507A (en) * 2017-02-22 2018-08-28 阿里巴巴集团控股有限公司 order processing method, transaction system and server
CN108510337A (en) * 2017-02-24 2018-09-07 阿里巴巴集团控股有限公司 Order generation, inventory's update method, client and server
CN108876497A (en) * 2017-05-11 2018-11-23 腾讯科技(深圳)有限公司 Resource transfers method, apparatus and third-party server
CN109389257A (en) * 2017-08-02 2019-02-26 上海策赢网络科技有限公司 A kind of fund distribution method and device
CN109639599A (en) * 2018-12-26 2019-04-16 天翼电子商务有限公司 Network resource scheduling method and system, storage medium and controlling equipment
CN111008064A (en) * 2019-11-29 2020-04-14 北京首都在线科技股份有限公司 Virtual machine resource scheduling method and device, and cluster deployment method and device

Patent Citations (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
CN108510337A (en) * 2017-02-24 2018-09-07 阿里巴巴集团控股有限公司 Order generation, inventory's update method, client and server
CN108876497A (en) * 2017-05-11 2018-11-23 腾讯科技(深圳)有限公司 Resource transfers method, apparatus and third-party server
CN109389257A (en) * 2017-08-02 2019-02-26 上海策赢网络科技有限公司 A kind of fund distribution method and device
CN107506912A (en) * 2017-08-11 2017-12-22 广州睿临网络科技有限公司 A kind of medical resource dispatching platform
CN108009731A (en) * 2017-12-08 2018-05-08 成都该呀科技有限公司 Resource allocation methods and device
CN109639599A (en) * 2018-12-26 2019-04-16 天翼电子商务有限公司 Network resource scheduling method and system, storage medium and controlling equipment
CN111008064A (en) * 2019-11-29 2020-04-14 北京首都在线科技股份有限公司 Virtual machine resource scheduling method and device, and cluster deployment method and device

Cited By (6)

* 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
CN112764676A (en) * 2020-12-31 2021-05-07 北京三快在线科技有限公司 Resource allocation system and method
CN112764676B (en) * 2020-12-31 2022-11-04 北京三快在线科技有限公司 Resource allocation system and method
CN116360990A (en) * 2023-03-27 2023-06-30 合芯科技有限公司 Distributed computing task rationality pre-judging method, system, equipment and storage medium
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

Also Published As

Publication number Publication date
CN111553699B (en) 2023-05-16

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
CN102541661B (en) Realize the method and apparatus of wait on address synchronization interface
CN109005214B (en) Resource scheduling method and device
CN109359118B (en) Data writing method and device
CN110008018A (en) A kind of batch tasks processing method, device and equipment
AU2018310475B2 (en) Article evaluation method and apparatus
CN111221643A (en) Task processing method and task processing device
CN108292162A (en) Software definition fifo buffer for multi-thread access
CN112862293A (en) Resource allocation method, device, storage medium and electronic equipment
CN108153795A (en) A kind of data processing method, system and the device of electronics red packet
CN111445331A (en) Transaction matching method and device
CN112149863A (en) Method, apparatus, and computer storage medium for determining resource consumption
CN111913807B (en) Event processing method, system and device based on multiple storage areas
CN110599343B (en) Contract data processing method, related device and medium
CN110187987B (en) Method and apparatus for processing requests
CN109214902B (en) User account asset clearing method and device
CN112064287A (en) Water use control method and device for washing machine, electronic equipment and storage medium
CN112258300B (en) Auditing method and device for order generation
CN110148044A (en) A kind of buffer threshold setting method and device for book keeping operation
CN109272395A (en) Message handling system, method and device
CN110009484A (en) Business data processing method, equipment, server and computer readable storage medium
CN112764676B (en) Resource allocation system and method
CN114722278B (en) Information pushing method and device, storage medium and electronic equipment
US20220366425A1 (en) Service management system for processing a request

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