Virtual instance setting method and device

By obtaining the tenant's instance configuration information and QoS requirements, and creating virtual instances that meet these requirements, it solves the problem in the existing technology that the QoS of virtual instances cannot be adjusted, and achieves efficient cloud resource utilization and cost reduction.

CN114489922BActive Publication Date: 2025-01-21HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110131904.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-11-12
Filing Date
2021-01-30
Publication Date
2025-01-21
Estimated Expiration
2041-01-30

AI Technical Summary

Technical Problem

In the prior art, the quality of service (QoS) of virtual instances is bound to the instance specifications, and tenants are unable to adjust the QoS of virtual instances according to actual needs, resulting in low resource utilization.

Method used

By obtaining the instance configuration information input by the tenant, the instance specifications and quality of service (QoS) requirements of the virtual instance are determined, and the selling price of the virtual instance is determined based on these requirements. Tenants enter instance creation instructions based on the sales price to create virtual instances that meet instance specifications and QoS requirements.

Benefits of technology

It realizes the on-demand creation of virtual instances to meet the fine-grained needs of tenants, improves the utilization of cloud resources, reduces tenants' usage costs, and decouples the dependence between virtual instance QoS and physical servers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114489922B_ABST
    Figure CN114489922B_ABST
Patent Text Reader

Abstract

The present application discloses a method and device for setting up a virtual instance, a cloud platform, and a storage medium, and belongs to the field of cloud computing technology. The method includes: obtaining instance configuration information input by a tenant to confirm the instance specifications and service quality (Qos) requirements of the virtual instance to be created by the tenant, wherein the Qos requirements are used to indicate the service quality required by the tenant for the virtual instance; determining the selling price of the virtual instance according to the instance specifications and Qos requirements; obtaining the instance creation instructions input by the tenant according to the selling price to create a virtual instance that meets the instance specifications and Qos requirements. The present application can realize on-demand purchase of cloud resources, reduce the cost of tenants using cloud resources, and effectively improve the utilization rate of resources provided by cloud vendors.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This disclosure claims priority to Chinese patent application No. 202011264601.5 filed on November 12, 2020, with invention name “Cloud platform and method for creating an instance thereof”, the entire contents of which are incorporated by reference into this disclosure. Technical Field

[0002] The present application relates to the technical field of cloud computing, and in particular to a virtual instance setting method and device, and a cloud platform. Background Art

[0003] Cloud computing has gained favor from more and more enterprises due to its characteristics of elastic scalability, flexible deployment, high reliability, high security and high cost-effectiveness, and its ecological structure is also constantly expanding and enriching.

[0004] For example, virtual instances are a mainstream product provided by cloud vendors. Virtual instances launched by various cloud vendors usually have instance specifications, which include computing resources, network resources, and storage resources. Computing resources include processor cores and memory resources, network resources include bandwidth resources, and storage resources include storage bandwidth. The quality of service (QoS) corresponding to each instance specification is fixed by the cloud vendor. As long as the tenant selects a specific instance specification to create a virtual instance, the QoS corresponding to the specific instance specification is the QoS of the virtual instance.

[0005] In the prior art, QoS is bound to instance specifications. After a tenant selects an instance specification to create a virtual instance, the QoS of the virtual instance cannot be changed. In some cases, after a tenant selects a specific instance specification to create a virtual instance, the QoS of the created virtual instance may not be able to meet the tenant's needs well, resulting in poor utilization of resources provided by the cloud vendor. Summary of the invention

[0006] The present application provides a virtual instance setting method and device, a cloud platform, and a storage medium. The present application can realize the on-demand creation of virtual instances. The technical solutions provided by the present application are as follows:

[0007] In the first aspect, the present application provides a virtual instance setting method, which is applied to a cloud platform, and the method includes: obtaining instance configuration information input by the tenant to confirm the instance specifications and service quality (Qos) requirements of the virtual instance to be created by the tenant, wherein the Qos requirements are used to indicate the service quality required by the tenant for the virtual instance; determining the selling price of the virtual instance according to the instance specifications and Qos requirements; obtaining the instance creation instructions entered by the tenant according to the selling price to create a virtual instance that meets the instance specifications and Qos requirements.

[0008] By obtaining the instance configuration information input by the tenant to confirm the instance specifications and service quality (Qos) requirements of the virtual instance to be created by the tenant, the selling price of the virtual instance is determined according to the instance specifications and Qos requirements, and the instance creation instructions input by the tenant according to the selling price are obtained to create a virtual instance that meets the instance specifications and Qos requirements, so that the virtual instance can be created according to the instance specifications and Qos requirements input by the tenant, so that the created virtual instance can reflect the actual needs of the tenant in a more fine-grained manner, so that the virtual instance created for the tenant according to the instance configuration information can better meet the needs of the tenant, and can realize on-demand purchase of cloud resources, reduce the cost of tenants using cloud resources, and effectively improve the utilization rate of resources provided by cloud vendors, so that cloud vendors can use limited cloud resources to serve more tenants. In addition, by creating virtual instances according to instance specifications and service quality (Qos) requirements, the decoupling of virtual instance Qos from physical servers can be achieved, reducing the impact of subsequent physical server evolution, reuse and replacement on instance specifications and performance.

[0009] In one implementable manner, the QoS requirements include: a basic QoS requirement and an upper limit QoS requirement for computing resources; the basic QoS requirement for computing resources is the minimum QoS requirement that can be achieved by the virtual instance for the usage of computing resources when the virtual instance is configured with computing resources indicated by the instance specifications; the upper limit QoS requirement for computing resources is used to indicate the maximum QoS requirement that can be achieved by the virtual instance for the usage of computing resources when the virtual instance is configured with computing resources indicated by the instance specifications.

[0010] Optionally, the method also includes: providing a selection range for a basic QoS requirement for computing resources; confirming the basic QoS requirement for computing resources according to a value selected by the tenant within the selection range for the basic QoS requirement for computing resources; providing a selection range for an upper limit QoS requirement for computing resources; confirming the upper limit QoS requirement for computing resources according to a value selected by the tenant within the selection range for the upper limit QoS requirement for computing resources.

[0011] Optionally, the computing resources include processor cores and / or memory.

[0012] In one implementable manner, the QoS requirements include: a basic QoS requirement and an upper limit QoS requirement for network resources; the basic QoS requirement for network resources is the minimum QoS requirement that can be achieved by the virtual instance for the usage of network resources when the virtual instance is configured with the network resources indicated by the instance specifications; the upper limit QoS requirement for network transmission performance is used to indicate the maximum QoS requirement that can be achieved by the virtual instance for the usage of network resources when the virtual instance is configured with the network resources indicated by the instance specifications.

[0013] Optionally, the method also includes: providing a selection range for basic QoS requirements of network resources; confirming the basic QoS requirements of network resources according to the value selected by the tenant within the selection range for the basic QoS requirements of network resources; providing a selection range for upper limit QoS requirements of network resources; confirming the upper limit QoS requirements of network resources according to the value selected by the tenant within the selection range for the upper limit QoS requirements of network resources.

[0014] Optionally, the network resources include network bandwidth or the number of packets sent per second (PPS).

[0015] In one implementable manner, the QoS requirements include: a basic QoS requirement and an upper limit QoS requirement for storage resources; the basic QoS requirement for storage resources is the minimum QoS requirement that can be achieved by the virtual instance for the usage of storage resources when the virtual instance is configured with storage resources indicated by the instance specifications; the upper limit QoS requirement for storage resources is the maximum QoS requirement that can be achieved by the virtual instance for the usage of storage resources when the virtual instance is configured with storage resources indicated by the instance specifications.

[0016] Optionally, the method also includes: providing a selection range for a basic QoS requirement for storage resources; confirming the basic QoS requirement for storage resources according to a value selected by the tenant within the selection range for the basic QoS requirement for storage resources; providing a selection range for an upper limit QoS requirement for storage resources; confirming the upper limit QoS requirement for storage resources according to a value selected by the tenant within the selection range for the upper limit QoS requirement for storage resources.

[0017] Optionally, the storage resources include storage bandwidth and / or the number of read / write operations per second (IOPS).

[0018] Among them, obtaining the instance creation instruction input by the tenant according to the selling price to create a virtual instance that meets the instance specifications and QoS requirements, includes: selecting a first physical server from multiple physical servers in the cloud data center, the idle hardware resources of the first physical server can provide instance specifications and meet QoS requirements; creating a virtual instance on the first physical server, wherein the reserved hardware resources in the idle hardware resources of the first physical server are allocated to the virtual instance, and the reserved hardware resources meet the instance specifications and QoS requirements.

[0019] In one achievable manner, the first physical server satisfies at least the following conditions: Condition 1: Any hardware resource of the first physical server can simultaneously meet the basic QoS requirements of all virtual instances created on the first physical server and the basic QoS requirements of virtual instances to be created. Condition 2: For any hardware resource of the first physical server, the sum of the upper limit QoS requirements of all virtual instances created on the first physical server and the upper limit QoS requirements of virtual instances to be created is less than or equal to the sum of the upper limit QoS requirements of virtual instances created on other candidate physical servers and the upper limit QoS requirements of virtual instances to be created.

[0020] By selecting a physical server according to the first condition, it can be ensured that when resource competition occurs for all virtual instances on the physical server, the physical server can guarantee the basic performance of all virtual instances on the physical server and guarantee the service level agreement of the virtual instances.

[0021] By selecting the first physical server according to the second condition, load balancing of physical servers can be achieved under the premise of ensuring basic performance, and the probability of competing for resources on each physical server can be controlled to be as average as possible, and the probability of competing for resources between virtual instances in the physical server can be reduced as much as possible, so that each virtual instance has the highest possible probability of reaching the upper limit QoS requirement, which can ensure the full utilization of cloud computing environment resources and improve cluster resource utilization.

[0022] Optionally, the method also includes: obtaining an update QoS requirement input by the tenant, wherein the update QoS requirement is used to indicate the update service quality required by the tenant for the virtual instance; selecting a second physical server from multiple physical servers in the cloud data center, the idle hardware resources of the second physical server can provide instance specifications and meet the update QoS requirement; and migrating the virtual instance from the first physical server to the second physical server.

