Cloud resource guarantee method and device based on public cloud technology

By displaying various specifications of guaranteed time periods and quantities through the cloud management platform, cloud resources can be used by other tenants between guaranteed time periods on different dates. This solves the problems of high resource costs for cloud service providers and high fees for tenants, and realizes time-sharing reuse of resources and cost reduction.

CN120832230APending Publication Date: 2025-10-24HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410702711.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2024-04-23
Filing Date
2024-05-31
Publication Date
2025-10-24

AI Technical Summary

Technical Problem

To ensure the reserved resources for tenants, cloud service providers need to provide a large amount of resources over a continuous period of time, resulting in high resource costs and tenants having to pay protection fees even during non-usage periods, leading to low resource utilization.

Method used

The cloud management platform displays various specifications of guaranteed time periods and guaranteed quantities to tenants, allowing the first cloud resources to be used by other tenants between guaranteed time periods on different dates, realizing time-sharing reuse, and reducing resource costs by dividing guaranteed time periods into finer granularities.

Benefits of technology

It improves the utilization rate of cloud resources, reduces the resource guarantee costs for cloud service providers and tenants, and enables multiple tenants to reuse reserved resources in multiple time periods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120832230A_ABST
    Figure CN120832230A_ABST
Patent Text Reader

Abstract

The invention discloses a cloud resource guarantee 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 displays a safeguardable time period and a safeguardable number of each specification in multiple specifications to a tenant, and obtains a first specification selected by the tenant and a first safeguardable time period and a first safeguardable number corresponding to the first specification from a cloud resource configuration interface, under the condition that it is determined that a first guarantee number of virtual instances with a first specification can be provided in the first guarantee period, first cloud resources meeting the first specification and the first guarantee number are reserved for the tenant in the first guarantee period, and the first cloud resources can be used by other tenants in the period between the first guarantee periods of different dates; and the cloud management platform creates guarantee virtual instances meeting the first specification and the first guarantee number for the tenant by using the first cloud resource based on the virtual instance creation request of the tenant in the first guarantee period. The resource cost of the cloud service provider can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims priority to the Chinese patent application No. 202410494282.9, filed on April 23, 2024, and entitled "Resource Guarantee Method and Device for Virtual Instance", the entire contents of which are incorporated herein by reference. TECHNICAL FIELD

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

[0003] With the development of public cloud technology, more and more users use cloud resources provided by cloud service providers to realize their own businesses. In view of cost and benefit, cloud service providers expect higher resource selling efficiency, but under high resource selling rate, the risk of resource supply interruption is increased.

[0004] Currently, in order to guarantee resource supply under high allocation rate, cloud service providers provide resource reservation capability. Tenants purchase reserved resources, and cloud service providers reserve corresponding resources for tenants to guarantee resource supply to tenants. Reserved resources can guarantee that tenants have resources available within the reserved period purchased by tenants. Currently, cloud service providers usually reserve resources for tenants within a whole continuous period of time to guarantee that tenants have resources available at any time within the whole continuous period of time when they need to use resources. For example, when a tenant needs to use resources from 8:00 to 20:00 every day in a year, if the tenant purchases reserved resources, the cloud service provider needs to reserve resources for the tenant within the whole year, even if the tenant does not need to use resources during the non-working period of the year.

[0005] However, in order to guarantee the reserved resources of multiple tenants, cloud service providers need to provide more resources for guarantee, resulting in high resource cost of cloud service providers. SUMMARY

[0006] The present application provides a cloud resource guarantee method and device based on public cloud technology. The present application can improve the utilization rate of cloud resources, reduce the resource cost of cloud service providers, and also reduce the resource guarantee cost that tenants need to bear. The technical solutions provided by the present application are as follows:

[0007] In a first aspect, the present application provides a cloud resource guarantee 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 providing cloud services. The infrastructure includes a plurality of servers. The servers are used to deploy virtual instances for implementing tenant businesses, and the virtual instances that can be provided by the plurality of servers are divided into multiple specifications. The method includes: the cloud management platform displays a guaranteeable time period and a guaranteeable quantity of each specification in the multiple specifications to a tenant, the guaranteeable time period of any specification is a time period in which the tenant selecting the guaranteeable time period can be guaranteed to use a virtual instance of any specification, and the guaranteeable quantity of any specification is a total number in which the tenant selecting the guaranteeable quantity can be guaranteed to use a virtual instance of any specification; the cloud management platform obtains a first specification selected by a tenant and a first guarantee time period and a first guarantee quantity corresponding to the first specification from a cloud resource configuration interface, the first specification is one of the multiple specifications, the first guarantee time period is a time period in the guaranteeable time period corresponding to the first specification, and the first guarantee quantity is less than or equal to the guaranteeable quantity corresponding to the first specification; the cloud management platform determines that, in the case that the virtual instances with the first specification of the first guarantee quantity can be provided in the first guarantee time period, the first cloud resource meeting the first specification and the first guarantee quantity is reserved for the tenant in the first guarantee time period, wherein the time period between the first guarantee time periods of different dates of the first cloud resource can be used by other tenants; and the cloud management platform creates guaranteed virtual instances meeting the first specification and the first guarantee quantity for the tenant by using the first cloud resource based on a virtual instance creation request of the tenant in the first guarantee time period.

[0008] In this way, since the cloud management platform can display the guaranteeable time period and the guaranteeable quantity of each specification in the multiple specifications to the tenant, and the time period between the first guarantee time periods of different dates of the first cloud resource can be used by other tenants, the cloud management platform is equivalent to dividing the guarantee time period in a finer granularity, so that the cloud resource reserved for a certain tenant can be used by other tenants in other time periods between the guarantee time periods of different dates, and the time-sharing multiplexing of the reserved resources by multiple tenants in multiple time periods is realized. In this way, on the one hand, the utilization rate of the cloud resource can be improved, the resource cost of the cloud service provider can be reduced, and the resource guarantee cost that the tenant needs to bear can also be reduced.

[0009] In a possible implementation, the method further includes: determining, by the cloud management platform, that the first guarantee quantity of the virtual instances with the first specification cannot be provided in the first guarantee period, displaying, by the cloud management platform, the updated guaranteeable period and guaranteeable quantity of each specification to the tenant, and prompting the tenant to reselect the specification and the corresponding guarantee period and guarantee quantity; obtaining, by the cloud management platform, the second specification reselected by the tenant and the corresponding second guarantee period and second guarantee quantity from the cloud resource configuration interface, the second specification being one of the updated specifications, the second guarantee period being a period in the guaranteeable period corresponding to the second specification, and the second guarantee quantity being less than or equal to the guaranteeable quantity corresponding to the second specification; determining, by the cloud management platform, that the second guarantee quantity of the virtual instances with the second specification can be provided in the second guarantee period, and reserving, by the cloud management platform, the second cloud resource satisfying the second specification and the second guarantee quantity for the tenant in the second guarantee period, wherein the second cloud resource can be used by other tenants in the periods between the second guarantee periods on different dates; and creating, by the cloud management platform, the guaranteed virtual instances satisfying the second specification and the second guarantee quantity for the tenant based on the virtual instance creation request of the tenant by using the second cloud resource in the second guarantee period.

[0010] In some implementation scenarios, after the cloud management platform obtains the first specification selected by the tenant and the corresponding first guarantee period and first guarantee quantity from the cloud resource configuration interface, the tenant can also modify one or more of the specification and the guarantee period and quantity based on the current resources of the cloud service provider. Accordingly, the cloud management platform also needs to adjust the strategy for reserving the cloud resources according to the modified requirements. Therefore, after the cloud management platform obtains the first specification selected by the tenant and the corresponding first guarantee period and first guarantee quantity from the cloud resource configuration interface, the method further includes: receiving, by the cloud management platform, a resource modification request sent by the tenant, displaying, by the cloud management platform, the guaranteeable period and guaranteeable quantity of each specification to the tenant based on the resource modification request, the resource modification request being used to indicate the modification of the reserved resources of the tenant; obtaining, by the cloud management platform, the third specification modified by the tenant and the corresponding third guarantee period and third guarantee quantity from the cloud resource configuration interface, the third specification being one of the specifications, the third guarantee period being a period in the guaranteeable period corresponding to the third specification, and the third guarantee quantity being less than or equal to the guaranteeable quantity corresponding to the third specification; determining, by the cloud management platform, that the third guarantee quantity of the virtual instances with the third specification can be provided in the third guarantee period, and reserving, by the cloud management platform, the third cloud resource satisfying the third specification and the third guarantee quantity for the tenant in the third guarantee period, wherein the third cloud resource can be used by other tenants in the periods between the third guarantee periods on different dates; and creating, by the cloud management platform, the guaranteed virtual instances satisfying the third specification and the third guarantee quantity for the tenant based on the virtual instance creation request of the tenant by using the third cloud resource in the third guarantee period.

[0011] In a possible implementation, the method further includes: when the cloud management platform displays the guaranteed time period and the guaranteed quantity of each specification to the tenant, the cloud management platform also displays the specifications that have been purchased by other tenants and the corresponding guaranteed time period and guaranteed quantity. When the cloud management platform also displays the specifications that have been purchased by other tenants and the corresponding guaranteed time period and guaranteed quantity to the tenant, the displayed content can provide a reference for the tenant when the tenant selects the specification, the guaranteed time period, and the guaranteed quantity, so that the tenant can select whether to time-share the corresponding resources with other tenants.

[0012] If the cloud management platform creates the guaranteed virtual instance for the tenant by using the first cloud resource in the first guaranteed time period, after the first guaranteed time period ends, the cloud management platform needs to perform a de-guarantee operation on the cloud resource used by the guaranteed virtual instance, so that other tenants can use the first cloud resource. In a possible implementation, the method further includes: the cloud management platform recycles the guaranteed virtual instance and saves or deletes the information of the guaranteed virtual instance when the first guaranteed time period ends; or, the cloud management platform migrates the guaranteed virtual instance to the spare cloud resource if there is a spare cloud resource that can meet the guaranteed virtual instance among the cloud resources managed by the cloud management platform when the first guaranteed time period ends, and recycles the guaranteed virtual instance if there is no spare cloud resource that can meet the guaranteed virtual instance among the cloud resources managed by the cloud management platform; or, the cloud management platform continues to use the first cloud resource to provide the guaranteed virtual instance for the tenant if no request of using the first cloud resource by other tenants is received when the first guaranteed time period ends, and recycles the guaranteed virtual instance if a request of using the first cloud resource by other tenants is received, where the first cloud resource is reserved for other tenants after the first guaranteed time period ends.

[0013] In a possible implementation, after the cloud management platform reserves the first cloud resource that meets the first specification and the first guaranteed quantity for the tenant in the first guaranteed time period, the method further includes: the cloud management platform determines a guaranteed unit price of the first cloud resource used by the tenant according to the situation that the first cloud resource is reserved for other tenants at other times outside the first guaranteed time period, and charges the tenant for reserving the first cloud resource in the first guaranteed time period according to the guaranteed unit price, where the cost that the tenant should pay for the first cloud resource is positively related to the guaranteed unit price, the first guaranteed quantity, and the time length of the first guaranteed time period, and the guaranteed unit price is negatively related to the total amount of the first cloud resource reserved for other tenants at other times.

[0014] In a possible implementation, after the cloud management platform reserves the first cloud resource that meets the first specification and the first guaranteed quantity for the tenant in the first guaranteed time period, the cloud management platform can also display the reservation result to the tenant, so as to notify the tenant of the reservation result. For example, the cloud management platform displays to the tenant that the first cloud resource can meet the quantity and the guaranteed time period of the first specification.

