Resource management method and related device
The resource management method addresses the issue of inaccurate cloud resource pricing by using future-period resource status information to generate accurate prices, enhancing resource utilization and reducing waste in cloud computing environments.
Patent Information
- Application Number
- JP2024568375
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2022-05-17
- Filing Date
- 2022-11-22
- Publication Date
- 2025-06-03
AI Technical Summary
Current cloud resource transaction methods provide inaccurate price information due to changing available resource status in the resource pool, leading to inefficient utilization and waste of computing resources.
A resource management method and apparatus that obtain available resource status information for a cloud server cluster across different future periods, generate accurate cloud service price information based on this data, and transmit it to user devices, allowing for more informed resource allocation and utilization.
This approach ensures that cloud service prices accurately reflect available resource capacity, promoting better resource utilization, reducing waste, and improving the overall efficiency of cloud resource sales.
Smart Images

Figure 2025517229000001_ABST
Abstract
Description
Technical Field
[0001] This application claims priority to Chinese Patent Application No. 202210536539.3, filed with the China National Intellectual Property Administration on May 17, 2022, entitled "Resource Management Method and Related Device", the entire content of which is incorporated herein by reference.
[0002] Embodiments of this application relate to the field of computers, and more specifically, to a resource management method and related devices.
Background Art
[0003] With the development of cloud computing technology, cloud service providers form a huge resource pool and connect a large amount of computing resources via a network to provide cloud services to user devices. User devices manage and schedule computing resources in the resource pool through a resource management server.
[0004] Currently, in the cloud resource transaction process between a user device and a cloud service provider, the user device sends a cloud resource application to the resource management server. The cloud resource application includes the type of computing resources, such as the number of processor cores and the memory size. The cloud service provider provides price information corresponding to the user device based on the usage status of cloud resources in the current resource pool. The user device selects to use the cloud service based on the price information provided by the cloud service provider.
[0005] Currently, cloud service providers provide price information for user devices only based on the available resource status information in the resource pool at the time of resource application by the user devices. However, the available resource status information in the resource pool changes depending on the user devices being used at different times. As a result, in the current transaction method, the price information provided by cloud service providers becomes inaccurate, and further waste of computing resources in the resource pool occurs.
Summary of the Invention
Means for Solving the Problems
[0006] Embodiments of the present application provide a resource management method and related apparatus for improving the utilization rate of cloud resources.
[0007] A first aspect in an embodiment of the present application provides a resource management method. This method may be executed by a management server, may be executed by a component of the management server, such as a processor, chip, or chip system of the management server, or may be implemented by a logical module or software that can implement all or part of the functions of the management server. Execution by the management server is used as an example. The resource management method provided in the first aspect in an embodiment of the present application includes the following. The management server obtains available resource status information of a cloud server cluster. The available resource status information includes one or more of the capacity of available cloud resources and the types of available cloud resources in different future periods of the cloud server cluster. The capacity of available cloud resources includes the quantity of available virtual machines, physical hosts, or containers in a future period. The types of available cloud resources include the number of processor cores, memory size, or graphics card model. The management server generates cloud service price information based on the available resource status information. The cloud service price information includes price information of one or more types of cloud resources in different future periods. The management server transmits the cloud service price information to a user device.
[0008] In this embodiment of the present application, the management server can obtain the status information of available cloud resources of the cloud server cluster in a future period and generate the price of the corresponding cloud service based on the status information of the available cloud resources. The price of the cloud service is the price obtained through calculation based on the type of available cloud resources and the capacity of available cloud resources in different future periods. Therefore, the price of the cloud service can accurately reflect whether the available cloud resources are sufficient. Thereby, the sales of cloud resources are more promoted, and thereby the utilization rate of cloud resources in the cloud server is improved.
[0009] In a possible implementation form, before the management server obtains the available resource status information of the cloud server cluster, the management server receives the plan information sent by the user device. The plan information is used to provide the cloud resource requirement plan of the user device to the management server. The plan information includes one or more of the requirements for the period of cloud resources or the requirements for the type of cloud resources. In the process of the management server generating cloud service price information based on the available resource status information, the management server generates cloud service price information based on the plan information and the available resource status information. The cloud service price information is the cloud service price information corresponding to the plan information.
[0010] In this embodiment of the present application, the management server receives the plan information submitted by the user device, and generates the price of the cloud service corresponding to the plan information based on the plan information submitted by the user device and the status of the available resources. The user device submits in advance the requirements for the capacity of cloud resources and the requirements for the type of cloud resources in the future period. Therefore, the management server can provide a more accurate price of cloud services based on the plan information, and the utilization rate of cloud resources is further improved.
[0011] In a possible implementation form, the types of available cloud resources in the available resource status information match the requirements for types in the plan information. The management server determines the corresponding types of cloud resources based on the requirements for types in the plan information submitted by the user device.
[0012] In this embodiment of the present application, since the types of available cloud resources provided by the management server match the requirements for types in the plan information, the types of available cloud resources meet the requirements for types in the plan information, and the implementability of the method is improved.
[0013] In a possible implementation form, in the process where the management server generates cloud service price information based on the planned information and the available resource status information, when the available resource status information meets the planned information and the capacity of the available cloud resources in the available resource status information is equal to or greater than the target threshold, the management server generates cloud service discount information.
[0014] In this embodiment of the present application, the management server can provide a discounted price for cloud services to the user device that has submitted the planned information in advance, thereby improving the utilization rate of cloud resources.
[0015] In a possible implementation form, after the management server sends the cloud service price information to the user device, the management server receives the service usage information sent by the user device. The service usage information is used to confirm the cloud service price information corresponding to the planned information.
[0016] In this embodiment of the present application, after sending the cloud service price information to the user device, the management server receives the service usage request corresponding to the planned information sent by the user device, thereby improving the feasibility of implementing the solution.
[0017] In a possible implementation form, before the management server sends the cloud service price information to the user device, the management server receives the query request sent by the user device. Based on the query request, the management server sends the available resource status information and the cloud service price information to the user device. The management server sends the types of available cloud resources, the capacity of cloud resources available in the future period, and the corresponding prices to the user. The user device selects the period, the type of cloud resource, and the capacity of the cloud resource corresponding to the resources that need to be used for the service.
[0018] In this embodiment of the present application, the management server may send to the user device the available resource status information in a future period and the corresponding cloud service price information based on the query request sent by the user device. The user device selects the period requirements of the cloud resources corresponding to the resources that need to be used for the service, the types of cloud resources, and the capacity of the cloud resources, and the utilization rate of the cloud resources is improved.
[0019] In a possible implementation form, after the management server sends the available resource status information and the cloud service price information to the user device based on the query request, the management server receives the service usage information sent by the user device. The service usage information includes at least one type of cloud resource selected by the user device and the price of at least one type of cloud resource.
[0020] In this embodiment of the present application, after sending the available resource status information and the cloud service price information to the user device, the management server receives the period requirements of the cloud resources corresponding to the resources selected by the user device, the types of cloud resources, and the capacity of the cloud resources, and the feasibility of implementing the solution is improved.
[0021] In a possible implementation form, in the process of the management server obtaining the available resource status information of the cloud server cluster, the management server obtains the scheduling information of the cloud server cluster. The scheduling information includes one or more of the submitted cloud resource plan, the cloud resource plan predicted based on historical cloud resource changes, the idle cloud resource plan to be reserved, the total amount of cloud resource plans, the maximum cloud resource plan for a single device, and the ongoing plan for in-use cloud resources. Based on the scheduling information, the management server generates the available resource status information of the cloud server cluster. Specifically, since the submitted cloud resource plan, the cloud resource plan predicted based on historical cloud resource changes, the idle cloud resource plan to be reserved, and the ongoing plan for in-use cloud resources are subtracted from the total amount of cloud resource plans, the management server can obtain the capacity of available cloud resources in different periods.
[0022] In this embodiment of the present application, the management server periodically obtains the scheduling information of the cloud server cluster, and can obtain the available resource status information through calculation based on the scheduling information, improving the accuracy of the available resource status information.
[0023] A second aspect in an embodiment of the present application provides a resource management apparatus. The resource management apparatus includes a transceiver unit and a processing unit. The transceiver unit is configured to obtain available resource status information of a cloud server cluster. The available resource status information includes one or more of the capacity of available cloud resources and the types of available cloud resources in different future periods of the cloud server cluster. The processing unit is configured to generate cloud service price information based on the available resource status information. The cloud service price information includes price information of multiple types of cloud resources. The transceiver unit is further configured to transmit the cloud service price information to a user device.
[0024] In a possible implementation form, the transceiver unit is further configured to receive plan information transmitted by the user device. The plan information is used to provide a cloud resource requirement plan of the user device to a management server. The plan information includes one or more of the requirements for the period of cloud resources or the requirements for the types of cloud resources. Specifically, the processing unit is configured to generate cloud service price information based on the plan information and the available resource status information.
[0025] In a possible implementation form, the types of available cloud resources in the available resource status information match the requirements of the types in the plan information.
[0026] In a possible implementation form, specifically, the processing unit is configured to generate cloud service discount information when the available resource status information meets the plan information and the capacity of the available cloud resources in the available resource status information is equal to or greater than a target threshold.
[0027] In a possible implementation form, the transceiver unit is further configured to receive service usage information transmitted by a user device. The service usage information is used to check cloud service price information corresponding to the plan information.
[0028] In a possible implementation form, the transceiver unit is further configured to receive a query request transmitted by a user device. The processing unit is further configured to transmit available resource status information and cloud service price information to the user device based on the query request.
[0029] In a possible implementation form, the transceiver unit is further configured to receive service usage information transmitted by a user device. The service usage information includes at least one type of cloud resource selected by the user device and the price of at least one type of cloud resource.
[0030] In a possible implementation form, the transceiver unit is further configured to obtain scheduling information of a cloud server cluster. The scheduling information includes one or more of the submitted cloud resource plan, the predicted cloud resource plan based on historical cloud resource changes, the idle cloud resource plan to be reserved, the total amount of cloud resource plans, the maximum cloud resource plan for a single device, and the ongoing cloud resource plan in use. The processing unit is further configured to generate available resource status information of the cloud server cluster based on the scheduling information.
[0031] A third aspect in the embodiments of the present application provides a management server including a processor. The processor is coupled to a memory. The processor is configured to store instructions. When the instructions are executed by the processor, the management server is enabled to execute the method described in any of the first aspect or the possible implementation forms of the first aspect.
[0032] A fourth aspect in an embodiment of the present application provides a computer-readable storage medium. The computer-readable storage medium stores instructions. When the instructions are executed, the computer is enabled to execute the method described in either the first aspect or a possible implementation form of the first aspect.
[0033] A fifth aspect in an embodiment of the present application provides a computer program product. The computer program product includes instructions. When the instructions are executed, the computer is enabled to execute the method described in either the first aspect or a possible implementation form of the first aspect.
[0034] For the beneficial effects achievable by any resource management device, the management server, computer-readable medium, computer program product, etc. provided above can be understood to refer to the beneficial effects in the corresponding method. Details will not be described again here.
Brief Description of Drawings
[0035]
Figure 1
Figure 2
Figure 3
Figure 4a
Figure 4b
Figure 5
Figure 6
Figure 7
Embodiments for Carrying Out the Invention
[0036] Embodiments of the present application provide a resource management method and related apparatus for improving the resource utilization rate of a cloud server.
[0037] In the specification, claims, and accompanying drawings of the present application, terms such as "first", "second", "third", "fourth", etc. (if any) are intended to distinguish similar objects, but do not necessarily indicate a specific order or sequence. Data named in this way is compatible in appropriate situations. Therefore, it should be understood that the embodiments described in this specification can be implemented in an order other than the order illustrated or described in this specification. Furthermore, the terms "include" and "contain" and their variants are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a list of steps or units is not necessarily limited to the explicitly listed steps or units, and may include other steps or units not explicitly listed or specific to the process, method, product, or device.
[0038] In the embodiments of the present application, words such as "example" or "for example" are used to represent examples, illustrations, or explanations. Any embodiment or design solution described by "example" or "for example" in the embodiments of the present application should not be construed as being more preferred or advantageous than another embodiment or design solution. To be precise, words such as "example" or "for example" are intended to represent related concepts in a specific way.
[0039] Hereinafter, with reference to the accompanying drawings, a resource management method and related apparatus provided in the embodiments of the present application will be described.
[0040] FIG. 1 is a diagram showing the system architecture of a cloud resource scheduling system according to an embodiment of the present application. As shown in FIG. 1, the cloud resource scheduling system 100 includes a management server 101, a cloud server 102, and a user device 103. The user device 103 is connected to the cloud server 102 via the management server 101. Hereinafter, the functions of each part in the cloud resource scheduling system 100 will be specifically described.
[0041] The management server 101 is configured to manage and schedule cloud resources provided by the cloud server 102, collect the status of resources of all physical hosts in the cloud server 102, schedule new cloud resource applications transmitted by the user device 103, and provide cloud service price information to the user device 103.
[0042] The management server 101 includes a resource planning transaction module 1011 and a resource scheduling module 1012. The resource planning transaction module 1011 is configured to calculate whether the available resource status information of the cloud server 102 meets the requirements of the cloud resource application of the user device 103, and generate cloud service price information based on the available resource status information. The resource scheduling module 1012 is configured to obtain the available resource status information of the cloud server 102 and schedule the cloud resources provided by the cloud server 102.
[0043] In some possible implementations, the management server 101 can further provide an operational UI interface and an application programming interface API that can be called to the outside. The management server 101 can further provide a transaction service for providing cloud resources in the cloud server 102 to the outside. The management server 101 can be, for example, OpenStack or VMware.
[0044] The cloud server 102 is configured to provide cloud resources to the user device 103. The cloud server 102 includes a plurality of physical hosts, and a plurality of virtual machines are deployed on each physical host. The cloud resources provided by the cloud server 102 include physical hosts, virtual machines, and containers. The cloud server 102 provides the cloud resources available to the user device 103 based on the scheduling plan of the management server 101. It can be understood that a plurality of cloud servers 102 also form a cloud server cluster, and the server cluster provides cloud services to the user device 103.
[0045] The user device 103 is configured to request cloud resources from the management server 101. Specifically, the user device 103 may send a request for cloud resources to the management server 101 based on the UI interface or the Web UI interface provided by the management server 101, or may send a request for resources to the management server 101 by using the application software of the user device 103. This is not particularly limited.
[0046] In the following, in order to describe the resource management method provided in the embodiments of the present application, the system architecture shown in FIG. 1 is used as an example.
[0047] Figure 2 is a schematic flowchart of a resource management method according to an embodiment of the present application. As shown in Figure 2, the resource management method provided in this embodiment of the present application includes, but is not limited to, the following steps.
[0048] 201: The management server acquires the available resource status information of the cloud server cluster, and the available resource status information includes one or more pieces of information among the capacity of the available cloud resources and the types of available cloud resources of the cloud server cluster in different future periods.
[0049] The management server acquires the available resource status information of the cloud server cluster, and the available resource status information includes one or more pieces of information among the capacity of the available cloud resources and the types of available cloud resources of the cloud server cluster in different future periods. In this embodiment of the present application, cloud resources include virtual machines, physical hosts, and containers. Each type of cloud resource has different types. For example, the types of virtual machines include the number of processor cores, the memory size, and the graphics card model. The capacity of the available cloud resources includes the number of virtual machines, physical hosts, and containers that can be provided by the cloud server cluster for use by user devices.
[0050] Specifically, in the process of the management server acquiring the available resource status information of the cloud server cluster, the planned transaction module of the management server queries the scheduling information from the resource scheduling module. The planned transaction module of the management server generates the available resource status information of the cloud server cluster based on the scheduling information. The scheduling information of the cloud server cluster includes one or more pieces of information among the submitted cloud resource plan, the cloud resource plan predicted based on historical cloud resource changes, the idle cloud resource plan to be reserved, the total amount of cloud resource plans, the maximum cloud resource plan for a single device, and the ongoing cloud resource plan in use.
[0051] The submitted cloud resource plan includes the requirements for the capacity of cloud resources and the types of cloud resources of the user device in the future period. The user device includes a user device that has submitted plan information but has not performed service utilization, and other user devices that have submitted plan information and performed service utilization.
[0052] The cloud resource plan predicted based on historical cloud resource changes refers to the plan regarding the change in the usage status of cloud resources in the future period, and the plan is predicted by the management server based on the historical usage status of cloud resources.
[0053] The idle cloud resource plan to be reserved refers to the cloud resources that the management server plans to reserve to cope with unexpected cloud resource usage requirements. The idle resources to be reserved include resource applications of possible new user devices from the current time to the start time of plan application, or newly added resource applications of existing user devices after the start time of plan application.
[0054] The total cloud resource application plan amount refers to the maximum cloud resource capacity that can be planned and provided by a cloud server cluster, including the maximum resource capacity that can be provided for each type of resource among different resource types.
[0055] The maximum cloud resource plan for a single device refers to the cloud resource plan set by the management server for the maximum cloud resource capacity that can be allocated to a single user device. The ongoing cloud resource plan in use refers to the cloud resource plan reserved by the management server for the user device for the continuation of the cloud resources in use.
[0056] Figure 3 is a diagram showing the change in the capacity of cloud resources in a cloud server cluster over time according to an embodiment of the present application. In the example shown in Figure 3, from the planned allocation status of the cloud resource capacity in the period from 0 to t6, it can be seen that the total capacity of the cloud resources in the cloud server cluster at each time point in the period from 0 to t6 is S7, the capacity of the idle cloud resources to be reserved by the cloud server cluster at each time point in the period from 0 to t6 is S6 to S5, and the capacity of the cloud resources in the ongoing cloud resource plan in use at each time point in the period from 0 to t6 is S0. At each time point in the period from t1 to t4, the capacity of the cloud resources in cloud resource plan 1 submitted by the user device is S5 to S3. At each time point in the period from t0 to t2, the capacity of the cloud resources in cloud resource plan 1 predicted based on historical cloud resource changes is S1 to S0. At each time point in the period from t3 to t5, the capacity of the cloud resources in cloud resource plan 2 predicted based on historical cloud resource changes is S1 to S0.
[0057] From the example shown in FIG. 3, it can be seen that the capacity of the cloud resources in the maximum cloud resource plan of a single device at each time point from period 0 to t6 is S3 to S2. The capacity of the cloud resources in the maximum cloud resource plan of a single device means the maximum cloud resource capacity that can be allocated by the management server to a single user device. In the drawing, none of the resource plan 1 submitted by the user device, the resource plan 2 submitted by the user device, and the resource plan 3 submitted by the user device can exceed the maximum resource capacity of a single device.
[0058] In the example shown in FIG. 3, the management server can further obtain the capacity of the available cloud resources of the cloud server cluster in different periods through calculations based on the cloud resource plans in different periods. For example, from the total amount of cloud resource application plans in FIG. 3, by subtracting the idle cloud resource plan to be reserved, the submitted cloud resource plan 1, the submitted cloud resource plan 2, the submitted cloud resource plan 3, the cloud resource plan 1 predicted based on historical cloud resource changes, the cloud resource plan 2 predicted based on historical cloud resource changes, and the in-use cloud resource continuation plan, the available cloud resource plan can be obtained. The available cloud resource plan can indicate the capacity of the available cloud resources in different future periods. From the example shown in FIG. 3, it can be seen that the capacity of the available cloud resources reaches the maximum value in the periods from 0 to t0 and from t5 to t6.
[0059] In the example shown in FIG. 3, it should be noted that the capacity of the cloud resources in the reserved idle cloud resource plan, the submitted cloud resource plan, the predicted cloud resource plan based on historical cloud resource changes, and the in-use cloud resource continuation plan does not change within the period. In another example of this application, the capacity of the cloud resources in these plans can alternatively change within the period. For example, the capacity of the cloud resources in these plans increases or decreases over time within the period.
[0060] Furthermore, the example shown in FIG. 3 is only a cloud resource plan for a specific type of cloud resource in a future period. For different types of cloud resources, each type of cloud resource has a corresponding cloud resource plan. The management server can calculate the cloud resource plans available for different types of cloud resources based on the cloud resource plans for the future period.
[0061] In this embodiment of this application, the management server can periodically obtain the available resource status information of the cloud server cluster. Alternatively, the management server can be triggered based on the cloud resource requests of the user device to obtain the available resource status information of the cloud server cluster. This is not particularly limited.
[0062] 202: The management server generates cloud service price information based on the available resource status information.
[0063] After obtaining the available resource status information, the management server generates cloud service price information based on the available resource status information. Specifically, the management server can generate cloud service price information for different periods based on the capacity of the available cloud resources in different periods within the available resource status information. When the capacity of the available cloud resources in a specific period is abundant, the management server can generate cloud service discount information for that period.
[0064] In this embodiment of the present application, in the process of the management server generating cloud service price information based on the available resource status information, the management server may generate cloud service price information corresponding to the plan information based on the plan information submitted by the user device and the available resource status information, or may transmit the available resource status information and the corresponding cloud service price information to the user device for the user device to select. This is not particularly limited. The above two methods will be separately described in the subsequent embodiments shown in FIGS. 4a and 5.
[0065] It is understood that the management server may generate different cloud service discount information for different user devices. For example, in the scenario where the user device submits plan information, the management server may generate different discount information based on the total amount of the user device's cloud resource requirements. As another example, the management server may generate different discount information for different user levels.
[0066] 203: The management server transmits the cloud service price information to the user device.
[0067] The management server transmits the cloud service price information to the user device. After receiving the cloud service price information transmitted by the management server, the user device transmits service usage information to the management server. The service usage information is used to confirm the cloud service price information. The management server reserves cloud resources corresponding to the service usage information for the user device based on the service usage information.
[0068] In this embodiment of the present application, the management server can obtain the status information of the available cloud resources of the cloud server cluster in a future period, and generate the price of the corresponding cloud service based on the status information of the available cloud resources. The price of the cloud service is the price obtained through calculation based on the type of available cloud resources and the capacity of the available cloud resources in different future periods. Therefore, the price of the cloud service can accurately reflect whether the available cloud resources are sufficient. Since the management server sells the cloud resources of the cloud server based on the price of the cloud service, the utilization rate of the cloud resources in the cloud server is improved.
[0069] Hereinafter, with reference to FIGS. 4a and 5, two methods in which the user device submits planning information and the management server provides available resource status information will be separately described.
[0070] FIG. 4a is a schematic flowchart of another resource management method according to an embodiment of the present application. The resource management method shown in FIG. 4a includes the following steps.
[0071] 401: The user device submits planning information to the management server.
[0072] The user device submits planning information to the management server. The planning information is used to provide the cloud resource requirement plan of the user device to the management server. The planning information includes one or more of the requirements for the period of cloud resources, the requirements for the capacity of cloud resources, and the requirements for the type of cloud resources. The type code of the cloud resources can represent the type of cloud resources. For example, the type code G5 of the cloud resources represents a virtual machine equipped with a 16-core processor, 32G memory, and RTX5000 graphics card.
[0073] In this embodiment of the present application, the user device can submit planning information in a plurality of ways. For example, the management server may submit planning information through the UI interface of the management server, or to submit planning information, it may call the planning transaction module in the management server through an application programming interface (API). This is not particularly limited.
[0074] In the example of step 401, the planning information submitted by the user device to the planning transaction module of the management server on March 30, 2022 includes that the user device applies to 100 virtual machines, the type of the virtual machine is G5, the start time of the requirement is 0:00 am on April 1, 2022, and the end time is 24:00 pm on April 15, 2022.
[0075] Figure 4b is a diagram showing the UI interface of the management server according to an embodiment of the present application. In the example shown in Figure 4b, the user device can submit the planning information of the user device through the UI interface of the management server. The planning information submitted by the user device includes the requirements for the type of cloud resources and the requirements for the capacity of cloud resources in different planned periods. For example, from 6:00 am to 12:00 pm from April 1, 2022 to April 30, 2022, the requirement for the type of cloud resources of the user device is a G4 virtual machine, and the requirement for the capacity of cloud resources is 200.
[0076] 402: The planning transaction module of the management server obtains the scheduling information of the cloud server cluster from the resource scheduling module.
[0077] The planning transaction module of the management server obtains the scheduling information of the cloud server cluster from the resource scheduling module. The scheduling information includes one or more of the submitted cloud resource plan, the predicted cloud resource plan based on historical cloud resource changes, the idle cloud resource plan to be reserved, the total amount of cloud resource plans, the maximum cloud resource plan for a single device, and the ongoing plan for in-use cloud resources.
[0078] In this embodiment of the present application, the planning transaction module of the management server may periodically query the scheduling information of the cloud server cluster from the resource scheduling module, or may be triggered to query the scheduling information based on the plan information submitted by the user device. Alternatively, the resource scheduling module may periodically report the scheduling information to the planning transaction module. This is not particularly limited.
[0079] 403: The planning transaction module of the management server generates available resource status information based on the scheduling information of the cloud server cluster.
[0080] The planning transaction module of the management server generates available resource status information based on the scheduling information of the cloud server cluster. Specifically, the available resource status information generated by the planning transaction module of the management server based on the scheduling information includes one or more of the capacity of available cloud resources or the types of available cloud resources in different future available periods.
[0081] For example, in the example of step 403, the available resource status information generated by the planned transaction module of the management server based on the scheduling information is as follows: from 0:00 to 6:00 am from April 1, 2022 to April 15, 2022, the capacity of the available cloud resources of the G4 virtual machine is 5000; from 6:00 am to 6:00 pm from April 1, 2022 to April 15, 2022, the capacity of the available cloud resources of the G4 virtual machine is 3000.
[0082] 404: The planned transaction module of the management server generates cloud service price information based on the planned information and the available resource status information.
[0083] The planned transaction module of the management server generates cloud service price information based on the planned information and the available resource status information. The cloud service price information includes the price of the cloud service corresponding to the planned information. Furthermore, when the available resource status information meets the planned information and the capacity of the available cloud resources in the available resource status information is greater than or equal to the first threshold, the management server generates cloud service discount information. Furthermore, the type of the available cloud resources in the available resource status information needs to match the requirements of the type of the cloud resources in the planned information.
[0084] In this embodiment of the present application, the user device submits the planned information to the management server. Therefore, the management server can calculate the available resource status information more appropriately, and the management server can design more price discounts for cloud services for the user device that submits the planned information.
[0085] 405: The planned transaction module of the management server sends the cloud service price information to the user device.
[0086] The planned transaction module of the management server transmits cloud service price information to the user device. The cloud service price information includes cloud service discount information corresponding to the planned information. Specifically, the management server may return the cloud service price information through the UI interface and may transmit the cloud service price information through the application programming interface API. This is not particularly limited.
[0087] 406: The user device transmits service usage information to the management server.
[0088] After confirming the cloud service price information transmitted by the planned transaction module of the management server, the user device transmits the service usage information to the planned transaction module. The service usage information is used to confirm the cloud service price information.
[0089] 407: The planned transaction module of the management server transmits a cloud resource plan corresponding to the service usage information to the resource scheduling module.
[0090] The planned transaction module of the management server transmits a cloud resource plan corresponding to the service usage information to the resource scheduling module. The cloud resource plan indicates the resource scheduling module for executing the allocation task of the cloud resources of the cloud server cluster.
[0091] 408: The resource scheduling module of the management server stores the cloud resource plan and reserves the required cloud resources.
[0092] The resource scheduling module of the management server stores the cloud resource plan and reserves the cloud resources required by the cloud resource plan.
[0093] 409: The resource scheduling module of the management server sends a notification message to the user device.
[0094] The resource scheduling module of the management server sends a notification message to the user device. The notification message is used to notify the user device that the cloud resources are ready.
[0095] In this embodiment of the present application, the management server can send a notification message to the user device by methods such as a message service, a messaging service, an email service, and a request call based on the Hypertext Transfer Protocol HTTP. The content of the notification message may include the applicable virtual machine ID, container ID, or bare metal physical ID. This is not particularly limited.
[0096] 410: When the scheduled time is reached, the resource scheduling module of the management server notifies the cloud server cluster to allocate the corresponding cloud resources.
[0097] At the start time of the cloud resource plan, the resource scheduling module of the management server notifies the cloud server cluster to allocate the corresponding cloud resources. For example, the management server notifies the cloud server cluster to start a virtual machine or a container.
[0098] In this embodiment of the present application, the management server receives the plan information submitted by the user device, and generates the price of the cloud service corresponding to the plan information based on the plan information submitted by the user device and the status of the available resources. The user device submits in advance the requirements for the capacity of the cloud resources and the types of cloud resources in a future period. Therefore, the management server can provide a more accurate price of the cloud service based on the plan information, and the utilization rate of the cloud resources is improved.
[0099] FIG. 5 is a schematic flowchart of another resource management method according to an embodiment of the present application. The resource management method shown in FIG. 5 includes the following steps.
[0100] 501: The planning transaction module of the management server acquires the scheduling information of the cloud server cluster from the resource scheduling module.
[0101] 502: The planning transaction module of the management server generates available resource status information based on the scheduling information of the cloud server cluster.
[0102] The operations performed by the management server in steps 501 and 502 in this embodiment of the present application are the same as the operations performed by the management server in steps 402 and 403 in the embodiment shown in FIG. 4a. Details will not be described again.
[0103] 503: The planning transaction module of the management server generates cloud service price information based on the available resource status information.
[0104] The planning transaction module of the management server generates cloud service price information based on the available resource status information. Specifically, the planning transaction module of the management server can generate cloud service price information for different periods based on the types of cloud resources available in different future periods and the corresponding available capacities of the cloud resources.
[0105] For example, in the example of step 503, the management server generates the capacity of available cloud resources and the price of the corresponding cloud service in different periods. For example, the number of available G5 virtual machines from 0:00 to 6:00 am is 2000, the price of the cloud service is 10 yuan per virtual machine, and the number of available G5 virtual machines from 6:00 am to 6:00 pm is 1000, and the price of the cloud service is 20 yuan per virtual machine.
[0106] 504: The user device queries the available resource status information and the corresponding cloud service price information.
[0107] The user device queries the available resource status information and the price of the corresponding cloud service. The user device can obtain the available resource status information corresponding to the resources to be sold and the price of the corresponding cloud service through the UI interface or API.
[0108] In this embodiment of the present application, the management server may send all cloud service price information in different periods to the user device. The user device selects the requirements for the period of cloud resources, the requirements for the capacity of cloud resources, and the requirements for the type of cloud resources. It can be understood that the cloud service price information queried by the user device at different times varies.
[0109] 505: The user device sends service usage information to the management server.
[0110] The user device determines service usage information based on the queried available resource status information and the price of the corresponding cloud service. The service usage information is used to check the available resource status information corresponding to the resources selected by the user device as the purchase target and the corresponding cloud service price information. The service usage information includes the requirements for the period of cloud resources, the requirements for the capacity of cloud resources, and the requirements for the types of cloud resources corresponding to the resources that the user device has confirmed to use the service.
[0111] 506: The planned transaction module of the management server submits the cloud resources corresponding to the service usage information to the resource scheduling module.
[0112] 507: The resource scheduling module of the management server stores the cloud resource plan and reserves the required cloud resources.
[0113] 508: The resource scheduling module of the management server sends a notification message to the user device.
[0114] 509: When the planned time is reached, the resource scheduling module of the management server notifies the cloud server cluster to allocate the corresponding cloud resources.
[0115] The operations performed by the management server in steps 506 to 509 in this embodiment of the present application are the same as the operations performed by the management server in steps 407 to 410 in the embodiment shown in FIG. 4a. Details will not be described again.
[0116] In this embodiment of the present application, the management server may transmit, to the user device, available resource status information in a future period and corresponding cloud service price information based on a query request transmitted by the user device. The user device selects the period requirement of the cloud resources corresponding to the resources that need to be used for the service, the type of cloud resources, and the capacity of the cloud resources, and the utilization rate of the cloud resources is improved.
[0117] As described above, the resource management method provided in the embodiments of the present application has been described. Next, with reference to the accompanying drawings, related apparatuses provided in the embodiments of the present application will be described.
[0118] FIG. 6 is a diagram showing the structure of a resource management apparatus according to an embodiment of the present application. This apparatus is configured to implement the steps executed by the management server in the foregoing embodiment. As shown in FIG. 6, the resource management apparatus 600 includes a transceiver unit 601 and a processing unit 602.
[0119] The transceiver unit 601 is configured to obtain available resource status information of the cloud server cluster. The available resource status information includes one or more of the available cloud resource capacities and the available cloud resource types of the cloud server cluster in different future periods. The processing unit 602 is configured to generate cloud service price information based on the available resource status information. The cloud service price information includes price information of multiple types of cloud resources. The transceiver unit 601 is further configured to transmit the cloud service price information to the user device.
[0120] In a possible implementation form, the transceiver unit 601 is further configured to receive the plan information transmitted by the user equipment. The plan information is used to provide the cloud resource requirement plan of the user equipment to the management server. The plan information includes one or more pieces of information among the requirements for the period of cloud resources or the requirements for the types of cloud resources. The processing unit 602 is particularly configured to generate cloud service price information based on the plan information and the available resource status information.
[0121] In a possible implementation form, the types of available cloud resources in the available resource status information match the requirements for the types in the plan information.
[0122] In a possible implementation form, specifically, when the available resource status information satisfies the plan information and the capacity of the available cloud resources in the available resource status information is equal to or greater than the target threshold, the processing unit 602 is configured to generate cloud service discount information.
[0123] In a possible implementation form, the transceiver unit 601 is further configured to receive the service usage information transmitted by the user equipment. The service usage information is used to check the cloud service price information corresponding to the plan information.
[0124] In a possible implementation form, the transceiver unit 601 is further configured to receive the query request transmitted by the user equipment. The processing unit 602 is further configured to transmit the available resource status information and the cloud service price information to the user equipment based on the query request.
[0125] In a possible implementation form, the transceiver unit 601 is further configured to receive the service usage information transmitted by the user equipment. The service usage information includes at least one type of cloud resource selected by the user equipment and the price of at least one type of cloud resource.
[0126] In a possible implementation form, the transceiver unit 601 is further configured to obtain the scheduling information of the cloud server cluster. The scheduling information includes one or more pieces of information among the submitted cloud resource plan, the cloud resource plan predicted based on historical cloud resource changes, the idle cloud resource plan to be reserved, the total amount of cloud resource plans, the maximum cloud resource plan of a single device, and the ongoing cloud resource plan in use. The processing unit 602 is further configured to generate available resource status information of the cloud server cluster based on the scheduling information.
[0127] It should be understood that the division of units within the device is merely a logical function division. In actual implementation, all units or some units may be integrated into one physical entity or physically separated. Also, all units within the device may be implemented in the form of a processing element calling software, in the form of hardware, some units may be implemented in the form of a processing element calling software, and some units may be implemented in the form of hardware. For example, each unit may be an individually arranged processing element or may be implemented integrated into the chip of the device. Further, each unit may alternatively be stored in memory in the form of a program called by a processing element of the device to execute the functions of the unit. Also, all or part of the units may be integrated or implemented independently. The processing element in this specification may also be called a processor and may be an integrated circuit having a signal processing function. During implementation, the foregoing method or steps in the foregoing units may be implemented using hardware integrated logic circuits within the processor element or in the form of a processing element calling software.
[0128] Note that, for the sake of simplicity of description, it should be noted that the embodiments of the foregoing method are described as a combination of a series of operations. However, those skilled in the art should understand that the present application is not limited to the described operation sequence.
[0129] Another appropriate combination of steps that can be conceived by those skilled in the art based on the above content is also included in the protection scope of the present application. Furthermore, those skilled in the art should be proficient in the fact that all the embodiments described in this specification belong to the preferred embodiments, and the related operations are not necessarily required by the present application.
[0130] FIG. 7 is a diagram showing the structure of a management server according to an embodiment of the present application. As shown in FIG. 7, the management server 700 includes a processor 710, a memory 720, and an interface 730. The processor 710, the memory 720, and the interface 730 are coupled through a bus (not marked in the drawing). The memory 720 stores instructions. When the execution instructions in the memory 720 are executed, the management server 700 executes the method executed by the management server in the embodiments of the foregoing method.
[0131] The management server 700 may be one or more integrated circuits configured to implement the foregoing method, for example, one or more application-specific integrated circuits (ASICs), one or more digital signal processors (DSPs), one or more field programmable gate arrays (FPGAs), or a combination of at least two of these integrated circuit forms. As another example, when the units within the device can be implemented in a form where the processing elements schedule programs, the processing elements can be general-purpose processors, such as a central processing unit (CPU) or another processor that can call programs. As yet another example, the units may be integrated and implemented in the form of a system-on-a-chip (SOC).
[0132] The processor 710 may be a central processing unit (CPU), or another general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or another programmable logic device, a transistor logic device, a hardware component, or any combination thereof. The general-purpose processor may be a microprocessor or any conventional processor, etc.
[0133] The memory 720 may be a volatile memory or a non-volatile memory, or may include both a volatile memory and a non-volatile memory. The non-volatile memory may be a read-only memory (ROM), a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), or a flash memory. The volatile memory is a random access memory (RAM) and is used as an external cache. By way of example, and not limitation, many forms of RAM, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchlink DRAM (SLDRAM), and direct rambus RAM (DR RAM) may be used.
[0134] In addition to the data bus, the bus may further include a power bus, a control bus, a status signal bus, and the like. The bus may be a peripheral component interconnect express (PCIe) bus, an extended industry standard architecture (EISA) bus, a unified bus (Ubus or UB), a compute express link (CXL), a cache coherent interconnect for accelerators (CCIX), or the like. The bus may be classified into an address bus, a data bus, a control bus, and the like.
[0135] It can be understood that the resource management device 600 shown in FIG. 6 and the management server 700 shown in FIG. 7 in the embodiments of the present application may be the management server 101 in the system architecture shown in FIG. 1.
[0136] In another embodiment of the present application, a computer-readable storage medium is further provided. The computer-readable storage medium stores computer-executable instructions. When the processor of the device executes the computer-executable instructions, the device executes the method executed by the management server in the embodiments of the foregoing method.
[0137] In another embodiment of the present application, a computer program product is further provided. The computer program product includes computer-executable instructions, and the computer-executable instructions are stored in a computer-readable storage medium. When the processor of the device executes the computer-executable instructions, the device executes the method executed by the management server in the embodiments of the foregoing method.
[0138] Those skilled in the art can clearly understand that, for the sake of convenience and concise description, regarding the detailed operation processes of the aforementioned systems, devices, and units, they can refer to the corresponding processes in the embodiments of the aforementioned methods, so the details will not be described again here.
[0139] In some embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods may be implemented in other ways. For example, the described embodiments of the devices are merely examples. For example, the division of units is merely a logical function division, and there may be other divisions in actual implementation. For example, multiple units or components may be combined into another system, integrated into another system, some functions may be ignored, or not executed. Furthermore, the indicated or described mutual coupling, direct coupling, or communication connection may be implemented by using some interface. The indirect coupling or communication connection between devices or units may be implemented in an electronic, mechanical, or other form.
[0140] The units described as individual components may or may not be physically separated, and the components presented as units may or may not be physical units, and they may be located at one position or distributed among multiple network units. To achieve the purpose of the solution of the embodiment, some or all of the units may be selected based on actual requirements.
[0141] Furthermore, the functional units in the embodiments of this application may be integrated into one processing unit, each unit may physically exist alone, or two or more units may be integrated into one unit. The integrated unit may be implemented in the form of hardware or in the form of a software functional unit.
[0142] When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, the integrated unit can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of this application is essentially, or the part that contributes to the prior art, or all or part of the technical solution can be implemented in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for instructing a computer device (which can be a personal computer, a server, a network device, etc.) to execute all or part of the steps of the method described in the embodiments of this application. The aforementioned storage medium includes any medium that can store program codes, such as a USB flash drive, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
Description of Reference Signs
[0143] 100 Scheduling System for Cloud Resources 101 Management Server 102 Cloud Server 103 User Equipment 600 Resource Management Device 601 Transceiver Unit 602 Processing Unit 700 Management Server 710 Processor 720 Memory 730 Interface 1011 Resource Planning Transaction Module 1012 Resource Scheduling Module
Claims
1. A resource management method, comprising: obtaining available resource status information of a cloud server cluster, wherein the available resource status information includes one or more of the capacity of available cloud resources and the types of available cloud resources of the cloud server cluster in different future periods; generating cloud service price information based on the available resource status information, wherein the cloud service price information includes price information of multiple types of cloud resources; and sending the cloud service price information to a user device. The method as described above.
2. Before the step of obtaining the available resource status information of the cloud server cluster, the method further comprises: receiving planning information sent by the user device, wherein the planning information is used to provide a cloud resource requirement plan of the user device to a management server, and the planning information includes one or more of requirements for the period of cloud resources or requirements for the types of cloud resources; the step of generating cloud service price information based on the available resource status information comprises: generating the cloud service price information based on the planning information and the available resource status information. The method according to Claim 1.
3. The method according to Claim 2, wherein the types of available cloud resources in the available resource status information match the requirements of the types in the planning information.
4. The step of generating the cloud service price information based on the planning information and the available resource status information comprises: when the available resource status information meets the planning information and the capacity of the available cloud resources in the available resource status information is equal to or greater than a target threshold, generating cloud service discount information. The method according to Claim 2 or 3.
5. After the step of sending the cloud service price information to the user device, the method further comprises: A step of receiving service usage information transmitted by the user device, wherein the service usage information is used to check the cloud service price information corresponding to the plan information, the method according to any one of claims 1 to 4, further comprising the step.
6. Before the step of transmitting the cloud service price information to the user device, the method Receiving an inquiry request transmitted by the user device; Based on the inquiry request, transmitting the available resource status information and the cloud service price information to the user device; The method according to claim 1, further comprising the step.
7. After the step of transmitting the available resource status information and the cloud service price information to the user device based on the inquiry request, the method Receiving service usage information transmitted by the user device, wherein the service usage information includes at least one type of cloud resource selected by the user device and the price of the at least one type of cloud resource, the method according to claim 6, further comprising the step.
8. The step of obtaining the available resource status information of the cloud server cluster Obtaining scheduling information of the cloud server cluster, wherein the scheduling information includes one or more of a submitted cloud resource plan, a predicted cloud resource plan based on historical cloud resource changes, an idle cloud resource plan to be reserved, a total cloud resource plan, a maximum cloud resource plan for a single device, and a continued plan for in-use cloud resources; Generating the available resource status information of the cloud server based on the scheduling information; The method according to any one of claims 1 to 7, comprising the step.
9. A resource management device A transceiver unit configured to obtain available resource status information of a cloud server cluster, wherein the available resource status information includes one or more of the capacity of available cloud resources and the types of available cloud resources of the cloud server cluster in different future periods. A processing unit configured to generate cloud service price information based on the available resource status information, wherein the cloud service price information includes price information of multiple types of cloud resources. Comprising: An apparatus, wherein the transceiver unit is further configured to transmit the cloud service price information to a user device.
10. The transceiver unit is further configured to receive plan information transmitted by the user device, the plan information is used to provide a cloud resource requirement plan of the user device to a management server, the plan information includes one or more of requirements for the period of cloud resources or requirements for the types of cloud resources. The apparatus according to claim 9, wherein the processing unit is specifically configured to generate the cloud service price information based on the plan information and the available resource status information.
11. The apparatus according to claim 10, wherein the types of available cloud resources in the available resource status information match the requirements of the types in the plan information.
12. Specifically, the processing unit is configured to generate cloud service discount information when the available resource status information meets the plan information and the capacity of the available cloud resources in the available resource status information is greater than or equal to a target threshold. The apparatus according to claim 10 or 11.
13. The transceiver unit is further configured to receive service usage information transmitted by the user device, and the service usage information is used to confirm the cloud service price information corresponding to the plan information. The apparatus according to any one of claims 9 to 12.
14. The transceiver unit is further configured to receive an inquiry request transmitted by the user device. The apparatus according to claim 9, further configured such that the processing unit transmits the available resource status information and the cloud service price information to the user device based on the query request.
15. The transceiver unit is further configured to receive service usage information transmitted by the user device, the service usage information including at least one type of cloud resource selected by the user device and the price of the at least one type of cloud resource, the apparatus according to claim 14.
16. The transceiver unit is further configured to obtain scheduling information of the cloud server cluster, the scheduling information including one or more of a submitted cloud resource plan, a predicted cloud resource plan based on historical cloud resource changes, an idle cloud resource plan to be reserved, a total amount of cloud resource plans, a maximum cloud resource plan for a single device, and a continued plan for in-use cloud resources, The apparatus according to any one of claims 9 to 15, further configured such that the processing unit generates the available resource status information of the cloud server cluster based on the scheduling information.
17. A management server comprising a processor, the processor being coupled to a memory, the memory being configured to store instructions, the management server being enabled to execute the method according to any one of claims 1 to 8 when the instructions are executed by the processor.
18. A computer-readable storage medium, the computer-readable storage medium storing instructions, the computer being enabled to execute the method according to any one of claims 1 to 8 when the instructions are executed.
19. A computer program product, the computer program product comprising instructions, the computer being enabled to execute the method according to any one of claims 1 to 8 when the instructions are executed.
Citation Information
Patent Citations
Network configuration recommendation apparatus, network configuration recommendation method, and program
JP2017143366A
Systems and methods for optimizing cloud service selection based on price and performance
JP2017521765A
Information processing program, information processing method, and information processing apparatus
JP2020170262A
Managing utilization of cloud computing resources
US10938674B1
Method and apparatus for clearing cloud compute demand
US20160226955A1