CN112306677A - Resource scheduling method and device - Google Patents

Resource scheduling method and device Download PDF

Info

Publication number
CN112306677A
CN112306677A CN202011124630.1A CN202011124630A CN112306677A CN 112306677 A CN112306677 A CN 112306677A CN 202011124630 A CN202011124630 A CN 202011124630A CN 112306677 A CN112306677 A CN 112306677A
Authority
CN
China
Prior art keywords
user
resource
amount
scheduled
task
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011124630.1A
Other languages
Chinese (zh)
Inventor
徐杨
汤庆奎
黄亚武
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online 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 Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN202011124630.1A priority Critical patent/CN112306677A/en
Publication of CN112306677A publication Critical patent/CN112306677A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present specification discloses a resource scheduling method and device, wherein a resource allocation platform can determine a corresponding amount of scheduling resources according to an amount of resources to be scheduled of a user when it is monitored that the user executes an assigned task, and allocate the corresponding amount of scheduling resources to the user. And then updating user data according to the assigned task executed by the user, judging whether the resource allocation amount of the user is adjusted according to the updated user data, determining a resource increment to be adjusted when the adjustment is determined to be needed, determining a resource increment to be scheduled and a resource allocation increment according to the resource increment, updating the resource amount to be scheduled of the user according to the resource increment to be scheduled, allocating the determined resource allocation increment to the user, and updating the resource allocation amount of the user. After the user executes the designated task, the initiative of the user for executing the designated task is mobilized in a mode of allocating resources to the user in real time based on the amount of the resources to be scheduled of the user, so that the activity of the user is improved, and the resource allocation is more flexible.

Description