[0015] In a possible implementation, after the cloud management platform reserves the first cloud resource satisfying the first specification and the first guaranteed quantity for the tenant in the first guaranteed time period, the method further includes: the cloud management platform displays, to the tenant, a specification of a virtual instance that the first cloud resource needs to satisfy and a corresponding quantity and guaranteed time period for other tenants in other time periods outside the first guaranteed time period, and displays, to the other tenants, that the first cloud resource can satisfy the first specification and the corresponding quantity and guaranteed time period selected by the tenant.

[0016] In a second aspect, the embodiments of the present application provide a cloud resource guarantee device based on a public cloud technology. The device is deployed in a cloud management platform. The cloud management platform is used to manage an infrastructure providing cloud services. The infrastructure includes a plurality of servers. The servers are used to deploy virtual instances used to implement tenant businesses. The virtual instances that can be provided by the plurality of servers are divided into a plurality of specifications. The device includes: an interaction module, configured to display, to a tenant, a guaranteed time period and a guaranteed quantity of each specification in the plurality of specifications, the guaranteed time period of any specification being a time period in which a tenant selecting the guaranteed time period can be guaranteed to use a virtual instance of any specification, and the guaranteed quantity of any specification being a total number of virtual instances of any specification that a tenant selecting the guaranteed quantity can be guaranteed to use; the interaction module is further configured to obtain, from a cloud resource configuration interface, a first specification selected by the tenant and a corresponding first guaranteed time period and first guaranteed quantity, the first specification being one of the plurality of specifications, the first guaranteed time period being a time period in the guaranteed time period corresponding to the first specification, and the first guaranteed quantity being less than or equal to the guaranteed quantity corresponding to the first specification; and a processing module, configured to determine, in a case where the virtual instances with the first specification satisfying the first guaranteed quantity can be provided in the first guaranteed time period, that a first cloud resource satisfying the first specification and the first guaranteed quantity is reserved for the tenant in the first guaranteed time period, wherein the first cloud resource can be used by other tenants in time periods between the first guaranteed time periods of different dates; and the processing module is further configured to create, based on a virtual instance creation request of the tenant, a guaranteed virtual instance satisfying the first specification and the first guaranteed quantity for the tenant by using the first cloud resource in the first guaranteed time period.

[0017] In a possible implementation, the interaction module is further configured to: display, to the tenant, the updated supportable time periods and supportable quantities of each specification in a case that the first supportable quantity of virtual instances with the first specification cannot be provided in the first support time period, and prompt the tenant to reselect the specification and its corresponding support time period and support quantity; and obtain, from the cloud resource configuration interface, a second specification reselected by the tenant and its corresponding second support time period and second support quantity, the second specification being one of the updated multiple specifications, the second support time period being a time period in the supportable time period corresponding to the second specification, and the second support quantity being less than or equal to the supportable quantity corresponding to the second specification; and the processing module is further configured to: reserve, for the tenant, second cloud resources satisfying the second specification and the second support quantity in the second support time period in a case that the second support quantity of virtual instances with the second specification can be provided in the second support time period, wherein the second cloud resources can be used by other tenants in time periods between different dates of the second support time period; and create, for the tenant, support virtual instances satisfying the second specification and the second support quantity based on a virtual instance creation request of the tenant in the second support time period by using the second cloud resources.

[0018] In a possible implementation, the interaction module is further configured to: receive a resource modification request sent by the tenant, and display, to the tenant, the supportable time periods and supportable quantities of each specification based on the resource modification request, the resource modification request being used to indicate modification of the reserved resources of the tenant; obtain, from the cloud resource configuration interface, a third specification modified by the tenant and its corresponding third support time period and third support quantity, the third specification being one of the multiple specifications, the third support time period being a time period in the supportable time period corresponding to the third specification, and the third support quantity being less than or equal to the supportable quantity corresponding to the third specification; and the processing module is further configured to: reserve, for the tenant, third cloud resources satisfying the third specification and the third support quantity in the third support time period in a case that the third support quantity of virtual instances with the third specification can be provided in the third support time period, wherein the third cloud resources can be used by other tenants in time periods between different dates of the third support time period; and create, for the tenant, support virtual instances satisfying the third specification and the third support quantity based on a virtual instance creation request of the tenant in the third support time period by using the third cloud resources.

[0019] In a possible implementation, the interaction module is further configured to: when displaying, to the tenant, the supportable time periods and supportable quantities of each specification, also display specifications and their corresponding support time periods and support quantities that have been purchased by other tenants.

[0020] In a possible implementation, the processing module is further configured to, at the end of the first guarantee time period, recycle the guarantee virtual instance and save or delete information of the guarantee virtual instance; or, at the end of the first guarantee time period, if there is a free cloud resource that can meet the guarantee virtual instance in the cloud resources managed by the cloud management platform, migrate the guarantee virtual instance to the free cloud resource, and if there is no free cloud resource that can meet the guarantee virtual instance in the cloud resources managed by the cloud management platform, recycle the guarantee virtual instance; or, at the end of the first guarantee time period, if no request of using the first cloud resource by another tenant is received, continue to use the first cloud resource to provide the guarantee virtual instance to the tenant, and if a request of using the first cloud resource by another tenant is received, recycle the guarantee virtual instance, where the first cloud resource is reserved for another tenant after the end of the first guarantee time period.

[0021] In a possible implementation, the processing module is further configured to determine a guarantee unit price of the first cloud resource used by the tenant according to a case that the first cloud resource is reserved for another tenant at other time than the first guarantee time period, and charge the tenant for reserving the first cloud resource for the tenant at the first guarantee time period according to the guarantee unit price, where the cost paid by the tenant for the first cloud resource is positively correlated with the guarantee unit price, the first guarantee quantity, and the duration of the first guarantee time period, and the guarantee unit price is negatively correlated with a total amount of the resource in the first cloud resource reserved for another tenant at the other time.

[0022] In a possible implementation, the interaction module is further configured to display, to the tenant, a quantity of the first cloud resource that can meet the first specification and a guarantee time period.

[0023] In a possible implementation, the interaction module is further configured to display, to the tenant, a specification of a virtual instance that needs to be met by the first cloud resource reserved for another tenant at other time than the first guarantee time period, a corresponding quantity, and a guarantee time period, and display, to another tenant, the first cloud resource that can meet the first specification selected by the tenant, a corresponding quantity, and a guarantee time period.

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

[0025] In a fourth aspect, the present application provides a computing device cluster, including a plurality of computing devices, the plurality of computing devices including 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 to cause the computing device cluster to perform the method provided in the first aspect of the present application and any possible implementation thereof.

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

[0027] In a sixth aspect, the present application provides a computer program product comprising instructions which, when executed on a computer, cause the computer to perform the method provided in the first aspect of the present application and any possible implementation manner thereof. BRIEF DESCRIPTION OF DRAWINGS

[0028] Figure 1 is a schematic diagram of tenant using reserved resources provided by an embodiment of the present application;

[0029] Figure 2 is a schematic diagram of tenant using reserved resources after time-sharing multiplexing of cloud resources by the cloud resource guarantee method based on public cloud technology provided by an embodiment of the present application;

[0030] Figure 3 is a structural schematic diagram of an implementation scenario involved in the cloud resource guarantee method based on public cloud technology provided by an embodiment of the present application;

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

[0032] Figure 5 is a flowchart of the cloud resource guarantee method based on public cloud technology provided by an embodiment of the present application;

[0033] Figure 6 is a process schematic diagram of tenant selecting reserved resources provided by an embodiment of the present application;

[0034] Figure 7 is a schematic diagram of a cloud management platform showing a guaranteeable time period and a guaranteeable quantity of each specification to a tenant provided by an embodiment of the present application;

[0035] Figure 8 is a flowchart of another cloud resource guarantee method based on public cloud technology provided by an embodiment of the present application;

[0036] Figure 9 is a schematic diagram of charging for reserved resources provided by an embodiment of the present application;

[0037] Figure 10 is a schematic diagram of performing a de-guarantee operation on cloud resources used by a guaranteed virtual instance after a guarantee time period ends provided by an embodiment of the present application;

[0038] Figure 11 is a flowchart of still another cloud resource guarantee method based on public cloud technology provided by an embodiment of the present application;

[0039] Figure 12 is a flowchart of still another cloud resource guarantee method based on public cloud technology provided by an embodiment of the present application;

[0040] Figure 13 is a schematic diagram of a cloud resource guarantee device based on public cloud technology provided by an embodiment of the present application;

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

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

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

[0044] In order to make the purpose, technical solutions 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.

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

[0046] 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 to provide on-demand services to users. The computing resources and storage resources are provided by a computing device cluster set in a data center. Moreover, cloud computing can provide multiple types of service types for users, such as 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) as a service to customers.

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

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

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

[0050] Virtualization is a resource management technology. Virtualization can abstract and convert various entity resources of a physical machine, such as computing resources, network resources and storage resources, to break the barrier between the entity structures of the physical machine, so that a tenant can apply 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.

[0051] Virtualized resources are usually provided to tenants in the form of virtual instances. A virtual instance can use hardware resources of a host, and run on an operating system of the host. An application runs in the virtual instance, which is used to implement a service of a tenant. Hardware resources of the host can be used by one or more tenants in the granularity of virtual instances. 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 of physical resources can be greatly improved. Generally, a virtual instance can be a virtual machine, a container, or an independent process (for example, a function), etc. A virtual instance can also be referred to as an elastic compute service (ECS) or an elastic instance (different cloud resource providers based on public cloud technology have different names).

[0052] Virtual machine (VM): refers to a complete computer system that is simulated by virtualization technology, has complete hardware system functions, and runs in a completely isolated environment. 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 referred to as 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 devices are virtually obtained based on physical devices that can be shared resources by using virtualization technology. For example, a virtual processor virtually obtained based on a processor by using virtualization technology is a virtual device. For another example, a training card virtually obtained based on a field-programmable gate array (FPGA) by using virtualization technology is also a virtual device. For example, the virtual machine in this application can be a kernel-based virtual machine (KVM). The work that can be completed in a server can also be implemented in a virtual machine. When a virtual machine is created in a server, part of the hard disk and memory capacity of the physical machine are 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 a server. The running environments (such as virtual machine applications, operating systems, and virtual hardware) in different virtual machines are completely isolated, and network packets need to be forwarded by a virtual manager when communication is performed between different virtual machines.

[0053] 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 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 (i.e. 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).

[0054] Resource pooling refers to integrating various computing and storage resources together to form a unified resource pool 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 users according to demand allocation.

[0055] Cloud service providers expect higher resource selling efficiency for cost and benefit considerations, but high resource selling rate increases the risk of resource supply interruption. Currently, to ensure resource continuous supply under high allocation rate, cloud service providers provide resource reservation capability. Tenants purchase reserved resources, and cloud service providers reserve corresponding resources for tenants to ensure resource supply to tenants. Reserved resources can guarantee that tenants have resources available within the reserved period purchased by tenants. Currently, cloud service providers usually reserve resources for tenants in a whole continuous period of time to ensure that tenants have resources available at any time when they need to use resources within the whole continuous period of time. For example, a tenant needs to use resources from 8:00 to 20:00 every day in a year, and the tenant purchases reserved resources for the whole year. The cloud service provider needs to reserve resources for the tenant for the whole year, and these reserved resources cannot be used by other tenants in the whole year, even if the tenant does not need to use these resources in the non-working period of the year. Among them, the capability of cloud service providers to ensure that tenants have resources available within the reserved period through reserved resources is called elastic capacity assurance (CA) provided by cloud service providers for tenants. As shown in FIG. 1, to ensure resource continuous supply, three customers purchase reserved resources, so that the cloud service provider reserves resources indicated by the customers for the three customers. Among them, the cloud service provider reserves 50 servers for customer 1, 60 servers for customer 2, and 40 servers for customer 3. In this way, to ensure that customer 1, customer 2, and customer 3 have resources available, the cloud service provider needs to provide at least 150 servers to ensure reserved resources. Figure 1