[0023] After completing the creation of the virtual instance, by updating the QoS requirements of the virtual instance according to business needs and migrating the virtual instance according to the updated QoS requirements, resources can be allocated to the virtual instance according to business needs, fully utilizing the resources of the physical server and saving tenants the cost of using cloud resources.

[0024] In one implementable embodiment, the method further includes: providing a first option, the first option being used to indicate that the tenant chooses to restart the virtual instance when updating the Qos; when the tenant chooses to restart the virtual instance when updating the Qos, stopping running the virtual instance on the first physical server, migrating the virtual instance from the first physical server to the second physical server, and running the virtual instance on the second physical server.

[0025] In another possible implementation, the method further includes: providing a second option, the second option being used to indicate that the tenant chooses not to restart the virtual instance when updating the Qos; and when the tenant chooses not to restart the virtual instance when updating the Qos, migrating the virtual instance online from the first physical server to the second physical server.

[0026] Optionally, the method further includes: deducting fees from the tenant's account for logging into the cloud platform according to the selling price. For example, the cloud platform may deduct fees according to the selling price after the virtual instance is created. Alternatively, the cloud platform may deduct fees according to the selling price when requesting to create a virtual instance.

[0027] In the second aspect, the present application provides a virtual instance setting device, which includes: an acquisition module, used to obtain instance configuration information input by the tenant to confirm the instance specifications and service quality (Qos) requirements of the virtual instance to be created by the tenant, wherein the Qos requirements are used to indicate the service quality required by the tenant for the virtual instance; a determination module, used to determine the selling price of the virtual instance according to the instance specifications and Qos requirements; a creation module, used to obtain the instance creation instructions entered by the tenant according to the selling price to create a virtual instance that meets the instance specifications and Qos requirements.

[0028] Optionally, the QoS requirements include: a basic QoS requirement and an upper limit QoS requirement for computing resources; the basic QoS requirement for computing resources is the minimum QoS requirement that can be achieved by the virtual instance for the usage of computing resources when the virtual instance is configured with computing resources indicated by the instance specifications; the upper limit QoS requirement for computing resources is used to indicate the maximum QoS requirement that can be achieved by the virtual instance for the usage of computing resources when the virtual instance is configured with computing resources indicated by the instance specifications.

[0029] Optionally, the device also includes: a providing module for providing a selection range of basic QoS requirements for computing resources; an obtaining module for confirming the basic QoS requirements for computing resources based on a numerical value selected by the tenant within the selection range of the basic QoS requirements for computing resources; a providing module for providing a selection range of upper limit QoS requirements for computing resources; and an obtaining module for confirming the upper limit QoS requirements for computing resources based on a numerical value selected by the tenant within the selection range of the upper limit QoS requirements for computing resources.

[0030] Optionally, the computing resources include processor cores and / or memory.

[0031] Optionally, the QoS requirements include: a basic QoS requirement and an upper limit QoS requirement for network resources; the basic QoS requirement for network resources is the minimum QoS requirement that can be achieved by the virtual instance for the usage of network resources when the virtual instance is configured with the network resources indicated by the instance specifications; the upper limit QoS requirement for network transmission performance is used to indicate the maximum QoS requirement that can be achieved by the virtual instance for the usage of network resources when the virtual instance is configured with the network resources indicated by the instance specifications.

[0032] Optionally, the device also includes: a providing module for providing a selection range of basic QoS requirements for network resources; an obtaining module for confirming the basic QoS requirements for network resources based on a numerical value selected by the tenant within the selection range of the basic QoS requirements for network resources; a providing module for providing a selection range of upper limit QoS requirements for network resources; and an obtaining module for confirming the upper limit QoS requirements for network resources based on a numerical value selected by the tenant within the selection range of the upper limit QoS requirements for network resources.

[0033] Optionally, the network resources include network bandwidth or the number of packets sent per second (PPS).

[0034] Optionally, the QoS requirements include: a basic QoS requirement and an upper limit QoS requirement for storage resources; the basic QoS requirement for storage resources is the minimum QoS requirement that can be achieved by the virtual instance for the usage of storage resources when the virtual instance is configured with storage resources indicated by the instance specifications; the upper limit QoS requirement for storage resources is the maximum QoS requirement that can be achieved by the virtual instance for the usage of storage resources when the virtual instance is configured with storage resources indicated by the instance specifications.

[0035] Optionally, the device also includes: a providing module for providing a selection range of basic QoS requirements for storage resources; an obtaining module for confirming the basic QoS requirements for storage resources based on a numerical value selected by the tenant within the selection range of the basic QoS requirements for storage resources; a providing module for providing a selection range of upper limit QoS requirements for storage resources; and an obtaining module for confirming the upper limit QoS requirements for storage resources based on a numerical value selected by the tenant within the selection range of the upper limit QoS requirements for storage resources.

[0036] Optionally, the storage resources include storage bandwidth and / or the number of read / write operations per second (IOPS).

[0037] Optionally, a creation module is specifically used to: select a first physical server from multiple physical servers in the cloud data center, the idle hardware resources of the first physical server can provide instance specifications and meet Qos requirements; create a virtual instance on the first physical server, wherein reserved hardware resources among the idle hardware resources of the first physical server are allocated to the virtual instance, and the reserved hardware resources meet the instance specifications and Qos requirements.

[0038] Optionally, the device also includes: an acquisition module, used to obtain an update QoS requirement input by the tenant, wherein the update QoS requirement is used to indicate the update service quality required by the tenant for the virtual instance; a migration module, used to select a second physical server from multiple physical servers in the cloud data center, the idle hardware resources of the second physical server can provide instance specifications and meet the update QoS requirement; and a migration module, used to migrate the virtual instance from the first physical server to the second physical server.

[0039] Optionally, the device also includes: a providing module for providing a first option, the first option being used to instruct the tenant to choose to restart the virtual instance when updating the Qos; a migration module, specifically used to stop running the virtual instance on the first physical server, migrate the virtual instance from the first physical server to the second physical server, and run the virtual instance on the second physical server when the tenant chooses to restart the virtual instance when updating the Qos.

[0040] Optionally, the device also includes: a providing module for providing a second option, the second option being used to indicate that the tenant chooses not to restart the virtual instance when updating the Qos; a migration module, specifically used to migrate the virtual instance from the first physical server to the second physical server online when the tenant chooses not to restart the virtual instance when updating the Qos.

[0041] Optionally, the device also includes: an operation and maintenance module, used to deduct fees from the tenant's account for logging into the cloud platform according to the selling price.

[0042] In a third aspect, the present application provides a cloud platform, including a memory and a processor, the memory storing program instructions, and the processor running the program instructions to execute the method provided in the first aspect of the present application and any possible implementation thereof.

[0043] In a fourth 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 includes program instructions. When the program instructions are executed on a computer device, the computer device executes the method provided in the first aspect of the present application and any possible implementation thereof.

[0044] In a fifth aspect, the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the method provided in the first aspect of the present application and any possible implementation thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 It is a schematic diagram of an application scenario involved in a virtual instance setting method provided in an embodiment of the present application;

[0046] Figure 2 is a flow chart of a virtual instance setting method provided in an embodiment of the present application;

[0047] Figure 3 It is a schematic diagram of selecting an example specification provided in an embodiment of the present application;

[0048] Figure 4 It is a schematic diagram of selecting a QoS requirement provided in an embodiment of the present application;

[0049] Figure 5 It is a flow chart of a method for creating a virtual instance provided in an embodiment of the present application;

[0050] Figure 6 It is a schematic diagram of a principle of selecting a first physical server provided in an embodiment of the present application;

[0051] Figure 7 is a flow chart of a method for migrating a virtual instance provided in an embodiment of the present application;

[0052] Figure 8 It is a schematic diagram of the principle of migrating a virtual instance provided in an embodiment of the present application;

[0053] Fig. 9 It is a schematic diagram of another principle of migrating a virtual instance provided in an embodiment of the present application;

[0054] Fig.10 It is a structural schematic diagram of a virtual instance setting device provided in an embodiment of the present application;

[0055] Fig.11 is a structural schematic diagram of another virtual instance setting device provided in an embodiment of the present application;

[0056] Fig.12 It is a structural diagram of a cloud platform provided in an embodiment of the present application. DETAILED DESCRIPTION

[0057] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.

[0058] To facilitate understanding, some concepts involved in the embodiments of the present application are explained below.

[0059] Virtual instance: A virtual instance runs on the operating system of a physical server, and the virtual instance itself is equipped with an operating system. The operating system of the virtual instance also runs an application. The virtual instance can use the hardware resources of the physical server. Different virtual instances are isolated from each other. Specific application instances are, for example, virtual machines or containers.

[0060] Basic performance: refers to the performance that a virtual instance can achieve at any time, and is the minimum guarantee of the performance of a virtual instance. For example, the basic network bandwidth of a virtual instance is the bandwidth reserved by the host for the virtual instance, and the network bandwidth that the virtual instance can use can reach the basic network bandwidth at any time.

[0061] Maximum performance: is the burst upper limit of the performance that a virtual instance can achieve. When some virtual instances on a host with multiple virtual instances are deployed and do not occupy their own basic performance, the resources used to provide the unoccupied basic performance can be shared by other virtual instances. Through sharing, the performance of the virtual instance can be higher than the basic performance. The upper limit of the performance that is higher than the basic performance is the maximum performance of the virtual instance. Since each virtual instance does not maintain a high load at all times, the resources of the physical server will be relatively idle, making it possible for the performance of the virtual instance to reach the maximum performance. However, the maximum performance is not guaranteed at all times. Once there is competition in the load of other virtual instances, the host will give priority to guaranteeing the basic performance of each virtual instance. At this time, the maximum performance of the virtual instance cannot be guaranteed.

[0062] Quality of service (QoS): basic quality of service and upper limit quality of service.

