Resource distribution method and apparatus, and computing device cluster

By calculating priority based on the benefits of physical resources and space residual amount on the cloud management platform and dynamically controlling resource allocation, the problems of low resource utilization and high expansion cost in cloud computing are solved, and flexible and efficient virtual resource allocation is achieved.

CN119311398APending Publication Date: 2025-01-14HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410369953.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-07-14
Filing Date
2024-03-28
Publication Date
2025-01-14

AI Technical Summary

Technical Problem

In the field of cloud computing technology, existing resource allocation methods are difficult to achieve flexible and efficient virtual resource allocation, resulting in low resource utilization and high capacity expansion costs.

Method used

By obtaining virtual resource requests on the cloud management platform, determining the physical resources with corresponding resource types are deployed, and priorities are calculated based on the distribution income of physical resources and the remaining space, and the allocation and release of resources are dynamically controlled.

Benefits of technology

It realizes flexible allocation of virtual resources, improves resource utilization, reduces expansion costs, and meets various resource needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119311398A_ABST
    Figure CN119311398A_ABST
Patent Text Reader

Abstract

The invention discloses a resource distribution method and device and a computing device cluster, and belongs to the technical field of cloud computing. The method comprises the following steps: acquiring a first resource request, wherein the first resource request comprises a first resource type of a first virtual resource requested to be issued; determining at least one physical resource deployed with the virtual resource of the first resource type in the plurality of physical resources; obtaining an issuing priority of the at least one physical resource for the virtual resource of the first resource type, wherein the issuing priority is used for indicating an issuing sequence of the at least one physical resource for the virtual resource of the first resource type; and controlling at least one physical resource to issue the first virtual resource according to the issuing priority. According to the embodiment of the invention, the distribution priority of the at least one physical resource for the virtual resource of the first resource type is obtained, and the at least one physical resource is controlled to distribute the first virtual resource according to the distribution priority, so that the flexible distribution of the first virtual resource can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims priority to Chinese patent application No. 202310868423.4 filed on July 14, 2023, with invention name “A virtual resource supply method, apparatus and computing device cluster”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of cloud computing technology, and in particular to a resource distribution method, device and computing device cluster. Background Art

[0003] In the field of cloud computing technology, various cloud services are implemented through virtual machines. A virtual machine is a computer system simulated by software. A virtual machine provides users with various cloud services through virtual resources. Among them, virtual resources are issued by physical resources, and virtual machines rely on the issued virtual resources to be created and run. Summary of the invention

[0004] The present application provides a resource distribution method, apparatus and computing device cluster to achieve flexible resource distribution. The technical solution is as follows:

[0005] In a first aspect, a resource issuance method is provided, which is applied to a cloud management platform, and the cloud management platform is used to manage multiple physical resources; the method includes: obtaining a first resource request, the first resource request includes a first resource type of a first virtual resource requested for issuance; determining at least one physical resource on which a virtual resource of the first resource type is deployed among multiple physical resources; obtaining an issuance priority of at least one physical resource for the virtual resource of the first resource type, the issuance priority being used to indicate an issuance order of at least one physical resource for the virtual resource of the first resource type; and controlling at least one physical resource to issue the first virtual resource according to the issuance priority.

[0006] The method provided in the present application, after determining that at least one physical resource is deployed with virtual resources of the first resource type, obtains the issuance priority of the at least one physical resource for the virtual resources of the first resource type, and controls at least one physical resource to issue the first virtual resource based on the issuance priority indicating the issuance order of the virtual resources of the first resource type to the at least one physical resource, thereby realizing flexible issuance of the first virtual resource.

[0007] In a possible implementation, the issuance priority of any one of the at least one physical resource for the virtual resource of the first resource type is determined based on at least one of the issuance revenue or the space surplus of any one of the physical resources, the issuance revenue of any one of the physical resources refers to the revenue of any one of the physical resources for issuing the virtual resource of the first resource type, and the space surplus of any one of the physical resources refers to the size of the remaining space of any one of the physical resources for issuing the virtual resource of the first resource type. The issuance priority of at least one physical resource for the virtual resource of the first resource type can be accurately determined based on at least one of the issuance revenue or the space surplus of the at least one physical resource, so that flexible resource issuance can be achieved according to the issuance priority.

[0008] In one possible implementation, the issuance priority of any physical resource for virtual resources of the first resource type is positively correlated with the size of the issuance revenue of any physical resource; the issuance priority of any physical resource for virtual resources of the first resource type is positively correlated with the size of the remaining space of any physical resource, or the issuance priority of any physical resource for virtual resources of the first resource type is positively correlated with the size of the remaining space ratio of any physical resource, and the remaining space ratio of any physical resource is the ratio of the remaining space of any physical resource used to issue virtual resources of the first resource type to the total amount of space.

[0009] Because the more distribution revenue any physical resource generates for virtual resources of the first resource type, the more revenue can be obtained by distributing virtual resources of the first resource type through the physical resource, and therefore the distribution priority of any physical resource for virtual resources of the first resource type is positively correlated with the distribution revenue of any physical resource, so that the physical resource with greater distribution revenue can be given priority in distributing virtual resources of the first resource type, and thus can obtain more revenue.

[0010] Furthermore, since the more remaining space any physical resource has for virtual resources of the first resource type, the more virtual resources of the first resource type that can be issued by the physical resource, the issuance priority of the virtual resources of the first resource type for any physical resource is positively correlated with the remaining space of any physical resource. This enables the physical resource with more remaining space to be given priority in issuing virtual resources of the first resource type, making it easier to meet a large number of resource demands.

[0011] Alternatively, since a larger ratio of remaining space of any physical resource to virtual resources of the first resource type means a larger relative number of virtual resources of the first resource type that can be issued by the physical resource based on the remaining space, the issuance priority of virtual resources of the first resource type for any physical resource is positively correlated with the ratio of remaining space of any physical resource, which enables the physical resource with a larger ratio of remaining space to be given priority in issuing virtual resources of the first resource type, making it easier to meet large resource demands.

[0012] In a possible implementation, the revenue from issuing any physical resource includes the difference between the first return resource and the cost loss of issuing a virtual resource of the first resource type from the any physical resource, and the remaining space of any physical resource includes the difference between the total space and the space usage used by the any physical resource for issuing virtual resources of the first resource type. Based on the difference between the first return resource and the cost loss of issuing a virtual resource of the first resource type from the any physical resource, the revenue from issuing the virtual resource of the first resource type from the any physical resource can be accurately determined; based on the total space and the space usage used by any physical resource for issuing virtual resources of the first resource type, the remaining space of any physical resource for issuing virtual resources of the first resource type can be accurately determined.

[0013] In one possible implementation, when any physical resource also deploys a virtual resource of a second resource type, the cost loss of any physical resource issuing a virtual resource of a first resource type is determined based on at least one of a first cost of any physical resource issuing a virtual resource of the first resource type, a second cost of any physical resource issuing a virtual resource of a second resource type, or a second return resource of any physical resource issuing a virtual resource of the second resource type, and the second resource type is different from the first resource type.

[0014] Based on at least one of the second cost of issuing virtual resources of the second resource type from any physical resource, the second return resource, or the first cost of issuing virtual resources of the first resource type, a more accurate cost loss of issuing virtual resources of the first resource type can be comprehensively determined, and then based on the determined cost loss, the issuance revenue of virtual resources of the first resource type from any physical resource can be more accurately determined.

[0015] In a possible implementation, before determining at least one physical resource in a plurality of physical resources where a virtual resource of a first resource type is deployed, the method further includes: determining a mapping relationship between a plurality of physical resources and resource types of virtual resources deployed on the plurality of physical resources; determining at least one physical resource in a plurality of physical resources where a virtual resource of a first resource type is deployed includes: determining at least one physical resource in a plurality of physical resources according to the mapping relationship and the first resource type. By using the mapping relationship between a plurality of physical resources and resource types of virtual resources deployed in the plurality of physical resources and the first resource type, at least one physical resource that can be used to issue virtual resources of the first resource type can be efficiently and accurately determined.

[0016] In a possible implementation, the first resource request also includes a resource demand of the first virtual resource, and according to the issuance priority, at least one physical resource is controlled to issue the first virtual resource, including: determining the first physical resource used to issue the first virtual resource and the resource issuance amount of the first physical resource according to the issuance priority, the resource demand of the first virtual resource, and the remaining space of at least one physical resource used to issue virtual resources of the first resource type, wherein the number of the first physical resources is at least one, and the cumulative amount of the resource issuance amount of at least one first physical resource is the same as the resource demand. According to the resource issuance order indicated by the issuance priority of at least one physical resource, the resource demand, and the remaining space of each physical resource in the at least one physical resource that can be used to issue the first virtual resource, the first physical resource that needs to issue the first virtual resource and the resource issuance amount of each first physical resource are more accurately determined.