[0056] However, because the reserved resources of different users are isolated from each other, the cloud service provider needs to provide more resources to ensure the reserved resources of multiple tenants, which leads to high resource cost of the cloud service provider. Moreover, because the customer needs to bear the guarantee fee of the reserved resources and the purchase fee of the virtual machine, even in the period of time when the customer does not create a virtual machine based on the reserved resources, the customer still needs to pay the guarantee fee. Therefore, if the utilization rate of the reserved resources is low, the customer needs to bear a high guarantee fee.

[0057] ​In view of this, the embodiment of the present application provides a cloud resource guarantee method based on public cloud technology. The method is executed by a cloud management platform. The cloud management platform is used to manage infrastructure providing cloud services. The infrastructure includes a plurality of servers. The servers are used to deploy virtual instances for implementing tenant businesses. The virtual instances that can be provided by the plurality of servers are divided into a plurality of specifications. In the method, the cloud management platform displays, to a tenant, a guaranteeable time period and a guaranteeable quantity of each specification in the plurality of specifications, the guaranteeable time period of any specification being a time period in which the tenant selecting the guaranteeable time period can be guaranteed to use virtual instances of the specification, and the guaranteeable quantity of any specification being a total number of virtual instances of the specification in which the tenant selecting the guaranteeable quantity can be guaranteed to use. After the cloud management platform obtains, from a cloud resource configuration interface, a first specification selected by a tenant and a first guarantee time period and a first guarantee quantity corresponding to the first specification, the cloud management platform determines that, in a case where virtual instances of the first specification in the first guarantee time period can be provided in the first guarantee quantity, the cloud management platform reserves, for the tenant, first cloud resources satisfying the first specification and the first guarantee quantity in the first guarantee time period, and creates, for the tenant, guaranteed virtual instances satisfying the first specification and the first guarantee quantity based on a virtual instance creation request of the tenant in the first guarantee time period by using the first cloud resources. The first cloud resources can be used by other tenants in time periods between the first guarantee time periods of different dates.

[0058] In this way, since the cloud management platform can display, to a tenant, a guaranteeable time period and a guaranteeable quantity of each specification in a plurality of specifications, and the first cloud resources can be used by other tenants in time periods between the first guarantee time periods of different dates, the cloud management platform is equivalent to dividing the guarantee time period in a finer granularity, so that the cloud resources reserved for a certain tenant can be used by other tenants in other time periods between the guarantee time periods of different dates, and time-sharing multiplexing of the reserved resources by a plurality of tenants in a plurality of time periods is realized. In this way, on one hand, the utilization rate of the cloud resources can be improved, and the resource cost of the cloud service provider can be reduced, and on the other hand, the resource guarantee cost that needs to be borne by the tenant can be reduced.

[0059] For example, for the case of using resources by a plurality of customers as shown in FIG. 1, the cloud management platform divides the guaranteeable time period of the cloud resources in a finer granularity by executing the cloud resource guarantee method based on public cloud technology provided by the embodiment of the present application, so that the plurality of customers can realize time-sharing multiplexing of the resources in a plurality of time periods, and the case of reserving resources for the plurality of customers becomes the case as shown in FIG. 2. Figure 1 Figure 2 As shown in FIG. 2, the cloud management platform divides the guarantee time period in a finer granularity, so that the cloud resources reserved for a certain customer can be used by other customers in other time periods between the guarantee time periods of different dates, and time-sharing multiplexing of the reserved resources by a plurality of customers in a plurality of time periods is realized. In this way, on one hand, the utilization rate of the cloud resources can be improved, and the resource cost of the cloud service provider can be reduced, and on the other hand, the resource guarantee cost that needs to be borne by the tenant can be reduced. Figure 2 ​As shown, after customers 1, 2, and 3 time-share resources, the cloud management platform's reserved resources for customers 1, 2, and 3 overlap during periods when customer 2 doesn't use reserved resources. These overlapping resources are used by different customers at different times. For example, between 12:00:00 and 4:00:00, customer 1 requests the reservation of 50 servers, while customer 2 does not. Between 4:01:00 and 8:00:00, customer 2 requests the reservation of 50 servers, while customer 1 does not. The cloud management platform can then select 50 servers and reserve them for customer 1 from 12:00:00 to 4:00:00, and for customer 2 from 4:01:00 to 8:00:00. These 50 servers represent the overlapping resources reserved for customers 1 and 2. The cloud management platform also follows this logic when reserving resources for customers 1, 2, and 3 during other time periods. Therefore, the cloud management platform only needs 80 servers to guarantee resources for customers 1, 2, and 3. This reduces resource guarantee costs for cloud service providers. Furthermore, for customers, resource guarantee costs can be shared among multiple tenants, reducing them.

[0060] This article provides a detailed introduction to the technical solution of this application from multiple perspectives, including implementation scenarios, method flow, hardware devices, and software devices.

[0061] The following first illustrates an implementation scenario of the embodiment of the present application with examples.

[0062] Figure 3 This is a schematic diagram of a cloud service management method according to an embodiment of the present application. Figure 3 As shown, this implementation scenario includes: data center 1 and client 2. Data center 1 and client 2 can establish a communication connection via a network. Optionally, the network can be the Internet or other networks, which are not limited in this embodiment of the application. Tenants can interact with data center 1 through client 2. For example, a tenant can send cloud service requests and other information to data center 1 through client 2. Data center 1 is configured to respond based on the information sent by client 2.

