Instance creation method and device and storage medium
By introducing blind box instance specifications and dynamic cost settings, the problem of unbalanced user selection burden and resource pool load in the cloud computing platform is solved, and load balancing and operation and maintenance efficiency are improved.
Patent Information
- Application Number
- CN202311099143.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-05-17
- Filing Date
- 2023-08-29
- Publication Date
- 2024-11-22
AI Technical Summary
In the cloud computing platform, users face an increased burden caused by a large number of instance specification selections, and the resource pool load is unbalanced, resulting in operation and maintenance difficulties.
The concept of blind box instance specification is introduced. Each blind box instance specification contains some specification configurations. Users choose from fewer blind box instance specifications. The cloud computing platform dynamically sets costs based on the idle resource situation and selects target instance specifications to achieve load balancing.
It reduces the user's choice burden, realizes resource pool load balancing, and reduces the difficulty of operation, maintenance and management.
Smart Images

Figure CN119003084A_ABST
Abstract
Description
[0001] This application claims priority to the Chinese patent application with application number 202310558121.7 filed on May 17, 2023, and invention name “Cloud Blind Box Virtual Machine Operation Method and Device”, all contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of communications, and in particular to a method, device and storage medium for creating an instance. Background Art
[0003] The cloud computing platform can create instances for users. For example, the cloud computing platform can create instances such as virtual machines or containers for users.
[0004] In the related art, a cloud computing platform can provide multiple instance specifications to users, each of which includes multiple specification configurations required for creating an instance. The user can select an instance specification, and the cloud computing platform creates an instance for the user based on the instance specification selected by the user.
[0005] In the related art, a cloud computing platform may provide a large number of instance specifications to users, and users select an instance specification from the large number of instance specifications, which increases the burden on users. Summary of the invention
[0006] The present application provides a method, device and storage medium for creating an instance to reduce the burden on users. The technical solution is as follows:
[0007] In a first aspect, the present application provides a method for instance creation, the method being applied to a cloud computing platform, the cloud computing platform comprising a plurality of servers, the plurality of servers providing instances for creating a plurality of instance specifications. In the method, an instance creation request of a user is received. Based on the instance creation request, at least one blind box instance specification is provided to the user, each blind box instance specification having a partial specification configuration required for creating an instance. A user selection of a first blind box instance specification is received, the at least one blind box instance specification including a first blind box instance specification. From a plurality of instance specifications that meet the first blind box instance specification, a target instance specification is selected, the target instance specification having all the specification configurations required for creating an instance. An instance is created for the user according to the target instance specification.
[0008] Among them, for each blind box instance specification in the at least one blind box instance specification, there are multiple instance specifications that meet the blind box instance specification, so the number of the at least one blind box instance specification in the cloud computing platform is much less than the number of instance specifications in the cloud computing platform. In this way, the cloud computing platform receives the user's instance creation request and provides the at least one blind box instance specification to the user based on the instance creation request. Since the number of the at least one blind box instance specification is small, the user can easily select the first blind box instance in the at least one blind box instance specification. Then, the first blind box instance specification is received, and the target instance specification is selected from the multiple instance specifications that meet the first blind box instance specification. The target instance specification has all the specification configurations required to create the instance. Create an instance for the user according to the target instance specification. In this way, since the number of the at least one blind box instance specification is small, it is convenient for the user to select the first blind box instance specification, thereby reducing the burden on the user.
[0009] In another possible implementation, the first blind box instance specification includes one or more of the following specification configurations: hardware resource version, number of central processing units (CPUs), memory size, hard disk size, application scenario, service level agreement (SLA), ratio between the number of CPUs and the memory size, CPU architecture, geographic attributes, or application time period. This enriches the blind box instance specifications.
[0010] In another possible implementation, the instance includes a virtual machine or a container.
[0011] In another possible implementation, a target instance specification is selected from the multiple instance specifications based on the cost corresponding to each instance specification in the multiple instance specifications, and the cost corresponding to each instance specification is dynamically set based on the idle resources included in the resource pool corresponding to each instance specification.
[0012] Since the cost of each blind box instance is dynamically set based on the idle resources included in the resource pool corresponding to each blind box instance, in the first resource pool corresponding to the target blind box instance, resources are allocated based on the target blind box instance, and instances are created using the allocated resources. In this way, the cloud computing platform can flexibly control the resources in multiple resource pools in the cloud computing platform, load balance the multiple resource pools, flexibly operate and manage the cloud computing platform, reduce the difficulty of operation and management, and perform load balancing in multiple resource pools.
[0013] In another possible implementation, the price of at least one blind box instance specification is provided to the user. The user's selection of the first blind box instance specification based on the price of at least one blind box instance specification is received. This provides a reference for the user to select the blind box instance specification, facilitates the user's selection, and reduces the burden of the user's selection.
[0014] In a second aspect, the present application provides an example created device for executing the method in the first aspect or any possible implementation of the first aspect. Specifically, the device includes a unit for executing the method in the first aspect or any possible implementation of the first aspect.
[0015] In a third aspect, the present application provides a computing device cluster, the cluster comprising at least one computing device, each device in the at least one computing device comprising at least one processor and at least one memory, the at least one memory storing computer-readable instructions; the at least one processor executes the computer-readable instructions so that the cluster implements the method in the first aspect or any possible implementation manner of the first aspect.
[0016] In a fourth aspect, the present application provides a computer program product, which includes a computer program stored in a computer-readable storage medium, and the computer program is loaded by a processor to implement the method in the first aspect or any possible implementation manner of the first aspect.
[0017] In a fifth aspect, the present application provides a computer-readable storage medium for storing a computer program, wherein the computer program is loaded by a processor to execute the method in the first aspect or any possible implementation manner of the first aspect.
[0018] In a sixth aspect, the present application provides a chip comprising a memory and a processor, wherein the memory is used to store computer instructions, and the processor is used to call and run the computer instructions from the memory to execute the method in the first aspect or any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 This is a schematic diagram of a network architecture provided by an embodiment of the present application;
[0020] Figure 2 This is a flow chart of a method for creating an example provided in an embodiment of the present application;
[0021] Figure 3 It is a schematic diagram showing the specifications of a blind box instance provided in an embodiment of the present application;
[0022] Figure 4 It is another schematic diagram showing the specifications of a blind box example provided in an embodiment of the present application;
[0023] Figure 5 It is another schematic diagram showing the specifications of a blind box example provided in an embodiment of the present application;
[0024] Figure 6It is a schematic diagram of a device structure created by an example provided in an embodiment of the present application;
[0025] Figure 7 is a schematic diagram of the structure of a computing device provided in an embodiment of the present application;
[0026] Figure 8 It is a schematic diagram of the structure of a cluster provided in an embodiment of the present application;
[0027] Fig. 9 It is a schematic diagram of the structure of another cluster provided in an embodiment of the present application. DETAILED DESCRIPTION
[0028] The implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0029] See also Figure 1 An embodiment of the present application provides a network architecture 100, which includes a cloud computing platform 101 and at least one terminal device 102. The cloud computing platform 101 includes multiple servers, and the multiple servers provide instances for creating multiple instance specifications. The at least one terminal device 102 can communicate with the cloud computing platform 101, and the at least one terminal device 102 is a terminal device corresponding to at least one user.
[0030] The cloud computing platform 101 includes m resource pools, where m is an integer greater than 1. Each resource pool includes a large number of hardware resources. The m resource pools are resource pools of different versions. In other words, the resources in the m resource pools are resources of different versions.
[0031] For example, the resources in the m resource pools are hardware resources, and the hardware resources in the resource pool may be hardware resources of different generations, and different generations are different versions. Assume that the cloud computing platform 101 includes three resource pools, namely the first resource pool, the second resource pool and the third resource pool. The hardware resources in the first resource pool are hardware resources of the first generation, including a large number of central processing units (CPUs), graphics processing units (GPUs), memory and / or hard disks and other resources belonging to the first generation. The hardware resources in the second resource pool are hardware resources of the second generation, including a large number of CPUs, GPUs, memory and / or hard disks and other resources belonging to the second generation. The hardware resources in the third resource pool are hardware resources of the third generation, including a large number of CPUs, GPUs, memory and / or hard disks and other resources belonging to the third generation.
[0032] Optionally, each resource pool includes one or more servers, and the server includes one or more of the following hardware resources: CPU, GPU, memory and / or hard disk, etc.
[0033] For each user, the user may create at least one instance on the cloud computing platform 101 , and the at least one instance may include one or more of the following instances: a virtual machine, a container, or a bare metal server, etc.
[0034] If the user needs to run the at least one instance, the user sends an instance creation request to the cloud computing platform 101 through the terminal device 102 corresponding to the user. After receiving the instance creation request, the cloud computing platform 101 allocates resources from a resource pool and then uses the allocated resources to create the at least one instance.
[0035] The cloud computing platform 101 further includes n instance specifications corresponding to each resource pool, where n is an integer greater than or equal to 1, and for each instance specification, the instance specification includes multiple specification configurations required to create the instance. Optionally, the instance specification is used to define the hardware resource version, number of CPUs, memory size, hard disk size, application scenario, service-level agreement (SLA), ratio between number of CPUs and memory size, CPU architecture, geographic attributes or application time period, etc. required to create the instance.
[0036] For each resource pool in the cloud computing platform 101, the cloud computing platform 101 defines multiple instance specifications for the resource pool. For each instance specification in the multiple instance specifications, the instance specification includes the hardware resource version corresponding to the resource pool and the resource size required to create the instance. The resource size may be the number of CPUs, memory size, and / or hard disk size. The instance specification may also include description information of the resource pool, including identification information of the resource pool and / or information such as the manufacturer to which the resource pool belongs.
[0037] The cloud computing platform 101 receives an instance creation request sent by the terminal device 102 corresponding to the user, and displays multiple instance specifications corresponding to each resource pool on the terminal device 102 corresponding to the user based on the instance creation request.
[0038] The user can choose to purchase a certain instance specification. For the sake of convenience, the instance specification selected by the user is referred to as the first instance specification. The terminal device 102 corresponding to the user sends the first instance specification to the cloud computing platform 101.
[0039] The cloud computing platform 101 receives a first instance specification, and for a hardware resource version and resource specifications included in the first instance specification, the cloud computing platform allocates resources to the user in a resource pool corresponding to the hardware resource version based on the resource specifications included in the instance specification, and then uses the allocated resources to create at least one instance.
[0040] For example, the cloud computing platform includes 10 resource pools. For the first resource pool, the cloud computing platform defines three instance specifications for the first resource pool. The three instance specifications are instance specification 11, instance specification 12, and instance specification 13. Instance specification 11 includes description information of the first resource pool, resource version in the first resource pool, and resource size 11. Instance specification 12 includes description information of the first resource pool, resource version in the first resource pool, and resource size 2. Instance specification 13 includes description information of the first resource pool, resource version in the first resource pool, and resource size 13.
[0041] For the second resource pool, the cloud computing platform defines three resource options for the second resource pool, which are instance specification 21, instance specification 22 and instance specification 23. Instance specification 21 includes description information of the second resource pool, resource version and resource size 21 in the second resource pool. Instance specification 22 includes description information of the second resource pool, resource version and resource size 22 in the second resource pool. Instance specification 23 includes description information of the second resource pool, resource version and resource size 23 in the second resource pool.
[0042] For the third resource pool, the cloud computing platform defines three instance specifications for the third resource pool, which are instance specification 31, instance specification 32 and instance specification 33. Instance specification 31 includes description information of the third resource pool, resource version and resource size 31 in the third resource pool. Instance specification 32 includes description information of the third resource pool, resource version and resource size 22 in the third resource pool. Instance specification 33 includes description information of the third resource pool, resource version and resource size 23 in the third resource pool.
[0043] Similarly, the cloud computing platform defines three instance specifications for the fourth resource pool, three instance specifications for the fifth resource pool, three instance specifications for the sixth resource pool, three instance specifications for the seventh resource pool, three instance specifications for the eighth resource pool, three instance specifications for the ninth resource pool, and three instance specifications for the tenth resource pool. In other words, the cloud computing platform defines a total of 30 instance specifications.
[0044] The terminal device 102 corresponding to the user sends an instance creation request to the cloud computing platform 101 . The cloud computing platform receives the instance creation request and can display the 30 instance specifications on the terminal device 102 corresponding to the user based on the instance creation request.
[0045] The user purchases an instance specification, assuming that the user purchases instance specification 11. The terminal device 102 corresponding to the user sends instance specification 11 to the cloud computing platform.
[0046] The cloud computing platform receives instance specification 11, which includes description information of the first resource pool, resource version of the first resource pool, and resource size 11. The first resource pool is determined according to the instance specification 11. Resources are allocated in the first resource pool according to resource size 11, assuming that the allocated resources include 2 CPUs, 4G memory, and 64G hard disk. Then, the user can use the resources to create at least one instance such as a virtual machine or a container.
[0047] Among them, the cloud computing platform 101 includes a large number of instance specifications, that is, the cloud computing platform 101 needs to display a large number of instance specifications to users. Since the number of instance specifications is very large, users need to select the required instance specifications from the large number of instance specifications, which increases the user's selection burden.
[0048] Among them, since each instance specification includes a description information and resource version of a resource pool, users can learn about the resource pool version and other information corresponding to each instance specification through the description information and resource version of the resource pool included in each instance specification. When choosing to purchase instance specifications, users may give priority to instance specifications corresponding to resource pools with higher versions.
[0049] That is to say, most users may choose to purchase instance specifications corresponding to high-version resource pools. Cloud computing platform 101 allocates resources in high-version resource pools, so that resources in high-version resource pools may be quickly allocated, while a large number of idle resources in other versions of resource pools are idle. This makes the load between the m resource pools unbalanced. Due to the unbalanced load in different resource pools, some resource pools have sufficient idle resources but cannot be used, while some resource pools have insufficient idle resources, which adds difficulties to the operation and maintenance of cloud computing platform 101.
[0050] In order to solve the above-mentioned problems, the concept of blind box instance is introduced in the embodiment of the present application. The cloud computing platform 101 defines multiple blind box instance specifications. For each blind box instance specification, the blind box instance specification includes the partial specification configuration required to create the instance. The intersection of the multiple instance specifications corresponding to the blind box instance specification includes the partial specification configuration, that is, the intersection of the multiple instance specifications includes the blind box instance.
[0051] In this way, after receiving the instance creation request sent by the terminal device 102 corresponding to the user, the cloud computing platform displays at least one blind box instance specification on the terminal device 102 corresponding to the user based on the instance creation request. The user can choose to purchase a blind box instance specification. For the sake of convenience, the blind box instance specification selected by the user is referred to as the first blind box instance specification. The terminal device 102 corresponding to the user sends the first blind box instance specification to the cloud computing platform 101.
[0052] The cloud computing platform 101 receives the first blind box instance specification, selects a target instance specification from multiple instance specifications that meet the first blind box instance specification, and the target instance specification has all the specification configurations required to create an instance. In the resource pool corresponding to the target instance specification, resources are allocated based on the target instance specification, and an instance is created for the user using the allocated resources.
[0053] Since the cloud computing platform 101 includes at least one blind box instance specification, each blind box instance specification corresponds to multiple instance specifications, and the number of blind box instance specifications defined by the cloud computing platform 101 is much smaller than the number of the above instance specifications, when the user selects the first blind box instance specification from the at least one blind box instance specification, the user's selection burden is reduced.
[0054] Each blind box instance specification may not include description information and resource versions of the resource pool, and users cannot understand the resource pool. In other words, it avoids the situation where most users choose to purchase resources in a high-version resource pool. The cloud computing platform 101 selects the target instance specification from multiple instance specifications corresponding to the first blind box instance specification; when selecting the target instance specification, you can refer to the idle resources of the resource pool corresponding to each instance specification to make a selection. In this way, based on the target instance specification, resources are allocated in the resource pool corresponding to the target instance specification. The cloud computing platform 101 can flexibly control the resources in the m resource pools, load balancing the m resource pools, and flexibly operate and manage the cloud computing platform, reducing the difficulty of operation and maintenance and management.
[0055] See also Figure 2 The present application embodiment provides a method 200 for creating an instance, which can be applied to Figure 1 The network architecture 100 is shown. The method 200 includes the following steps.
[0056] Step 201: The cloud computing platform obtains at least one blind box instance specification. For each blind box instance specification, the blind box instance specification corresponds to multiple instance specifications.
[0057] The blind box instance specification includes a portion of the specification configuration required to create an instance, and for each of the multiple instance specifications, the instance specification includes all the specification configurations required to create an instance, and the intersection of the multiple instance specifications includes the blind box instance specification. The instance specification corresponds to a resource pool in the cloud computing platform.
[0058] The cloud computing platform includes a plurality of resource pools, and for each resource pool, the resource pool corresponds to a large number of instance specifications. The at least one blind box instance specification is obtained based on the instance specification corresponding to each resource pool.
[0059] In some embodiments, for each instance specification corresponding to the resource pool, the cost of the instance specification can be dynamically set based on the idle resources included in the resource pool. That is, at different times, since the idle resources included in each resource pool are constantly changing, the cost of each instance specification corresponding to each resource pool can be dynamically set based on the number of idle resources included in each resource pool. Optionally, for instance specifications with lower costs, the number of idle resources included in the resource pool corresponding to the instance specification may be greater.
[0060] In some embodiments, the blind box instance specification includes one or more of the following: resource version, number of CPUs, memory size, hard disk size, application scenario, SLA, ratio between number of CPUs and memory size, CPU architecture, geographical attributes or application time period, etc. Optionally, the blind box instance specification may include customized information, etc. Optionally, the resource version is a hardware resource version. The CPU architecture can be an X86 architecture or an advanced RISC machine (ARM) architecture, etc. The geographical attribute can indicate a certain geographical area or region irrelevant.
[0061] Optionally, the blind box instance specification includes a resource quantity, and the at least one instance specification is at least one resource quantity, and each resource quantity is used to define the number of CPUs, memory size, and / or hard disk size to be allocated. For example, assume that the at least one blind box instance specification includes resource quantity 1, resource quantity 2, and resource quantity 3. Resource quantity 1 includes 2 CPUs, 4G memory size, and / or 64G hard disk size; resource quantity 2 includes 6 CPUs, 8G memory size, and / or 128G hard disk size; resource quantity 3 includes 10 CPUs, 16G memory size, and / or 256G hard disk size.
[0062] Resource quantity 1 is used to define the resources required to create an instance, including 2 CPUs, 4 GB of memory, and / or 64 GB of hard disk. Resource quantity 2 is used to define the resources required to create an instance, including 6 CPUs, 8 GB of memory, and / or 128 GB of hard disk. Resource quantity 3 is used to define the resources required to create an instance, including 10 CPUs, 16 GB of memory, and / or 256 GB of hard disk.
[0063] Optionally, the blind box instance specification includes an application scenario, and the at least one blind box instance specification is at least one application scenario, and different application scenarios require different amounts of resources and / or resource types. For example, assume that the at least one blind box instance specification includes a rendering scenario, a big data analysis scenario, and a network communication scenario. The resources required for the rendering scenario include GPU, memory, and / or hard disk, etc.; the resources required for the big data analysis scenario include CPU, memory, and / or hard disk, etc.; the resources required for the network communication scenario include CPU, memory, hard disk, and / or network card, etc.
[0064] The rendering scenario is used to define the resources required to create an instance, including GPU, memory and / or hard disk. The big data analysis scenario is used to define the resources required to create an instance, including CPU, memory and / or hard disk. The network communication scenario is used to define the resources required to create an instance, including CPU, memory, hard disk and / or network card.
[0065] Optionally, the blind box instance specification includes an SLA, and the at least one blind box instance specification is at least one SLA. For each SLA, the SLA is used to define the resources required to create an instance and to achieve the SLA.
[0066] Optionally, the blind box instance specification includes a ratio between the number of CPUs and the memory size, and the at least one blind box instance specification is at least one ratio. For each ratio, and for the ratio used to define the resources required to allocate for creating an instance, the ratio is the ratio between the number of CPUs and the memory size included in the resources.
[0067] Optionally, the blind box instance specification includes a CPU architecture, and the at least one blind box instance specification is at least one CPU architecture. For each CPU architecture, and for the CPU architecture, the resources required to be allocated to define the creation implementation, the CPU architecture is the CPU architecture included in the resources.
[0068] Optionally, the blind box instance specification includes geographic attributes, and at least one blind box instance specification is at least one geographic attribute. For each geographic attribute, and for the geographic attribute, the resources required to define creating an instance are resources located in the geographic area corresponding to the geographic attribute or are resources that are not related to the region.
[0069] Optionally, the blind box instance specification includes an application time period, and the at least one blind box instance specification is at least one application time period. For each application time period, and for the application time period, the resources required to define creating an instance are resources that are idle within the application time period.
[0070] For each blind box instance specification in the at least one blind box instance specification, the cloud computing platform may also determine a price for the blind box instance specification. Optionally, the cloud computing platform determines the price for the blind box instance specification based on a specification configuration included in the blind box instance specification.
[0071] Users can request to create an instance on the cloud computing platform. When users need to create an instance, they can do the following operations to achieve it.
[0072] Step 202: The cloud computing platform receives a user's instance creation request.
[0073] In step 202, a terminal device sends an instance creation request to a cloud computing platform, and the terminal device is a terminal device corresponding to the user.
[0074] Step 203: Based on the instance creation request, the cloud computing platform provides the user with at least one blind box instance specification, each blind box instance specification having a partial specification configuration required to create an instance.
[0075] In step 203, the cloud computing platform receives the instance creation request and sends display information to the terminal device, where the display information includes the at least one blind box instance specification.
[0076] In some embodiments, the cloud computing platform also obtains the price of the at least one blind box instance specification, and the displayed information also includes the price of the at least one blind box instance specification.
[0077] The terminal device receives the display information and displays the at least one blind box instance specification included in the display information, so that the user selects a blind box instance specification from the at least one blind box instance specification as the first blind box instance specification.
[0078] After the terminal device displays the at least one blind box instance specification, the user can choose to purchase a blind box instance specification from the at least one blind box displayed as the first blind box instance specification.
[0079] For example, see Figure 3 The terminal device displays the at least one blind box, and the at least one blind box corresponds one-to-one to the at least one blind box instance specification. Each blind box does not include any information, so that the user can randomly select a blind box from the displayed blind boxes, and the terminal device obtains the blind box instance specification corresponding to the blind box as the first blind box instance specification.
[0080] In some embodiments, for each blind box in the at least one blind box, the blind box includes a blind box instance specification corresponding to the blind box, and when the blind box is displayed, the blind box instance specification corresponding to the blind box is also displayed in the blind box. The user can refer to the blind box instance specification included in the displayed at least one blind box, and choose to purchase a blind box instance specification included in the n blind boxes as the first blind box instance specification.
[0081] For example, see Figure 4 , the terminal device corresponding to the user displays at least one blind box, and for each blind box in the at least one blind box, the blind box instance specification corresponding to the blind box is displayed in the blind box. The user can view the blind box instance specifications included in each blind box, and the user can refer to the displayed blind box instance specifications included in the at least one blind box, and choose to purchase a blind box instance specification from the displayed at least one blind box instance specification as the first blind box instance specification.
[0082] In some embodiments, the display information may also include the price of the at least one blind box instance specification. The terminal device corresponding to the user receives the price of the at least one blind box instance specification and also displays the price of the at least one blind box instance specification. The user can refer to the displayed price of the at least one blind box instance specification and choose to purchase a blind box instance specification from the displayed at least one blind box instance specification as the first blind box instance specification.
[0083] For example, see Figure 5 As shown, the terminal device corresponding to the user displays at least one blind box, and for each blind box, the blind box includes the price of the blind box instance specification corresponding to the blind box and the blind box instance specification corresponding to the blind box. The user can view the blind box instance specification and price included in each blind box, and the user can refer to the displayed blind box instance specification and / or price included in each blind box and choose to purchase a blind box instance specification as the first blind box instance specification.
[0084] Step 204: The cloud computing platform receives the user's selection of a first blind box instance specification, where the at least one blind box instance specification includes the first blind box instance specification.
[0085] After the user selects the first blind box instance specification on the terminal device, the terminal device obtains the first blind box instance specification selected by the user, sends the first blind box instance specification to the cloud computing platform, and the cloud computing platform receives the first blind box instance specification sent by the terminal device.
[0086] Step 205: The cloud computing platform selects a target instance specification from multiple instance specifications that meet the first blind box instance specification. The target instance specification has all specification configurations required to create an instance.
[0087] In step 205, the cloud computing platform obtains multiple instance specifications including the first blind box instance specification from the instance specifications corresponding to each resource pool, and the multiple instance specifications are multiple instance specifications that meet the first blind box instance specification, and selects an instance specification from the multiple instance specifications as the target instance specification.
[0088] In some embodiments, the cloud computing platform selects an instance specification from the multiple instance specifications as the target instance specification based on the costs of the multiple instance specifications. Optionally, an instance specification with the lowest cost can be selected as the target instance specification.
[0089] Step 206: The cloud computing platform creates an instance for the user based on the target instance specification.
[0090] In some embodiments, the cloud computing platform determines a first resource pool corresponding to the target instance specification, allocates resources in the first resource pool based on the target instance specification, and creates an instance based on the allocated resources.
[0091] Since the cost of each instance specification of the cloud computing platform is dynamically set based on the idle resources included in the resource pool corresponding to each instance specification, the lower the cost of the instance specification, the more idle resources may be included in the resource pool corresponding to the instance specification. The cloud computing platform selects an instance specification from the multiple instance specifications as the target instance specification based on the costs of the multiple instance specifications. Based on the target instance specification, resources are allocated in the first resource pool corresponding to the target instance specification, which can ensure the load balancing of the multiple resource pools of the cloud computing platform, that is, the cloud computing platform can control the resources in the multiple resource pools, can achieve load balancing of the multiple resource pools, flexibly operate and manage the cloud computing platform, and reduce the difficulty of operation and management.
[0092] In some embodiments, the first blind box instance specification is a partial specification configuration required to create the instance, so the allocated resources also meet the partial specification configuration in the first blind box instance specification.
[0093] For example, the first blind box instance specification includes the number of resources. Assume that the first blind box instance specification includes 2 CPUs, 4G memory, and / or 64G hard disk. The cloud computing platform allocates resources including 2 CPUs, 4G memory, and / or 64G hard disk in the first resource pool based on the target instance specification that meets the first blind box instance specification.
[0094] For another example, the first blind box instance specification includes an application scenario. Assume that the application scenario included in the first blind box instance specification is an image processing scenario. The cloud computing platform allocates resources including GPU, memory and / or hard disk in the first resource pool based on the target instance specification that meets the first blind box instance specification.
[0095] For another example, the first blind box instance specification includes an SLA. The cloud computing platform allocates resources that can achieve the SLA in the first resource pool based on the target instance specification that meets the first blind box instance specification.
[0096] For another example, the first blind box instance specification includes a ratio between the number of CPUs and the memory size. For ease of explanation, this ratio is referred to as the first ratio. The cloud computing platform allocates resources in the first resource pool whose ratio between the number of CPUs and the memory size can achieve the first ratio based on the target instance specification that meets the first blind box instance specification.
[0097] For another example, the first blind box instance specification includes a CPU architecture. The cloud computing platform allocates resources including the CPU architecture in the first resource pool based on the target instance specification that meets the first blind box instance specification.
[0098] For another example, the first blind box instance specification includes a geographical attribute. The cloud computing platform allocates resources belonging to the geographical area corresponding to the geographical attribute in the first resource pool based on the target instance specification that meets the first blind box instance specification.
[0099] For another example, the first blind box instance specification includes an application time period. The cloud computing platform allocates idle resources within the application time period in the first resource pool based on the target instance specification that meets the first blind box instance specification.
[0100] In an embodiment of the present application, the cloud computing platform includes at least one blind box instance specification, each blind box instance rule corresponds to multiple instance specifications, and for each blind box instance specification, the blind box instance specification is a partial specification configuration required to create an instance, and the multiple instance specifications corresponding to the blind box instance specification are all the specification configurations required to create an instance. Therefore, the number of the at least one blind box instance specification is much smaller than the number of instance specifications in the cloud computing platform. In this way, when a user needs to create an instance, the at least one blind box instance specification is displayed to the user. Since the number of blind box instance specifications is small, it is convenient for the user to select the first blind box instance specification from the at least one blind box instance specification, reducing the burden on the user. In addition, since the number of blind box instance specifications is small, it will not increase the management burden of the cloud computing platform.
[0101] The cloud computing platform obtains multiple blind box instances that meet the first blind box instance specifications based on the first blind box instance specifications, selects a blind box instance as the target blind box instance based on the cost of each blind box instance, and the cost of each blind box instance is dynamically set based on the idle resources included in the resource pool corresponding to each blind box instance. In the first resource pool corresponding to the target blind box instance, resources are allocated based on the target blind box instance, and instances are created using the allocated resources. In this way, the cloud computing platform can flexibly control the resources in multiple resource pools in the cloud computing platform, load balance the multiple resource pools, flexibly operate and manage the cloud computing platform, reduce the difficulty of operation and management, and load balance in multiple resource pools.
[0102] See also Figure 6 The present application embodiment provides a device 600 for instance creation, wherein the device 600 is deployed in Figure 1 The cloud computing platform or Figure 2 On the cloud computing platform in the method 200, the device 600 includes a plurality of servers, the plurality of servers provide instances for creating a plurality of instance specifications, and the device 600 includes:
[0103] A receiving unit 601 is used to receive a user's instance creation request;
[0104] A sending unit 602 is used to provide at least one blind box instance specification to the user based on the instance creation request, each blind box instance specification having a partial specification configuration required for creating the instance;
[0105] The receiving unit 601 is further configured to receive a user's selection of a first blind box instance specification, where the at least one blind box instance specification includes the first blind box instance specification;
[0106] The processing unit 603 is configured to select a target instance specification from multiple instance specifications that meet the first blind box instance specification, where the target instance specification has all specification configurations required to create an instance;
[0107] The processing unit 603 is further configured to create an instance for the user according to the target instance specification.
[0108] Optionally, the detailed implementation process of the receiving unit 601 receiving the instance creation request is shown in Figure 2 The relevant contents of step 202 in the method 200 are not described in detail here.
[0109] Optionally, the sending unit 602 provides the user with at least one blind box instance specification. Figure 2 The relevant contents of step 203 in the method 200 are not described in detail here.
[0110] Optionally, the detailed implementation process of the receiving unit 601 receiving the user's selection of the first blind box instance specification can be found in Figure 2 The relevant contents of step 204 in the method 200 are not described in detail here.
[0111] Optionally, the processing unit 603 selects a target instance specification from multiple instance specifications that meet the first blind box instance specification. For a detailed implementation process, see Figure 2 The relevant contents of step 205 in the method 200 are not described in detail here.
[0112] Optionally, the detailed implementation process of the processing unit 603 creating an instance for the user according to the target instance specification is shown in Figure 2 The relevant contents of step 206 in the method 200 are not described in detail here.
[0113] Optionally, the first blind box instance specifications include one or more of the following specification configurations: hardware resource version, number of central processing units CPU, memory size, hard disk size, application scenario, service level agreement SLA, the ratio between the number of CPUs and the memory size, CPU architecture, geographical attributes or application time period.
[0114] Optionally, the instance includes a virtual machine or a container.
[0115] Optionally, the processing unit 603 is configured to:
[0116] Based on the cost corresponding to each of the multiple instance specifications, a target instance specification is selected from the multiple instance specifications, and the cost corresponding to each instance specification is dynamically set based on the idle resource situation included in the resource pool corresponding to each instance specification.
[0117] Optionally, the processing unit 603 selects a target instance specification from the multiple instance specifications based on the cost corresponding to each instance specification in the multiple instance specifications. For a detailed implementation process, see Figure 2 The relevant contents of step 205 in the method 200 are not described in detail here.
[0118] Optionally, the sending unit 602 is further configured to provide the user with a price of at least one blind box instance specification;
[0119] The receiving unit 602 is used to receive a user's selection of a first blind box instance specification based on a price of at least one blind box instance specification.
[0120] Optionally, the detailed implementation process of the sending unit 602 providing the user with the price of at least one blind box instance specification is as follows Figure 2 The relevant contents of step 203 in the method 200 are not described in detail here.
[0121] Optionally, the receiving unit 601 receives the user's selection of the first blind box instance specification based on the price of at least one blind box instance specification. Figure 2 The relevant contents of step 204 in the method 200 are not described in detail here.
[0122] The device 600 can be implemented by software or hardware. As an example, the implementation of the device 600 is described below.
[0123] Module is an example of a software functional unit, and the device 600 may include code running on a computing instance. Among them, the computing instance may be at least one of the computing devices such as a physical host (computing device), a virtual machine, and a container. Furthermore, the above-mentioned computing device may be one or more. For example, the device 600 may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the application can be distributed in the same region or in different regions. The multiple hosts / virtual machines / containers used to run the code can be distributed in the same AZ or in different AZs, and each AZ includes a data center or multiple data centers with close geographical locations. Among them, usually a region can include multiple AZs.
[0124] Similarly, multiple hosts / virtual machines / containers used to run the code can be distributed in the same VPC or in multiple VPCs. Usually, a VPC is set up in a region. For cross-region communication between two VPCs in the same region and between VPCs in different regions, a communication gateway must be set up in each VPC to achieve interconnection between VPCs through the communication gateway.
[0125] As an example of a hardware functional unit, the device 600 may include at least one computing device, such as a server, etc. Alternatively, the device 600 may also be a device implemented by ASIC or PLD, etc. The PLD may be implemented by CPLD, FPGA, GAL or any combination thereof.
[0126] The multiple computing devices included in the apparatus 600 may be distributed in the same region or in different regions. The multiple computing devices included in the apparatus 600 may be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in the apparatus 600 may be distributed in the same VPC or in multiple VPCs. The multiple computing devices may be any combination of computing devices such as servers, ASICs, PLDs, CPLDs, FPGAs, and GALs.
[0127] In an embodiment of the present application, the device includes at least one blind box instance specification, each blind box instance rule corresponds to multiple instance specifications, and for each blind box instance specification, the blind box instance specification is a partial specification configuration required to create an instance, and the multiple instance specifications corresponding to the blind box instance specification are all the specification configurations required to create an instance. Therefore, the number of the at least one blind box instance specification is much smaller than the number of instance specifications in the device. In this way, when the user needs to create an instance, the sending unit provides the user with the at least one blind box instance specification. Since the number of blind box instance specifications is small, it is convenient for the user to select the first blind box instance specification from the at least one blind box instance specification, reducing the burden on the user. In addition, since the number of blind box instance specifications is small, it will not increase the management burden of the device.
[0128] In addition, the processing unit obtains multiple blind box instances that meet the first blind box instance specifications based on the first blind box instance specifications, selects a blind box instance as the target blind box instance based on the cost of each blind box instance, and the cost of each blind box instance is dynamically set based on the idle resources included in the resource pool corresponding to each blind box instance. In the first resource pool corresponding to the target blind box instance, resources are allocated based on the target blind box instance, and instances are created using the allocated resources. In this way, the device can flexibly control the resources in the multiple resource pools in the device, load balancing of the multiple resource pools can be achieved, the device can be flexibly operated and managed, the difficulty of operation and management can be reduced, and load balancing can be performed in multiple resource pools.
[0129] See also Figure 7 , the present application embodiment provides a computing device 700. For example, the computing device 700 may be Figure 1 The cloud computing platform in the network architecture shown includes devices, or Figure 2 A device in a cloud computing platform of the method 200 is shown.
[0130] like Figure 7As shown, computing device 700 includes: bus 702, processor 704, memory 706 and communication interface 708. Processor 704, memory 706 and communication interface 708 communicate through bus 702. Computing device 700 can be a server or a terminal device. It should be understood that the present application does not limit the number of processors and memories in computing device 700.
[0131] The bus 702 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 The bus 702 may include a path for transmitting information between various components of the computing device 700 (eg, the memory 706, the processor 704, and the communication interface 708).
[0132] The processor 704 may include any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).
[0133] The memory 706 may include a volatile memory, such as a random access memory (RAM). The processor 704 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).
[0134] See also Figure 7 , the memory 706 stores executable program codes, and the processor 704 executes the executable program codes to respectively implement Figure 6 The functions of the receiving unit 601, the sending unit 602 and the processing unit 603 in the device 600 shown in the figure are implemented to realize the method provided by any of the above embodiments. That is, the memory 706 stores instructions for executing the method provided by any of the above embodiments. Or,
[0135] The communication interface 708 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 700 and other devices or communication networks.
[0136] The embodiment of the present application also provides a cluster. The cluster includes at least one computing device. The computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smart phone.
[0137] like Figure 8 As shown, the cluster includes at least one computing device 700. The memory 706 in one or more computing devices 700 in the cluster may store the same instructions for executing the method provided by any of the above embodiments.
[0138] In some possible implementations, the memory 706 of one or more computing devices 700 in the cluster may also store partial instructions for executing the above instance creation method. In other words, the combination of one or more computing devices 700 may jointly execute instructions for executing the instance creation method provided in any of the above embodiments.
[0139] In some possible implementations, one or more computing devices in the cluster may be connected via a network, which may be a wide area network or a local area network. Fig. 9 A possible implementation is shown. Fig. 9 As shown, two computing devices 700A and 700B are connected via a network. Specifically, they are connected to the network via a communication interface in each computing device.
[0140] In this type of possible implementation, the memory 706 in the computing device 700A stores the execution Figure 6 Instructions for the functions of the processing unit 603 in the illustrated embodiment. Meanwhile, the memory 706 in the computing device 700B stores instructions for executing the functions of the processing unit 603 in the illustrated embodiment. Figure 6 Instructions for the functions of the receiving unit 601 and the sending unit 602 in the illustrated embodiment.
[0141] It should be understood that Fig. 9 The functions of the computing device 700A shown in FIG. 7 may also be completed by multiple computing devices 700. Similarly, the functions of the computing device 700B may also be completed by multiple computing devices 700.
[0142] The present application embodiment also provides another cluster. The connection relationship between the computing devices in the cluster can be similar to that of Fig. 9The connection mode of the cluster of the acquisition function is different in that the memory 706 in one or more computing devices 700 in the cluster may store the same instructions for executing the method provided in any of the above embodiments.
[0143] In some possible implementations, the memory 706 of one or more computing devices 700 in the cluster may also store partial instructions for executing the method provided in any of the above embodiments. In other words, the combination of one or more computing devices 700 may jointly execute instructions for executing the method provided in any of the above embodiments.
[0144] The present application also provides a computer program product including instructions. The computer program product may be software or a program product including instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on at least one computing device, the at least one computing device executes the method provided in any of the above embodiments.
[0145] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by a computing device or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk). The computer-readable storage medium includes instructions that instruct the computing device to execute the method provided in any of the above embodiments.
[0146] 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.
[0147] 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 principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for creating an instance, characterized in that: The method is applied to a cloud computing platform, the cloud computing platform includes a plurality of servers, the plurality of servers provide instances for creating a plurality of instance specifications, and the method includes: Receive a user's instance creation request; Based on the instance creation request, providing at least one blind box instance specification to the user, each blind box instance specification having a partial specification configuration required for creating an instance; receiving a selection of a first blind box instance specification by the user, wherein the at least one blind box instance specification includes the first blind box instance specification; Selecting a target instance specification from multiple instance specifications that meet the first blind box instance specification, wherein the target instance specification has all specification configurations required to create an instance; An instance is created for the user according to the target instance specification.
2. The method according to claim 1, characterized in that The first blind box instance specifications include one or more of the following specification configurations: hardware resource version, number of central processing units CPU, memory size, hard disk size, application scenario, service level agreement SLA, the ratio between the number of CPUs and the memory size, CPU architecture, geographical attributes or application time period.
3. The method according to claim 1 or 2, characterized in that The instances include virtual machines or containers.
4. The method according to any one of claims 1 to 3, characterized in that: The step of selecting a target instance specification from a plurality of instance specifications that meet the first blind box instance specification includes: Based on the cost corresponding to each of the multiple instance specifications, a target instance specification is selected from the multiple instance specifications, and the cost corresponding to each instance specification is dynamically set based on the idle resource situation included in the resource pool corresponding to each instance specification.
5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: Providing the user with a price for the at least one blind box instance specification; The receiving the user's selection of the first blind box instance specification includes: Receive the user's selection of a first blind box instance specification based on a price of the at least one blind box instance specification.
6. A device for creating an instance, characterized in that: The device includes a plurality of servers, the plurality of servers providing instances for creating a plurality of instance specifications, and the device includes: A receiving unit, used for receiving a user's instance creation request; A sending unit, configured to provide at least one blind box instance specification to the user based on the instance creation request, each blind box instance specification having a partial specification configuration required for creating an instance; The receiving unit is further configured to receive a selection of a first blind box instance specification by the user, wherein the at least one blind box instance specification includes the first blind box instance specification; A processing unit, configured to select a target instance specification from a plurality of instance specifications that meet the first blind box instance specification, wherein the target instance specification has all specification configurations required to create an instance; The processing unit is further configured to create an instance for the user according to the target instance specification.
7. The device according to claim 6, characterized in that The first blind box instance specifications include one or more of the following specification configurations: hardware resource version, number of central processing units CPU, memory size, hard disk size, application scenario, service level agreement SLA, the ratio between the number of CPUs and the memory size, CPU architecture, geographical attributes or application time period.
8. The device according to claim 6 or 7, characterized in that The instances include virtual machines or containers.
9. The device according to any one of claims 6 to 8, characterized in that: The processing unit is used for: Based on the cost corresponding to each of the multiple instance specifications, a target instance specification is selected from the multiple instance specifications, and the cost corresponding to each instance specification is dynamically set based on the idle resource situation included in the resource pool corresponding to each instance specification.
10. The device according to any one of claims 6 to 9, characterized in that: The sending unit is further used to provide the user with a price of the at least one blind box instance specification; The receiving unit is used to receive the user's selection of the first blind box instance specification based on the price of the at least one blind box instance specification.
11. A computing device cluster, characterized in that: The cluster includes at least one computing device, each of the at least one computing device includes at least one processor and at least one memory, and the at least one memory stores computer-readable instructions; the at least one processor executes the computer-readable instructions so that the cluster executes the method according to any one of claims 1 to 5.
12. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
13. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