[0063] Basic service quality: Virtual instances run in physical servers, which can allocate resources to virtual instances of specific instance specifications. For example, for a virtual instance with an instance specification of 4U, the physical server can allocate 4 processor cores to the virtual instance. However, the physical server does not guarantee that the virtual instance can 100% exclusively occupy the 4 processor cores at any time. Only when the basic QOS for computing resources is 100% can the physical server guarantee that the virtual instance can 100% occupy the 4 processor cores under any circumstances.

[0064] When the basic QOS for computing resources is 50%, and the physical server resources are limited (such as other virtual instances competing for resources), the physical server can only ensure that the virtual instance can occupy 50% of the computing power of each of the four processor cores.

[0065] Upper limit service quality: virtual instances run in physical servers, and the physical server can allocate resources to virtual instances of specific instance specifications. When some virtual instances in the physical server do not occupy the resources indicated by their own basic service quality, other virtual instances on the physical server can use the unoccupied resources, so that the service quality of the other virtual instances can exceed the basic service quality, and the upper limit of the basic service quality that can be exceeded is the upper limit service quality of the virtual instance. For example, for a virtual instance with an instance specification of 4U, the physical server can allocate 4 processor cores to the virtual instance. When the basic QOS of the virtual instance for computing resources is 50%, the physical server can occupy 50% of the 4 processor cores in any case. Assuming that the upper limit QOS of the virtual instance for computing resources is 100%, when some virtual instances in the physical server do not occupy the computing resources indicated by their own basic service quality, by occupying the unoccupied computing resources, the computing resources that the virtual instance can occupy exceed 50% of the computing power of each of the 4 processor cores, and the upper limit of the computing resources that the virtual instance can occupy is 100% of the computing power of each of the 4 processor cores.

[0066] The above description uses the instance specification as a computing resource as an example, and the instance specification can also include network resources and storage resources. The basic QOS usage of network resources and storage resources is similar to the above, and will not be repeated here.

[0067] When defining basic performance for virtual instances, each cloud vendor needs to ensure that the sum of basic performance of all virtual instances on the physical server under the same performance does not exceed the maximum capacity of the performance that the physical server can provide, so as to ensure that the basic performance of each virtual instance can be achieved at any time. Each vendor usually determines the basic performance of each virtual processor based on the number of available virtual processors (vCPU) on the physical server, and determines the basic performance of each virtual instance based on the number of virtual processors included in each virtual instance. For example, if the maximum network bandwidth of a physical server is 20 gigabits per second (Gbps), and the total number of virtual processors that can be issued is 40, then the baseline network bandwidth of each virtual processor is 20Gbps / 40=0.5Gbps, then the baseline network bandwidth of a virtual instance with 4 virtual processors is 4×0.5=2Gbps, and the baseline network bandwidth of a virtual instance with 16 virtual processors is 16×0.5=8Gbps. The maximum performance of a virtual instance is generally defined according to the competitiveness of each vendor, and it cannot exceed the maximum performance that the physical server can provide. For example, the maximum network bandwidth of a virtual instance is usually 1-3 times the basic network bandwidth, and the network bandwidth of a physical server is at least 1-3 times the network bandwidth. The maximum storage bandwidth of a virtual instance is usually 2-10 times the basic storage bandwidth, and the storage bandwidth of a physical server is at least 2-10 times the storage bandwidth. The multiple relationship between the maximum performance and the basic performance can be determined based on competitiveness and resource competition.

[0068] Since the maximum performance can only be achieved when the resources of a physical server are relatively idle, cloud vendors use "points" to limit the time it takes for each virtual instance to reach maximum performance, in order to control the competition for idle resources among virtual instances on the same physical server, thereby reducing the probability of conflicts when virtual instances compete for idle resources. The shorter the time it takes for a virtual instance to reach maximum performance, the lower the probability of a conflict. When the resource utilization of a virtual instance is lower than the basic performance, the virtual instance will accumulate points based on the time it is lower than the basic performance. And when idle resources appear on the physical server, the performance of the virtual instance can reach maximum performance until the accumulated points of the virtual instance are consumed.

[0069] At present, the virtual instances launched by various cloud vendors usually have certain specifications, which are divided according to the computing resources, network transmission performance and storage performance capabilities of the physical server. Virtual instances of different specifications can achieve different QoS capabilities. When tenants need to use virtual instances, they can directly select virtual instances that meet their needs from the virtual instances planned by the cloud vendor.

[0070] However, the specifications planned by cloud vendors usually cannot meet the needs of tenants well. At the same time, since users may not fully utilize the resources they apply for, the utilization rate of the resources provided by cloud vendors is also poor.

[0071] The embodiment of the present application provides a method for setting up a virtual instance, which obtains instance configuration information input by a tenant to confirm the instance specifications and service quality (QoS) requirements of the virtual instance to be created by the tenant, determines the selling price of the virtual instance according to the instance specifications and QoS requirements, obtains the instance creation instruction input by the tenant according to the selling price to create a virtual instance that meets the instance specifications and QoS requirements, thereby being able to create a virtual instance according to the instance specifications and QoS requirements input by the tenant, so that the created virtual instance can reflect the actual needs of the tenant in a more fine-grained manner, can realize on-demand purchase of cloud resources, reduce the cost of tenants using cloud resources, and effectively improve the utilization rate of resources provided by cloud vendors, so that cloud vendors can use limited cloud resources to serve more tenants. Among them, the QoS requirement is used to indicate the service quality required by the tenant for the virtual instance.

[0072] Figure 1 Schematic diagram of an implementation scenario involved in a virtual instance setting method provided in an embodiment of the present application. Figure 1 As shown, the implementation scenario includes: a cloud data center 10 and a terminal 20. The cloud data center 10 and the terminal 20 can communicate.

[0073] The cloud data center 10 includes cloud resources and a cloud platform. Cloud resources include a large number of basic resources owned by a cloud service provider. Basic resources may be computing resources, storage resources, and network resources, etc. And computing resources may be a large number of computing devices (such as servers). The cloud platform can utilize the deployed basic resources or the resources virtualized from the basic resources to implement the tenant's business and provide cloud services to the tenant. Among them, the tenant's business includes software application business created according to the tenant's business needs, etc. For example: the tenant's business includes language recognition services, video review services, or image rendering services created according to the tenant's business needs, etc. In addition, the cloud platform may be a cloud platform of a central cloud, a cloud platform of an edge cloud, or a cloud platform including a central cloud and an edge cloud, and the embodiments of the present application do not specifically limit it.

[0074] Tenants can access the cloud data center 10 through the terminal 20, and perform relevant processing on cloud resources through the cloud data center 10. For example, the cloud platform can provide a configuration interface to the tenant, and the tenant can enter instance configuration information for the virtual instance in the configuration interface through the terminal 20. The cloud platform can confirm the instance specifications and service quality QoS requirements of the virtual instance to be created by the tenant based on the instance configuration information, and create a virtual instance that meets the instance specifications and QoS requirements for the tenant. Among them, the QoS requirement is used to indicate the service quality required by the tenant for the virtual instance.

[0075] The cloud platform can be implemented by software or hardware. In one implementable manner, the cloud platform can be implemented by hardware such as a physical server. For example, the cloud platform can be implemented by a physical server, or a physical server cluster composed of several physical servers, or a cloud computing service center. In another implementation, the cloud platform can be implemented by software deployed on computing resources, and the software is used to implement the virtual instance setting method provided in the embodiment of the present application. For example, the cloud platform can be implemented by a virtual machine or container simulated by software on the basic resources. In addition, the cloud platform can be implemented by independently deployed resources, or by distributed deployed resources. For example, the software for implementing the cloud platform can be independently deployed on a server, virtual machine or container in the cloud platform, or the software for implementing the cloud platform can be distributedly deployed on multiple servers in the cloud platform, or the software for implementing the cloud platform can be distributedly deployed on multiple virtual machines in the cloud platform, or the software for implementing the cloud platform can be distributedly deployed in multiple containers in the cloud platform, or the software for implementing the cloud platform can be distributedly deployed in multiple servers, multiple virtual machines and multiple containers in the cloud platform.

[0076] The terminal 20 may be a desktop computer, a laptop computer, a mobile phone, a smart phone, a tablet computer, a multimedia player, a smart home appliance, an artificial intelligence device, a smart wearable device, an e-reader, a smart vehicle-mounted device, or an Internet of Things device.

[0077] The following describes the implementation process of the virtual instance setting method provided in the embodiment of the present application. Figure 2 As shown, the implementation process of the virtual instance setting method may include the following steps:

[0078] Step 201: The cloud platform provides a configuration interface for tenants to input instance configuration information.

[0079] The instance configuration information is used to indicate the instance specifications and service quality (Qos) requirements of the virtual instance, wherein the Qos requirements are used to indicate the service quality required by the tenant for the virtual instance. The instance specifications include the specifications of the various resources required for the virtual instance. For example, the resources required for the virtual instance include one or more of the following: computing resources, network resources, and storage resources. Optionally, computing resources include processor cores and / or memory. Network resources include network bandwidth, the number of packets sent per second (packet persecond, PPS) and / or the total number of links between the virtual instance and other virtual instances. Storage resources include storage bandwidth and / or the number of read / write operations performed per second (input / output operation per second, IOPS).

[0080] In an implementable manner, the QoS requirements include: basic QoS requirements and upper limit QoS requirements of various resources required by the virtual instance. For example, the QoS requirements include one or more of the following: basic QoS requirements of computing resources, upper limit QoS requirements of computing resources, basic QoS requirements of network resources, upper limit QoS requirements of network resources, basic QoS requirements of storage resources, and upper limit QoS requirements of storage resources.