[0063] Data Center 1 is equipped with a large amount of infrastructure owned by cloud resource providers based on public cloud technology, such as computing resources, storage resources, and network resources. For example, computing resources can be computing devices (such as servers) that can provide computing capabilities. Figure 3 As shown, data center 1 includes a cloud management platform and infrastructure ( Figure 3(not shown in the figure). The cloud management platform and the infrastructure are connected through the internal network of the data center. The cloud management platform is used to manage the infrastructure. The infrastructure is used to provide public cloud services. The infrastructure includes multiple servers. Cloud services can be optionally deployed in the server. Cloud services are implemented by running virtual instances, so they are also called virtual instances deployed in the server for implementing tenant services. Tenants can send cloud service requests and related information to the server through the client 2 they use, and the server can process the cloud service requests and related information, and provide cloud services to tenants based on the processed cloud service requests and related information. For example, the cloud management platform can divide the guarantee time periods according to a finer granularity through the cloud service management method provided in the embodiment of the present application, so that the cloud resources reserved for a tenant can be used by other tenants in other time periods between the guarantee time periods on different dates, thereby realizing time-sharing multiplexing of reserved resources by multiple tenants in multiple time periods.

[0064] The cloud management platform can be logically divided into the following functional areas: the tenant console, compute management service, network management service, storage management service, authentication service, and image management service. The tenant console provides an interface or application program interface (API) for interacting 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 images for virtual instances.

[0065] exist Figure 3 In the illustrated implementation scenario, multiple servers are deployed in a data center. The servers consist of a hardware layer and a software layer. The hardware layer comprises the typical server configuration. The hardware layer includes hardware devices such as processors, memory, network cards, disks, and buses. The software layer includes the operating system installed and running on the server. The operating system of a virtual machine is referred to as the host operating system. The host operating system runs a virtual machine manager (also known as a hypervisor). The role of the virtual machine manager is to implement compute virtualization, network virtualization, and storage virtualization for the virtual machines, and to manage the virtual machines.

[0066] 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.

[0067] 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.

[0068] In an implementation manner, as Figure 4As 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 4 The collection of data centers as shown. The computing, network, and storage resources within an AZ are logically divided into multiple clusters.

[0069] 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.

[0070] 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.

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

[0072] It should be understood that the above is an exemplary description of the implementation scenario of the cloud service management method provided by the embodiment of the present application, and does not constitute a limitation on the implementation scenario of the cloud service management method. 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 embodiment of the present application does not make a specific limitation. Moreover, when the cloud service management method provided by the embodiment 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 embodiment of the present application does not make a one-by-one enumeration.

[0073] The implementation process of the method will be described below by taking that the cloud resource guarantee method based on the public cloud technology provided by the embodiment of the present application is applied to a cloud management platform as an example. The cloud management platform is used to manage the infrastructure providing cloud services, and the infrastructure includes a plurality of servers. The servers are used to deploy virtual instances for implementing tenant businesses. The virtual instances that can be provided by the plurality of servers are divided into a plurality of specifications. Figure 5 is a flowchart of the cloud resource guarantee method based on the public cloud technology provided by the embodiment of the present application. As Figure 5 shown, the cloud resource guarantee method based on the public cloud technology includes the following steps:

[0074] In step 501, the cloud management platform displays, to a tenant, a guaranteed time period and a guaranteed number of each specification of a plurality of specifications of virtual instances that can be provided by a server. The guaranteed time period of any specification is a time period during which a tenant selecting the guaranteed time period can be guaranteed to use a virtual instance of the specification. The guaranteed number of any specification is a total number of virtual instances of the specification that a tenant selecting the guaranteed number can be guaranteed to use.

[0075] The virtual instances that can be provided by the servers managed by the cloud management platform are divided into a plurality of specifications. As Figure 6As shown, after the cloud management platform obtains the time period (TP) and the number of guaranteed instances for each of the multiple specifications, the cloud management platform can show the time period and the number of guaranteed instances for each of the multiple specifications to the tenant, so that the tenant can select the required specification and its time period and number of guaranteed instances based on the tenant's selection. The time period of any specification refers to the number of virtual instances satisfying the specification that can be created based on the idle resources of the server within the time period. The number of guaranteed instances corresponding to the time period of any specification refers to the total number of virtual instances satisfying the specification that can be created based on the idle resources of the server within the time period. There are multiple ways to determine the multiple specifications of virtual instances that can be provided by the server, which are exemplarily described below. In one implementation, the multiple specifications are determined according to the business deployment of the cloud service provider by the cloud management platform. For example, according to the business deployment of the cloud service provider, the servers deployed in some availability zones are set to support some specified specifications, and the servers deployed in other availability zones are set to support other specified specifications. In another implementation, the multiple specifications are determined by the cloud management platform based on the maximum utilization of the resources of the server as the target. In addition, the tenant in the present application includes customers using virtual instances in multiple ways. For example, the tenant in the present application includes customers directly using virtual instances and customers purchasing virtual instances through high-level cloud services, which are not limited in the embodiments of the present application.

[0076] In one implementation, the cloud management platform can display a resource interface on the client used by the tenant, and the resource interface displays the time period and the number of guaranteed instances of each of the multiple specifications that can be supported by the servers managed by the cloud management platform. Figure 7 A schematic diagram of a cloud management platform provided by the embodiments of the present application showing the time period and the number of guaranteed instances of each specification to the tenant is shown in FIG. 6. As shown in FIG. 6, the cloud management platform displays the time period and the number of guaranteed instances of each of the multiple specifications to the tenant. Figure 7 As shown, the time period of the specification S6.small.1 is 00:00-02:00, 02:00-04:00 and 04:00-08:00. The number of guaranteed instances in the time period 00:00-02:00 is 20, the number of guaranteed instances in the time period 02:00-04:00 is 50, and the number of guaranteed instances in the time period 04:00-08:00 is 100.

[0077] Optionally, when the cloud management platform displays the time period and the number of guaranteed instances of each specification to the tenant, the cloud management platform also displays the specifications and their corresponding time period and number of guaranteed instances that have been purchased by other tenants. In one possible implementation, when the cloud management platform displays the time period and the number of guaranteed instances of each specification to the tenant, the cloud management platform also displays the time period and the number of guaranteed instances of all specifications whose number of guaranteed instances is not 0 and the specifications and their corresponding time period and number of guaranteed instances that have been purchased by other tenants. For example, as shown in FIG. 7, the cloud management platform displays the time period and the number of guaranteed instances of each specification to the tenant, and also displays the time period and the number of guaranteed instances of the specifications whose number of guaranteed instances is not 0 and the specifications and their corresponding time period and number of guaranteed instances that have been purchased by other tenants. Figure 7Fig. 2 is a schematic diagram of the interface of the cloud management platform, assuming that the other tenant has purchased resources of the specification S6.small.1 in the safeguardable time period 00:00-02:00 in an amount of 40, has purchased resources of the specification S6.small.1 in the safeguardable time period 02:00-04:00 in an amount of 20, and has not purchased resources of the specification S6.small.1 in the safeguardable time period 04:00-08:00. Then the interface of the cloud management platform can display the information that the other tenant has purchased resources of the specification S6.small.1 in the safeguardable time period 00:00-02:00 in an amount of 40 and in the safeguardable time period 02:00-04:00 in an amount of 20. Figure 7 The cloud management platform can also display the information that the other tenant has purchased resources in the safeguardable time period 00:00-02:00 and 02:00-04:00. The display of the information can be similar to the display of the specifications supported by the server, i.e., displayed in the interface by default. Alternatively, the interface can be provided with a viewing option for the information, and the cloud management platform displays the information in the interface only when the tenant clicks the viewing option after selecting a specification. Furthermore, the information can be displayed by specification and by time period. For example, the interface can display a plurality of specifications and a viewing option for the information corresponding to each specification, and the cloud management platform displays the specification that has been purchased by the other tenant and the corresponding safeguardable time period and safeguardable amount when the tenant clicks the viewing option corresponding to the specification. For another example, the interface can display a plurality of time periods and a viewing option for the information corresponding to each time period, and the cloud management platform displays the specification that has been purchased by the other tenant and the corresponding safeguardable amount when the tenant clicks the viewing option corresponding to the time period. When the cloud management platform displays the specification that has been purchased by the other tenant and the corresponding safeguardable time period and safeguardable amount to the tenant, the displayed information can provide a reference for the tenant when the tenant selects a specification, a safeguardable time period, and a safeguardable amount, so that the tenant can decide whether to time-share the corresponding resources with the other tenant.

[0078] In step 502, the cloud management platform obtains a first specification selected by the tenant and the corresponding first safeguardable time period and first safeguardable amount from the cloud resource configuration interface, the first specification being one of the plurality of specifications, the first safeguardable time period being a time period in the safeguardable time period corresponding to the first specification, and the first safeguardable amount being less than or equal to the safeguardable amount corresponding to the first specification.

[0079] For example, the cloud management platform can display the information that the other tenant has purchased resources of the specification S6.small.1 in the safeguardable time period 00:00-02:00 in an amount of 40 and in the safeguardable time period 02:00-04:00 in an amount of 20. Figure 6As shown, when the tenant needs the cloud management platform to reserve resources for it, the tenant can perform a specified operation on a client used by the tenant according to its guarantee appeal, to select a first specification required by the tenant from among multiple specifications of virtual instances that can be provided by the server, and to select a first guarantee period and a first guarantee quantity corresponding to the first specification. In a possible implementation manner, the cloud management platform can provide a cloud resource configuration interface to the tenant, and the tenant can access the cloud resource configuration interface when it needs to select the specification, the guarantee period, and the guarantee quantity of the reserved resources, and perform the selection through the cloud resource configuration interface. After the selection of the tenant is completed, the cloud management platform can obtain the first guarantee period and the first guarantee quantity corresponding to the first specification selected by the tenant through the cloud resource configuration interface. For example, the cloud resource configuration interface is implemented through an application programming interface (API).

[0080] In an implementation manner, when each specification in the multiple specifications and its guarantee period and guarantee quantity are displayed on the client of the tenant, the tenant can select a specification from among the multiple specifications according to its business appeal, possible business performance fluctuation, and its consideration of business cost and other factors, and select the guarantee period and the guarantee quantity of the specification through a selection operation. It should be noted that the tenant can also configure or select other parameters of the reserved resources in the interface for selecting the specification, the guarantee period, and the guarantee quantity, and submit its selection to the cloud management platform after the configuration or selection is completed, so that the cloud management platform obtains the related content configured by the tenant.

[0081] In an implementation manner, when each specification in the multiple specifications and its guarantee period and guarantee quantity are displayed on the client of the tenant, the tenant can select a specification from among the multiple specifications according to its business appeal, possible business performance fluctuation, and its consideration of business cost and other factors, and select the guarantee period and the guarantee quantity of the specification through a selection operation. It should be noted that the tenant can also configure or select other parameters of the reserved resources in the interface for selecting the specification, the guarantee period, and the guarantee quantity, and submit its selection to the cloud management platform after the configuration or selection is completed, so that the cloud management platform obtains the related content configured by the tenant.

[0082] After the cloud management platform obtains the first specification and the first guarantee period and the first guarantee quantity corresponding to the first specification selected by the tenant from the cloud resource configuration interface, the cloud management platform can first determine whether the virtual instance with the first specification and the first guarantee quantity can be provided in the first guarantee period, to determine whether the resources of the cloud management platform can meet the guarantee appeal. Figure 6 As shown, the cloud management platform can first determine whether the virtual instance with the first specification and the first guarantee quantity can be provided in the first guarantee period, to determine whether the resources of the cloud management platform can meet the guarantee appeal. When it is determined that the virtual instance with the first specification and the first guarantee quantity can be provided in the first guarantee period, a guarantee strategy is generated, and the first cloud resource meeting the first specification and the first guarantee quantity is reserved for the tenant in the first guarantee period according to the guarantee strategy. The guarantee strategy is used to indicate the first cloud resource that can meet the guarantee demand of the tenant. The process of reserving the resources for the tenant by the cloud management platform is also referred to as a capacity reservation (CR) process. After the cloud management platform reserves the first cloud resource, the cloud management platform canFigure 6 As shown, the server capable of supporting the specifications and the guaranteed quantity and guaranteed period thereof managed by the cloud management platform also need to be updated according to the reservation result, so as to ensure the accuracy of the server capable of supporting the specifications and the guaranteed quantity and guaranteed period thereof. For example, for the specifications, guaranteed period and guaranteed quantity selected by the tenant, the cloud management platform can subtract the guaranteed quantity selected by the tenant from the guaranteed quantity of the server supporting the specifications selected by the tenant in the guaranteed period when updating the server capable of supporting the specifications and the guaranteed quantity and guaranteed period thereof.

[0083] In a possible implementation, the determination of whether the cloud management platform can provide the first guaranteed quantity of the virtual instances with the first specifications in the first guaranteed period can be achieved by comparing the sum of the guaranteed quantity of the reserved resources selected by the tenant and the guaranteed quantity of the resources determined to be reserved in the first guaranteed period with the total amount of the resources for guarantee in the resource pool managed by the cloud management platform. When the sum of the guaranteed quantity of the reserved resources selected by the tenant and the guaranteed quantity of the resources determined to be reserved in the first guaranteed period is not greater than the total amount of the resources for guarantee in the resource pool managed by the cloud management platform, it is determined that the cloud management platform can provide the first guaranteed quantity of the virtual instances with the first specifications in the first guaranteed period. When the sum of the guaranteed quantity of the reserved resources selected by the tenant and the guaranteed quantity of the resources determined to be reserved in the first guaranteed period is greater than the total amount of the resources for guarantee in the resource pool managed by the cloud management platform, it is determined that the cloud management platform cannot provide the first guaranteed quantity of the virtual instances with the first specifications in the first guaranteed period.

[0084] In the formula, num represents the first guaranteed quantity selected by the tenant ci in the first guaranteed period of the date ti, and the total amount of the resources for guarantee in the resource pool managed by the cloud management platform is the total amount of the resources for guarantee in the resource pool managed by the cloud management platform.

[0085] In the formula, num represents the first guaranteed quantity selected by the tenant ci in the first guaranteed period of the date ti, and the total amount of the resources for guarantee in the resource pool managed by the cloud management platform is the total amount of the resources for guarantee in the resource pool managed by the cloud management platform. Sum of the first guarantee quantity selected by all tenants (including tenant c1 to tenant cn) in the first guarantee period of the guarantee cycle of the first cloud resource at date t1. Max of the x value at each date from date t1 to date tm.

[0086]

[0087] Optionally, after the cloud management platform reserves the first cloud resource satisfying the first specification and the first guarantee quantity for the tenant in the first guarantee period, the cloud management platform can further display the reservation result to the tenant to facilitate informing the tenant of the reservation result. For example, the cloud management platform displays to the tenant the quantity of the first cloud resource that can satisfy the first specification and the guarantee period. Since the cloud management platform reserves the first cloud resource satisfying the first specification and the first guarantee quantity for the tenant in the first guarantee period only when the cloud management platform can provide the first guarantee quantity of virtual instances with the first specification in the first guarantee period, the quantity of the first cloud resource that can satisfy the first specification is the first guarantee quantity selected by the tenant, and the guarantee period of the first cloud resource that can satisfy the first specification is the first guarantee period selected by the tenant. Further, the cloud management platform can further display to the tenant the specification of the virtual instance, the corresponding quantity and guarantee period that the first cloud resource needs to satisfy for other tenants at other times than the first guarantee period. The cloud management platform reserves the specification of the virtual instance, the corresponding quantity and guarantee period that the first cloud resource needs to satisfy for other tenants at other times than the first guarantee period according to the requirements of the other tenants, i.e. the specification is the specification selected by the other tenant, the quantity is the guarantee quantity selected by the other tenant, and the guarantee period is the guarantee period selected by the other tenant. Among them, the guarantee period of the virtual instance that the cloud management platform reserves the first cloud resource to satisfy for other tenants at other times than the first guarantee period is a part of the time or all of the time other than the first guarantee period. Similarly, the cloud management platform can further display to the other tenants the first specification selected by the tenant, the corresponding quantity and guarantee period that the first cloud resource can satisfy.

[0088] Step 504, the cloud management platform creates a guaranteed virtual instance satisfying the first specification and the first guarantee quantity for the tenant based on the virtual instance creation request of the tenant in the first guarantee period by using the first cloud resource.

[0089] After the cloud management platform reserves the first cloud resource for the tenant, if the tenant needs to create a virtual instance based on the first cloud resource within the first guarantee period, the tenant can perform a specified operation on a client used by the tenant to trigger a virtual instance creation request, so that the cloud management platform creates a virtual instance for the tenant under the indication of the virtual instance creation request. In a possible implementation, the cloud management platform can provide a cloud resource configuration interface to the tenant, and the tenant can access the cloud resource configuration interface when the tenant needs to create a virtual instance, select the specification and quantity of the virtual instance to be created in the resource interface through the cloud resource configuration interface, and trigger a virtual instance creation request. The virtual instance creation request carries the specification and quantity of the virtual instance to be created selected by the tenant. After the tenant triggers the virtual instance creation request, the cloud management platform can obtain the virtual instance creation request through the cloud resource configuration interface, obtain the specification and quantity of the virtual instance to be created from the virtual instance creation request, and then create a virtual instance that meets the virtual instance creation request based on the first cloud resource. Since the virtual instance is created based on the first cloud resource reserved for the tenant, the virtual instance is also called a guarantee virtual instance. To ensure that the first cloud resource can meet the guarantee virtual instance, the specification of the guarantee virtual instance needs to match the first specification of the first cloud resource, and the total quantity of the guarantee virtual instance is less than or equal to the first guarantee quantity of the first cloud resource. The specification of the guarantee virtual instance matches the first specification of the first cloud resource, which means that the parameters of the guarantee virtual instance match the first specification. For example, when the first specification indicates multiple parameters (such as computing power, memory size, memory bit width, and memory bandwidth), the multiple parameters allocated by the cloud management platform for the guarantee virtual instance correspond to the multiple parameters indicated by the first specification one by one, and any one of the multiple parameters allocated by the cloud management platform for the guarantee virtual instance is equal to or slightly greater than the corresponding parameter indicated by the first specification. At this time, the specification of the guarantee virtual instance matches the first specification of the first cloud resource.

[0090] Optionally, after the cloud management platform reserves the first cloud resource that meets the first specification and the first guarantee quantity for the tenant in the first guarantee period, some related management operations can also be performed. For example, as shown in Figure 8 The cloud resource guarantee method based on the public cloud technology provided in the application further includes the following steps:

[0091] In step 505, the cloud management platform determines a guarantee unit price of the first cloud resource used by the tenant according to the situation that the first cloud resource is reserved for other tenants at other times outside the first guarantee period, and charges the tenant for reserving the first cloud resource in the first guarantee period according to the guarantee unit price. The cost that the tenant should pay for the first cloud resource is positively related to the guarantee unit price, the first guarantee quantity, and the duration of the first guarantee period, and the guarantee unit price is negatively related to the total amount of the resources in the first cloud resource reserved for other tenants at other times.

[0092] The cost that the tenant should pay for the first cloud resource is the guarantee cost that the tenant pays for reserving the first cloud resource. In the present application, the more the first cloud resource is time-multiplexed, the lower the resource cost that the cloud service provider needs to pay for reserving the resource, and correspondingly, the lower the guarantee unit price of the first cloud resource used by any tenant. For example, when the first cloud resource is not reserved by the cloud management platform for other tenants at other times outside the first guarantee time period, the guarantee unit price of the first cloud resource used by the tenant is the highest, and when the first cloud resource is reserved by the cloud management platform for other tenants at all other times outside the first guarantee time period, the guarantee unit price of the first cloud resource used by the tenant is the lowest. Moreover, the longer the first cloud resource is used by the tenant, the more the first guarantee quantity of the first cloud resource, and the cost that the tenant should pay for the first cloud resource increases accordingly. In one possible implementation, the pricing strategy of the cost that the tenant should pay for the first cloud resource should satisfy: the cost of the first cloud resource is positively correlated with the guarantee unit price of the first cloud resource used by the tenant, the first guarantee quantity, and the duration of the first guarantee time period, and the guarantee unit price of the first cloud resource used by the tenant is negatively correlated with the total amount of the resource in the first cloud resource reserved for other tenants at other times. For example, when the first cloud resource is not reserved by the cloud management platform for other tenants at other times outside the first guarantee time period, the cost that the current tenant should pay for the first cloud resource is equal to the product of the guarantee unit price of the first cloud resource used by the tenant, the first guarantee quantity, and the duration of the first guarantee time period, i.e., the cost A1 that the current tenant should pay for the first cloud resource = the guarantee unit price A11 of the first cloud resource used by the tenant x the first guarantee quantity A12 x the duration A13 of the first guarantee time period. When the first cloud resource is reserved by the cloud management platform for other tenants at other times outside the first guarantee time period, the cost that the current tenant should pay for the first cloud resource can be equal to the cost when the first cloud resource is not reserved by the cloud management platform for other tenants at other times outside the first guarantee time period minus the cost that the other tenants should pay for the first cloud resource. For example, the cost A2 that the current tenant should pay for the first cloud resource = (the guarantee unit price A21 of the first cloud resource used by the tenant x the first guarantee quantity A22 x the duration A23 of the first guarantee time period) - (the guarantee unit price A24 of the first cloud resource used by the other tenants x the guarantee quantity A25 of the first cloud resource used by the other tenants x the duration A26 of the first cloud resource used by the other tenants). Wherein, for the current tenant and the other tenants, the guarantee unit price of the first cloud resource used by the tenant is equal to the guarantee unit price of the first cloud resource used by the other tenants. The cost A2 that the current tenant should pay for the first cloud resource can be simplified to be equal to (the first guarantee quantity A22 x the duration A23 of the first guarantee time period - the guarantee quantity A25 of the first cloud resource used by the other tenants x the duration A26 of the first cloud resource used by the other tenants) x the guarantee unit price A21 of the first cloud resource used by the tenant. As Figure 9As shown, the area of the solid frame M1 can be regarded as the cost of the first cloud resource at other times than the first guarantee period, the area of the solid frame M2 can be regarded as the cost that the other tenants should pay for the first cloud resource, and the cost that the current tenant should pay for the first cloud resource is equivalent to the difference between the area of the solid frame M1 and the area of the solid frame M2.

[0093] Optionally, after the cloud management platform creates the guaranteed virtual instance satisfying the first specification and the first guarantee quantity for the tenant by using the first cloud resource, the cloud management platform can perform the following operations: Figure 8 As shown, the cloud resource guarantee method based on the public cloud technology provided by the application further comprises:

[0094] At step 506, the cloud management platform recycles the guaranteed virtual instance at the end of the first guarantee period and saves or deletes the information of the guaranteed virtual instance, or the cloud management platform migrates the guaranteed virtual instance to the empty cloud resource at the end of the first guarantee period if there is an empty cloud resource that can satisfy the guaranteed virtual instance in the cloud resources managed by the cloud management platform, or the cloud management platform recycles the guaranteed virtual instance if there is no empty cloud resource that can satisfy the guaranteed virtual instance in the cloud resources managed by the cloud management platform, or the cloud management platform continues to use the first cloud resource to provide the guaranteed virtual instance for the tenant if no request of using the first cloud resource from other tenants is received at the end of the first guarantee period, or the cloud management platform recycles the guaranteed virtual instance if a request of using the first cloud resource from other tenants is received at the end of the first guarantee period, wherein the first cloud resource is reserved for other tenants after the end of the first guarantee period.

[0095] Since the first guarantee period is the period in which the tenant requires the first cloud resource to be reserved, the cloud management platform does not need to reserve the first cloud resource for the tenant after the end of the first guarantee period. As shown, Figure 10 If the cloud management platform creates the guaranteed virtual instance for the tenant by using the first cloud resource in the first guarantee period, the cloud management platform needs to perform the de-guarantee operation on the cloud resource used by the guaranteed virtual instance in order to guarantee that other tenants can use the first cloud resource after the end of the first guarantee period. The application embodiment provides the following implementation modes of the de-guarantee operation on the cloud resource used by the guaranteed virtual instance as examples for description:

[0096] In the first implementation, the cloud management platform recycles the guaranteed virtual instance after the first guarantee period ends, and saves or deletes the information of the guaranteed virtual instance. If the information of the guaranteed virtual instance is deleted after the guaranteed virtual instance is recycled, the guaranteed virtual instance needs to go through a complete creation process when it is restarted. If the information of the guaranteed virtual instance is saved after the guaranteed virtual instance is recycled, the guaranteed virtual instance can continue to run based on the saved information according to the previous running progress when it is restarted, without going through a complete creation process. Since this de-protection operation enables the restarted guaranteed virtual instance to continue running based on the saved information according to the previous running progress, this de-protection operation is also called hibernating the guaranteed virtual instance. The first implementation recycles the guaranteed virtual instance immediately after the first guarantee period ends, so the de-protection operation is equivalent to the cloud management platform forcibly recycling the guaranteed virtual instance.

[0097] In the second implementation, the cloud management platform migrates the guaranteed virtual instance to a spare cloud resource if there is a spare cloud resource that can meet the guaranteed virtual instance among the cloud resources managed by the cloud management platform when the first guarantee period ends, and recycles the guaranteed virtual instance if there is no spare cloud resource that can meet the guaranteed virtual instance among the cloud resources managed by the cloud management platform. This de-protection operation is equivalent to migrating the guaranteed virtual instance to a spare cloud resource, so that other tenants can normally use the reserved resources occupied by the guaranteed virtual instance. Of course, when there is no spare cloud resource that can meet the guaranteed virtual instance among the cloud resources managed by the cloud management platform, the cloud management platform does not need to reserve the first cloud resource for the tenant to recycle the guaranteed virtual instance after the first guarantee period ends, and can choose to recycle the guaranteed virtual instance.

[0098] In the third implementation, the cloud management platform continues to use the first cloud resource to provide the guaranteed virtual instance to the tenant if no request to use the first cloud resource from other tenants is received when the first guarantee period ends, and recycles the guaranteed virtual instance if a request to use the first cloud resource from other tenants is received, where the first cloud resource is reserved for other tenants after the first guarantee period ends. The third implementation is equivalent to deciding whether the guaranteed virtual instance continues to use the reserved resource occupied by the guaranteed virtual instance, depending on whether the reserved resource is used by other tenants that also require the reserved resource.

[0099] The above three implementations define the de-protection operation strategy for reserved resources after the guarantee period ends, which can be used to guarantee time-sharing multiplexing of resources by multiple tenants and cross-tenant guarantee periods, and to guarantee that the next tenant can use the reserved resources during its guarantee period.

[0100] According to the foregoing description, after the cloud management platform obtains the first specification selected by the tenant and the first guarantee period and the first guarantee quantity corresponding to the first specification from the cloud resource configuration interface, it first determines whether the first guarantee quantity of virtual instances with the first specification can be provided in the first guarantee period, and reserves the first cloud resource satisfying the first specification and the first guarantee quantity for the tenant in the first guarantee period when it is determined that the first guarantee quantity of virtual instances with the first specification can be provided in the first guarantee period. In contrast, as shown in Figure 6 , the cloud management platform may not be able to provide the first guarantee quantity of virtual instances with the first specification in the first guarantee period. For example, during the process in which the current tenant submits the selected first specification and the first guarantee period and the first guarantee quantity thereof, another tenant may start selecting at the same time or after the current tenant, but the other tenant submits a resource application earlier than the current tenant, and the reserved resources applied by the other tenant conflict with the reserved resources selected by the current tenant, so that the cloud management platform may not be able to provide the first guarantee quantity of virtual instances with the first specification in the first guarantee period. At this time, as shown in Figure 11 , the cloud resource guarantee method based on the public cloud technology provided in the present application further comprises:

[0101] Step 507: When the cloud management platform determines that the first guarantee quantity of virtual instances with the first specification cannot be provided in the first guarantee period, it displays the updated guaranteeable period and guaranteeable quantity of each specification to the tenant and prompts the tenant to reselect the specification and the guarantee period and guarantee quantity corresponding to the specification.

[0102] When the cloud management platform determines that the first guarantee quantity of virtual instances with the first specification cannot be provided in the first guarantee period, the tenant needs to adjust the guarantee demand. For the implementation process of this step 507, please refer to the implementation process of step 501, which will not be described here.

[0103] Step 508: The cloud management platform obtains the second specification reselected by the tenant and the second guarantee period and the second guarantee quantity corresponding to the second specification from the cloud resource configuration interface. The second specification is one of the updated multiple specifications, the second guarantee period is a period in the guaranteeable period corresponding to the second specification, and the second guarantee quantity is less than or equal to the guaranteeable quantity corresponding to the second specification.

[0104] For the implementation process of this step 508, please refer to the implementation process of step 502, which will not be described here.

[0105] Step 509: When the cloud management platform determines that the second guarantee quantity of virtual instances with the second specification can be provided in the second guarantee period, it reserves the second cloud resource satisfying the second specification and the second guarantee quantity for the tenant in the second guarantee period, wherein the period between the second guarantee periods of the second cloud resource on different dates can be used by other tenants.

[0106] The implementation process of this step 509 can be referred to the implementation process of step 503, and details are not described here.

[0107] Step 510, the cloud management platform creates the guaranteed virtual instances meeting the second specification and the second guaranteed quantity for the tenant based on the virtual instance creation request of the tenant in the second guaranteed period by using the second cloud resource.

[0108] The implementation process of this step 510 can be referred to the implementation process of step 504, and details are not described here.

[0109] In some implementation scenarios, after the cloud management platform obtains the first specification selected by the tenant and the first guaranteed period and the first guaranteed quantity corresponding to the first specification from the cloud resource configuration interface, the tenant can also modify one or more of the specification and the guaranteed period and the quantity thereof based on the current resources of the cloud service provider. Correspondingly, the cloud management platform also needs to adjust the strategy for reserving the cloud resources according to the modified requirements. Then, as shown in Figure 12 It is shown that the cloud resource guarantee method based on the public cloud technology provided in the present application further comprises:

[0110] Step 511, the cloud management platform receives the resource modification request sent by the tenant, and displays the guaranteed period and the guaranteed quantity of each specification to the tenant based on the resource modification request, the resource modification request being used to indicate the modification of the reserved resources of the tenant.

[0111] When the tenant needs to modify one or more of the specification and the guaranteed period and the quantity thereof of the reserved resources, the tenant can execute a specified operation on the client used by the tenant to trigger the resource modification request. After receiving the resource modification request, the cloud management platform can display the guaranteed period and the guaranteed quantity of each specification in the multiple specifications of the virtual instances that can be currently provided by the server managed by the tenant to the tenant based on the resource modification request, so as to be selected by the user. In a possible implementation manner, the tenant can trigger the resource modification request by accessing the cloud resource configuration interface. Alternatively, the cloud management platform configures a modification option for the reserved resources of each tenant, and the tenant can trigger the resource modification request when selecting the modification option. The implementation process of this step 511 can be referred to the implementation process of step 501, and details are not described here.

[0112] Step 512, the cloud management platform obtains the third specification modified by the tenant and the third guaranteed period and the third guaranteed quantity corresponding to the third specification from the cloud resource configuration interface, the third specification being one of the multiple specifications, the third guaranteed period being a period in the guaranteed period corresponding to the third specification, and the third guaranteed quantity being less than or equal to the guaranteed quantity corresponding to the third specification.

[0113] After the tenant submits a modification operation on one or more of the specifications of the reserved resources, the guarantee period and the quantity thereof, the cloud management platform can obtain the modified content of the tenant. The implementation process of this step 512 can refer to the implementation process of step 502, and details are not described herein.

[0114] In step 513, the cloud management platform determines that the third guarantee quantity of virtual instances with the third specification can be provided in the third guarantee period, and reserves third cloud resources satisfying the third specification and the third guarantee quantity for the tenant in the third guarantee period, wherein the time period between different dates of the third guarantee period can be used by other tenants.

[0115] The implementation process of this step 513 can refer to the implementation process of step 503, and details are not described herein. It should be noted that after the cloud management platform reserves the third cloud resources satisfying the third specification and the third guarantee quantity for the tenant in the third guarantee period, some related management operations can also be performed, and the implementation manner can refer to step 505. In addition, after the tenant selects the third specification and the corresponding third guarantee period and third guarantee quantity, the cloud management platform can not be able to provide the third guarantee quantity of virtual instances with the third specification in the third guarantee period, and the cloud management platform prompts the tenant to reselect the specification and the corresponding guarantee period and guarantee quantity, and the implementation manner and the corresponding countermeasures can refer to the related content above, and details are not described herein.

[0116] In step 514, the cloud management platform creates a guaranteed virtual instance satisfying the third specification and the third guarantee quantity for the tenant based on the virtual instance creation request of the tenant in the third guarantee period by using the third cloud resources.

[0117] The implementation process of this step 514 can refer to the implementation process of step 504, and details are not described herein. It should be noted that after the third guarantee period ends, the cloud management platform can also perform the de-guarantee operation on the third cloud resources according to the implementation manner of step 506, and the implementation process can refer to the related description in step 506, and details are not described herein.

[0118] It should be noted that the present application is inspired by the guarantee of computing resources of a cloud management platform, and the main idea is to promote the time-sharing reuse of reserved resources by the tenant through the mechanism provided by the cloud management platform, so as to reduce the resource guarantee selling cost of the tenant and the cloud management platform. However, it is not limited to the management of computing resources, but can also be applied to the time-sharing reuse of other types of resources, such as network resources and storage resources that can be shared and allocated. The present application embodiments do not make specific limitations. Moreover, the resources shared by the present application can be general resources or resources with special purposes. For example, the computing resources provided by the present application can be general computing resources or AI computing resources, and the present application embodiments do not make specific limitations. At the same time, in the above description, the cloud management platform provides computing resources to the tenant, and the cloud service used by the tenant is presented in the form of a virtual instance, which is used to illustrate the cloud resource guarantee method based on public cloud technology provided by the present application, and does not exclude that the virtual instance used by the tenant through the cloud resource guarantee method based on public cloud technology of the present application can be realized in the form of basic resources such as virtual machines and containers, and can also be presented in the form of high-level services such as databases. Similarly, the present application does not make specific limitations on the specific classification of other types of resources used by the present application, for example, the storage resource can be a local disk, or a storage disk deployed on a remote node.

[0119] In summary, in the present application, since the cloud management platform can display the guarantee period and the guarantee quantity of each specification in the plurality of specifications to the tenant, and the time period between the first guarantee period of the first cloud resource on different dates can be used by other tenants, the cloud management platform is equivalent to dividing the guarantee period in a finer granularity, so that the cloud resource reserved for a certain tenant can be used by other tenants in other time periods between the guarantee periods on different dates, realizing the time-sharing reuse of the reserved resource by multiple tenants in multiple time periods. This can improve the utilization rate of cloud resources, reduce the resource cost of cloud service providers, and also reduce the resource guarantee cost that the tenant needs to bear.

[0120] It should be noted that the order of the steps of the cloud resource guarantee method based on public cloud technology provided by the present application embodiments can be adjusted appropriately, and the steps can be increased or decreased accordingly. 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 within the protection scope of the present application, therefore, it will not be described again.

[0121] The virtual device of the present application embodiment is illustrated below.

[0122] The cloud resource guarantee method based on public cloud technology of the present application embodiments is introduced above. Corresponding to the above method, the present application embodiments also provide a cloud resource guarantee device based on public cloud technology.Figure 13 is a structural schematic diagram of a cloud resource guarantee device based on public cloud technology provided by an embodiment of the present application. Based on Figure 13 the following multiple components, the Figure 13 the cloud resource guarantee device based on public cloud technology shown can perform all or part of the operations shown in the above Figure 5 , Figure 8 , Figure 11 or Figure 12 . 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 guarantee device based on public cloud technology can be deployed in a cloud management platform. The cloud management platform is used to manage the infrastructure that provides cloud services. The infrastructure includes multiple servers. The servers are used to deploy virtual instances for implementing tenant businesses. The virtual instances that can be provided by the multiple servers are divided into multiple specifications. As Figure 13 shown, the cloud resource guarantee device based on public cloud technology 130 can include:

[0123] The interaction module 1301 is configured to display, for a tenant, a guaranteed time period and a guaranteed quantity of each specification in multiple specifications, the guaranteed time period of any specification being a time period in which a virtual instance of any specification can be guaranteed for a tenant who selects the guaranteed time period, and the guaranteed quantity of any specification being a total number of virtual instances of any specification that can be guaranteed for a tenant who selects the guaranteed quantity.

[0124] The interaction module 1301 is further configured to obtain, from a cloud resource configuration interface, a first specification selected by a tenant and a first guaranteed time period and a first guaranteed quantity corresponding to the first specification, the first specification being one of the multiple specifications, the first guaranteed time period being a time period in the guaranteed time period corresponding to the first specification, and the first guaranteed quantity being less than or equal to the guaranteed quantity corresponding to the first specification.

[0125] The processing module 1302 is configured to determine, in a case where virtual instances with the first specification of the first guaranteed quantity can be provided in the first guaranteed time period, to reserve, for the tenant, first cloud resources satisfying the first specification and the first guaranteed quantity in the first guaranteed time period, wherein a time period between the first guaranteed time periods of different dates of the first cloud resources can be used by other tenants.

[0126] The processing module 1302 is further configured to create, based on a virtual instance creation request of the tenant in the first guaranteed time period, guaranteed virtual instances satisfying the first specification and the first guaranteed quantity for the tenant by using the first cloud resources.

[0127] In a possible implementation, the interaction module 1301 is further configured to, in a case where the first guarantee quantity of the virtual instances with the first specification cannot be provided in the first guarantee period, display an updated guaranteeable period and guaranteeable quantity of each specification to the tenant, and prompt the tenant to reselect a specification and its corresponding guarantee period and guarantee quantity; the interaction module 1301 is further configured to obtain, from the cloud resource configuration interface, a second specification reselected by the tenant and its corresponding second guarantee period and second guarantee quantity, the second specification being one of the updated multiple specifications, the second guarantee period being a period in the guaranteeable period corresponding to the second specification, and the second guarantee quantity being less than or equal to the guaranteeable quantity corresponding to the second specification; and the processing module 1302 is further configured to, in a case where the second guarantee quantity of the virtual instances with the second specification can be provided in the second guarantee period, reserve, for the tenant, second cloud resources satisfying the second specification and the second guarantee quantity in the second guarantee period, wherein the second cloud resources can be used by other tenants in periods between the second guarantee periods on different dates; and the processing module 1302 is further configured to create, based on a virtual instance creation request of the tenant, guaranteed virtual instances satisfying the second specification and the second guarantee quantity for the tenant by using the second cloud resources in the second guarantee period.

[0128] In a possible implementation, the interaction module 1301 is further configured to receive a resource modification request sent by the tenant, and display, based on the resource modification request, the guaranteeable period and guaranteeable quantity of each specification to the tenant, the resource modification request being used to indicate modification of the reserved resources of the tenant; the interaction module 1301 is further configured to obtain, from the cloud resource configuration interface, a third specification modified by the tenant and its corresponding third guarantee period and third guarantee quantity, the third specification being one of the multiple specifications, the third guarantee period being a period in the guaranteeable period corresponding to the third specification, and the third guarantee quantity being less than or equal to the guaranteeable quantity corresponding to the third specification; and the processing module 1302 is further configured to, in a case where the third guarantee quantity of the virtual instances with the third specification can be provided in the third guarantee period, reserve, for the tenant, third cloud resources satisfying the third specification and the third guarantee quantity in the third guarantee period, wherein the third cloud resources can be used by other tenants in periods between the third guarantee periods on different dates; and the processing module 1302 is further configured to create, based on a virtual instance creation request of the tenant, guaranteed virtual instances satisfying the third specification and the third guarantee quantity for the tenant by using the third cloud resources in the third guarantee period.

[0129] In a possible implementation, the interaction module 1301 is further configured to, when displaying the guaranteeable period and guaranteeable quantity of each specification to the tenant, also display specifications and their corresponding guarantee periods and guarantee quantities that have been purchased by other tenants.

[0130] In a possible implementation, the processing module 1302 is further configured to, at the end of the first guarantee time period, reclaim the guarantee virtual instance and save or delete information of the guarantee virtual instance; or, at the end of the first guarantee time period, if there is a free cloud resource that can meet the guarantee virtual instance among cloud resources managed by the cloud management platform, migrate the guarantee virtual instance to the free cloud resource, and if there is no free cloud resource that can meet the guarantee virtual instance among cloud resources managed by the cloud management platform, reclaim the guarantee virtual instance; or, at the end of the first guarantee time period, if no request of using the first cloud resource by another tenant is received, continue to use the first cloud resource to provide the guarantee virtual instance to the tenant, and if a request of using the first cloud resource by another tenant is received, reclaim the guarantee virtual instance, where the first cloud resource is reserved for another tenant after the end of the first guarantee time period.

[0131] In a possible implementation, the processing module 1302 is further configured to determine a guarantee unit price of the first cloud resource used by the tenant according to a case that the first cloud resource is reserved for another tenant at other time than the first guarantee time period, and charge the tenant for reserving the first cloud resource for the tenant at the first guarantee time period according to the guarantee unit price, where the cost that the tenant should pay for the first cloud resource is positively related to the guarantee unit price, the first guarantee quantity, and the duration of the first guarantee time period, and the guarantee unit price is negatively related to a total amount of the first cloud resource reserved for another tenant at other time.

[0132] In a possible implementation, the interaction module 1301 is further configured to display, to the tenant, a quantity of the first cloud resource that can meet the first specification and a guarantee time period.

[0133] In a possible implementation, the interaction module 1301 is further configured to display, to the tenant, a specification of a virtual instance that needs to be met by reserving the first cloud resource for another tenant at other time than the first guarantee time period, a corresponding quantity and guarantee time period of the virtual instance, and display, to another tenant, a specification of the first cloud resource that can meet the first specification selected by the tenant, a corresponding quantity and guarantee time period of the first cloud resource.

[0134] Here, the detailed working processes of the interaction module 1301 and the processing module 1302 are described in the foregoing method embodiments. For example, the interaction module 1301 displays the guaranteed time period and the guaranteed quantity of each specification in the plurality of specifications to the tenant by using the foregoing step 501, and obtains the first specification and the corresponding first guaranteed time period and first guaranteed quantity selected by the tenant from the cloud resource configuration interface by using the foregoing step 502. The processing module 1302 reserves, in the case that the virtual instance with the first specification can provide the first guaranteed quantity in the first guaranteed time period, the first cloud resource satisfying the first specification and the first guaranteed quantity for the tenant in the first guaranteed time period by using the foregoing step 503, and creates, based on the virtual instance creation request of the tenant in the first guaranteed time period, the guaranteed virtual instance satisfying the first specification and the first guaranteed quantity for the tenant by using the first cloud resource by using the foregoing step 504. The embodiments of the present application will not be repeated here.

[0135] The interaction module 1301 and the processing module 1302 can be implemented by software or by hardware. For example, the implementation of the interaction module 1301 is described below. Similarly, the implementation of the processing module 1302 can refer to the implementation of the interaction module 1301.

[0136] As an example of a software functional unit, the interaction module 1301 can include code running on a computing instance. The computing instance can include at least one of a physical host (computing device), a virtual machine, and a container. Further, the computing instance can be one or more. For example, the interaction module 1301 can include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the code can be distributed in the same region, or can be distributed in different regions. Further, the multiple hosts / virtual machines / containers used to run the code can be distributed in the same availability zone (AZ), or can be distributed in different AZs, each AZ including one cloud data center or multiple cloud data centers with similar geographical locations. Generally, one region can include multiple AZs.

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

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

[0139] The plurality of computing devices included in the interaction module 1301 can be distributed in the same region or in different regions. The plurality of computing devices included in the interaction module 1301 can be distributed in the same AZ or in different AZs. Similarly, the plurality of computing devices included in the interaction module 1301 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.

[0140] It should be noted that in other embodiments, any of the interaction module 1301 and the processing module 1302 can be used to perform any step of the cloud resource guarantee method based on the public cloud technology. The steps implemented by the interaction module 1301 and the processing module 1302 can be specified as needed, and the entire function of the cloud resource guarantee device based on the public cloud technology can be implemented by the interaction module 1301 and the processing module 1302 respectively implementing different steps in the cloud resource guarantee method based on the public cloud technology.

[0141] 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.

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

[0143] The present application also provides a computing device 1400. As shown in FIG. 14, the computing device 1400 includes a processor 1401, a memory 1402, and a bus 1403. Figure 14As shown, the computing device 1400 includes a bus 1402, a processor 1404, a memory 1406, and a communication interface 1408. The processor 1404, the memory 1406, and the communication interface 1408 communicate with each other through the bus 1402. The computing device 1400 can be a server or a terminal device. It should be understood that the number of processors and memories in the computing device 1400 is not limited.

[0144] The bus 1402 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 ease of representation, Figure 14 Although only one line is used to represent the bus in the middle, it does not mean that there is only one bus or only one type of bus. The bus 1402 can include a path for transmitting information between various components (e.g., the memory 1406, the processor 1404, the communication interface 1408) of the computing device 1400.

[0145] The processor 1404 can include any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP), etc.

