Cloud resource management method and device based on public cloud technology

The cloud resource transfer mechanism of the cloud management platform solves the problem of insufficient or wasted resources in existing technologies, realizes the efficient transfer and flexible management of cloud resources between different tenants, and improves resource utilization and security capabilities.

CN120915685APending Publication Date: 2025-11-07HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411215792.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2024-05-07
Filing Date
2024-08-30
Publication Date
2025-11-07

AI Technical Summary

Technical Problem

Existing cloud resource sales methods are not flexible enough, leading to insufficient or wasted resources and making it difficult to meet the dynamic needs of tenants.

Method used

The cloud management platform obtains tenants' successful purchase information and transfer requests, allowing tenants to transfer cloud resources within a specific time period. During the transfer period, these resources can be used by other tenants and then restored to the original tenant, thus achieving efficient flow of cloud resources between different tenants.

Benefits of technology

It improves the utilization rate and resource guarantee capability of cloud resources, reduces the usage cost for tenants, and enhances the resource management flexibility of the cloud management platform.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120915685A_ABST
    Figure CN120915685A_ABST
Patent Text Reader

Abstract

The invention discloses a cloud resource management method and device based on a public cloud technology, and belongs to the technical field of cloud services. The method comprises the steps that a cloud management platform obtains a transfer request of a first tenant for a first cloud resource; the cloud management platform responds to the transfer request and issues resource transfer information of the first cloud resource to the Internet; the cloud management platform obtains second purchase success information of the second tenant for the resource transfer information, and modifies the user information of the first cloud resource into the second tenant; the cloud management platform receives a first virtual instance creation request of a second tenant, and calls the first cloud resource to create a virtual instance of the second tenant within the transfer time period based on the first virtual instance creation request and the user information of the first cloud resource; and after the transfer time period is ended, the cloud management platform releases the virtual instance and modifies the user information of the first cloud resource into the first tenant. The resource guarantee capability of the cloud management platform is improved.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] The present application claims priority from the Chinese patent application No. 202410557688.7, filed on May 7, 2024, and entitled "Management method and device of cloud resources", the whole content of which is incorporated herein by reference. TECHNICAL FIELD

[0002] The present application relates to the technical field of cloud service, in particular to a management method and device of cloud resources based on public cloud technology. BACKGROUND

[0003] A cloud service provider can provide various types of cloud resources for tenants to use cloud resources to realize their own businesses. For example, the cloud resources provided by the cloud service provider to the tenants include storage resources, computing resources, network resources, etc. After purchasing cloud resources from the cloud management platform, the tenant can deploy a virtual instance in the purchased cloud resources, and deploy an application program in the virtual instance to realize the business of the tenant by running the application program.

[0004] At present, the cloud management platform provides two ways for the tenant to sell cloud resources. One way is to sell on demand, for example, the tenant purchases cloud resources by using on-demand billing. This way of selling makes the tenant able to purchase cloud resources when they need to use cloud resources, and release the purchased cloud resources in time when they do not need to use cloud resources. Another way is to sell by period. For example, the tenant can purchase cloud resources in a package year or a package month. During the period purchased by the tenant, the cloud management platform will reserve the cloud resources purchased by the tenant to ensure that the tenant can use the purchased cloud resources at any time during this period.

[0005] However, the flexibility of these two ways of selling resources is poor. SUMMARY

[0006] The present application provides a management method and device of cloud resources based on public cloud technology. The present application improves the resource guarantee capability of the cloud management platform. The technical solutions provided by the present application are as follows:

[0007] In a first aspect, the present application provides a method for managing cloud resources based on public cloud technology. The method is performed by a cloud management platform. The cloud management platform is configured to manage an infrastructure that provides cloud services. The infrastructure includes a plurality of servers. The servers are configured to deploy virtual instances that implement tenant businesses. The method includes: obtaining, by the cloud management platform, first purchase success information of a first tenant for a first cloud resource in the infrastructure; setting, by the cloud management platform, user information of the first cloud resource as the first tenant in response to the first purchase success information; obtaining, by the cloud management platform, a transfer request of the first tenant for the first cloud resource, the transfer request including a transfer time period set by the first tenant for the first cloud resource; publishing, by the cloud management platform, resource transfer information of the first cloud resource to the Internet in response to the transfer request, the resource transfer information being configured to indicate that the first cloud resource is allowed to be used by other tenants during the transfer time period; obtaining, by the cloud management platform, second purchase success information of a second tenant for the resource transfer information; modifying, by the cloud management platform, the user information of the first cloud resource as the second tenant in response to the second purchase success information during the transfer time period; receiving, by the cloud management platform, a first virtual instance creation request of the second tenant; creating, by the cloud management platform, a virtual instance of the second tenant based on the first virtual instance creation request and the user information of the first cloud resource during the transfer time period; and releasing, by the cloud management platform, the virtual instance and modifying, by the cloud management platform, the user information of the first cloud resource as the first tenant after the transfer time period ends.

[0008] In this way, since the transfer time period is within a first purchase time period in which the first tenant purchases the first cloud resource, the cloud management platform can facilitate the first tenant to transfer part or all of the first cloud resource when the first tenant has a low demand for the first cloud resource. In this way, after the second tenant purchases part or all of the second cloud resource, the cloud resource is efficiently transferred between different tenants, so that the third cloud resource can be effectively utilized, and the utilization rate of the third cloud resource is improved. Moreover, the cloud management platform modifies the user information of the first cloud resource as the first tenant after the transfer time period ends, so as to ensure that the first tenant can continue to use the third cloud resource after the transfer time period ends, avoid the situation that the first tenant has no or insufficient available resources, and improve the resource guarantee capability of the cloud management platform. Therefore, the method for managing cloud resources based on public cloud technology improves the flexibility of the way in which the cloud management platform sells resources.

[0009] In a possible implementation, the transfer request further includes a transfer price set by the first tenant for the first cloud resource, the transfer price being lower than a preset multiple of a predetermined price, and the first cloud resource is sold to the first tenant at the predetermined price by the cloud management platform.

[0010] Optionally, after the cloud management platform obtains the second purchase success information of the second tenant for the resource transfer information, the method further includes: updating, by the cloud management platform, the charging of the first cloud resource purchased by the first tenant according to the second purchase success information and the transfer price.

[0011] When updating the charging of the first cloud resource purchased by the first tenant according to the second purchase success information and the transfer price, since the second tenant will pay for the third cloud resource, the first tenant does not need or reduces the payment for the third cloud resource in the second purchase time period, which can reduce the cost of the first tenant using the cloud resource, and attract part of the tenants to become the promoter of the resource owned by the cloud service provider, and accelerate the sale of the cloud resource.

[0012] In a possible implementation, the method further includes: setting, by the cloud management platform, the owner information of the first cloud resource to the first tenant in response to the first purchase success information; and modifying, by the cloud management platform, the user information of the first cloud resource to the first tenant after the end of the transfer time period, including: modifying, by the cloud management platform, the user information of the first cloud resource to the first tenant based on the owner information of the first cloud resource after the end of the transfer time period.

[0013] In a possible implementation, the method further includes: releasing, by the cloud management platform, a virtual instance created by the first tenant based on the first cloud resource indicated by the second purchase success information within the transfer time period in response to the second purchase success information. In this way, the cloud management platform can determine that the first cloud resource belongs to the first tenant according to the user information of the first cloud resource after the end of the transfer time period, and allocate the first cloud resource to the first tenant for use.

[0014] Secondly, this application provides a cloud resource management device based on public cloud technology. This device is deployed on a cloud management platform. The cloud management platform is used to manage the infrastructure providing cloud services. The infrastructure includes multiple servers. The servers are used to deploy virtual instances that implement tenant services. The device includes: an interaction module for acquiring first successful purchase information of a first cloud resource in the infrastructure from a first tenant; a management module for setting the user information of the first cloud resource as the first tenant in response to the first successful purchase information; the interaction module is further configured to acquire a transfer request from the first tenant for the first cloud resource, the transfer request including a transfer period set by the first tenant for the first cloud resource; the management module is further configured to publish resource transfer information of the first cloud resource to the Internet in response to the transfer request, the resource transfer information indicating that the first cloud resource can be used by other tenants during the transfer period; the interaction module is further configured to acquire second successful purchase information of a second tenant for the resource transfer information; the management module is further configured to modify the user information of the first cloud resource to the second tenant in response to the second successful purchase information during the transfer period; the interaction module is further configured to receive a first virtual instance creation request from the second tenant; the management module is further configured to call the first cloud resource to create a virtual instance of the second tenant during the transfer period based on the first virtual instance creation request and the user information of the first cloud resource; and the management module is further configured to release the virtual instance and modify the user information of the first cloud resource to the first tenant after the transfer period ends.

[0015] In one possible implementation, the transfer request also includes a transfer price set by the first tenant for the first cloud resource, which is lower than a preset multiple of the predetermined price, and the first cloud resource is sold to the first tenant on the cloud management platform at the predetermined price.

[0016] In one possible implementation, the management module is also used to update the billing for the first tenant's purchase of the first cloud resources based on the second purchase success information and the transfer price.

[0017] In one possible implementation, the management module is further configured to set the owner information of the first cloud resource as the first tenant in response to the first purchase success information; specifically, the management module is configured to modify the user information of the first cloud resource to the first tenant based on the owner information of the first cloud resource after the transfer period ends.

[0018] In one possible implementation, the management module is also configured to release the virtual instance created by the first tenant based on the first cloud resource indicated by the second purchase success information during the transfer period.

[0019] In a third aspect, the present application provides a computing device, comprising a memory and a processor, the memory storing program instructions, and the processor executing the program instructions to implement the method provided in the first aspect of the present application and any possible implementation manner thereof.

[0020] In a fourth aspect, the present application provides a computing device cluster, comprising a plurality of computing devices, the plurality of computing devices comprising a plurality of processors and a plurality of memories, the plurality of memories storing program instructions, and the plurality of processors executing the program instructions so that the computing device cluster implements the method provided in the first aspect of the present application and any possible implementation manner thereof.

[0021] In a fifth aspect, the present application provides a computer readable storage medium, which is a non-volatile computer readable storage medium, and which comprises program instructions, when the program instructions are executed on the computing device cluster, so that the computing device cluster implements the method provided in the first aspect of the present application and any possible implementation manner thereof.