[0081] The basic QoS requirement of computing resources is the minimum QoS requirement that a virtual instance can achieve for the usage of computing resources when the virtual instance is configured with computing resources indicated by the instance specifications. The upper limit QoS requirement of computing resources is used to indicate the maximum QoS requirement that a virtual instance can achieve for the usage of computing resources when the virtual instance is configured with computing resources indicated by the instance specifications. The basic QoS requirement of network resources is the minimum QoS requirement that a virtual instance can achieve for the usage of network resources when the virtual instance is configured with network resources indicated by the instance specifications. The upper limit QoS requirement of network transmission performance is used to indicate the maximum QoS requirement that a virtual instance can achieve for the usage of network resources when the virtual instance is configured with network resources indicated by the instance specifications. The basic QoS requirement of storage resources is the minimum QoS requirement that a virtual instance can achieve for the usage of storage resources when the virtual instance is configured with storage resources indicated by the instance specifications. The upper limit QoS requirement of storage resources is the maximum QoS requirement that a virtual instance can achieve for the usage of storage resources when the virtual instance is configured with storage resources indicated by the instance specifications. The usage of resources can be represented by the utilization rate of resources by virtual instances.

[0082] Since the instance configuration information is used to indicate the instance specifications and service quality Qos requirements of the virtual instance, the cloud platform provides a configuration interface that may include: the cloud platform provides a configuration interface for tenants to input the instance specifications, and the cloud platform provides a configuration interface for tenants to input the Qos requirements. Optionally, there are multiple ways to implement the cloud platform to provide the configuration interface. For example, the cloud platform can provide the configuration interface through an application programming interface (API), an interactive template, and a configuration interface. Among them, the interactive template is a template provided by the cloud platform to the tenant for implementing different functions. When a tenant needs to use a certain function, the tenant can download a template for implementing the function, add relevant information of the tenant to the template, and then feed back the template with the relevant information of the tenant to the cloud platform. After receiving the template with the relevant information of the tenant, the cloud platform can obtain the function that the template needs to implement and customize the function according to the information of the tenant. The configuration interface means that the tenant can operate in the configuration interface to indicate the function that the tenant needs to implement.

[0083] Corresponding to the implementation method through the configuration interface, the cloud platform provides a configuration interface for tenants to input the instance specifications, and the cloud platform provides a configuration interface for tenants to input the Qos requirements, which can be displayed through two levels of pages. The primary page is used to provide a configuration interface for tenants to input the instance specifications, and the secondary page is used to provide a configuration interface for tenants to input the Qos requirements. The secondary page is displayed after the tenant selects the instance specification in the primary page, and the secondary page displays the Qos requirements corresponding to the instance specification selected in the primary page.

[0084] In addition, when managing cloud resources, the cloud platform can bind instance specifications with basic QoS capabilities and upper QoS capabilities, and the basic QoS capabilities and upper QoS capabilities corresponding to each instance specification can float within a certain range, that is, when a user selects a certain instance specification, the selection range of the basic QoS requirements and the selection range of the upper QoS requirements of the resources required by the virtual instance are determined. Therefore, the cloud platform provides a configuration interface for tenants to input QoS requirements, including: providing a selection range of basic QoS requirements for various resources required by the virtual instance and providing a selection range of upper QoS requirements for various resources required by the virtual instance.

[0085] Optionally, when the QoS requirements include: basic QoS requirements and upper limit QoS requirements for computing resources, a configuration interface for setting QoS requirements is provided, including: providing a selection range of the basic QoS requirements for computing resources and providing a selection range of the upper limit QoS requirements for computing resources. When the QoS requirements include: basic QoS requirements and upper limit QoS requirements for network resources, a configuration interface for setting QoS requirements is provided, including: providing a selection range of the basic QoS requirements for network resources and providing a selection range of the upper limit QoS requirements for network resources. When the QoS requirements include: basic QoS requirements and upper limit QoS requirements for storage resources, a configuration interface for setting QoS requirements is provided, including: providing a selection range of the basic QoS requirements for storage resources and providing a selection range of the upper limit QoS requirements for storage resources.