[0146] The memory 1406 can include a volatile memory (e.g., a random access memory (RAM)) and a non-volatile memory (e.g., a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD)).

[0147] The memory 1406 stores executable program code, and the processor 1404 executes the executable program code to respectively implement the functions of the aforementioned interaction module 1501 and the processing module 1502, thereby implementing the method provided in the present application. That is, the memory 1406 has instructions for executing the method provided in the present application.

[0148] The communication interface 1408 enables communication among the computing device 1400 and other devices or communication networks using, for example, but not limited to, a transceiver module such as a network interface card, a Bluetooth® transceiver, and the like.

[0149] Embodiments of the present application also provide 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 notebook computer, or a smart phone.

[0150] As shown in Figure 15 The computing device cluster includes at least one computing device 1400. The memory 1406 in one or more computing devices 1400 in the computing device cluster can store the same instructions for performing the methods provided by the present application.

[0151] In some possible implementations, the memory 1406 in one or more computing devices 1400 in the computing device cluster can also respectively store partial instructions for performing the methods provided by the present application. In other words, the combination of one or more computing devices 1400 can collectively execute the instructions for performing the methods provided by the present application.

[0152] It should be noted that the memory 1406 in different computing devices 1400 in the computing device cluster can store different instructions for respectively performing part of the functions of the apparatus provided by the present application. That is, the instructions stored in the memory 1406 in different computing devices 1400 can implement the functions of one or more of the interaction module 1501 and the processing module 1502.