[0022] In a sixth aspect, the present application provides a computer program product comprising instructions, when the computer program product is executed on a computer, so that the computer implements the method provided in the first aspect of the present application and any possible implementation manner thereof. BRIEF DESCRIPTION OF DRAWINGS

[0023] Figure 1 is a structural schematic diagram of an implementation scenario related to a cloud resource management method based on public cloud technology provided by an embodiment of the present application;

[0024] Figure 2 is a deployment schematic diagram of basic resources in a data center provided by an embodiment of the present application;

[0025] Figure 3 is a flowchart of a cloud resource management method based on public cloud technology provided by an embodiment of the present application;

[0026] Figure 4 is a process schematic diagram of cloud resource management provided by an embodiment of the present application;

[0027] Figure 5 is a schematic diagram of a resource management interface provided by an embodiment of the present application;

[0028] Figure 6 is a schematic diagram of a transfer configuration interface provided by an embodiment of the present application;

[0029] Figure 7 is a schematic diagram of cooperation of a user interface, a management module and a scheduling module to implement the present application provided by an embodiment of the present application;

[0030] Figure 8 is a schematic diagram of a cloud resource purchase interface provided by an embodiment of the present application;

[0031] Figure 9 is a schematic diagram of a resource configuration interface provided by an embodiment of the present application;

[0032] Figure 10 is a schematic diagram of cooperation of a user interface, a management module and a scheduling module to realize obtaining a first virtual instance creation request and creating a virtual instance based on the first virtual instance creation request;

[0033] Figure 11 is a schematic diagram of cooperation of a user interface, a management module and a scheduling module to realize releasing a virtual instance created by a third cloud resource for a second tenant and allocating the third cloud resource to a first tenant for use;

[0034] Figure 12 is a structural schematic diagram of a cloud resource management device based on a public cloud technology provided by an embodiment of the present application;

[0035] Figure 13 is a structural schematic diagram of a computing device provided by an embodiment of the present application;

[0036] Figure 14 is a structural schematic diagram of a computing device cluster provided by an embodiment of the present application;

[0037] Figure 15 is a structural schematic diagram of another computing device cluster provided by an embodiment of the present application. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical scheme and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the drawings.

[0039] For the convenience of understanding, the technologies and backgrounds involved in the embodiments of the present application will be introduced first.

[0040] Cloud computing: Cloud computing is a kind of distributed computing, which refers to a network that uniformly manages and schedules a large number of computing resources and storage resources, and provides on-demand services to users. The computing resources and storage resources are provided by a cluster of computing devices set in a data center. Moreover, cloud computing can provide multiple types of service types for users, for example, it can provide infrastructure as a service (IaaS), platform as a service (PaaS) and software as a service (SaaS) and the like. The role of infrastructure as a service is to provide virtual machines or other resources as services to tenants. The role of platform as a service is to provide a development platform as a service to tenants. The role of software as a service is to provide an application (App, also known as application) as a service to customers.

[0041] An internet data center (IDC) is a facility and related service system that provides operation and maintenance for centralized collection, storage, processing and transmission of data based on the Internet network. Conceptually, it can be understood as a public commercial Internet "machine room", and it is also an IT professional service and an important infrastructure of the IT industry. IDC is not only a service concept, but also a network concept, which constitutes part of the network infrastructure, just like the backbone network and access network, providing a high-end data delivery service and high-speed access service. Generally, the tenant's offline IDC can be understood as the tenant's offline machine room, which is a standardized telecom professional machine room environment built by the tenant using existing Internet communication lines and bandwidth resources, used to provide server hosting, rental and related value-added services. A cloud data center is an Internet data center deployed using the underlying resources owned by a cloud vendor.

[0042] A resource pool is a collection of various hardware resources and software resources involved in a cloud data center. Generally, according to the type of resources, the resources in the resource pool can be divided into computing resources, storage resources and network resources, etc.

[0043] Physical machine (PM): A physical resource used to carry virtualization technology. A host is also referred to as a physical machine. Generally, a host used to deploy a virtual instance is a physical server. A physical machine has multiple physical devices. For example, a physical server has physical devices such as a processor and a memory. Multiple virtual instances can be deployed in a host. Multiple virtual instances deployed on the same host share the physical resources of the host. According to different use cases, the multiple virtual instances deployed in a host can belong to the same tenant or belong to different tenants respectively.

[0044] Virtualization is a resource management technology. Virtualization can abstract and convert various entity resources of a host, such as computing resources, network resources, and storage resources, to break the barriers between the entity structures of the host, so that tenants can use these resources in a better way than the original configuration. The resources obtained through virtualization are referred to as virtualized resources, which are not limited by the setup method, setting region, or physical configuration of the existing entity resources.

[0045] Virtualized resources are usually provided to tenants in the form of virtual instances. A virtual instance can use the hardware resources of a host and run on an operating system (OS) of the host. An application runs in the virtual instance, which is used to implement the business of a tenant. The hardware resources of the host can be used by one or more tenants in the granularity of a virtual instance. Different virtual instances are isolated from each other, so that tenants can conveniently and flexibly use physical resources under the premise of secure isolation, and the utilization rate of physical resources can be greatly improved. Generally, a virtual instance can be a virtual machine, a container, or an independent process (such as a function). A virtual instance can also be referred to as an elastic compute service (ECS) or an elastic instance (different cloud service providers have different names).

[0046] Virtual machine (VM): refers to a complete computer system that has complete hardware system functions, runs in a completely isolated environment, and is simulated by virtualization technology. Part of the instructions of the virtual machine can be processed in the host machine, and the other part of the instructions can be executed in an emulated manner. The virtual machine is also called a virtual server. The virtual machine can be regarded as a collection of a plurality of virtual devices, which has complete hardware system functions and runs in a completely isolated environment. The virtual device is virtually obtained based on a physical device capable of being shared resources by means of virtualization technology. For example, a virtual processor virtually obtained based on a processor by means of virtualization technology is a virtual device. For another example, a training card virtually obtained based on a field-programmable gate array (FPGA) by means of virtualization technology is also a virtual device. Exemplarily, the virtual machine in the present application can be a kernel-based virtual machine (KVM). The work that can be completed in a server can be implemented in the virtual machine. When the virtual machine is created in the server, part of the hard disk and memory capacity of the entity machine need to be used as the hard disk and memory capacity of the virtual machine. Each virtual machine has an independent hard disk and operating system, and the tenant of the virtual machine can operate the virtual machine like using the server. The running environment (such as a virtual machine application, an operating system and virtual hardware) in different virtual machines is completely isolated, and the communication between different virtual machines needs to be forwarded through a network message of a virtual manager.

[0047] The container uses the namespace and cgroup technologies supported by the Linux kernel to isolate the application APP process and its dependent packages (running environment bins / libs, specifically all files required to run the APP) in an independent running environment. The container provides a lightweight virtual running environment. The container can be obtained by packaging all the codes, libraries and dependencies of the tenant's application program into an image. When the image is executed, the image runs in a virtual running environment. At this time, the container is a runtime instance of the image, similar to a lightweight sandbox, which can be started, started, stopped and deleted. The infrastructure of the container can be the hardware of a server or a virtual machine on the cloud (that is, a container can also be deployed in a virtual machine), and the operating system uses the Linux kernel, supports namespace and cgroup, wherein the namespace is used to realize the isolation between processes, and the cgroup is used to realize the allocation of process resources, and the resources are specifically virtual processors and memories allocated to the process. The container engine is similar to the virtual machine manager and runs in the operating system to manage the container. Compared with the characteristics of the virtual machine with the operating system, the container does not exist the operating system, and the container runs as a process in the operating system of the host computer, so the starting speed of the container is faster than that of the virtual machine, and the container is particularly suitable for lightweight applications, and a host computer can simultaneously run thousands of containers (processes).

[0048] Resource pooling refers to integrating various computing and storage resources together to form a unified resource library for unified dynamic allocation and management. Resource pooling can realize high sharing of resources, improve resource utilization, simplify resource management, and provide flexible services for on-demand allocation for users.

[0049] The cloud service provider can provide various types of cloud resources for tenants to use cloud resources to realize their own businesses. The cloud server provider can provide cloud resources for tenants, which are usually cloud resources that can be shared and allocated to multiple users. For example, the cloud service provider can provide cloud resources for tenants, including storage resources, computing resources, and network resources. After the tenant purchases cloud resources from the cloud management platform, the tenant can deploy virtual instances in the purchased cloud resources and deploy application programs in the virtual instances to realize the tenant's business by running the application programs.

[0050] Currently, a cloud management platform provides two ways for tenants to purchase cloud resources. One way is on-demand selling, for example, a tenant purchases cloud resources by using on-demand billing. This way enables the tenant to purchase cloud resources when needed and release the purchased cloud resources in time when not needed. Another way is period selling. For example, a tenant can purchase cloud resources in a package year or a package month. During the period purchased by the tenant, the cloud management platform reserves the cloud resources purchased by the tenant to ensure that the tenant can use the purchased cloud resources at any time during the period.

[0051] However, each of the two ways has disadvantages. For example, for the on-demand selling way, a tenant can create and delete virtual instances created by using the purchased cloud resources according to actual business needs to reduce costs. After the tenant releases the cloud resources, since the cloud management platform does not reserve resources for the tenant, if the inventory of cloud resources of the cloud management platform is insufficient when the tenant needs to purchase resources, the tenant may not be able to purchase the required cloud resources. Especially for scarce resources, the probability of successful purchase again after release is lower. At the same time, this also makes it more difficult for cloud service providers to guarantee resources for large customers. For example, for the period selling way, if there is a business low peak during the purchase period, resource waste will occur. Therefore, the flexibility of the current cloud management platform resource selling way is poor.