[0086] For example, Figure 3 This is a diagram for selecting instance specifications on the primary page. Figure 4 For tenants selected Figure 3 The secondary page for the instance type with 4 virtual processors and 8 GB of memory. Figure 3 As shown, the instance specifications entered by the tenant ( Figure 3 The instance specifications marked by the dashed box in the figure include: 4 virtual processors and 8 gigabytes (GB) of memory capacity. In addition, tenants can also select the name of the virtual instance and the model of the processor they need through the configuration interface. Figure 3 As shown in the figure, the name of the virtual instance selected by the tenant through the configuration interface is "T7.xlarge".

[0087] like Figure 4 As shown, the selection ranges of the basic QoS capability and the upper limit QoS capability corresponding to this instance specification are: the selection range of the basic CPU performance is the utilization of 4 virtual processors is [5%, 100%], the selection range of the maximum CPU performance is the utilization of 4 virtual processors is [5%, 100%], the selection range of the basic network bandwidth is [1 gigabyte per second (GB / S), 5GB / S], the selection range of the maximum network bandwidth is [3GB / S, 11GB / S], the selection range of the basic PPS is [200,000 (W), 60W], the selection range of the maximum PPS is [40W, 90W], the selection range of the basic IOPS is [20W, 60W], the selection range of the maximum IOPS is [40W, 90W], the selection range of the basic storage bandwidth is [20W, 60W], and the selection range of the maximum storage bandwidth is [40W, 90W].

[0088] And, if Figure 4 As shown in the figure, the cloud platform provides tenants with a selection range of basic QoS requirements and a selection range of upper QoS requirements. Figure 4 Use the slider in the selection bar to select a value in the selection range, or use Figure 4 Use the plus and minus buttons to adjust the values ​​to indicate the base QoS requirement and upper QoS requirement of the virtual instance for resources according to the values ​​selected by the tenant.

[0089] Step 202: The cloud platform obtains the instance configuration information input by the tenant to confirm the instance specifications and QoS requirements of the virtual instance to be created by the tenant.

[0090] After the tenant selects the instance specification through the configuration interface and selects the value in the selection range of the basic QoS requirement and the selection range of the upper QoS requirement of the resource, the cloud platform can determine the instance specification and service quality QoS requirement of the virtual instance to be created by the tenant based on the tenant's selection.

[0091] In one implementable manner, when the QoS requirement includes: a basic QoS requirement and an upper limit QoS requirement for computing resources, obtaining the basic QoS requirement for computing resources of the virtual instance that the tenant needs to create includes: confirming the basic QoS requirement for computing resources according to a value selected by the tenant within a selection range of the basic QoS requirement for computing resources; obtaining the upper limit QoS requirement for computing resources of the virtual instance that the tenant needs to create includes: confirming the upper limit QoS requirement for computing resources according to a value selected by the tenant within a selection range of the upper limit QoS requirement for computing resources.

[0092] When the QoS requirement includes: a basic QoS requirement and an upper limit QoS requirement for network resources, obtaining the basic QoS requirement for the network resources of the virtual instance that the tenant needs to create includes: confirming the basic QoS requirement for the network resources according to a value selected by the tenant in a selection range of the basic QoS requirement for the network resources; obtaining the upper limit QoS requirement for the network resources of the virtual instance that the tenant needs to create includes: confirming the upper limit QoS requirement for the network resources according to a value selected by the tenant in a selection range of the upper limit QoS requirement for the network resources.

[0093] When the QoS requirement includes: a basic QoS requirement and an upper limit QoS requirement of a storage resource, obtaining the basic QoS requirement of the storage resource of the virtual instance that the tenant needs to create includes: confirming the basic QoS requirement of the storage resource according to a value selected by the tenant in a selection range of the basic QoS requirement of the storage resource; obtaining the upper limit QoS requirement of the storage resource of the virtual instance that the tenant needs to create includes: confirming the upper limit QoS requirement of the storage resource according to a value selected by the tenant in a selection range of the upper limit QoS requirement of the storage resource.

[0094] For example, please refer to Figure 4 , the tenant selects 5% in the basic CPU performance utilization selection range, 5% in the maximum CPU performance utilization selection range, 1GB / S in the basic network bandwidth selection range, 3GB / S in the maximum network bandwidth selection range, 20W in the basic PPS selection range, 40W in the maximum PPS selection range, 20W in the basic IOPS selection range, 40W in the maximum IOPS selection range, 20W in the basic storage bandwidth selection range, and 40W in the maximum storage bandwidth selection range. Among them, Figure 4 The "concentric circles" icon in the selection is used to identify the value selected by the tenant in the selection range.

[0095] According to the values ​​selected by the tenant in the selection range of the basic QoS requirement and the upper limit QoS requirement for each resource, it can be confirmed that the QoS requirements of the virtual instance that the tenant needs to create include: the basic QoS requirement for computing resources is 5% utilization of 4 virtual processors, the upper limit QoS requirement for computing resources is 5% utilization of 4 virtual processors, the basic network bandwidth of network resources is 1GB / S, the maximum network bandwidth is 3GB / S, the basic PPS is 20W, the maximum PPS is 40W, the basic IOPS of storage resources is 20W, the maximum IOPS is 40W, the basic storage bandwidth is 20W, and the maximum storage bandwidth is 40W.

[0096] Step 203: The cloud platform determines the selling price of the virtual instance according to the instance specifications and QoS requirements.

[0097] After confirming the instance specifications and QoS requirements of the virtual instance that the tenant needs to create, the cloud platform can determine the selling price of the virtual instance based on the instance specifications and QoS requirements. In the embodiment of the present application, since the tenant can input the instance specifications and QoS requirements of the virtual instance to be created according to its application requirements, and the instance specifications and QoS requirements can represent the tenant's real demand for cloud computing resources, when the cloud platform determines the selling price of the virtual instance based on the instance specifications and QoS requirements, it can realize on-demand billing of cloud computing resources. In addition, the tenant can also input his or her desired payment method through the configuration interface. Figure 3 As shown, when the tenant inputs the expected on-demand payment through the configuration interface, the cloud platform determines the selling price of the virtual instance according to the instance specifications and QoS requirements.

[0098] In one implementable manner, the selling price of a virtual instance is positively correlated with the instance specifications as well as the QoS requirements of the virtual instance. Thus, when at least one of the instance specifications and QoS requirements of the virtual instance changes, the selling price of the virtual instance will change accordingly.

[0099] Optionally, the relationship between the selling price of the virtual instance, the instance specification, and the QoS requirement may satisfy the following formula:

[0100] P(total)=P(Base)+S(basic CPU performance)×C(base)+S(maximum CPU performance)×C(max)+S(basic network bandwidth)×B(basic network bandwidth)+S(maximum network bandwidth)×B(maximum network bandwidth)+S(basic PPS)×P(basic PPS)+S(maximum PPS)×P(maximum PPS)+S(basic IOPS)×I(basic IOPS)+S(maximum IOPS)×I(maximum IOPS)+S(basic storage bandwidth)×SB(basic storage bandwidth)+S(maximum storage bandwidth)×SB(maximum storage bandwidth)

[0101] Among them, P (total) is the selling price of the virtual instance, P (Base) is the basic price baseline of the instance specification, S (basic CPU performance) is the price coefficient of the basic CPU performance, C (base) is the basic CPU performance selected by the tenant, S (maximum CPU performance) is the price coefficient of the maximum CPU performance, C (max) is the maximum CPU performance selected by the tenant, S (basic network bandwidth) is the price coefficient of the basic network bandwidth, B (basic network bandwidth) is the basic network bandwidth selected by the tenant, S (maximum network bandwidth) is the price coefficient of the maximum network bandwidth, B (maximum network bandwidth) is the maximum network bandwidth selected by the tenant, and S (basic PPS) is the price coefficient of the basic PPS , P (basic PPS) is the basic PPS selected by the tenant, S (maximum PPS) is the price coefficient of the maximum PPS, P (maximum PPS) is the maximum PPS selected by the tenant, S (basic IOPS) is the price coefficient of the basic IOPS, I (basic IOPS) is the basic IOPS selected by the tenant, S (maximum IOPS) is the price coefficient of the maximum IOPS, I (maximum IOPS) is the maximum IOPS selected by the tenant, S (basic storage bandwidth) is the price coefficient of the basic storage bandwidth, SB (basic storage bandwidth) is the basic storage bandwidth selected by the tenant, S (maximum storage bandwidth) is the price coefficient of the maximum storage bandwidth, SB (maximum storage bandwidth) is the maximum storage bandwidth selected by the tenant. It should be noted that the basic price baseline and various price coefficients in the above formula for calculating the selling price of the virtual instance can be set according to application requirements, and the embodiments of the present application do not specifically limit them.

[0102] By providing a configuration interface to tenants, tenants can define the instance specifications and QoS requirements of the virtual instances created according to actual needs, and when the selling price of the virtual instances is determined according to it, on the one hand, on-demand purchase of cloud resources can be realized, and on the other hand, the cost of tenants using cloud resources can be reduced. For example, when the cloud vendor has a fixed basic network bandwidth of 1Gbps for a combination of 2 virtual processors and 4GB of memory (i.e., 2u4g), if the tenant needs to use a basic network bandwidth of 2Gbps, in the related technology, the tenant needs to purchase a virtual machine with a combination of 4 virtual processors and 8GB of memory (i.e., 4U8G), and the cost he needs to bear is twice the cost of 2u4g. In the embodiment of the present application, through the virtual instance setting method provided in the embodiment of the present application, when the tenant needs to use a basic network bandwidth of 2Gbps, he only needs to increase the basic network bandwidth based on 2u4g, so that the cost borne by the tenant is 1.5 times the cost of 2u4g, such as Figure 4 The selling price of the virtual instance shown is 547 yuan / month. It can be seen that the virtual instance setting method provided by the embodiment of the present application can realize on-demand purchase of cloud resources and can effectively reduce the cost of tenants using cloud resources.

[0103] Step 204: The cloud platform obtains the instance creation instruction input by the tenant according to the selling price.

[0104] When the tenant considers that the selling price of the virtual instance is acceptable, he can enter the instance creation instruction through the configuration interface to instruct the creation of the instance according to the instance specifications and QoS requirements he entered. Optionally, an icon for indicating the creation of the instance is also set on the configuration interface of the instance configuration information. When the tenant clicks the icon, the instance creation instruction can be triggered. For example, Figure 4 In the setup, a "Create" button is set. When the tenant clicks the "Create" button, the cloud platform can obtain the instance creation instruction.

[0105] Step 205: The cloud platform creates a virtual instance that meets the instance specifications and QoS requirements according to the instance creation instruction.

[0106] Alternatively, if Figure 5 As shown, the implementation process of step 205 includes:

[0107] Step 2051: The cloud platform selects a first physical server from a plurality of physical servers in the cloud data center. The idle hardware resources of the first physical server can provide instance specifications and meet Qos requirements.

[0108] After the cloud platform obtains the instance specifications and QoS requirements of the virtual instance, it can select the first physical server from multiple physical servers in the cloud data center according to the instance specifications and QoS requirements, so as to create the virtual instance that the tenant needs to create on the first physical server. In order to ensure the QoS capability of the created virtual instance, it is necessary to ensure that the idle hardware resources of the first physical server can provide the instance specifications required by the virtual instance and meet the QoS requirements of the virtual instance. In one achievable method, the first physical server satisfies at least the following conditions:

[0109] Condition 1: Any hardware resource of the first physical server can simultaneously meet the basic QoS requirements of all virtual instances created on the first physical server and the basic QoS requirements of the virtual instances to be created.

[0110] Condition 2: For any hardware resource of the first physical server, the sum of the upper limit QoS requirements of all created virtual instances on the first physical server and the upper limit QoS requirements of the virtual instances to be created is less than or equal to the sum of the upper limit QoS requirements of the virtual instances created on other alternative physical servers and the upper limit QoS requirements of the virtual instances to be created.

[0111] According to the above condition 1, for the basic performance provided by any hardware resource, if the physical server can simultaneously meet the basic performance required by the basic Qos requirement of the virtual instance created on the physical server and the basic performance required by the basic Qos requirement of the virtual instance to be created, the sum of the basic performance required by the basic Qos requirement of the virtual instance created on the physical server and the basic performance required by the basic Qos requirement of the virtual instance to be created will not exceed the rated value of the basic performance that the physical server can provide, so the physical server can be confirmed as an alternative physical server. For example, if the sum of the basic network bandwidth required by the basic Qos requirement of the virtual instance created on the physical server and the basic network bandwidth required by the basic Qos requirement of the virtual instance does not exceed the maximum physical network bandwidth of the physical server, and the sum of the basic computing performance required by the basic Qos requirement of the virtual instance created on the physical server and the basic computing performance required by the basic Qos requirement of the virtual instance does not exceed the sum of the maximum computing performance that all processors on the physical server can provide, then the physical server can be determined as an alternative physical server.

[0112] By selecting a physical server according to the first condition, it can be ensured that when resource competition occurs for all virtual instances on the physical server, the physical server can guarantee the basic performance of all virtual instances on the physical server and guarantee the service level agreement (SLA) of the virtual instances.

[0113] According to the above condition 2, for the performance provided by any hardware resource, when selecting a physical server from multiple alternative physical servers that meet condition 1, it is necessary to obtain the sum of the maximum performance required by the upper limit QoS requirements of the virtual instance to be created and the upper limit QoS requirements of all created virtual instances on the alternative physical server, and determine the alternative physical server corresponding to the minimum sum of the upper limit QoS requirements as the first physical server.

[0114] Optionally, when executing the above condition 2, the upper limit Qos requirements of the multiple performances required by the Qos requirements of the virtual instance to be created and the sum (or the average value of the totals) of the upper limit Qos requirements of the multiple performances required by the Qos requirements of all created virtual instances on each candidate physical server can be calculated respectively according to the multiple performances required by the Qos requirements, and then the candidate physical server corresponding to the minimum sum (or the average value of the sum) is determined as the first physical server.

[0115] By selecting the first physical server according to the second condition, load balancing of physical servers can be achieved under the premise of ensuring basic performance, and the probability of competing for resources on each physical server can be controlled to be as average as possible, and the probability of competing for resources between virtual instances in the physical server can be reduced as much as possible, so that each virtual instance has the highest possible probability of reaching the upper limit QoS requirement, which can ensure the full utilization of cloud computing environment resources and improve cluster resource utilization.

[0116] Step 2052: The cloud platform creates a virtual instance on the first physical server, wherein the reserved hardware resources among the idle hardware resources of the first physical server are allocated to the virtual instance, and the reserved hardware resources meet the instance specifications and QoS requirements.

[0117] After determining the first physical server, the virtual instance to be created can be created on the first physical server according to the instance specifications and QoS requirements of the virtual instance to be created. When creating the virtual instance on the first physical server, the predetermined hardware resources that meet the instance specifications and QoS requirements can be first determined from the idle hardware resources of the first physical server, and then the predetermined hardware resources can be allocated to the virtual instance to complete the creation of the virtual instance. The creation of the virtual instance in the first physical server can be achieved through the virtual machine manager in the first physical server.

[0118] In one possible implementation, Figure 6 As shown, a cloud platform and cloud resources are deployed in a cloud data center, and the cloud resources include multiple physical servers. The cloud platform is used to obtain the resource usage of multiple physical servers in the cloud resources according to the instance specifications and QoS requirements input by the tenant, determine the sum of the various QoS requirements of each physical server according to the resource usage of each physical server, and determine the physical server among the multiple physical servers that meets the two conditions proposed in the above step 2051 according to the instance specifications and QoS requirements input by the tenant, determine the physical server that meets the above two conditions as the first physical server, and instruct the virtual machine manager in the first physical server to create a virtual instance using the resources in the hardware layer of the first physical server according to the instance specifications and QoS requirements input by the tenant. Among them, the virtual machine manager runs in the operating system of the physical server, and the resources in the hardware layer include computing resources, network resources, storage resources, etc. Among them, Figure 6 The height of the black fill pattern in the box indicates the sum of the basic QoS requirements of the resources indicated by the box that have been allocated to the created instances. Figure 6 It can be seen that the sum of the basic QoS requirements of computing resources, storage resources and network resources of physical server 2 are all smaller than the corresponding sums of physical server 1. Therefore, physical server 2 is determined as the first physical server.

[0119] Step 206: When the virtual instance meets the migration conditions, the cloud platform migrates the virtual instance.

[0120] Optional, such as Figure 7 As shown, the implementation process of step 206 includes:

[0121] Step 2061: The cloud platform selects a second physical server from multiple physical servers in the cloud data center.

[0122] When the virtual instance meets the migration conditions, the cloud platform can select a second physical server from multiple physical servers in the transport bureau's palm according to the instance specifications and QoS requirements of the virtual instance, so as to facilitate the migration of the virtual instance to the second physical server. The idle hardware resources of the second physical server can provide the instance specifications of the virtual instance and meet its QoS requirements. For the implementation process of the cloud platform selecting the second physical server, please refer to the relevant description in step 2051, which will not be repeated here.

[0123] in,

[0124] Optionally, the migration condition may be obtained by tenant triggering or by cloud platform detection. The present application embodiment takes the following two implementation methods as examples to illustrate the migration condition:

[0125] In one possible implementation, after creating a virtual instance on the first physical server, the tenant may also adjust the QoS requirements of the virtual instance according to business needs. For example, the QoS requirements of the virtual instance may be increased according to business needs so that the virtual instance can handle a higher load, or the QoS requirements of the virtual instance may be lowered according to business needs so as to reduce the cost of the tenant using cloud resources while meeting business needs.

[0126] Therefore, the virtual instance setting method provided in the embodiment of the present application also includes: the cloud platform obtains the updated QoS requirements input by the tenant, wherein the updated QoS requirements are used to indicate the updated service quality required by the tenant for the virtual instance. When the configuration interface receives the updated QoS requirements, it means that the tenant has updated the QoS requirements of the virtual instance. The physical server selected when creating the virtual instance may not meet the updated QoS requirements, and the virtual instance needs to be migrated. Figure 8 As shown, after the Qos requirement is updated, since the physical server 2 can no longer meet the updated Qos requirement, and it is determined that the physical server M can meet the updated Qos requirement, the virtual instance can be migrated to the physical server M.

[0127] After completing the creation of the virtual instance, by updating the QoS requirements of the virtual instance according to business needs and migrating the virtual instance according to the updated QoS requirements, resources can be allocated to the virtual instance according to business needs, fully utilizing the resources of the physical server and saving tenants the cost of using cloud resources.

[0128] Optionally, the cloud platform can also provide the tenant with a first option and / or a second option. The first option is used to indicate that the tenant chooses to restart the virtual instance when updating the Qos, that is, to migrate the virtual instance by cold migration. The second option is used to indicate that the tenant chooses not to restart the virtual instance when updating the Qos, that is, to migrate the virtual instance by hot migration, and the second option and the first option cannot be selected at the same time. Correspondingly, the virtual instance setting method provided in the embodiment of the present application also includes: receiving the tenant's selection of the first option and / or the second option, and migrating the virtual instance from the first physical server to the second physical server according to the tenant's selection. For example, when the tenant selects the first option, the cloud platform can stop running the virtual instance on the first physical server, migrate the virtual instance from the first physical server to the second physical server, and run the virtual instance on the second physical server if the tenant chooses to restart the virtual instance when updating the Qos. For another example, when the tenant selects the second option, the cloud platform migrates the virtual instance from the first physical server to the second physical server online if the tenant chooses not to restart the virtual instance when updating the Qos.

[0129] For example, Figure 4 As shown, when the tenant inputs the Qos requirement through the configuration interface, the tenant can also select the first option of "adjust parameters and restart". When the first option is selected, the cloud platform uses cold migration to migrate the virtual instance. Alternatively, a default migration method is set in the cloud platform. When the tenant does not indicate the migration method, the default migration method can be used to migrate the virtual instance to the second physical server.

[0130] Among them, a scheduling system and a secondary scheduling system are deployed in the cloud platform. The scheduling system is used to select the first physical machine when creating a virtual instance, and the secondary scheduling system selects the second physical machine when the virtual instance needs to be migrated.

[0131] In another possible implementation, the cloud platform can monitor the usage of hardware resources on the physical server and determine whether to migrate the virtual instance based on the usage. Optionally, the migration condition includes: the utilization rate of any hardware resource on the physical server running the virtual instance reaches a reference threshold within a specified time period. When the utilization rate of the hardware resource reaches the reference threshold within a specified time period, it indicates that the virtual instance has competed for the hardware resource.

[0132] For example, Fig. 9As shown, virtual instance 0 and virtual instance 5 are deployed in physical server 1, virtual instance 3 is deployed in physical server 2, and local agents are set in physical server 1 and physical server 2. The local agents are used to monitor the usage of hardware resources on the physical servers where they are located, and determine the load and resource utilization of the physical servers based on the usage, and determine whether there is resource contention for the hardware resources of the physical servers based on the load and resource utilization. Fig. 9 As shown, the load of physical server 1 is 90% and resource contention occurs, and the load of physical server 2 is 20% and resource contention does not occur. Then, it is possible to consider migrating virtual instance 0 to physical server 2.

[0133] At this time, when the physical server detects that its hardware resources are competing for resources, by migrating some virtual instances deployed on the physical server to other physical servers, the resource competition on the physical server can be eliminated, and the load balancing of multiple physical servers managed by the cloud platform can be guaranteed as much as possible, so that the resources on each physical server can be fully utilized, and the upper limit QoS requirements of the virtual instance can be met as much as possible. In addition, since the competition for resources occurs during the operation of the virtual instance, when resource competition occurs, the way to migrate the virtual instance is usually hot migration to reduce the risk of business interruption of the business provided by the virtual instance.

[0134] Step 2062: The cloud platform migrates the virtual instance from the first physical server to the second physical server.

[0135] After determining the second physical server, the cloud platform can migrate the virtual instance to the second physical server. In addition, when the tenant does not select a migration method, the cloud platform migrates the virtual instance to the second physical server according to the default migration method. When the user selects a migration method, the cloud platform uses the migration method indicated by the tenant to migrate the virtual instance to the second physical server.

[0136] Step 207: The cloud platform deducts the tenant's account for logging into the cloud platform according to the selling price of the virtual instance.

[0137] After the tenant determines to create a virtual instance, the cloud platform can deduct fees from the tenant's account logged into the cloud platform according to the selling price of the virtual instance that the tenant needs to create. Optionally, the cloud platform's deduction method can be set according to application requirements. For example, the cloud platform can deduct fees according to the selling price after the virtual instance is created. Alternatively, when requesting to create a virtual instance, the deduction is made according to the selling price, which is not specifically limited in the embodiments of the present application.

[0138] In summary, the embodiment of the present application provides a method for setting up a virtual instance, which obtains the instance configuration information input by the tenant to confirm the instance specifications and service quality Qos requirements of the virtual instance to be created by the tenant, determines the selling price of the virtual instance according to the instance specifications and Qos requirements, obtains the instance creation instruction input by the tenant according to the selling price to create a virtual instance that meets the instance specifications and Qos requirements, so that the virtual instance can be created according to the instance specifications and Qos requirements input by the tenant, so that the created virtual instance can reflect the actual needs of the tenant in a more fine-grained manner, so that the virtual instance created for the tenant according to the instance configuration information can better meet the needs of the tenant, and can realize on-demand purchase of cloud resources, reduce the cost of tenants using cloud resources, and effectively improve the utilization rate of resources provided by cloud vendors, so that cloud vendors can use limited cloud resources to serve more tenants. In addition, by creating a virtual instance according to the instance specifications and service quality Qos requirements, the decoupling of the virtual instance Qos and the physical server can be achieved, reducing the impact of the subsequent evolution, reuse and replacement of the physical server on the instance specifications and performance.

[0139] It should be noted that the sequence of steps of the virtual instance setting method provided in the embodiment of the present application can be adjusted appropriately, and the steps can be increased or decreased accordingly according to the situation. Any technician familiar with the technical field can easily think of a method of change within the technical scope disclosed in this application, which should be included in the protection scope of this application, so it will not be repeated.

[0140] The present application also provides a virtual instance setting device. Fig.10 As shown, the virtual instance setting device 100 includes:

[0141] The acquisition module 1001 is used to acquire the instance configuration information input by the tenant to confirm the instance specifications and service quality (QoS) requirements of the virtual instance to be created by the tenant, wherein the QoS requirements are used to indicate the service quality required by the tenant for the virtual instance. In an implementable manner, the acquisition module 1001 can be used to execute the above step 202.

[0142] The determination module 1002 is used to determine the selling price of the virtual instance according to the instance specification and the QoS requirement. In an implementable manner, the determination module 1002 can be used to execute the above step 203 .

[0143] The creation module 1003 is used to obtain the instance creation instruction input by the tenant according to the selling price to create a virtual instance that meets the instance specification and QoS requirements. In an implementable manner, the creation module 1003 can be used to execute the above steps 204 and 205.

[0144] Optionally, the QoS requirements include: a basic QoS requirement and an upper limit QoS requirement for computing resources; the basic QoS requirement for computing resources is the minimum QoS requirement that can be achieved by the virtual instance for the usage of computing resources when the virtual instance is configured with computing resources indicated by the instance specifications; the upper limit QoS requirement for computing resources is used to indicate the maximum QoS requirement that can be achieved by the virtual instance for the usage of computing resources when the virtual instance is configured with computing resources indicated by the instance specifications.

[0145] Optional, such as Fig.11 As shown, the virtual instance setting device 100 also includes:

[0146] A module 1004 is provided for providing a selection range of basic QoS requirements for computing resources.

[0147] The acquisition module 1001 is used to confirm the basic QoS requirement of the computing resource according to the value selected by the tenant in the selection range of the basic QoS requirement of the computing resource.

[0148] A module 1004 is provided for providing a selection range of an upper limit QoS requirement of computing resources.

[0149] The acquisition module 1001 is used to confirm the upper limit QoS requirement of the computing resource according to the value selected by the tenant in the selection range of the upper limit QoS requirement of the computing resource.

[0150] In one achievable manner, the providing module 1004 may be used to execute the above step 201 .

[0151] Optionally, the computing resources include processor cores and / or memory.

[0152] Optionally, the QoS requirements include: a basic QoS requirement and an upper limit QoS requirement for network resources; the basic QoS requirement for network resources is the minimum QoS requirement that can be achieved by the virtual instance for the usage of network resources when the virtual instance is configured with the network resources indicated by the instance specifications; the upper limit QoS requirement for network transmission performance is used to indicate the maximum QoS requirement that can be achieved by the virtual instance for the usage of network resources when the virtual instance is configured with the network resources indicated by the instance specifications.

[0153] Optionally, a module 1004 is provided to provide a selection range of basic QoS requirements for network resources.

[0154] The acquisition module 1001 is used to confirm the basic QoS requirement of the network resource according to the value selected by the tenant in the selection range of the basic QoS requirement of the network resource.

[0155] A module 1004 is provided, which is used to provide a selection range of an upper limit QoS requirement of network resources.

[0156] The acquisition module 1001 is used to confirm the upper limit QoS requirement of the network resource according to the value selected by the tenant in the selection range of the upper limit QoS requirement of the network resource.

[0157] Optionally, the network resources include network bandwidth or the number of packets sent per second (PPS).

[0158] Optionally, the QoS requirements include: a basic QoS requirement and an upper limit QoS requirement for storage resources; the basic QoS requirement for storage resources is the minimum QoS requirement that can be achieved by the virtual instance for the usage of storage resources when the virtual instance is configured with storage resources indicated by the instance specifications; the upper limit QoS requirement for storage resources is the maximum QoS requirement that can be achieved by the virtual instance for the usage of storage resources when the virtual instance is configured with storage resources indicated by the instance specifications.

[0159] Optionally, a module 1004 is provided to provide a selection range of basic QoS requirements for storage resources.

[0160] The acquisition module 1001 is used to confirm the basic QoS requirement of the storage resource according to the value selected by the tenant in the selection range of the basic QoS requirement of the storage resource.

[0161] A module 1004 is provided, which is used to provide a selection range of an upper limit QoS requirement of storage resources.

[0162] The acquisition module 1001 is used to confirm the upper limit QoS requirement of the storage resource according to the value selected by the tenant in the selection range of the upper limit QoS requirement of the storage resource.

[0163] Optionally, the storage resources include storage bandwidth and / or the number of read / write operations per second (IOPS).

[0164] Optionally, a creation module 1003 is specifically used to: select a first physical server from multiple physical servers in the cloud data center, the idle hardware resources of the first physical server can provide instance specifications and meet Qos requirements; create a virtual instance on the first physical server, wherein reserved hardware resources among the idle hardware resources of the first physical server are allocated to the virtual instance, and the reserved hardware resources meet the instance specifications and Qos requirements.

[0165] Optional, such as Fig.11 As shown, the virtual instance setting device 100 also includes:

[0166] The acquisition module 1001 is used to acquire the updated QoS requirement input by the tenant, wherein the updated QoS requirement is used to indicate the updated service quality required by the tenant for the virtual instance.

[0167] The migration module 1005 is used to select a second physical server from multiple physical servers in the cloud data center, and the idle hardware resources of the second physical server can provide instance specifications and meet the update QoS requirements.

[0168] The migration module 1005 is used to migrate the virtual instance from the first physical server to the second physical server.

[0169] In one achievable manner, the migration module 1005 may be used to execute the above step 206 .

[0170] Optionally, a module 1004 is provided for providing a first option, the first option being used to instruct the tenant to choose to restart the virtual instance when updating the Qos. Correspondingly, a migration module 1005 is specifically used to stop running the virtual instance on the first physical server, migrate the virtual instance from the first physical server to the second physical server, and run the virtual instance on the second physical server when the tenant chooses to restart the virtual instance when updating the Qos.

[0171] Optionally, a module 1004 is provided for providing a second option, wherein the second option is used to indicate that the tenant chooses not to restart the virtual instance when updating the Qos. Accordingly, a migration module 1005 is specifically used to migrate the virtual instance from the first physical server to the second physical server online when the tenant chooses not to restart the virtual instance when updating the Qos.

[0172] Optional, such as Fig.11 As shown, the virtual instance setting device 100 further includes: an operation and maintenance module 1006, which is used to deduct fees from the tenant's account for logging into the cloud platform according to the selling price. In an implementable manner, the operation and maintenance module 1006 can be used to perform the above step 207.

[0173] In summary, the embodiment of the present application provides a virtual instance setting device, which obtains the instance configuration information input by the tenant through the acquisition module to confirm the instance specifications and service quality Qos requirements of the virtual instance to be created by the tenant, determines the selling price of the virtual instance according to the instance specifications and Qos requirements, and obtains the instance creation instruction input by the tenant according to the selling price to create a virtual instance that meets the instance specifications and Qos requirements, so that the virtual instance can be created according to the instance specifications and Qos requirements input by the tenant, so that the created virtual instance can reflect the real needs of the tenant in a more fine-grained manner, so that the virtual instance created for the tenant according to the instance configuration information can better meet the needs of the tenant, and can realize on-demand purchase of cloud resources, reduce the cost of tenants using cloud resources, and effectively improve the utilization rate of resources provided by cloud vendors, so that cloud vendors can use limited cloud resources to serve more tenants. In addition, by creating virtual instances according to instance specifications and service quality Qos requirements, the decoupling of virtual instance Qos and physical servers can be achieved, reducing the impact of subsequent physical server evolution, reuse and replacement on instance specifications and performance.

[0174] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding contents in the aforementioned method embodiments and will not be repeated here.

[0175] An embodiment of the present application provides a cloud platform. Fig.12 A possible architecture diagram of a cloud platform is provided as an example. Fig.12 As shown, the cloud platform 120 may include a processor 1201, a memory 1202, a communication interface 1203, and a bus 1204. In the cloud platform, the number of processors 1201 may be one or more. Fig.12 Only one of the processors 1201 is shown. Optionally, the processor 1201 may be a central processing unit (CPU). If the cloud platform has multiple processors 1201, the types of the multiple processors 1201 may be different or the same. Optionally, the multiple processors of the cloud platform may also be integrated into a multi-core processor.

[0176] The memory 1202 stores computer instructions and data. The memory 1202 can store computer instructions and data required to implement the virtual instance setting method provided in this application. The memory 1202 can be any one or any combination of the following storage media: non-volatile memory (such as read-only memory (ROM), solid state disk (SSD), hard disk (HDD), optical disk, etc.), volatile memory.

[0177] The communication interface 1203 may be any one or any combination of the following devices: a network interface (such as an Ethernet interface), a wireless network card, or other device with a network access function.

[0178] The communication interface 1203 is used for data communication between the cloud platform and other nodes or other cloud platforms.

[0179] Fig.12 A bus 1204 is also exemplarily drawn. The bus 1204 can connect the processor 1201 with the memory 1202 and the communication interface 1203. In this way, through the bus 1204, the processor 1201 can access the memory 1202, and can also use the communication interface 1203 to interact with other nodes or other cloud platforms.

[0180] In the present application, the cloud platform executes the computer instructions in the memory 1202 to implement the virtual instance setting method provided in the present application. For example, the instance configuration information input by the tenant is obtained to confirm the instance specifications and service quality Qos requirements of the virtual instance to be created by the tenant, wherein the Qos requirements are used to indicate the service quality required by the tenant for the virtual instance; the selling price of the virtual instance is determined according to the instance specifications and Qos requirements; the instance creation instructions input by the tenant according to the selling price are obtained to create a virtual instance that meets the instance specifications and Qos requirements. In addition, the cloud platform executes the computer instructions in the memory 1202 to implement the steps of the virtual instance setting method provided in the present application, and the corresponding description in the above method embodiment can be referred to accordingly.

[0181] An embodiment of the present application also provides a computer-readable storage medium, which is a non-volatile computer-readable storage medium. The computer-readable storage medium includes program instructions. When the program instructions are executed on a computer device, the computer device executes a virtual instance setting method as provided in an embodiment of the present application.

[0182] The embodiment of the present application also provides a computer program product including instructions. When the computer program product is run on a computer, the computer executes the virtual instance setting method provided by the embodiment of the present application.

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

[0184] In the embodiments of the present application, the terms "first", "second" and "third" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance. The term "at least one" means one or more, and the term "plurality" means two or more, unless otherwise expressly defined.

[0185] The term "and / or" in this application is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0186] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the concept and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A virtual instance setting method, characterized in that: The method is applied to a cloud platform, and the method comprises: Acquire instance configuration information input by the tenant to confirm instance specifications and quality of service (QoS) requirements of the virtual instance to be created by the tenant, wherein the QoS requirements are used to indicate the quality of service required by the tenant for the virtual instance; Determine a selling price of the virtual instance according to the instance specification and the QoS requirement; An instance creation instruction input by the tenant according to the selling price is obtained to create the virtual instance that meets the instance specification and the QoS requirement.