[0153] In some possible implementations, one or more 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, and the like. Figure 16 A possible implementation is shown. As shown in Figure 16 Two computing devices 1400A and 1400B are connected through a network. Specifically, the communication interface in each computing device is connected to the network. In this type of possible implementation, the memory 1406 in the computing device 1400A stores instructions for performing the functions of the interaction module 1501. Meanwhile, the memory 1406 in the computing device 1400B stores instructions for performing the functions of the processing module 1502.

[0154] Figure 16 The connection mode between the computing device cluster shown can be that the functions implemented by the processing module 1502 are performed by the computing device 1400B, considering that the methods provided by the present application require a large amount of data storage.

[0155] It should be understood that Figure 16 The functions of the computing device 1400A shown in FIG. 14B can also be completed by a plurality of computing devices 1400. Similarly, the functions of the computing device 1400B can also be completed by a plurality of computing devices 1400.

[0156] Embodiments of the present application further provide another computing device cluster. The connection relationship between the computing devices in the computing device cluster can be similar to the connection relationship between the computing devices in the computing device cluster Figure 15 and Figure 16 The connection manner of the computing device cluster. The difference is that the memory 1406 in one or more computing devices 1400 in the computing device cluster can have the same instructions for executing the method provided by the present application.

[0157] In some possible implementation manners, the memory 1406 of one or more computing devices 1400 in the computing device cluster can also respectively have part of the instructions for executing the method provided by the present application. In other words, the combination of one or more computing devices 1400 can collectively execute the instructions for executing the method provided by the present application.