[0052] In view of this, the embodiments of the present application provide a cloud resource management method based on public cloud technology. The method is executed by a cloud management platform. The cloud management platform is used to manage an infrastructure that provides cloud services. The infrastructure includes a plurality of servers. The servers are used to deploy virtual instances that implement tenant businesses. The method includes: the cloud management platform acquires first purchase success information of a first tenant for a first cloud resource in the infrastructure; the cloud management platform sets user information of the first cloud resource to the first tenant in response to the first purchase success information; the cloud management platform acquires a transfer request of the first tenant for the first cloud resource, the transfer request including a transfer time period set by the first tenant for the first cloud resource; the cloud management platform publishes resource transfer information of the first cloud resource to the Internet in response to the transfer request, the resource transfer information being used to indicate that the first cloud resource is allowed to be used by other tenants during the transfer time period; the cloud management platform acquires second purchase success information of a second tenant for the resource transfer information, and modifies the user information of the first cloud resource to the second tenant in response to the second purchase success information during the transfer time period; the cloud management platform receives a first virtual instance creation request of the second tenant, and creates a virtual instance of the second tenant by invoking the first cloud resource based on the first virtual instance creation request and the user information of the first cloud resource during the transfer time period; and the cloud management platform releases the virtual instance and modifies the user information of the first cloud resource to the first tenant after the end of the transfer time period.

[0053] Since the transfer time period is located in the first purchase time period in which the first tenant purchases the first cloud resource, the cloud management platform can facilitate the first tenant to transfer part or all of the first cloud resource (hereinafter referred to as a second cloud resource) when the resource demand of the first tenant for the first cloud resource purchased by the first tenant is small, by using the cloud resource management method based on the public cloud technology provided in the present application. In this way, after the second tenant purchases part or all of the second cloud resource (hereinafter referred to as a third cloud resource), the efficient circulation of cloud resources between different tenants is realized, so that the third cloud resource can be effectively utilized, and the utilization rate of the third cloud resource is improved. Moreover, the cloud management platform modifies the user information of the first cloud resource to the first tenant after the end of the transfer time period, so as to ensure that the first tenant can continue to use the third cloud resource after the end of the transfer time period, avoid the situation that the first tenant has no or lacks available resources, and improve the resource guarantee capability of the cloud management platform. Therefore, the cloud resource management method based on the public cloud technology provided in the embodiments of the present application improves the flexibility of the resource selling method of the cloud management platform.

[0054] The technical solutions of the present application are described in detail from the aspects of implementation scenarios, method flows, hardware devices, software devices, etc.

[0055] The implementation scenario of the embodiments of the present application is described below.

[0056] Figure 1 is a structural schematic diagram of an implementation scenario related to a cloud resource management method based on a public cloud technology provided by the embodiments of the present application. As shown in Figure 1 , the implementation scenario includes a data center 1 and a client 2. The data center 1 and the client 2 can establish a communication connection through a network. Optionally, the network can be the Internet, or other networks, which are not limited by the embodiments of the present application. A tenant can interact with the data center 1 through the client 2. For example, the tenant can send cloud service request information to the data center 1 through the client 2. The data center 1 is used to respond based on the information sent by the client 2.

[0057] A large amount of infrastructure owned by a cloud service provider, such as computing resources, storage resources and network resources, is deployed in the data center 1. For example, the computing resource can be a computing device (such as a server) capable of providing computing capability. As shown in Figure 1 , the data center 1 includes a cloud management platform and infrastructure Figure 1(Not shown in the image). The cloud management platform and the infrastructure are connected via an internal data center network. The cloud management platform manages the infrastructure. The infrastructure provides public cloud services. The infrastructure includes multiple servers. Cloud services are optionally deployed on the servers. Cloud services are implemented by running virtual instances, and are therefore also referred to as virtual instances deployed on servers to implement tenant services. Tenants can send cloud service requests and related information to the server through their client 2. The server can process the cloud service requests and related information and provide cloud services to the tenant based on the processed cloud service requests and related information. For example, the cloud management platform can manage the cloud resources owned by the cloud management platform through the cloud resource management method based on public cloud technology provided in the embodiments of this application, so as to provide cloud services to tenants.

[0058] The cloud management platform can be logically divided into: tenant console, compute management service, network management service, storage management service, authentication service, and image management service. The tenant console provides a user interface or application programming interface (API) for interaction with tenants. The compute management service manages servers running virtual instances and bare metal servers. The network management service manages network services (such as gateways and firewalls). The storage management service manages storage services (such as data bucket services). The authentication service manages tenant accounts and passwords. The image management service manages virtual instance images.

[0059] exist Figure 1 In the illustrated implementation scenario, a data center contains multiple servers. The servers consist of a hardware layer and a software layer. The hardware layer comprises the standard server configuration, including processors, memory, network interface cards (NICs), disks, and buses. The software layer includes the operating system installed and running on the server. This operating system, relative to the virtual machine, can be called the host operating system. The host operating system runs a virtual machine manager (also known as a hypervisor). The hypervisor's role is to implement compute virtualization, network virtualization, and storage virtualization, and to manage the virtual machines.

[0060] The cloud management platform client can receive the control plane command sent by the cloud management platform, create a virtual instance on the server according to the control plane control command, and perform full life cycle management on the virtual instance. For example, the cloud management platform client can detect the usage of the hardware resources of the server in real time and report to the cloud management platform. When the cloud management platform confirms to create a virtual instance on a server, the cloud management platform client on the server will receive a virtual instance creation command sent by the cloud management platform, and then create a virtual instance on the server after receiving the command. In this way, the tenant can create, manage, log in and operate the virtual instance in the data center through the cloud management platform.

[0061] The server can be used to run virtual machines of different specifications. The virtual machine specifications include general computing type, memory optimization type, super memory type, etc. Each type has specific specifications. After the tenant selects the virtual machine specification, the cloud management platform selects a server supporting the specification in the data center, determines that the server has sufficient idle hardware resources, and then creates and sets up a virtual machine with the specification on the server. By configuring the server through the cloud management platform, the analysis and planning of the hardware resources of the server can be realized, the corresponding computing products of the physical hardware are planned according to the hardware performance of the server, such as planning virtual machines of different specifications, to meet the differentiated demands of different tenants. Moreover, according to the performance difference of virtual machines of different specifications, a differentiated pricing strategy can be implemented. For example, virtual instances of high-performance specifications are sold at a higher price, and virtual instances of ordinary-performance specifications are sold at a lower price, so that tenants can purchase virtual instances on demand.

[0062] In an implementation manner, as Figure 2As shown, the location of the underlying resources in the data center can be described by cloud resource deployment regions and availability zones (AZs). A tenant can choose to deploy a cloud service based on resources in a specific region and AZ. A region is divided from the dimensions of geographical location and network latency. The same resource pool is used within the same region, which can be understood as sharing public services such as elastic computing, block storage, object storage, virtual private cloud (VPC) network, elastic internet protocol (EIP) address, and image. A region is divided into general regions and dedicated regions. A general region refers to a region that provides general cloud services to public tenants. A dedicated region refers to a dedicated region that carries the same type of business or provides business services to specific tenants. A region usually includes multiple AZs. Multiple AZs in a region are connected by high-speed optical fibers to meet the needs of tenants to build high-availability systems across AZs. An AZ is one or more Figure 2 The collection of data centers as shown. The computing, network, and storage resources within an AZ are logically divided into multiple clusters.

[0063] A tenant can send instructions to the cloud management platform through a client 2 used by the tenant to create, manage, log in to, and operate virtual instances in a server, and use cloud services provided by the virtual instances. For example, the cloud management platform can provide an access interface. The access interface can be provided in the form of an interface or an API. A tenant can remotely access the access interface to register a cloud account and password with the cloud management platform and log in to the cloud management platform using the cloud account and password. The cloud management platform can also authenticate the cloud account and password. After successful authentication, the tenant can further select and pay for a virtual instance of a specific specification (processor, memory, disk) in the cloud management platform. After the tenant successfully pays for the virtual instance, the cloud management platform provides the tenant with a remote login account and password for the purchased virtual instance. The tenant can use the remote login account and password to remotely log in to the virtual instance, install and run the tenant's application in the virtual instance, and implement the tenant's business through the application.

[0064] The client 2 can be a computer, a personal computer, a laptop computer, a mobile phone, a smartphone, a tablet computer, a cloud host, a portable mobile terminal, a multimedia player, an electronic book reader, a wearable device, a smart home appliance, an artificial intelligence device, a smart wearable device, a smart car device, or an Internet of Things device, etc.

[0065] In an implementation manner, the method for managing cloud resources based on public cloud technology provided by the embodiments of the present application can be implemented by running an executable program on a computing device in the data center 1. Optionally, the method for managing cloud resources based on public cloud technology provided by the embodiments of the present application can be applied to a system for managing cloud resources based on public cloud technology. The system for managing cloud resources based on public cloud technology is deployed in a server managed by a cloud management platform. The system for managing cloud resources based on public cloud technology can implement the method for managing cloud resources based on public cloud technology provided by the embodiments of the present application by running an executable program of the method for managing cloud resources based on public cloud technology provided by the embodiments of the present application. Moreover, the executable program implementing the method for managing cloud resources based on public cloud technology can be presented in the form of an application installation package, and the server can implement the method for managing cloud resources based on public cloud technology provided by the embodiments of the present application by running the executable program in the application installation package after installing the application installation package.

[0066] It should be understood that the above is an exemplary description of the implementation scenario of the method for managing cloud resources based on public cloud technology provided by the embodiments of the present application, and does not constitute a limitation on the implementation scenario of the method for managing cloud resources based on public cloud technology. It can be known by those skilled in the art that the implementation scenario can be adjusted according to application requirements as the business requirements change, and the embodiments of the present application do not make a specific limitation. Moreover, when the method for managing cloud resources based on public cloud technology provided by the embodiments of the present application is applied to other scenarios, the executable program of the method can also be presented in the form of an application installation package or in other ways, and the embodiments of the present application do not make a one-by-one enumeration.

[0067] The implementation process of the method will be described below by taking an example of the method for managing cloud resources based on public cloud technology provided by the embodiments of the present application being executed by a cloud management platform. Figure 3 is a flowchart of a method for managing cloud resources based on public cloud technology provided by the embodiments of the present application. As shown in Figure 3 , the implementation process includes the following steps 301 to 307.

[0068] Step 301, the cloud management platform acquires first purchase success information of a first tenant for a first cloud resource in an infrastructure.

[0069] The first tenant can purchase cloud resources from the cloud management platform, deploy virtual instances in the purchased cloud resources, and deploy application programs in the virtual instances to implement the business of the first tenant by running the application programs. When the first tenant needs to purchase cloud resources, the first tenant can perform a specified operation on a client used by the first tenant to trigger the first purchase success information for the first cloud resource in the infrastructure, so as to implement the purchase of the first cloud resource. The first purchase success information is used to indicate that the first tenant purchases the first cloud resource.