[0017] In a second aspect, a resource issuance device is provided, which is applied to a cloud management platform, and the cloud management platform is used to manage multiple physical resources; the device includes: an acquisition module, used to obtain a first resource request, the first resource request includes a first resource type of a first virtual resource requested for issuance; a determination module, used to determine at least one physical resource deployed with a virtual resource of the first resource type among multiple physical resources; the acquisition module is also used to obtain the issuance priority of at least one physical resource for the virtual resource of the first resource type, the issuance priority is used to indicate the issuance order of at least one physical resource for the virtual resource of the first resource type; a control module, used to control at least one physical resource to issue the first virtual resource according to the issuance priority.

[0018] In one possible implementation, the issuance priority of any physical resource among at least one physical resource for the virtual resource of the first resource type is determined based on at least one of the issuance revenue or the space surplus of any physical resource, where the issuance revenue of any physical resource refers to the revenue of any physical resource for issuing the virtual resource of the first resource type, and the space surplus of any physical resource refers to the size of the remaining space of any physical resource for issuing the virtual resource of the first resource type.

[0019] In one possible implementation, the issuance priority of any physical resource for virtual resources of the first resource type is positively correlated with the size of the issuance revenue of any physical resource; the issuance priority of any physical resource for virtual resources of the first resource type is positively correlated with the size of the remaining space of any physical resource, or the issuance priority of any physical resource for virtual resources of the first resource type is positively correlated with the size of the remaining space ratio of any physical resource, and the remaining space ratio of any physical resource is the ratio of the remaining space of any physical resource used to issue virtual resources of the first resource type to the total amount of space.

[0020] In one possible implementation, the issuance revenue of any physical resource includes the difference between the first return resource and the cost loss of the virtual resource of the first resource type issued by any physical resource, and the space surplus of any physical resource includes the difference between the total space used by any physical resource for issuing the virtual resource of the first resource type and the space usage.

[0021] In one possible implementation, when any physical resource also deploys virtual resources of the second resource type, the cost loss of any physical resource issuing virtual resources of the first resource type is determined by at least one of the first cost of any physical resource issuing virtual resources of the first resource type, the second cost of any physical resource issuing virtual resources of the second resource type, or the second return resource of any physical resource issuing virtual resources of the second resource type, and the second resource type is different from the first resource type.

[0022] In a possible implementation, the determination module is further used to determine a mapping relationship between multiple physical resources and resource types of virtual resources deployed on the multiple physical resources; the determination module is used to determine at least one physical resource among the multiple physical resources based on the mapping relationship and the first resource type.

[0023] In one possible implementation, the first resource request also includes a resource demand for a first virtual resource, and a control module is used to determine a first physical resource for issuing the first virtual resource and a resource issuance amount of the first physical resource based on an issuance priority, the resource demand for the first virtual resource, and a remaining amount of space of at least one physical resource for issuing virtual resources of the first resource type, wherein the number of first physical resources is at least one, and the cumulative amount of resource issuance of at least one first physical resource is the same as the resource demand; and according to the resource issuance amount of the first physical resource, control the first physical resource to issue the first virtual resource.

[0024] In a third aspect, a computing device cluster is provided, comprising at least one computing device, each computing device comprising a processor and a memory; the processor of the at least one computing device is used to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes a resource issuance method provided by the aforementioned first aspect or any possible implementation of the first aspect.

[0025] In a fourth aspect, a computer program or computer program product including instructions is provided, and when the instructions are executed by a computing device cluster, the computing device cluster executes the resource distribution method provided in the first aspect or any possible implementation of the first aspect. The computer program product may be a software installation package, which includes a computer program. When the functions of the computing device cluster are to be implemented, the computer program product may be downloaded and executed on the computing device cluster.

[0026] In a fifth aspect, a computer-readable storage medium is provided, comprising computer program instructions, and when the computer program instructions are executed by a computing device cluster, the computing device cluster executes the resource distribution method provided in the first aspect or any possible implementation of the first aspect. The storage medium includes but is not limited to a volatile memory, such as a random access memory, a non-volatile memory, such as a flash memory, a hard disk drive (HDD), and a solid state drive (SSD).

[0027] It should be understood that the beneficial effects achieved by the technical solutions of the second to fifth aspects of the present application and the corresponding possible implementation methods can be referred to the technical effects of the first aspect and its corresponding possible implementation methods mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 It is a schematic diagram of an implementation scenario of resource distribution provided in an embodiment of the present application;

[0029] Figure 2 is a flow chart of a resource distribution method provided in an embodiment of the present application;

[0030] Figure 3 This is a schematic diagram of a user interface for configuring issuance rules provided in an embodiment of the present application;

[0031] Figure 4 It is a schematic diagram of a display interface of a resource distribution solution provided in an embodiment of the present application;

[0032] Figure 5 This is a schematic diagram of the effect of resource distribution provided by an embodiment of the present application;

[0033] Figure 6 It is a structural diagram of a resource distribution device provided in an embodiment of the present application;

[0034] Figure 7 is a schematic diagram of the hardware structure of a computing device provided in an embodiment of the present application;

[0035] Figure 8 is a schematic diagram of the structure of a computing device cluster provided in an embodiment of the present application;

[0036] Fig. 9 It is a schematic diagram of a connection method of a computing device cluster provided in an embodiment of the present application. DETAILED DESCRIPTION

[0037] The terms used in the implementation section of this application are only used to explain the specific embodiments of this application and are not intended to limit this application.

[0038] In the field of cloud computing technology, various cloud services can be run and provided based on virtual resources. Virtual resources are resources virtualized on the basis of physical resources. A combination of multiple virtual resources can form a virtualized computer system, which can be called a virtual machine. A virtual machine can include not only multiple virtual resources, but in some cases, a virtual machine can also include only one virtual resource. In this case, the virtual machine is equivalent to the virtual resource. Virtual resources can be issued by physical resources, and the process of issuing virtual resources from physical resources can be called resource issuance or virtual resource issuance. A physical resource can issue one or more virtual resources, and a virtual resource can be issued by one or more physical resources.

[0039] See also Figure 1 , showing a schematic diagram of an implementation scenario of resource issuance. The implementation scenario includes physical resources 11 and a cloud management platform 12. Physical resources 11 are deployed in the cloud. Physical resources 11 can also be called resource pools or physical resource pools. Physical resources 11 refer to devices that can issue virtual resources (or virtual machines), such as servers obtained by combining hardware configurations such as physical central processing units (CPU), memory, graphics processing units (GPU) or storage devices. Correspondingly, the virtual resources that can be issued by physical resources 11 may include one resource or a combination of multiple resources allocated, divided and virtualized based on hardware configurations such as physical CPUs, memory, GPUs or storage devices. The number of physical resources 11 can be one or more, and different physical resources 11 can be of different types. For example, the type of physical resources 11 can be physical resource type (resource type, RT) c3_2 or RTc3_4, etc.

[0040] The cloud management platform 12 may also be referred to as a management device, a control device or a virtual resource selling device. The cloud management platform 12 is deployed in the cloud and is used to manage and control one or more physical resources 11 connected to the cloud management platform 12 .

[0041] Optionally, the implementation scenario may further include a virtual resource request device 13, which is in communication with the cloud management platform 12 and the physical resource 11. The request device 13 is a device that has a virtual resource demand, such as a terminal used by a user or a non-user device that can run based on virtual resources. The request device 13 can report the demand for virtual resources to the cloud management platform 12, and can also obtain virtual resources issued by the physical resource 11 by accessing the physical resource 11.

[0042] The embodiment of the present application provides a resource distribution method, which can realize flexible resource distribution. The method can be applied to Figure 1 In the implementation scenario shown, for example, the method can be executed by a cloud management platform. Exemplarily, the method includes but is not limited to Figure 2 S201 to S204 are shown.

[0043] S201: Obtain a first resource request, where the first resource request includes a first resource type of a first virtual resource requested for release.

[0044] Among them, the first virtual resource may include one or more virtual resources, and thus the first resource type may also include a resource type of a virtual resource or a resource type of multiple virtual resources. The embodiment of the present application does not limit the method for obtaining the first resource request. Exemplarily, the cloud management platform may obtain the first resource request by receiving the first resource request sent by the requesting device. Alternatively, the cloud management platform may also autonomously generate the first resource request according to the first resource type of the required first virtual resource sent by the requesting device.