[0158] Embodiments of the present application further provide a computer program product containing instructions. The computer program product can be a software or 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 execute the method provided by the present application.

[0159] Embodiments of the present application further provide a computer readable storage medium. The computer readable storage medium can be any available medium that a 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) and the like. The computer readable storage medium includes instructions instructing the computing device to execute the method provided by the present application, or instructing the computing device to execute the method provided by the present application.

[0160] Those of ordinary skill in the art can understand that all or part of the steps of the above-mentioned embodiments can be completed by hardware, or by a program instructing related hardware, which 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.

[0161] 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 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 code involved in the present application are obtained under sufficient authorization.

[0162] In the embodiments of the present application, the terms "first", "second" and "third" are only used 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.

[0163] In the present application, the term "and / or" is only a description of the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B can mean that A exists alone, A and B exist together, and B exists alone. In addition, the character " / " in this paper generally represents that the front and rear associated objects are a "or" relationship.

[0164] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement for part of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the protection scope of the technical solutions of the embodiments of the present application.

Claims

1. A cloud resource guarantee method based on public cloud technology, characterized in that, The method is performed by a cloud management platform for managing an infrastructure providing cloud services, the infrastructure comprising a plurality of servers for deploying virtual instances for implementing tenant businesses, the virtual instances capable of being provided by the plurality of servers being divided into a plurality of specifications, the method comprising: The cloud management platform displays the guaranteed time period and the guaranteed quantity of each specification in the plurality of specifications to the tenant, the guaranteed time period of any specification being a time period in which the virtual instance of the any specification can be guaranteed for use by a tenant selecting the guaranteed time period, and the guaranteed quantity of the any specification being a total number of virtual instances of the any specification that can be guaranteed for use by a tenant selecting the guaranteed quantity; The cloud management platform obtains, from a cloud resource configuration interface, a first specification selected by the tenant and corresponding first guaranteed time period and first guaranteed quantity, the first specification being one of the plurality of specifications, the first guaranteed time period being a time period in the guaranteed time period corresponding to the first specification, and the first guaranteed quantity being less than or equal to the guaranteed quantity corresponding to the first specification; The cloud management platform determines, in a case where the virtual instances of the first specification of the first guaranteed quantity can be provided in the first guaranteed time period, to reserve, for the tenant, first cloud resources satisfying the first specification and the first guaranteed quantity in the first guaranteed time period, wherein the first cloud resources can be used by other tenants in time periods between the first guaranteed time periods of different dates; The cloud management platform creates, based on a virtual instance creation request of the tenant, guaranteed virtual instances satisfying the first specification and the first guaranteed quantity for the tenant by using the first cloud resources in the first guaranteed time period.