[0070] In a possible implementation, the cloud management platform can provide a resource purchase interface to the first tenant. The first tenant can trigger first purchase success information for the first cloud resource based on the resource purchase interface. For example, when the first tenant needs to purchase the first cloud resource, the first tenant can perform a specified operation on a client used by the first tenant to indicate conditions that the cloud resource that the first tenant wants to purchase needs to meet. After the resource purchase interface responds to the specified operation, if the cloud management platform can provide the first tenant with a cloud resource that meets the conditions, the cloud management platform triggers the first purchase success information for the first cloud resource. The first purchase success information carries information about the first cloud resource. For example, the first purchase success information carries indication information about the following: a purchase time period, a type, and a specification of the first cloud resource. After the first tenant triggers the first purchase success information, the cloud management platform can obtain the first purchase success information through the resource purchase interface. For example, the resource purchase interface is implemented through one or more of the following: an application programming interface (API) and a user interface (UI). It should be noted that the cloud management platform can also provide other ways for tenants to purchase cloud resources, and the embodiments of the present application do not limit the same.

[0071] In step 302, the cloud management platform sets the user information of the first cloud resource to the first tenant in response to the first purchase success information.

[0072] After obtaining the first purchase success information, the cloud management platform can determine that the first tenant has purchased the first cloud resource, and the first tenant becomes the user of the first cloud resource. In response, the cloud management platform sets the user information of the first cloud resource to the first tenant. For example, the user information (user) of the first cloud resource is marked as the first tenant, where the first tenant can be indicated by an account of the first tenant. In this way, when the first tenant needs to use the first cloud resource, the cloud management platform can only invoke the first cloud resource for the first tenant to use if the user information of the first cloud resource is the first tenant.

[0073] Optionally, considering that the first tenant can transfer the first cloud resource in part of the purchase time period of the first cloud resource in the future, the cloud management platform also needs to maintain the owner information (owner) of the first cloud resource, so as to return the use right of the first cloud resource to the first tenant indicated by the owner information after completing the transfer of the first cloud resource. Therefore, in response to the first purchase information, the cloud management platform also sets the owner information of the first cloud resource to the first tenant. In a possible implementation, the first tenant can be indicated by an account of the first tenant.

[0074] In step 303, the cloud management platform obtains a transfer request of the first tenant for the first cloud resource, and the transfer request includes a transfer time period set by the first tenant for the first cloud resource.

[0075] When the first tenant has a small resource demand for the first cloud resource purchased by the first tenant, the first tenant can choose to transfer part or all of the first cloud resource (hereinafter referred to as a second cloud resource). When the first tenant needs to transfer the second cloud resource, the first tenant can perform a specified operation on a client used by the first tenant to trigger a transfer request for the second cloud resource, so that the cloud management platform sells the second cloud resource based on the transfer request and realizes the transfer of the second cloud resource. Figure 4 FIG. 1 is a process schematic diagram of cloud resource management provided by an embodiment of the present application. As shown in FIG. 1, after the first tenant purchases the first cloud resource from the cloud management platform, when the first tenant has a small resource demand for the first cloud resource, the first tenant provides a transfer request for a second cloud resource in the first cloud resource to the cloud management platform, and the second cloud resource is hung out for transfer in the cloud management platform. Figure 4

[0076] In a possible implementation, the cloud management platform can provide a resource transfer interface to the first tenant, and the first tenant can trigger a transfer request for the second cloud resource based on the resource transfer interface. The transfer request for the second cloud resource carries relevant information of the cloud resource to be transferred. For example, the transfer request for the second cloud resource includes a transfer time period set by the first tenant for the first cloud resource, the second cloud resource that can be transferred within the transfer time period, and an upper limit value of the supported specification of the second cloud resource. The transfer time period is within a purchase time period in which the first tenant purchases the first cloud resource, and the upper limit value is less than or equal to the specification of the first cloud resource purchased by the first tenant. After the first tenant triggers the transfer request, the cloud management platform can obtain the transfer request through the resource transfer interface and sell the second cloud resource based on the transfer request. For example, the resource transfer interface is implemented by one or more of the following: API and UI. For example, the cloud management platform maintains a resource management interface for each tenant, and the resource management interface of any tenant is used to display relevant information of the cloud resource purchased by the tenant. The first tenant can view the resource management interface of the cloud resource purchased by the first tenant, and perform a management operation on the cloud resource purchased by the first tenant in the resource management interface. For example, the first tenant can trigger the transfer request for the second cloud resource in the resource management interface of the first cloud resource. Figure 5 ​As shown, all cloud resources purchased by the first tenant and their related information are displayed in the resource management interface of the first tenant. The related information of the cloud resources includes the first purchase time period, the purchase quantity and the specification of the cloud resources. Each kind of cloud resource is provided with a plurality of management buttons corresponding to a plurality of management functions. When the first tenant selects a management button, the management operation corresponding to the management button can be triggered to be performed on the cloud resource corresponding to the management button. The plurality of management functions include a resource transfer function and a resource release function, etc. When the first tenant selects the management button corresponding to the transfer function of the first cloud resource, the transfer operation can be triggered to be performed on the first cloud resource. In response to the selection of the management button corresponding to the transfer function of the first cloud resource by the first tenant, the cloud management platform confirms that the first tenant needs to transfer the first cloud resource, and displays a transfer configuration interface to the tenant. For example, as shown in FIG. 2, the transfer configuration interface includes a transferee selection field, a transfer quantity selection field, a transfer time period selection field, a transfer specification selection field, a transfer reason input field, and a transfer button. The first tenant can select a transferee in the transferee selection field, and input the transfer quantity, the transfer time period, the transfer specification and the transfer reason in the transfer quantity selection field, the transfer time period selection field, the transfer specification selection field and the transfer reason input field respectively. When the first tenant selects the transfer button, the cloud management platform triggers the transfer operation to be performed on the first cloud resource. Figure 6As shown, the transfer configuration interface has several prompts. These include prompts for the first tenant to select the quantity of cloud resources to be transferred, and prompts for the first tenant to select the transfer time. After the first tenant completes the settings for the quantity of cloud resources to be transferred and the transfer time, they can click the submit button in the transfer configuration interface to submit their settings to the cloud management platform. The cloud management platform will then receive the transfer request for the second cloud resource within the first cloud resource configured by the first tenant, obtaining the second cloud resource to be transferred, the upper limit of the specifications that the second cloud resource can support, and the transfer time period. The second cloud resource to be transferred is indicated by its type and quantity. The cloud resource type indicates whether it is a computing resource, storage resource, network resource, or other type of cloud resource, depending on its purpose. The transfer time period is the time during which the first tenant can transfer the second cloud resource to other tenants. Typically, the transfer time period is during the first tenant's off-peak hours. The transfer time period can be represented by a transfer time window and a time period. The time period indicates the calendar day to which the transfer time window belongs. For example, a transfer time window indicates that the second cloud resource can be transferred between 06:00 and 12:00. A time period indicates that the second cloud resource can be transferred between 06:00 and 12:00 every day or on a specific day. The specifications that the second cloud resource can support are used to indicate the performance parameters of the virtual resources that can be created based on the second cloud resource. For example, when the cloud resource is a computing resource, its resource specifications are used to indicate the number of virtual processor cores that can be created based on that computing resource. Since the cloud management platform sells cloud resources to tenants according to different specifications, the upper limit of the specifications that a tenant can support for a resource with a specified specification is that specified specification. Accordingly, after the first tenant completes the setting operation for the second cloud resource to be transferred in the transfer configuration interface, the specifications of the second cloud resource selected by the first tenant are the upper limit of the specifications that the second cloud resource can support. It should be noted that when setting the transfer quantity, the first tenant must comply with the following restrictions: the maximum transfer quantity is the purchase quantity of the first cloud resource. When setting the transfer time period, the first tenant must comply with the following restrictions: the transfer time period is within the first purchase time period of the first cloud resource. For example, suppose the first cloud resource selected by the first tenant is Figure 5 Cloud resource 2 in the middle, such as Figure 6 As shown, the maximum number of transfers is 70, and the transfer period is between May 1, 2023 and October 1, 2025. It should be noted that the cloud management platform may also provide tenants with other methods for transferring cloud resources; this embodiment does not limit such methods.

[0077] Optionally, the first tenant can also set a transfer price of the first cloud resource. Correspondingly, the transfer request further includes the transfer price of the first cloud resource set by the first tenant. Optionally, the transfer price is lower than a preset multiple of the predetermined price, and the first cloud resource is sold to the first tenant at the predetermined price on the cloud management platform. For example, the second cloud resource can be transferred at a selling price with a 20% premium, and the transfer price is 1.2 times the predetermined price. For another example, the second cloud resource can be transferred at a selling price with a 20% discount, and the transfer price is 0.8 times the predetermined price. The transfer price can be presented in the form of a transfer unit price. The transfer unit price is used to indicate the cost of the second cloud resource with a usage duration of a unit duration, a usage specification of an upper limit value of the specification that the second cloud resource can support, and a quantity of 1. The unit duration can be set according to application requirements. For example, when the transfer time period is counted by minutes, the unit duration can be minutes. When the transfer time period is counted by hours, the unit duration can be hours. In an implementation manner, the transfer price can also be set through the resource transfer interface. For example, the transfer configuration interface is further provided with a prompt item for prompting the first tenant to select the transfer unit price of the cloud resource to be transferred. After the first tenant sets the transfer unit price of the second cloud resource in the prompt item and submits, the cloud management platform can obtain the transfer unit price. In some implementation scenarios, the cloud management platform can limit the conditions that the transfer price needs to meet. For example, when the first tenant transfers the first cloud resource at a premium, the cloud management platform can limit the premium range of the first cloud resource.

[0078] It should be noted that, since the first cloud resource can be transferred only after the cloud management platform obtains the transfer request for the first cloud resource, the operation of setting the owner information of the first cloud resource as the first tenant in step 302 can also be performed after the cloud management platform obtains the transfer request for the first cloud resource, and the execution time thereof is not limited in the embodiments of the present application. Figure 4 As shown in FIG. 3, after obtaining the transfer request for the first cloud resource, the cloud management platform creates a resource reservation for the first cloud resource, sets the owner information of the first cloud resource as the first tenant, and sets the user information of the first cloud resource as the first tenant.