[0045] S202: Determine, from a plurality of physical resources, at least one physical resource on which a virtual resource of a first resource type is deployed.

[0046] Among them, if the hardware configuration of any physical resource can meet the use requirements of the virtual resources of the specified resource type, then it can be considered that the physical resource is deployed with the virtual resources of the specified resource type, and further, it can be considered that the physical resource can be used to issue the virtual resources of the specified resource type. For example, if the hardware configuration of physical resource A can meet the use requirements of virtual resource a (virtual resource of resource type a), it can be considered that virtual resource a is deployed on physical resource A, and physical resource A can be used to issue virtual resource a. Therefore, the embodiment of the present application can determine at least one physical resource that is deployed with the virtual resources of the first resource type among the multiple physical resources managed by the cloud management platform according to the first resource type.

[0047] In one possible implementation, before determining at least one physical resource on which a virtual resource of a first resource type is deployed, the cloud management platform may first determine a mapping relationship between a plurality of physical resources managed by the cloud management platform and resource types of virtual resources deployed on the plurality of physical resources, and then determine at least one physical resource corresponding to the first resource type based on the mapping relationship and the first resource type. The mapping relationship may also be referred to as a distribution relationship, which indicates what type of virtual resources a physical resource can distribute. For example, physical resource A may be used to distribute virtual resources of two resource types, resource type a and resource type b. Then, there is a mapping relationship between physical resource A and resource type a and resource type b, and the mapping relationship may be recorded as "a, b→A" or "A→a, b".

[0048] The embodiments of the present application do not limit the method for determining the mapping relationship between multiple physical resources and the resource types of virtual resources deployed on the multiple physical resources. By way of example, multiple physical resources can be detected to determine the hardware configuration of each of the multiple physical resources, and then determine what type of virtual resource usage requirements the hardware configuration of each physical resource can meet, so as to determine the resource type of virtual resources that each physical resource can issue, and thus determine the mapping relationship between each physical resource and the resource type of virtual resources deployed on each physical resource.

[0049] Optionally, the mapping relationship can be determined after the cloud management platform and multiple physical resources are initialized. After the mapping relationship is determined, the cloud management platform can store the mapping relationship and modify the mapping relationship according to changes in each physical resource managed by the cloud management platform.

[0050] In some cases, the process of determining at least one physical resource based on a mapping relationship and a first resource type may include: determining a mapping relationship that includes the first resource type in the mapping relationship, and then determining at least one physical resource that can issue virtual resources of the first resource type through the mapping relationship that includes the first resource type.

[0051] S203: Obtain a release priority of at least one physical resource for a virtual resource of the first resource type, where the release priority is used to indicate a release order of the at least one physical resource for the virtual resource of the first resource type.

[0052] After determining at least one physical resource that can be used to issue virtual resources of the first resource type, the issuance priority of the at least one physical resource for the virtual resources of the first resource type can be obtained, so as to achieve flexible issuance of virtual resources according to the issuance priority of the at least one physical resource for the virtual resources of the first resource type. Exemplarily, the process of obtaining the issuance priority of the at least one physical resource for the virtual resources of the first resource type may include: determining the issuance priority of the at least one physical resource for the virtual resources of the first resource type according to the resource issuance situation of the at least one physical resource.

[0053] In one possible implementation, the resource issuance status of at least one physical resource may include at least one of the issuance revenue or the space surplus of at least one physical resource. In this implementation, the issuance priority of any one of the at least one physical resource for the virtual resource of the first resource type may be determined based on at least one of the issuance revenue or the space surplus of any one of the physical resources.

[0054] The income from issuing any physical resource refers to the income from issuing any physical resource of the first resource type. For example, the income from issuing any physical resource includes the difference between the first return resource and the cost loss from issuing any physical resource of the first resource type. The first return resource from issuing any physical resource of the first resource type can be the income (such as rental income) from issuing any physical resource of the first resource type.

[0055] Optionally, the priority of any physical resource for issuing virtual resources of the first resource type is positively correlated with the size of the issuance revenue of any physical resource. Since the more issuance revenue any physical resource has for virtual resources of the first resource type, the more revenue can be obtained by issuing virtual resources of the first resource type through the physical resource, and thus the priority of any physical resource for issuing virtual resources of the first resource type is positively correlated with the issuance revenue of any physical resource, so that the physical resource with the larger issuance revenue can give priority to issuing virtual resources of the first resource type, and thus can obtain more revenue.

[0056] In one possible implementation, any physical resource may also be deployed with virtual resources of a second resource type that is different from the first resource type. Since the space used by each physical resource to distribute virtual resources is limited, for a physical resource that is deployed with multiple virtual resources, the cost of distributing virtual resources of the first resource type through part of the space is that virtual resources of other resource types cannot be distributed through the part of the space. Therefore, in this implementation, the cost loss of any physical resource distributing virtual resources of the first resource type may be determined based on at least one of the first cost of any physical resource distributing virtual resources of the first resource type, the second cost of any physical resource distributing virtual resources of the second resource type, or the second return resource of any physical resource distributing virtual resources of the second resource type.

[0057] For example, among the physical resources managed by the cloud management platform, there are three types of physical resources that can be used to issue virtual resource a, namely physical resource A, physical resource B, and physical resource C. Among them, the hardware configuration of physical resource A includes J-type CPU and K-type GPU, the hardware configuration of physical resource B includes J-type CPU and P-type object storage service (OBS) storage, and the hardware configuration of physical resource C includes J-type CPU. If the virtual resource a requested by the user needs to be issued through the hardware configuration of J-type CPU in the physical resource, then at the hardware performance level, physical resource A, physical resource B, and physical resource C can all be used to issue virtual resource a.

[0058] In addition, physical resource A can also issue virtual resources of resource type b (referred to as virtual resource b) through the hardware configuration of K-type GPU, that is, the virtual resource of the second resource type deployed on physical resource A is virtual resource b; physical resource B can also issue virtual resources of resource type c (referred to as virtual resource c) through the hardware configuration of P-type OBS storage, that is, the virtual resource of the second resource type deployed on physical resource B is virtual resource c.

[0059] It can be seen that the cost of using physical resource A to issue virtual resource a is the loss of space for issuing virtual resource b through K-type GPU. Therefore, the cost loss of using physical resource A to issue virtual resource a is positively correlated with the second cost and second return resource of issuing virtual resource b. The cost of using physical resource B to issue virtual resource a is the loss of space for issuing virtual resource c through P-type OBS storage. Therefore, the cost loss of using physical resource B to issue virtual resource a is positively correlated with the second cost and second return resource of issuing virtual resource c. Using physical resource C to issue virtual resource a is a complete hardware match, that is, the cost loss of issuing virtual resource a is only related to the first cost of virtual resource a.

[0060] Because the issuance revenue of physical resources for virtual resources of the first resource type is the difference between the first return resource and the cost loss, therefore when the first return resource is the same, the greater the cost loss of physical resources issuing virtual resources of the first resource type, the smaller the issuance revenue of the physical resources, and the lower the issuance priority of physical resources for virtual resources of the first resource type.

[0061] Moreover, the cost loss of any physical resource issuing a virtual resource of the first resource type is positively correlated with the first cost of any physical resource issuing a virtual resource of the first resource type, the second cost of any physical resource issuing a virtual resource of the second resource type, and the second return resource of any physical resource issuing a virtual resource of the second resource type. Therefore, when the second cost and the second return resource of physical resource C issuing a virtual resource of the second resource type are zero, and the second cost and the second return resource of physical resource A issuing a virtual resource b of the second resource type are higher than the second cost and the second return resource of physical resource B issuing a virtual resource c of the second resource type, it can be determined that for virtual resource a, physical resource C has the highest issuance priority, followed by physical resource B, and physical resource A has the lowest issuance priority. The issuance priorities and mapping relationships of the three physical resources can be expressed as:

[0062] Physical resource C has the highest priority in allocating virtual resource a: C→a: 3;

[0063] Physical resource B has the second highest priority in issuing virtual resource a: B→a: 2;

[0064] Physical resource A has the lowest priority in allocating virtual resource a: A→a:1.

[0065] That is, when the requested virtual resource is virtual resource a, if the number of virtual resource a that can be issued by physical resource C is sufficient, virtual resource a will be issued through physical resource C first. When physical resource C is exhausted, virtual resource a will be issued through physical resource B. When physical resource B is also exhausted, virtual resource a will be issued through physical resource A.