2. The method of claim 1, wherein, The method further comprises: The cloud management platform determines, in a case where the virtual instances of the first specification of the first guaranteed quantity cannot be provided in the first guaranteed time period, to display, to the tenant, updated guaranteed time period and guaranteed quantity of each specification, and to prompt the tenant to reselect a specification and corresponding guaranteed time period and guaranteed quantity; The cloud management platform obtains, from the cloud resource configuration interface, a second specification reselected by the tenant and corresponding second guaranteed time period and second guaranteed quantity, the second specification being one of the updated plurality of specifications, the second guaranteed time period being a time period in the guaranteed time period corresponding to the second specification, and the second guaranteed quantity being less than or equal to the guaranteed quantity corresponding to the second specification; The cloud management platform determines, in a case where the virtual instances of the second specification of the second guaranteed quantity can be provided in the second guaranteed time period, to reserve, for the tenant, second cloud resources satisfying the second specification and the second guaranteed quantity in the second guaranteed time period, wherein the second cloud resources can be used by other tenants in time periods between the second guaranteed time periods of different dates; The cloud management platform creates, based on a virtual instance creation request of the tenant, guaranteed virtual instances satisfying the second specification and the second guaranteed quantity for the tenant by using the second cloud resources in the second guaranteed time period.

3. The method of claim 1 or 2, wherein, After the cloud management platform obtains the first specification selected by the tenant and its corresponding first guarantee time period and first guarantee quantity from the cloud resource configuration interface, the method further comprises: The cloud management platform receives a resource modification request sent by the tenant, and displays the guaranteeable time period and guaranteeable quantity of each specification to the tenant based on the resource modification request, the resource modification request being used to indicate modification of the reserved resources of the tenant; The cloud management platform obtains the third specification modified by the tenant and its corresponding third guarantee time period and third guarantee quantity from the cloud resource configuration interface, the third specification being one of the multiple specifications, the third guarantee time period being a time period in the guaranteeable time period corresponding to the third specification, and the third guarantee quantity being less than or equal to the guaranteeable quantity corresponding to the third specification; The cloud management platform determines to reserve, for the tenant, third cloud resources satisfying the third specification and the third guarantee quantity in the third guarantee time period on the condition that virtual instances with the third specification capable of providing the third guarantee quantity in the third guarantee time period, wherein the time periods between the third guarantee time periods of different days of the third cloud resources can be used by other tenants; The cloud management platform creates, for the tenant, a guaranteed virtual instance satisfying the third specification and the third guarantee quantity based on a virtual instance creation request of the tenant by using the third cloud resources in the third guarantee time period.

4. The method according to any one of claims 1 to 3, characterized in that, The method further comprises: When the cloud management platform displays the guaranteeable time period and guaranteeable quantity of each specification to the tenant, the cloud management platform also displays the specifications that have been purchased by other tenants and their corresponding guarantee time periods and guarantee quantities.

5. The method according to any one of claims 1 to 4, characterized in that, The method further comprises: The cloud management platform recycles the guaranteed virtual instance at the end of the first guarantee time period, and saves or deletes the information of the guaranteed virtual instance; Alternatively, the cloud management platform migrates the guaranteed virtual instance to the empty cloud resources capable of satisfying the guaranteed virtual instance at the end of the first guarantee time period if there are empty cloud resources capable of satisfying the guaranteed virtual instance in the cloud resources managed by the cloud management platform, and recycles the guaranteed virtual instance if there are no empty cloud resources capable of satisfying the guaranteed virtual instance in the cloud resources managed by the cloud management platform; Alternatively, the cloud management platform continues to use the first cloud resources to provide the guaranteed virtual instance to the tenant at the end of the first guarantee time period if no request of using the first cloud resources by other tenants is received, and recycles the guaranteed virtual instance if a request of using the first cloud resources by the other tenants is received, wherein the first cloud resources are reserved for the other tenants after the end of the first guarantee time period.

6. The method of any one of claims 1 to 5, wherein, After the cloud management platform reserves the first cloud resources satisfying the first specification and the first guarantee quantity for the tenant in the first guarantee time period, the method further comprises: The cloud management platform determines a guaranteed unit price of the tenant using the first cloud resource according to a case that the first cloud resource is reserved for other tenants at other time periods outside the first guarantee period, and charges the tenant for reserving the first cloud resource for the tenant at the first guarantee period according to the guaranteed unit price, wherein the cost that the tenant should pay for the first cloud resource is positively correlated with the guaranteed unit price, the first guarantee quantity and the duration of the first guarantee period, and the guaranteed unit price is negatively correlated with the total amount of resources in the first cloud resource reserved for other tenants at the other time periods.

7. The method of any one of claims 1 to 6, wherein, After the cloud management platform reserves the first cloud resource satisfying the first specification and the first guarantee quantity for the tenant at the first guarantee period, the method further comprises: The cloud management platform displays to the tenant that the first cloud resource can satisfy the quantity and guarantee period of the first specification.

8. The method of claim 7, wherein, After the cloud management platform reserves the first cloud resource satisfying the first specification and the first guarantee quantity for the tenant at the first guarantee period, the method further comprises: The cloud management platform displays to the tenant the specification of virtual instances, the corresponding quantity and guarantee period required for reserving the first cloud resource for other tenants at other time periods outside the first guarantee period, and displays to the other tenants that the first cloud resource can satisfy the first specification, the corresponding quantity and guarantee period selected by the tenant.

9. A cloud resource guarantee device based on public cloud technology, characterized in that, The device is deployed in a cloud management platform, the cloud management platform is used for managing infrastructure providing cloud services, the infrastructure includes a plurality of servers, the servers are used for deploying virtual instances for implementing tenant businesses, the virtual instances capable of being provided by the plurality of servers are divided into a plurality of specifications, and the device includes: An interaction module is used for displaying to a tenant a guarantee period and a guarantee quantity of each specification in the plurality of specifications, the guarantee period of any specification is a period capable of guaranteeing that a tenant selecting the guarantee period uses virtual instances of the any specification, and the guarantee quantity of any specification is a total number capable of guaranteeing that a tenant selecting the guarantee quantity uses virtual instances of the any specification; The interaction module is further used for obtaining, from a cloud resource configuration interface, a first specification selected by the tenant and corresponding first guarantee period and first guarantee quantity, the first specification is one of the plurality of specifications, the first guarantee period is a period in the guarantee period corresponding to the first specification, and the first guarantee quantity is less than or equal to the guarantee quantity corresponding to the first specification; A processing module is used for determining, in a case that virtual instances with the first specification satisfying the first guarantee quantity can be provided at the first guarantee period, to reserve, for the tenant, first cloud resources satisfying the first specification and the first guarantee quantity at the first guarantee period, wherein the first cloud resources can be used by other tenants at periods between the first guarantee periods of different dates. The processing module is further configured to create, based on a virtual instance creation request of the tenant, guaranteed virtual instances satisfying the first specification and the first guaranteed quantity for the tenant by using the first cloud resource during the first guaranteed time period. 10.The apparatus of claim 9, wherein, The interaction module is further configured to, in a case that the first guaranteed quantity of virtual instances with the first specification cannot be provided during the first guaranteed time period, display updated guaranteed time periods and guaranteed quantities of each specification to the tenant and prompt the tenant to reselect a specification and corresponding guaranteed time period and guaranteed quantity; The interaction module is further configured to obtain, from the cloud resource configuration interface, a second specification reselected by the tenant and corresponding second guaranteed time period and second guaranteed quantity, the second specification being one of the updated specifications, the second guaranteed time period being a time period in the guaranteed time period corresponding to the second specification, and the second guaranteed quantity being less than or equal to the guaranteed quantity corresponding to the second specification; The processing module is further configured to, in a case that the second guaranteed quantity of virtual instances with the second specification can be provided during the second guaranteed time period, reserve, for the tenant, second cloud resources satisfying the second specification and the second guaranteed quantity during the second guaranteed time period, wherein the second cloud resources can be used by other tenants during time periods between the second guaranteed time periods on different dates; The processing module is further configured to create, based on a virtual instance creation request of the tenant, guaranteed virtual instances satisfying the second specification and the second guaranteed quantity for the tenant by using the second cloud resource during the second guaranteed time period. 11.The apparatus of claim 9 or 10, wherein, The interaction module is further configured to receive a resource modification request sent by the tenant, and display guaranteed time periods and guaranteed quantities of each specification to the tenant based on the resource modification request, the resource modification request being used to indicate modification of the reserved resources of the tenant; The interaction module is further configured to obtain, from the cloud resource configuration interface, a third specification modified by the tenant and corresponding third guaranteed time period and third guaranteed quantity, the third specification being one of the specifications, the third guaranteed time period being a time period in the guaranteed time period corresponding to the third specification, and the third guaranteed quantity being less than or equal to the guaranteed quantity corresponding to the third specification; The processing module is further configured to, in a case that the third guaranteed quantity of virtual instances with the third specification can be provided during the third guaranteed time period, reserve, for the tenant, third cloud resources satisfying the third specification and the third guaranteed quantity during the third guaranteed time period, wherein the third cloud resources can be used by other tenants during time periods between the third guaranteed time periods on different dates; The processing module is further configured to create, based on a virtual instance creation request of the tenant, guaranteed virtual instances satisfying the third specification and the third guaranteed quantity for the tenant by using the third cloud resource during the third guaranteed time period.

12. The apparatus of any of claims 9 to 11, wherein the interaction module is further configured to display, to the tenant, the guaranteed time period and the guaranteed quantity of each specification, and display the specifications and the corresponding guaranteed time period and guaranteed quantity that have been purchased by other tenants.

13. The apparatus of any of claims 9 to 12, wherein the processing module is further configured to, at the end of the first guaranteed time period, recycle the guaranteed virtual instance, and save or delete information of the guaranteed virtual instance.

13. The apparatus of any of claims 9 to 12, wherein the processing module is further configured to, at the end of the first guaranteed time period, recycle the guaranteed virtual instance, and save or delete information of the guaranteed virtual instance.

13. The apparatus of any of claims 9 to 12, wherein the processing module is further configured to, at the end of the first guaranteed time period, if no request of using the first cloud resource by other tenants is received, continue to use the first cloud resource to provide the guaranteed virtual instance to the tenant, and if a request of using the first cloud resource by other tenants is received, recycle the guaranteed virtual instance, wherein the first cloud resource is reserved for the other tenants after the end of the first guaranteed time period.

14. The apparatus of any of claims 9 to 13, wherein the processing module is further configured to determine a guaranteed unit price of the first cloud resource for the tenant according to a case that the first cloud resource is reserved for other tenants at other time periods than the first guaranteed time period, and charge the tenant according to the guaranteed unit price for reserving the first cloud resource for the first guaranteed time period, wherein a total amount of resources in the first cloud resource reserved for other tenants at the other time periods is negatively correlated with the guaranteed unit price.

15. The apparatus of any of claims 9 to 14, wherein the interaction module is further configured to display, to the tenant, that the first cloud resource can satisfy the quantity and the guaranteed time period of the first specification.

16. The apparatus of claim 15, wherein the interaction module is further configured to display, to the tenant, a specification of a virtual instance that needs to be satisfied by the first cloud resource reserved for other tenants at other time periods than the first guaranteed time period, and a corresponding quantity and guaranteed time period of the specification, and display, to the other tenants, that the first cloud resource can satisfy the first specification and a corresponding quantity and guaranteed time period of the first specification selected by the tenant. 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 executing the program instructions to cause the computing device cluster to perform the method of any of claims 1 to 8. ​ ​ ​ ​ 17. A cluster of computing devices, characterized in that, ​ 18. A computer-readable storage medium, characterized in that, comprising program instructions which, when run on a computing device, cause the computing device to perform the method of any of claims 1 to 8.

19. A computer program product comprising instructions, characterized in that, comprising program instructions which, when run on a computing device, cause the computing device to perform the method of any of claims 1 to 8.