[0079] The above functions can be realized through cooperation of the front end and the back end of the cloud management platform. The front end of the cloud management platform can be an application program interface or a user interface, etc., which can interact with the user. The back end of the cloud management platform can be a component for realizing resource management and resource scheduling, etc. For example, Figure 7As shown, it is assumed that the above functions are realized by cooperation of the user interface, the management module and the scheduling module. After the first tenant triggers the cloud management platform to display the transfer configuration interface, the transfer configuration interface can prompt the first tenant to select the first cloud resource to be transferred from the cloud resources that the first tenant has purchased, set the transfer time period and the transfer price. After the first tenant completes the settings, the transfer configuration interface provides the management module with a transfer request for the second cloud resource in the first cloud resource, including the second cloud resource, the transfer time period and the transfer price. The management module saves the transfer request and sends indication information to the scheduling module to instruct the resource scheduling module to make relevant scheduling for the transfer of the second cloud resource to the first tenant. For example, the scheduling module creates a resource reservation for the first cloud resource and sets the owner information of the first cloud resource as the first tenant. The scheduling module sets the owner information of the first cloud resource as the first tenant, which can be regarded as occupying the first cloud resource information resource to prevent the first cloud resource from being bought by other tenants.

[0080] It should be noted that the transfer request for the first cloud resource can also be obtained in other ways. For example, the cloud management platform determines a cloud resource that has been sold but is in an idle state among the cloud resources managed by it, determines the transfer time period of the cloud resource according to the historical use of the cloud resource, or instructs the tenant who purchased the cloud resource to set the transfer time period of the cloud resource, and then generates a transfer request for the first cloud resource according to the transfer time period and the specifications of the cloud resource, etc., and sells the first cloud resource based on the transfer request.

[0081] Step 304, the cloud management platform publishes the resource transfer information of the first cloud resource to the Internet in response to the transfer request, and the resource transfer information is used to indicate that the first cloud resource is allowed to be used by other tenants in the transfer time period.

[0082] After the cloud management platform obtains the transfer request, it can generate the resource transfer information of the second cloud resource in the first cloud resource and publish the resource transfer information to the Internet to facilitate tenants to purchase the second cloud resource based on the resource transfer information.

[0083] Step 305, the cloud management platform obtains second purchase success information of the second tenant for the resource transfer information, and modifies the user information of the first cloud resource to the second tenant in response to the second purchase success information in the transfer time period.

[0084] After the cloud management platform publishes the resource transfer information to the Internet, when the cloud management platform receives a purchase request indicating that a tenant needs to purchase a cloud resource, the cloud management platform can display the resource transfer information to the tenant to facilitate the tenant to purchase the transferred cloud resource based on the resource transfer information. For example, the cloud management platform displays the resource transfer information of the second cloud resource on the cloud resource purchase interface. For example, Figure 8As shown, the resource source is displayed on the cloud resource purchase interface: inventory resources and transfer resources. The inventory resources are the cloud resources that have not been purchased by tenants among the cloud resources managed by the cloud management platform. The transfer resources are the cloud resources that have been purchased by tenants but can be temporarily transferred among the cloud resources managed by the cloud management platform, such as the second cloud resources. After the second tenant selects the resource source of the transfer resources, the cloud management platform can display the resource transfer information of the cloud resources that can be transferred to the second tenant for the second tenant to select whether to purchase the cloud resources that can be transferred. Optionally, the cloud management platform can also display the deployment location and owner information of the cloud resources that can be transferred when displaying the resource transfer information of the cloud resources that can be transferred. For example, Figure 8 As shown in the dashed box, the cloud resources that can be transferred in the cloud management platform include: c6s.8xlarge.2 belonging to tenant 001, c6s.8xlarge.2 belonging to tenant 002, ac6.8xlarge.2 belonging to tenant 003, and c7.8xlarge.2 belonging to tenant 004. The upper limit values of the supported specifications are 8U16G, 4U8G, 4U8G, and 4U8G, respectively. The transfer quantities are 50, 40, 30, and 10, respectively. The deployment locations are all the availability zone named Beijing 4. The transfer time periods are 06:00-12:00 every day, 06:00-12:00 on 2023.10.13, 08:00-16:00 every day, and 22:00-02:00 every day, respectively. The transfer prices are 10 yuan per hour (10 / h), 1 yuan per hour (1 / h), 5 yuan per hour (5 / h), and 5 yuan per hour (5 / h), respectively.

[0085] After the cloud management platform displays the transfer request of the second cloud resources to the second tenant, when the second tenant needs to use part or all of the cloud resources in the second cloud resources (hereinafter referred to as third cloud resources), the second tenant can execute a specified operation on the client used by the second tenant to trigger a second purchase success information for the resource transfer information, so that the cloud management platform transfers the third cloud resources to the second tenant based on the second purchase success information. The second purchase success information is used to indicate the time period of the second tenant purchasing the third cloud resources in the transfer time period and the specification of the third cloud resources, and the specification of the third cloud resources is less than or equal to the upper limit value of the specification supported by the second cloud resources. In a possible implementation, the cloud management platform can provide a resource purchase interface to the tenant, and the second tenant can trigger the second purchase success information based on the resource purchase interface. After the second tenant triggers the second purchase success information, the cloud management platform can obtain the second purchase success information through the resource purchase interface. Optionally, the resource purchase interface includes one or more of the following implementation manners: API and UI. It should be noted that the cloud management platform can also provide other ways for tenants to purchase cloud resources, which are not limited by the embodiments of the present application.

[0086] As shown in FIG. 6, the cloud management platform displays the resource transfer information of the cloud resources that can be transferred to the second tenant.Figure 8 As shown, the resource purchase interface is implemented through the cloud resource purchase interface. The cloud resource purchase interface displays a purchase button for each cloud resource that needs to be transferred. After the second tenant clicks the purchase button for any cloud resource, the cloud management platform can determine that the second tenant needs to purchase that cloud resource and display the corresponding resource configuration interface to the second tenant. For example, as... Figure 9 As shown, the resource configuration interface has several prompts. These prompts guide the second tenant in setting the quantity, purchase period, and specifications of the third cloud resources. After completing the configuration, the second tenant can submit their configuration to the cloud management platform by clicking the submit button. The cloud management platform will then receive the successful purchase information from the second tenant, confirming the third cloud resources and their specifications to be purchased within the specified period. It's important to note that when setting the quantity of the third cloud resources, the second tenant must set it to the maximum value of the total number of the first cloud resources. When setting the purchase period for the third cloud resources, the second tenant must do so within the transfer period. When setting the specifications of the third cloud resources, the second tenant must set it to the maximum value of the specifications supported by the first cloud resources. For example, when the second tenant selects based on their cloud resource needs… Figure 8 When the transferred resource is ac6.8xlarge.2, since its maximum supported specification is 4U8G, the transfer quantity is 30, and the transfer time period is from 08:00 to 16:00 every day, the second tenant can choose a maximum of 30 third cloud resources. The second tenant can choose to purchase third cloud resources during the purchase time period from 08:00 to 16:00 every day or a part of the time period. The maximum specification of the third cloud resources selected by the second tenant is 4U8G.

[0087] like Figure 4 As shown, after the cloud management platform obtains the second purchase success information set by the second tenant, it can determine that the second tenant purchased the third cloud resource and its specifications within the purchase period of the third cloud resource. In response to this second purchase success information, the cloud management platform modifies the user information of the third cloud resource to the second tenant within the purchase period of the third cloud resource, indicating that the second tenant has the right to use the third cloud resource during that period. This ensures that the second tenant has the right to use the third cloud resource within the purchase period, and that the first tenant has the right to use the first cloud resource during the period excluding the purchase period of the third cloud resource. Alternatively, the cloud management platform can choose to modify the user information of the third cloud resource to the second tenant after obtaining the second purchase success information, and set this user information to be effective within the purchase period of the third cloud resource. Here, the second tenant can instruct through their account.

[0088] When the transfer request for the first cloud resource also indicates a transfer price of the first cloud resource, the cloud management platform needs to calculate the transfer price of the third cloud resource purchased by the second tenant according to the second purchase success information and the transfer price of the first cloud resource, and then charge the second tenant for purchasing the third cloud resource according to the transfer price of the third cloud resource. For example, when the transfer price is a transfer unit price, the charge of the second tenant for purchasing the third cloud resource can be equal to the product of the transfer unit price, the length of the transfer time period, and the quantity of the third cloud resource. In a possible implementation, when calculating the transfer price of the third cloud resource purchased by the second tenant, if the third cloud resource is the entire first cloud resource and the specification of the third cloud resource is equal to the specification of the first cloud resource, the transfer price of the third cloud resource is the transfer price of the first cloud resource. If the third cloud resource is part of the first cloud resource and / or the specification of the third cloud resource is smaller than the specification of the first cloud resource, the cloud management platform also needs to calculate the transfer price of the first cloud resource to obtain the transfer price of the third cloud resource. The cloud management platform maintains a calculation rule for calculating the transfer price according to the quantity and specification of the cloud resource, and the cloud management platform can perform the calculation process according to the calculation rule. In a possible implementation, the calculation rule indicates the influence weight of the quantity and specification of the resource on the transfer price, and after determining the first proportion of the quantity of the third cloud resource in the quantity of the first cloud resource and the second proportion of the specification of the third cloud resource in the specification of the first cloud resource, the first proportion and the influence weight of the quantity of the resource on the transfer price, and the second proportion and the influence weight of the specification of the resource on the transfer price can be used to obtain the calculated transfer price. Alternatively, the cloud management platform can also calculate the transfer price according to the purchase time period of the third cloud resource and the transfer time period of the first cloud resource, and the implementation manner can be referred to the implementation manner of calculating according to the quantity and specification.

