Edge cluster computing resource allocation method, device and electronic device
By allocating computing resources in edge clusters and making optimization adjustments based on user needs and social benefit values, the problem of limited edge server resources is solved, and efficient resource utilization and social contribution are improved.
Patent Information
- Application Number
- CN202111574279.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-21
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2041-12-21
AI Technical Summary
The computing resources of edge servers are limited, resulting in unreasonable resource contention and waste of computing resources, and it is difficult for existing technologies to effectively allocate resources to maximize social contribution.
By allocating no more than the required computing resources from the target edge cluster based on the computing resource requirements of the target users, and calculating resource benefits and costs to increase the social benefit value, the computing resources are iteratively optimized and adjusted to ensure the social contribution of resource allocation.
It achieves reasonable allocation of computing resources, reduces resource waste, improves social contribution, and maximizes the benefits of each user and external providers.
Smart Images

Figure CN114443273B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of big data analysis, and in particular to an edge cluster computing resource allocation method, device and electronic device. Background Art
[0002] With the rapid development of computing-intensive and latency-sensitive applications, the Internet of Everything has gradually become a development trend of collaborative computing of physical devices. End users have limited storage capacity and insufficient processing power, and running computing-intensive applications on resource-constrained user devices faces challenges. The cloud computing centers of large Internet companies have a large number of hardware computing resources such as CPUs, hard disks, and memory. By virtualizing and quantifying hardware such as CPUs, hard disks, and memory, users can place applications in cloud computing centers with sufficient computing resources for processing according to the size of their needs. However, cloud computing centers are always deployed far away from end users. Transmitting end-user applications collected at the edge through the network to remote cloud servers for real-time processing will cause considerable time delays and energy consumption. Edge computing is considered to be a better solution. Running user applications on edge servers that are closer to users can save a lot of data transmission time. Usually, there are multiple edge servers in an area, and several edge servers that are close to each other are managed by Kubernetes container cluster technology, so that edge servers in an area are divided into multiple edge clusters based on Kubernetes technology. The computing resources of edge servers are much less than those of cloud computing resource centers. Edge servers with limited resources cannot meet the execution requirements of all tasks, which leads to inevitable resource contention among users who want to obtain resources near them. Different users use computing resources to solve different practical problems, and the corresponding urgency and importance vary. Unreasonable allocation of computing resources will reduce the contribution of computing resources to society and cause waste of computing resources. Therefore, how to allocate computing resources to minimize resource waste is an urgent problem to be solved. Summary of the invention
[0003] In view of this, the embodiments of the present invention provide an edge cluster computing resource allocation method, device and electronic device, thereby improving the social contribution of computing resource allocation and reducing the waste of computing resource allocation.
[0004] According to the first aspect, the present invention provides an edge cluster computing resource allocation method, the method comprising: allocating target computing resources no greater than the computing resource demand from a target edge cluster to the target user based on the computing resource demand of the target user; calculating the social benefit value corresponding to the target computing resources based on the resource benefits obtained by the target user using the computing resources and the resource cost of the computing resources provided by an external provider; iteratively optimizing and adjusting the target computing resources with the goal of ensuring that the target computing resources are no greater than the total amount of computing resources of the target edge cluster and that the social benefit value increases until a preset condition is met.
[0005] Optionally, the method further includes: calculating the net benefit of the target user based on the resource benefit and the resource expenditure fee paid by the target user for the target computing resource; and iteratively optimizing and adjusting the target computing resource with the goal of increasing the net benefit until a preset condition is met.
[0006] Optionally, the method also includes: calculating a second net profit of the external provider based on the resource cost and the resource expenditure fee paid by the target user for the target computing resource; and iteratively optimizing and adjusting the target computing resource with the goal of increasing the second net profit until a preset condition is met.
[0007] Optionally, the step of calculating the resource expenditure fee paid by the target user for the target computing resource includes: calculating the resource expenditure fee paid by the target user for the target computing resource based on a VCG mechanism.
[0008] Optionally, the VCG mechanism-based calculation of the resource expenditure fee paid by the target user for the target computing resource includes: obtaining a first computing resource and a second computing resource allocated to other users except the target user, the first computing resource being the computing resource obtained by the other user when the target user participates in the allocation, and the second computing resource being the computing resource obtained by the other user when the target user does not participate in the allocation; calculating a total revenue through the resource quotations of the other users, the resource cost and the second computing resource, the total revenue being the total revenue obtained by the external provider when the target user does not participate in the allocation; calculating the revenue of other users through the resource quotations of the other users, the resource cost, the target computing resource and the first computing resource, the revenue of other users being the revenue obtained by the external provider from the other users when the target user participates in the allocation; and taking the difference between the total revenue and the revenue of other users as the resource expenditure fee.
[0009] According to the second aspect, the present invention provides an edge cluster computing resource allocation device, the device comprising: an initial allocation module, used to allocate target computing resources no greater than the computing resource demand from the target edge cluster to the target user based on the computing resource demand of the target user; a social benefit module, used to calculate the social benefit value corresponding to the target computing resource based on the resource benefit obtained by the target user using the computing resource and the resource cost of the computing resource provided by an external provider; a resource adjustment module, used to iteratively optimize and adjust the target computing resource with the goal of ensuring that the target computing resource is no greater than the total amount of computing resources of the target edge cluster and that the social benefit value increases until a preset condition is met.
[0010] Optionally, the device also includes: a user profit module, used to calculate the net profit of the target user based on the resource profit and the resource expenditure fees paid by the target user for the target computing resources; a second adjustment module, used to iteratively optimize and adjust the target computing resources with the goal of increasing the net profit until a preset condition is met.
[0011] Optionally, the device also includes: a provider profit module, used to calculate the second net profit of the external provider based on the resource cost and the resource expenditure fees paid by the target user for the target computing resources; a third adjustment module, used to iteratively optimize and adjust the target computing resources with the goal of increasing the second net profit until a preset condition is met.
[0012] According to the third aspect, an embodiment of the present invention provides an electronic device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the method described in the first aspect or any optional implementation manner of the first aspect by executing the computer instructions.
[0013] According to a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the method described in the first aspect or any optional implementation manner of the first aspect.
[0014] The technical solution provided by this application has the following advantages:
[0015] The technical solution provided by this application first allocates target computing resources that are no greater than the computing resource requirements from the target edge cluster to the target user based on the computing resource requirements of the target user; then, based on the resource benefits obtained by the target user using the computing resources and the resource costs of the computing resources provided by the external provider, the social benefit value corresponding to the target computing resources is calculated; then, with the target computing resources being no greater than the total amount of computing resources of the target edge cluster and the social benefit value increasing as the goal, the target computing resources are iteratively optimized and adjusted. Thus, the target computing resources allocated to the target user are made more reasonable in magnitude based on the social benefit value, an indicator representing the maximum social contribution, and the waste of computing resources is reduced.
[0016] In addition, the present invention also adjusts the allocated target computing resources based on the benefits of each user and the benefits of external providers, so that the allocation of target resources not only ensures that the social contribution is as large as possible, but also maximizes the benefits of each user and external provider, thereby further improving the social contribution of computing resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The features and advantages of the present invention will be more clearly understood by referring to the accompanying drawings, which are schematic and should not be construed as limiting the present invention in any way. In the accompanying drawings:
[0018] Figure 1 A schematic diagram of the steps of an edge cluster computing resource allocation method in one embodiment of the present invention is shown;
[0019] Figure 2 A schematic diagram of the structure of an edge cluster computing resource allocation device in one embodiment of the present invention is shown;
[0020] Figure 3 A schematic structural diagram of an electronic device in one embodiment of the present invention is shown. DETAILED DESCRIPTION
[0021] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0022] See also Figure 1 In one embodiment, a method for allocating computing resources in an edge cluster includes the following steps:
[0023] Step S101: allocating target computing resources no greater than the computing resource demand to the target user from the target edge cluster based on the computing resource demand of the target user.
[0024] Step S102: Calculate the social benefit value corresponding to the target computing resources based on the resource benefits obtained by the target user using the computing resources and the resource costs of the computing resources provided by the external provider.
[0025] Step S103: With the target computing resources being no greater than the total computing resources of the target edge cluster and the social benefit value increasing as the goal, the target computing resources are iteratively optimized and adjusted until the preset conditions are met.
[0026] Specifically, suppose the target user i’s demand for computing resources is S i , the total computing resources contained in a certain edge cluster j is R j , the computing resources that the edge cluster j can allocate to the target user i are in There are k edge clusters that allocate computing resources to target user i. The target computing resources that target user i is finally allocated are The target edge cluster is a set K consisting of k edge clusters. The total amount of computing resources of the target edge cluster K is Assuming there are u users in total, all computing resources in edge cluster j are Since the total amount of computing resources owned by external providers is limited, the computing resources actually allocated to the target user cannot be greater than the total amount of computing resources owned by the provider. i ≤R. In addition, in order to avoid wasting resources due to users falsely reporting more computing resources allocated to users, target computing resources that are no greater than the computing resource requirements are allocated to the target users, that is, E i ≤S i ,and in is the computing resource demand of target user i for edge cluster j. The difference between the resource benefit of the target user using computing resources and the resource cost of computing resources provided by external providers should be as large as possible to ensure that the social benefit value corresponding to the user using the target computing resources is larger. Therefore, in this embodiment, based on the above constraints, the iterative function to be performed is:
[0027]
[0028] Where F is the social benefit value of target user i, U is the total number of users, U = {1, 2, ..., u}, v i is the resource benefit obtained by target user i using one unit of computing resources, and c is the resource cost required for an external provider to provide one unit of computing resources.
[0029] In this embodiment, the target computing resource E is adjusted by iteration. i , the social benefit value F is optimized and increased until the preset conditions are met and the adjustment is stopped, including but not limited to satisfying the preset number of iterations and F tending to be stable within the preset iteration cycle. Thus, the final computing resource allocation strategy achieves the purpose of maximizing the social benefit value, increasing the social contribution of resources, and minimizing resource waste.
[0030] Specifically, in one embodiment, a method for allocating edge cluster computing resources further includes the following steps:
[0031] Step 1: Calculate the net income of the target user based on the resource income and the resource expenditure fee paid by the target user for the target computing resources;
[0032] Step 2: With the goal of increasing net benefits, iteratively optimize and adjust the target computing resources until the preset conditions are met.
[0033] Specifically, the target user needs to pay the resource expenditure fee to the external provider for using the allocated target computing resources. In this embodiment, in addition to the constraints of steps S101 to S103 above, constraints are added to maximize the net income (i.e., net profit) of the target user, as shown in the following formula:
[0034] G=v i ×E i -p i ×E i
[0035] In the formula, G is the net benefit of target user i, v i The resource benefit obtained by using one unit of computing resources for target user i, p i The resource expenditure fee required to use one unit of computing resources for target user i.
[0036] The social benefit value can only ensure that the overall social contribution of computing resources is high, but when it is apportioned to each user, it cannot guarantee that the computing resources contribute to each user. It is possible that a certain user obtains high benefits, but the actual benefits of using computing resources by another user are very low, which creates the illusion that the overall social contribution of computing resources is high through averaging. Therefore, by further adding constraints, calculating the benefits obtained by each user by using the target computing resources, and calculating the target computing resources E of each user. i Adjustments are made until the above preset conditions are met and iterations are stopped, optimizing the increasing net benefits of target users, thereby further improving the social contribution of computing resources.
[0037] Specifically, in one embodiment, a method for allocating edge cluster computing resources further includes the following steps:
[0038] Step 3: Calculate the second net income of the external provider based on the resource cost and the resource expenditure fee paid by the target user for the target computing resources.
[0039] Step 4: With the second net benefit increasing as the goal, iteratively optimize and adjust the target computing resources until the preset conditions are met.
[0040] Specifically, the external provider needs to pay a certain resource cost to provide the target computing resources. In this embodiment, in addition to the constraints of steps S101 to S103 above, constraints are added to maximize the second net benefit of the external provider, as shown in the following formula:
[0041]
[0042] In the formula, G2 is the second net income, p i The resource expenditure cost for target user i to use one unit of computing resources, c j The resource cost required to provide one unit of computing resources in edge cluster j to an external provider, is the computing resources that edge cluster j can allocate to target user i.
[0043] By further adding constraints, we calculate the benefits that external providers obtain based on the target computing resources and the target computing resources E of each user. i Adjustments are made until the above preset conditions are met, so that the second net benefit obtained by the external provider is as large as possible. The target computing resources are adjusted together through the three constraints of the above steps S101 to step 4, so that the contribution of computing resources to society is maximized in multiple dimensions, and the reliability of computing resource allocation is improved.
[0044] Specifically, in one embodiment, the step of generating the resource expenditure fee in the above step 1 includes:
[0045] Step 5: Calculate the resource expenditure fee paid by the target user for the target computing resources based on the VCG mechanism. This step specifically includes the following steps:
[0046] 1. Obtain the first computing resource and the second computing resource allocated to other users except the target user. The first computing resource is the computing resource obtained by other users when the target user participates in the allocation, and the second computing resource is the computing resource obtained by other users when the target user does not participate in the allocation;
[0047] 2. Calculate the total benefit through resource quotations, resource costs and second computing resources of other users. The total benefit is the total benefit obtained by the external provider when the target user does not participate in the allocation;
[0048] 3. Calculate the benefits of other users through resource quotations, resource costs, target computing resources and the first computing resources of other users. The benefits of other users are the benefits that the external provider obtains from other users when the target user participates in the allocation;
[0049] 4. The difference between total revenue and other users’ revenue is used as resource expenditure cost.
[0050] Specifically, the VCG bidding mechanism means that in a scenario where multiple users compete for a certain resource, the user who wins the competition takes the right to use the resource of the losing user, thereby causing the user who is not allocated computing resources to suffer losses, which need to be paid by the winner. Based on this strategy, the resource expenditure costs for users who obtain computing resources are priced, which can further ensure that the social contribution of computing resources is maximized. The specific calculation method is to calculate the difference between the total revenue obtained by the external provider when the target user does not participate in the allocation and the revenue obtained by the external provider from other users when the target user participates in the allocation. The formula for the above calculation steps is expressed as follows:
[0051]
[0052] In the formula, is the resource expenditure fee that target user i needs to pay for using one unit of computing resources. is the computing resource allocated to target user i by edge cluster j when target user i participates in computing resource allocation, b f It is the resource quotation of other users for using one unit of computing resources. is the computing resource allocated to other user f by edge cluster j in the second computing resource, It is the computing resource allocated to other user f by edge cluster j in the first computing resource.
[0053] Through the above steps, the technical solution provided by this application first allocates target computing resources that are no greater than the computing resource requirements from the target edge cluster to the target user based on the computing resource requirements of the target user; then, based on the resource benefits obtained by the target user using the computing resources and the resource costs of the computing resources provided by the external provider, the social benefit value corresponding to the target computing resources is calculated; then, with the target computing resources being no greater than the total amount of computing resources of the target edge cluster and the social benefit value increasing as the goal, the target computing resources are iteratively optimized and adjusted. Thus, the target computing resources allocated to the target user are made more reasonable in magnitude based on the social benefit value that represents the maximum social contribution as an indicator, reducing the waste of computing resources.
[0054] In addition, the present invention also adjusts the allocated target computing resources based on the benefits of each user and the benefits of external providers, so that the allocation of target resources not only ensures that the social contribution is as large as possible, but also maximizes the benefits of each user and external provider, thereby further improving the social contribution of computing resources.
[0055] like Figure 2 As shown, this embodiment also provides an edge cluster computing resource allocation device, the device comprising:
[0056] The initial allocation module 101 is used to allocate target computing resources not greater than the computing resource requirements from the target edge cluster to the target user based on the computing resource requirements of the target user. For details, please refer to the relevant description of step S101 in the above method embodiment, which will not be repeated here.
[0057] The social benefit module 102 is used to calculate the social benefit value corresponding to the target computing resource based on the resource benefit obtained by the target user using the computing resource and the resource cost of the computing resource provided by the external provider. For details, please refer to the relevant description of step S102 in the above method embodiment, which will not be repeated here.
[0058] The resource adjustment module 103 is used to iteratively optimize and adjust the target computing resources with the target computing resources being no greater than the total computing resources of the target edge cluster and the social benefit value increasing as the goal until the preset conditions are met. For details, see the relevant description of step S103 in the above method embodiment, which will not be repeated here.
[0059] Specifically, in one embodiment, an edge cluster computing resource allocation device further includes:
[0060] The user profit module is used to calculate the net income of the target user based on the resource income and the resource expenditure fees paid by the target user for the target computing resources; for details, please refer to the relevant description of step one in the above method embodiment, which will not be repeated here.
[0061] The second adjustment module is used to iteratively optimize and adjust the target computing resources with the goal of increasing net income until the preset conditions are met. For details, please refer to the relevant description of step 2 in the above method embodiment, which will not be repeated here.
[0062] Specifically, in one embodiment, an edge cluster computing resource allocation device further includes:
[0063] The provider profit module is used to calculate the second net income of the external provider based on the resource cost and the resource expenditure fee paid by the target user for the target computing resource. For details, please refer to the relevant description of step 3 in the above method embodiment, which will not be repeated here.
[0064] The third adjustment module is used to iteratively optimize and adjust the target computing resources with the second net income increasing as the goal until the preset condition is met. For details, please refer to the relevant description of step 4 in the above method embodiment, which will not be repeated here.
[0065] An edge cluster computing resource allocation device provided in an embodiment of the present invention is used to execute an edge cluster computing resource allocation method provided in the above embodiment. Its implementation method and principle are the same. For details, please refer to the relevant description of the above method embodiment, which will not be repeated here.
[0066] Through the collaborative cooperation of the above-mentioned components, the technical solution provided by this application first allocates target computing resources that are no greater than the computing resource requirements from the target edge cluster to the target user based on the computing resource requirements of the target user; then, based on the resource benefits obtained by the target user using the computing resources and the resource costs of the computing resources provided by the external provider, the social benefit value corresponding to the target computing resources is calculated; then, with the target computing resources being no greater than the total amount of computing resources of the target edge cluster and the social benefit value increasing as the goal, the target computing resources are iteratively optimized and adjusted. Thus, the target computing resources allocated to the target user are made more reasonable in magnitude based on the social benefit value that represents the maximum social contribution as an indicator, reducing the waste of computing resources.
[0067] In addition, the present invention also adjusts the allocated target computing resources based on the benefits of each user and the benefits of external providers, so that the allocation of target resources not only ensures that the social contribution is as large as possible, but also maximizes the benefits of each user and external provider, thereby further improving the social contribution of computing resources.
[0068] Figure 3 An electronic device according to an embodiment of the present invention is shown, the device includes a processor 901 and a memory 902, which can be connected via a bus or other means. Figure 3 The example of connecting through bus is taken in the following.
[0069] The processor 901 may be a central processing unit (CPU). The processor 901 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.
[0070] The memory 902 is a non-transitory computer-readable storage medium that can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as program instructions / modules corresponding to the methods in the above method embodiments. The processor 901 executes various functional applications and data processing of the processor by running the non-transitory software programs, instructions and modules stored in the memory 902, that is, implementing the methods in the above method embodiments.
[0071] The memory 902 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required by at least one function; the data storage area may store data created by the processor 901, etc. In addition, the memory 902 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 902 may optionally include a memory remotely arranged relative to the processor 901, and these remote memories may be connected to the processor 901 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0072] One or more modules are stored in the memory 902 , and when executed by the processor 901 , the method in the above method embodiment is executed.
[0073] The specific details of the above electronic device can be understood by referring to the corresponding descriptions and effects in the above method embodiments, and will not be repeated here.
[0074] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the implemented program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above-mentioned types of memory.
[0075] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A method for allocating computing resources in an edge cluster, characterized in that: The method comprises: Based on the computing resource demand of the target user, a target computing resource no greater than the computing resource demand is allocated to the target user from the target edge cluster; Calculate the social benefit value corresponding to the target computing resource based on the resource benefit obtained by the target user using the computing resource and the resource cost of the computing resource provided by the external provider; With the target computing resources being no greater than the total amount of computing resources of the target edge cluster and the social benefit value increasing as the goals, the target computing resources are iteratively optimized and adjusted until preset conditions are met.
2. The method according to claim 1, characterized in that The method further comprises: Calculate the net income of the target user based on the resource income and the resource expenditure fee paid by the target user for the target computing resource; With the goal of increasing the net benefit, the target computing resources are iteratively optimized and adjusted until a preset condition is met.
3. The method according to claim 2, characterized in that The method further comprises: Calculating a second net income of the external provider based on the resource cost and the resource expenditure fee paid by the target user for the target computing resource; With the goal of increasing the second net benefit, the target computing resources are iteratively optimized and adjusted until a preset condition is met.
4. The method according to claim 2, characterized in that: The step of calculating the resource expenditure fee paid by the target user for the target computing resource comprises: The resource expenditure fee paid by the target user for the target computing resource is calculated based on the VCG mechanism.
5. The method according to claim 4, characterized in that The calculating, based on the VCG mechanism, the resource expenditure fee paid by the target user for the target computing resource includes: Acquire a first computing resource and a second computing resource allocated to other users except the target user, wherein the first computing resource is the computing resource obtained by the other users when the target user participates in the allocation, and the second computing resource is the computing resource obtained by the other users when the target user does not participate in the allocation; Calculate the total benefit through the resource quotations of other users, the resource cost and the second computing resource, where the total benefit is the total benefit obtained by the external provider when the target user does not participate in the allocation; Calculate other users' benefits through resource quotations of other users, the resource costs, the target computing resources and the first computing resources, wherein the other users' benefits are benefits obtained by the external provider from the other users when the target user participates in the allocation; The difference between the total revenue and the revenue of other users is used as the resource expenditure fee.
6. An edge cluster computing resource allocation device, characterized in that: The device comprises: An initial allocation module, configured to allocate target computing resources no greater than the computing resource demand from a target edge cluster to the target user based on the computing resource demand of the target user; A social benefit module, used to calculate the social benefit value corresponding to the target computing resource based on the resource benefit obtained by the target user using the computing resource and the resource cost of the computing resource provided by the external provider; The resource adjustment module is used to iteratively optimize and adjust the target computing resources with the target computing resources being no greater than the total amount of computing resources of the target edge cluster and the social benefit value increasing as the goal until the preset conditions are met.
7. The device according to claim 6, characterized in that The device also includes: A user profit module, used for calculating the net income of the target user based on the resource income and the resource expenditure fee paid by the target user for the target computing resource; The second adjustment module is used to iteratively optimize and adjust the target computing resources with the goal of increasing the net income until a preset condition is met.
8. The device according to claim 6, characterized in that The device also includes: A provider profit module, configured to calculate a second net income of the external provider based on the resource cost and the resource expenditure fee paid by the target user for the target computing resource; The third adjustment module is used to iteratively optimize and adjust the target computing resources with the goal of increasing the second net income until a preset condition is met.
9. An electronic device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method according to any one of claims 1 to 5 by executing the computer instructions.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the method according to any one of claims 1 to 5.