[0066] In the embodiment of the present application, the remaining space of any physical resource refers to the size of the remaining space of any physical resource used to issue virtual resources of the first resource type. For example, the remaining space of any physical resource includes the difference between the total space of any physical resource used to issue virtual resources of the first resource type and the space usage.

[0067] Optionally, the priority of issuing virtual resources of the first resource type to any physical resource is positively correlated with the size of the remaining space of any physical resource. Since the more remaining space any physical resource has for virtual resources of the first resource type, the more virtual resources of the first resource type that can be issued by the physical resource, and thus the priority of issuing virtual resources of the first resource type to any physical resource is positively correlated with the remaining space of any physical resource, the physical resource with more remaining space can be given priority in issuing virtual resources of the first resource type, making it easier to meet a large number of resource demands.

[0068] In a possible implementation, the priority of issuing virtual resources of the first resource type to any physical resource may also be positively correlated with the size of the remaining space ratio of any physical resource. The remaining space ratio of any physical resource is the ratio of the remaining space used by any physical resource to issue virtual resources of the first resource type to the total space. Since the larger the remaining space ratio of any physical resource to the virtual resources of the first resource type, the greater the relative number of virtual resources of the first resource type that can be issued by the physical resource, the priority of issuing virtual resources of the first resource type to any physical resource is positively correlated with the remaining space ratio of any physical resource, which enables the physical resource with a larger remaining space ratio to give priority to issuing virtual resources of the first resource type, making it easier to meet a large number of resource demands.

[0069] For example, the hardware configurations of physical resources A, B, and C all include J-type CPUs, and the remaining space ratios of J-type CPUs in the three physical resources are P(A), P(B), and P(C), respectively, where P(A)>P(B)>P(C). Then, when physical resources A, B, and C can all be used to issue virtual resource a with a hardware performance requirement of J-type CPU, it can be determined that, for virtual resource a, physical resource C has the highest priority for issuance, physical resource B has the second highest priority, and physical resource A has the lowest priority for issuance. The issuance priorities and mapping relationships of the three physical resources can be expressed as:

[0070] Physical resource C has the highest priority in issuing virtual resource a: C→a: P(C);

[0071] Physical resource B has the second highest priority in issuing virtual resource a: B→a: P(B);

[0072] Physical resource A has the lowest priority in issuing virtual resource a: A→a: P(A).

[0073] In addition, the remaining space ratio of any physical resource used to issue virtual resources of the first resource type can also reflect the sales status of the virtual resources of the first resource type for any physical resource. If the remaining space ratio of any physical resource is larger, it means that the virtual resources of the first resource type issued by any physical resource are relatively fewer, and the sales status of the virtual resources of the first resource type for any physical resource is poor; and if the remaining space ratio of any physical resource is smaller, it means that the virtual resources of the first resource type issued by any physical resource are relatively more, and the sales status of the virtual resources of the first resource type for any physical resource is better.

[0074] In some cases, the embodiments of the present application may also determine the issuance priority by comprehensively considering the issuance income and the remaining space of at least one physical resource. For example, different weights may be assigned to the issuance income and the remaining space, and the issuance priority of at least one physical resource may be determined through weighted calculation. Correspondingly, the embodiments of the present application may also determine the issuance priority by comprehensively considering the issuance income and the remaining space ratio of at least one physical resource. For example, different weights may be assigned to the issuance income and the remaining space ratio, and the issuance priority of at least one physical resource may be determined through weighted calculation.

[0075] In one possible implementation, the process of the cloud management platform obtaining the issuance priority of at least one physical resource for a virtual resource of a first resource type may also include: obtaining at least one issuance rule corresponding to at least one physical resource, the issuance rule corresponding to any physical resource including the issuance priority of any physical resource for a virtual resource of the first resource type; obtaining the issuance priority of at least one physical resource in at least one issuance rule.

[0076] In this implementation, the issuance priority of at least one physical resource is determined before the cloud management platform obtains the issuance priority of at least one physical resource based on the first resource request, and after the issuance priority of at least one physical resource is determined, the issuance priority can be configured. Exemplarily, at least one issuance rule corresponding to at least one physical resource can be generated based on the issuance priority of at least one physical resource for the virtual resource of the first resource type, so as to implement the configuration of the issuance priority of at least one physical resource.

[0077] In a possible implementation, the configuration of the issuance rules can be completed through an issuance label with an issuance priority. For example, physical resources A, physical resources B, and physical resources C can all be used to issue virtual resource a, and the issuance priority of using physical resources A, physical resources B, and physical resources C to issue virtual resource a increases in sequence. Then three levels of issuance labels can be configured for virtual resource a: label (LABEL)-a.1, LABEL-a.2, LABEL-a.3 or Label type (Type) #1, Label Type #2, and Label Type #3, where the numbers 1, 2, and 3 in the label represent the issuance priority of low, medium, and high, respectively. Correspondingly, physical resource A has label LABEL-a.1 or Label Type #1, physical resource B has label LABEL-a.2 or Label Type #2, and physical resource C has label LABEL-a.3 or Label Type #3.

[0078] Optionally, at least one issuance rule may also include a mapping relationship between at least one physical resource and a resource type of a virtual resource deployed in at least one physical resource. In the case where at least one issuance rule includes a mapping relationship between at least one physical resource and a resource type of a virtual resource deployed in at least one physical resource, the issuance rule may be in the form of: "Physical resource X can be used to issue virtual resource x (mapping relationship), and the issuance priority is i", and the issuance rule may be expressed as X~x:i. Among them, the issuance priority i may be a natural number, which means that when multiple types of physical resources can be used to issue virtual resource x, the issuance priority of virtual resource x issued by physical resource X is i, and the larger the value of i, the higher the issuance priority. In addition, in addition to using the size of natural numbers to represent the issuance priority, the issuance priority i may also use the order of English letters or the size of Roman numerals to represent the issuance priority.

[0079] For example, for an example scenario where physical resource A and physical resource B have CPUs with the same target performance, but physical resource B can also provide a graphics card or a large memory, the following issuance rule can be configured in the embodiment of the present application: "Physical resource A can be used to issue virtual resource a, with an issuance priority of 3; physical resource B can be used to issue virtual resource a, with an issuance priority of 2". Since physical resource B has a higher hardware configuration, the cost loss of using physical resource B to issue virtual resource a is higher, so a lower issuance priority can be configured for the issuance relationship between physical resource B and virtual resource a.

[0080] For another example, the most suitable virtual resource for issuing resource type c3.xlarge.2 is the physical resource RTc3_2. When configuring the mapping relationship of c3.xlarge.2→RTc3_2, you need to label the virtual resource with the resource type c3.xlarge.2 with "Label Type#1", and then configure the same label "Label Type#1" for the physical resource RTc3_2 to complete the configuration of the mapping relationship c3.xlarge.2→RTc3_2.

[0081] In another possible embodiment, the issuance rule may also be in the form of: "Physical resource X can be used to issue virtual resource x, and the issuance relationship score is 90 points." In this issuance rule, the issuance relationship score is used to represent the issuance priority, and the higher the score, the higher the issuance priority.

[0082] The embodiments of the present application do not limit the expression of the issuance priority. When multiple types of physical resources can be used to issue target virtual resources of the same resource type, information that can be used to determine which type of physical resources should be used first to issue the target virtual resources can be used as the expression of the issuance priority in the embodiments of the present application.

[0083] For example, see Figure 3 , showing a user interface (UI) schematic diagram for configuring issuance rules. The interface can be a management configuration interface for exclusive resource pool administrators or private cloud administrators on a cloud management platform, through which issuance rules can be manually configured or changed.

[0084] The interface includes three columns: resource type of virtual resources, physical resources, and release priority. Resource type includes the resource type of each virtual resource that can be released by each physical resource managed by the cloud management platform. Resource type can include Figure 3 The physical resources include various physical resources managed by the cloud management platform, such as c3.xlarge.2, c3.xlarge.4, and c6.2xlarge.2. Figure 3 RTc3_2, RTc3_4, RTm6_2 and Rtgpu_7 shown in FIG. The issuance priority can be any natural number.