[0089] For example, it is assumed that the upper limit value of the specification that can be supported by the first cloud resource ac6.8xlarge.2 is 4U8G, the transfer quantity is 30, the transfer time period is 08:00-16:00 every day, the transfer price of the first cloud resource is 5 yuan per hour (5 / h), the second purchase success information indicates that the quantity of the third cloud resource is 30, the purchase time period of the third cloud resource is 08:00-16:00 every day, and the specification of the third cloud resource is 2U4G. The calculation rule indicates that the quantity N1 of the first cloud resource, the quantity N2 of the third cloud resource, the specification S1 of the first cloud resource, the specification S2 of the third cloud resource, the transfer price P1, and the calculated transfer price P2 satisfy P2=P1×(0.3×N2 / N1+0.7×S2 / S1). Then the transfer price P2 of the third cloud resource can be obtained as 5 yuan per hour×(0.3×30 / 30+0.7×2U4G / 4U8G)=3.25 yuan per hour.

[0090] At step 306, the cloud management platform receives the first virtual instance creation request of the second tenant, and invokes the first cloud resource to create a virtual instance of the second tenant within the transfer time period based on the first virtual instance creation request and the user information of the first cloud resource.

[0091] When the second tenant needs to create a virtual instance based on the third cloud resource, the second tenant can execute a specified operation on a client used by the second tenant to trigger the first virtual instance creation request, so that the cloud management platform creates a virtual instance for the second tenant under the indication of the first virtual instance creation request. In a possible implementation, the cloud management platform can provide a virtual instance creation interface to the second tenant, and the tenant can trigger the first virtual instance creation request based on the virtual instance creation interface. The first virtual instance creation request carries the specification of the first virtual instance to be created. After the tenant triggers the first virtual instance creation request, the cloud management platform can receive the first virtual instance creation request through the virtual instance creation interface, and obtain the specification of the first virtual instance to be created and other information from the first virtual instance creation request. For example, the virtual instance creation interface is implemented by one or more of the following: API and UI.

[0092] The cloud management platform obtains a first virtual instance creation request of the second tenant, and can determine the specification of the first virtual instance to be created. Then, the cloud management platform can determine, according to the user information of the cloud resource, that the cloud resource that the second tenant can use within the purchase time period of the third cloud resource is the third cloud resource. If the third cloud resource can meet the demand of the first virtual instance for the cloud resource, the cloud management platform can invoke the third cloud resource to create the first virtual instance with the specification indicated by the first virtual instance creation request within the purchase time period of the third cloud resource. For example, a target server that can provide the specification of the first virtual instance is selected in the infrastructure that provides the third cloud resource, and then the first virtual instance with the specification indicated by the first virtual instance creation request is created in the target server. The parameters of the first virtual instance match the specification of the first virtual instance. For example, when the specification of the first virtual instance indicates multiple parameters (such as computing power, GPU size, GPU bit width, and GPU bandwidth), the multiple parameters of the created first virtual instance correspond to the multiple parameters indicated by the specification one by one, and any one of the multiple parameters of the first virtual instance is equal to or slightly greater than the corresponding parameter indicated by the specification. The third cloud resource can meet the demand of the first virtual instance for the cloud resource, including that the number, type, and specification of the third cloud resource can correspond to the number, type, and specification of the cloud resource required by the first virtual instance. Similarly, within the purchase time period of the third cloud resource, the second tenant can also perform other operations on the third cloud resource. For example, the second tenant deletes the virtual instance created based on the third cloud resource. In addition, since the second tenant purchases the third cloud resource within the purchase time period of the third cloud resource, the cloud management platform also needs to release the virtual instance created by the first tenant based on the third cloud resource within the purchase time period of the third cloud resource in response to the second purchase success information, so as to provide the third cloud resource to the second tenant. As shown in Figure 4 the first virtual instance created by the first tenant based on the third cloud resource is released within the purchase time period of the third cloud resource, and the third cloud resource creates the first virtual instance for the second tenant based on the first virtual instance creation request of the second tenant.

[0093] Similar to the implementation process of step 303, the implementation process of obtaining the second purchase success information and the operation performed based on the second purchase success information in steps 305 to 306 can also be realized through the cooperation of the front end and the back end of the cloud management platform. For example, Figure 9As shown, it is assumed that the above functions are realized through cooperation of the user interface, the management module, the scheduling module, and the operation module. After the cloud management platform publishes the resource transfer information of the first cloud resource to the Internet, when the second tenant contains cloud resources meeting its use requirements, the second tenant clicks a purchase button corresponding to the cloud resource required by the second tenant, and the cloud management platform displays a resource configuration interface corresponding to the cloud resource to the second tenant based on the operation. Then, the second tenant sets the quantity, purchase time period, and specification of the third cloud resource to be purchased in the resource configuration interface. After the second tenant completes the setting, the resource configuration interface submits second purchase success information to the management module. The management module saves the second purchase success information and provides the second purchase success information to the scheduling module and the operation module. The operation module calculates a transfer price of the third cloud resource purchased by the second tenant based on the second purchase success information, and then charges the second tenant for purchasing the third cloud resource according to the transfer price of the third cloud resource. When the purchase time period of the third cloud resource is entered, the scheduling module releases the virtual instance created by the first tenant based on the third cloud resource based on the second purchase success information, maintains the owner information of the first cloud resource as the first tenant, continues to reserve the resource of the third cloud resource, and maintains the user information of the third cloud resource as the second tenant.

[0094] Similar to the implementation process of step 303, the implementation process of receiving the first virtual instance creation request and creating the virtual instance based on the first virtual instance creation request in step 306 can also be realized through cooperation of the front end and the back end of the cloud management platform. For example, as shown in FIG. 6, the cloud management platform includes a user interface, a management module, and a scheduling module. Figure 10 As shown, it is assumed that the above functions are realized through cooperation of the user interface, the management module, and the scheduling module. After the second tenant triggers the cloud management platform to display the virtual instance configuration interface, the virtual instance configuration interface can prompt the second tenant to select cloud resources required for creating the first virtual instance from the cloud resources purchased by the second tenant, and set the specification of the first virtual instance. After the second tenant completes the setting of the first virtual instance, the virtual instance configuration interface provides a first virtual instance creation request to the management module. The management module performs resource matching based on the first virtual instance creation request and the user information of the first cloud resource, and selects a target server that can provide the specification of the first virtual instance in the infrastructure of the third cloud resource. Then, the management module provides an identifier of the target server and the first virtual instance creation request to the scheduling module. The scheduling module creates the first virtual instance with the specification indicated in the first virtual instance creation request in the target server.

[0095] In step 307, the cloud management platform releases the virtual instance after the transfer time period ends, and modifies the user information of the first cloud resource as the first tenant.

[0096] After the purchase time period of the third cloud resource ends, the second tenant no longer has the usage right of the third cloud resource, and the cloud management platform needs to release the virtual instance created by the second tenant based on the third cloud resource and allocate the third cloud resource to the first tenant for use. In a possible implementation, the cloud management platform allocating the third cloud resource to the first tenant for use includes: in a case where the cloud management platform receives a second virtual instance creation request of the first tenant, the cloud management platform invokes, based on the second virtual instance creation request, the third cloud resource to create a virtual instance that meets the specification indicated by the second virtual instance creation request. Wherein, the cloud management platform obtains the second virtual instance creation request of the first tenant, and the implementation of the cloud management platform creating the virtual instance based on the second virtual instance creation request is described in the foregoing content, which is not described herein. Optionally, if the cloud management platform sets the owner information of the first cloud resource as the first tenant, the cloud management platform can determine, based on the owner information of the first cloud resource, that the third cloud resource belongs to the first tenant after the purchase time period of the third cloud resource ends, and modify the user information of the first cloud resource as the first tenant, so as to allocate the third cloud resource to the first tenant for use. As shown in Figure 4 FIG. 3, the cloud management platform releases the virtual instance created by the second tenant based on the third cloud resource after the purchase time period of the third cloud resource ends. Moreover, when the cloud management platform sets the user information of the first cloud resource as the third tenant within the purchase time period of the third cloud resource, the cloud management platform also needs to modify the user information of the first cloud resource as the first tenant.

[0097] Similarly to the implementation process of step 303, the implementation process of step 307 can also be implemented by cooperation of the front end and the back end of the cloud management platform. For example, as shown in Figure 11 FIG. 3, it is assumed that the above functions are implemented by cooperation of the user interface, the management module and the scheduling module. After the purchase time period of the third cloud resource ends, the management module ends the temporary transfer process of the third cloud resource, and instructs the scheduling module to perform related processing. According to the instruction of the management module, the scheduling module releases the virtual instance created by the second tenant based on the third cloud resource, continues to reserve the resource of the third cloud resource, modifies the user information of the first cloud resource as the first tenant, and returns the usage right of the third resource to the first tenant.

[0098] Optionally, when the transfer request further includes the transfer price set by the first tenant for the first cloud resource, the cloud resource management method based on the public cloud technology provided by the embodiments of the present application further includes the following step 308.

[0099] Step 308, the cloud management platform updates the charging of the first tenant purchasing the first cloud resource according to the second purchase success information and the transfer price.

[0100] When the transfer request of the first cloud resource further indicates a transfer price of the first cloud resource, the cloud management platform needs to update the charge of the first cloud resource purchased by the first tenant according to the transfer price of the third cloud resource. In one possible implementation, the updated price of the first cloud resource purchased by the first tenant can be selected as the original price of the first cloud resource minus the transfer price of the transferred cloud resource. For example, assuming that the original price of the first cloud resource purchased by the first tenant is 20 yuan per hour, and the transfer price of the third cloud resource is 3.25 yuan per hour, the updated price of the first cloud resource purchased by the first tenant is 20 yuan per hour minus 3.25 yuan per hour, equal to 16.75 yuan per hour.

[0101] When the charge of the first cloud resource purchased by the first tenant is updated according to the transfer price of the third cloud resource, since the second tenant will pay for the third cloud resource, the first tenant does not need to or reduces the payment for the third cloud resource in the second purchase time period, which can reduce the cost of the first tenant using the cloud resource, and attract part of the tenants to become the promoter of the resource owned by the cloud service provider, and accelerate the sale of the cloud resource.

[0102] It should be noted that the cloud management platform can have other implementation manners for the charge of the transferred resource. For example, the cloud management platform maintains a benefit account for each tenant, and the tenant can use the benefit in the benefit account to pay for the cost of using the cloud service. Here, the cloud management platform can not update the charge of the first cloud resource purchased by the first tenant according to the transfer price, but transfer the benefit generated by the transferred cloud resource to the benefit account of the first tenant.

