Method, related device and computer program product for configuring task resources
By obtaining resource usage requests from AI platform users, generating and comparing cost consumption, and configuring resources if the conditions are met, solving the problem of low resource allocation efficiency of AI platform and achieving more efficient resource management and user experience.
Patent Information
- Application Number
- CN202410345960.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-25
- Publication Date
- 2025-04-01
- Estimated Expiration
- 2044-03-25
AI Technical Summary
On the AI platform, how to allocate computing resources to users more effectively and in a quality manner to reduce the difficulty and consumption of users, especially to avoid resource waste or lack when resource configuration is inappropriate.
By responding to the user's resource usage request, a resource configuration list is obtained, and a first cost consumption is generated and a second cost consumption is predicted based on the list. If the difference between the two is less than the difference threshold, the first cost consumption is compared with the available cost of the user. If it is less than or equal to the available cost, the requested resource configuration is configured locally for the user.
It realizes more effective resource allocation, avoids waste or lack of resources, improves the efficiency and quality of resource management, and simplifies user operation processes.
Smart Images

Figure CN118170542B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, specifically to the field of artificial intelligence technology such as cloud computing, cloud services and data monitoring, and in particular to methods, devices, electronic devices, computer-readable storage media and computer program products for configuring task resources. Background Art
[0002] With the rapid development of artificial intelligence (AI) technology, all industries are undergoing digital and intelligent transformation, and AI platforms are increasingly being used by enterprises. Based on different core modules and application scenarios, AI platforms can also be called deep learning platforms, AI model training and inference platforms, machine learning platforms, AI platforms, etc. These platforms can provide AI application solutions from business to product, data to model, model to service, end-to-end, and online.
[0003] Users (for example, algorithm engineers) can perform data set management, model training, evaluation, and prediction on these platforms. This approach enables users to utilize the computing power and computing resources of the platform for a variety of development needs, and simplifies the tedious operations of data preprocessing and management, model training, management, and deployment, speeds up algorithm development efficiency, and improves product iteration cycles. Therefore, how to allocate AI platform computing resources to users more effectively and with quality, and reduce the difficulty and consumption of users, is worthy of attention and urgent need. Summary of the invention
[0004] The embodiments of the present disclosure provide a method, an apparatus, an electronic device, a computer-readable storage medium, and a computer program product for configuring task resources.
[0005] In a first aspect, an embodiment of the present disclosure proposes a method for configuring task resources, comprising: in response to receiving a resource usage request sent by a user, obtaining a resource configuration list included in the resource usage request, wherein the resource usage request is used to request resource configuration locally for executing a target task; generating a first cost consumption based on the resource configuration list, and predicting a second cost consumption based on a difference between a current progress value and a target progress value of the target task; in response to a difference between the first cost consumption and the second cost consumption being less than a difference threshold, comparing the first cost consumption with the available cost in the user account of the user, and generating a comparison result; in response to the comparison result indicating that the first cost consumption is less than or equal to the available cost, locally configuring the resource configuration requested by the resource configuration list for the user.
[0006] In a second aspect, an embodiment of the present disclosure proposes a device for configuring task resources, comprising: a configuration list acquisition unit, configured to, in response to receiving a resource usage request sent by a user, acquire a resource configuration list included in the resource usage request, wherein the resource usage request is used to request resource configuration locally for executing a target task; a cost consumption determination unit, configured to generate a first cost consumption based on the resource configuration list, and predict a second cost consumption based on a difference between a current progress value and a target progress value of the target task; a cost consumption first comparison unit, configured to, in response to a difference between the first cost consumption and the second cost consumption being less than a difference threshold, compare the first cost consumption with the available cost in the user account of the user, and generate a comparison result; a resource configuration first configuration unit, configured to, in response to a comparison result indicating that the first cost consumption is less than or equal to the available cost, locally configure the resource configuration requested by the resource configuration list for the user.
[0007] In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor, when executing, can implement the method for configuring task resources as described in any implementation method in the first aspect.
[0008] In a fourth aspect, an embodiment of the present disclosure provides a non-transitory computer-readable storage medium storing computer instructions, which are used to enable a computer to implement the method for configuring task resources as described in any implementation method of the first aspect when executed.
[0009] In a fifth aspect, an embodiment of the present disclosure provides a computer program product comprising a computer program, which, when executed by a processor, can implement the method for configuring task resources as described in any implementation manner in the first aspect.
[0010] The method, apparatus, electronic device, computer-readable storage medium, and computer program product for configuring task resources provided by the embodiments of the present disclosure respond upon receiving a resource usage request sent by a user, and obtain a resource configuration list included in the resource usage request, wherein the resource usage request is used to request resource configuration locally for executing a target task; then, a first cost consumption is generated based on the resource configuration list, and a second cost consumption is predicted based on a difference between a current progress value and a target progress value of the target task; next, in response to a difference between the first cost consumption and the second cost consumption being less than a difference threshold, the first cost consumption is compared with the available cost in the user account of the user, and a comparison result is generated; finally, in response to the comparison result indicating that the first cost consumption is less than or equal to the available cost, the resource configuration requested by the resource configuration list is configured locally for the user.
[0011] When a user requests to issue and configure resource configuration, the present disclosure can estimate the resources required by the user based on the progress of the task to assist in decision-making and determine the resource configuration actually required. In this way, resource configuration can be issued and configured more effectively, avoiding resource waste or resource loss due to inappropriate resource configuration, and improving resource management efficiency and management quality.
[0012] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Other features, objects and advantages of the present disclosure will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0014] Figure 1 is an exemplary system architecture in which the present disclosure may be applied;
[0015] Figure 2 A flowchart of a method for configuring task resources provided by an embodiment of the present disclosure;
[0016] Figure 3 A flowchart of a process for updating a resource configuration list provided by an embodiment of the present disclosure;
[0017] Figure 4 A flowchart of a process for updating available costs provided in an embodiment of the present disclosure;
[0018] Figure 5 A flowchart of a method for configuring task resources in an application scenario provided by an embodiment of the present disclosure;
[0019] Figure 6 A structural block diagram of a device for configuring task resources provided by an embodiment of the present disclosure;
[0020] Figure 7 A schematic diagram of the structure of an electronic device suitable for executing a method for configuring task resources provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0021] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description. It should be noted that the embodiments in the present disclosure and the features in the embodiments may be combined with each other without conflict.
[0022] In addition, in the technical solutions involved in this disclosure, the acquisition, storage, use, processing, transportation, provision and disclosure of user personal information involved (such as the resource configuration list and available costs in the user account involved in the subsequent disclosure) are in compliance with the relevant laws and regulations and do not violate public order and good morals.
[0023] Figure 1 An exemplary system architecture 100 is shown to which embodiments of the method, apparatus, electronic device, and computer-readable storage medium for configuring task resources of the present disclosure can be applied.
[0024] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0025] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various applications for realizing information communication between the terminal devices 101, 102, 103 and server 105 can be installed, such as cloud computing service applications, computing power rental applications, instant messaging applications, etc.
[0026] Terminal devices 101, 102, 103 and server 105 can be hardware or software. When terminal devices 101, 102, 103 are hardware, they can be various electronic devices with display screens, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, etc.; when terminal devices 101, 102, 103 are software, they can be installed in the electronic devices listed above, which can be implemented as multiple software or software modules, or as a single software or software module, and no specific limitation is made here. When server 105 is hardware, it can be implemented as a distributed server cluster composed of multiple servers, or as a single server; when the server is software, it can be implemented as multiple software or software modules, or as a single software or software module, and no specific limitation is made here.
[0027] The server 105 can provide various services through various built-in applications. Taking a cloud computing service application that allows borrowing and renting cloud computing instances to provide remote computing services as an example, the server 105 can achieve the following effects when running the cloud computing service application: First, in response to receiving a resource use request sent by a user from the terminal devices 101, 102, and 103 through the network 104, the server 105 obtains a resource configuration list included in the resource use request, wherein the resource use request is used to request resource configuration locally for executing the target task; then, the server 105 generates a first cost consumption based on the resource configuration list, and predicts a second cost consumption based on the difference between the current progress value and the target progress value of the target task; then, in response to the difference between the first cost consumption and the second cost consumption being less than a difference threshold, the server 105 compares the first cost consumption with the available cost in the user account of the user, and generates a comparison result; finally, in response to the comparison result indicating that the first cost consumption is less than or equal to the available cost, the server 105 locally configures the resource configuration requested by the resource configuration list for the user.
[0028] Since providing remote computing and cloud services may require more local computing resources and stronger computing power, the methods for configuring task resources provided in the subsequent embodiments of the present disclosure are generally performed by the server 105 with stronger computing power and more computing resources, and accordingly, the device for configuring task resources is generally also set in the server 105. However, it should also be pointed out that when the terminal devices 101, 102, and 103 also have computing power and computing resources that meet the requirements, the terminal devices 101, 102, and 103 can also complete the above-mentioned various operations handed over to the server 105 through the cloud computing service applications installed thereon, and then output the same results as the server 105. In particular, when there are multiple terminal devices with different computing capabilities, but the cloud computing service application determines that the terminal device has stronger computing capabilities and more remaining computing resources, the terminal device can be allowed to perform the above operations (for example, the terminal device 101 provides computing power and computing resources for the terminal device 102), thereby appropriately reducing the computing pressure of the server 105. Accordingly, the device for configuring task resources can also be set in the terminal devices 101, 102, and 103. In this case, the exemplary system architecture 100 may also not include the server 105.
[0029] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0030] Please refer to Figure 2 , Figure 2 A flowchart of a method for configuring task resources provided by an embodiment of the present disclosure, wherein process 200 includes the following steps:
[0031] Step 201: in response to receiving a resource use request sent by a user, obtaining a resource configuration list included in the resource use request;
[0032] This step is intended to be performed by the execution subject of the method for configuring task resources (e.g. Figure 1The server 105 shown in the figure configures the corresponding resource configuration for the user according to the user's needs and resource usage requests. For example, the user can send a resource usage request to the execution subject through the user device used by the user (for example, terminal devices 101, 102 and 103) to request the execution subject to configure the resource configuration locally to provide computing power and services for the execution of the target task that the user expects to be executed. In some embodiments, the resource configuration can specifically be a hardware configuration, such as configuring a target number of central processing units (CPU), graphics processing units (GPU), and distributed storage (for example, the model, parameters and quantity of the hardware expected to be used, etc.).
[0033] In some embodiments, the target task may be a task of multiple types, such as a task of continuously executing a target duration and a task of outputting a result. For example, the target task may be an execution environment that requires the execution subject to provide a target duration, so as to execute a task of continuously executing a target duration of the type "cloud programming" or "cloud collaboration". For another example, the target task may also be an output result task, such as completing the training for a specific model to output the trained model, or completing the execution of a script and outputting the script execution result.
[0034] In some embodiments, the target task may be provided together with the task sending the resource usage request, or may be provided in advance before sending the resource usage request. The subsequent user may determine the target task desired to be executed this time based on the selection of the pre-provided task.
[0035] Accordingly, the execution subject may respond upon receiving the resource usage request sent by the user, and obtain the resource configuration list included in the resource usage request. As discussed above, the resource configuration list obtained by the execution subject may indicate the target task that the user desires to perform, and the desired resource configuration that is desired to be obtained for performing the target task. For example, the user may request to obtain X number of central processing units and Y number of graphics processing units in the resource configuration list.
[0036] In some embodiments, the resource configuration list may also submit requirements in the form of parameters. For example, the resource configuration list may only indicate the expected computing power value (for example, the expected computing power value provided by the central processing unit). Accordingly, the execution entity may provide the user with a "recommended resource configuration" by analyzing the computing power value, and determine the resource configuration list provided by the user based on the user's selection of the "recommended resource configuration".
[0037] Step 202: Generate a first cost consumption based on the resource allocation list, and predict a second cost consumption based on a difference between a current progress value and a target progress value of the target task;
[0038] On the basis of step 201, this step is intended to generate a first cost consumption based on the resource configuration requested in the resource configuration list by the above-mentioned execution subject, and predict the second cost consumption based on the difference between the current progress value and the target progress value of the target task. In the embodiment of the present disclosure, the execution subject can maintain the cost consumption comparison relationship corresponding to each type of resource configuration locally in advance. The cost consumption comparison relationship can record the cost of the user required to be consumed when the corresponding type of resource configuration is used and sent to the user. For example, the cost can be in the form of a cost value / minute (unit cost), that is, the corresponding resource configuration is used for 1 minute, and the user needs to provide a cost of a size. Accordingly, the execution subject can calculate the first cost consumption according to the resource configuration requested in the resource configuration list. For example, the user requests X number of central processing units and expects to use 100 minutes. If the cost corresponding to the central processing unit is a cost value / minute, the execution subject can determine the first cost consumption through the calculation result of 100*X*a.
[0039] It should be understood that the above unit cost is merely an exemplary explanation for the convenience of understanding and is not intended to limit the present disclosure. Generally, the unit cost can be determined based on demand by selecting the cost value consumed per second or per millisecond.
[0040] Similarly, the execution subject can also predict the second cost consumption based on the difference between the current progress value and the target progress value of the target task. For example, when the target task provides the Z environment for 100 minutes, the execution subject can predict the second cost consumption based on the difference (i.e., 100 minutes) between the current task progress (e.g., 0 minutes in the initial state) and the target progress value (e.g., 100 minutes), and the minimum cost required to provide the I environment (e.g., the combination of resource configurations with the lowest total cost that can meet the computing power usage requirements of the I environment). For example, the total cost corresponding to the combination of resource configurations with the lowest total cost that provides the computing power usage requirements of the I environment can be b cost value / minute, and the execution subject can predict the second cost consumption through the calculation result of 100*b.
[0041] Accordingly, in some embodiments, if the target task is the "output result type task" discussed above, the execution entity can predict the second cost consumption based on the difference between the progress value of the target task (e.g., the target task for T model training) that is currently completed (e.g., the current progress value of T model training) and the target progress value (e.g., completion of T model training). For example, the execution entity can determine the cost required to train the T model based on the historical training results and historical training process for the T model. For example, the cost consumed every time the T model is trained by 1% of the progress value. Then, the execution entity predicts the second cost consumption based on the difference between the current progress value of T model training and the progress value of completed model training and the cost consumed every time the T model is trained by 1% of the progress value.
[0042] It should be understood that the target progress value of the target task may also be specified by the user, or determined by the execution subject according to, for example, a pre-assigned execution plan, and is not necessarily "100%" indicating that the target task is fully completed.
[0043] Step 203: Determine whether the difference between the first cost consumption and the second cost consumption is less than a difference threshold.
[0044] Specifically, after determining the difference between the first cost consumption and the second cost consumption, the execution subject compares the difference with the difference threshold to determine whether the difference is less than the difference threshold. The difference threshold can usually be determined based on the actual requirements of the allowed difference. For example, the management party of the AI platform can determine the difference threshold based on the allowed "resource error value".
[0045] If it is less, the execution entity may choose to execute step 204 .
[0046] Step 204, comparing the first cost consumption with the available cost in the user account of the user, and generating a comparison result;
[0047] On the basis of step 203, this step is intended to be responded by the execution subject when the difference between the first cost consumption and the second cost consumption determined in step 203 is less than the difference threshold after comparing the difference between the first cost consumption and the second cost consumption and the difference threshold. After the response, the execution subject can further compare the first cost consumption with the available cost in the user account of the user to generate a comparison result. The available cost in the user account can be the cost pre-provided by the user, charged and available for use by the user.
[0048] In some embodiments, to facilitate the use on the user side, the user account can be used by multiple different users, that is, the user account can be a "shared account" of a group of users. In such a case, the execution subject can detect whether the user account is currently being used by other users. If such a situation exists, the execution subject can prompt the current user and temporarily suspend the current user's use request to avoid account errors.
[0049] Further, the execution subject may compare the first cost consumption with the available cost in the user account of the user, and generate a comparison result. The comparison result indicates the size relationship between the first cost consumption and the available cost in the user account. For example, the first cost consumption is greater than the available cost, the first cost consumption is less than the available cost, or the first cost consumption is equal to the available cost.
[0050] Step 205: In response to the comparison result indicating that the first cost consumption is less than or equal to the available cost, the resource configuration requested by the resource configuration list is configured locally for the user.
[0051] Based on step 204, this step is intended to be responded by the execution subject when it is determined that the comparison result indicates that the first cost consumption is less than or equal to the available cost, and then configure the corresponding resource configuration for the user according to the resource configuration requested by the resource configuration list provided by the user. For example, when the user requests X number of CPUs, the execution subject can "divide" and "allocate" X number of CPUs for the user locally after determining that the first cost consumption is less than or equal to the available cost for use by the user.
[0052] The method for configuring task resources provided by the embodiment of the present disclosure can estimate the resources required by the user based on the progress of the task when the user requests to issue and configure resource configuration, so as to assist in decision-making and determine the resource configuration actually required. In this way, resource configuration can be issued and configured more effectively, avoiding resource waste or resource loss caused by inappropriate resource configuration, and improving resource management efficiency and management quality.
[0053] In some optional implementations of this embodiment, a first cost consumption is generated based on the resource configuration list, including: in response to the target task being associated with an expected execution duration, the first cost consumption is determined based on the resource usage unit cost indicated by the resource configuration list and the expected execution duration.
[0054] Specifically, as discussed above, when determining the first cost consumption, parameters of the "duration" dimension are required to determine and count the cost consumption. Thus, for a target task associated with an expected execution duration (e.g., a task of the type of continuous execution target duration discussed above), the execution entity can determine the first cost consumption based on the product of the unit cost of resource usage indicated by the resource configuration list (e.g., the a cost value / minute discussed above) and the expected execution duration. Thus, the first cost consumption can be determined more in line with user needs to improve the accuracy of determining the first cost consumption.
[0055] In some optional implementations of this embodiment, if the target task is not associated with the expected execution duration, the execution subject may choose to respond to this and determine the first cost consumption based on the resource usage unit cost indicated by the resource configuration list and the historical average completion duration of the target task. That is, when the execution subject generates the first cost consumption based on the resource configuration list, it may choose to determine the first cost consumption based on the resource usage unit cost indicated by the resource configuration list and the historical average completion duration of the target task. For example, the execution subject may count the historical execution durations in each historical execution of the target task, and then obtain the historical average completion duration based on the average value of the statistical results. Accordingly, the execution subject may choose to determine the first cost consumption based on the historical average duration and the resource usage unit cost. Thus, the requirements for users to provide information are reduced. For example, in the case where the user is uncertain and does not submit the expected execution duration of the target task, the execution subject may still estimate the "duration" based on historical execution, without "forcibly" requiring the user to provide the "duration".
[0056] In some optional implementations of this embodiment, the execution subject may also respond to the situation where the difference between the first cost consumption and the second cost consumption is greater than or equal to the difference threshold, to provide auxiliary information to the user to assist the user in determining and adjusting resource configuration requirements. In other words, when the difference between the first cost consumption and the second cost consumption is too large, and it is suspected that the resources requested by the user cannot meet their usage requirements (or exceed their usage requirements and there may be a waste of resources), the execution subject prompts the user to help the user request resources better and more accurately.
[0057] For example, in the above Figure 2 The process 200 shown may further include step 206 , and step 206 may be executed when it is determined in step 203 that the difference between the first cost consumption and the second cost consumption is greater than or equal to a difference threshold.
[0058] Step 206, sending a query message to the user to confirm whether to still configure the resource configuration based on the resource configuration list;
[0059] Specifically, the execution subject may respond when it is determined that the difference between the first cost consumption and the second cost consumption is greater than or equal to the difference threshold, and send a query message to the user to query the user and ask the user to confirm whether to still configure the resource configuration based on the resource configuration list. Accordingly, the user may provide different confirmation commands based on the query information to determine whether to continue to use the previously uploaded resource configuration list to request resource configuration. For example, the user may provide a first confirmation command in response to the query information to indicate that the resource configuration is still requested based on the previously uploaded resource configuration list.
[0060] Step 207 : in response to receiving a first confirmation command returned by the user in response to the inquiry information within a preset time period, comparing the first cost consumption with the available cost, and generating a comparison result.
[0061] Specifically, based on step 206, this step is intended to, if the execution subject receives the first confirmation command returned by the user in response to the query information within the preset time, the execution subject can respond to this and continue to use the first cost consumption determined by the original resource configuration list to compare with the above-mentioned available cost to generate a comparison result. And when the comparison result indicates that the available cost is greater than or equal to the first cost consumption, select to configure resource configuration for the user (that is, continue to select to execute the above-mentioned step 205), which will not be repeated here.
[0062] In some optional implementations of this embodiment, after executing the above step 205, the user may indicate that the resource configuration list is expected to be updated through other confirmation commands different from the first confirmation command (for ease of understanding, the other confirmation command may be referred to as the second confirmation command). For example, the user may indicate through the second confirmation command that the resource configuration is no longer requested based on the previously uploaded resource configuration list.
[0063] Please refer to Figure 3 , Figure 3 A flowchart of a process for updating a resource configuration list provided by an embodiment of the present disclosure, wherein process 300 includes the following steps:
[0064] Step 301: In response to receiving a second confirmation command returned by the user in response to the inquiry information within a preset time period, providing the user with a second cost consumption.
[0065] Specifically, the execution subject can respond to the second confirmation command returned by the user in response to the query information within the preset time period, and provide the user with the second cost consumption predicted previously for the user's reference, so as to assist the user in understanding the difference between the resource configuration list provided by the user and "the resource configuration generally required to meet the requirements of the target task". Thus, the user can adjust his resource usage requirements through the second cost consumption, so as to help the user request resource configuration more reasonably and accurately.
[0066] In some embodiments, in order to help the user better determine resource configuration, the above process 300 may further include step 302.
[0067] Step 302, generating a reference resource configuration list based on the difference between the current progress value and the target progress value;
[0068] Specifically, based on the above step 301, this step is intended to generate a reference resource configuration list based on the difference between the current progress value and the target progress value after the above-mentioned execution subject determines the difference. Generating a reference resource configuration list is similar to the method of determining the expected resource configuration discussed above. For example, after determining the difference (for example, the computing power of the difference), the execution subject can configure and combine various resource configurations based on the computing power to form a reference resource configuration combination (also referred to as a reference configuration combination). Accordingly, the execution subject can obtain a reference resource configuration list based on the reference configuration combination, or provide a visualized resource configuration combination as a reference resource configuration list. Accordingly, the generated reference resource configuration list can be provided to the user side to assist the user in adjusting the resource configuration list.
[0069] In some optional implementations of this embodiment, in order to better assist the user in adjusting the resource configuration list, the execution entity may also provide more auxiliary reference information to assist the user when the reference resource configuration list includes at least two reference configuration combinations. For example, the reference execution time and reference cost consumption corresponding to the reference configuration combination may be provided to assist the user in making a selection.
[0070] For example, in the above process 300, after executing step 302, the executing entity may choose to execute step 303.
[0071] Step 303: Check whether the reference resource configuration list includes at least two reference configuration combinations?
[0072] Specifically, the execution entity may detect the number of reference configuration combinations included in the reference resource configuration list, and determine whether the reference resource configuration list includes at least two reference configuration combinations.
[0073] Further, after executing step 303, if the executing entity determines that the reference resource configuration list does not include at least two reference configuration combinations (for example, only includes one reference configuration combination), the executing entity may choose to execute step 304 (step 304, providing the reference resource configuration list to the user) to provide the reference resource configuration list to the user.
[0074] If the execution entity determines that the reference resource configuration list includes at least two reference configuration combinations, the execution entity may choose to execute step 305 .
[0075] Step 305: Generate reference execution times and reference cost consumptions corresponding to at least two reference configuration combinations.
[0076] Specifically, the execution entity can determine the reference execution duration corresponding to each reference configuration combination based on the time required for each reference configuration combination to complete the target task from the current progress value to the target progress value among at least two reference configuration combinations, and determine the corresponding reference cost consumption based on the reference execution time and the unit cost corresponding to each reference configuration combination.
[0077] Step 306: Add corresponding reference execution durations and reference cost consumptions for at least two reference configuration combinations in the reference resource configuration list.
[0078] Specifically, based on step 305, the execution entity can add the reference execution time and reference cost consumption corresponding to the reference configuration combination to the reference resource configuration list, so that the user can directly understand the reference execution time and reference cost consumption corresponding to each reference configuration combination through the reference resource configuration list.
[0079] Step 307 : providing the user with a reference resource configuration list with reference execution time and reference cost consumption added thereto.
[0080] In some optional implementations of this embodiment, after providing the user with a reference resource configuration list, the user can instruct the execution entity to update the previously uploaded resource configuration list to the target reference configuration combination by selecting the target reference configuration combination from the reference resource configuration list, so as to adjust the resource configuration requirements. For example, the above process 300 may also include step 308. Step 308 may be executed after step 304 and step 307.
[0081] Step 308, in response to receiving a user's selection request for a target reference configuration combination in the reference resource configuration list, updating the resource configuration list using the resource configuration indicated by the target reference configuration combination.
[0082] Specifically, for example, the execution subject can configure the corresponding number for the reference configuration combination in the resource configuration list, or configure the visual style of the reference configuration combination as a control that can be clicked by the user. Accordingly, the user can select the (target) reference configuration combination that he or she expects to use by providing a number, clicking a control, etc., so as to interact with the execution subject and communicate the user's selection request for the target reference configuration combination in the reference resource configuration list. Accordingly, the execution subject can respond when receiving the selection request, and use the resource configuration indicated in the target reference configuration combination selected by the user to update the resource configuration usage list, that is, update the resource configuration indicated in the resource configuration list previously uploaded (for example, based on step 201 upload) to the resource configuration indicated by the target reference configuration combination. Thus, in the case where the resource configuration list provided by the user may not meet its actual needs, the user can use the reference resource configuration list provided by the execution subject to quickly complete the update of the resource configuration list to meet the needs. Such a method can significantly reduce the user's update cost for resource configuration, reduce user consumption, and improve user experience.
[0083] In some embodiments, in order to manage the usage of the resource configuration corresponding to the user, after the execution subject configures the resource configuration for the user, the available cost in the user account can be updated based on the actual usage of the resource configuration, so as to manage the user's resource configuration usage and authority. For example, after the resource configuration is completed for the user, the first cost consumption can be deducted from the user account to update the available cost in the user account.
[0084] In some embodiments, the execution subject may also continuously and periodically update the available cost in combination with the usage status of the resource configuration to better fit the actual usage of the resource configuration by the user and to better protect the interests of the user. For example, the execution subject may periodically update the available cost based on the execution status of the target task in response to the user using the resource configuration to execute the target task.
[0085] For this, please refer to Figure 4 , Figure 4 A flowchart of a process for updating available costs provided by an embodiment of the present disclosure includes a process 400. The process 400 can be, for example, Figure 2 After step 205 is shown, process 400 includes the following steps:
[0086] Step 401 : In response to a user using resource configuration to execute a target task, a first available cost update is executed.
[0087] Step 402 , check whether the time since the last available cost update meets the requirement of the update cycle time.
[0088] If the conditions are met, the execution entity executes step 403 .
[0089] Step 403: Update the available cost based on the execution status of the target task.
[0090] Specifically, the execution subject can determine the running time based on the time from the current moment to the last cost update time, and then determine the updated value of the available cost to be updated (e.g., reduced) based on the product of the running time and the unit cost of the resource configuration. Then, the execution subject subtracts the updated value from the current available cost in the user account to complete the update of the available cost.
[0091] If not satisfied, continue to execute step 402.
[0092] As an alternative or in addition, the execution subject may also be configured to execute the "last periodic" payment when it is determined that the progress value of the target task reaches the target progress value. It should be understood that when the "last periodic" is triggered, it may not meet the detection condition of the above step 402. For example, the execution subject can synchronously monitor the execution progress of the target task, and when the target task is executed to the target progress, it can trigger the "last periodic" payment logic in parallel and stop the periodic detection logic corresponding to step 402. In this way, calculation errors caused by the failure to meet the periodic condition when the target task reaches the target progress value can be avoided.
[0093] In some optional implementations of this embodiment, the execution entity may also send an instruction to the user and request a prompt message to supplement the available cost in response to detecting that the remaining available cost can no longer meet the update requirements of the next cycle after the available cost is updated in the current cycle.
[0094] Specifically, after each update of the available cost, the execution subject can also determine whether the remaining available cost can continue to meet the update requirements of the next periodic update of the available cost. For example, the execution subject can use the updated value of this time as the predicted update value used for the next update. For example, during this update, the execution subject updates (reduces) the available cost by N, then the execution subject can use N as the predicted update value and determine whether the current remaining available cost is greater than or equal to N, so as to determine whether the current remaining available cost can meet the next update requirements.
[0095] Furthermore, the execution subject can respond when the remaining available cost can no longer meet the update requirements of the next cycle to update the available cost, and issue a prompt message to the user to instruct the user to replenish the available cost. Thus, the execution subject can complete the prompt to the user in advance when the available cost may be insufficient, so as to help the user replenish the available cost in a timely and efficient manner. Thus, the interruption of the target task due to insufficient available cost can be avoided, and the execution stability of the target task can be improved.
[0096] In some embodiments, the execution entity can also adjust the judgment logic to achieve different prompting requirements. For example, the execution entity can adjust the "next cycle" to the next two cycles or the next three cycles to achieve earlier warning and prompting of insufficient available cost for users, so as to provide users with more "ample" update time.
[0097] As an alternative or additional, the above-discussed method of deducting the above-mentioned first cost consumption from the user account after the resource configuration is completed for the user, and the method of continuously and periodically combining the usage status of the resource configuration to update the available cost can also be used concurrently and in parallel. For example, after the execution subject chooses to deduct the above-mentioned first cost consumption from the user account, it can still continuously and periodically calculate the "specific value of the available cost that needs to be updated" in the background in combination with the usage status of the resource configuration. Then, after the execution subject completes the target task, or in other words, after the target task reaches the target progress value, the total value of the "specific value of the available cost that needs to be updated" counted in the background is compared with the difference between the first cost consumption deducted before, and if there is a difference, the user is required to supplement the difference or the difference is returned to the user. For example, if the total value is higher than the first cost consumption, the execution subject can require the user to make up the difference. If the total value is lower than the first cost consumption, the execution subject can return the difference to the user account. In this way, the user's cost consumption can be determined more accurately.
[0098] To deepen understanding, the present disclosure also provides a specific implementation solution in combination with a specific application scenario, see Figure 5 Flow 500 is shown.
[0099] For ease of understanding, we will combine Figure 1 For example, in process 500 , server 105 may configure resource configuration (resource configuration 560 or resource configuration 565 ) for terminal device 101 according to resource usage request 510 sent by terminal device 101 .
[0100] refer to Figure 5First, the terminal device 101 can execute S501 to send a resource usage request 510 to the server 105 to request the server 105 to configure resources for it.
[0101] Next, after receiving the resource use request 510 sent by the terminal device 101 , the server 105 may respond and execute S502 to obtain the resource configuration list 520 included in the resource use request 510 .
[0102] Then, the server 105 can execute 503 locally to determine the first cost consumption 530 using the resource configuration list 520, and predict the second cost consumption 535 based on the difference between the current progress value and the target progress value of the target task (not shown in the figure) targeted by the terminal device 101.
[0103] Further, the execution subject executes S504 based on the first cost consumption 530 and the second cost consumption 535 determined in S503 to determine whether the difference between the first cost consumption 530 and the predicted second cost consumption 535 is less than a difference threshold.
[0104] Next, according to the execution result of S504 (greater than, equal to, or less than), the execution subject may correspondingly execute different processing strategies.
[0105] like Figure 5 As shown, when the execution subject determines that the difference is less than the difference threshold according to S504, it can choose to execute 535 to compare the first cost consumption 530 with the available cost 540 to generate a comparison result 550. Then, when the server 105 determines that the comparison result 550 indicates that the first cost consumption 530 is less than the available cost 540, it executes S526 to configure resource configuration 560 for the terminal device 101.
[0106] Alternatively, when the server 105 determines that the difference is greater than or equal to the difference threshold, it executes S515 to send an inquiry message 570 to the terminal device 101 , and the inquiry message 570 is used to confirm with the user of the terminal device 101 whether to still configure the resource configuration based on the resource configuration list 520 .
[0107] Accordingly, after receiving the inquiry information 570, the terminal device 101 may return a first confirmation instruction 575 to the server 105 by executing S516 to instruct the server 105 to still configure the resource configuration based on the resource configuration list 520. Accordingly, after receiving the first confirmation instruction 575, the server 105 may execute S517 to compare the first cost consumption 530 with the available cost 540 to generate a comparison result 580.
[0108] If the comparison result 580 indicates that the first cost consumption 530 is less than the available cost 540 , the execution subject may execute S518 to configure the resource configuration 565 for the terminal device 101 .
[0109] It should be understood that, since the server 105 still implements the configuration based on the resource configuration list 520 when configuring the resource configuration 565, the resource configuration 565 and the resource configuration 560 are actually the same in this scenario.
[0110] Further references Figure 6 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a device for configuring task resources. Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0111] like Figure 6 As shown, the apparatus 600 for configuring task resources in this embodiment may include: a configuration list acquisition unit 601, a cost consumption determination unit 602, a cost consumption first comparison unit 603, and a resource configuration first configuration unit 604. The configuration list acquisition unit 601 is configured to, in response to receiving a resource use request sent by a user, acquire a resource configuration list included in the resource use request, wherein the resource use request is used to request resource configuration from a local location for executing a target task; the cost consumption determination unit 602 is configured to generate a first cost consumption based on the resource configuration list, and predict a second cost consumption based on a difference between a current progress value and a target progress value of the target task; the cost consumption first comparison unit 603 is configured to, in response to the difference between the first cost consumption and the second cost consumption being less than a difference threshold, compare the first cost consumption with the available cost in the user account of the user, and generate a comparison result; the resource configuration first configuration unit 604 is configured to, in response to the comparison result indicating that the first cost consumption is less than or equal to the available cost, locally configure the resource configuration requested by the resource configuration list for the user.
[0112] In the present embodiment, in the apparatus 600 for configuring task resources, the specific processing of the configuration list acquisition unit 601, the cost consumption determination unit 602, the cost consumption first comparison unit 603 and the resource configuration first configuration unit 604 and the technical effects thereof can be referred to respectively. Figure 2 The relevant descriptions of steps 201 - 204 in the corresponding embodiment are not repeated here.
[0113] In some optional implementations of this embodiment, a first cost consumption is generated based on the resource configuration list, including: in response to the target task being associated with an expected execution duration, the first cost consumption is determined based on the resource usage unit cost indicated by the resource configuration list and the expected execution duration.
[0114] In some optional implementations of this embodiment, a first cost consumption is generated based on the resource configuration list, including: in response to the target task not being associated with an expected execution duration, determining the first cost consumption based on the unit cost of resource usage indicated by the resource configuration list and the historical average completion duration of the target task.
[0115] In some optional implementations of this embodiment, the device 600 also includes: a second cost consumption comparison unit, configured to send an inquiry message to the user to confirm whether to still configure the resource configuration based on the resource configuration list in response to the difference between the first cost consumption and the second cost consumption being greater than or equal to a difference threshold; a second resource configuration unit, configured to respond to receiving a first confirmation command returned by the user in response to the inquiry message within a preset time period, compare the first cost consumption with the available cost, and generate a comparison result, wherein the first confirmation command indicates that the resource configuration is still requested based on the resource configuration list.
[0116] In some optional implementations of this embodiment, the device 600 also includes: a predicted cost providing unit, configured to provide a second cost consumption to the user in response to receiving a second confirmation command returned by the user in response to the inquiry information within a preset time period, wherein the second confirmation command indicates that resource configuration is no longer requested based on the resource configuration list.
[0117] In some optional implementations of this embodiment, the device 600 also includes: a reference configuration list generating unit, configured to generate a reference resource configuration list based on the difference between the current progress value and the target progress value; and a reference configuration list providing unit, configured to provide the reference resource configuration list to the user.
[0118] In some optional implementations of this embodiment, the device 600 also includes: a configuration reference information generating unit, configured to generate reference execution times and reference cost consumptions corresponding to at least two reference configuration combinations in response to the reference resource configuration list including at least two reference configuration combinations; a configuration reference information adding unit, configured to add corresponding reference execution times and reference cost consumptions for at least two reference configuration combinations in the reference resource configuration list; and the reference configuration list providing unit is further configured to provide the user with the reference resource configuration list with the reference execution time and reference cost consumption added.
[0119] In some optional implementations of this embodiment, the device 600 also includes: a resource configuration list updating unit, which is configured to update the resource configuration list using the resource configuration indicated by the target reference configuration combination in response to receiving a user's selection request for a target reference configuration combination in the reference resource configuration list.
[0120] In some optional implementations of this embodiment, the apparatus 600 further includes: an available cost updating unit configured to periodically update the available cost based on the execution status of the target task in response to the user using resource configuration to execute the target task.
[0121] In some optional implementations of this embodiment, the device 600 also includes: an available cost supplement prompt unit, which is configured to send a prompt message to the user to supplement the available cost in response to detecting that after the available cost is updated in the current cycle, the remaining available cost can no longer meet the update requirements of the available cost update in the next cycle.
[0122] This embodiment exists as a device embodiment corresponding to the above method embodiment. The device for configuring task resources provided by this embodiment can estimate the resources required by the user based on the progress of the task when the user requests to issue and configure resource configuration, so as to assist in decision-making and determine the resource configuration actually required. In this way, resource configuration can be issued and configured more effectively, avoiding waste or loss of resources due to inappropriate resource configuration, and improving resource management efficiency and management quality.
[0123] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0124] Figure 7 A schematic block diagram of an example electronic device 700 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0125] like Figure 7 As shown, the device 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0126] A number of components in the device 700 are connected to the I / O interface 705, including: an input unit 706, such as a keyboard, a mouse, etc.; an output unit 707, such as various types of displays, speakers, etc.; a storage unit 708, such as a disk, an optical disk, etc.; and a communication unit 709, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0127] The computing unit 701 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 701 performs the various methods and processes described above, such as methods for configuring task resources. For example, in some embodiments, the method for configuring task resources may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 700 via the ROM 702 and / or the communication unit 709. When the computer program is loaded into the RAM 703 and executed by the computing unit 701, one or more steps of the method for configuring task resources described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to perform the method for configuring task resources in any other appropriate manner (e.g., by means of firmware).
[0128] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0129] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0130] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0131] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0132] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0133] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and virtual private servers (VPS) services. The server can also be divided into a server of a distributed system, or a server combined with a blockchain.
[0134] According to the technical solution of the embodiment of the present disclosure, when a user requests to issue and configure resource configuration, the resources required by the user can be estimated based on the progress of the task to assist in decision-making and determine the resource configuration actually required. In this way, resource configuration can be issued and configured more effectively, avoiding resource waste or resource loss caused by inappropriate resource configuration, and improving resource management efficiency and management quality.
[0135] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions provided by this disclosure can be achieved, and this document does not limit this.
[0136] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A method for configuring task resources, comprising: In response to receiving a resource usage request sent by a user, obtaining a resource configuration list included in the resource usage request, wherein the resource usage request is used to request resource configuration from a local system for executing a target task; generating a first cost consumption based on the resource allocation list, and predicting a second cost consumption based on a difference between a current progress value and a target progress value of the target task; In response to a difference between the first cost consumption and the second cost consumption being smaller than a difference threshold, comparing the first cost consumption with the available cost in the user account of the user, and generating a comparison result; In response to a difference between the first cost consumption and the second cost consumption being greater than or equal to the difference threshold, sending a query message to the user to confirm whether to still configure resource configuration based on the resource configuration list; In response to receiving a first confirmation command returned by the user in response to the inquiry information within a preset time period, comparing the first cost consumption with the available cost to generate the comparison result, wherein the first confirmation command indicates that the resource configuration is still requested based on the resource configuration list; In response to receiving a second confirmation command returned by the user in response to the query information within a preset time period, providing the second cost consumption to the user, wherein the second confirmation command indicates that the resource configuration is no longer requested based on the resource configuration list; In response to the comparison result indicating that the first cost consumption is less than or equal to the available cost, the resource configuration requested by the resource configuration list is configured locally for the user.
2. The method according to claim 1, wherein: Generating a first cost consumption based on the resource configuration list includes: In response to the target task being associated with an expected execution duration, the first cost consumption is determined based on the resource usage unit cost indicated by the resource configuration list and the expected execution duration.
3. The method according to claim 1, wherein: Generating a first cost consumption based on the resource configuration list includes: In response to the target task not being associated with an expected execution duration, the first cost consumption is determined based on a resource usage unit cost indicated by the resource configuration list and a historical average completion duration of the target task.
4. The method according to claim 1, further comprising: generating a reference resource allocation list based on a difference between the current progress value and the target progress value; The reference resource configuration list is provided to the user.
5. The method according to claim 4, further comprising: In response to the reference resource configuration list including at least two reference configuration combinations, generating reference execution durations and reference cost consumptions corresponding to the at least two reference configuration combinations; Adding corresponding reference execution durations and reference cost consumptions for the at least two reference configuration combinations in the reference resource configuration list; as well as The providing the reference resource configuration list to the user includes: A reference resource configuration list to which the reference execution duration and the reference cost consumption are added is provided to the user.
6. The method according to claim 4 or 5, further comprising: In response to receiving a selection request from the user for a target reference configuration combination in the reference resource configuration list, the resource configuration list is updated using the resource configuration indicated by the target reference configuration combination.
7. The method according to claim 1, further comprising: In response to the user executing the target task using the resource configuration, the available cost is periodically updated based on an execution status of the target task.
8. The method according to claim 7, further comprising: In response to detecting that after the update of the available cost in the current cycle is completed, the remaining available cost cannot continue to meet the update requirement of updating the available cost in the next cycle, prompt information instructing the user to supplement the available cost is sent.
9. A device for configuring task resources, comprising: A configuration list acquisition unit is configured to, in response to receiving a resource use request sent by a user, acquire a resource configuration list included in the resource use request, wherein the resource use request is used to request resource configuration from a local system for executing a target task; a cost consumption determination unit configured to generate a first cost consumption based on the resource configuration list, and predict a second cost consumption based on a difference between a current progress value and a target progress value of the target task; a first cost consumption comparison unit, configured to compare the first cost consumption with the available cost in the user account of the user in response to the difference between the first cost consumption and the second cost consumption being less than a difference threshold, and generate a comparison result; a second cost consumption comparison unit, configured to send a query message to the user to confirm whether to still configure resource configuration based on the resource configuration list in response to the difference between the first cost consumption and the second cost consumption being greater than or equal to the difference threshold; A second resource configuration unit is configured to, in response to receiving a first confirmation command returned by the user in response to the inquiry information within a preset time period, compare the first cost consumption with the available cost and generate the comparison result, wherein the first confirmation command indicates that the resource configuration is still requested based on the resource configuration list; a predicted cost providing unit, configured to provide the second cost consumption to the user in response to receiving a second confirmation command returned by the user in response to the query information within a preset time period, wherein the second confirmation command indicates that the resource configuration is no longer requested based on the resource configuration list; The first resource configuration unit is configured to locally configure the resource configuration requested by the resource configuration list for the user in response to the comparison result indicating that the first cost consumption is less than or equal to the available cost.
10. The device according to claim 9, wherein: Generating a first cost consumption based on the resource configuration list includes: In response to the target task being associated with an expected execution duration, the first cost consumption is determined based on the resource usage unit cost indicated by the resource configuration list and the expected execution duration.
11. The device according to claim 9, wherein: Generating a first cost consumption based on the resource configuration list includes: In response to the target task not being associated with an expected execution duration, the first cost consumption is determined based on a resource usage unit cost indicated by the resource configuration list and a historical average completion duration of the target task.
12. The apparatus according to claim 9, further comprising: a reference configuration list generating unit, configured to generate a reference resource configuration list based on a difference between the current progress value and the target progress value; The reference configuration list providing unit is configured to provide the reference resource configuration list to the user.
13. The apparatus according to claim 12, further comprising: A configuration reference information generating unit, configured to generate reference execution durations and reference cost consumptions corresponding to the at least two reference configuration combinations in response to the reference resource configuration list including at least two reference configuration combinations; A configuration reference information adding unit, configured to add corresponding reference execution durations and reference cost consumptions for the at least two reference configuration combinations in the reference resource configuration list; as well as The reference configuration list providing unit is further configured to provide the user with a reference resource configuration list to which the reference execution duration and the reference cost consumption are added.
14. The device according to claim 12 or 13, further comprising: The resource configuration list updating unit is configured to update the resource configuration list using the resource configuration indicated by the target reference configuration combination in response to receiving a selection request from the user for the target reference configuration combination in the reference resource configuration list.
15. The apparatus according to claim 9, further comprising: The available cost updating unit is configured to periodically update the available cost based on an execution status of the target task in response to the user executing the target task using the resource configuration.
16. The apparatus according to claim 15, further comprising: The available cost supplement prompt unit is configured to send a prompt message to the user to supplement the available cost in response to detecting that the remaining available cost cannot continue to meet the update requirement of updating the available cost in the next cycle after the available cost is updated in the current cycle.
17. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method for configuring task resources according to any one of claims 1 to 8.
18. A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute the method for configuring task resources according to any one of claims 1 to 8.
19. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the method for configuring task resources according to any one of claims 1 to 8.
Citation Information
Patent Citations
Cloud rendering resource scheduling method and device, electronic equipment and storage medium
CN111061560A
Duration prediction model generation method, system resource scheduling method, device, electronic equipment and storage medium
CN111813523A