[0085] like Figure 3As shown, below the resource type column of virtual resources (the selection box represented by the bold rectangle), you can determine the configuration of the issuance rules for virtual resources of the resource type by selecting different resource types of virtual resources. After selecting the resource type of the virtual resource, you can select the physical resource that can issue the virtual resource of the resource type in the physical resource column, and configure the issuance priority corresponding to the mapping relationship between the physical resource and the virtual resource type in the issuance priority column, so as to complete the configuration of an issuance rule. For the issuance rules that have been configured, you can also change the issuance rules through this interface. For example, if the remaining space of multiple physical resources used to issue virtual resources of the same resource type changes, resulting in a change in the issuance priority of the multiple physical resources, the issuance rules can be changed according to the changed issuance priority, so that the changed issuance rules match the changed issuance priority.

[0086] After completing the configuration of each issuance rule, when obtaining the issuance priority, the issuance priority can be efficiently obtained through the issuance rule. Exemplarily, obtaining the issuance priority of at least one physical resource for a virtual resource of a first resource type may include: determining at least one issuance rule corresponding to the first resource type; and obtaining the issuance priority of at least one physical resource for the virtual resource of the first resource type from the at least one issuance rule. In addition, since the issuance rule may also include a mapping relationship between resource types of physical resources and virtual resources, at least one physical resource may also be determined from multiple physical resources based on the mapping relationship and the first resource type.

[0087] For example, see Figure 3 If the first resource type is c3.xlarge.4, it can be determined in each issuance rule that the issuance rule corresponding to c3.xlarge.4 includes RTc3_4, and the issuance priority of the physical resource RTc3_4 for the virtual resource of the resource type c3.xlarge.4 is 3.

[0088] S204: Control at least one physical resource to release the first virtual resource according to the release priority.

[0089] After obtaining the issuance priority of at least one physical resource, the cloud management platform can control each physical resource in the at least one physical resource to jointly issue the first virtual resource, or can control some of the physical resources in the at least one physical resource to issue the first virtual resource. In one possible implementation, the first resource request also includes the resource demand of the first virtual resource. In this implementation, the first physical resource used to issue the first virtual resource and the resource issuance amount of the first physical resource can be determined based on the issuance priority, the resource demand of the first virtual resource, and the remaining space of at least one physical resource for issuing virtual resources of the first resource type, thereby controlling the first physical resource in the at least one physical resource that needs to issue the first virtual resource to issue the first virtual resource.

[0090] The resource demand may be the number of virtual resources or the number of cores required. If the first virtual resource includes a type of virtual resource, the resource demand of the first virtual resource is the demand for the type of virtual resource. For example, the first resource type is a1 and the resource demand is s1, indicating that the first resource request is used to request a virtual resource of resource type a1, and the demand for the virtual resource of resource type a1 is s1.

[0091] If the first virtual resource includes multiple virtual resources, the resource demand of the first virtual resource may be the demand of each virtual resource among the multiple virtual resources, or the resource demand of the first virtual resource may be the total demand of the multiple virtual resources. For example, the first resource type includes a2 and a3, and the resource demands are s2 and s3 respectively, indicating that the first resource request is used to request virtual resources of resource types a2 and a3, and the demand for virtual resources of resource type a2 is s2, and the demand for virtual resources of resource type a3 is s3. For another example, the first resource type includes a4 and a5, and the resource demand is s4, indicating that the first resource request is used to request at least one of virtual resources of resource type a4 or virtual resources of resource type a5, and the total demand for virtual resources is s4.

[0092] In an embodiment of the present application, for different physical resources that can issue virtual resources of the same resource type, the higher the issuance priority of the physical resource for the virtual resources of this resource type, the higher the order in which the virtual resources of the same resource type are issued through the physical resource, that is, the issuance priority of the physical resource can indicate the resource issuance order of the physical resource.

[0093] Therefore, in some cases, the issuance priority of each physical resource for the virtual resource of the first resource type can be sorted in a high-to-low order or a low-to-high order, and the order of each physical resource after sorting is the resource issuance order of each physical resource. Taking the issuance priority of each physical resource for the virtual resource of the first resource type as an example, at least one physical resource that can be used to issue the virtual resource of the first resource type a includes physical resource A, physical resource B, and physical resource C. For the virtual resource of the first resource type a, the issuance priority of physical resource A is 3, the issuance priority of physical resource B is 2, and the issuance priority of physical resource C is 1. According to the issuance priority of each physical resource for the virtual resource of the first resource type a, the order obtained is physical resource A-physical resource B-physical resource C. Then the resource issuance order of each physical resource is also physical resource A (first)-physical resource B (second)-physical resource C (third).

[0094] After determining the resource issuance order of at least one physical resource, the resource issuance amount of at least one physical resource can be determined in sequence according to the remaining space of the at least one physical resource and the resource demand of the first virtual resource and in accordance with the resource issuance order of at least one physical resource.

[0095] In a possible implementation, when determining the resource allocation amount of at least one physical resource, the resource allocation amount of each physical resource may be determined in turn according to the remaining space of each physical resource until the cumulative amount of each resource allocation amount is the same as the resource demand of the first virtual resource. The cumulative amount refers to the sum of the accumulated amounts of each resource allocation amount.

[0096] For example, if the first resource type included in the first resource request is c3.xlarge.2 or arm.xlarge.4, and the resource demand is M cores (or M cores). The configured issuance rules include: the virtual resource of resource type c3.xlarge.2 has issuance labels "label CPU x86 gen3" and "label CPU x86 gen2", and the issuance priorities corresponding to the two issuance labels are 3 and 2 respectively; the virtual resource of resource type arm.xlarge.4 has issuance labels "label CPU armgen2" and "label CPU arm gen1", and the priorities corresponding to the two issuance labels are 2 and 1 respectively. The at least one physical resource is a physical resource RTc3_2, a physical resource RTc3_4, a physical resource RTarm2, and a physical resource RTarm1, and the physical resource RTc3_2, the physical resource RTc3_4, the physical resource RTarm2, and the physical resource RTarm1 correspond to issuance labels "labelCPU x86 gen3", "label CPU x86 gen2", "label CPU arm gen2", and "label CPU armgen1" respectively.

[0097] According to the release priority of at least one physical resource, the resource release order of at least one physical resource is physical resource RTc3_2-physical resource RTc3_4 / physical resource RTarm2-physical resource RTarm1. Then, based on the release relationship "c3.xlarge.2→RTc3_2:3" with the highest release priority in the release rule, it can be determined that the physical resource RTc3_2 can release a total of x1 cores of virtual resources of resource type c3.xlarge.2 through the remaining space of the physical resource RTc3_2. If x1 is greater than or equal to M, it can be determined that the first physical resource is the physical resource RTc3_2, the resource release amount of the physical resource RTc3_2 is M cores, and the resource type of the virtual resource to be released is c3.xlarge.2.

[0098] If x1 is less than M, it means that even if the remaining space of the physical resource RTc3_2 is used to issue virtual resources of resource type c3.xlarge.2, the first resource request cannot be satisfied. Then, based on the issue relationship "c3.xlarge.2→RTc3_4:2" with the second highest issue priority in the issue rule, according to the remaining space of the physical resource RTc3_4, it can be determined that the physical resource RTc3_4 can issue virtual resources of resource type c3.xlarge.2 with a total of x2 cores through the remaining space. If x1+x2 is greater than or equal to M, it can be determined that the first physical resources are the physical resources RTc3_2 and the physical resource RTc3_4, the resource issue amount of the physical resource RTc3_2 is x1 cores, the resource issue amount of the physical resource RTc3_4 is M-x1 cores, and the resource type of the virtual resources that the physical resources RTc3_2 and the physical resource RTc3_4 need to issue are both c3.xlarge.2.

[0099] Alternatively, since the issuing relationship "arm.xlarge.4→RTarm2:2" with the second highest issuing priority in the issuing rule has the same issuing priority as the issuing relationship "c3.xlarge.2→RTc3_4:2", when x1 is less than M, it is also possible to determine that the physical resource RTarm2 can issue a total of x3 cores of virtual resources of the resource type arm.xlarge.4 through the remaining space of the physical resource RTarm2 based on the issuing relationship "arm.xlarge.4→RTarm2:2". If x1+x3 is greater than or equal to M, it can be determined that the first physical resource is the physical resource RTc3_2 and the physical resource RTarm2, the resource issuing amount of the physical resource RTc3_2 is x1 cores, the resource issuing amount of the physical resource RTarm2 is M-x1 cores, and the resource type of the virtual resource that the physical resource RTc3_2 needs to issue is c3.xlarge.2, and the resource type of the virtual resource that the physical resource RTarm2 needs to issue is arm.xlarge.4.