[0103] To sum up, in the cloud resource management method based on the public cloud technology provided in the application, since the transfer time period is located in the first purchase time period of the first cloud resource purchased by the first tenant, the cloud management platform can facilitate the first tenant to transfer part or all of the first cloud resource (hereinafter referred to as the second cloud resource) when the resource demand of the first tenant for the first cloud resource purchased by the first tenant is small. In this way, after the second tenant purchases part or all of the second cloud resource (hereinafter referred to as the third cloud resource), the efficient circulation of the cloud resource between different tenants is realized, so that the third cloud resource can be effectively utilized, and the utilization rate of the third cloud resource is improved. Moreover, after the end of the transfer time period, the cloud management platform modifies the user information of the first cloud resource to the first tenant, so as to ensure that the first tenant can continue to use the third cloud resource after the end of the transfer time period, avoid the situation that the first tenant has no or lacks available resources, and improve the resource guarantee capability of the cloud management platform. Therefore, the cloud resource management method based on the public cloud technology provided in the application embodiment improves the flexibility of the resource selling mode of the cloud management platform. Moreover, by supporting the first tenant to transfer the first cloud resource to others at a certain price within the transfer time period, the cloud management platform can sell the idle resources at a lower discount to meet the temporary resource demand of some tenants, so that the cloud management platform can adapt to the sudden temporary business and improve the product attractiveness of the cloud service provider. At the same time, since some scarce resources are easily sold out, by temporarily transferring the resources, the tenants can purchase the temporarily transferred scarce resources to meet the application demand of the tenants.

[0104] It should be noted that, although the implementation principle of the cloud resource management method based on the public cloud technology provided in the application is described above by taking the virtual instance as an example, the cloud resource management method based on the public cloud technology provided in the application can also be applicable to other cloud services in other presentation forms. Moreover, when the cloud resource management method based on the public cloud technology provided in the application is applicable to other cloud services in other presentation forms, the other cloud services in other presentation forms also have the features of the virtual instance described above. For example, the cloud management platform can also provide a bare metal instance to the tenant by using the cloud resource management method based on the public cloud technology provided in the application, and the resources of the bare metal instance purchased by the tenant can also be temporarily transferred to other tenants for use. Moreover, the implementation process of managing the cloud resources of other cloud services in other presentation forms is described above with reference to the implementation process of managing the cloud resources of the virtual instance, and details are not described herein.

[0105] In addition, the order of the steps of the cloud resource management method based on the public cloud technology provided in the embodiments of the present application can be adjusted appropriately, and the steps can be increased or reduced as appropriate. Any person skilled in the art can easily think of changes within the scope of the technology disclosed in the present application, which should be covered by the protection scope of the present application, and thus will not be described herein.

[0106] The virtual device of the embodiments of the present application is described below.

[0107] The cloud resource management method based on the public cloud technology of the embodiments of the present application is described above. Corresponding to the method, the embodiments of the present application further provide a cloud resource management device based on the public cloud technology. Figure 12 FIG. 1 is a structural schematic diagram of a cloud resource management device based on the public cloud technology according to an embodiment of the present application. Based on the cloud resource management device based on the public cloud technology shown in FIG. 1, the cloud resource management device can perform all or part of the operations shown in FIG. 2. Figure 12 The cloud resource management device based on the public cloud technology shown in FIG. 1 can perform all or part of the operations shown in FIG. 2. It should be understood that the device can include more additional components than the components shown or omit part of the components shown, and the embodiments of the present application do not limit this. Optionally, the cloud resource management device based on the public cloud technology is deployed in a cloud management platform. The cloud management platform is used to manage the infrastructure providing cloud services. The infrastructure includes a plurality of servers. The plurality of servers are used to deploy virtual instances implementing tenant services. As shown in FIG. 1, the cloud resource management device based on the public cloud technology 120 includes: Figure 12 The cloud resource management device based on the public cloud technology shown in FIG. 1 can perform all or part of the operations shown in FIG. 2. It should be understood that the device can include more additional components than the components shown or omit part of the components shown, and the embodiments of the present application do not limit this. Optionally, the cloud resource management device based on the public cloud technology is deployed in a cloud management platform. The cloud management platform is used to manage the infrastructure providing cloud services. The infrastructure includes a plurality of servers. The plurality of servers are used to deploy virtual instances implementing tenant services. As shown in FIG. 1, the cloud resource management device based on the public cloud technology 120 includes: Figure 3 The cloud resource management device based on the public cloud technology shown in FIG. 1 can perform all or part of the operations shown in FIG. 2. It should be understood that the device can include more additional components than the components shown or omit part of the components shown, and the embodiments of the present application do not limit this. Optionally, the cloud resource management device based on the public cloud technology is deployed in a cloud management platform. The cloud management platform is used to manage the infrastructure providing cloud services. The infrastructure includes a plurality of servers. The plurality of servers are used to deploy virtual instances implementing tenant services. As shown in FIG. 1, the cloud resource management device based on the public cloud technology 120 includes: Figure 12 The cloud resource management device based on the public cloud technology shown in FIG. 1 can perform all or part of the operations shown in FIG. 2. It should be understood that the device can include more additional components than the components shown or omit part of the components shown, and the embodiments of the present application do not limit this. Optionally, the cloud resource management device based on the public cloud technology is deployed in a cloud management platform. The cloud management platform is used to manage the infrastructure providing cloud services. The infrastructure includes a plurality of servers. The plurality of servers are used to deploy virtual instances implementing tenant services. As shown in FIG. 1, the cloud resource management device based on the public cloud technology 120 includes:

[0108] The interaction module 1201 is configured to obtain first purchase success information of a first tenant for a first cloud resource in the infrastructure.

[0109] The management module 1202 is configured to set user information of the first cloud resource as the first tenant in response to the first purchase success information.

[0110] The interaction module 1201 is further configured to obtain a transfer request of the first tenant for the first cloud resource, the transfer request including a transfer time period set by the first tenant for the first cloud resource.

[0111] The management module 1202 is further configured to publish resource transfer information of the first cloud resource to the Internet in response to the transfer request, the resource transfer information being used to indicate that the first cloud resource is allowed to be used by other tenants in the transfer time period.

[0112] The interaction module 1201 is further configured to obtain second purchase success information of a second tenant for the resource transfer information.

[0113] The management module 1202 is further configured to modify the user information of the first cloud resource to the second tenant in response to the second purchase success information within the transfer time period.

[0114] The interaction module 1201 is further configured to receive a first virtual instance creation request of the second tenant.

[0115] The management module 1202 is further configured to invoke the first cloud resource to create a virtual instance of the second tenant within the transfer time period based on the first virtual instance creation request and the user information of the first cloud resource.

[0116] The management module 1202 is further configured to release the virtual instance and modify the user information of the first cloud resource to the first tenant after the end of the transfer time period.

[0117] In a possible implementation, the transfer request further includes a transfer price set by the first tenant for the first cloud resource, the transfer price is lower than a preset multiple of a predetermined price, and the first cloud resource is sold to the first tenant at the predetermined price by the cloud management platform.

[0118] In a possible implementation, the management module 1202 is further configured to update the charging of the first tenant for the first cloud resource according to the second purchase success information and the transfer price.

[0119] In a possible implementation, the management module 1202 is further configured to set the owner information of the first cloud resource to the first tenant in response to the first purchase success information, and the management module 1202 is specifically configured to modify the user information of the first cloud resource to the first tenant based on the owner information of the first cloud resource after the end of the transfer time period.

[0120] In a possible implementation, the management module 1202 is further configured to release, in response to the second purchase success information, a virtual instance created by the first tenant based on the first cloud resource indicated by the second purchase success information within the transfer time period.

[0121] The interaction module 1201 and the management module 1202 can be implemented by software or by hardware. For example, the implementation of the interaction module 1201 is described below. Similarly, the implementation of the management module 1202 can refer to the implementation of the interaction module 1201.

[0122] As an example of a software functional unit, the interaction module 1201 can include code running on a compute instance. Among others, the compute instance can include at least one of a physical host (a computing device), a virtual machine, a container. Further, the compute instance can be one or more. For example, the interaction module 1201 can include code running on multiple hosts / virtual machines / containers. It is noted that the multiple hosts / virtual machines / containers for running the code can be distributed in the same region, or in different regions. Further, the multiple hosts / virtual machines / containers for running the code can be distributed in the same availability zone (AZ), or in different AZs, each of which includes one cloud data center or multiple cloud data centers in close geographical proximity. Typically, one region can include multiple AZs.

[0123] Similarly, the multiple hosts / virtual machines / containers for running the code can be distributed in the same virtual private cloud (VPC), or in multiple VPCs. Typically, one VPC is set up within one region, and communication between two VPCs in the same region, or between VPCs in different regions, requires a communication gateway in each VPC for interconnection between VPCs.

[0124] As an example of a hardware functional unit, the interaction module 1201 can include at least one computing device, such as a server, etc. Alternatively, the interaction module 1201 can also be a device implemented with an application-specific integrated circuit (ASIC), or a programmable logic device (PLD), etc. Among others, the PLD can be implemented with a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.

[0125] The plurality of computing devices included in the interaction module 1201 can be distributed in the same region or in different regions. The plurality of computing devices included in the interaction module 1201 can be distributed in the same AZ or in different AZs. Similarly, the plurality of computing devices included in the interaction module 1201 can be distributed in the same VPC or in multiple VPCs. The plurality of computing devices can be any combination of servers, ASICs, PLDs, CPLDs, FPGAs, and GALs.

[0126] It should be noted that in other embodiments, any of the interaction module 1201 and the management module 1202 can be used to perform any of the steps in the method of managing cloud resources based on public cloud technology. The steps responsible for implementation can be specified as needed, and the full function of the device for managing cloud resources based on public cloud technology can be achieved by implementing different steps in the method of managing cloud resources based on public cloud technology by the interaction module 1201 and the management module 1202 respectively.

[0127] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of each component described above can refer to the corresponding content in the foregoing method embodiments, which will not be repeated here.

[0128] The basic hardware structure related to the embodiments of the present application is illustrated below.