2. The method according to claim 1, characterized in that The QoS requirements include: basic QoS requirements and upper limit QoS requirements for computing resources; The basic QoS requirement of the computing resource is the minimum QoS requirement that can be achieved by the virtual instance for the usage of the computing resource when the virtual instance is configured with the computing resource indicated by the instance specification; The upper limit QoS requirement of the computing resource is used to indicate the highest QoS requirement that can be achieved by the virtual instance according to the usage of the computing resource when the virtual instance is configured with the computing resource indicated by the instance specification.

3. The method according to claim 2, characterized in that The method further comprises: Provide a selection range of basic QoS requirements for computing resources; Confirming the basic QoS requirement of the computing resource according to a value selected by the tenant within a selection range of the basic QoS requirement of the computing resource; Provide a selection range for the upper limit QoS requirements of computing resources; The upper limit QoS requirement of the computing resource is confirmed according to a value selected by the tenant within a selection range of the upper limit QoS requirement of the computing resource.

4. The method according to claim 2 or 3, characterized in that: The computing resources include processor cores and / or memory.

5. The method according to claim 1, characterized in that The QoS requirements include: basic QoS requirements and upper limit QoS requirements for network resources; The basic QoS requirement of the network resource is the minimum QoS requirement that can be achieved by the virtual instance for the usage of the network resource when the virtual instance is configured with the network resource indicated by the instance specification; The upper limit QoS requirement of the network transmission performance is used to indicate the highest QoS requirement that can be achieved by the virtual instance according to the usage of the network resources when the virtual instance is configured with the network resources indicated by the instance specification.