[0100] Alternatively, if x1+x2 is less than M, and x1+x2+x3 is greater than or equal to M, it can be determined that the first physical resource is physical resource RTc3_2 and physical resource RTc3_4, the resource allocation amount of physical resource RTc3_2 to virtual resources of resource type c3.xlarge.2 is x1 cores, the resource allocation amount of physical resource RTc3_4 to virtual resources of resource type c3.xlarge.2 is x2 cores, and the resource allocation amount of physical resource RTarm2 to virtual resources of resource type arm.xlarge.4 is M-x1-x2 cores.

[0101] Alternatively, if x1+x3 is less than M, and x1+x2+x3 is greater than or equal to M, it can be determined that the first physical resource is physical resource RTc3_2 and physical resource RTarm2, the resource allocation amount of physical resource RTc3_2 to virtual resources of resource type c3.xlarge.2 is x1 cores, the resource allocation amount of physical resource RTarm2 to virtual resources of resource type arm.xlarge.4 is x3 cores, and the resource allocation amount of physical resource RTc3_4 to virtual resources of resource type c3.xlarge.2 is M-x1-x3 cores.

[0102] If x1+x2+x3 is less than M, then the release relationship of lower release priority "arm.xlarge.4→RTarm1:1" can be used to determine that the physical resource RTarm1 can release virtual resources of the resource type arm.xlarge.4 with a total of x4 cores according to the remaining space of the physical resource RTarm1. If x1+x2+x3+x4 is greater than M, it can be determined that the first physical resource is physical resource RTc3_2, physical resource RTc3_4, physical resource RTarm2 and physical resource RTarm1, the resource allocation amount of physical resource RTc3_2 to virtual resources of resource type c3.xlarge.2 is x1 cores, the resource allocation amount of physical resource RTc3_4 to virtual resources of resource type c3.xlarge.2 is x2 cores, the resource allocation amount of physical resource RTarm2 to virtual resources of resource type arm.xlarge.4 is x3 cores, and the resource allocation amount of physical resource RTarm1 to virtual resources of resource type arm.xlarge.4 is M-x1-x2-x3 cores.

[0103] If x1+x2+x3+x4 is less than M, it can be considered that even if physical resources RTc3_2, physical resources RTc3_4, physical resources RTarm2 and physical resources RTarm1 issue virtual resources of the first resource type based on all the remaining space, the first resource demand cannot be met, and the requesting device can be notified of the issuance failure.

[0104] In summary, the embodiment of the present application can dynamically calculate the resource issuance scheme that can meet the first resource request based on the issuance priority and the resource demand. The resource issuance scheme can also be called a demand matching supply scheme, including what kind of physical resources are used to issue what kind of resource type of virtual resources and how many cores in total. Optionally, the resource issuance scheme can also include a scheme score, and the higher the scheme score, the higher the feasibility of the resource issuance scheme. Among them, the scheme score can be the average value of the scores of the issuance priorities of the physical resources for the virtual resources in the resource issuance scheme, and the scores of the issuance priorities of each physical resource for various virtual resources can be determined based on experience or user needs. For example, the resource issuance scheme includes physical resource A issuing virtual resource a and physical resource B issuing virtual resource a, and the score of the issuance priority of physical resource A for virtual resource a is 90, and the score of the issuance priority of physical resource B for virtual resource a is 80, then the scheme score of the resource issuance scheme can be the average value of 90 and 80, which is 85.

[0105] For example, see Figure 4 , shows a schematic diagram of a display interface of a resource distribution plan, which can be a resource management interface viewed by a dedicated physical resource administrator or a private cloud administrator on a cloud management platform. The display interface includes distribution rules corresponding to virtual resources of resource types c3.xlarge.4 and c3.xlarge.2. Among them, virtual resources of resource type c3.xlarge.4 can be distributed by physical resources RTc3_4, virtual resources of resource type c3.xlarge.2 can be distributed by physical resources RTc3_2, and virtual resources of resource type c3.xlarge.2 can also be distributed by physical resources RTc3_4. The distribution priority score corresponding to the distribution relationship of c3.xlarge.4 to RTc3_4 is 100, the distribution priority score corresponding to the distribution relationship of c3.xlarge.2 to RTc3_2 is 100, and the distribution priority score corresponding to the distribution relationship of c3.xlarge.2 to RTc3_4 is 70.

[0106] Continue to see Figure 4The display interface also includes a first resource request display part, including but not limited to the virtual processor (flavor identifier virtual central processing unit, Flavor ID vCPU) information of the characteristic identifier (or specification instance) or the virtual processor (flavor type virtual central processing unit, Flavor Type vCPU) information of the characteristic type (or specification type), and the number of characteristic identifiers (flavor identifier, Flavor ID). Among them, the virtual processor is a processor that supports the operation of the virtual machine, which is obtained by dividing the physical processor.

[0107] like Figure 4 As shown, By (by) Flavor ID vCPU indicates that the virtual processor indicated by the Flavor ID can support the operation of the first virtual resource. By Flavor ID number indicates the number of physical resources that the virtual processor indicated by the Flavor ID depends on. By Flavor Type vCPU indicates that the virtual processor indicated by the Flavor Type can support the operation of the first virtual resource.

[0108] Both Flavor ID and Flavor Type can be used to distinguish different virtual processors, and then Flavor ID and Flavor Type can be used to indicate the resource type of virtual resources that the virtual processor can support to run. Taking Flavor ID indicating resource type as an example, the first resource request displayed in the first resource request display part includes: the first resource type is c3.xlarge.4 and c3.xlarge.2, and the resource demand is 200 cores. Based on the analysis control in the display interface being selected, the cloud management platform automatically analyzes and determines the information and resource distribution amount of the first physical resource according to the resource distribution method described above. For example, Solution 1 is to distribute virtual resources of resource type c3.xlarge.4 with 80 cores through 40 physical resources, and to distribute virtual resources of resource type c3.xlarge.2 with 120 cores through 30 physical resources. The solution score of Solution 1 is 90. In addition, the display interface can also include conventional resources such as the region (region), availability zone (AZ) and availability group (AG) to which the virtual resource belongs.

[0109] After determining the information of the first physical resource and the resource distribution amount of the first physical resource, the virtual resource in the first physical resource can be distributed to the user according to the resource distribution amount of the first physical resource to achieve the distribution of the first virtual resource. The embodiment of the present application does not limit the method for distributing the first virtual resource. Exemplarily, an access link of the first virtual resource in the first physical resource can be generated, and distribution information including the access link can be sent to the terminal corresponding to the user, so that the user can access the first virtual resource through the access link, thereby completing the distribution of the first virtual resource.

[0110] Below, the beneficial effects of the resource distribution method provided in the embodiment of the present application are described by comparing the resource distribution method provided in the embodiment of the present application with the related art. Figure 5 , which shows a schematic diagram of the effect of resource distribution.

[0111] In related technologies, in order to meet the resource requirements of different cloud tenants (i.e., users), cloud vendors usually preset a release relationship between virtual resources and physical resources, which is defined by a release tag. Only physical resources whose release tags match the target virtual resources can release the target virtual resources. For example, Figure 5 In the example, the hardware configurations of physical resources A and B both have high-performance CPUs and high-performance graphics cards, which are suitable for issuing virtual resource a. The cloud vendor can set the issuing tag "High Performance" for physical resources A and B, and also set the issuing tag "High Performance" for virtual resource a. Then, when a user requests virtual resource a, the scheduling algorithm searches for all physical resources with the "HighPerformance" tag, and after determining that both physical resources A and B can be used to issue virtual resource a, the scheduling algorithm randomly arranges physical resource A or physical resource B to issue virtual resource a.

[0112] However, out of consideration for resource costs, cloud vendors in related technologies usually configure fixed issuance relationships for physical resources and virtual resources with fully matched or highly matched hardware and performance when configuring issuance relationships, and set default regular issuance plans according to the fixed issuance relationships. For example, the hardware configurations of physical resources A and physical resources B have CPUs with the same target performance, but physical resource B can also provide a graphics card or large memory in addition to physical resource A. Then, for virtual resource a that only requires a CPU with target performance, cloud vendors usually only configure issuance relationships for physical resource A and virtual resource a, that is, the default regular issuance plan is: when a user requests virtual resource a, virtual resource a is issued through physical resource A, and physical resource B will not be used to issue virtual resource a. Then, when physical resource A is exhausted and the user still has requests for virtual resource a, the cloud vendor needs to directly expand physical resource A to meet the peak demand for virtual resource a, but expanding physical resource A will cause the utilization rate of physical resource A to decrease during the flat demand period of virtual resource a, increasing the expansion cost of the cloud vendor.