[0129] The present application also provides a computing device 1300. As shown in Figure 13 The computing device 1300 includes a bus 1302, a processor 1304, a memory 1306, and a communication interface 1308. The processor 1304, the memory 1306, and the communication interface 1308 communicate through the bus 1302. The computing device 1300 can be a server or a terminal device. It should be understood that the present application does not limit the number of processors and memories in the computing device 1300.

[0130] The bus 1302 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of representation, Figure 13 only one line is used, but it does not mean that there is only one bus or one type of bus. The bus 1302 can include a path for transmitting information between various components (e.g., the memory 1306, the processor 1304, the communication interface 1308) of the computing device 1300.

[0131] The processor 1304 may include any one or more processors such as a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

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

[0133] The memory 1306 stores executable program code, and the processor 1304 executes the executable program code to implement the functions of the aforementioned interaction module 1201 and management module 1202, thereby realizing a cloud resource management method based on public cloud technology. That is, the memory 1306 stores instructions for executing the cloud resource management method based on public cloud technology.

[0134] The communication interface 1308 uses transceiver modules such as, but not limited to, network interface cards and transceivers to enable communication between the computing device 1300 and other devices or communication networks.

[0135] This application also provides a computing device cluster. The computing device cluster includes at least one computing device. The computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smartphone.

[0136] like Figure 14 As shown, the computing device cluster includes at least one computing device 1300. The memory 1306 of one or more computing devices 1300 in the computing device cluster may store the same instructions for executing methods of managing cloud resources based on public cloud technology.

[0137] In some possible implementation, the memory 1306 of one or more of the computing devices 1300 in the computing device cluster can also respectively store partial instructions for performing the method for managing cloud resources based on public cloud technology. In other words, the combination of one or more computing devices 1300 can collectively execute the instructions for performing the method for managing cloud resources based on public cloud technology.

[0138] It should be noted that the memories 1306 in different computing devices 1300 in the computing device cluster can store different instructions, respectively used for performing partial functions of the apparatus for managing cloud resources based on public cloud technology. That is, the instructions stored in the memories 1306 in different computing devices 1300 can implement the functions of one or more of the interaction module 1201 and the management module 1202.

[0139] In some possible implementation, one or more of the computing devices in the computing device cluster can be connected through a network. The network can be a wide area network or a local area network, etc. Figure 15 A possible implementation is shown. As shown in Figure 15 The two computing devices 1300A and 1300B are connected through a network. Specifically, the communication interfaces in the respective computing devices are connected to the network. In this type of possible implementation, the memory 1306 in the computing device 1300A stores instructions for performing the functions of the interaction module 1201. Meanwhile, the memory 1306 in the computing device 1300B stores instructions for performing the functions of the management module 1202.

[0140] Figure 15 The connection manner between the computing device cluster shown in

[0141] It should be understood that Figure 15 The functions of the computing device 1300A shown in

[0142] The present embodiment also provides another computing device cluster. The connection relationship between the computing devices in the computing device cluster can be similar to the Figure 14 and Figure 15 The connection manner of the computing device cluster. The difference is that the memory 1306 in one or more of the computing devices 1300 in the computing device cluster can store the same instructions for performing the method for managing cloud resources based on public cloud technology.

[0143] In some possible implementation manners, part of instructions for performing the method for managing cloud resources based on the public cloud technology can also be respectively stored in the memory 1306 of one or more computing devices 1300 in the computing device cluster. In other words, the combination of one or more computing devices 1300 can collectively execute the instructions for performing the method for managing cloud resources based on the public cloud technology.

[0144] The embodiment of the present application further provides a computer program product containing instructions. The computer program product can be software or a program product containing instructions, which can run on a computing device or be stored in any available medium. When the computer program product runs on at least one computing device, the at least one computing device is caused to perform the method for managing cloud resources based on the public cloud technology.

[0145] The embodiment of the present application further provides a computer readable storage medium. The computer readable storage medium can be any available medium that the computing device can store or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk), etc. The computer readable storage medium contains instructions, which instruct the computing device to perform the method for managing cloud resources based on the public cloud technology, or instruct the computing device to perform the method for managing cloud resources based on the public cloud technology.

[0146] Those skilled in the art can understand that all or part of the steps of the above-mentioned embodiments can be completed by hardware, or by programs instructing relevant hardware, and the programs can be stored in a computer readable storage medium. The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.

[0147] 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 for analysis, stored data, displayed data, etc.) and signals involved in the present application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of related data need to comply with relevant laws, regulations and standards of relevant countries and regions. For example, the raw data and executable codes involved in the present application are obtained under sufficient authorization.

[0148] In the embodiments of the present application, the terms "first", "second" and "third" are only for descriptive purposes, and cannot be understood as indicating or implying relative importance. The term "at least one" means one or more, and the term "multiple" means two or more, unless otherwise explicitly limited.

[0149] The term "and / or", within the context of the present application, is merely descriptive and not limiting. That is, the term "and / or", within the context of the present application, means that there are three possible relationships between the associated objects, for example, A and / or B, means that there are three possible relationships: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in the present application generally represents an "or" relationship between the associated objects.

[0150] The above description is merely optional embodiments of the present application, and is not intended to limit the present application. Any modification, equivalent replacement, improvement, etc. made within the concept and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for managing cloud resources based on public cloud technology, characterized by, The method is performed by a cloud management platform, the cloud management platform is used for managing an infrastructure providing cloud services, the infrastructure includes a plurality of servers, the servers are used for deploying virtual instances implementing tenant businesses, and the method includes the following steps: The cloud management platform acquires first purchase success information of a first tenant for a first cloud resource in the infrastructure; The cloud management platform sets user information of the first cloud resource as the first tenant in response to the first purchase success information; The cloud management platform acquires a transfer request of the first tenant for the first cloud resource, the transfer request includes a transfer time period set by the first tenant for the first cloud resource; The cloud management platform publishes resource transfer information of the first cloud resource to the Internet in response to the transfer request, the resource transfer information is used for indicating that the first cloud resource is allowed to be used by other tenants in the transfer time period; The cloud management platform acquires second purchase success information of a second tenant for the resource transfer information, and modifies user information of the first cloud resource as the second tenant in response to the second purchase success information in the transfer time period; The cloud management platform receives a first virtual instance creation request of the second tenant, and creates a virtual instance of the second tenant by calling the first cloud resource based on the first virtual instance creation request and the user information of the first cloud resource in the transfer time period; The cloud management platform releases the virtual instance and modifies user information of the first cloud resource as the first tenant after the transfer time period ends.

2. The method of claim 1, wherein, The transfer request further includes a transfer price set by the first tenant for the first cloud resource, the transfer price is lower than a preset multiple of a predetermined price, and the first cloud resource is sold to the first tenant at the predetermined price in the cloud management platform.

3. The method of claim 2, wherein, After the cloud management platform acquires second purchase success information of a second tenant for the resource transfer information, the method further includes: The cloud management platform updates charging of the first tenant for the first cloud resource according to the second purchase success information and the transfer price.

4. The method according to any one of claims 1 to 3, characterized in that, The method further includes: The cloud management platform sets owner information of the first cloud resource as the first tenant in response to the first purchase success information; The cloud management platform modifies user information of the first cloud resource as the first tenant after the transfer time period ends, including: The cloud management platform modifies user information of the first cloud resource as the first tenant based on the owner information of the first cloud resource after the transfer time period ends.

5. The method according to any one of claims 1 to 4, characterized in that, The method further includes: The cloud management platform releases a virtual instance created by the first tenant based on the first cloud resource indicated by the second purchase success information in the transfer time period in response to the second purchase success information.

6. A cloud resource management apparatus based on public cloud technology, characterized by, The device is deployed in a cloud management platform, the cloud management platform is used for managing an infrastructure providing cloud services, the infrastructure includes a plurality of servers, the servers are used for deploying virtual instances implementing tenant businesses, and the device includes the following steps: An interaction module configured to obtain first purchase success information of a first tenant for a first cloud resource in the infrastructure; A management module configured to set user information of the first cloud resource to the first tenant in response to the first purchase success information; The interaction module is further configured to obtain a transfer request of the first tenant for the first cloud resource, the transfer request comprising a transfer time period set by the first tenant for the first cloud resource; The management module is further configured to publish resource transfer information of the first cloud resource to the Internet in response to the transfer request, the resource transfer information being configured to indicate that the first cloud resource is allowed to be used by other tenants during the transfer time period; The interaction module is further configured to obtain second purchase success information of a second tenant for the resource transfer information; The management module is further configured to modify the user information of the first cloud resource to the second tenant in response to the second purchase success information during the transfer time period; The interaction module is further configured to receive a first virtual instance creation request of the second tenant; The management module is further configured to invoke the first cloud resource to create a virtual instance of the second tenant based on the first virtual instance creation request and the user information of the first cloud resource during the transfer time period; The management module is further configured to release the virtual instance and modify the user information of the first cloud resource to the first tenant after the end of the transfer time period.

7. The apparatus of claim 6, wherein, The transfer request further comprises a transfer price set by the first tenant for the first cloud resource, the transfer price being lower than a predetermined price by a preset multiple, the first cloud resource being sold to the first tenant at the predetermined price on the cloud management platform.

8. The apparatus of claim 7, wherein The management module is further configured to update a charge for the first tenant to purchase the first cloud resource according to the second purchase success information and the transfer price.

9. The apparatus of any one of claims 6 to 8, wherein The management module is further configured to set owner information of the first cloud resource to the first tenant in response to the first purchase success information; The management module is specifically configured to modify the user information of the first cloud resource to the first tenant based on the owner information of the first cloud resource after the end of the transfer time period.

10. The apparatus of any one of claims 6 to 9, wherein The management module is further configured to release a virtual instance created by the first tenant based on the second purchase success information during the transfer time period in response to the second purchase success information.

11. A cluster of computing devices, characterized in that, A computing device cluster comprising a plurality of computing devices, the plurality of computing devices comprising a plurality of processors and a plurality of memories, the plurality of memories storing program instructions, the plurality of processors running the program instructions, so that the computing device cluster implements the method of any one of claims 1 to 5.

12. A computer-readable storage medium, characterized in that, Program instructions, when running on a computing device cluster, cause the computing device cluster to implement the method of any one of claims 1 to 5.

13. A computer program product comprising instructions, characterized in that, When the instructions are executed by the cluster of computing devices, the cluster of computing devices is caused to perform a method as claimed in any of claims 1 to 5.