6. The method according to claim 5, characterized in that The method further comprises: Provide a selection range of basic QoS requirements for network resources; Confirming the basic QoS requirement of the network resource according to a value selected by the tenant within a selection range of the basic QoS requirement of the network resource; Provide a selection range of the upper limit QoS requirements for network resources; The upper limit QoS requirement of the network resource is confirmed according to a value selected by the tenant within a selection range of the upper limit QoS requirement of the network resource.

7. The method according to claim 5 or 6, characterized in that: The network resources include network bandwidth or the number of packets sent per second (PPS).

8. The method according to claim 1, characterized in that The QoS requirements include: basic QoS requirements and upper limit QoS requirements for storage resources; The basic QoS requirement of the storage resource is the minimum QoS requirement that can be achieved by the virtual instance for the usage of the storage resource when the virtual instance is configured with the storage resource indicated by the instance specification; The upper limit QoS requirement of the storage resource is the highest QoS requirement that can be achieved by the virtual instance according to the usage of the storage resource when the virtual instance is configured with the storage resource indicated by the instance specification.

9. The method according to claim 8, characterized in that The method further comprises: Provide a selection range of basic QoS requirements for storage resources; Confirming the basic QoS requirement of the storage resource according to a value selected by the tenant within a selection range of the basic QoS requirement of the storage resource; Provides a selection range for the upper limit QoS requirements of storage resources; The upper limit QoS requirement of the storage resource is confirmed according to a value selected by the tenant within a selection range of the upper limit QoS requirement of the storage resource.