[0113] In the embodiment of the present application, since the hardware configuration of physical resource B can also meet the issuance demand of virtual resource a, the issuance priority of virtual resource a can be configured for physical resource A and physical resource B. The issuance priority of physical resource A is higher than the issuance priority of physical resource B, so that when physical resource A is not exhausted, virtual resource a is issued through physical resource A first. When physical resource A is exhausted and the user still has a request for virtual resource a, the embodiment of the present application can control physical resource B to issue virtual resource a to meet the peak demand of virtual resource a, realize the secondment and issuance of virtual resource a, make resource issuance more flexible, and can reduce the expansion cost required to expand physical resource A.

[0114] In an embodiment of the present application, by obtaining the issuance priority of at least one physical resource for a virtual resource of a first resource type and controlling at least one physical resource to issue the first virtual resource according to the issuance priority, flexible issuance of the first virtual resource can be achieved.

[0115] The resource distribution method provided in the embodiment of the present application is described above. Figure 6 , an exemplary description of the resource distribution device provided in the embodiment of the present application is given. Figure 6 , shows a schematic diagram of the structure of a resource distribution device, which includes but is not limited to the following modules.

[0116] An acquisition module 601 is used to acquire a first resource request, where the first resource request includes a first resource type of a first virtual resource requested for issuance; a determination module 602 is used to determine at least one physical resource on which a virtual resource of the first resource type is deployed among multiple physical resources; the acquisition module 601 is also used to acquire an issuance priority of at least one physical resource for virtual resources of the first resource type, where the issuance priority is used to indicate an issuance order of at least one physical resource for virtual resources of the first resource type; and a control module 603 is used to control at least one physical resource to issue the first virtual resource according to the issuance priority.

[0117] In one possible implementation, the issuance priority of any physical resource among at least one physical resource for the virtual resource of the first resource type is determined based on at least one of the issuance revenue or the space surplus of any physical resource, where the issuance revenue of any physical resource refers to the revenue of any physical resource for issuing the virtual resource of the first resource type, and the space surplus of any physical resource refers to the size of the remaining space of any physical resource for issuing the virtual resource of the first resource type.

[0118] In one possible implementation, the issuance priority of any physical resource for virtual resources of the first resource type is positively correlated with the size of the issuance revenue of any physical resource; the issuance priority of any physical resource for virtual resources of the first resource type is positively correlated with the size of the remaining space of any physical resource, or the issuance priority of any physical resource for virtual resources of the first resource type is positively correlated with the size of the remaining space ratio of any physical resource, and the remaining space ratio of any physical resource is the ratio of the remaining space of any physical resource used to issue virtual resources of the first resource type to the total amount of space.

[0119] In one possible implementation, the issuance revenue of any physical resource includes the difference between the first return resource and the cost loss of the virtual resource of the first resource type issued by any physical resource, and the space surplus of any physical resource includes the difference between the total space used by any physical resource for issuing the virtual resource of the first resource type and the space usage.

[0120] In one possible implementation, when any physical resource also deploys a virtual resource of a second resource type, the cost loss of any physical resource issuing a virtual resource of a first resource type is determined based on at least one of a first cost of any physical resource issuing a virtual resource of the first resource type, a second cost of any physical resource issuing a virtual resource of a second resource type, or a second return resource of any physical resource issuing a virtual resource of the second resource type, and the second resource type is different from the first resource type.

[0121] In one possible implementation, the determination module 602 is also used to determine a mapping relationship between multiple physical resources and resource types of virtual resources deployed on the multiple physical resources; the determination module 602 is used to determine at least one physical resource among the multiple physical resources based on the mapping relationship and the first resource type.

[0122] In one possible implementation, the first resource request also includes a resource demand for a first virtual resource. The control module 603 is used to determine the first physical resource used to issue the first virtual resource and the resource issuance amount of the first physical resource based on the issuance priority, the resource demand for the first virtual resource, and the remaining space of at least one physical resource for issuing virtual resources of the first resource type, wherein the number of the first physical resources is at least one, and the cumulative amount of the resource issuance amount of at least one first physical resource is the same as the resource demand; and according to the resource issuance amount of the first physical resource, control the first physical resource to issue the first virtual resource.

[0123] It should be understood that the above Figure 6 When the device provided realizes its functions, only the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0124] In addition, in the above resource distribution device, each module can be implemented by software or hardware. Exemplarily, the implementation of the acquisition module 601 is described below by taking the acquisition module 601 as an example. Similarly, the implementation of other modules can refer to the implementation of the acquisition module 601.

[0125] As an example of a software functional unit, the acquisition module 601 may include code running on a computing instance. Among them, the computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Further, the above-mentioned computing instance may be one or more. For example, the acquisition module 601 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 code may be distributed in the same region (region) or in different regions. Furthermore, 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 a data center or multiple data centers with close geographical locations. Among them, usually a region may include multiple AZs.

[0126] Similarly, multiple hosts / virtual machines / containers used to run the code can be distributed in the same virtual private cloud (VPC) or in multiple VPCs. Usually, a VPC is set up in a region. For cross-region communication between two VPCs in the same region and between VPCs in different regions, a communication gateway needs to be set up in each VPC to achieve interconnection between VPCs through the communication gateway.

[0127] As an example of a hardware functional unit, the acquisition module 601 may include at least one computing device. Alternatively, the acquisition module 601 may also be a device implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.

[0128] The multiple computing devices included in the acquisition module 601 can be distributed in the same region or in different regions. The multiple computing devices included in the acquisition module 601 can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in the acquisition module 601 can be distributed in the same VPC or in multiple VPCs. The multiple computing devices can be any combination of computing devices such as servers, ASICs, PLDs, CPLDs, FPGAs, and GALs.

[0129] It should be noted that, in other embodiments, the acquisition module 601 can be used to execute any step in the resource issuance method, that is, the steps that the acquisition module 601 and other modules are responsible for implementing can be specified as needed, and the full functions of the resource issuance device can be realized by respectively implementing different steps in the resource issuance method through the acquisition module 601 and other modules.

[0130] The present application also provides a computing device that can be configured as a cloud management platform or physical resource in the above implementation scenario. Figure 7 , Figure 7 Schematic diagram of the hardware structure of a computing device provided in an embodiment of the present application. Figure 7As shown, computing device 700 includes: bus 702, processor 704, memory 706 and communication interface 708. Processor 704, memory 706 and communication interface 708 communicate with each other via bus 702. It should be understood that the present application does not limit the number of processors and memories in computing device 700.

[0131] The bus 702 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 The bus 702 may include a path for transmitting information between various components of the computing device 700 (eg, the memory 706, the processor 704, and the communication interface 708).

[0132] The processor 704 may include any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

[0133] The memory 706 may include a volatile memory, such as a random access memory (RAM). The processor 704 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).

[0134] The memory 706 stores executable program codes, and the processor 704 executes the executable program codes to respectively implement the functions of the acquisition module 601, the determination module 602 or the control module 603, thereby implementing the resource distribution method. That is, the memory 706 stores instructions for executing the resource distribution method.

[0135] The communication interface 708 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 700 and other devices or communication networks.

[0136] The embodiment of the present application also provides a computing device cluster. The computing device cluster includes at least one computing device. The computing device can be configured as a server in the above implementation environment, such as a central server, an edge server, or a local server in a local data center.

[0137] Figure 8 Schematic diagram of a computing device cluster provided in an embodiment of the present application. Figure 8 As shown, the computing device cluster includes at least one computing device 700. The memory 706 in one or more computing devices 700 in the computing device cluster may store the same instructions for executing the resource issuing method.

[0138] In some possible implementations, the memory 706 of one or more computing devices 700 in the computing device cluster may also store partial instructions for executing the resource distribution method. In other words, the combination of one or more computing devices 700 may jointly execute instructions for executing the resource distribution method.

[0139] It should be noted that the memory 706 in different computing devices 700 in the computing device cluster can store different instructions, which are respectively used to execute part of the functions of the resource distribution device. That is, the instructions stored in the memory 706 in different computing devices 700 can implement the functions of one or more modules in the acquisition module 601, the determination module 602 or the control module 603.

[0140] In some embodiments, one or more computing devices in the computing device cluster may be connected via a network, which may be a wide area network or a local area network, etc. Fig. 9 Schematic diagram of a connection method of a computing device cluster provided in an embodiment of the present application. Fig. 9 As shown, two computing devices 700 are connected via a network. Specifically, they are connected to the network via a communication interface in each computing device.

[0141] It should be understood that Fig. 9 The functionality of the computing device 700 shown in FIG. 7 may also be performed by multiple computing devices 700 .

[0142] The embodiment of the present application also provides a computer program product including instructions. The computer program product may be software or a program product including instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on at least one computing device, the at least one computing device executes the resource distribution method.

[0143] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by the 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., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk). The computer-readable storage medium includes instructions that instruct the computing device to execute the resource distribution method.

[0144] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in this application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk), etc.

[0145] In this application, the terms "first", "second", etc. are used to distinguish between identical or similar items with substantially the same effects and functions. It should be understood that there is no logical or temporal dependency between "first", "second", and "nth", nor is there a limitation on the quantity and execution order. It should also be understood that although the following description uses the terms first, second, etc. to describe various elements, these elements should not be limited by the terms. These terms are only used to distinguish one element from another element.

[0146] It should also be understood that in the various embodiments of the present application, the size of the serial number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0147] The term "at least one" in this application means one or more, and the term "multiple" in this application means two or more, for example, multiple second devices means two or more second devices. The terms "system" and "network" are often used interchangeably herein.

[0148] It should be understood that the terms used in the description of the various examples herein are only for describing specific examples and are not intended to be limiting. As used in the description of the various examples and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.

[0149] It should also be understood that the term "and / or" used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items. The term "and / or" is a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this application generally indicates that the associated objects before and after are in an "or" relationship.

[0150] It should also be understood that the terms "if" and "if" may be interpreted to mean "when" or "upon" or "in response to determining" or "in response to detecting." Similarly, the phrases "if it is determined that ..." or "if [a stated condition or event] is detected" may be interpreted to mean "upon determining that ..." or "in response to determining that ..." or "upon detecting [a stated condition or event]" or "in response to detecting [a stated condition or event]," depending on the context.

[0151] The above description is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0152] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of program structure information. The program structure information includes one or more program instructions. When the program instructions are loaded and executed on a computing device, all or part of the processes or functions in the embodiments of the present application are generated.

[0153] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0154] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions. For example, the requests and resources involved in this application are obtained with full authorization.

[0155] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the protection scope of the technical solutions of the embodiments of the present application.

Claims

1. A resource distribution method, characterized in that: The method is applied to a cloud management platform, and the cloud management platform is used to manage multiple physical resources; the method includes: Acquire a first resource request, where the first resource request includes a first resource type of a first virtual resource requested for issuance; Determining at least one physical resource in the plurality of physical resources on which the virtual resource of the first resource type is deployed; Acquire a release priority of the at least one physical resource for the virtual resource of the first resource type, where the release priority is used to indicate a release order of the at least one physical resource for the virtual resource of the first resource type; According to the release priority, the at least one physical resource is controlled to release the first virtual resource.

2. The method according to claim 1, characterized in that The issuance priority of the virtual resources of the first resource type for any physical resource among the at least one physical resource is determined based on at least one of the issuance revenue or the space surplus of any physical resource. The issuance revenue of any physical resource refers to the revenue of issuing the virtual resources of the first resource type by any physical resource, and the space surplus of any physical resource refers to the size of the remaining space of any physical resource used for issuing the virtual resources of the first resource type.

3. The method according to claim 2, characterized in that The issuance priority of the virtual resources of the first resource type to any physical resource is positively correlated with the issuance revenue of any physical resource; the issuance priority of the virtual resources of the first resource type to any physical resource is positively correlated with the remaining space of any physical resource, or the issuance priority of the virtual resources of the first resource type to any physical resource is positively correlated with the remaining space ratio of any physical resource, and the remaining space ratio of any physical resource is the ratio of the remaining space of any physical resource used to issue the virtual resources of the first resource type to the total space.

4. The method according to claim 2 or 3, characterized in that: The revenue from issuing any physical resource includes the difference between the first return resource and the cost loss of issuing the virtual resource of the first resource type by any physical resource, and the remaining space of any physical resource includes the difference between the total space and the space usage used by any physical resource for issuing the virtual resource of the first resource type.

5. The method according to any one of claims 1 to 4, characterized in that: Before determining at least one physical resource in the plurality of physical resources where the virtual resource of the first resource type is deployed, the method further includes: Determine a mapping relationship between the plurality of physical resources and resource types of virtual resources deployed on the plurality of physical resources; The determining, from among the plurality of physical resources, at least one physical resource on which the virtual resource of the first resource type is deployed comprises: According to the mapping relationship and the first resource type, the at least one physical resource is determined from the multiple physical resources.

6. The method according to any one of claims 1 to 5, characterized in that: The first resource request also includes a resource demand of the first virtual resource, and the controlling the at least one physical resource to release the first virtual resource according to the release priority includes: Determine, according to the issuance priority, the resource demand of the first virtual resource, and the remaining space of the at least one physical resource for issuing the virtual resource of the first resource type, a first physical resource for issuing the first virtual resource and a resource issuance amount of the first physical resource, wherein the number of the first physical resource is at least one, and the cumulative amount of the resource issuance amount of at least one first physical resource is the same as the resource demand; According to the resource issuance amount of the first physical resource, the first physical resource is controlled to issue the first virtual resource.

7. A resource distribution device, characterized in that: The device is applied to a cloud management platform, and the cloud management platform is used to manage multiple physical resources; the device includes: An acquisition module, configured to acquire a first resource request, wherein the first resource request includes a first resource type of a first virtual resource requested for issuance; A determination module, configured to determine at least one physical resource on which the virtual resource of the first resource type is deployed from among the plurality of physical resources; The acquisition module is further used to acquire a release priority of the at least one physical resource for the virtual resource of the first resource type, wherein the release priority is used to indicate a release order of the at least one physical resource for the virtual resource of the first resource type; A control module is used to control the at least one physical resource to release the first virtual resource according to the release priority.

8. The device according to claim 7, characterized in that The issuance priority of the virtual resources of the first resource type for any physical resource among the at least one physical resource is determined based on at least one of the issuance revenue or the space surplus of any physical resource. The issuance revenue of any physical resource refers to the revenue of issuing the virtual resources of the first resource type by any physical resource, and the space surplus of any physical resource refers to the size of the remaining space of any physical resource used for issuing the virtual resources of the first resource type.

9. The device according to claim 8, characterized in that The issuance priority of the virtual resources of the first resource type to any physical resource is positively correlated with the issuance revenue of any physical resource; the issuance priority of the virtual resources of the first resource type to any physical resource is positively correlated with the remaining space of any physical resource, or the issuance priority of the virtual resources of the first resource type to any physical resource is positively correlated with the remaining space ratio of any physical resource, and the remaining space ratio of any physical resource is the ratio of the remaining space of any physical resource used to issue the virtual resources of the first resource type to the total space.

10. The device according to claim 8 or 9, characterized in that The revenue from issuing any physical resource includes the difference between the first return resource and the cost loss of issuing the virtual resource of the first resource type by any physical resource, and the remaining space of any physical resource includes the difference between the total space and the space usage used by any physical resource for issuing the virtual resource of the first resource type.

11. The device according to any one of claims 7 to 10, characterized in that: The determination module is further used to determine the mapping relationship between the multiple physical resources and the resource types of the virtual resources deployed on the multiple physical resources; the determination module is used to determine the at least one physical resource among the multiple physical resources based on the mapping relationship and the first resource type.

12. The device according to any one of claims 7 to 11, characterized in that: The first resource request also includes the resource demand of the first virtual resource. The control module is used to determine the first physical resource used to issue the first virtual resource and the resource issuance amount of the first physical resource based on the issuance priority, the resource demand of the first virtual resource and the remaining space of the at least one physical resource for issuing the virtual resources of the first resource type, the number of the first physical resources is at least one, and the cumulative amount of resource issuance of at least one first physical resource is the same as the resource demand; and according to the resource issuance amount of the first physical resource, control the first physical resource to issue the first virtual resource.

13. A computing device cluster, characterized in that: The computing device cluster includes at least one computing device, each computing device includes a processor, and the processor is coupled to a memory; The processor of the at least one computing device is used to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the resource distribution method according to any one of claims 1 to 6.

14. A computer program product comprising instructions, characterized in that When the instruction is executed by a computing device cluster, the computing device cluster executes the resource distribution method according to any one of claims 1 to 6.

15. A computer-readable storage medium, characterized in that: The method comprises computer program instructions. When the computer program instructions are executed by a computing device cluster, the computing device cluster executes the resource issuing method according to any one of claims 1 to 6.

Citation Information

Cited By

  • Resource issuing method and apparatus, and computing device cluster

    WO2025016001A1