Resource use method, device and system
By determining resource usage plans based on tenants' resource needs and resource point configurations, the business quality and cost issues faced by resource users when selecting and using multiple resource points are resolved, thus ensuring resource demand and optimizing costs.
Patent Information
- Application Number
- CN202410869667.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-29
- Publication Date
- 2025-12-30
AI Technical Summary
Resource users often struggle to determine how to select and utilize resources from multiple resource points to ensure business quality and avoid high costs.
A resource utilization method is provided, which determines the resource utilization plan based on the tenant's resource needs and the resource configuration of multiple resource points, selects and uses the resources of the target resource point, and considers factors such as resource capacity and price in order to meet the tenant's resource needs and reduce costs.
This enables tenants to ensure sufficient resources, reduce resource usage costs, and guarantee business quality when selecting and using resources from multiple resource points.
Smart Images

Figure CN121233280A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer, in particular to a resource usage method, device and system. BACKGROUND
[0002] Resources can be deployed in multiple resource points. For example, multiple regions include multiple resource points, and each resource point is deployed with resources, which can include computing resources, network resources, storage resources, and the like.
[0003] A resource user can use resources of multiple resource points to implement a business. For example, an enterprise uses part of computing resources and part of network resources in three regions of multiple regions to implement a live broadcast business. However, the resource types and resource prices of each resource point can be different, and the resource user has difficulty in determining how to select and use resources of multiple resource points to guarantee the quality of the business and avoid high costs. SUMMARY
[0004] The present application provides a resource usage method, device and system, which can solve the problem that a resource user has difficulty in determining how to use resources of multiple resource points.
[0005] In a first aspect, a resource usage method is provided, which can be applied to a cloud system. The cloud system includes multiple resource points, and the multiple resource points are associated with multiple resource demand points. The method includes determining a resource usage plan of a tenant according to resource demand of the tenant and resource configuration of the multiple resource points. The resource demand of the tenant includes resource demand quantity of at least one resource demand point of the multiple resource demand points. The resource configuration of the resource point includes resource capacity and resource price. The resource usage plan of the tenant is used to indicate resource usage quantity provided by at least one target resource point of the multiple resource points to the at least one resource demand point when the resource demand of the tenant is met. In addition, resources of the at least one target resource point are used according to the resource usage plan of the tenant.
[0006] Through the resource usage method provided by the present application, the resource demand of the tenant is accurately reflected based on information such as resource demand quantity of at least one resource demand point, and the resource configuration of the multiple resource points such as resource capacity and resource price is comprehensively considered. The resource usage plan determined according to the resource demand of the tenant and the resource configuration of the multiple resource points can indicate selection and use of resources of one or more target resource points of the multiple resource points, and the resource usage quantity of the target resource points used can guarantee the resource demand of the tenant (for example, meet the resource demand quantity, and the resource usage cost is low, and the like).
[0007] In a possible implementation manner, the resource demand of the tenant further includes at least one of an allowed resource point or a quality of service demand.
[0008] Thus, the resource usage plan of the tenant obtained by the embodiment of the present application can guarantee that the target resource points for providing resources for the tenant are all allowed resource points, and can also guarantee that the resource usage amount of the determined at least one target resource point can guarantee the service quality requirement of the tenant. In addition, when resources are used according to the resource usage plan, the business of the tenant can run smoothly and meet the service quality requirement.
[0009] In another possible implementation, the resource capacity includes resource capacity of at least one resource model.
[0010] The resource models of different resource points can be different. The resource capacities of different resource models can also be different. In the resource usage method provided by the embodiment of the present application, the resource usage plan is determined based on the resource capacities of various resource models of each resource point, so that the resource usage plan that can guarantee the resource requirement of the tenant can be more accurately determined.
[0011] In another possible implementation, the resource usage plan of the tenant includes a resource usage plan in a target time period.
[0012] Thus, in the resource usage method provided by the embodiment of the present application, the tenant can be provided with a resource usage plan that can guarantee the resource requirement of the tenant in a target time period (for example, meet the resource requirement amount, the resource usage cost is low, etc.), and the tenant experience is better. In addition, it can help guarantee the service quality of the tenant in the target time period.
[0013] In another possible implementation, the resource requirement of the tenant includes a resource requirement in a target time period.
[0014] Thus, in the resource usage method provided by the embodiment of the present application, the resource requirement of the tenant in a target time period can be comprehensively considered, so that the resource usage plan that can guarantee the resource requirement of the tenant in the target time period can be more accurately determined, and the tenant experience is better.
[0015] In another possible implementation, the resource usage amount provided by the at least one target resource point to the at least one resource requirement point includes: a first resource usage amount of the at least one target resource point at a first time in a target time period; and a second resource usage amount of the at least one target resource point at a second time adjacent to the first time in the target time period. The change amount between the second resource usage amount and the first resource usage amount is less than a target threshold.
[0016] In some cases, if the change in resource usage at a target resource point exceeds a target threshold between adjacent time intervals, the target resource point cannot provide the portion of resources exceeding the target threshold. Based on this, the resource usage plan determined by the resource usage method provided in this application embodiment can ensure that the resources used at each time interval are within the resource provisioning capacity of the target resource point. Furthermore, it can help ensure that services can operate smoothly when tenants use resources according to this resource usage plan.
[0017] In another possible implementation, the method further includes determining the resource demand of at least one resource demand point based on the historical resource demand of at least one resource demand point.
[0018] Therefore, in the resource usage method provided in this application embodiment, the resource demand of tenants can be more accurately estimated based on the historical resource demand at the resource demand point, thereby enabling a more accurate determination of a resource usage plan that can guarantee the resource demand of tenants.
[0019] In another possible implementation, the method also includes obtaining the tenant's actual resource requirements and adjusting the tenant's resource usage plan accordingly.
[0020] There may be discrepancies between a tenant's actual resource needs and their projected resource needs. Therefore, adjusting a tenant's resource usage plan based on their actual resource needs can make the plan more accurately meet those needs.
[0021] In another possible implementation, the method for determining a tenant's resource usage plan based on the tenant's resource requirements and the resource configuration of multiple resource points includes: performing a target model calculation based on the tenant's resource requirements and the resource configuration of multiple resource points to obtain the tenant's resource usage plan. The target model is used to indicate the cost of resource usage provided by at least one target resource point to at least one resource requirement point when the tenant's resource requirements are met.
[0022] Based on this, by performing target model calculations, a tenant's resource usage plan can be determined according to resource usage costs, tenant resource requirements, and resource configurations across multiple resource points. This ensures that the resulting tenant resource usage plan meets cost requirements, such as being the lowest or minimum cost among available resource usage options.
[0023] In another possible implementation, the method may also include storing the tenant's actual resource requirements, resource configurations across multiple resource points, and the tenant's adjusted resource usage plan. This stored data can serve as historical resource usage data.
[0024] In another possible implementation, the method may also include determining the resource usage plans of tenants for future times based on historical resource usage data.
[0025] Therefore, preserving historical resource usage data facilitates data analysis and helps understand tenants' actual resource usage plans. Furthermore, combining historical resource usage data to determine future tenant resource usage plans can improve the accuracy of these plans.
[0026] In another possible implementation, using resources from at least one target resource point among multiple resource points, according to the resource usage plan, includes: providing feedback on the resource usage plan to the tenant and responding to purchase operations.
[0027] By providing tenants with feedback on resource usage plans, tenants can make their own decisions on whether to purchase and use resources according to the plan, resulting in a better tenant experience.
[0028] In another possible implementation, using resources from at least one target resource point according to the tenant's resource usage plan includes: sending the resource usage plan to a device at least one resource demand point, the resource usage plan being used to instruct the device at at least one resource demand point to send multiple tasks of the tenant to the device at at least one target resource point for processing according to the resource usage plan.
[0029] By sending the tenant's resource usage plan to the device at the resource demand point, it is ensured that the tenant's tasks received or generated by the device at the resource demand point can be forwarded to the device at the resource point for processing in accordance with the resource usage plan, thus ensuring the quality of the tenant's services.
[0030] In another possible implementation, the resources include at least one of computing resources, network resources, and storage resources.
[0031] Secondly, a resource usage apparatus is provided, comprising a usage plan determination module and a usage plan module. The usage plan determination module is used to determine a tenant's resource usage plan based on the tenant's resource requirements and the resource configurations of multiple resource points. The tenant's resource requirements include the resource demand quantity of at least one of the multiple resource demand points. The resource configuration of the resource points includes resource capacity and resource price. The tenant's resource usage plan indicates the amount of resource usage provided by at least one target resource point to at least one resource demand point when the tenant's resource requirements are met. The usage plan module is used to utilize the resources of at least one target resource point according to the tenant's resource usage plan.
[0032] In one possible implementation, the tenant's resource requirements may also include at least one of the allowed resource points or quality of service requirements.
[0033] In another possible implementation, the resource capacity includes the resource capacity of at least one resource machine type.
[0034] In another possible implementation, the tenant's resource usage plan includes a resource usage plan for the target time period.
[0035] In another possible implementation, the tenant's resource requirements include resource requirements for the target time period.
[0036] In another possible implementation, the resource usage provided by at least one target resource point to at least one resource demand point includes: a first resource usage of at least one target resource point at a first moment within a target time period; and a second resource usage of at least one target resource point at a second moment adjacent to the first moment within the target time period. The change between the second resource usage and the first resource usage is less than a target threshold.
[0037] In another possible implementation, the planning determination module is also used to determine the resource requirement of at least one resource requirement point based on the historical resource requirements of at least one resource requirement point.
[0038] In another possible implementation, the planning module is also used to obtain the tenant's actual resource requirements and adjust the tenant's resource usage plan according to the actual resource requirements.
[0039] In another possible implementation, the planning determination module is also used to: perform target model calculations based on the tenant's resource requirements and the resource configuration of multiple resource points to obtain the tenant's resource usage plan method. The target model is used to indicate the cost of resource usage provided by at least one target resource point to at least one resource requirement point when the tenant's resource requirements are met.
[0040] In another possible implementation, the planning module is also used to store the tenant's actual resource requirements, resource configurations at multiple resource points, and the tenant's adjusted resource usage plan. This stored data can serve as historical resource usage data.
[0041] In another possible implementation, the planning determination module is also used to determine the resource usage plans of tenants for future times based on historical resource usage data.
[0042] In another possible implementation, the planning module is also used to provide feedback on resource usage plans to tenants and to respond to purchase requests.
[0043] In another possible implementation, the planning module is also used to send a resource usage plan to a device at least one resource demand point. The resource usage plan is used to instruct the device at least one resource demand point to send multiple tasks of the tenant to a device at least one target resource point for processing in accordance with the resource usage plan.
[0044] Thirdly, a resource utilization system is provided, the system comprising at least one means for performing the resource utilization method as described in the first aspect.
[0045] Fourthly, a computing device is provided, comprising a processor and a memory. The processor is configured to execute instructions stored in the memory to cause the computing device to perform the resource usage method as described in the first aspect.
[0046] Fifthly, a computing device cluster is provided, comprising at least one computing device, wherein each computing device includes a processor and a memory; and the processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device to cause the computing device cluster to perform the resource usage method as described in the first aspect.
[0047] Sixthly, a chip system is provided, comprising a processor and a power supply circuit. The power supply circuit supplies power to the processor, which executes the operational steps of the resource usage method as described in the first aspect.
[0048] In a seventh aspect, a computer program product comprising instructions is provided, which, when executed by at least one computing device, cause the at least one computing device to perform the resource usage method as described in the first aspect.
[0049] Based on the implementation methods provided in the above aspects, this application can be further combined to provide more implementation methods.
[0050] The following description includes more specific details about the implementation methods provided for the above aspects. Attached Figure Description
[0051] Figure 1 This is a schematic diagram of the architecture of a resource usage system provided in an embodiment of this application;
[0052] Figure 2 A flowchart illustrating the resource usage method provided in the embodiments of this application. Figure 1 ;
[0053] Figure 3 A flowchart illustrating the resource usage method provided in the embodiments of this application. Figure 2 ;
[0054] Figure 4 This is a schematic diagram of the structure of the resource usage device provided in the embodiments of this application;
[0055] Figure 5 A schematic diagram of the structure of a computing device provided in an embodiment of this application. Detailed Implementation
[0056] To facilitate understanding, the terms or concepts used in this application will be introduced first.
[0057] The resources involved in the embodiments of this application may include resources related to computer technology or Internet technology, such as computing resources, network resources, and storage resources. Computing resources can be used for computational tasks such as data processing, network resources can be used for data transmission tasks, and storage resources can be used for data storage / retrieval tasks.
[0058] A resource point can refer to the identifier of a resource location, such as the region where the resource is deployed, or the identifier of a resource device (such as the identifier of a cluster of multiple computing devices).
[0059] Resources at a resource point can be provided by a resource provider, and resource users incur costs when using those resources. For example, using computing resources incurs computing resource costs, using network resources incurs network resource costs, and using storage resources incurs storage resource costs.
[0060] Different resource locations may have different resource capacities, resource models, and resource prices.
[0061] The resource capacity of a resource point can reflect the amount of resources contained in the resource point or the task processing capacity of the resource point.
[0062] As an example, the first resource point includes 20 computing devices of type c1, the second resource point includes 30 computing devices of type c2, and the third resource point includes 50 computing devices of type c3.
[0063] The unit time price for using a C1 computing device is 10 yuan, the unit time price for using a C2 computing device is 12 yuan, and the unit time price for using a C3 computing device is 13 yuan.
[0064] As another example, the network equipment included in the first resource point provides 10 network lines, the network equipment included in the second resource point provides 20 network lines, and the network equipment included in the third resource point provides 30 network lines.
[0065] The unit bandwidth price for one network line using the first resource point in region A is 0.85 yuan, the unit bandwidth price for one network line using the second resource point in region A is 0.95 yuan, and the unit bandwidth price for one network line using the third resource point in region A is 1.1 yuan.
[0066] As another example, the storage devices included in the first resource point provide 10,000 GB of storage space, the storage devices included in the second resource point provide 15,000 GB of storage space, and the storage devices included in the third resource point provide 16,000 GB of storage space.
[0067] The storage devices at the first, second, and third resource points can be of the same type, and the unit time price for using the storage space at the first, second, and third resource points in region A is 0.09 yuan.
[0068] Alternatively, the storage device types of the first resource point, the second resource point, and the third resource point can be different, and the unit time price for using the first resource point in region A is 0.09 yuan, the unit time price for using the second resource point in region A is 0.15 yuan, and the unit time price for using the third resource point in region A is 0.18 yuan.
[0069] Business users and other resource users can utilize resources from multiple resource points to implement their business needs. For example, resource users can include enterprises, government departments, and others. Furthermore, resource users can use resources to implement various required business processes such as live streaming transcoding, cloud gaming, image processing, and e-commerce.
[0070] When resource users select one or more resource points from a pool of resources, they expect the selected resources to guarantee the quality of their business operations and, more importantly, to reduce resource usage costs.
[0071] However, the resource capacity, equipment type, and price may vary among different resource points, making it difficult for resource users to know how to select and use resources from multiple resource points to ensure service quality and avoid higher costs.
[0072] In some embodiments, resource users can select and use resources from resource points closest to the location where the service takes place to implement the service. For example, when a resource user provides live streaming or other services to an end user, the resource user can select and use resources from resource points closest to the end user's location (e.g., region A) to implement the service.
[0073] However, this method only considers distance and cannot guarantee that the selected and used resources can meet business needs such as the required amount of resources and avoid high costs. For example, the computing resources at the nearest resource point may be expensive, resulting in higher resource usage costs. Furthermore, the resource capacity of the nearest resource point may not be sufficient to meet business demands.
[0074] In other embodiments, resource users can select multiple target resource points from multiple resource points based on human experience, and select the resource usage amount provided by each target resource point. Based on this selection scheme, the resources of the multiple target resource points are used to implement the business.
[0075] However, this method relies on human experience, which cannot guarantee that the selected and used resources will ensure service quality or avoid high costs. For example, resource allocation determined by human experience is generally conservative in order to ensure availability, making it difficult to fully utilize resources at lower-cost locations. Furthermore, human experience cannot adequately consider the geographical location of resource points relative to the service location; the selected target resource points may lead to unnecessary cross-regional resource usage, resulting in unnecessary network resource consumption or a decline in service quality. Additionally, solutions selected through human experience are rarely modified; when resource requirements change, service quality may not be guaranteed.
[0076] In other embodiments, resources from multiple resource points can be uniformly managed through a management platform (e.g., a sinking network). When resource users need to use resources, they can select the resource point with the lowest price on the management platform and use the resources of the selected resource point to perform their business.
[0077] However, this method can only support the simple selection of the lowest-priced resource point when using resources, and it is difficult to guarantee that the selected and used resources can guarantee the quality of business services, and that the resource usage cost will remain low for a period of time.
[0078] To ensure service quality and avoid high costs when using resources from multiple resource points, this application provides a resource usage method. The method includes determining a tenant's resource usage plan based on the tenant's resource requirements and the resource configurations of multiple resource points. The tenant's resource requirements include the resource demand of at least one resource point among multiple resource point requirements associated with the multiple resource points. The resource configurations of the resource points include resource capacity and resource price. The tenant's resource usage plan indicates the amount of resources provided by at least one target resource point to at least one resource point when the tenant's resource requirements are met. Furthermore, the method utilizes the resources of at least one target resource point according to the tenant's resource usage plan.
[0079] The resource usage method provided in this application accurately reflects the tenant's resource needs through demand information such as the resource demand quantity of at least one resource demand point, and comprehensively considers resource configurations such as resource capacity and resource price of multiple resource points. The resource usage plan determined based on the tenant's resource needs and the resource configuration of multiple resource points can indicate the selection and use of the resource usage of one or more target resource points among multiple resource points, and the resource usage of the target resource points used can guarantee the tenant's resource needs (e.g., meet the resource demand quantity, and have low resource usage costs).
[0080] In this embodiment of the application, a tenant may refer to a resource user.
[0081] A resource demand point can refer to an identifier of the location where resource usage needs are generated. For example, it can refer to the area where resource usage needs are generated, or it can refer to the identifier of the equipment that generates resource usage needs. Resource demand points can generate resource requirements based on the tenant's business needs. Furthermore, a resource demand point can use resources from one or more resource points among multiple resource points to fulfill the tenant's business needs.
[0082] The system architecture provided in the embodiments of this application is described below.
[0083] Figure 1 This is a schematic diagram of the architecture of a resource usage system provided in an embodiment of this application. The resource usage system 100 can be used to implement the resource usage method proposed in an embodiment of this application. Figure 1 As shown, the resource utilization system 100 includes multiple resource points 110, each resource point being associated with a resource demand point 120. The resource utilization system 100 also includes a management device 130.
[0084] In some embodiments, the resource utilization system 100 may include a cloud system / cloud platform. The resources included in the multiple resource points 110 and other components of the resource utilization system 100 may constitute cloud resources.
[0085] Multiple resource points 110 may include resource points 110-1, 110-2, 110-3, etc. Each resource point may include resources, such as one or more of computing resources, network resources, and storage resources.
[0086] Computing resources can be provided by computing devices. As an example, a first resource point is deployed in a first region, and the first resource point includes a cluster of multiple computing devices. Computing devices can include servers or cloud services, and can also include terminals such as mobile terminals, laptops, AR / VR devices, etc.
[0087] Network resources can be provided by network devices. As an example, the first resource point includes a network device that provides multiple network lines. Network devices can include various network devices such as gateways used to build or connect networks for data transmission.
[0088] Storage resources can be provided by storage devices. As an example, the first resource point includes a storage device that provides data storage space. Storage devices can include various storage devices that can be used for data storage, such as hard drives and magnetic tapes.
[0089] Resource requirement point 120 may include one or more resource requirement points, such as multiple resource requirement points 120-1, 120-2, etc.
[0090] Resource requirement point 120 may include computing devices or other devices that can be used to implement the functions of the resource requirement points described below.
[0091] In some embodiments, the device at resource requirement point 120 may be an edge device, or edge device, in a cloud system / cloud platform.
[0092] In some embodiments, the device at resource demand point 120 may be a node in a content delivery network (CDN).
[0093] The equipment at resource requirement point 120 is used to help fulfill the tenant's business needs and to generate resource requirements based on the tenant's business needs. Furthermore, the equipment at resource requirement point 120 can use resources from one or more of the multiple resource points 110 to fulfill the tenant's business needs.
[0094] As an example, a tenant provides live streaming and other business services to user terminal 140. When implementing these services, user terminal 140 sends business-related tasks (such as computing tasks, data transmission tasks, data storage / retrieval tasks, etc.) to resource demand point 120. Resource demand point 120 forwards the multiple tasks sent by multiple user terminals 140 to one or more devices among multiple resource points 110 for processing.
[0095] At this point, the resource requirements of resource requirement point 120 include the resource requirements for processing the multiple tasks received.
[0096] In some embodiments, multiple resource points 110, resource demand points 120, and user terminals 140 can form a cloud-edge-device structure.
[0097] In another example, a tenant can directly use the computing device at resource point 120 to perform business tasks. For example, a government department can use the computing device at resource point 120 to perform image processing tasks. In this case, the computing device at resource point 120 can generate tasks and send them to the devices at one or more of the multiple resource points 110 for processing.
[0098] At this point, the resource requirements of resource requirement point 120 include the resource requirements for processing the tasks generated by the resource requirement point.
[0099] In this embodiment of the application, for ease of description, when a tenant implements a business service, the tasks related to the tenant's business received or generated by the device at resource requirement point 120 can be referred to as the tenant's tasks.
[0100] The resource requirements of different resource demand points can be different. For example, if the first resource demand point receives 20 tasks and the second resource demand point receives 40 tasks, then the resource requirements of the first resource demand point and the second resource demand point will be different.
[0101] The management device 130 can be a server or cloud, or it can be a terminal, such as a mobile terminal, a laptop, AR / VR, etc.
[0102] The management device 130 can be used to perform the steps in the resource usage method provided in the embodiments of this application.
[0103] For example, management device 130 can be used to obtain tenants’ resource requirements and resource configurations for multiple resource points.
[0104] The management device 130 can obtain tenant resource requirement data (such as historical resource requirement data or current time resource requirement data) from resource requirement point 120 or a database, and determine the required tenant resource requirements. Furthermore, the management device 130 can obtain resource configurations for multiple resource points from multiple resource points 110 or a database.
[0105] Furthermore, the management device 130 can also be used to determine the tenant's resource usage plan based on the tenant's resource needs and the resource configuration of multiple resource points. The tenant's resource usage plan can be used to indicate the amount of resource usage provided by at least one target resource point among the multiple resource points 110 to at least one target resource demand point when the tenant's resource needs are met.
[0106] The resource point selected and used among multiple resource points 110 as indicated by the tenant's resource usage plan can be referred to as the target resource point. The resource demand point used by the tenant can be referred to as the target resource demand point.
[0107] Additionally, the management device 130 can also be used to provide tenants with their resource usage plans, for example, by displaying the resource usage plan on a display device or by sending it to the tenant's device, so that the tenant is aware of the resource usage plan and can purchase and use resources according to the resource usage plan.
[0108] Furthermore, the management device 130 can also be used to send the tenant's resource usage plan to a device at least one of the target resource demand points 120. The device at least one target resource demand point can, according to the resource usage plan, send multiple tasks received from the tenant to the device at least one target resource point for processing.
[0109] For more details regarding the steps in the resource usage method provided in this application's embodiments, please refer to... Figure 2 And related explanations.
[0110] It is worth noting that, Figure 1 This is merely a schematic diagram of the architecture of a resource utilization system provided in this application embodiment. The positional relationships between the devices, components, modules, etc. shown in the figure do not constitute any limitation.
[0111] For example, inFigure 1 In this context, the management device 130 is different from the devices at the multiple resource points 110 and the resource demand point 120. In other cases, the management device 130 may also be a device at the multiple resource points 110, or it may also be a device at the resource demand point 120.
[0112] The resource usage method provided in the embodiments of this application is described in detail below. The resource usage method provided in the embodiments of this application can... Figure 1 The resources shown are implemented on system 100.
[0113] Figure 2 This is a flowchart illustrating the resource usage method provided in the embodiments of this application. Figure 1 . Figure 2 The resource usage method shown can be executed by a computing device. For example, it can be executed by the management device 130 in the resource usage system 100.
[0114] like Figure 2 As shown, the method includes the following steps.
[0115] Step 210: Obtain the tenant's resource requirements and the resource configuration of multiple resource points.
[0116] For any given tenant, their business operations can be facilitated by devices at one or more resource demand points. Furthermore, devices at resource demand points can utilize resources from one or more of these resource points to process tasks and fulfill the tenant's business needs. For more detailed information on resource demand points, please refer to [link to relevant documentation]. Figure 1 And related content.
[0117] A tenant’s resource requirements include the resource requirements of at least one resource requirement point available to the tenant (as mentioned above, the resource requirement point available to the tenant may be referred to as the target resource requirement point).
[0118] For example, tenant a can use Figure 1 The resource requirements of tenant a may include the resource requirements of a portion of the available resource requirements points in the resource requirement points 120 (e.g., multiple resource requirements points may be included in multiple geographical locations).
[0119] Resource requirements for a resource demand point may include the amount of resources required. In some embodiments, they may also include quality of service requirements, permitted resource points, etc.
[0120] Resource requirements can refer to the amount of resources needed to process a tenant's tasks.
[0121] For example, to process n computing tasks for a tenant, x computing devices with a computing power (which can refer to the amount of computing tasks that a computing device can complete per unit of time) of 32P are needed. Therefore, the resource requirement includes x computing devices with a computing power of 32P.
[0122] For example, if m network lines are needed to handle n data transmission tasks for a tenant, then the resource requirement includes m network lines, or y network devices that can provide m network lines.
[0123] The resource requirements can vary depending on the target resource demand point.
[0124] For example, the resource requirement for the first target resource requirement point includes 20 computing devices with a computing power of 32P, and the resource requirement for the second target resource requirement point includes 30 computing devices with a computing power of 32P.
[0125] In some embodiments, the resource requirement of a target resource requirement point includes the resource requirement of the target resource requirement point within a target time period.
[0126] The target time can be set according to needs. It can be a target time period (such as a day, a week, a month, etc.) or a target moment (such as a certain moment on a certain day).
[0127] In some embodiments, the target time can be a future time. For example, it can be a future time period (e.g., a future day, week, month, etc.) or a future moment (e.g., a specific moment in the future).
[0128] like Figure 2 As shown in Figure 212, the resource demand at a target resource demand point can include a resource demand curve for a target time period. The horizontal axis of the curve indicates time, and the vertical axis indicates resource demand.
[0129] In some embodiments, resource requirement data for at least one target resource requirement point used by a tenant can be obtained from the device or database of the target resource requirement point. Furthermore, the required resource requirement amount for at least one target resource requirement point can be determined based on the obtained resource requirement data for the at least one target resource requirement point.
[0130] For example, if the target time is a future period, historical resource demand data for at least one target resource demand point used by the tenant within a historical period can be obtained using the aforementioned method. Furthermore, based on the historical resource demand data for the at least one target resource demand point, the resource demand of that at least one target resource demand point within the target time period can be predicted, which is the required resource demand for the at least one target resource demand point.
[0131] The historical time can be set according to needs. It can be a historical period (such as a day, week, or month in history) or a historical moment (such as a certain moment on a certain day in history).
[0132] In some embodiments, this can be achieved through various available algorithms: predicting the resource demand of at least one target resource demand point within a target time period based on historical resource demand data of at least one target resource demand point.
[0133] As an example, for each target resource demand point, the resource demand within the target time period can be determined based on the average or maximum historical resource demand over a historical period. Alternatively, for each target resource demand point, the resource demand within the target time period can be determined using a predictive model (such as a machine learning model) based on historical resource demand over a historical period.
[0134] Service quality requirements can include business-related service quality requirements, such as task processing speed requirements, task processing latency requirements, and resource cost requirements.
[0135] For example, task processing speed requirements may include the amount of tasks processed per unit time being greater than the task volume threshold, task processing latency requirements may include the task processing latency being less than the latency threshold, and resource cost requirements may include the cost of the resources used being less than the cost threshold.
[0136] Service quality requirements can be set according to the tenant's needs.
[0137] The resource points that a resource demand point is allowed to use can refer to resource points where the resource demand point can use its resources.
[0138] The resource points that a resource demand point is allowed to use can be determined based on the relationships between resource demand points and other resource points. For example, if a device at a resource demand point is communicatively connected to a device at another resource point, then the resource demand point can use the resources of that resource point.
[0139] The resource points that a resource requirement point is allowed to use can also be determined based on the configuration information of the resource requirement point or the tenant's requirement information. For example, if the configuration information of the resource requirement point or the tenant's requirement information indicates that a resource requirement point can use the resources of one or more resource points, then the indicated available resource points are the allowed resource points.
[0140] Resource configuration at a resource point can include configuration information such as resource capacity and resource price.
[0141] As mentioned earlier, the resource capacity of a resource point can reflect the amount of resources included in the resource point or the task processing capacity of the resource point.
[0142] As an example, the resource capacity of computing resources can include the number of computing devices, the number of processors, and the computing power of the computing devices.
[0143] Another example is that the resource capacity of network resources can include the number of network devices, the number of network lines, network bandwidth, etc.
[0144] Another example is that the resource capacity of storage resources can include the storage space size of the storage device, data storage / read speed, etc.
[0145] Resource pricing refers to the fees charged for using resources. The billing method for resource pricing can be determined based on the resource's location. Examples include the price per unit time for computing equipment, the price per unit bandwidth for network lines, and the price per unit time for storage space.
[0146] In some embodiments, the equipment at a resource point may include one or more device models. The resource capacity of a resource point may include the resource capacity of at least one device model.
[0147] In some embodiments, resource configurations for multiple resource points can be obtained from devices or databases at multiple resource points.
[0148] In some embodiments, the resource configuration of a resource point includes the resource configuration within a target time period. The target time is similar to the target time in the resource requirements within the target time period of the aforementioned resource requirement points.
[0149] As an example, such as Figure 2 As shown in Figure 214, the resource capacity of a resource point can include a resource capacity curve for a target time period. The horizontal axis of the resource capacity curve indicates time, and the vertical axis indicates resource capacity.
[0150] As an example, such as Figure 2 As shown in Figure 216, the resource price of a resource point can include a resource price curve for a target time period. The horizontal axis of the resource price curve indicates time, and the vertical axis indicates resource price.
[0151] Step 220: Determine the tenant's resource usage plan based on the tenant's resource needs and the resource configuration of multiple resource points.
[0152] A tenant’s resource usage plan can be used to indicate the amount of resource usage provided by at least one target resource point to at least one target resource demand point when the tenant’s resource demand is met.
[0153] As an example, consider resources including computing resources, such as... Figure 2As shown in Figure 218, tenant a's resource usage plan may include 4 target resource demand points (represented by n1, n2, n3, and n4 respectively) and may include 4 target resource points (represented by s1, s2, s3, and s4 respectively).
[0154] Among them, the resource usage provided by s1 to n1 includes 10 computing devices, the resource usage provided by s2 to n1 includes 30 computing devices, the resource usage provided by s3 to n1 includes 20 computing devices, and the resource usage provided by s4 to n1 includes 5 computing devices.
[0155] The resources provided by s1 to n2 include 20 computing devices, the resources provided by s2 to n2 include 25 computing devices, the resources provided by s3 to n2 include 10 computing devices, and the resources provided by s4 to n2 include 3 computing devices.
[0156] The resources provided by s1 to n3 include 5 computing devices, the resources provided by s2 to n3 include 10 computing devices, the resources provided by s3 to n3 include 8 computing devices, and the resources provided by s4 to n3 include 5 computing devices.
[0157] The resource usage provided by s1 to n4 includes 5 computing devices, the resource usage provided by s2 to n4 includes 6 computing devices, the resource usage provided by s3 to n4 includes 5 computing devices, and the resource usage provided by s4 to n4 includes 5 computing devices.
[0158] Furthermore, based on the tenant's resource usage plan, the total resource usage for each target resource point and the total resource usage provided to each target resource demand point can also be determined.
[0159] For example, in Figure 2 In 218, s1 uses a total of 40 computing devices, s2 uses a total of 75 computing devices, s3 uses a total of 46 computing devices, and s4 uses a total of 18 computing devices.
[0160] And, in Figure 2 In 218, the total resources provided to n1 are 65 computing devices, the total resources provided to n2 are 58 computing devices, the total resources provided to n3 are 28 computing devices, and the total resources provided to n4 are 21 computing devices.
[0161] In some embodiments, a tenant's resource usage plan includes a resource usage plan for a target time period. The target time is similar to the target time in the resource demand within the target time period mentioned above.
[0162] As an example, with the target time being one day from now, the tenant's resource usage plan includes resource usage plans for multiple moments within that day. For instance, the tenant's resource usage plan might include: the resource usage provided by four target resource demand points n1, n2, n3, and n4 to four target resource points s1, s2, s3, and s4 respectively during hours 0-1 of the next day; and the resource usage provided by four target resource demand points n1, n2, n3, and n4 to four target resource points s1, s2, s3, and s4 respectively during hours 1-2 of the next day, and so on.
[0163] In some embodiments, the determined tenant's resource usage plan also satisfies the following condition: within the target time period, the change between the first resource usage of the target resource point and the second resource usage of the target resource point (e.g., the increment of the second resource usage relative to the first resource usage) is less than a target threshold.
[0164] The first resource usage of the target resource point can refer to the resource usage of the target resource point at the first moment (which can be the total resource usage). The second resource usage of the target resource point can refer to the resource usage of the target resource point at the second moment (which can be the total resource usage). The second moment can be a moment adjacent to the first moment. For example, the first moment is the 10th hour, and the second moment is the 11th hour after the first moment.
[0165] The target threshold can be set according to requirements. For example, if the increase in the number of devices created (e.g., virtual machines created) at a resource point at a certain moment relative to the number of devices created at the previous moment is less than 100, then the target threshold can be 100.
[0166] Therefore, the resource usage plan of the tenant obtained through the embodiments of this application can ensure that the resources used at multiple times are within the resource provision capacity of the target resource point, and help ensure that the business can run smoothly when using resources according to the resource usage plan within the target time period.
[0167] In some implementations, the tenant's resource usage method can be obtained by performing target model calculations based on the tenant's resource requirements and the resource configuration of multiple resource points.
[0168] A target model can be used to indicate the total cost of resource usage provided by at least one target resource point to at least one target resource demand point when satisfying a tenant's resource needs. Target models can include various available algorithms or models, such as mathematical equations and machine learning models.
[0169] When performing target model calculations, the target can be to calculate the resource usage provided by at least one target resource point to at least one target resource demand point, such as satisfying the tenant's resource demand and the total cost meeting the resource cost requirements.
[0170] The resource cost requirement can be to minimize the total cost, or the total cost can be less than a cost threshold, etc., and can be set according to needs.
[0171] In some embodiments, performing the target model calculation may further include: performing calculations based on constraints such that the determined resource usage plan satisfies the constraints.
[0172] Constraints may include one or more. The following is a description of the specific content of constraints.
[0173] Constraints may include a total resource usage provided to the target resource demand point exceeding the resource demand of the target resource demand point.
[0174] Constraints may also include that the total resource usage of the target resource point is less than the resource capacity of the target resource point.
[0175] Constraints may also include resource points that the target resource requirement point is allowed to use. If a resource point among multiple resource points is not a resource point that the target resource requirement point is allowed to use (this resource point may be called a non-allowed resource point), then the resources of the non-allowed resource point cannot be provided to the target resource requirement point when performing the target model calculation.
[0176] The constraints may also include that the change between the first resource usage of the target resource point and the second resource usage of the target resource point is less than the target threshold.
[0177] Constraints may also include ensuring that the resource usage of the target resource point meets the quality of service requirements, such as task processing speed requirements and task processing latency requirements.
[0178] As an example, when the resources used include both computing and network resources, the target model can be represented by the following formula:
[0179] Cost = C1 + C2
[0180] C1=∑ r∈R ∑ c∈C ∑ t∈T A rct ×pric r
[0181] C2=∑ n∈N ∑ r∈R ∑ c∈C ∑t∈T A rct ×cost crn ×pric n (1)
[0182] Where R represents a set of multiple resource points or a set of resource types of multiple resource points; r represents any target resource point or any resource type of any target resource point among the multiple resource points; C represents a set of multiple target resource demand points; c represents any target resource demand point; T represents the target time; and t represents any moment within the target time T.
[0183] And, N represents a set of multiple network lines, and n represents any one of the multiple network lines.
[0184] C1 represents the total cost of providing computational resources to at least one target resource demand point from multiple target resource points.
[0185] In C1, A rct This represents the amount of resources that r provides to the target resource demand point c at time t, such as the number of computing devices; pric r This represents the resource price at which r provides the resource usage amount to the target resource demand point c within time t.
[0186] C2 represents the total cost of providing network resource usage from multiple target resource points to at least one target resource demand point.
[0187] In C1, A rct This represents the amount of resources (e.g., the number of network devices) that network line n provides to the target resource demand point c at time t; cost crn This represents the bandwidth usage of r provided by network line n to each network device at time t, representing the bandwidth required by the target resource point c. n This represents the resource price (e.g., unit bandwidth usage price) that r provides to the target resource demand point c for network line n at time t.
[0188] The objective model calculation with the goal of minimizing total cost can be expressed by the following formula:
[0189] Minimize Cost = C1 + C2 (2)
[0190] Minimize Cost means minimizing the total cost.
[0191] In some embodiments, the target model can be calculated using various feasible solution algorithms such as the Lagrange multiplier method and gradient descent method. This yields the resource usage provided by at least one target resource point to at least one target resource demand point among multiple resource points when the tenant's resource needs are met (e.g., by calculating ∑ in the above formula (1)). r∈R ∑ c∈C ∑ t∈ T A rct The value of ), that is, the resource usage plan of the tenant.
[0192] Step 230: Use resources from at least one target resource point according to the tenant's resource usage plan.
[0193] Once you obtain a tenant's resource usage plan, you can use that plan in various ways.
[0194] In some implementations, resource usage plans can be fed back to tenants.
[0195] For example, management device 130 can be a resource provisioning method device that can send the tenant's resource usage plan to the tenant's device, thereby allowing the tenant to access the resource usage plan. For instance, the tenant's device can display the tenant's resource usage plan for easy viewing.
[0196] For example, if a resource provider authorizes a tenant to access resource configurations from multiple resource points, then the management device 130 can be the tenant's device. The management device 130 can directly display the tenant's resource usage plan for the tenant's convenience.
[0197] In some implementations, the computing device, such as management device 130, can also respond to a purchase operation and execute the purchase of resources according to the resource usage plan. For example, the display interface includes a "Purchase" icon, which the user can click, and the computing device then executes the purchase of resources according to the resource usage plan.
[0198] In some implementations, a tenant's resource usage plan can also be sent to a device at at least one target resource demand point. The device at the target resource demand point can then send the received or generated tenant tasks to the device at the at least one target resource demand point for processing, based on the tenant's resource usage plan.
[0199] For example, in tenant a's resource usage plan, the total resource usage of target resource demand point n1 is 65 computing devices, of which target resource point s1 provides 10 computing devices to n1, target resource point s2 provides 30 computing devices to n1, target resource point s3 provides 20 computing devices to n1, and target resource point s4 provides 5 computing devices to n1.
[0200] When device n1, a target resource demand point, receives 130 tasks from tenant a, it can distribute the 130 tasks to devices at multiple target resource points for processing, based on the proportion of resource usage provided by each target resource point to n1 in the total resource usage provided to n1. For example, 20 tasks can be sent to device s1, 60 tasks to device s2, 40 tasks to device s3, and 10 tasks to device s4.
[0201] Figure 3 This is a flowchart illustrating the resource usage method provided in the embodiments of this application. Figure 2 . Figure 3 The resource usage method shown can be executed by a computing device. For example, it can be executed by the management device 130 in the resource usage system 100.
[0202] like Figure 3 As shown, in Figure 2 Based on the provided resource usage method, the following steps 310 and 320 may also be included.
[0203] Step 310: Obtain the tenant's actual resource requirements.
[0204] As mentioned earlier, the resource requirements of the tenant obtained in step 210 can be the resource requirements at an estimated target time (e.g., future time).
[0205] At this point, the actual resource requirements of tenants at the target time can also be obtained. For example, step 210 obtains the resource requirements of tenant A within the next six months, up to June 30th. Step 310 can obtain the actual resource requirements of tenants at June 30th or at various times on June 30th. The actual resource requirements of tenants can be the resource requirements needed to process the actual tasks generated by the tenants.
[0206] Step 320: Adjust the tenant's resource usage plan according to the tenant's actual resource needs.
[0207] There may be a discrepancy between the tenant's actual resource requirements and the tenant's resource requirements obtained in step 210.
[0208] At this point, the tenant's resource usage plan can be adjusted based on the tenant's actual resource needs, resulting in the tenant's adjusted resource usage plan. Furthermore, resources from at least one target resource point can be used based on the adjusted resource usage plan.
[0209] For example, in a tenant's actual resource demand, if the actual resource demand at a certain target resource demand point increases compared to the resource demand at that target resource demand point obtained in step 210 (e.g., the estimated resource demand), this increase can be called the resource increment. Then, based on the resource increment, the total resource usage for that target resource demand point in the resource usage plan can be increased.
[0210] Specifically, based on the priority of the target resource points, a target resource point with higher priority among at least one target resource point that provides resources to the target resource demand point can be identified, and the amount of resources provided by that target resource point to the target resource demand point can be increased.
[0211] The priority of a target resource point can be determined based on demand, such as the resource price of the target resource point. The higher the resource price, the lower the priority of the target resource point.
[0212] For example, in a tenant's actual resource needs, if the actual resource demand for a certain target resource demand point is less than the resource demand for that target resource demand point obtained in step 210 (e.g., the estimated resource demand), the amount of reduction can be called resource reduction. Therefore, based on resource reduction, the total resource usage for that target resource demand point in the resource usage plan can be reduced.
[0213] Specifically, based on the priority of the target resource points, at least one target resource point with lower priority that provides resources to the target resource demand point can be identified, and the amount of resources provided by that target resource point to the target resource demand point can be reduced.
[0214] In some implementations, the method may also include storing the actual resource requirements of the tenants using the resource, the resource configurations of multiple resource points, and the tenants' adjusted resource usage plans. This stored data can serve as historical resource usage data.
[0215] In some embodiments, future resource usage plans for tenants can be determined based on historical resource usage data, thereby improving the accuracy of tenant resource usage plans.
[0216] It is understood that, in order to achieve the functions in the above embodiments, the computing device includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should readily recognize that, based on the units and method steps described in conjunction with the embodiments disclosed in this application, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application scenario and design constraints of the technical solution.
[0217] The above text combines Figure 2 to Figure 3 The present application describes in detail the resource usage method provided according to the embodiments of this application. The following will combine... Figure 4 This application describes the apparatus provided according to the present application. These apparatuses can be used to implement the functions of the processor in the above method embodiments, and thus can also achieve the beneficial effects of the above method embodiments.
[0218] Figure 4 This is a schematic diagram of the structure of a resource usage device provided in an embodiment of this application. Figure 4 As shown, the resource usage device 400 includes a usage plan determination module 410 and a usage plan module 420.
[0219] The planning determination module 410 is used to determine the tenant's resource usage plan based on the tenant's resource requirements and the resource configurations of multiple resource points. The tenant's resource requirements include the resource demand quantity of at least one of the multiple resource demand points. The resource configuration of each resource point includes resource capacity and resource price. The tenant's resource usage plan indicates the amount of resource usage provided by at least one target resource point to at least one resource demand point when the tenant's resource requirements are met. More details about the steps of this method can be found in [link to relevant documentation]. Figure 2 Steps 210-220 and related instructions.
[0220] The plan uses module 420 to utilize resources from at least one target resource point based on the tenant's resource usage plan. More details regarding the steps of this method can be found in [link to relevant documentation]. Figure 2 Step 230 and related instructions.
[0221] In some implementations, tenant resource requirements also include at least one of the allowed resource points or quality of service requirements. More details regarding tenant resource requirements can be found in [link to relevant documentation]. Figure 2 Step 210 and its related instructions.
[0222] In some implementations, resource capacity includes the resource capacity of at least one resource machine type. For more details on resource capacity, please refer to [link to relevant documentation]. Figure 2 Step 210 and its related instructions.
[0223] In some implementations, a tenant's resource usage plan includes a resource usage plan for a target time period. More details about tenant resource usage plans can be found in [link to relevant documentation]. Figure 2 Step 220 and its related instructions.
[0224] In some implementations, tenant resource requirements include resource requirements for a target time period. More details regarding tenant resource requirements can be found in [link to relevant documentation]. Figure 2 Step 210 and its related instructions.
[0225] In some implementations, the resource usage provided by at least one target resource point to at least one resource demand point includes: a first resource usage of at least one target resource point at a first moment within a target time period; and a second resource usage of at least one target resource point at a second moment adjacent to the first moment within the target time period. The change between the second resource usage and the first resource usage is less than a target threshold. More details regarding tenant resource usage plans can be found in [link to relevant documentation]. Figure 2 Step 220 and its related instructions.
[0226] In some implementations, the planning determination module 410 is also used to determine the resource requirement for at least one resource requirement point based on the historical resource requirements of at least one resource requirement point. More details regarding tenant resource requirements can be found in [link to relevant documentation]. Figure 3 Step 210 and its related instructions.
[0227] In some implementations, the planning module 410 is also used to obtain the tenant's actual resource requirements and adjust the tenant's resource usage plan accordingly. More details about the steps of this method can be found in [link to relevant documentation]. Figure 2 And related explanations.
[0228] In some implementations, the planning module 410 is further used to: perform target model calculations based on the tenant's resource requirements and the resource configurations of multiple resource points to obtain a resource usage plan method for the tenant. The target model indicates the cost of providing resource usage from at least one target resource point to at least one resource requirement point when the tenant's resource requirements are met. More details about the steps of this method can be found in [link to relevant documentation]. Figure 3 Step 220 and its related instructions.
[0229] In some implementations, the planning module 410 is also used to store the tenant's actual resource requirements, resource configurations for multiple resource points, and the tenant's adjusted resource usage plan. This stored data can serve as historical resource usage data. For more details on the steps of this method, please refer to [link to relevant documentation]. Figure 3 And related explanations.
[0230] In some implementations, the planning module 410 is also used to determine the resource usage plan for tenants at future times based on historical resource usage data. More details about the steps of this method can be found in [link to relevant documentation]. Figure 2 And related explanations.
[0231] In some implementations, module 420 is also used to provide feedback on resource usage plans to tenants and to respond to purchase requests. More details on the method steps can be found in [link to relevant documentation]. Figure 2 Step 230 and related instructions.
[0232] In some implementations, the planning module 420 is also used to send a resource usage plan to at least one device at a resource demand point. The resource usage plan instructs the device at the at least one resource demand point to send multiple tasks of the tenant to at least one device at a target resource point for processing, according to the resource usage plan. More details about the steps of this method can be found in [link to relevant documentation]. Figure 4 Step 230 and related instructions.
[0233] It should be noted that, Figure 4 The diagram shown is only a structural schematic of the device. Figure 4 The positional relationship between the planning determination module 410 and the planning use module 420 shown does not constitute any limitation. For example, Figure 2 In one device, the planning determination module 410 and the planning usage module 420 are used together; in other cases, the planning determination module 410 and the planning usage module 420 can be used in different devices.
[0234] Optionally, the planning determination module 410 and the planning usage module 420 may each include multiple sub-modules, and these sub-modules can be deployed separately to implement some of the functions of the corresponding modules, such as implementing the aforementioned... Figure 3 or Figure 5 One or more steps of the method for using the provided resources.
[0235] All devices can be implemented in software or hardware. For example, the implementation of resource usage device 400 will be described below.
[0236] As an example of a software functional unit, the resource utilization device 400 may include code running on a computing instance. The computing instance may be at least one of a physical host (computing device), a virtual machine, a container, or other computing devices. Further, the aforementioned computing device may be one or more. For example, the resource utilization device 400 may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the application may be distributed in the same region or in different regions. The multiple hosts / virtual machines / containers used to run the code may be distributed in the same Availability Zone (AZ) or in different AZs, each AZ including one or more geographically proximate data centers. Typically, a region may include multiple AZs.
[0237] Similarly, multiple hosts / virtual machines / containers used to run this code can be distributed within the same VPC or across multiple VPCs. Typically, a VPC is set up within a single region. Communication between two VPCs within the same region, and between VPCs in different regions, requires a communication gateway to be set up within each VPC to enable interconnection between VPCs.
[0238] As an example of a hardware functional unit, the resource-using device 400 may include at least one computing device, such as a server. Alternatively, the resource-using device 400 may also be a device implemented using an ASIC or a PLD. The aforementioned PLD may be implemented using a CPLD, FPGA, GAL, or any combination thereof.
[0239] The resource-using device 400 includes multiple computing devices that can be distributed within the same region or in different regions. Similarly, the resource-using device 400 can be distributed within the same Availability Zone (AZ) or in different AZs. Likewise, the resource-using device 400 can be distributed within the same Virtual Private Cloud (VPC) or in multiple VPCs. These multiple computing devices can be any combination of computing devices such as servers, ASICs, PLDs, CPLDs, FPGAs, and GALs.
[0240] This application also provides a computing device 500. For example... Figure 5As shown, the computing device 500 includes: a bus 502, a processor 504, a memory 506, and a communication interface 508. The processor 504, memory 506, and communication interface 508 communicate with each other via the bus 502. The computing device 500 can be a server or a terminal device. It should be understood that this application does not limit the number of processors and memories in the computing device 500. Optionally, the processor 504 of the computing device 500 can be connected to a display or input device via the communication interface 508. Figure 5 (Not shown in the image).
[0241] Bus 502 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of representation, Figure 2 The bus 502 may be represented by a single line, but this does not mean that there is only one bus or one type of bus. The bus 502 may include a path for transmitting information between various components of the computing device 500 (e.g., memory 506, processor 504, communication interface 508).
[0242] Processor 504 may include any one or more processors such as a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP). In this embodiment, processor 504 is used to execute the functions described in this embodiment. Figure 3 or Figure 2 The steps or operations for using the provided resources.
[0243] Memory 506 may include volatile memory, such as random access memory (RAM). Processor 504 may also include non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid state drive (SSD).
[0244] The memory 506 stores executable program code, and the processor 504 executes the executable program code to implement the functions of the aforementioned usage plan determination module 410 and usage plan module 420, thereby realizing the embodiments of this application. Figure 3 or Figure 2 The provided method for using resources. That is, the memory 506 stores the method for executing the embodiments of this application. Figure 3 or Figure 2 Instructions for using the provided resources.
[0245] The communication interface 508 uses transceiver modules, such as, but not limited to, network interface cards and transceivers, to enable communication between the computing device 500 and other devices or communication networks.
[0246] The display may include various display devices capable of display functions, such as plasma displays and liquid crystal displays. The computing device 500 can implement the functions described in the embodiments of this application through the display. Figure 3 or Figure 2 The display functions involved in the methods of using the provided resources.
[0247] Input devices can include various input devices that enable information / signal input, such as keyboards, mice, and touch screens.
[0248] This application also provides a computing device cluster. The computing device cluster includes at least one computing device 500. The memory 506 in one or more computing devices 500 in the computing device cluster may store the same memory for executing the embodiments of this application. Figure 3 or Figure 2 Instructions for using the provided resources.
[0249] In some possible implementations, the memory 506 of one or more computing devices 500 in the computing device cluster may also store memory for executing the embodiments of this application. Figure 3 or Figure 2 The provided instructions describe the methods for using resources. In other words, a combination of one or more computing devices 500 can jointly execute instructions for performing the embodiments of this application. Figure 3 or Figure 2 Instructions for using the provided resources.
[0250] It should be noted that the memory 506 in different computing devices 500 within the computing device cluster can store different instructions, each used to implement a portion of the functions of the resource utilization device 400. That is, the instructions stored in the memory 506 of different computing devices 500 can implement the functions of one or more modules in the aforementioned usage plan determination module 410 and usage plan module 420.
[0251] In some possible implementations, one or more computing devices in a computing device cluster can be connected via a network. This network can be a wide area network (WAN) or a local area network (LAN), etc.
[0252] In some possible implementations, the memory 506 of one or more computing devices 500 in the computing device cluster may also store memory for executing the embodiments of this application. Figure 3 or Figure 2 The instructions for using the provided resources. In other words, a combination of one or more computing devices 500 can jointly execute the embodiments of this application. Figure 3 or Figure 2 Instructions for using the provided resources.
[0253] This application also provides a computer program product containing instructions. The computer program product may be a software or program product containing instructions, capable of running on a computing device or stored on any usable medium. The instructions contained in the computer program product may include instructions for performing the embodiments of this application. Figure 3 or The provided instructions for using the resources. When the computer program product is run on at least one computing device, it causes the at least one computing device to execute the embodiments of this application. or The steps or operations for using the provided resources.
[0254] This application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium capable of being stored by a computing device, or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive). The computer-readable storage medium includes instructions that instruct the computing device to perform the steps or operations described in this application embodiment.
[0255] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and not to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the protection scope of the technical solutions of the embodiments of this application. The terms "first," "second," "third," and "fourth," etc., in the specification, claims, and drawings of this application are used to distinguish different objects, not to limit a specific order. In the embodiments of this application, the words "exemplary" or "for example" are used to indicate that they are examples, illustrations, or descriptions. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or more advantageous than other embodiments or design schemes. Specifically, the use of the words "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
Claims
1. A method of resource usage, characterized by, The cloud system comprises a plurality of resource points associated with a plurality of resource demand points, and the method comprises: determining a resource usage plan of a tenant according to resource demand of the tenant and resource configurations of the plurality of resource points, the resource demand of the tenant comprising resource demand amounts of at least one resource demand point in the plurality of resource demand points, the resource configurations of the resource points comprising resource capacities and resource prices, the resource usage plan of the tenant being used to indicate resource usage amounts provided by at least one target resource point in the plurality of resource points to the at least one resource demand point when the resource demand of the tenant is satisfied; using resources of the at least one target resource point according to the resource usage plan of the tenant.
2. The method of claim 1, wherein, The resource demand of the tenant further comprises at least one of an allowed resource point or a quality of service demand.
3. The method according to claim 1 or 2, characterized in that, The resource usage plan of the tenant comprises a resource usage plan in a target time period.
4. The method of claim 3, wherein, The resource usage amounts provided by the at least one target resource point to the at least one resource demand point comprise: a first resource usage amount of the at least one target resource point at a first time in the target time period; a second resource usage amount of the at least one target resource point at a second time adjacent to the first time in the target time period; and a change amount between the second resource usage amount and the first resource usage amount is less than a target threshold.
5. The method according to any one of claims 1-4, characterized in that, The method further comprises: determining the resource demand amounts of the at least one resource demand point according to historical resource demands of the at least one resource demand point.
6. The method according to any one of claims 1-5, characterized in that, The method further comprises: obtaining actual resource demands of the tenant, and adjusting the resource usage plan of the tenant according to the actual resource demands.
7. The method according to any one of claims 1 to 6, characterized in that, The method of determining the resource usage plan of the tenant according to the resource demand of the tenant and the resource configurations of the plurality of resource points comprises: performing target model calculation according to the resource demand of the tenant and the resource configurations of the plurality of resource points to obtain the resource usage plan of the tenant, the target model being used to indicate a cost of the resource usage amounts provided by the at least one target resource point to the at least one resource demand point when the resource demand of the tenant is satisfied.
8. The method according to any one of claims 1-7, characterized in that, The method of using the resources of the at least one target resource point according to the resource usage plan of the tenant comprises: feeding back the resource usage plan of the tenant to the tenant; responding to a purchase operation.
9. The method according to any one of claims 1-8, characterized in that, The method of using the resources of the at least one target resource point according to the resource usage plan of the tenant comprises: sending the resource usage plan of the tenant to a device of the at least one resource demand point, the resource usage plan being used to instruct the device of the at least one resource demand point to send a plurality of tasks of the tenant to a device of the at least one target resource point for processing according to the resource usage plan.
10. The method according to any one of claims 1-9, characterized in that, The resources comprise at least one of computing resources, network resources and storage resources.
11. A resource usage system, characterized by The system comprises at least one apparatus for performing the method of any one of claims 1-10.
12. A computer program product comprising instructions, characterized in that, The instructions, when executed by at least one computing device, cause the at least one computing device to perform the method of any one of claims 1-10.