10. The method according to claim 8 or 9, characterized in that: The storage resources include storage bandwidth and / or the number of read / write operations per second (IOPS).

11. The method according to claim 1, characterized in that: The obtaining the instance creation instruction input by the tenant according to the selling price to create the virtual instance that meets the instance specification and the QoS requirement includes: Selecting a first physical server from a plurality of physical servers in a cloud data center, wherein idle hardware resources of the first physical server can provide the instance specification and meet the QoS requirement; The virtual instance is created on the first physical server, wherein predetermined hardware resources among the idle hardware resources of the first physical server are allocated to the virtual instance, and the predetermined hardware resources meet the instance specification and the QoS requirement.

12. The method according to claim 11, characterized in that The method further comprises: Acquire an updated QoS requirement input by the tenant, wherein the updated QoS requirement is used to indicate an updated quality of service required by the tenant for the virtual instance; Selecting a second physical server from the plurality of physical servers in the cloud data center, wherein idle hardware resources of the second physical server can provide the instance specification and meet the update QoS requirement; The virtual instance is migrated from the first physical server to the second physical server.

13. The method according to claim 12, characterized in that The method further comprises: Providing a first option, wherein the first option is used to instruct the tenant to choose to restart the virtual instance when updating the Qos; In the case where the tenant chooses to restart the virtual instance when updating the Qos, the virtual instance is stopped from running on the first physical server, the virtual instance is migrated from the first physical server to the second physical server, and the virtual instance is run on the second physical server.

14. The method according to claim 12 or 13, characterized in that The method further comprises: Providing a second option, the second option is used to indicate that the tenant chooses not to restart the virtual instance when updating the Qos; In a case where the tenant chooses not to restart the virtual instance when updating the Qos, the virtual instance is migrated online from the first physical server to the second physical server.

15. The method according to claim 1, characterized in that The method further comprises: The tenant's account logged into the cloud platform is charged according to the selling price.

16. A virtual instance setting device, characterized in that: The device is deployed on a cloud platform and includes: An acquisition module, used for acquiring instance configuration information input by a tenant to confirm instance specifications and service quality (QoS) requirements of a virtual instance to be created by the tenant, wherein the QoS requirements are used to indicate the service quality required by the tenant for the virtual instance; A determination module, configured to determine a selling price of the virtual instance according to the instance specification and the QoS requirement; A creation module is used to obtain an instance creation instruction input by the tenant according to the selling price to create the virtual instance that meets the instance specification and the QoS requirement.

17. The device according to claim 16, characterized in that The QoS requirements include: basic QoS requirements and upper limit QoS requirements for computing resources; The basic QoS requirement of the computing resource is the minimum QoS requirement that can be achieved by the virtual instance for the usage of the computing resource when the virtual instance is configured with the computing resource indicated by the instance specification; The upper limit QoS requirement of the computing resource is used to indicate the highest QoS requirement that can be achieved by the virtual instance according to the usage of the computing resource when the virtual instance is configured with the computing resource indicated by the instance specification.

18. The device according to claim 17, characterized in that The device also includes: Provides a module for providing a selection range of basic QoS requirements for computing resources; The acquisition module is used to confirm the basic QoS requirement of the computing resource according to the value selected by the tenant in the selection range of the basic QoS requirement of the computing resource; The providing module is used to provide a selection range of the upper limit QoS requirement of the computing resources; The acquisition module is used to confirm the upper limit QoS requirement of the computing resource according to the value selected by the tenant within the selection range of the upper limit QoS requirement of the computing resource.

19. The device according to claim 17 or 18, characterized in that The computing resources include processor cores and / or memory.

20. The device according to claim 16, characterized in that The QoS requirements include: basic QoS requirements and upper limit QoS requirements for network resources; The basic QoS requirement of the network resource is the minimum QoS requirement that can be achieved by the virtual instance for the usage of the network resource when the virtual instance is configured with the network resource indicated by the instance specification; The upper limit QoS requirement of the network transmission performance is used to indicate the highest QoS requirement that can be achieved by the virtual instance according to the usage of the network resources when the virtual instance is configured with the network resources indicated by the instance specification.

21. The device according to claim 20, characterized in that The device also includes: Provides a module for providing a selection range of basic QoS requirements for network resources; The acquisition module is used to confirm the basic QoS requirement of the network resource according to the value selected by the tenant in the selection range of the basic QoS requirement of the network resource; The providing module is used to provide a selection range of the upper limit QoS requirement of the network resources; The acquisition module is used to confirm the upper limit QoS requirement of the network resource according to the value selected by the tenant within the selection range of the upper limit QoS requirement of the network resource.

22. The device according to claim 20 or 21, characterized in that The network resources include network bandwidth or the number of packets sent per second (PPS).

23. The device according to claim 16, characterized in that The QoS requirements include: basic QoS requirements and upper limit QoS requirements for storage resources; The basic QoS requirement of the storage resource is the minimum QoS requirement that can be achieved by the virtual instance for the usage of the storage resource when the virtual instance is configured with the storage resource indicated by the instance specification; The upper limit QoS requirement of the storage resource is the highest QoS requirement that can be achieved by the virtual instance according to the usage of the storage resource when the virtual instance is configured with the storage resource indicated by the instance specification.

24. The device according to claim 23, characterized in that The device also includes: Provides a module for providing a selection range of basic QoS requirements for storage resources; The acquisition module is used to confirm the basic QoS requirement of the storage resource according to the value selected by the tenant in the selection range of the basic QoS requirement of the storage resource; The providing module is used to provide a selection range of the upper limit QoS requirement of the storage resource; The acquisition module is used to confirm the upper limit QoS requirement of the storage resource according to the value selected by the tenant within the selection range of the upper limit QoS requirement of the storage resource.

25. The device according to claim 23 or 24, characterized in that The storage resources include storage bandwidth and / or the number of read / write operations per second (IOPS).

26. The device according to claim 16, characterized in that The creation module is specifically used for: Selecting a first physical server from a plurality of physical servers in a cloud data center, wherein idle hardware resources of the first physical server can provide the instance specification and meet the QoS requirement; The virtual instance is created on the first physical server, wherein predetermined hardware resources among the idle hardware resources of the first physical server are allocated to the virtual instance, and the predetermined hardware resources meet the instance specification and the QoS requirement.

27. The device according to claim 26, characterized in that The device also includes: The acquisition module is used to acquire the updated QoS requirement input by the tenant, wherein the updated QoS requirement is used to indicate the updated service quality required by the tenant for the virtual instance; A migration module, configured to select a second physical server from the plurality of physical servers in the cloud data center, wherein idle hardware resources of the second physical server can provide the instance specification and meet the update QoS requirement; The migration module is used to migrate the virtual instance from the first physical server to the second physical server.

28. The device according to claim 27, characterized in that The device also includes: A module is provided, configured to provide a first option, wherein the first option is used to instruct the tenant to select to restart the virtual instance when updating the Qos; The migration module is specifically used to stop running the virtual instance on the first physical server, migrate the virtual instance from the first physical server to the second physical server, and run the virtual instance on the second physical server when the tenant chooses to restart the virtual instance when updating Qos.

29. The device according to claim 27 or 28, characterized in that The device also includes: Providing a module, used to provide a second option, wherein the second option is used to indicate that the tenant chooses not to restart the virtual instance when updating the Qos; The migration module is specifically configured to migrate the virtual instance from the first physical server to the second physical server online when the tenant chooses not to restart the virtual instance when updating the QoS.

30. The device according to claim 16, characterized in that The device also includes: The operation and maintenance module is used to deduct fees from the tenant's account for logging into the cloud platform according to the selling price.

31. A cloud platform, characterized in that: The method comprises a memory and a processor, wherein the memory stores program instructions, and the processor runs the program instructions to execute the method according to any one of claims 1 to 15.

32. A computer-readable storage medium, characterized in that: The method comprises program instructions, and when the program instructions are executed on a computer device, the computer device is caused to execute the method according to any one of claims 1 to 15.

33. A computer program product, when the computer program product is run on a computer, enables the computer to execute the method according to any one of claims 1 to 15.

Citation Information

Patent Citations

  • Method and apparatus for deploying SaaS software in cloud environment

    CN106897115A

  • Cloud computing service resource dynamic scheduling method and system based on price prediction

    CN110503534A