Resource scheduling method and device
Technical Field
The present application relates to the field of internet technologies, and in particular, to a resource scheduling method and apparatus.
Background
Currently, when a resource allocation platform allocates resources to a user, the resource allocation platform may generally divide a resource allocation level of the user according to user data of the user, where the resource allocation level may be used to reflect user requirements or user repayment capability. When the user needs to increase the resource allocation amount, the resource allocation platform can determine the resource allocation level of the user again according to the updated user data by improving the user data and the like so as to adjust the resource allocation amount of the user.
Disclosure of Invention
The embodiment of the specification provides a resource scheduling method and a resource scheduling device, which are used for partially solving the problems that in the prior art, after user data is perfected, the resource allocation amount cannot be increased in real time, and the user experience is poor and the activity is reduced due to long waiting time for increasing.
The embodiment of the specification adopts the following technical scheme:
a resource scheduling method provided in this specification includes:
when monitoring that a user executes an appointed task, determining a scheduling resource amount corresponding to the appointed task according to the resource amount to be scheduled of the user;
distributing the determined scheduling resource amount to the user, and updating the resource distribution amount of the user and the resource amount to be scheduled;
updating the user data of the user according to the specified task executed by the user, and judging whether to adjust the resource allocation amount of the user according to the updated user data;
if so, determining a resource increment to be scheduled and a resource allocation increment according to the resource increment, updating the resource amount to be scheduled of the user according to the resource increment to be scheduled, allocating the determined resource allocation increment to the user, and updating the resource allocation amount of the user.
Optionally, determining the amount of resources to be scheduled of the user specifically includes:
when a service request sent by the user is received, determining the resource allocation level of the user according to the user data of the user;
determining the initial resource amount of the user according to the determined resource allocation levels and the preset corresponding relationship between each resource allocation level and the resource allocation amount;
and determining the amount of resources to be scheduled and the resource allocation amount of the user according to the initial resource amount of the user, and allocating the determined resource allocation amount to the user.
Optionally, determining the amount of scheduling resources corresponding to the designated task according to the amount of resources to be scheduled of the user, specifically including:
determining the task resource amount corresponding to the specified task;
when the resource quantity to be scheduled is larger than the task resource quantity, determining the scheduling resource quantity corresponding to the specified task as the task resource quantity;
and when the resource quantity to be scheduled is less than the task resource quantity, determining the scheduling resource quantity corresponding to the specified task as the resource quantity to be scheduled.
Optionally, the designated task executed by the user is multiple;
updating the resource amount to be scheduled of the user specifically comprises:
sequentially aiming at each appointed task executed by the user, determining the scheduling resource amount corresponding to the appointed task;
and updating the resource amount to be scheduled of the user according to the determined scheduling resource amount corresponding to the specified task.
Optionally, judging whether to adjust the resource allocation amount of the user according to the updated user data, specifically including:
re-determining the resource allocation level of the user according to the updated user data;
and when the resource allocation level of the user is changed, determining to adjust the resource allocation amount of the user.
Optionally, determining the resource increment specifically includes:
and determining the difference value of the resource allocation amount corresponding to the resource allocation grade change of the user according to the preset corresponding relation between each resource allocation grade and the resource allocation amount, and taking the difference value as the resource increment.
Optionally, the designated task executed by the user is multiple;
allocating the determined scheduling resource amount to the user, and updating the resource amount to be scheduled of the user, specifically including:
sequentially freezing scheduling resource quantity corresponding to each specified task executed by the user from the to-be-scheduled resource quantity of the user;
and when the user is monitored to carry out the getting operation of the appointed task, updating the resource amount to be scheduled of the user according to the scheduling resource amount corresponding to the appointed task.
Optionally, the method further comprises:
and when the user does not check the picking operation aiming at the execution of the specified task, continuously freezing the scheduling resource amount corresponding to the specified task from the resource amount to be scheduled of the user.
Optionally, determining the amount of scheduling resources corresponding to the designated task according to the amount of resources to be scheduled of the user, specifically including:
sequentially determining the task resource amount corresponding to each specified task executed by the user;
determining the sum of the frozen scheduling resource quantities in the resource quantities to be scheduled as a frozen resource quantity;
determining the amount of the remaining resources to be scheduled according to the amount of the resources to be scheduled and the determined amount of the frozen resources;
when the amount of the remaining resources to be scheduled is larger than the amount of the task resources, determining the amount of the scheduling resources corresponding to the specified task as the amount of the task resources;
and when the quantity of the resources to be scheduled is smaller than the quantity of the task resources, determining the quantity of the scheduling resources corresponding to the specified task as the quantity of the resources to be scheduled.
The present specification provides a resource scheduling apparatus, including:
the monitoring module is used for determining the scheduling resource amount corresponding to the specified task according to the resource amount to be scheduled of the user when the fact that the user executes the specified task is monitored;
the first allocation module allocates the determined scheduling resource amount to the user and updates the resource allocation amount of the user and the resource amount to be scheduled;
and the second allocation module is used for updating the user data of the user according to the specified task executed by the user, judging whether to adjust the resource allocation quantity of the user according to the updated user data, if so, determining a resource increment to be scheduled and a resource allocation increment according to the resource increment, updating the resource quantity to be scheduled of the user according to the resource increment to be scheduled, allocating the determined resource allocation increment to the user, and updating the resource allocation quantity of the user.
The present specification provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the above-described resource scheduling method.
The present specification provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the processor implements the resource scheduling method.
The embodiment of the specification adopts at least one technical scheme which can achieve the following beneficial effects:
in this specification, when it is monitored that a user executes an assigned task, the resource allocation platform may determine, according to the amount of resources to be scheduled of the user, the amount of scheduled resources corresponding to the assigned task, and allocate the amount of scheduled resources to the user. And then, updating the user data of the user according to the assigned task executed by the user, judging whether to adjust the resource allocation quantity of the user according to the updated user data, determining the resource increment to be adjusted when the resource allocation quantity of the user needs to be adjusted, determining the resource increment to be scheduled and the resource allocation increment according to the resource increment, updating the resource quantity to be scheduled of the user according to the resource increment to be scheduled, allocating the determined resource allocation increment to the user, and updating the resource allocation quantity of the user. After the user executes the designated task, the initiative of the user for executing the designated task is mobilized in a mode of allocating resources to the user in real time based on the amount of the resources to be scheduled of the user, so that the activity of the user is improved, and the resource allocation is more flexible.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a flowchart illustrating a resource scheduling method according to an embodiment of the present disclosure;
fig. 2 is a schematic flow chart of a credit line scheduling method provided in an embodiment of the present specification;
FIG. 3 is a schematic diagram of an interaction between a user and a financial platform provided by an embodiment of the present specification;
fig. 4 is a schematic structural diagram of a resource scheduling apparatus according to an embodiment of the present disclosure;
fig. 5 is a schematic view of an electronic device implementing a resource scheduling method according to an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the present disclosure more apparent, the technical solutions of the present disclosure will be clearly and completely described below with reference to the specific embodiments of the present disclosure and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person skilled in the art without making any inventive step based on the embodiments in the description belong to the protection scope of the present application.
Currently, when performing resource allocation, a resource allocation platform generally determines an initial resource allocation level of a user according to initial user data of the user, determines an initial resource amount of the user according to the initial resource allocation level of the user and a preset corresponding relationship between each resource allocation level and the resource allocation amount, and allocates the initial resource amount as the resource allocation amount to the user. Wherein, the higher the resource allocation level, the more the resource allocation amount.
When the user needs to increase the resource allocation amount, the user data can be supplemented by actively filling in user information, so that the resource allocation platform can update the user data of the user according to the supplemented user data and can re-divide the resource allocation level of the user according to the updated user data. When it is determined that the resource allocation level of the user is increased, the resource allocation amount allocated to the user may be increased.
However, because the computational resources of the resource allocation platform are limited, the resource allocation platform often cannot improve the resource allocation amount of the user in real time after receiving the user data supplemented by the user, and needs to process the user data in batches according to the time sequence supplemented by the user. Therefore, there is a delay in the manner of increasing the resource allocation amount by supplementing the user data, resulting in poor user experience. Moreover, after the user supplements the user data, if the resource allocation platform determines that the resource allocation level of the user is not improved according to the supplemented user data, the resource allocation amount of the user cannot be improved, and the user experience is further influenced.
Therefore, the present specification provides a resource scheduling method, after determining an initial resource amount, a part of the initial resource amount may be allocated to the user, and the remaining part may be used as a resource amount to be scheduled. And after the user executes actions such as user data supplementation and the like, the resource allocation amount of the user can be increased in real time according to the resource amount to be scheduled. And the resource allocation platform can re-determine the resource allocation level of the user according to the user data supplemented by the user, so as to further improve the resource allocation amount allocated to the user.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating a resource scheduling method provided in an embodiment of the present specification, which may specifically include the following steps:
s100: when it is monitored that a user executes an appointed task, determining the scheduling resource amount corresponding to the appointed task according to the resource amount to be scheduled of the user.
The resource scheduling method provided in this specification may be specifically executed by a resource allocation platform, where the resource allocation platform may be composed of a single server, or may be a system composed of multiple servers, for example: distributed servers, etc., which are not limited in this specification and can be set as desired.
In one or more embodiments of the present specification, the resource scheduling may specifically be scheduling of storage space resources such as a network disk and a cloud disk, and may also be scheduling of award amount. For convenience of description, the resource scheduling process is described as an example of scheduling the network disk storage space, and then the scheduling process of the network disk storage space may be executed by a network disk platform providing the network disk storage space.
In one or more embodiments of the present specification, when a user first opens a network disk storage space through a network disk platform, the network disk platform may receive a service opening request sent by the user, and determine a network disk allocation level of the user through a pre-trained level division model according to user data of the user. And then, determining the initial network disk space amount of the user according to the determined network disk distribution level and the preset corresponding relation between each network disk distribution level and the network disk storage space amount. And finally, determining the amount of the network disk space to be scheduled and the amount of the network disk space of the user according to the initial amount of the network disk space of the user and a preset allocation rule, and allocating the determined amount of the network disk space to the user. The user data comprises user information and behavior data of the user in the network disk platform, wherein the user information can be pre-filled by the user, stored in the network disk platform or filled in real time by the user in the process of opening. The preset allocation rule and the preset corresponding relationship between each network disk allocation grade and the network disk storage space amount can be set as required, and the description does not limit this.
For example, assume that there are A, B, C levels of the mesh disk allocation levels, where the amount of mesh disk storage space corresponding to level a is 10T, the amount of mesh disk storage space corresponding to level B is 1T, and the amount of mesh disk storage space corresponding to level C is 1G. The preset allocation rule is that 5% of the preset allocation rule is allocated to the network disk space amount to be scheduled, and 95% of the preset allocation rule is allocated to the network disk space amount. If the network disk platform determines that the network disk allocation level of the user is the level B according to the user data of the user when the user opens the network disk storage space for the first time, the corresponding initial network disk space amount of the user is 1T. According to the allocation rule, the amount of the network disk space to be scheduled of the user can be determined to be 0.05T, and the network disk storage space allocated to the user is determined to be 0.95T.
In order to encourage users to use the network disk for storage, improve the user information of the users in the network disk platform, increase the activity of the users in the network disk platform and the like, the network disk platform can be preset with a plurality of reward rules, and when the users use the network disk for storage, supplement and improve the user information or the activity in the network disk platform is higher, the network disk storage space of the users can be improved.
Specifically, when the network disk platform monitors that the user executes the designated task, the network disk platform may determine the task network disk space amount of the executed designated task according to a preset corresponding relationship between each designated task and the task network disk space amount. Then, in order to avoid allocating the network disk storage space to the user in excess, the network disk platform may further determine the amount of the network disk space to be scheduled of the user, determine, when the amount of the network disk space to be scheduled is greater than the amount of the network disk space of the task, that the amount of the scheduling network disk space corresponding to the specified task is the amount of the network disk space of the task, and determine, when the amount of the network disk space to be scheduled is less than the amount of the network disk space of the task, that the amount of the scheduling resource corresponding to the specified task is the amount of the network disk space to be scheduled. The designated task may be a task in which the user uses a network disk to store, the user completes user information in the network disk platform and the user signs in the network disk platform, and the like, and may be specifically set as required, which is not limited in this specification.
For example: assuming that the amount of the network disk space to be scheduled of the user is 0.5G, the amount of the task network disk space determined according to the specified task executed by the user is 1G, and at this time, the amount of the network disk space to be scheduled of the user is smaller than the amount of the task network disk space corresponding to the specified task, that is, the amount of the network disk space to be scheduled of the user is not enough to complete the allocation of the amount of the network disk space of the task, so that the amount of the network disk space to be scheduled corresponding to the specified task at this time can be determined to be 0.5G, that is, the network disk space of 0.5G can be allocated to the user.
S102: and allocating the determined scheduling resource amount to the user, and updating the resource allocation amount of the user and the resource amount to be scheduled.
In one or more embodiments of the present disclosure, after determining the amount of the scheduled network disk space corresponding to the designated task executed by the user through step S100, in order to improve user experience and encourage the user to execute the designated task, the network disk platform may allocate the amount of the scheduled network disk space corresponding to the designated task executed by the user to the user as an award in real time.
Specifically, the network disk platform may allocate the determined scheduling network disk space amount to the user in real time, update the to-be-scheduled network disk space amount of the user according to the scheduling network disk space amount, and update the network disk space amount of the user according to the scheduling network disk space amount.
S104: updating the user data of the user according to the specified task executed by the user, judging whether to adjust the resource allocation amount of the user according to the updated user data, and executing the step S106 if the resource allocation amount of the user is adjusted.
In one or more embodiments of the present disclosure, due to the limited computing resources of the network disk platform, when a large number of users simultaneously execute a specified task, it is impossible to determine whether the amount of network disk space of the users needs to be adjusted according to the specified task executed by the users in real time.
In order to improve user experience, in this specification, after a user performs a specified task, the network disk platform may allocate, in real time, a network disk resource amount to the user for scheduling according to a network disk space amount to be scheduled of the user, and use the network disk resource amount as a reward to prompt the user to complete another specified task. And the user data can be updated asynchronously subsequently, and whether the amount of the network disk space of the user needs to be adjusted is judged.
Specifically, the network disk platform may update the user data of the user according to the designated task executed by the user. And then, re-determining the network disk distribution level of the user according to the updated user data. When it is determined that the user's disk allocation level changes, it may be determined that the amount of disk space allocated to the user needs to be adjusted.
Wherein, when the user data of the user is updated according to the specified task executed by the user. Because the user data includes user information of the user and behavior data of the user in the network disk platform, the more perfect the user information is, the larger the amount of the allocated network disk space is, the higher the activity and the more the storage times of the user in the network disk platform are, which means that the demand of the user for using the network disk storage is higher, and the larger the amount of the allocated network disk space is. When the specified task executed by the user is to complete the user information, the user information in the user data can be updated according to the user information completed by the user. When the designated task executed by the user is to use the network disk for storage, the behavior data of the user in the user data can be updated according to the storage operation of the user.
S106: determining a resource increment, determining a resource increment to be scheduled and a resource allocation increment according to the resource increment, updating the resource amount to be scheduled of the user according to the resource increment to be scheduled, allocating the determined resource allocation increment to the user, and updating the resource allocation amount of the user.
In one or more embodiments of the present disclosure, after determining that the amount of the network disk space allocated to the user needs to be adjusted through step S104, the network disk platform may allocate more network disk space to the user according to the change of the network disk allocation level where the user is located.
Specifically, after the network disk allocation level of the user is re-determined in step S104, the network disk platform may determine the network disk space amount after the user level changes according to the preset corresponding relationship between each network disk allocation level and the network disk storage space amount, and determine the network disk space increment according to the difference between the network disk space amounts before and after the user network disk allocation level changes. And then, the network disk platform can determine the network disk space increment to be scheduled and the network disk space allocation increment according to the determined network disk space increment and a preset allocation rule. And finally, updating the amount of the network disk space to be scheduled of the user according to the increment of the network disk space to be scheduled, allocating the determined increment of the network disk space allocation to the user, and updating the amount of the network disk space allocated to the user.
Continuing with the example of A, B, C levels of the above-mentioned mesh allocation levels, when it is determined that the mesh allocation level of the user is upgraded from the C level to the B level, the mesh space increment of the user may be determined to be 1023G. And then according to a preset allocation rule, determining that the space increment of the network disk to be scheduled is as follows: 1023 × 5% ═ 51.15G, and the net disk space allocation increment is 1023 × 95% ═ 971.85G. Finally, 51.15G is allocated to the amount of network disk space to be scheduled for the user, and 971.85G is allocated to the user. Of course, the allocation rule for allocating according to the net disk space increment may be the same as or different from the allocation rule for allocating according to the initial resource amount, and may be specifically set as required.
Based on the resource scheduling method shown in fig. 1, when it is monitored that a user executes an assigned task, the resource allocation platform may determine the amount of scheduling resources corresponding to the assigned task according to the amount of resources to be scheduled of the user, and allocate the amount of scheduling resources to the user. And then, updating the user data of the user according to the assigned task executed by the user, judging whether to adjust the resource allocation quantity of the user according to the updated user data, determining the resource increment to be adjusted when the resource allocation quantity of the user needs to be adjusted, determining the resource increment to be scheduled and the resource allocation increment according to the resource increment, updating the resource quantity to be scheduled of the user according to the resource increment to be scheduled, allocating the determined resource allocation increment to the user, and updating the resource allocation quantity of the user. After the user executes the designated task, the initiative of the user for executing the designated task is mobilized in a mode of allocating resources to the user in real time based on the amount of the resources to be scheduled of the user, so that the activity of the user is improved, and the resource allocation is more flexible.
After the amount of the to-be-scheduled network disk space of the user is updated through the step S106, the network disk platform may continue to monitor the user behavior, and when it is monitored that the user executes the designated task, the amount of the scheduled network disk space corresponding to the designated task may be continuously determined according to the updated amount of the to-be-scheduled network disk space, and the amount of the scheduled network disk space is allocated to the user, so as to form a cycle of network disk space allocation, and prompt the user to use the network disk for storage.
In step S100 in this specification, if the user can also execute a plurality of designated tasks in sequence, then for each designated task executed by the user in sequence, after the network disk platform determines the amount of the scheduling network disk space corresponding to the designated task, the network disk platform may allocate the amount of the scheduling network disk space corresponding to the designated task to the user, and update the amount of the network disk space to be scheduled of the user according to the amount of the scheduling network disk space. That is, the amount of scheduled disk space allocated to the user is subtracted from the amount of disk space to be scheduled for the user.
Of course, in this specification, in order to make the user more clearly determine the corresponding relationship between the designated task executed by the user and the increased amount of the network disk space, that is, which designated task the user executes, and how much the amount of the network disk space is increased, after determining the amount of the scheduling network disk space corresponding to the designated task, the network disk platform may freeze the amount of the scheduling network disk space of the designated task from the amount of the network disk space to be scheduled of the user, and then, when it is monitored that the user performs the picking operation for the designated task, the network disk platform allocates the user.
Specifically, the network disk platform may sequentially determine, for each designated task executed by the user, a scheduling network disk space amount corresponding to the designated task, and freeze the scheduling network disk space amount corresponding to the designated task from the to-be-scheduled network disk space amount of the user. And then, when it is monitored that the user performs the pickup operation for the specified task, the frozen scheduling network disk space amount is allocated to the user, and the network disk space amount to be scheduled of the user is updated according to the scheduling network disk space amount. And when the pickup operation of the user for executing the specified task is not monitored, continuously freezing the scheduling network disk space amount corresponding to the specified task from the network disk space amount to be scheduled of the user.
When determining the scheduling resource amount corresponding to the specified task according to the network disk space amount to be scheduled of the user, the network disk platform may first determine the task network disk space amount corresponding to the specified task, and determine the sum of the frozen scheduling network disk space amounts in the resource amount to be scheduled of the user as a frozen network disk space amount, where the frozen resource amount represents the network disk space amount that the user has executed the specified task but has not received. And then, determining the remaining network disk space amount to be scheduled according to the network disk space amount to be scheduled of the user and the determined freezing network disk space amount. When the remaining amount of the network disk space to be scheduled is greater than the task network disk space amount, determining that the amount of the scheduling network disk space corresponding to the specified task is the task network disk space amount, and when the remaining amount of the network disk space to be scheduled is less than the task network disk space amount, determining that the amount of the scheduling network disk space corresponding to the specified task is the remaining amount of the network disk space to be scheduled.
And when the picking operation of the user for the specified task is not monitored in the freezing time, the unfreezing operation can be carried out on the freezing network disk space amount, and the unfrozen network disk space amount is still the network disk space amount to be scheduled of the user.
In addition, in this specification, it is determined that the network disk allocation level of the user is not increased in step S104 based on the updated user data, and therefore the amount of network disk space of the user is not adjusted. However, the user executes a specified task, which indicates that the user has a need for increasing the storage space of the network disk, and in order to further adapt to the user need, the rating strategy for the user can be changed, the rating standard for the user is reduced, and the user can easily achieve the increase of the storage space amount of the network disk. For example: assuming that the original rating policy is that the usage rate of the network disk storage space of the user reaches 90%, determining that the network disk allocation level of the user is a level B, when it is determined that the amount of the network disk storage space of the user is not adjusted according to the updated user data, the rating standard of the user may be lowered, and when the usage rate of the network disk storage space of the user reaches 85%, determining that the network disk allocation level of the user is a level B.
In another embodiment in this specification, the resource scheduling method may also be applied to a resource scheduling process in which an internet financial platform grants credit to a user. When the credit line of the user is scheduled, the scheduled resource is the credit line, and the corresponding resource distribution platform is a financial platform.
Currently, with the development of internet finance, a user can transact credit business directly through an internet finance platform. When a user transacts credit business in the financial platform, in order to avoid risks, the financial platform may determine a risk level of the user according to user data (including at least one of occupation, income, credit investigation report and other user information filled by the user and behavior operation of the user in the financial platform) of the user, and determine an initial credit line allocatable to the user according to the risk level of the user and a preset corresponding relationship between each risk level and the credit line.
And then, when the user needs to promote the credit line, the promotion line can be obtained through rewarding means such as perfecting user information and the like provided by the financial platform. However, since the computing resources of the financial platform are limited, after the user completes the user information, the financial platform often cannot give the rewarded promotion amount in real time, so that the user experience is poor, and when the user does not adjust the credit line of the user according to the completed user data, the user experience is further influenced.
Fig. 2 is a schematic flow chart of the method for scheduling credit line provided in this specification, and the following detailed description, with reference to the accompanying drawings, describes in detail the specific steps when the method for scheduling resource provided in this specification is applied to scheduling credit line of a user:
s200: when it is monitored that a user executes an appointed task, determining a scheduling limit corresponding to the appointed task according to a to-be-scheduled limit of the user.
In one or more embodiments of the present disclosure, in order to encourage the user to perform the specified task, the financial platform may determine, in real time according to the to-be-scheduled credit of the user, a scheduling credit corresponding to the specified task to allocate to the user after monitoring that the user performs the specified task.
Specifically, when the financial platform monitors that the user executes the designated task, the financial platform may determine the task amount available after executing the designated task according to the preset corresponding relationship between each designated task and the task amount. Then, in order to avoid allocating credit line to the user in excess, the financial platform may further determine a to-be-scheduled line of the user, determine the scheduling line corresponding to the designated task as the task line when the to-be-scheduled line is greater than the task line, and determine the scheduling line corresponding to the designated task as the to-be-scheduled line when the to-be-scheduled line is less than the task line. The designated task may be a task that the user purchases a credit product in the financial platform, the user completes user information in the financial platform, and the like, and may be specifically set as required, which is not limited in this specification.
Further, when determining the to-be-scheduled quota of the user, if the user transacts credit business through the financial platform for the first time, the financial platform may determine the quota allocation level of the user through a pre-trained level division model according to the user data of the user when receiving the business request of the user. And then, determining the initial credit line of the user according to the determined line distribution level and the corresponding relation between the preset line distribution levels and the credit line. And finally, determining the quota to be scheduled of the user and the credit line allocated to the user according to the initial credit line of the user and a preset allocation rule. The user data comprises information such as user personal information and behavior data of the user in the financial platform. The preset allocation rule and the corresponding relationship between the preset allocation levels of the various lines and the credit line can be set according to needs, and the description does not limit the corresponding relationship.
For example: suppose that the credit line preset in the financial platform has D, E, F three levels, the credit line is 1 ten thousand yuan, 2 ten thousand yuan and 10 ten thousand yuan, the preset allocation rule is 5% to be allocated to the line to be scheduled, and 95% to the user's credit line. When a user transacts credit business through the financial platform for the first time, the financial platform can determine that the user is in the grade D according to the user data of the user, then determine that the credit line of the user is 1 ten thousand yuan, then determine that 500 yuan in the initial credit line is allocated to the line to be scheduled according to the preset allocation rule, and allocate 9500 yuan to the user.
Then, when it is monitored that the user executes the specified task, if the task quota corresponding to the specified task executed by the user is 600 yuan, but the task quota is only 500 yuan in the to-be-scheduled quota of the user and is not enough to complete the allocation of the task quota, the scheduling quota corresponding to the specified task is determined to be 500 yuan, and then 500 yuan is allocated to the user.
S202: and distributing the determined scheduling quota to the user, and updating the credit line of the user and the quota to be scheduled.
In one or more embodiments of the present specification, in order to encourage the user to perform the specified task, the financial platform may allocate the scheduling amount to the user in real time after determining the scheduling amount of the specified task performed by the user, so as to improve the user experience.
Specifically, the financial platform can distribute the determined scheduling quota to the user in real time, update the to-be-scheduled quota of the user according to the scheduling quota distributed to the user, and update the credit line distributed to the user according to the scheduling quota.
S204: updating the user data of the user according to the specified task executed by the user, judging whether to adjust the credit line of the user according to the updated user data, and executing the step S206 if the credit line is adjusted.
In one or more embodiments of the present specification, the financial platform allocates the scheduling credit to the user in real time from the credit to be scheduled of the user after the user performs the specified task. And the financial platform can asynchronously determine whether the credit line of the user needs to be adjusted according to the updated user data after the user executes the specified task.
Specifically, the financial platform may first update the user data of the user based on a specified task performed by the user. And then, re-determining the quota allocation level of the user according to the updated user data. When the credit limit distribution level of the user is determined to be changed, the credit limit distributed to the user can be determined to be required to be adjusted.
Wherein, when the user data of the user is updated according to the specified task executed by the user. Because the user data contains the personal information of the user and the behavior data of the user in the financial platform, the more perfect the user information is, the larger the allocated credit line is, the higher the activity of the user in the financial platform is, the more the transaction times are, and the larger the allocated credit line is. When the specified task executed by the user is to complete the user information, the personal information of the user in the user data can be updated according to the user information completed by the user. When the designated task executed by the user is to complete the transaction in the financial platform, the behavior data of the user in the user data can be updated according to the transaction behavior of the user in the financial platform.
S206: determining the amount increment, determining the amount increment to be scheduled and the amount distribution increment according to the amount increment, updating the amount to be scheduled of the user according to the amount increment to be scheduled, distributing the determined amount distribution increment to the user, and updating the credit line of the user.
In one or more embodiments of the present disclosure, when the financial platform determines that the credit line of the user needs to be adjusted, the financial platform may determine a change of the credit line and allocate more credit lines to the user.
Specifically, after the user ' S line allocation level is re-determined in step S204, the financial platform may determine the credit line after the user ' S level changes according to the preset corresponding relationship between each line allocation level and the credit line, and determine the line increment according to the difference between the credit lines before and after the user ' S line allocation level changes. And then, the financial platform can determine the quota increment to be scheduled and the quota allocation increment according to the quota increment corresponding to the determined user grade change and a preset allocation rule. And finally, updating the limit to be scheduled of the user according to the limit increment to be scheduled, allocating the determined limit allocation increment to the user, and updating the credit line allocated to the user.
Continuing with the example of D, E, F, when the user's credit line allocation level is increased from D to E, the user's credit line increment is determined to be 1 ten thousand yuan. And then according to a preset distribution rule, determining the increment of the quota to be scheduled to be 500 yuan and the quota distribution increment to be 9500 yuan. Finally, 500 yuan is allocated to the to-be-scheduled quota of the user, the to-be-scheduled quota has 500 yuan, 9500 yuan is allocated to the user, and the credit line allocated to the user is 19500 yuan. Of course, the allocation rule for allocating according to the amount increment may be the same as or different from the allocation rule for allocating according to the initial credit line, and may be specifically set as required.
Based on the credit line scheduling method shown in fig. 2, when it is monitored that the user executes the designated task, the financial platform may determine the scheduling line corresponding to the designated task according to the to-be-scheduled line of the user. And then, distributing the scheduling quota to the user, and updating the credit line of the user and the quota to be scheduled. And then, updating the user data of the user according to the specified task executed by the user, and judging whether to adjust the credit line of the user according to the updated user data. And finally, when the adjustment is determined to be needed, determining the quota increment to be scheduled and the quota allocation increment according to the determined quota increment, updating the quota to be scheduled of the user according to the quota increment to be scheduled, allocating the determined quota allocation increment to the user, and updating the credit line allocated to the user. After the user executes the designated task, the initiative of the user for executing the designated task is mobilized in a mode of allocating resources to the user in real time based on the amount of the resources to be scheduled of the user, so that the activity of the user is improved, and the resource allocation is more flexible.
In this specification, after the to-be-scheduled credit of the user is updated through the step S206, the network disk platform may continue to monitor the user behavior, and when it is monitored that the user executes the specified task, the network disk platform may continue to determine the scheduling credit corresponding to the specified task according to the updated to-be-scheduled credit, and allocate the scheduling credit to the user. The scheduling limit is distributed to the user from the limit to be scheduled in real time to promote the user credit limit, so that the user is encouraged to execute the specified task, after the user executes the specified task, the user data is updated, whether the user credit limit is adjusted or not is determined again, and the adjusted limit to be scheduled of the user is updated, so that the user is promoted to execute the specified task again.
In step S200 of this specification, if the user can also execute a plurality of designated tasks, then for each designated task executed by the user in sequence, after the financial platform determines the scheduling limit corresponding to the designated task, the financial platform can allocate the scheduling limit corresponding to the designated task to the user, and update the to-be-scheduled limit of the user according to the scheduling limit. That is, the scheduling quota allocated to the user to perform the specified task is subtracted from the quota to be scheduled of the user.
Of course, in this specification, in order to make the user more clearly determine the corresponding relationship between the designated task executed by the user and the increased credit line, that is, which designated task the user executes and how much credit line is increased, the financial platform may freeze the scheduling line of the designated task from the to-be-scheduled line of the user after determining the scheduling line corresponding to the designated task, and then, when it is monitored that the user performs the pickup operation for the designated task, allocate the scheduling line to the user.
Specifically, the financial platform may determine, for each designated task executed by the user in sequence, a scheduling quota corresponding to the designated task, and freeze the scheduling quota corresponding to the designated task from the to-be-scheduled quota of the user. And then, when the user is monitored to carry out the pickup operation of the specified task, the frozen scheduling quota is distributed to the user, and the to-be-scheduled quota of the user is updated according to the scheduling quota. And when the user does not check the pickup operation aiming at the execution of the specified task, continuously freezing the scheduling quota corresponding to the specified task from the to-be-scheduled quota of the user.
When determining the scheduling resource amount corresponding to the specified task according to the to-be-scheduled quota of the user, the financial platform may first determine a task quota corresponding to the specified task, and determine the sum of frozen scheduling quotas in the to-be-scheduled quota of the user as a frozen quota, where the frozen quota represents a quota that the user has executed the specified task but has not received. And then, determining the remaining quota to be scheduled according to the quota to be scheduled of the user and the determined freezing quota. When the remaining limit to be scheduled is larger than the task limit, determining the scheduling limit corresponding to the specified task as the task limit, and when the remaining limit to be scheduled is smaller than the task limit, determining the scheduling limit corresponding to the specified task as the remaining limit to be scheduled.
And when the acquisition operation of the user for the specified task is not monitored in the freezing time, the freezing limit can be unfrozen, and the unfrozen limit is still the limit to be scheduled of the user.
In this specification, when it is determined that the credit line allocation level of the subscriber is not increased in step S204 based on the updated subscriber data, the credit line of the subscriber is not adjusted. However, the user executes the specified task, which indicates that the user has the requirement of increasing the credit line, and in order to further adapt to the user requirement, the rating strategy of the user can be changed, the rating standard of the user is reduced, and the user can easily realize the increase of the credit line. For example: if the original rating strategy is that the transaction frequency of the user in the financial platform reaches 10 times, the quota allocation level of the user is determined to be a B level, when the credit line of the user is determined not to be adjusted according to the updated user data, the rating standard of the user can be reduced, and when the transaction frequency of the user in the financial platform reaches 6 times, the network disk allocation level of the user can be determined to be the B level.
Of course, in step S204 of this specification, it may also be determined that the credit line allocation level of the user is decreased according to the updated user data, and at this time, the credit line of the corresponding user may also be decreased, and then the financial platform may also determine the amount of decrease corresponding to the level decrease according to the updated user data, and deduct from the to-be-scheduled credit line of the user and the credit line allocated to the user according to the amount of decrease.
In summary, fig. 3 is a schematic diagram of information interaction between a user and a financial platform in this specification, where the financial platform may include one or more systems composed of servers, and the specific number is not limited and may be set as required.
The method comprises the following specific steps:
a0: and receiving a service request sent by the user.
A2: according to the user data, determining the quota allocation level of the user, determining the initial credit line of the user according to the quota allocation level of the user, and determining the quota to be scheduled of the user and the credit line allocated to the user according to the initial credit line.
A4: and returning the distributed credit line to the user.
A6: when it is monitored that the user executes the specified task, the scheduling quota corresponding to the specified task is determined according to the to-be-scheduled quota of the user.
A8: and returning the promoted scheduling quota to the user.
A10: updating the user data of the user according to the specified task executed by the user, judging whether to adjust the credit line of the user according to the updated user data, if so, determining the line increment, and determining the line increment to be scheduled and the line distribution increment according to the line increment.
A12: returning the promoted credit allocation increment to the subscriber.
The detailed scheduling process of the financial platform for the credit line of the user has been described in detail in the above steps S200 to S206, and this description is not repeated herein.
Based on the resource scheduling method shown in fig. 1, an embodiment of the present specification further provides a schematic structural diagram of a resource scheduling apparatus, as shown in fig. 4.
Fig. 4 is a schematic structural diagram of a resource scheduling apparatus provided in an embodiment of the present specification, where the apparatus includes:
the monitoring module 300 is configured to determine a scheduling resource amount corresponding to an assigned task according to a resource amount to be scheduled of a user when it is monitored that the user executes the assigned task;
the first allocation module 302 is configured to allocate the determined amount of the scheduling resource to the user, and update the amount of the resource allocation of the user and the amount of the resource to be scheduled;
the second allocating module 304 updates the user data of the user according to the designated task executed by the user, and determines whether to adjust the resource allocation amount of the user according to the updated user data, if so, determines a resource increment to be scheduled and a resource allocation increment according to the resource increment, updates the resource amount to be scheduled of the user according to the resource increment to be scheduled, and allocates the determined resource allocation increment to the user to update the resource allocation amount of the user.
Optionally, the monitoring module 300 is specifically configured to, when receiving a service request sent by the user, determine a resource allocation level of the user according to user data of the user, determine an initial resource amount of the user according to the determined resource allocation level and a preset corresponding relationship between each resource allocation level and the resource allocation amount, determine a resource amount to be scheduled and a resource allocation amount of the user according to the initial resource amount of the user, and allocate the determined resource allocation amount to the user.
Optionally, the monitoring module 300 is specifically configured to determine a task resource amount corresponding to the specified task, determine, when the resource amount to be scheduled is greater than the task resource amount, that a scheduling resource amount corresponding to the specified task is the task resource amount, and determine, when the resource amount to be scheduled is less than the task resource amount, that the scheduling resource amount corresponding to the specified task is the resource amount to be scheduled.
Optionally, the number of the designated tasks executed by the user is multiple, and the first allocation module 302 is specifically configured to, for each designated task executed by the user in turn, determine a scheduling resource amount corresponding to the designated task, and update the resource amount to be scheduled of the user according to the determined scheduling resource amount corresponding to the designated task.
Optionally, the second allocating module 304 is specifically configured to re-determine the resource allocation level of the user according to the updated user data, and determine to adjust the resource allocation amount of the user when the resource allocation level of the user changes.
Optionally, the second allocating module 304 is specifically configured to determine, according to a preset corresponding relationship between each resource allocation level and a resource allocation amount, a difference value of the resource allocation amount corresponding to the resource allocation level change of the user as a resource increment.
Optionally, the number of the designated tasks executed by the user is multiple, and the first allocation module 302 is specifically configured to, for each designated task executed by the user in sequence, freeze a scheduling resource amount corresponding to the designated task from the resource amount to be scheduled of the user, and when it is monitored that the user performs a pickup operation on the designated task, update the resource amount to be scheduled of the user according to the scheduling resource amount corresponding to the designated task.
Optionally, the first allocating module 302 is further configured to, when the pickup operation of the user for executing the specified task is not monitored, continue to freeze the scheduling resource amount corresponding to the specified task from the resource amounts to be scheduled of the user.
Optionally, the monitoring module 300 is specifically configured to, sequentially for each designated task executed by the user, determine a task resource amount corresponding to the designated task, determine a sum of frozen scheduling resource amounts in the resource amounts to be scheduled as a frozen resource amount, determine a remaining resource amount to be scheduled according to the resource amount to be scheduled and the determined frozen resource amount, determine, when the remaining resource amount to be scheduled is greater than the task resource amount, the scheduling resource amount corresponding to the designated task as the task resource amount, and when the remaining resource amount to be scheduled is less than the task resource amount, determine, as the remaining resource amount to be scheduled, the scheduling resource amount corresponding to the designated task.
The present specification further provides a computer-readable storage medium, where a computer program is stored, and the computer program may be used to execute the resource scheduling method provided in fig. 1.
Based on the resource scheduling method shown in fig. 1, an embodiment of the present specification further provides a schematic structural diagram of the electronic device shown in fig. 5. As shown in fig. 5, at the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, but may also include hardware required for other services. The processor reads a corresponding computer program from the non-volatile memory into the memory and then runs the computer program to implement the resource scheduling method shown in fig. 1.
Of course, besides the software implementation, the present specification does not exclude other implementations, such as logic devices or a combination of software and hardware, and the like, that is, the execution subject of the following processing flow is not limited to each logic unit, and may be hardware or logic devices.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Hardware Description Language), traffic, pl (core universal Programming Language), HDCal (jhdware Description Language), lang, Lola, HDL, laspam, hardward Description Language (vhr Description Language), vhal (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
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. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functions of the various elements may be implemented in the same one or more software and/or hardware implementations of the present description.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
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.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
This description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage 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 system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present specification, and is not intended to limit the present specification. Various modifications and alterations to this description will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification should be included in the scope of the claims of the present specification.

Claims (12)

1. A method for scheduling resources, comprising:
when monitoring that a user executes an appointed task, determining a scheduling resource amount corresponding to the appointed task according to the resource amount to be scheduled of the user;
distributing the determined scheduling resource amount to the user, and updating the resource distribution amount of the user and the resource amount to be scheduled;
updating the user data of the user according to the specified task executed by the user, and judging whether to adjust the resource allocation amount of the user according to the updated user data;
if so, determining a resource increment to be scheduled and a resource allocation increment according to the resource increment, updating the resource amount to be scheduled of the user according to the resource increment to be scheduled, allocating the determined resource allocation increment to the user, and updating the resource allocation amount of the user.
2. The method of claim 1, wherein determining the amount of resources to be scheduled for the user specifically comprises:
when a service request sent by the user is received, determining the resource allocation level of the user according to the user data of the user;
determining the initial resource amount of the user according to the determined resource allocation levels and the preset corresponding relationship between each resource allocation level and the resource allocation amount;
and determining the amount of resources to be scheduled and the resource allocation amount of the user according to the initial resource amount of the user, and allocating the determined resource allocation amount to the user.
3. The method according to claim 1, wherein determining the amount of scheduling resources corresponding to the designated task according to the amount of resources to be scheduled of the user specifically comprises:
determining the task resource amount corresponding to the specified task;
when the resource quantity to be scheduled is larger than the task resource quantity, determining the scheduling resource quantity corresponding to the specified task as the task resource quantity;
and when the resource quantity to be scheduled is less than the task resource quantity, determining the scheduling resource quantity corresponding to the specified task as the resource quantity to be scheduled.
4. The method of claim 3, wherein the designated task performed by the user is plural;
updating the resource amount to be scheduled of the user specifically comprises:
sequentially aiming at each appointed task executed by the user, determining the scheduling resource amount corresponding to the appointed task;
and updating the resource amount to be scheduled of the user according to the determined scheduling resource amount corresponding to the specified task.
5. The method of claim 2, wherein determining whether to adjust the resource allocation amount of the user according to the updated user data comprises:
re-determining the resource allocation level of the user according to the updated user data;
and when the resource allocation level of the user is changed, determining to adjust the resource allocation amount of the user.
6. The method of claim 5, wherein determining the resource increment specifically comprises:
and determining the difference value of the resource allocation amount corresponding to the resource allocation grade change of the user according to the preset corresponding relation between each resource allocation grade and the resource allocation amount, and taking the difference value as the resource increment.
7. The method of claim 1, wherein the designated task performed by the user is plural;
allocating the determined scheduling resource amount to the user, and updating the resource amount to be scheduled of the user, specifically including:
sequentially freezing scheduling resource quantity corresponding to each specified task executed by the user from the to-be-scheduled resource quantity of the user;
and when the user is monitored to carry out the getting operation of the appointed task, updating the resource amount to be scheduled of the user according to the scheduling resource amount corresponding to the appointed task.
8. The method of claim 7, wherein the method further comprises:
and when the user does not check the picking operation aiming at the execution of the specified task, continuously freezing the scheduling resource amount corresponding to the specified task from the resource amount to be scheduled of the user.
9. The method according to claim 3 or 7, wherein determining the amount of scheduling resources corresponding to the designated task according to the amount of resources to be scheduled of the user specifically comprises:
sequentially determining the task resource amount corresponding to each specified task executed by the user;
determining the sum of the frozen scheduling resource quantities in the resource quantities to be scheduled as a frozen resource quantity;
determining the amount of the remaining resources to be scheduled according to the amount of the resources to be scheduled and the determined amount of the frozen resources;
when the amount of the remaining resources to be scheduled is larger than the amount of the task resources, determining the amount of the scheduling resources corresponding to the specified task as the amount of the task resources;
and when the quantity of the resources to be scheduled is smaller than the quantity of the task resources, determining the quantity of the scheduling resources corresponding to the specified task as the quantity of the resources to be scheduled.
10. A resource scheduling apparatus, comprising:
the monitoring module is used for determining the scheduling resource amount corresponding to the specified task according to the resource amount to be scheduled of the user when the fact that the user executes the specified task is monitored;
the first allocation module allocates the determined scheduling resource amount to the user and updates the resource allocation amount of the user and the resource amount to be scheduled;
and the second allocation module is used for updating the user data of the user according to the specified task executed by the user, judging whether to adjust the resource allocation quantity of the user according to the updated user data, if so, determining a resource increment to be scheduled and a resource allocation increment according to the resource increment, updating the resource quantity to be scheduled of the user according to the resource increment to be scheduled, allocating the determined resource allocation increment to the user, and updating the resource allocation quantity of the user.
11. A computer-readable storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method of any of the preceding claims 1-9.
12. An electronic 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 of claims 1-9 when executing the program.
CN202011124630.1A 2020-10-20 2020-10-20 Resource scheduling method and device Pending CN112306677A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011124630.1A CN112306677A (en) 2020-10-20 2020-10-20 Resource scheduling method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011124630.1A CN112306677A (en) 2020-10-20 2020-10-20 Resource scheduling method and device

Publications (1)

Publication Number Publication Date
CN112306677A true CN112306677A (en) 2021-02-02

Family

ID=74328017

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011124630.1A Pending CN112306677A (en) 2020-10-20 2020-10-20 Resource scheduling method and device

Country Status (1)

Country Link
CN (1) CN112306677A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115964184A (en) * 2023-03-16 2023-04-14 北京大学 Method, apparatus and storage medium for determining computing power resources

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110093596A1 (en) * 2009-10-15 2011-04-21 International Business Machines Corporation Allocation of central application resources based on social agreements
CN106487715A (en) * 2015-08-25 2017-03-08 百度在线网络技术(北京)有限公司 A kind of method and apparatus for for user resource allocation
CN108268605A (en) * 2017-12-27 2018-07-10 北京洪泰同创信息技术有限公司 A kind of communal space method for managing resource and system
CN111191920A (en) * 2019-12-27 2020-05-22 西安中科天塔科技股份有限公司 Large-scale ground resource scheduling method and device
CN111722928A (en) * 2020-06-12 2020-09-29 北京字节跳动网络技术有限公司 Resource scheduling method and device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110093596A1 (en) * 2009-10-15 2011-04-21 International Business Machines Corporation Allocation of central application resources based on social agreements
CN106487715A (en) * 2015-08-25 2017-03-08 百度在线网络技术(北京)有限公司 A kind of method and apparatus for for user resource allocation
CN108268605A (en) * 2017-12-27 2018-07-10 北京洪泰同创信息技术有限公司 A kind of communal space method for managing resource and system
CN111191920A (en) * 2019-12-27 2020-05-22 西安中科天塔科技股份有限公司 Large-scale ground resource scheduling method and device
CN111722928A (en) * 2020-06-12 2020-09-29 北京字节跳动网络技术有限公司 Resource scheduling method and device, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115964184A (en) * 2023-03-16 2023-04-14 北京大学 Method, apparatus and storage medium for determining computing power resources
CN115964184B (en) * 2023-03-16 2023-06-13 北京大学 Method, device and storage medium for determining computing power resource

Similar Documents

Publication Publication Date Title
CN110020912B (en) Page display method, device and equipment
CN109002357B (en) Resource allocation method and device and Internet of things system
CN110851285B (en) Resource multiplexing method, device and equipment based on GPU virtualization
CN106897144B (en) Resource allocation method and device
CN108845876B (en) Service distribution method and device
CN107578338B (en) Service publishing method, device and equipment
CN110427258B (en) Resource scheduling control method and device based on cloud platform
CN109947643B (en) A/B test-based experimental scheme configuration method, device and equipment
CN109005214B (en) Resource scheduling method and device
CN112862293A (en) Resource allocation method, device, storage medium and electronic equipment
CN107026897B (en) Data processing method, device and system
CN116225669B (en) Task execution method and device, storage medium and electronic equipment
CN112306677A (en) Resource scheduling method and device
CN112764676B (en) Resource allocation system and method
CN112839093A (en) Information display method and device, storage medium and electronic equipment
CN115049434A (en) Information pushing method and device
CN115049433A (en) Model training method and device, storage medium and electronic equipment
CN113010551B (en) Resource caching method and device
CN111462348B (en) Resource allocation method, device and equipment based on sign-in behavior
CN113468398A (en) Book level determination method, computing device and computer storage medium
CN112579292A (en) Resource allocation method and device
CN110209746B (en) Data processing method and device for data warehouse
CN117348999B (en) Service execution system and service execution method
CN111538576B (en) Data resource processing method, device, equipment and storage medium
CN111090516B (en) Request distribution method, device and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination