+

WO2025011247A9 - Method and apparatus for creating cloud service instance - Google Patents

Method and apparatus for creating cloud service instance Download PDF

Info

Publication number
WO2025011247A9
WO2025011247A9 PCT/CN2024/098721 CN2024098721W WO2025011247A9 WO 2025011247 A9 WO2025011247 A9 WO 2025011247A9 CN 2024098721 W CN2024098721 W CN 2024098721W WO 2025011247 A9 WO2025011247 A9 WO 2025011247A9
Authority
WO
WIPO (PCT)
Prior art keywords
resource pool
cloud service
computing resources
logical resource
service instance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
PCT/CN2024/098721
Other languages
French (fr)
Chinese (zh)
Other versions
WO2025011247A1 (en
Inventor
胡亦秋
王祥丰
周文礼
苏利
朱磊
崔昊川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Cloud Computing Technologies Co Ltd
Original Assignee
Huawei Cloud Computing Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Cloud Computing Technologies Co Ltd filed Critical Huawei Cloud Computing Technologies Co Ltd
Publication of WO2025011247A1 publication Critical patent/WO2025011247A1/en
Publication of WO2025011247A9 publication Critical patent/WO2025011247A9/en
Pending legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • G06F9/5077Logical partitioning of resources; Management or configuration of virtualized resources
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]

Definitions

  • the present application relates to the field of computers, and in particular to a method and device for creating a cloud service instance.
  • the remaining available amount of a service can be simply obtained by subtracting the amount of resources that have been issued from the total computing resources in the resource pool.
  • the resource pool can issue multiple types of services, it is impossible to assess how much resources the hybrid resource pool can issue to each type of service, resulting in unstable resource expectations for various services. This will also cause unbalanced utilization of computing resources in the hybrid resource pool and resource squeezes between heterogeneous services, ultimately leading to weak risk resistance and high operating costs for the hybrid resource pool.
  • the method and device for creating a cloud service instance improve the balance of computing resource utilization in a hybrid resource pool, ensure the stability of resource expectations of various heterogeneous services deployed in the hybrid resource pool, thereby improving the risk resistance of the hybrid resource pool and reducing operating costs.
  • a method for creating a cloud service instance is provided, which is applied to a cloud management platform, and the cloud management platform is used to manage the physical resource pool of a tenant.
  • the method may include: the cloud management platform receives a service request from a tenant, and the service request is used to create a target cloud service instance using computing resources in a physical resource pool, and the physical resource pool is configured as a plurality of logical resource pools, and the plurality of logical resource pools are used to provide different types of cloud service instances, and each type of cloud service instance requires a different proportion of computing resources, and the computing resources include a central processing unit (CPU) and a memory; in response to the service request, a target logical resource pool matching the type of the target cloud service instance is determined from the plurality of logical resource pools of the physical resource pool; and the target cloud service instance is created using the computing resources in the target logical resource pool.
  • CPU central processing unit
  • the physical resource pool is abstracted into multiple logical resource pools.
  • One logical resource pool is used to provide one type of cloud service instance.
  • the internal operation of the logical resource pool can be similar to that of a single unit.
  • the amount of resources issued in the logical resource pool it is possible to know how much computing resources can be issued to the corresponding type of cloud service instance, thereby ensuring the stability of resource expectations of each type of cloud service instance in the mixed resource pool.
  • the number of computing resources allocated to each logical resource pool, and heterogeneous services corresponding to different logical resource pools can ensure balanced utilization of computing resources in the mixed resource pool, avoiding resource runs between heterogeneous services. Therefore, the solution provided by the present application realizes the operation and management after heterogeneous services are deployed in a physical resource pool, improves the risk resistance of the resource pool, and reduces operating costs.
  • the method provided by the present application further includes: after a trigger condition is met, the cloud management platform adjusts the number of computing resources corresponding to at least one logical resource pool in the physical resource pool to increase the amount of cloud service instances of the first type that can be issued, where the first type of cloud service instance is a logical resource pool in the physical resource pool, any one of the different types of cloud service instances provided. Under the trigger condition, the computing resources contained in the logical resource pool are adjusted to improve the computing resource utilization of the physical resource pool.
  • the trigger condition includes one or more of the following: a preset time, a preset period, the available amount of the first type of cloud service instance is less than a first threshold, and the allocation rate of the second type of cloud service instance exceeds a second threshold.
  • the second type of cloud service instance is a logical resource pool in a physical resource pool, and is any one of the different types of cloud service instances provided.
  • the method provided in the present application further includes: the cloud management platform receives the trigger conditions and capacity planning goals input by the tenant, and the capacity planning goals include: the maximum number of cloud service instances of the first type that can be issued.
  • the cloud management platform adjusts the number of computing resources allocated to at least one logical resource pool in the physical resource pool. Specifically, it can be implemented as follows: after the trigger condition is met, the cloud management platform performs mathematical modeling and solves according to the capacity planning target to obtain a resource allocation plan; according to the obtained resource allocation plan, the number of computing resources allocated to at least one logical resource pool in the physical resource pool is adjusted. By establishing a mathematical model optimization solution, the resource allocation plan that best matches the capacity planning target is determined, so that the re-planning effect is better.
  • the method provided by the present application also includes: the cloud management platform receives capacity planning constraints input by the tenant, and the capacity planning constraints include one or more of the following: the number of physical hosts whose resource allocations are adjusted does not exceed the third threshold, and the change in the amount of cloud service instances of the third type that can be issued between two adjacent adjustments does not exceed the fourth threshold.
  • the third type of cloud service instance is any one of the above-mentioned different types of cloud service instances.
  • the cloud management platform adjusts the number of computing resources allocated to at least one logical resource pool in the physical resource pool, including: after the trigger condition is met, the cloud management platform adjusts the number of computing resources allocated to at least one logical resource pool in the physical resource pool according to the capacity planning constraints.
  • the method provided by the present application further includes: before the cloud management platform receives the service request, the cloud management platform receives the configuration items about the physical resource pool input by the tenant, the configuration items are used to indicate multiple logical resource pools, the number of computing resources allocated to each logical resource pool, and the type of cloud service instance corresponding to each logical resource pool. Then, the cloud management platform configures the physical resource pool into multiple logical resource pools according to the configuration items.
  • the above configuration item is also used to indicate: the identifier of the physical machine corresponding to each logical resource pool in the physical resource pool.
  • the tenant specifies the physical machine that provides computing resources to the logical resource pool, which improves the tenant experience.
  • the method provided by the present application further includes: providing a visualization interface, the visualization interface being used to display the values of the observation indicators of the physical resource pool and/or the values of the observation indicators of the multiple logical resource pools;
  • the observation indicators of the physical resource pool include one or more of the following indicators: the number of types of cloud service instances provided by the physical resource pool, the total amount of computing resources in the physical resource pool, the number of unissued computing resources, the number of issued computing resources, and the allocation rate of computing resources;
  • the observation indicators of the multiple logical resource pools include one or more of the following indicators: the total amount of computing resources in each logical resource pool, the number of unissued computing resources, the number of issued computing resources, and the allocation rate of computing resources.
  • the method provided in the present application further includes: receiving an add operation of a tenant, where the add operation is used to input an observation indicator.
  • a method for configuring a physical resource pool is provided, which is applied to a cloud management platform, and the cloud management platform is used to manage the physical resource pool of a tenant.
  • the method may include: the cloud management platform receives a configuration item about the physical resource pool input by the tenant, and the configuration item is used to indicate a plurality of logical resource pools, the number of computing resources allocated to each logical resource pool, and the type of cloud service instance corresponding to each logical resource pool. Then, the cloud management platform configures the physical resource pool into a plurality of logical resource pools according to the configuration item.
  • the above configuration item is also used to indicate: the identifier of the physical machine corresponding to each logical resource pool in the physical resource pool.
  • the tenant specifies the physical machine that provides computing resources to the logical resource pool, which improves the tenant experience.
  • a device for creating a cloud service instance is provided, the device being deployed on a cloud management platform, the cloud management platform being used to manage a tenant's physical resource pool.
  • the device for creating a cloud service instance comprises: a receiving unit, a determining unit, and a creating unit. Among them:
  • a receiving unit is used to receive a tenant's service request, where the service request is used to create a target cloud service instance using computing resources in a physical resource pool.
  • the physical resource pool is configured as multiple logical resource pools, which are used to provide different types of cloud service instances. Each type of cloud service instance requires a different proportion of computing resources, including CPU and memory.
  • the determining unit is configured to determine, in response to a service request, a target logical resource pool that matches the type of the target cloud service instance from a plurality of logical resource pools in the physical resource pool.
  • the creation unit is used to create a target cloud service instance by using computing resources in the target logical resource pool.
  • the device for creating a cloud service instance provided in the second aspect is used to execute the functions of the cloud management platform in the above-mentioned first aspect.
  • the specific implementation can refer to the description of the above-mentioned first aspect or any possible implementation method, which will not be repeated here.
  • a computing device which includes a memory and at least one processor, the memory being used to store a set of computer instructions; when the processor executes the computer instructions, the computing device executes the operating steps described in the method described in the first aspect or any possible implementation method.
  • a computer-readable storage medium comprising: computer software instructions; when the computer software instructions are executed in a computer, the computer executes the operating steps of the method described in the first aspect or any possible implementation method.
  • a computer program product which, when executed on a computer, enables the computer to execute the operating steps of the method described in the first aspect or any possible implementation manner.
  • FIG1 is a schematic diagram of a physical resource pool
  • FIG2 is a schematic diagram of the principle of the solution provided in the embodiment of the present application.
  • FIG3 is a schematic diagram of the architecture of a cloud management platform provided in an embodiment of the present application.
  • FIG4 is a schematic diagram of the structure of a computing device provided in an embodiment of the present application.
  • FIG5 is a flow chart of a method for creating a cloud service instance provided in an embodiment of the present application.
  • FIG6 is a flow chart of a method for configuring a physical resource pool according to an embodiment of the present application.
  • FIG7 is a schematic diagram of a configuration interface provided in an embodiment of the present application.
  • FIG8 is a flow chart of another method for creating a cloud service instance provided in an embodiment of the present application.
  • FIG9 is a schematic diagram of a visualization interface provided in an embodiment of the present application.
  • FIG10 is a schematic diagram of the working principle of the solution provided in an embodiment of the present application.
  • FIG11 is a schematic diagram of the structure of an apparatus for creating a cloud service instance provided in an embodiment of the present application.
  • FIG12 is a schematic diagram of the structure of a computing device cluster provided in an embodiment of the present application.
  • FIG. 13 is a schematic diagram of an implementation method of a computing device cluster provided in an embodiment of the present application.
  • words such as “first” and “second” are used to distinguish between identical or similar items with substantially identical functions and effects.
  • words such as “first” and “second” do not limit the quantity and execution order, and words such as “first” and “second” do not necessarily limit them to be different. There is no order of precedence or size between the technical features described by the "first” and “second”.
  • words such as “exemplary” or “for example” are used to indicate examples, illustrations or descriptions. Any embodiment or design described as “exemplary” or “for example” in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as “exemplary” or “for example” is intended to present related concepts in a concrete way for easy understanding.
  • At least one can also be described as one or more, and multiple can be two, three, four or more, which is not limited in the present application.
  • the network architecture and scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Ordinary technicians in this field can know that with the evolution of network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
  • Computing resources refer to the hardware resources provided by computers for computing.
  • Computing resources include but are not limited to: central processing unit (CPU), memory, bandwidth, graphics processing unit (GPU) or others.
  • Cloud service refers to obtaining required services through the Internet in an on-demand and easily scalable manner.
  • a cloud service instance is a collection of resources obtained through cloud services.
  • a cloud service instance can be a virtual machine, container, or other form.
  • Heterogeneous services refer to cloud services with different computing resource ratios.
  • a virtual machine with a central processing unit (CPU) memory ratio of 1:2 and a virtual machine with a CPU memory ratio of 1:4 are heterogeneous services.
  • the types of cloud services described in this application can be infrastructure as a service (IaaS), platform as a service (PaaS), software as a service (SaaS), function as a service (FaaS), etc.
  • IaaS infrastructure as a service
  • PaaS platform as a service
  • SaaS software as a service
  • FaaS function as a service
  • a co-location resource pool refers to a scenario where two or more heterogeneous services are deployed in the same physical resource pool.
  • Figure 1 shows a scenario of a co-location resource pool. As shown in Figure 1, multiple types of cloud services are deployed in the physical resource pool shown in (a) of Figure 1, and the computing resources allocated to each cloud service are shown in (b) of Figure 1.
  • Resource pool unification refers to a deployment method in which multiple resource pools that are managed by a single operation department and provide resources to different types of cloud services are mixed and deployed in the same physical resource pool for operation and management.
  • Capacity planning refers to allocating computing resources for different types of heterogeneous services in a co-located resource pool to avoid resource squeezes between heterogeneous services.
  • a resource pool with single-unit operation management (a resource pool that only provides resources to one type of cloud service)
  • the total resource amount of the resource pool minus the amount that has been issued can only get the remaining computing resources of the resource pool, and it is impossible to evaluate how much resources can be issued to each type of cloud service.
  • This causes resource runs between heterogeneous services. For example, the surplus resources allocated to a certain type of cloud service cause insufficient resources for other types of cloud services, which ultimately makes the resource expectations of various types of cloud service instances unstable, which brings challenges to the operation of cloud service instances.
  • the present application provides a method for creating a service instance, in which a physical resource pool is abstracted into multiple logical resource pools, and a logical resource pool is used to provide a type of cloud service instance.
  • the internal operation of the logical resource pool can be similar to that of a single unit.
  • each logical resource pool corresponds to the number of allocated computing resources, and heterogeneous services correspond to different logical resource pools, so that the computing resources in the mixed resource pool can be balanced, avoiding resource runs between heterogeneous services. Therefore, the solution provided by the present application realizes the operation and management after heterogeneous services are deployed in a physical resource pool, improves the weak risk resistance of the resource pool, and reduces the operating costs.
  • the physical resource pool provided by the X-type physical machine is abstracted into multiple logical resource pools of different types, and the multiple logical resource pools are used to provide different types of cloud service instances.
  • the cloud management platform includes a management device 301, a data center 302, and a scheduler 303.
  • the cloud management platform is used to manage the physical resource pool of tenants.
  • the data center 302 includes multiple physical machines 3021.
  • the computing resources of the data center 302 are provided by the physical machines 3021 included therein, and the computing resources of the data center 302 form a resource pool.
  • the data center 302 can deploy at least two different types of cloud services, namely heterogeneous services, and the resource pool formed by the data center 302 is called a co-location resource pool.
  • the resource pool of the data center 302 may be a resource pool of a public cloud, a resource pool of a private cloud, or a dedicated resource pool, which is not limited in the embodiments of the present application.
  • the management device 301, the data center 302, and a plurality of physical machines 3021 included in the data center 302 are connected via a network.
  • the management device 301 is used to manage and operate the resource pool formed by the data center 302.
  • the resource pool management system 304 is deployed on the management device 301.
  • the tenant operates the resource pool management system 304 to control the management device 301 and manage and operate the resource pool formed by the data center 302.
  • the scheduler 303 is used to receive a service request for creating a cloud service instance initiated by a tenant, and create a cloud service instance using computing resources in the data center 302 according to the service request.
  • the architecture of the cloud management platform shown in FIG3 can add or reduce network elements according to actual needs.
  • the embodiments of the present application are not limited to this, and FIG3 is for illustration only.
  • the management device 301 can execute the solution provided in the present application, abstract the physical resource pool into multiple logical resource pools, and the multiple logical resource pools are used to provide different types of cloud service instances, and manage and operate the resource pool of the data center 302.
  • the specific management process can be described in the subsequent method embodiments and will not be repeated here.
  • an embodiment of the present application provides a computing device 400.
  • the computing device 400 may be the management device 301 or the scheduler 303 illustrated in FIG. 2 or FIG. 3 .
  • computing device 400 may include bus 402, processor 404, memory 406, and communication interface 408.
  • Processor 404, memory 406, and communication interface 408 communicate via bus 402.
  • Computing device 400 may 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 400.
  • the bus 402 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc.
  • the bus may be divided into an address bus, a data bus, a control bus, etc.
  • FIG4 is represented by only one line, but does not mean that there is only one bus or one type of bus.
  • Bus 404 may include a pathway for transferring information between various components of computing device 400 (eg, memory 406 , processor 404 , communication interface 408 ).
  • Processor 404 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).
  • CPU central processing unit
  • GPU graphics processing unit
  • MP microprocessor
  • DSP digital signal processor
  • the memory 406 may include a volatile memory, such as a random access memory (RAM).
  • the processor 404 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).
  • ROM read-only memory
  • HDD hard disk drive
  • SSD solid state drive
  • the communication interface 403 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 100 and other devices or a communication network.
  • a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 100 and other devices or a communication network.
  • the memory 406 stores executable program codes
  • the processor 404 executes the executable program codes to implement the following functions:
  • the memory 406 stores an executable program code
  • the processor 404 executes the executable program code to implement the following functions:
  • Configuration items about physical resource pools input by tenants where the configuration items are used to indicate multiple logical resource pools, the number of computing resources allocated to each logical resource pool, and the type of cloud service instance corresponding to each logical resource pool; configure the physical resource pool into multiple logical resource pools according to the configuration items.
  • an embodiment of the present application provides a method for creating a cloud service instance, which is applied to a cloud management platform (e.g., the cloud management platform shown in FIG3), and the cloud management platform is used to manage the physical resource pool of the tenant.
  • the physical resource pool deploys multiple types of cloud service instances (heterogeneous services) with different computing resource ratios, that is, the physical resource pool is a mixed resource pool.
  • the physical resource pool is a mixed resource pool, that is, the physical resource pool is used to provide multiple different types of cloud service instances.
  • the method for creating a cloud service instance may include:
  • a cloud management platform receives a service request from a tenant of a physical resource pool, where the service request is used to create a target cloud service instance.
  • the physical resource pool is configured as multiple logical resource pools, which are used to provide different types of cloud service instances. Each type of cloud service instance requires a different proportion of computing resources, including CPU and memory. Different logical resource pools are isolated from each other.
  • each logical resource pool can be isolated by software isolation.
  • the cloud management platform can configure the physical resource pool into multiple logical resource pools according to actual needs.
  • the specific configuration process can refer to the process of configuring the physical resource pool shown in Figure 6 below.
  • the cloud management platform can also configure the physical resource pool into multiple logical resource pools in other ways, such as configuring the physical resource pool into multiple logical resource pools according to statically configured configuration items.
  • the embodiment of the present application does not limit the process of configuring the physical resource pool by the cloud management platform.
  • the service request may include a type identifier of the target cloud service instance.
  • the specific form and content of the type identifier are not limited in the embodiments of the present application.
  • the service request may include the computing resource requirements (eg, CPU-to-memory ratio) of the target cloud service instance, and different computing resource requirements indicate different types of cloud service instances.
  • computing resource requirements eg, CPU-to-memory ratio
  • the cloud management platform determines a target logical resource pool that matches the type of the target cloud service instance from multiple logical resource pools in the physical resource pool.
  • the type of cloud service instance provided by each logical resource pool in the physical resource pool is the type of cloud service instance matched by the logical resource pool. Therefore, the target logical resource pool that matches the type of the target cloud service instance is the logical resource pool used to provide the type of the target cloud service instance.
  • the cloud management platform uses the computing resources in the target logical resource pool to create a target cloud service instance.
  • the cloud management platform can schedule computing resources in the target logical resource pool and create a target cloud service instance according to the configuration of the target cloud service instance indicated by the service request.
  • the embodiments of the present application do not limit the creation process.
  • the process from S501 to S503 may be performed by a scheduler deployed in the cloud management platform (eg, scheduler 303 in FIG. 3 ).
  • the physical resource pool is abstracted into multiple logical resource pools.
  • One logical resource pool is used to provide one type of cloud service instance.
  • the internal operation of the logical resource pool can be similar to that of a single unit.
  • the amount of resources issued in the logical resource pool it is possible to know how much computing resources can be issued to the corresponding type of cloud service instance, thereby ensuring the stability of resource expectations of each type of cloud service instance in the mixed resource pool.
  • the number of computing resources allocated to each logical resource pool, and heterogeneous services corresponding to different logical resource pools can ensure balanced utilization of computing resources in the mixed resource pool, avoiding resource runs between heterogeneous services. Therefore, the solution provided by the present application realizes the operation and management after heterogeneous services are deployed in a physical resource pool, improves the risk resistance of the resource pool, and reduces operating costs.
  • an embodiment of the present application also provides a process for configuring a physical resource pool, as shown in FIG6 , which may include processes S601 and S602.
  • the cloud management platform receives configuration items about physical resource pools input by the tenant, where the configuration items are used to indicate multiple logical resource pools, the number of computing resources allocated to each logical resource pool, and the type of cloud service instance corresponding to each logical resource pool.
  • the configuration items are used to indicate multiple logical resource pools, which are used to provide different types of cloud service instances.
  • the cloud management platform can display a configuration interface to the tenant, and the configuration interface includes controls for inputting configuration items.
  • the embodiment of the present application does not limit the style and specific content of the configuration interface.
  • the configuration item is used to indicate multiple logical resource pools, which can be a number N, or an identifier of N logical resource pools, or other forms, which is not limited in this embodiment of the present application.
  • the number N of logical resource pools can be configured according to actual needs and input by the tenant, and this embodiment of the present application is not limited to this.
  • the number N of logical resource pools may be the number of types of cloud service instances supported by the physical resource pool, and a logical resource pool provides computing resources only to one type of cloud service. Different types of cloud service instances require different proportions of computing resources.
  • one logical resource pool is used to provide one type of cloud service instance, and N logical resource pools are used to provide N types of cloud service instances.
  • the number N of logical resource pools may be equal to the number of types of cloud service instances supported by the physical resource pool.
  • the number of computing resources allocated to each logical resource pool refers to the number of various computing resources allocated to each logical resource pool.
  • the computing resources may include CPU, memory, etc.
  • the configuration item indicates the number of computing resources allocated to each logical resource pool, but the configuration item does not limit the specific location of the computing resources allocated to each logical resource pool in the physical resource pool (distributed in which physical hosts).
  • the configuration item indicates not only the number of computing resources allocated to each logical resource pool, but also the identifier of the physical machine corresponding to each logical resource pool.
  • the identifier of the physical machine corresponding to each logical resource pool indicated by the configuration item indicates the physical machine to which the computing resources allocated to the logical resource pool belong.
  • the configuration item may include the number of allocated computing resources corresponding to the first logical resource pool and the identification of the physical machine: CPU 20 for physical machine 1, and memory 200 for physical machine 2.
  • the type of cloud service instance corresponding to each logical resource pool indicated by the configuration item is used to reflect the correspondence between the types of logical resource pools and cloud service instances.
  • a logical resource pool is used to provide a cloud service instance of its corresponding type.
  • the configuration interface displayed by the cloud management platform to the tenant may be as shown in FIG7.
  • a configuration area is included, and the configuration area includes a control 701 and a control 702.
  • the control 701 is used to input the number N of logical resource pools and the number of computing resources allocated to the logical resource pools
  • the control 702 is used to input the type of cloud service instance corresponding to each logical resource pool.
  • the control shown in Fig. 7 includes a drop-down box and an add icon.
  • the drop-down box can be used to select specific input content by pulling down, and the add icon allows the tenant to input the selected and/or input content into the management device.
  • the tenant clicks the arrow icon of the drop-down box included in the control 701
  • the property content of a logical resource pool can be displayed to the tenant.
  • the tenant can complete the configuration of the property of a logical resource pool by manually entering the relevant content and then clicking the add icon of the control 701.
  • the tenant can complete the configuration of the properties of multiple logical resource pools by operating the control 701 multiple times, which is equivalent to inputting the number N of logical resource pools, or equivalent to inputting the configuration items indicating N logical resource pools.
  • the tenant clicks the arrow icon of the drop-down box included in control 702
  • the property content of a cloud service instance can be displayed to the tenant.
  • the tenant can add a corresponding relationship between a type of cloud service instance and a logical resource pool by manually entering relevant content and then clicking the add icon of control 702.
  • the tenant can add a corresponding relationship between multiple types of cloud service instances and logical resource pools by operating control 702 multiple times.
  • FIG. 7 is only an example of the content of a configuration interface.
  • the content in the configuration interface and the style of the configuration interface can be configured according to actual needs.
  • the cloud management platform configures the physical resource pool into multiple logical resource pools according to the configuration items.
  • the cloud management platform configures the physical resource pool according to the configuration items obtained in S601, and divides it (logically divides) into multiple (N) logical resource pools indicated by the configuration items. During the division process, the number of computing resources corresponding to each logical resource pool indicated by the configuration items is allocated, and the resources contained in each logical resource pool are configured.
  • the cloud management platform also obtains the type of cloud service instance corresponding to each logical resource pool based on the configuration items, that is, it establishes a correspondence between the logical resource pool and the type of cloud service instance, so that after receiving a service request to create a cloud service instance, it can schedule resources from the logical resource pool corresponding to the type to create a cloud service instance.
  • the process from S601 to S602 may be performed by a management device deployed in a cloud management platform (eg, scheduler 301 in FIG. 3 ).
  • a management device deployed in a cloud management platform eg, scheduler 301 in FIG. 3 .
  • the cloud management platform has completed the configuration of the physical resource pool and abstracted the physical resource pool into multiple isolated logical resource pools.
  • the method for creating a cloud service instance provided by the present application also includes a process of re-dividing the computing resources of the logical resource pool.
  • the method for creating a cloud service instance provided by the embodiment of the present application may also include S504.
  • the cloud management platform adjusts the quantity of computing resources allocated to at least one logical resource pool in the physical resource pool to increase the amount of cloud service instances of the first type that can be issued.
  • the first type of cloud service instance is any one of the different types of cloud service instances provided by multiple logical resource pools in the physical resource pool.
  • the trigger condition is used to indicate the premise for performing resource reallocation.
  • the content of the trigger condition can be configured according to actual needs, and the embodiment of the present application is not limited to this.
  • the trigger condition may be input by the tenant.
  • the trigger condition may be static content configured in the management device.
  • the triggering condition includes one or more of the following: a preset time, a preset period, the available amount of the first type of cloud service instance is less than a first threshold, and the allocation rate of the second type of cloud service instance exceeds a second threshold.
  • the second type of cloud service instance is any one of different types of cloud service instances provided by multiple logical resource pools in the physical resource pool.
  • the computing resource allocation rate of a cloud service instance refers to the computing resource allocation rate of the logical resource pool used to provide the cloud service instance of this type.
  • the computing resource allocation rate of a logical resource pool refers to the ratio of the computing resources in the logical resource pool that have been allocated to the cloud service instance to the total computing resources in the logical resource pool.
  • the preset time may be X o'clock every day.
  • the preset period may be every Y hours, or every holiday.
  • the fact that the releasable quantity of the first type of cloud service instance is less than the first threshold value may be: the releasable number of cores of a certain type A cloud service instance is less than C cores.
  • the allocation rate of the second type of cloud service instance exceeding the second threshold may be: the ratio of the number of issuable cores of a certain type A cloud service instance to the number of remaining cores in its corresponding logical resource pool exceeds D%.
  • the trigger condition can be configured with a corresponding repartition restriction condition.
  • the cloud management platform performs the resource repartition operation.
  • a reminder message is output to remind the tenant that the trigger condition is met but the restriction condition is not met.
  • the repartition restriction condition may be input by the tenant, or may be pre-configured in the management device.
  • the repartitioning restriction condition may be that the minimum interval is at least F days, or no more than H times within G days, or the number of hosts adjusted in a single replanning does not exceed I.
  • the re-division restriction conditions corresponding to the trigger conditions can be configured according to actual needs, and the embodiments of the present application are not limited to this.
  • the method for creating cloud service resources may further include: the cloud management platform receiving trigger conditions and/or re-division restriction conditions input by the tenant.
  • the tenant may input the trigger condition and/or the repartition restriction condition in the configuration interface displayed by the management device.
  • the configuration interface displayed by the management device to the tenant may be as shown in Figure 7.
  • the configuration interface shown in Figure 7 includes a control 703.
  • the control 703 is used to input a trigger condition and/or a re-division restriction condition.
  • the tenant clicks the arrow icon of the drop-down box included in the control 703, the contents of the trigger conditions and/or re-division restriction conditions that can be configured can be displayed to the tenant, and the tenant can complete the input of the trigger conditions and/or re-division restriction conditions by manually inputting the relevant contents and then clicking the add icon of the control 703.
  • the tenant can complete the input of multiple trigger conditions and/or re-division restriction conditions by operating the control 703 multiple times.
  • the method for creating a cloud service instance provided in the present application further includes: the cloud management platform receives trigger conditions and capacity planning goals input by the tenant, and the capacity planning goals include: the highest available number of cloud service instances of the first type.
  • the cloud management platform adjusts the number of computing resources allocated to at least one logical resource pool in the physical resource pool.
  • the cloud management platform performs mathematical modeling and solves according to the capacity planning target to obtain a resource allocation plan; according to the resource allocation plan, adjusts the number of computing resources allocated to at least one logical resource pool in the physical resource pool.
  • the capacity planning target is used to indicate the performance of the physical resource pool, and the capacity planning target is a standard that must be met by resource redistribution.
  • the capacity planning goal includes the highest available number of cloud service instances of the first type, which means that the optimal number of cloud service instances of the first type is prioritized, and the first type can be configured according to actual needs, which is not limited in the embodiments of the present application.
  • a resource configuration solution is solved in the mathematical model so that the available number of cloud service instances of the first type reaches the maximum value.
  • the optimal distribution amount can be understood as the distribution amount being within an ideal range, or the computing resource allocation rate being within an ideal range.
  • the value of the range can be configured according to actual needs, and the embodiment of the present application is not limited thereto.
  • the tenant may input a capacity planning target in the configuration interface.
  • the configuration interface displayed by the cloud management platform to the tenant may be as shown in Figure 7.
  • the configuration interface shown in Figure 7 includes a control 704.
  • the control 704 is used to input the capacity planning target.
  • the tenant clicks the arrow icon of the drop-down box included in the control 704
  • the content of the configurable capacity planning target can be displayed to the tenant, and the tenant can complete the input of the capacity planning target by manually entering the relevant content and then clicking the add icon of the control 704.
  • the tenant can complete the input of multiple capacity planning targets by operating the control 704 multiple times.
  • the method for creating a cloud service instance provided in the present application further includes: the cloud management platform receiving capacity planning constraint conditions input by the tenant.
  • the capacity planning constraint condition is used to indicate the impact on the performance of the physical resource pool before and after the adjustment.
  • the capacity planning constraint condition includes one or more of the following: the number of physical hosts whose resource allocation is adjusted does not exceed a third threshold, and the change in the available quantity of the third type of cloud service instance between two adjacent adjustments does not exceed a fourth threshold.
  • the third type of cloud service instance is any one of the above different types of cloud service instances.
  • the cloud management platform adjusts the number of computing resources corresponding to the allocation of at least one logical resource pool in the physical resource pool, which can be specifically implemented as follows: after the trigger condition is met, the cloud management platform adjusts the number of computing resources corresponding to the allocation of at least one logical resource pool in the physical resource pool according to the capacity planning constraint condition. The adjustment process meets the capacity planning constraint condition.
  • the tenant may input capacity planning constraints in a configuration interface displayed by the cloud management platform.
  • the configuration interface displayed by the management device to the tenant may be as shown in Figure 7.
  • the configuration interface shown in Figure 7 includes a control 705.
  • the control 705 is used to input capacity planning constraint conditions.
  • the tenant clicks the arrow icon of the drop-down box included in the control 705
  • the content of the configurable capacity planning constraint conditions can be displayed to the tenant, and the tenant can complete the input of the capacity planning constraint conditions by manually entering the relevant content and then clicking the add icon of the control 705.
  • the tenant can complete the input of multiple capacity planning constraint conditions by operating the control 705 multiple times.
  • the physical resource pool is always in a stable and balanced operating state.
  • the method for creating a cloud service instance provided by the present application may further include a process of visual display. As shown in FIG8 , the method for creating a cloud service instance provided by the embodiment of the present application may further include S505 .
  • the cloud management platform provides a visual interface.
  • the visualization interface is used to display the values of the observation indicators of the physical resource pool and/or the values of the observation indicators of multiple logical resource pools.
  • the observed indicator may be a performance indicator of a physical resource pool or a logical resource pool.
  • the observation indicators of the physical resource pool include one or more of the following indicators: the number of types of cloud service instances provided by the physical resource pool, the total amount of computing resources in the physical resource pool, the number of unissued computing resources of the physical resource pool, the number of issued computing resources of the physical resource pool, and the allocation rate of computing resources of the physical resource pool.
  • the allocation rate of computing resources in the physical resource pool refers to the amount of computing resources in the physical resource pool that have been allocated to the cloud service instance. The ratio of the total number of computing resources in the physical resource pool.
  • the observation indicators of multiple logical resource pools include one or more of the following indicators: the total amount of computing resources in each logical resource pool, the number of unissued computing resources in each logical resource pool, the number of issued computing resources in each logical resource pool, and the allocation rate of computing resources in each logical resource pool.
  • the cloud management platform may obtain the value of the observation indicator in real time or periodically and display it in a visualization interface.
  • the observation indicator may be a pre-configured indicator.
  • the observed indicator is an indicator input by the tenant.
  • the method for creating a cloud service instance may further include: the cloud management platform receives an add operation from a tenant, where the add operation is used to input an observation indicator.
  • the visualization interface provided by the cloud management platform to the tenant may be as shown in Fig. 9.
  • a display area 901 is included, in which the current value of each observation indicator is displayed.
  • the visualization interface shown in FIG. 9 also includes a control 902 for adding an observation indicator.
  • a list of selectable observation indicators can be displayed to the tenant, and the tenant can add the observation indicator by manually selecting the visualization indicator and then clicking the add icon of the control 902.
  • the tenant can add multiple observation indicators by operating the control 902 multiple times.
  • the tenant performs a selection operation (such as a click operation) on each observation indicator displayed in the visualization interface.
  • a selection operation such as a click operation
  • the cloud management platform displays a control menu for the observation indicator.
  • the control menu includes control options for the observation indicator (such as a delete option, a hide option, etc.).
  • the cloud management platform performs the operation indicated by the control option (such as delete or hide) on the observation indicator based on the tenant's selection of the control option.
  • Figure 10 illustrates the working principle of the solution provided by the present application.
  • the cloud management platform includes a capacity planning module, a resource expectation module and a visual monitoring module.
  • the cloud management platform is used to manage and configure computing resources in the physical resource pool according to the configuration of the tenant.
  • the tenant inputs the configuration of the logical resource pool, the configuration of the cloud service instance, the trigger conditions, the restriction conditions, the capacity planning target and other contents.
  • the configuration of the logical resource pool and the configuration of the cloud service instance are processed by the capacity planning module, and the capacity planning module performs resource configuration for the physical resource pool.
  • the capacity planning module transmits the trigger conditions, restriction conditions, capacity planning targets and other contents to the resource expectation module.
  • the resource expectation module evaluates the resource expectation according to the status of the physical resource pool, determines the expectation of different types of cloud service instances (how many resources can be allocated) and outputs them.
  • the visual monitoring module displays a visual interface to the tenant according to the status of the physical resource pool (query acquisition).
  • the cloud management platform includes hardware structures and/or software modules corresponding to the execution of each function.
  • the present invention can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
  • the embodiment of the present invention can divide the functional modules of the cloud management platform according to the above method example.
  • each functional module can be divided according to each function, or two or more functions can be integrated into one processing module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present invention is schematic and is only a logical functional division. There may be other division methods in actual implementation.
  • the present application also provides a device 110 for creating a cloud service instance.
  • the device 110 for creating a cloud service instance may include: a receiving unit 1101, a determining unit 1102, and a creating unit 1103. Among them:
  • the receiving unit 1101 is used to receive a service request from a tenant, where the service request is used to create a target cloud service instance using computing resources in a physical resource pool.
  • the physical resource pool is configured as multiple logical resource pools, which are used to provide different types of cloud service instances. Each type of cloud service instance requires a different proportion of computing resources, and the computing resources include CPU and memory.
  • the determining unit 1102 is configured to determine, in response to a service request, a target logical resource pool that matches the type of the target cloud service instance from a plurality of logical resource pools in the physical resource pool.
  • the creation unit 1103 is used to create a target cloud service instance by using computing resources in the target logical resource pool.
  • the receiving unit 1101, the determining unit 1102, and the creating unit 1103 may all be implemented by software or by hardware. Exemplarily, the implementation of the determining unit 1102 is described below by taking the determining unit 1102 as an example. Similarly, the implementation of the receiving unit 1101 and the creating unit 1103 may refer to the implementation of the determining unit 1102.
  • the module 1102 may include code running on a computing instance.
  • the computing instance may include at least one of a physical host (computing device), a virtual machine, and a container.
  • the computing instance may be one or more.
  • module A may include code running on multiple hosts/virtual machines/containers. It should be noted that the multiple hosts/virtual machines/containers used to run the code may be distributed in the same region or in different regions. Furthermore, the multiple hosts/virtual machines/containers used to run the code may be distributed in the same availability zone (AZ) or in different AZs, each AZ including one data center or multiple data centers with similar geographical locations. Generally, a region may include multiple AZs.
  • AZ availability zone
  • VPC virtual private cloud
  • multiple hosts/virtual machines/containers used to run the code can be distributed in the same virtual private cloud (VPC) or in multiple VPCs.
  • VPC virtual private cloud
  • a VPC is set up in a region.
  • a communication gateway needs to be set up in each VPC to achieve interconnection between VPCs through the communication gateway.
  • module A may include at least one computing device, such as a server, etc.
  • the determination unit 1102 may also be a device implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD).
  • the PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.
  • the multiple computing devices included in the determination unit 1102 may be distributed in the same region or in different regions.
  • the multiple computing devices included in the determination unit 1102 may be distributed in the same AZ or in different AZs.
  • the multiple computing devices included in the determination unit 1102 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.
  • the receiving unit 1101 is used to execute the process S501 in FIG. 5 or FIG. 8; the determining unit 1102 is used to execute the process S502 in FIG. 5 or FIG. 8; and the creating unit 1103 is used to execute the process S503 in FIG. 5 or FIG. 8.
  • the steps that the receiving unit 1101, the determining unit 1102, and the creating unit 1103 are responsible for implementing can be specified as needed, and the receiving unit 1101, the determining unit 1102, and the creating unit 1103 respectively implement different steps in the method for creating a cloud service instance provided in FIG. 5 or FIG. 8 to implement all functions of the device for creating a cloud service instance.
  • the memory 406 in the computing device 400 shown in FIG. 4 provided by the present application stores executable program codes, and the processor 404 executes the executable program codes to respectively implement the functions of the aforementioned determining unit 1102 and the creating unit 1103, thereby implementing the method for creating a cloud service instance illustrated in FIG. 5 or FIG. 8. That is, the memory 406 stores instructions for executing the method for creating a cloud service instance illustrated in FIG. 5 or FIG. 8.
  • the embodiment of the present application also provides a computing device cluster as shown in Figure 12.
  • the computing device cluster includes at least one computing device.
  • the computing device can be a server, such as a central server, an edge server, or a local server in a local data center.
  • the computing device can also be a terminal device such as a desktop, a laptop, or a smart phone.
  • the computing device cluster includes at least one computing device 400.
  • the memory 406 in one or more computing devices 400 in the computing device cluster may store the same instructions for executing the method for creating a cloud service instance illustrated in Fig. 5 or Fig. 8.
  • the memory 406 of one or more computing devices 400 in the computing device cluster may also respectively store partial instructions for executing the method for creating a cloud service instance illustrated in FIG5 or FIG8.
  • the combination of one or more computing devices 400 may jointly execute instructions for executing the method for creating a cloud service instance illustrated in FIG5 or FIG8.
  • the memory 406 in different computing devices 400 in the computing device cluster may store different instructions, which are respectively used to execute part of the functions of the apparatus 110 for creating a cloud service instance. That is, the instructions stored in the memory 406 in different computing devices 400 may implement the functions of one or more modules in the determining unit 1102 and the creating unit 1103.
  • one or more computing devices 400 in the computing device cluster can be connected via a network.
  • the network may be a wide area network or a local area network, etc.
  • FIG. 13 shows a possible implementation. As shown in FIG. 13 , two computing devices 400A and 400B are connected via a network. Specifically, the network is connected via a communication interface in each computing device.
  • the memory 406 in the computing device 400A stores instructions for executing the function of the determination unit 1102.
  • the memory 406 in the computing device 400B stores instructions for executing the function of the creation unit 1103.
  • connection method between the computing device clusters shown in Figure 13 can be considered that the method for creating a cloud service instance provided in this application requires a large amount of data storage, so it is considered to hand over the functions implemented by the creation unit 1103 to the computing device 400B for execution.
  • the functions of the computing device 400A shown in FIG13 may also be completed by multiple computing devices 400.
  • the functions of the computing device 400B may also be completed by multiple computing devices 400.
  • the embodiment of the present application further provides a computer program product including instructions.
  • the computer program product may be a software or program product including instructions that can be run on a computing device or stored in any available medium.
  • the at least one computing device executes the method for creating a cloud service instance illustrated in FIG. 5 or FIG. 8 above.
  • an 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 drive), etc.
  • the computer-readable storage medium includes instructions that instruct the computing device to execute the method for creating a cloud service instance illustrated in Figure 5 or Figure 8 above, or instruct the computing device to execute the method for creating a cloud service instance illustrated in Figure 5 or Figure 8 above.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Stored Programmes (AREA)

Abstract

The present application relates to the field of computers, and provides a method and apparatus for creating a cloud service instance, aiming to improve the balance of utilization of computing resources in a hybrid resource pool and ensure stable resource expectation of various heterogeneous services deployed in the hybrid resource pool, thereby improving the anti-risk capability of the hybrid resource pool and reducing the operation costs. The method comprises: a cloud management platform receiving a service request of a tenant, wherein the service request is used for using computing resources in a physical resource pool to create a target cloud service instance, the physical resource pool is provided with a plurality of logical resource pools, the plurality of logical resource pools are used for providing different types of cloud service instances, and the proportions of computing resources required by the types of cloud service instances are different; in response to the service request, determining, from among the plurality of logical resource pools of the physical resource pool, a target logical resource pool matching the type of the target cloud service instance; and using computing resources in the target logical resource pool to create the target cloud service instance.

Description

一种创建云服务实例的方法及装置A method and device for creating a cloud service instance

本申请要求于2023年07月10日提交国家知识产权局、申请号为202310840577.2、发明名称为“一种计算资源管理方法、装置及计算设备集群”的中国专利申请、以及于2023年11月09日提交国家知识产权局、申请号为202311489551.4、发明名称为“一种创建云服务实例的方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on July 10, 2023, with application number 202310840577.2, and invention name “A computing resource management method, device and computing device cluster”, and the Chinese patent application filed with the State Intellectual Property Office on November 9, 2023, with application number 202311489551.4, and invention name “A method and device for creating a cloud service instance”, all contents of which are incorporated by reference in this application.

技术领域Technical Field

本申请涉及计算机领域,尤其涉及一种创建云服务实例的方法及装置。The present application relates to the field of computers, and in particular to a method and device for creating a cloud service instance.

背景技术Background Art

在云计算领域,云计算数据中心中所涉及到的各种硬件和软件的集合称为资源池,它是灵活管理资源的逻辑抽象。In the field of cloud computing, the collection of various hardware and software involved in a cloud computing data center is called a resource pool, which is a logical abstraction for flexible resource management.

目前,云计算资源池大多以单部资源池进行管理(无论是由云厂商经营的公有云还是客户的私有云、专属云资源池),因此,形成了云服务由多个小资源池组成的现状。但实际上,越大的资源池,能够具有更强的抗风险能力与资源效率,可以实现更低的成本。通过资源池归一技术,将原本单部运营管理的多种资源池,在未来混合部署于同一个物理资源池(混部资源池)进行运营管理,具有很高的商业价值。At present, cloud computing resource pools are mostly managed as a single resource pool (whether it is a public cloud operated by a cloud vendor or a customer's private cloud or exclusive cloud resource pool). As a result, cloud services are composed of multiple small resource pools. But in fact, the larger the resource pool, the stronger the risk resistance and resource efficiency, and the lower the cost. Through resource pool normalization technology, multiple resource pools that were originally operated and managed individually will be deployed in the same physical resource pool (mixed resource pool) for operation and management in the future, which has high commercial value.

在单部资源池中,可以简单地用资源池总计算资源量减去已发放量来得到该类型服务的剩余可发放量。但在混部资源池中,由于该资源池可以发放多种类型的服务,无法评估混部资源池可以向各个类型的服务可以发放多少资源量,导致各类服务资源预期不稳定。这也将造成混部资源池中的计算资源利用不均衡、异质服务间资源挤兑,最终导致混部资源池的抗风险能力弱、运营成本高。In a single resource pool, the remaining available amount of a service can be simply obtained by subtracting the amount of resources that have been issued from the total computing resources in the resource pool. However, in a hybrid resource pool, since the resource pool can issue multiple types of services, it is impossible to assess how much resources the hybrid resource pool can issue to each type of service, resulting in unstable resource expectations for various services. This will also cause unbalanced utilization of computing resources in the hybrid resource pool and resource squeezes between heterogeneous services, ultimately leading to weak risk resistance and high operating costs for the hybrid resource pool.

发明内容Summary of the invention

本申请提供的创建云服务实例的方法及装置,提高混部资源池中的计算资源利用的均衡性,保证部署于混部资源池中的各类异质服务的资源预期稳定,以提高混部资源池的抗风险能力、降低运营成本。The method and device for creating a cloud service instance provided in the present application improve the balance of computing resource utilization in a hybrid resource pool, ensure the stability of resource expectations of various heterogeneous services deployed in the hybrid resource pool, thereby improving the risk resistance of the hybrid resource pool and reducing operating costs.

为达到上述目的,本申请实施例采用如下技术方案:In order to achieve the above-mentioned purpose, the embodiment of the present application adopts the following technical solution:

第一方面,提供一种创建云服务实例的方法,应用于云管理平台,云管理平台用于管理租户的物理资源池。该方法可以包括:云管理平台接收租户的服务请求,该服务请求用于利用物理资源池内的计算资源创建目标云服务实例,物理资源池被配置为多个逻辑资源池,多个逻辑资源池用于提供不同类型的云服务实例,每种类型的云服务实例所需要的计算资源的比例不同,计算资源包括中央处理器(central processing unit,CPU)和内存;响应于所述服务请求,从物理资源池的多个逻辑资源池中确定与目标云服务实例的类型相匹配的目标逻辑资源池;利用目标逻辑资源池内的计算资源,创建目标云服务实例。In a first aspect, a method for creating a cloud service instance is provided, which is applied to a cloud management platform, and the cloud management platform is used to manage the physical resource pool of a tenant. The method may include: the cloud management platform receives a service request from a tenant, and the service request is used to create a target cloud service instance using computing resources in a physical resource pool, and the physical resource pool is configured as a plurality of logical resource pools, and the plurality of logical resource pools are used to provide different types of cloud service instances, and each type of cloud service instance requires a different proportion of computing resources, and the computing resources include a central processing unit (CPU) and a memory; in response to the service request, a target logical resource pool matching the type of the target cloud service instance is determined from the plurality of logical resource pools of the physical resource pool; and the target cloud service instance is created using the computing resources in the target logical resource pool.

通过本申请提供的方案,物理资源池被抽象为多个逻辑资源池,一个逻辑资源池用于提供一种类型的云服务实例,逻辑资源池内部可以类似于单部运营,根据逻辑资源池的已发放资源量即可获知还可以向对应类型的云服务实例发放多少计算资源,就可以保证混部资源池中各个类型的云服务实例的资源预期稳定;在均衡考虑多维度设置配置项中每个逻辑资源池对应分配计算资源的数量,异质服务对应不同的逻辑资源池,就可以保证混部资源池中的计算资源利用均衡,避免了异质服务间的资源挤兑;因此,本申请提供的方案实现了在一个物理资源池中部署异质服务后的运营管理,提高了资源池的抗风险能力弱、降低了运营成本。Through the solution provided by the present application, the physical resource pool is abstracted into multiple logical resource pools. One logical resource pool is used to provide one type of cloud service instance. The internal operation of the logical resource pool can be similar to that of a single unit. According to the amount of resources issued in the logical resource pool, it is possible to know how much computing resources can be issued to the corresponding type of cloud service instance, thereby ensuring the stability of resource expectations of each type of cloud service instance in the mixed resource pool. In the balanced consideration of the multi-dimensional setting configuration items, the number of computing resources allocated to each logical resource pool, and heterogeneous services corresponding to different logical resource pools, can ensure balanced utilization of computing resources in the mixed resource pool, avoiding resource runs between heterogeneous services. Therefore, the solution provided by the present application realizes the operation and management after heterogeneous services are deployed in a physical resource pool, improves the risk resistance of the resource pool, and reduces operating costs.

一种可能的实现方式中,本申请提供的方法还包括:在满足触发条件后,云管理平台调整物理资源池中至少一个逻辑资源池对应分配的计算资源的数量,以提高第一类型的云服务实例的可发放量,第一类型的云服务实例是物理资源池中的逻辑资源池,所提供的不同类型的云服务实例中的任意一种。在触发条件下,调整逻辑资源池包含的计算资源,提高了物理资源池的计算资源利用率。In a possible implementation, the method provided by the present application further includes: after a trigger condition is met, the cloud management platform adjusts the number of computing resources corresponding to at least one logical resource pool in the physical resource pool to increase the amount of cloud service instances of the first type that can be issued, where the first type of cloud service instance is a logical resource pool in the physical resource pool, any one of the different types of cloud service instances provided. Under the trigger condition, the computing resources contained in the logical resource pool are adjusted to improve the computing resource utilization of the physical resource pool.

另一种可能的实现方式中,触发条件包括下述内容中一项或多项:预设时刻、预设周期、第一类型的云服务实例的可发放量小于第一阈值、第二类型的云服务实例的分配率超过第二阈值。第二类型的云服务实例是物理资源池中的逻辑资源池,所提供的不同类型的云服务实例中的任意一种。In another possible implementation, the trigger condition includes one or more of the following: a preset time, a preset period, the available amount of the first type of cloud service instance is less than a first threshold, and the allocation rate of the second type of cloud service instance exceeds a second threshold. The second type of cloud service instance is a logical resource pool in a physical resource pool, and is any one of the different types of cloud service instances provided.

另一种可能的实现方式中,本申请提供的方法还包括:云管理平台接收该租户输入的触发条件和容量规划目标,容量规划目标包括:第一类型的云服务实例的可发放量最高。In another possible implementation, the method provided in the present application further includes: the cloud management platform receives the trigger conditions and capacity planning goals input by the tenant, and the capacity planning goals include: the maximum number of cloud service instances of the first type that can be issued.

另一种可能的实现方式中,在满足触发条件后,云管理平台调整物理资源池中至少一个逻辑资源池对应分配的计算资源的数量,具体可以实现为:在满足触发条件后,云管理平台按照容量规划目标进行数学建模并求解,得到资源配置方案;根据得到的资源配置方案,调整物理资源池中至少一个逻辑资源池对应分配的计算资源的数量。通过建立数学模型优化求解的方式,确定出与容量规划目标最匹配的资源配置方案,使得重规划效果更好。In another possible implementation, after the trigger condition is met, the cloud management platform adjusts the number of computing resources allocated to at least one logical resource pool in the physical resource pool. Specifically, it can be implemented as follows: after the trigger condition is met, the cloud management platform performs mathematical modeling and solves according to the capacity planning target to obtain a resource allocation plan; according to the obtained resource allocation plan, the number of computing resources allocated to at least one logical resource pool in the physical resource pool is adjusted. By establishing a mathematical model optimization solution, the resource allocation plan that best matches the capacity planning target is determined, so that the re-planning effect is better.

另一种可能的实现方式中,本申请提供的方法还包括:云管理平台接收租户输入的容量规划限制条件,容量规划限制条件包括下述内容中一项或多项:被调整了资源分配的物理主机数不超过第三阈值、相邻两次调整之间第三类型的云服务实例的可发放量的变动不超过第四阈值。其中,第三类型的云服务实例是上述不同类型的云服务实例中的任意一种。相应的,在满足触发条件后,云管理平台调整物理资源池中至少一个逻辑资源池对应分配的计算资源的数量,包括:在满足触发条件后,云管理平台根据容量规划限制条件,调整物理资源池中至少一个逻辑资源池对应分配的计算资源的数量。In another possible implementation, the method provided by the present application also includes: the cloud management platform receives capacity planning constraints input by the tenant, and the capacity planning constraints include one or more of the following: the number of physical hosts whose resource allocations are adjusted does not exceed the third threshold, and the change in the amount of cloud service instances of the third type that can be issued between two adjacent adjustments does not exceed the fourth threshold. Among them, the third type of cloud service instance is any one of the above-mentioned different types of cloud service instances. Accordingly, after the trigger condition is met, the cloud management platform adjusts the number of computing resources allocated to at least one logical resource pool in the physical resource pool, including: after the trigger condition is met, the cloud management platform adjusts the number of computing resources allocated to at least one logical resource pool in the physical resource pool according to the capacity planning constraints.

另一种可能的实现方式中,本申请提供的方法还包括:在云管理平台接收服务请求之前,云管理平台接收租户输入的关于物理资源池的配置项,配置项用于指示多个逻辑资源池、每个逻辑资源池对应分配的计算资源的数量、以及每个逻辑资源池对应的云服务实例的类型。然后,云管理平台根据配置项,将物理资源池配置为多个逻辑资源池。In another possible implementation, the method provided by the present application further includes: before the cloud management platform receives the service request, the cloud management platform receives the configuration items about the physical resource pool input by the tenant, the configuration items are used to indicate multiple logical resource pools, the number of computing resources allocated to each logical resource pool, and the type of cloud service instance corresponding to each logical resource pool. Then, the cloud management platform configures the physical resource pool into multiple logical resource pools according to the configuration items.

一种可能的实现方式中,上述配置项还用于指示:物理资源池中每个逻辑资源池对应的物理机的标识。由租户指定向逻辑资源池提供计算资源的物理机,提高了租户体验。In a possible implementation, the above configuration item is also used to indicate: the identifier of the physical machine corresponding to each logical resource pool in the physical resource pool. The tenant specifies the physical machine that provides computing resources to the logical resource pool, which improves the tenant experience.

另一种可能的实现方式中,本申请提供的方法还包括:提供可视化界面,可视化界面用于展示所述物理资源池的观察指标的值,和/或,所述多个逻辑资源池的观察指标的值;In another possible implementation, the method provided by the present application further includes: providing a visualization interface, the visualization interface being used to display the values of the observation indicators of the physical resource pool and/or the values of the observation indicators of the multiple logical resource pools;

所述物理资源池的观察指标包括下述指标中一项或多项:所述物理资源池提供的云服务实例的类型数、所述物理资源池中计算资源的总量、未发放的计算资源的数量、已发放的计算资源的数量、计算资源的分配率;The observation indicators of the physical resource pool include one or more of the following indicators: the number of types of cloud service instances provided by the physical resource pool, the total amount of computing resources in the physical resource pool, the number of unissued computing resources, the number of issued computing resources, and the allocation rate of computing resources;

所述多个逻辑资源池的观察指标包括下述指标中一项或多项:每个逻辑资源池中计算资源的总量、未发放的计算资源的数量、已发放的计算资源的数量、计算资源的分配率。The observation indicators of the multiple logical resource pools include one or more of the following indicators: the total amount of computing resources in each logical resource pool, the number of unissued computing resources, the number of issued computing resources, and the allocation rate of computing resources.

另一种可能的实现方式中,本申请提供的方法还包括:接收租户的添加操作,该添加操作用于输入观察指标。In another possible implementation, the method provided in the present application further includes: receiving an add operation of a tenant, where the add operation is used to input an observation indicator.

第二方面,提供一种配置物理资源池的方法,应用于云管理平台,云管理平台用于管理租户的物理资源池,该方法可以包括:云管理平台接收租户输入的关于物理资源池的配置项,配置项用于指示多个逻辑资源池、每个逻辑资源池对应分配的计算资源的数量、以及每个逻辑资源池对应的云服务实例的类型。然后,云管理平台根据配置项,将物理资源池配置为多个逻辑资源池。In a second aspect, a method for configuring a physical resource pool is provided, which is applied to a cloud management platform, and the cloud management platform is used to manage the physical resource pool of a tenant. The method may include: the cloud management platform receives a configuration item about the physical resource pool input by the tenant, and the configuration item is used to indicate a plurality of logical resource pools, the number of computing resources allocated to each logical resource pool, and the type of cloud service instance corresponding to each logical resource pool. Then, the cloud management platform configures the physical resource pool into a plurality of logical resource pools according to the configuration item.

一种可能的实现方式中,上述配置项还用于指示:物理资源池中每个逻辑资源池对应的物理机的标识。由租户指定向逻辑资源池提供计算资源的物理机,提高了租户体验。In a possible implementation, the above configuration item is also used to indicate: the identifier of the physical machine corresponding to each logical resource pool in the physical resource pool. The tenant specifies the physical machine that provides computing resources to the logical resource pool, which improves the tenant experience.

第三方面,提供一种创建云服务实例的装置,该装置部署于云管理平台,云管理平台用于管理租户的物理资源池。该创建云服务实例的装置,包括:接收单元、确定单元和创建单元。其中:In a third aspect, a device for creating a cloud service instance is provided, the device being deployed on a cloud management platform, the cloud management platform being used to manage a tenant's physical resource pool. The device for creating a cloud service instance comprises: a receiving unit, a determining unit, and a creating unit. Among them:

接收单元,用于接收租户的服务请求,服务请求用于利用物理资源池内的计算资源创建目标云服务实例,物理资源池被配置为多个逻辑资源池,多个逻辑资源池用于提供不同类型的云服务实例,每种类型的云服务实例所需要的计算资源的比例不同,计算资源包括CPU和内存。A receiving unit is used to receive a tenant's service request, where the service request is used to create a target cloud service instance using computing resources in a physical resource pool. The physical resource pool is configured as multiple logical resource pools, which are used to provide different types of cloud service instances. Each type of cloud service instance requires a different proportion of computing resources, including CPU and memory.

确定单元,用于响应于服务请求,从物理资源池的多个逻辑资源池中确定与目标云服务实例的类型相匹配的目标逻辑资源池。The determining unit is configured to determine, in response to a service request, a target logical resource pool that matches the type of the target cloud service instance from a plurality of logical resource pools in the physical resource pool.

创建单元,用于利用目标逻辑资源池内的计算资源,创建目标云服务实例。The creation unit is used to create a target cloud service instance by using computing resources in the target logical resource pool.

需要说明的是,第二方面提供的创建云服务实例的装置,用于执行上述第一方面中云管理平台的功能,具体实现可以参考上述第一方面或任一种可能的实现方式的描述,此处不再赘述。It should be noted that the device for creating a cloud service instance provided in the second aspect is used to execute the functions of the cloud management platform in the above-mentioned first aspect. The specific implementation can refer to the description of the above-mentioned first aspect or any possible implementation method, which will not be repeated here.

第四方面,提供一种计算设备,该计算设备包括存储器和至少一个处理器,存储器用于存储一组计算机指令;当处理器执行计算机指令时,计算设备执行上述第一方面或任一种可能的实现方式描述方法描述的操作步骤。In a fourth aspect, a computing device is provided, which includes a memory and at least one processor, the memory being used to store a set of computer instructions; when the processor executes the computer instructions, the computing device executes the operating steps described in the method described in the first aspect or any possible implementation method.

第五方面,提供一种计算机可读存储介质,包括:计算机软件指令;当计算机软件指令在计算机中运行时,使得计算机执行上述第一方面或任一种可能的实现方式描述方法的操作步骤。In a fifth aspect, a computer-readable storage medium is provided, comprising: computer software instructions; when the computer software instructions are executed in a computer, the computer executes the operating steps of the method described in the first aspect or any possible implementation method.

第六方面,提供一种计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面或任一种可能的实现方式描述方法的操作步骤。 In a sixth aspect, a computer program product is provided, which, when executed on a computer, enables the computer to execute the operating steps of the method described in the first aspect or any possible implementation manner.

需要说明的是,上述各个方面中的任意一个方面的各种可能的实现方式,在方案不矛盾的前提下,均可以进行组合。It should be noted that various possible implementation methods of any of the above aspects can be combined under the premise that there is no contradiction between the solutions.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为一种物理资源池的示意图;FIG1 is a schematic diagram of a physical resource pool;

图2为本申请实施例提供的方案的原理示意图;FIG2 is a schematic diagram of the principle of the solution provided in the embodiment of the present application;

图3为本申请实施例提供的一种云管理平台的架构示意图;FIG3 is a schematic diagram of the architecture of a cloud management platform provided in an embodiment of the present application;

图4为本申请实施例提供的一种计算设备的结构示意图;FIG4 is a schematic diagram of the structure of a computing device provided in an embodiment of the present application;

图5为本申请实施例提供的一种创建云服务实例的方法的流程示意图;FIG5 is a flow chart of a method for creating a cloud service instance provided in an embodiment of the present application;

图6为本申请实施例提供的一种配置物理资源池的方法的流程示意图;FIG6 is a flow chart of a method for configuring a physical resource pool according to an embodiment of the present application;

图7为本申请实施例提供的一种配置界面的示意图;FIG7 is a schematic diagram of a configuration interface provided in an embodiment of the present application;

图8为本申请实施例提供的另一种创建云服务实例的方法的流程示意图;FIG8 is a flow chart of another method for creating a cloud service instance provided in an embodiment of the present application;

图9为本申请实施例提供的一种可视化界面的示意图;FIG9 is a schematic diagram of a visualization interface provided in an embodiment of the present application;

图10为本申请实施例提供的方案的工作原理的示意图;FIG10 is a schematic diagram of the working principle of the solution provided in an embodiment of the present application;

图11为本申请实施例提供的一种创建云服务实例的装置的结构示意图;FIG11 is a schematic diagram of the structure of an apparatus for creating a cloud service instance provided in an embodiment of the present application;

图12为本申请实施例提供的一种计算设备集群的结构示意图;FIG12 is a schematic diagram of the structure of a computing device cluster provided in an embodiment of the present application;

图13为本申请实施例提供的一种计算设备集群的实现方式的示意图。FIG. 13 is a schematic diagram of an implementation method of a computing device cluster provided in an embodiment of the present application.

具体实施方式DETAILED DESCRIPTION

在本申请实施例中,为了便于清楚描述本申请实施例的技术方案,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。该“第一”、第二”描述的技术特征间无先后顺序或者大小顺序。In the embodiments of the present application, in order to clearly describe the technical solutions of the embodiments of the present application, words such as "first" and "second" are used to distinguish between identical or similar items with substantially identical functions and effects. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit them to be different. There is no order of precedence or size between the technical features described by the "first" and "second".

在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念,便于理解。In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way for easy understanding.

在本申请实施例中,至少一个还可以描述为一个或多个,多个可以是两个、三个、四个或者更多个,本申请不做限制。In the embodiments of the present application, at least one can also be described as one or more, and multiple can be two, three, four or more, which is not limited in the present application.

此外,本申请实施例描述的网络架构以及场景是为了更加清楚的说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定,本领域普通技术人员可知,随着网络架构的演变和新业务场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。In addition, the network architecture and scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Ordinary technicians in this field can know that with the evolution of network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

为了便于理解,首先对本申请实施例中涉及的名词进行解释。To facilitate understanding, the terms involved in the embodiments of the present application are first explained.

计算资源,是指计算机提供的用于计算的硬件资源。计算资源包括但不限于:中央处理器(central processing unit,CPU)、内存、带宽、图形处理器(graphics processing unit,GPU)或其他。Computing resources refer to the hardware resources provided by computers for computing. Computing resources include but are not limited to: central processing unit (CPU), memory, bandwidth, graphics processing unit (GPU) or others.

云服务,是指通过网络以按需、易扩展的方式获得所需服务。Cloud service refers to obtaining required services through the Internet in an on-demand and easily scalable manner.

云服务实例,是指通过云服务获取的资源的集合。云服务实例可以为虚拟机、容器或其他形态。A cloud service instance is a collection of resources obtained through cloud services. A cloud service instance can be a virtual machine, container, or other form.

异质服务,是指不同计算资源比的云服务。比如,中央处理器(central processing unit,CPU)内存比为1:2的虚拟机与CPU内存比为1:4的虚拟机,就为异质服务。本申请描述的云服务的类型,可以是基础设施服务化(infrastructure as a service,IaaS),也可以是平台服务化(platform-as-a-service,PaaS)、软件服务化(software-as-a-service,SaaS)、功能服务化(function as a service,FaaS)等,只要其占用的服务器计算资源比例不同,即可认为是异质服务。Heterogeneous services refer to cloud services with different computing resource ratios. For example, a virtual machine with a central processing unit (CPU) memory ratio of 1:2 and a virtual machine with a CPU memory ratio of 1:4 are heterogeneous services. The types of cloud services described in this application can be infrastructure as a service (IaaS), platform as a service (PaaS), software as a service (SaaS), function as a service (FaaS), etc. As long as the proportion of server computing resources they occupy is different, they can be considered heterogeneous services.

混部资源池,指在同一个物理资源池内,混合部署了两种或以上异质服务的场景。图1示意了一种混部资源池的场景。如图1所示,多种类型的云服务,部署于图1中的(a)所示的物理资源池中,向各个云服务分配的计算资源如图1中的(b)所示。A co-location resource pool refers to a scenario where two or more heterogeneous services are deployed in the same physical resource pool. Figure 1 shows a scenario of a co-location resource pool. As shown in Figure 1, multiple types of cloud services are deployed in the physical resource pool shown in (a) of Figure 1, and the computing resources allocated to each cloud service are shown in (b) of Figure 1.

资源池归一,指将单部运营管理的向不同类型的云服务提供资源的多种资源池,混合部署于同一个物理资源池进行运营管理的部署方式。Resource pool unification refers to a deployment method in which multiple resource pools that are managed by a single operation department and provide resources to different types of cloud services are mixed and deployed in the same physical resource pool for operation and management.

容量规划,是指在混部资源池内,为不同类型的异质服务划分计算资源,避免异质服务之间发生资源挤兑。Capacity planning refers to allocating computing resources for different types of heterogeneous services in a co-located resource pool to avoid resource squeezes between heterogeneous services.

在单部运营管理(仅向一种类型的云服务提供资源的资源池)的资源池中,可以简单地用资源池总计算资源量,减去已发放量,得到该类型云服务的剩余可发放量。但在混部资源池中,由于资源池向多种类型的云服务提供资源,因此,资源池总资源量减去已发放量,仅能得到该资源池的剩余计算资源,无法评估还可以向各个类型的云服务发放多少资源,这就造成了异质服务间资源挤兑,比如给某个类型的云服务分配的资源剩余,造成向其他类型云服务的资源不足,最终使得各类型的云服务实例的资源预期不稳定,这对云服务实例的运营带来挑战。In a resource pool with single-unit operation management (a resource pool that only provides resources to one type of cloud service), you can simply use the total computing resources of the resource pool, minus the amount that has been issued, to get the remaining available amount for that type of cloud service. However, in a mixed resource pool, since the resource pool provides resources to multiple types of cloud services, the total resource amount of the resource pool minus the amount that has been issued can only get the remaining computing resources of the resource pool, and it is impossible to evaluate how much resources can be issued to each type of cloud service. This causes resource runs between heterogeneous services. For example, the surplus resources allocated to a certain type of cloud service cause insufficient resources for other types of cloud services, which ultimately makes the resource expectations of various types of cloud service instances unstable, which brings challenges to the operation of cloud service instances.

虽然,已有云计算提供商支持租户自定义服务规格,或者,支持租户自定义修改私有资源池是否可以混部,但依然仅提供查询主机剩余计算资源的功能,缺乏科学的管理手段与管理工具,无法获知各类型云服务实例剩余可发放计算资源的数量。Although existing cloud computing providers support tenants to customize service specifications, or support tenants to customize whether private resource pools can be co-located, they still only provide the function of querying the remaining computing resources of the host. There is a lack of scientific management methods and management tools, and it is impossible to know the number of remaining computing resources that can be issued for various types of cloud service instances.

目前,租户在自己的私有资源池上要部署异质服务(也就是混部)的时候,难以考量多个维度对计算资源的均衡放置,即可能出现向某类型的云服务分配的计算资源过剩,而导致其他类型云服务的计算资源不足的现象,这将造成混部计算资源利用不均衡和资源挤兑问题的问题。而租户自定义服务规则,会加重计算资源利用不均衡和资源挤兑问题,资源挤兑问题也将进一步导致云服务实例可发放预期不稳定,形成恶性循环,造成混部资源池的抗风险能力弱、运营成本高。At present, when tenants want to deploy heterogeneous services (that is, colocation) on their own private resource pools, it is difficult to consider the balanced placement of computing resources in multiple dimensions, that is, there may be an excess of computing resources allocated to a certain type of cloud service, resulting in insufficient computing resources for other types of cloud services, which will cause problems such as uneven utilization of computing resources and resource runs in colocation. The problem of unbalanced utilization of computing resources and resource runs will be aggravated by tenants' customized service rules. The resource run problem will further lead to unstable expectations for the release of cloud service instances, forming a vicious cycle, resulting in weak risk resistance and high operating costs in the colocation resource pool.

基于此,本申请提供一种创建服务实例的方法,物理资源池被抽象为多个逻辑资源池,一个逻辑资源池用于提供一种类型的云服务实例,逻辑资源池内部可以类似于单部运营,这样一来,根据逻辑资源池的已发放资源量即可获知还可以向对应类型云服务实例发放多少计算资源,就可以保证混部资源池中各个类型的云服务实例的资源预期稳定;在均衡考虑多维度设置项中每个逻辑资源池对应分配计算资源的数量,异质服务对应不同的逻辑资源池,就可以保证混部资源池中的计算资源利用均衡,避免了异质服务间的资源挤兑。因此,本申请提供的方案实现了在一个物理资源池中部署异质服务后的运营管理,提高了资源池的抗风险能力弱、降低了运营成本。Based on this, the present application provides a method for creating a service instance, in which a physical resource pool is abstracted into multiple logical resource pools, and a logical resource pool is used to provide a type of cloud service instance. The internal operation of the logical resource pool can be similar to that of a single unit. In this way, according to the amount of resources issued by the logical resource pool, it is possible to know how much computing resources can be issued to the corresponding type of cloud service instance, so that the expected stability of resources for each type of cloud service instance in the mixed resource pool can be ensured; in the balanced consideration of the multi-dimensional setting items, each logical resource pool corresponds to the number of allocated computing resources, and heterogeneous services correspond to different logical resource pools, so that the computing resources in the mixed resource pool can be balanced, avoiding resource runs between heterogeneous services. Therefore, the solution provided by the present application realizes the operation and management after heterogeneous services are deployed in a physical resource pool, improves the weak risk resistance of the resource pool, and reduces the operating costs.

示例性的,本申请提供的方案原理可以如图2所示。X型物理机提供的物理资源池中,抽象为多个不同类型的逻辑资源池,多个逻辑资源池用于提供不同类型的云服务实例。Exemplarily, the principle of the solution provided by the present application may be shown in Figure 2. The physical resource pool provided by the X-type physical machine is abstracted into multiple logical resource pools of different types, and the multiple logical resource pools are used to provide different types of cloud service instances.

下面结合附图,对本申请的实施例提供的方案进行具体阐述。The solutions provided by the embodiments of the present application are described in detail below in conjunction with the accompanying drawings.

本申请提供的方案,可以应用于图3示意的云管理平台中。如图3所示,云管理平台包括管理装置301、数据中心302以及调度器303。云管理平台用于管理租户的物理资源池。The solution provided in this application can be applied to the cloud management platform shown in Figure 3. As shown in Figure 3, the cloud management platform includes a management device 301, a data center 302, and a scheduler 303. The cloud management platform is used to manage the physical resource pool of tenants.

其中,数据中心302包括多个物理机3021,数据中心302的计算资源由其包括的物理机3021提供,数据中心302的计算资源形成资源池。数据中心302可以部署至少两种不同类型的云服务,即异质服务,数据中心302形成的资源池称为混部资源池。The data center 302 includes multiple physical machines 3021. The computing resources of the data center 302 are provided by the physical machines 3021 included therein, and the computing resources of the data center 302 form a resource pool. The data center 302 can deploy at least two different types of cloud services, namely heterogeneous services, and the resource pool formed by the data center 302 is called a co-location resource pool.

示例性的,数据中心302的资源池,可以为公有云的资源池、私有云的资源池,或专属资源池,本申请实施例对此不予限定。Exemplarily, the resource pool of the data center 302 may be a resource pool of a public cloud, a resource pool of a private cloud, or a dedicated resource pool, which is not limited in the embodiments of the present application.

管理装置301、数据中心302,以及数据中心302包括的多个物理机3021之间,通过网络连接。The management device 301, the data center 302, and a plurality of physical machines 3021 included in the data center 302 are connected via a network.

管理装置301用于管理及运营数据中心302组成的资源池。管理装置301上部署了资源池管理系统304,租户操作资源池管理系统304,以控制管理装置301,对数据中心302形成的资源池进行管理运营。The management device 301 is used to manage and operate the resource pool formed by the data center 302. The resource pool management system 304 is deployed on the management device 301. The tenant operates the resource pool management system 304 to control the management device 301 and manage and operate the resource pool formed by the data center 302.

调度器303用于接收租户发起的创建云服务实例的服务请求,并根据服务请求,使用数据中心302中的计算资源,创建云服务实例。The scheduler 303 is used to receive a service request for creating a cloud service instance initiated by a tenant, and create a cloud service instance using computing resources in the data center 302 according to the service request.

示例性的,图3示意的云管理平台的架构,可以根据实际需求增加或减少网元,本申请实施例对此不予限定,图3仅为示意。Exemplarily, the architecture of the cloud management platform shown in FIG3 can add or reduce network elements according to actual needs. The embodiments of the present application are not limited to this, and FIG3 is for illustration only.

示例性的,管理装置301可以执行本申请提供的方案,将物理资源池抽象为多个逻辑资源池,多个逻辑资源池用于提供不同类型的云服务实例,对数据中心302的资源池进行管理运营,具体管理过程可参照后续方法实施例描述,此处不予赘述。Exemplarily, the management device 301 can execute the solution provided in the present application, abstract the physical resource pool into multiple logical resource pools, and the multiple logical resource pools are used to provide different types of cloud service instances, and manage and operate the resource pool of the data center 302. The specific management process can be described in the subsequent method embodiments and will not be repeated here.

一方面,本申请实施例提供一种计算设备400。该计算设备400可以为图2或图3中示意的管理装置301或调度器303。In one aspect, an embodiment of the present application provides a computing device 400. The computing device 400 may be the management device 301 or the scheduler 303 illustrated in FIG. 2 or FIG. 3 .

如图4所示,计算设备400可以包括总线402、处理器404、存储器406和通信接口408。处理器404、存储器406和通信接口408之间通过总线402通信。计算设备400可以是服务器或终端设备。应理解,本申请不限定计算设备400中的处理器、存储器的个数。As shown in FIG4 , computing device 400 may include bus 402, processor 404, memory 406, and communication interface 408. Processor 404, memory 406, and communication interface 408 communicate via bus 402. Computing device 400 may 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 400.

总线402可以是外设部件互连标准(peripheral component interconnect,PCI)总线或扩展工业标准结构(extended industry standard architecture,EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,图4中仅用一条线表示,但并不表示仅有一根总线或一种类型的总线。 总线404可包括在计算设备400各个部件(例如,存储器406、处理器404、通信接口408)之间传送信息的通路。The bus 402 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, FIG4 is represented by only one line, but does not mean that there is only one bus or one type of bus. Bus 404 may include a pathway for transferring information between various components of computing device 400 (eg, memory 406 , processor 404 , communication interface 408 ).

处理器404可以包括中央处理器(central processing unit,CPU)、图形处理器(graphics processing unit,GPU)、微处理器(micro processor,MP)或者数字信号处理器(digital signal processor,DSP)等处理器中的任意一种或多种。Processor 404 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).

存储器406可以包括易失性存储器(volatile memory),例如随机存取存储器(random access memory,RAM)。处理器404还可以包括非易失性存储器(non-volatile memory),例如只读存储器(read-only memory,ROM),快闪存储器,机械硬盘(hard disk drive,HDD)或固态硬盘(solid state drive,SSD)。The memory 406 may include a volatile memory, such as a random access memory (RAM). The processor 404 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).

通信接口403使用例如但不限于网络接口卡、收发器一类的收发模块,来实现计算设备100与其他设备或通信网络之间的通信。The communication interface 403 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 100 and other devices or a communication network.

一种可能的实现方式中,存储器406中存储有可执行的程序代码,处理器404执行该可执行的程序代码以实现如下功能:In a possible implementation, the memory 406 stores executable program codes, and the processor 404 executes the executable program codes to implement the following functions:

接收租户的服务请求,该服务请求用于利用物理资源池内的计算资源创建目标云服务实例,物理资源池被配置为多个逻辑资源池,多个逻辑资源池用于提供不同类型的云服务实例,每种类型的云服务实例所需要的计算资源的比例不同,计算资源包括CPU和内存;响应于服务请求,从物理资源池的多个逻辑资源池中确定与目标云服务实例的类型相匹配的目标逻辑资源池;利用目标逻辑资源池内的计算资源,创建目标云服务实例。Receive a service request from a tenant, where the service request is used to create a target cloud service instance using computing resources in a physical resource pool, where the physical resource pool is configured as multiple logical resource pools, where the multiple logical resource pools are used to provide different types of cloud service instances, and where each type of cloud service instance requires a different proportion of computing resources, including CPU and memory; in response to the service request, determine a target logical resource pool that matches the type of the target cloud service instance from the multiple logical resource pools in the physical resource pool; and create the target cloud service instance using the computing resources in the target logical resource pool.

另一种可能的实现方式中,存储器406中存储有可执行的程序代码,处理器404执行该可执行的程序代码以实现如下功能:In another possible implementation, the memory 406 stores an executable program code, and the processor 404 executes the executable program code to implement the following functions:

接收租户输入的关于物理资源池的配置项,配置项用于指示多个逻辑资源池、每个逻辑资源池对应分配的计算资源的数量、以及每个逻辑资源池对应的云服务实例的类型;根据配置项,将物理资源池配置为多个逻辑资源池。Receive configuration items about physical resource pools input by tenants, where the configuration items are used to indicate multiple logical resource pools, the number of computing resources allocated to each logical resource pool, and the type of cloud service instance corresponding to each logical resource pool; configure the physical resource pool into multiple logical resource pools according to the configuration items.

另一方面,本申请实施例提供一种创建云服务实例的方法,应用于云管理平台(例如图3示意的云管理平台),云管理平台用于管理租户的物理资源池。该物理资源池中部署计算资源比不同的多个类型的云服务实例(异质服务),即该物理资源池为混部资源池。当该物理资源池为混部资源池,即该物理资源池用于提供多种不同类型的云服务实例。On the other hand, an embodiment of the present application provides a method for creating a cloud service instance, which is applied to a cloud management platform (e.g., the cloud management platform shown in FIG3), and the cloud management platform is used to manage the physical resource pool of the tenant. The physical resource pool deploys multiple types of cloud service instances (heterogeneous services) with different computing resource ratios, that is, the physical resource pool is a mixed resource pool. When the physical resource pool is a mixed resource pool, that is, the physical resource pool is used to provide multiple different types of cloud service instances.

如图5所示,本申请实施例提供的创建云服务实例的方法可以包括:As shown in FIG. 5 , the method for creating a cloud service instance provided in an embodiment of the present application may include:

S501、云管理平台接收物理资源池的租户的服务请求,服务请求用于创建目标云服务实例。S501. A cloud management platform receives a service request from a tenant of a physical resource pool, where the service request is used to create a target cloud service instance.

其中,该物理资源池被配置为多个逻辑资源池,多个逻辑资源池用于提供不同类型的云服务实例,每种类型的云服务实例所需要的计算资源的比例不同,计算资源包括CPU和内存。不同逻辑资源池间相互隔离。The physical resource pool is configured as multiple logical resource pools, which are used to provide different types of cloud service instances. Each type of cloud service instance requires a different proportion of computing resources, including CPU and memory. Different logical resource pools are isolated from each other.

进一步的,可以通过软件隔离的方式,将各个逻辑资源池进行隔离。Furthermore, each logical resource pool can be isolated by software isolation.

具体的,云管理平台可以根据实际需求将物理资源池配置为多个逻辑资源池。Specifically, the cloud management platform can configure the physical resource pool into multiple logical resource pools according to actual needs.

示例性的,具体的配置过程可以参考下面图6示意的配置物理资源池的过程。当然,云管理平台也可以按照其他方式,将物理资源池配置为多个逻辑资源池,例如根据静态配置的配置项,将物理资源池配置为多个逻辑资源池,本申请实施例对于云管理平台配置物理资源池的过程不予限定For example, the specific configuration process can refer to the process of configuring the physical resource pool shown in Figure 6 below. Of course, the cloud management platform can also configure the physical resource pool into multiple logical resource pools in other ways, such as configuring the physical resource pool into multiple logical resource pools according to statically configured configuration items. The embodiment of the present application does not limit the process of configuring the physical resource pool by the cloud management platform.

其中,服务请求可以包括目标云服务实例的类型标识。类型标识的具体形式及内容,本申请实施例不予限定。The service request may include a type identifier of the target cloud service instance. The specific form and content of the type identifier are not limited in the embodiments of the present application.

另一种可能的实现方式中,服务请求可以包括目标云服务实例的计算资源需求(例如CPU内存比值),不同计算资源需求指示了不同的云服务实例的类型。In another possible implementation, the service request may include the computing resource requirements (eg, CPU-to-memory ratio) of the target cloud service instance, and different computing resource requirements indicate different types of cloud service instances.

S502、云管理平台响应于服务请求,从物理资源池的多个逻辑资源池中,确定与目标云服务实例的类型相匹配的目标逻辑资源池。S502: In response to the service request, the cloud management platform determines a target logical resource pool that matches the type of the target cloud service instance from multiple logical resource pools in the physical resource pool.

具体的,物理资源池中每个逻辑资源池,用于提供的云服务实例的类型,就是逻辑资源池所匹配的云服务实例的类型,因此,与目标云服务实例的类型相匹配的目标逻辑资源池,就是用于提供目标云服务实例的类型的逻辑资源池。Specifically, the type of cloud service instance provided by each logical resource pool in the physical resource pool is the type of cloud service instance matched by the logical resource pool. Therefore, the target logical resource pool that matches the type of the target cloud service instance is the logical resource pool used to provide the type of the target cloud service instance.

S503、云管理平台利用目标逻辑资源池内的计算资源,创建目标云服务实例。S503: The cloud management platform uses the computing resources in the target logical resource pool to create a target cloud service instance.

具体的,云管理平台可以在目标逻辑资源池内,调度计算资源,按照服务请求指示的目标云服务实例的配置,创建目标云服务实例,本申请实施例对于创建过程不予限定。Specifically, the cloud management platform can schedule computing resources in the target logical resource pool and create a target cloud service instance according to the configuration of the target cloud service instance indicated by the service request. The embodiments of the present application do not limit the creation process.

示例性的,可以由云管理平台中部署的调度器(例如图3中的调度器303)执行S501至S503的过程。Exemplarily, the process from S501 to S503 may be performed by a scheduler deployed in the cloud management platform (eg, scheduler 303 in FIG. 3 ).

通过本申请提供的方案,物理资源池被抽象为多个逻辑资源池,一个逻辑资源池用于提供一种类型的云服务实例,逻辑资源池内部可以类似于单部运营,根据逻辑资源池的已发放资源量即可获知还可以向对应类型的云服务实例发放多少计算资源,就可以保证混部资源池中各个类型的云服务实例的资源预期稳定;在均衡考虑多维度设置配置项中每个逻辑资源池对应分配计算资源的数量,异质服务对应不同的逻辑资源池,就可以保证混部资源池中的计算资源利用均衡,避免了异质服务间的资源挤兑;因此,本申请提供的方案实现了在一个物理资源池中部署异质服务后的运营管理,提高了资源池的抗风险能力弱、降低了运营成本。Through the solution provided by the present application, the physical resource pool is abstracted into multiple logical resource pools. One logical resource pool is used to provide one type of cloud service instance. The internal operation of the logical resource pool can be similar to that of a single unit. According to the amount of resources issued in the logical resource pool, it is possible to know how much computing resources can be issued to the corresponding type of cloud service instance, thereby ensuring the stability of resource expectations of each type of cloud service instance in the mixed resource pool. In the balanced consideration of the multi-dimensional setting configuration items, the number of computing resources allocated to each logical resource pool, and heterogeneous services corresponding to different logical resource pools, can ensure balanced utilization of computing resources in the mixed resource pool, avoiding resource runs between heterogeneous services. Therefore, the solution provided by the present application realizes the operation and management after heterogeneous services are deployed in a physical resource pool, improves the risk resistance of the resource pool, and reduces operating costs.

进一步的,本申请实施例还提供一种配置物理资源池的过程,如图6所示,可以包括S601和S602的过程。Furthermore, an embodiment of the present application also provides a process for configuring a physical resource pool, as shown in FIG6 , which may include processes S601 and S602.

S601、云管理平台接收租户输入的关于物理资源池的配置项,配置项用于指示多个逻辑资源池、每个逻辑资源池对应分配计算资源的数量,以及每个逻辑资源池对应的云服务实例的类型。S601. The cloud management platform receives configuration items about physical resource pools input by the tenant, where the configuration items are used to indicate multiple logical resource pools, the number of computing resources allocated to each logical resource pool, and the type of cloud service instance corresponding to each logical resource pool.

其中,配置项用于指示的多个逻辑资源池,用于提供不同类型的云服务实例。The configuration items are used to indicate multiple logical resource pools, which are used to provide different types of cloud service instances.

示例性的,云管理平台可以向租户显示配置界面,配置界面中包括用于输入配置项的控件。本申请实施例对于配置界面的样式及具体内容不予限定For example, the cloud management platform can display a configuration interface to the tenant, and the configuration interface includes controls for inputting configuration items. The embodiment of the present application does not limit the style and specific content of the configuration interface.

其中,配置项用于指示的多个逻辑资源池,可以为数量N,也可以为N个逻辑资源池的标识,或者其他形式,本申请实施例对此不予限定。Among them, the configuration item is used to indicate multiple logical resource pools, which can be a number N, or an identifier of N logical resource pools, or other forms, which is not limited in this embodiment of the present application.

逻辑资源池的数量N的可以根据实际需求配置,由租户输入,本申请实施例对此不予限定。The number N of logical resource pools can be configured according to actual needs and input by the tenant, and this embodiment of the present application is not limited to this.

示例性的,逻辑资源池的数量N可以为该物理资源池支持的云服务实例的类型数目,一个逻辑资源池仅向一种类型的云服务提供计算资源。不同类型的云服务实例所需要的计算资源的比例不同。Exemplarily, the number N of logical resource pools may be the number of types of cloud service instances supported by the physical resource pool, and a logical resource pool provides computing resources only to one type of cloud service. Different types of cloud service instances require different proportions of computing resources.

例如,一个逻辑资源池用于提供一种类型的云服务实例,N个逻辑资源池用于提供N种类型的云服务实例,逻辑资源池的数量N可以等于该物理资源池支持的云服务实例的种类数。For example, one logical resource pool is used to provide one type of cloud service instance, and N logical resource pools are used to provide N types of cloud service instances. The number N of logical resource pools may be equal to the number of types of cloud service instances supported by the physical resource pool.

可以理解的是,每个逻辑资源池对应分配计算资源的数量,是指分别向每个逻辑资源池的各种计算资源的数量。计算资源可以包括CPU、内存等。It is understandable that the number of computing resources allocated to each logical resource pool refers to the number of various computing resources allocated to each logical resource pool. The computing resources may include CPU, memory, etc.

一种可能的实现方式中,配置项中指示了每个逻辑资源池对应分配计算资源的数量,但每个逻辑资源池对应分配的计算资源在该物理资源池中的具体位置(分布在哪些物理主机中),配置项不进行限定。In one possible implementation, the configuration item indicates the number of computing resources allocated to each logical resource pool, but the configuration item does not limit the specific location of the computing resources allocated to each logical resource pool in the physical resource pool (distributed in which physical hosts).

另一种可能的实现方式中,配置项中除了指示了每个逻辑资源池对应分配计算资源的数量,还指示了每个逻辑资源池对应的物理机的标识。配置项指示的每个逻辑资源池对应的物理机的标识,表示向逻辑资源池分配的计算资源所属的物理机。In another possible implementation, the configuration item indicates not only the number of computing resources allocated to each logical resource pool, but also the identifier of the physical machine corresponding to each logical resource pool. The identifier of the physical machine corresponding to each logical resource pool indicated by the configuration item indicates the physical machine to which the computing resources allocated to the logical resource pool belong.

示例性的,配置项中可以包括第一逻辑资源池对应的分配计算资源的数量和物理机的标识为:物理机1的CPU 20,物理机2的内存200。Exemplarily, the configuration item may include the number of allocated computing resources corresponding to the first logical resource pool and the identification of the physical machine: CPU 20 for physical machine 1, and memory 200 for physical machine 2.

进一步的,配置项指示的每个逻辑资源池对应的云服务实例的类型,用于体现逻辑资源池与云服务实例的类型的对应关系。一个逻辑资源池用于提供其对应类型的云服务实例。Furthermore, the type of cloud service instance corresponding to each logical resource pool indicated by the configuration item is used to reflect the correspondence between the types of logical resource pools and cloud service instances. A logical resource pool is used to provide a cloud service instance of its corresponding type.

示例性的,云管理平台向租户显示的配置界面可以如图7所示。在图7示意的配置界面中,包括配置区域,配置区域中包括控件701和控件702。其中,控件701用于输入逻辑资源池的数量N、向逻辑资源池对应分配的计算资源的数量,控件702用于输入每个逻辑资源池对应的云服务实例的类型。Exemplarily, the configuration interface displayed by the cloud management platform to the tenant may be as shown in FIG7. In the configuration interface shown in FIG7, a configuration area is included, and the configuration area includes a control 701 and a control 702. Among them, the control 701 is used to input the number N of logical resource pools and the number of computing resources allocated to the logical resource pools, and the control 702 is used to input the type of cloud service instance corresponding to each logical resource pool.

图7中示意的控件中包括下拉框和添加图标。下拉框可以用于下拉选择具体的输入内容,添加图标租户将选择和/或输入的内容,输入管理装置。The control shown in Fig. 7 includes a drop-down box and an add icon. The drop-down box can be used to select specific input content by pulling down, and the add icon allows the tenant to input the selected and/or input content into the management device.

例如,当租户点击控件701包括的下拉框的箭头图标,可以向租户显示一个逻辑资源池的属性内容,租户通过手动输入相关内容,再点击控件701的添加图标,即可完成对一个逻辑资源池的属性的配置。租户通过多次对控件701的操作,即可完成多个逻辑资源池的属性的配置,即相当于输入了逻辑资源池的数量N,或者,相当于输入了指示N个逻辑资源池的配置项。For example, when the tenant clicks the arrow icon of the drop-down box included in the control 701, the property content of a logical resource pool can be displayed to the tenant. The tenant can complete the configuration of the property of a logical resource pool by manually entering the relevant content and then clicking the add icon of the control 701. The tenant can complete the configuration of the properties of multiple logical resource pools by operating the control 701 multiple times, which is equivalent to inputting the number N of logical resource pools, or equivalent to inputting the configuration items indicating N logical resource pools.

例如,当租户点击控件702包括的下拉框的箭头图标,可以向租户显示一个云服务实例的属性内容,租户通过手动输入相关内容,再点击控件702的添加图标,即可完成对一种类型的云服务实例与逻辑资源池对应关系的添加。租户通过多次对控件702的操作,即可完成多种类型的云服务实例,与逻辑资源池对应关系的添加。For example, when the tenant clicks the arrow icon of the drop-down box included in control 702, the property content of a cloud service instance can be displayed to the tenant. The tenant can add a corresponding relationship between a type of cloud service instance and a logical resource pool by manually entering relevant content and then clicking the add icon of control 702. The tenant can add a corresponding relationship between multiple types of cloud service instances and logical resource pools by operating control 702 multiple times.

当然,图7只是举例示意了一种配置界面的内容,实际应用中,配置界面中的内容,以及配置界面的样式,均可以根据实际需求配置。Of course, FIG. 7 is only an example of the content of a configuration interface. In actual applications, the content in the configuration interface and the style of the configuration interface can be configured according to actual needs.

S602、云管理平台根据配置项,将物理资源池配置为多个逻辑资源池。S602. The cloud management platform configures the physical resource pool into multiple logical resource pools according to the configuration items.

具体的,在S602中,云管理平台根据S601中获取的配置项,对物理资源池进行配置,将其划分(逻辑上划分)为配置项指示的多个(N个)逻辑资源池,在划分过程中,按照配置项指示的每个逻辑资源池对应分配计算资源的数量,配置每个逻辑资源池所包含的资源。Specifically, in S602, the cloud management platform configures the physical resource pool according to the configuration items obtained in S601, and divides it (logically divides) into multiple (N) logical resource pools indicated by the configuration items. During the division process, the number of computing resources corresponding to each logical resource pool indicated by the configuration items is allocated, and the resources contained in each logical resource pool are configured.

进一步的,云管理平台还根据配置项,获取了每个逻辑资源池对应的云服务实例的类型,即建立了逻辑资源池与云服务实例的类型的对应关系,以便于接收到创建云服务实例的服务请求后,从类型对应的逻辑资源池中调度资源,创建云服务实例。Furthermore, the cloud management platform also obtains the type of cloud service instance corresponding to each logical resource pool based on the configuration items, that is, it establishes a correspondence between the logical resource pool and the type of cloud service instance, so that after receiving a service request to create a cloud service instance, it can schedule resources from the logical resource pool corresponding to the type to create a cloud service instance.

示例性的,可以由云管理平台中部署的管理装置(例如图3中的调度器301)执行S601至S602的过程。Exemplarily, the process from S601 to S602 may be performed by a management device deployed in a cloud management platform (eg, scheduler 301 in FIG. 3 ).

至此,云管理平台就完成了对该物理资源池的配置,将物理资源池抽象为相互隔离的多个逻辑资源池。At this point, the cloud management platform has completed the configuration of the physical resource pool and abstracted the physical resource pool into multiple isolated logical resource pools.

进一步的,本申请提供的创建云服务实例的方法还包括对逻辑资源池的计算资源重划分的过程。例如,如图8所示,本申请实施例提供的创建云服务实例的方法还可以包括S504。Furthermore, the method for creating a cloud service instance provided by the present application also includes a process of re-dividing the computing resources of the logical resource pool. For example, as shown in FIG8 , the method for creating a cloud service instance provided by the embodiment of the present application may also include S504.

S504、在满足触发条件后,云管理平台调整物理资源池中至少一个逻辑资源池对应分配计算资源的数量,以提高第一类型的云服务实例的可发放量。S504: After the trigger condition is met, the cloud management platform adjusts the quantity of computing resources allocated to at least one logical resource pool in the physical resource pool to increase the amount of cloud service instances of the first type that can be issued.

其中,第一类型的云服务实例,是该物理资源池中多个逻辑资源池提供的不同类型的云服务实例中的任意一种The first type of cloud service instance is any one of the different types of cloud service instances provided by multiple logical resource pools in the physical resource pool.

触发条件用于指示进行资源重划分的前提。示例性的,可以根据实际需求配置触发条件的内容,本申请实施例对此不予限定。The trigger condition is used to indicate the premise for performing resource reallocation. For example, the content of the trigger condition can be configured according to actual needs, and the embodiment of the present application is not limited to this.

一种可能的实现方式中,触发条件可以由租户输入。In a possible implementation, the trigger condition may be input by the tenant.

另一种可能的实现方式中,触发条件可以为配置在管理装置中的静态内容。In another possible implementation, the trigger condition may be static content configured in the management device.

示例性的,触发条件包括下述内容中一项或多项:预设时刻、预设周期、第一类型的云服务实例的可发放量小于第一阈值、第二类型的云服务实例的分配率超过第二阈值。第二类型的云服务实例是该物理资源池中,多个逻辑资源池提供的不同类型的云服务实例中的任意一种。Exemplarily, the triggering condition includes one or more of the following: a preset time, a preset period, the available amount of the first type of cloud service instance is less than a first threshold, and the allocation rate of the second type of cloud service instance exceeds a second threshold. The second type of cloud service instance is any one of different types of cloud service instances provided by multiple logical resource pools in the physical resource pool.

其中,一个云服务实例的计算资源的分配率,是指用于提供该类型云服务实例的逻辑资源池的计算资源分配率。一个逻辑资源池的计算资源的分配率,是指该逻辑资源池中,已经分配给云服务实例的计算资源量,占该逻辑资源池的计算资源总数的比例。The computing resource allocation rate of a cloud service instance refers to the computing resource allocation rate of the logical resource pool used to provide the cloud service instance of this type. The computing resource allocation rate of a logical resource pool refers to the ratio of the computing resources in the logical resource pool that have been allocated to the cloud service instance to the total computing resources in the logical resource pool.

示例性的,预设时刻可以为每天X点。预设周期可以为每隔Y小时,或,每逢节假日。Exemplarily, the preset time may be X o'clock every day. The preset period may be every Y hours, or every holiday.

示例性的,第一类型的云服务实例的可发放量小于第一阈值可以为:某A型云服务实例的可发放核数不足C核。Exemplarily, the fact that the releasable quantity of the first type of cloud service instance is less than the first threshold value may be: the releasable number of cores of a certain type A cloud service instance is less than C cores.

示例性的,第二类型的云服务实例的分配率超过第二阈值可以为:某A型云服务实例的可发放核数占其对应的逻辑资源池剩余核数的比例,超过D%。Exemplarily, the allocation rate of the second type of cloud service instance exceeding the second threshold may be: the ratio of the number of issuable cores of a certain type A cloud service instance to the number of remaining cores in its corresponding logical resource pool exceeds D%.

当然,触发条件的具体内容,可以根据实际需求配置,本申请实施例对此不予限定。Of course, the specific content of the trigger condition can be configured according to actual needs, and the embodiments of the present application are not limited to this.

进一步的,触发条件可以配置对应的重划分限制条件。在满足重划分限制条件时,云管理平台执行资源重划分的操作。当不满足重划分限制条件时,输出提醒信息,提醒租户满足触发条件但不满足限制条件。Furthermore, the trigger condition can be configured with a corresponding repartition restriction condition. When the repartition restriction condition is met, the cloud management platform performs the resource repartition operation. When the repartition restriction condition is not met, a reminder message is output to remind the tenant that the trigger condition is met but the restriction condition is not met.

其中,重划分限制条件可以由租户输入,或者,或者预先配置在管理装置中。The repartition restriction condition may be input by the tenant, or may be pre-configured in the management device.

例如,重划分限制条件可以为最小间隔至少为F天、或者,G天内不超过H次、或者,单次重规划调整主机数不超过I台。For example, the repartitioning restriction condition may be that the minimum interval is at least F days, or no more than H times within G days, or the number of hosts adjusted in a single replanning does not exceed I.

当然,触发条件对应的重划分限制条件,可以根据实际需求配置,本申请实施例对此不予限定。Of course, the re-division restriction conditions corresponding to the trigger conditions can be configured according to actual needs, and the embodiments of the present application are not limited to this.

一种可能的实现方式中,本申请实施例提供的创建云服务资源的方法还可以包括:云管理平台接收租户输入的触发条件和/或重划分限制条件。In a possible implementation, the method for creating cloud service resources provided in the embodiment of the present application may further include: the cloud management platform receiving trigger conditions and/or re-division restriction conditions input by the tenant.

示例性的,租户可以在管理装置显示的配置界面中,输入触发条件和/或重划分限制条件。Exemplarily, the tenant may input the trigger condition and/or the repartition restriction condition in the configuration interface displayed by the management device.

示例性的,管理装置向租户显示的配置界面可以如图7所示。在图7示意的配置界面中,包括控件703。其中,控件703用于输入触发条件和/或重划分限制条件。Exemplarily, the configuration interface displayed by the management device to the tenant may be as shown in Figure 7. The configuration interface shown in Figure 7 includes a control 703. The control 703 is used to input a trigger condition and/or a re-division restriction condition.

例如,当租户点击控件703包括的下拉框的箭头图标,可以向租户显示可以配置的触发条件和/或重划分限制条件的内容,租户通过手动输入相关内容,再点击控件703的添加图标,即可完成对触发条件和/或重划分限制条件的输入。租户通过多次对控件703的操作,即可完成多个触发条件和/或重划分限制条件的输入。For example, when the tenant clicks the arrow icon of the drop-down box included in the control 703, the contents of the trigger conditions and/or re-division restriction conditions that can be configured can be displayed to the tenant, and the tenant can complete the input of the trigger conditions and/or re-division restriction conditions by manually inputting the relevant contents and then clicking the add icon of the control 703. The tenant can complete the input of multiple trigger conditions and/or re-division restriction conditions by operating the control 703 multiple times.

在一种可能的实现方式中,本申请提供的创建云服务实例的方法还包括:云管理平台接收租户输入的触发条件和容量规划目标,容量规划目标包括:第一类型的云服务实例的可发放量最高。In a possible implementation, the method for creating a cloud service instance provided in the present application further includes: the cloud management platform receives trigger conditions and capacity planning goals input by the tenant, and the capacity planning goals include: the highest available number of cloud service instances of the first type.

相应的,S504中,在满足触发条件后,云管理平台调整物理资源池中至少一个逻辑资源池对应分配的计算资源的数量,具体可以实现为:在满足触发条件后,云管理平台按照容量规划目标进行数学建模并求解,得到资源配置方案;根据资源配置方案,调整物理资源池中至少一个逻辑资源池对应分配的计算资源的数量。Correspondingly, in S504, after the trigger condition is met, the cloud management platform adjusts the number of computing resources allocated to at least one logical resource pool in the physical resource pool. Specifically, it can be implemented as follows: after the trigger condition is met, the cloud management platform performs mathematical modeling and solves according to the capacity planning target to obtain a resource allocation plan; according to the resource allocation plan, adjusts the number of computing resources allocated to at least one logical resource pool in the physical resource pool.

其中,容量规划目标用于指示物理资源池的性能,容量规划目标是资源重划分所要满足的标准。The capacity planning target is used to indicate the performance of the physical resource pool, and the capacity planning target is a standard that must be met by resource redistribution.

示例性的,容量规划目标包括第一类型的云服务实例的可发放量最高,是指优先保证第一类型的云服务实例的发放量最优,第一类型可以根据实际需求配置,本申请实施例不予限定。具体地,按照容量规划目标进行数学建模后,求解在该数学模型中使得第一类型的云服务实例的可发放量达到max值的资源配置方案。Exemplarily, the capacity planning goal includes the highest available number of cloud service instances of the first type, which means that the optimal number of cloud service instances of the first type is prioritized, and the first type can be configured according to actual needs, which is not limited in the embodiments of the present application. Specifically, after mathematical modeling is performed according to the capacity planning goal, a resource configuration solution is solved in the mathematical model so that the available number of cloud service instances of the first type reaches the maximum value.

其中,发放量最优可以理解为发放量处于一个理想区间内,或者,计算资源分配率处于一个理想区间内。理解区间的取值可以根据实际需求配置,本申请实施例不予限定。The optimal distribution amount can be understood as the distribution amount being within an ideal range, or the computing resource allocation rate being within an ideal range. The value of the range can be configured according to actual needs, and the embodiment of the present application is not limited thereto.

当然,容量规划目标的具体内容,可以根据实际需求配置,本申请实施例对此不予限定。Of course, the specific content of the capacity planning target can be configured according to actual needs, and the embodiments of the present application are not limited to this.

示例性的,租户可以在配置界面中,输入容量规划目标。Exemplarily, the tenant may input a capacity planning target in the configuration interface.

示例性的,云管理平台向租户显示的配置界面可以如图7所示。在图7示意的配置界面中,包括控件704。其中,控件704用于输入容量规划目标。Exemplarily, the configuration interface displayed by the cloud management platform to the tenant may be as shown in Figure 7. The configuration interface shown in Figure 7 includes a control 704. The control 704 is used to input the capacity planning target.

例如,当租户点击控件704包括的下拉框的箭头图标,可以向租户显示可以配置的容量规划目标的内容,租户通过手动输入相关内容,再点击控件704的添加图标,即可完成对容量规划目标的输入。租户通过多次对控件704的操作,即可完成多个容量规划目标的输入。For example, when the tenant clicks the arrow icon of the drop-down box included in the control 704, the content of the configurable capacity planning target can be displayed to the tenant, and the tenant can complete the input of the capacity planning target by manually entering the relevant content and then clicking the add icon of the control 704. The tenant can complete the input of multiple capacity planning targets by operating the control 704 multiple times.

在一种可能的实现方式中,本申请提供的创建云服务实例的方法还包括:云管理平台接收租户输入的容量规划限制条件。In a possible implementation, the method for creating a cloud service instance provided in the present application further includes: the cloud management platform receiving capacity planning constraint conditions input by the tenant.

其中,容量规划限制条件用于指示调整前后对物理资源池的性能的影响。The capacity planning constraint condition is used to indicate the impact on the performance of the physical resource pool before and after the adjustment.

示例性的,容量规划限制条件包括下述内容中一项或多项:被调整了资源分配的物理主机数不超过第三阈值、相邻两次调整之间第三类型的云服务实例的可发放量的变动不超过第四阈值。其中,第三类型的云服务实例是上述不同类型的云服务实例中的任意一种。Exemplarily, the capacity planning constraint condition includes one or more of the following: the number of physical hosts whose resource allocation is adjusted does not exceed a third threshold, and the change in the available quantity of the third type of cloud service instance between two adjacent adjustments does not exceed a fourth threshold. The third type of cloud service instance is any one of the above different types of cloud service instances.

当然,容量规划限制条件的具体内容,可以根据实际需求配置,本申请实施例对此不予限定。Of course, the specific content of the capacity planning restriction condition can be configured according to actual needs, and the embodiments of the present application are not limited to this.

相应的,S504中,在满足触发条件后,云管理平台调整物理资源池中至少一个逻辑资源池对应分配的计算资源的数量,具体可以实现为:在满足触发条件后,云管理平台根据容量规划限制条件,调整物理资源池中至少一个逻辑资源池对应分配的计算资源的数量。调整的过程满足容量规划限制条件。Correspondingly, in S504, after the trigger condition is met, the cloud management platform adjusts the number of computing resources corresponding to the allocation of at least one logical resource pool in the physical resource pool, which can be specifically implemented as follows: after the trigger condition is met, the cloud management platform adjusts the number of computing resources corresponding to the allocation of at least one logical resource pool in the physical resource pool according to the capacity planning constraint condition. The adjustment process meets the capacity planning constraint condition.

示例性的,租户可以在云管理平台显示的配置界面中,输入容量规划限制条件。Exemplarily, the tenant may input capacity planning constraints in a configuration interface displayed by the cloud management platform.

示例性的,管理装置向租户显示的配置界面可以如图7所示。在图7示意的配置界面中,包括控件705。其中,控件705用于输入容量规划限制条件。Exemplarily, the configuration interface displayed by the management device to the tenant may be as shown in Figure 7. The configuration interface shown in Figure 7 includes a control 705. The control 705 is used to input capacity planning constraint conditions.

例如,当租户点击控件705包括的下拉框的箭头图标,可以向租户显示可以配置的容量规划限制条件的内容,租户通过手动输入相关内容,再点击控件705的添加图标,即可完成对容量规划限制条件的输入。租户通过多次对控件705的操作,即可完成多个容量规划限制条件的输入。For example, when the tenant clicks the arrow icon of the drop-down box included in the control 705, the content of the configurable capacity planning constraint conditions can be displayed to the tenant, and the tenant can complete the input of the capacity planning constraint conditions by manually entering the relevant content and then clicking the add icon of the control 705. The tenant can complete the input of multiple capacity planning constraint conditions by operating the control 705 multiple times.

通过本申请提供的资源重划分过程,使得物理资源池始终处于稳定均衡的运营状态。Through the resource reallocation process provided in this application, the physical resource pool is always in a stable and balanced operating state.

在一种可能的实现方式中,本申请提供的创建云服务实例的方法还可以包括可视化显示的过程。如图8示,本申请实施例提供的创建云服务实例的方法还可以包括S505。In a possible implementation, the method for creating a cloud service instance provided by the present application may further include a process of visual display. As shown in FIG8 , the method for creating a cloud service instance provided by the embodiment of the present application may further include S505 .

S505、云管理平台提供可视化界面。S505. The cloud management platform provides a visual interface.

其中,该可视化界面用于展示物理资源池的观察指标的值,和/或,多个逻辑资源池的观察指标的值。The visualization interface is used to display the values of the observation indicators of the physical resource pool and/or the values of the observation indicators of multiple logical resource pools.

其中,观察指标可以为物理资源池/逻辑资源池的性能指标。The observed indicator may be a performance indicator of a physical resource pool or a logical resource pool.

示例性的,物理资源池的观察指标包括下述指标中一项或多项:物理资源池提供的云服务实例的类型数、物理资源池中计算资源的总量、物理资源池的未发放的计算资源的数量、物理资源池的已发放的计算资源的数量、物理资源池的计算资源的分配率。Exemplarily, the observation indicators of the physical resource pool include one or more of the following indicators: the number of types of cloud service instances provided by the physical resource pool, the total amount of computing resources in the physical resource pool, the number of unissued computing resources of the physical resource pool, the number of issued computing resources of the physical resource pool, and the allocation rate of computing resources of the physical resource pool.

其中,物理资源池的计算资源的分配率,是指物理资源池中,已经分配给云服务实例的计算资源量, 占该物理资源池的计算资源总数的比例。The allocation rate of computing resources in the physical resource pool refers to the amount of computing resources in the physical resource pool that have been allocated to the cloud service instance. The ratio of the total number of computing resources in the physical resource pool.

示例性的,多个逻辑资源池的观察指标包括下述指标中一项或多项:每个逻辑资源池中计算资源的总量、每个逻辑资源池中未发放的计算资源的数量、每个逻辑资源池中已发放的计算资源的数量、每个逻辑资源池中计算资源的分配率。Exemplarily, the observation indicators of multiple logical resource pools include one or more of the following indicators: the total amount of computing resources in each logical resource pool, the number of unissued computing resources in each logical resource pool, the number of issued computing resources in each logical resource pool, and the allocation rate of computing resources in each logical resource pool.

具体的,在S505中,云管理平台可以实时或周期性的获取观察指标的值,并在可视化界面中显示。Specifically, in S505, the cloud management platform may obtain the value of the observation indicator in real time or periodically and display it in a visualization interface.

一种可能的实现方式,观察指标可以为预先配置的指标。In a possible implementation manner, the observation indicator may be a pre-configured indicator.

另一种可能的实现方式中,观察指标为租户输入的指标。In another possible implementation, the observed indicator is an indicator input by the tenant.

示例性的,租户可以随时输入添加观察指标。或者,租户可以随时删减观察指标。For example, the tenant can add observation indicators at any time. Alternatively, the tenant can delete observation indicators at any time.

一种可能的实现方式中,本申请实施例提供的创建云服务实例的方法还可以包括:云管理平台接收租户的添加操作,该添加操作用于输入观察指标。In a possible implementation, the method for creating a cloud service instance provided by the embodiment of the present application may further include: the cloud management platform receives an add operation from a tenant, where the add operation is used to input an observation indicator.

示例性的,云管理平台向租户提供的可视化界面可以如图9所示。在图9示意的可视化界面中,包括显示区域901,在显示区域801中显示了各个观察指标的当前值。Exemplarily, the visualization interface provided by the cloud management platform to the tenant may be as shown in Fig. 9. In the visualization interface shown in Fig. 9, a display area 901 is included, in which the current value of each observation indicator is displayed.

图9示意的可视化界面中还包括控件902,用于添加观察指标。The visualization interface shown in FIG. 9 also includes a control 902 for adding an observation indicator.

例如,当租户点击控件902包括的下拉框的箭头图标,可以向租户显示可以选择的观察指标的清单,租户通过手动选择可视化指标,再点击控件902的添加图标,即可完成对观察指标的添加。租户通过多次对控件902的操作,即可完成多个观察指标的添加。For example, when the tenant clicks the arrow icon of the drop-down box included in the control 902, a list of selectable observation indicators can be displayed to the tenant, and the tenant can add the observation indicator by manually selecting the visualization indicator and then clicking the add icon of the control 902. The tenant can add multiple observation indicators by operating the control 902 multiple times.

示例性的,租户通过在可视化界面中显示的各个观察指标上进行选中操作(例如点击操作),云管理平台在接收到租户对某个观察指标的选中操作后,显示对该观察指标的控制菜单,控制菜单中包括了对该观察指标的控制选项(比如删除选项、隐藏选项等),云管理平台根据租户对控制选项的选择,对该观察指标进行控制选项所指示的操作(比如删除或隐藏)。Exemplarily, the tenant performs a selection operation (such as a click operation) on each observation indicator displayed in the visualization interface. After receiving the tenant's selection operation on a certain observation indicator, the cloud management platform displays a control menu for the observation indicator. The control menu includes control options for the observation indicator (such as a delete option, a hide option, etc.). The cloud management platform performs the operation indicated by the control option (such as delete or hide) on the observation indicator based on the tenant's selection of the control option.

图10示意了本申请提供的方案的工作原理。如图10所述,云管理平台包括了容量规划模块、资源预期模块以及可视化监控模块。该云管理平台用于根据租户的配置,管理以及配置物理资源池中的计算资源。Figure 10 illustrates the working principle of the solution provided by the present application. As shown in Figure 10, the cloud management platform includes a capacity planning module, a resource expectation module and a visual monitoring module. The cloud management platform is used to manage and configure computing resources in the physical resource pool according to the configuration of the tenant.

其中,租户输入逻辑资源池的配置、云服务实例的配置、触发条件、限制条件、容量规划目标等内容,逻辑资源池的配置以及云服务实例的配置经过容量规划模块的处理,由容量规划模块对物理资源池进行资源配置。容量规划模块向资源预期模块传输触发条件、限制条件、容量规划目标等内容,资源预期模块根据物理资源池的状态,进行资源预期评估,确定不同类型云服务实例的预期(还可以分配多少资源)并输出。可视化监控模块根据物理资源池的状态(查询获取),向租户显示可视化界面。Among them, the tenant inputs the configuration of the logical resource pool, the configuration of the cloud service instance, the trigger conditions, the restriction conditions, the capacity planning target and other contents. The configuration of the logical resource pool and the configuration of the cloud service instance are processed by the capacity planning module, and the capacity planning module performs resource configuration for the physical resource pool. The capacity planning module transmits the trigger conditions, restriction conditions, capacity planning targets and other contents to the resource expectation module. The resource expectation module evaluates the resource expectation according to the status of the physical resource pool, determines the expectation of different types of cloud service instances (how many resources can be allocated) and outputs them. The visual monitoring module displays a visual interface to the tenant according to the status of the physical resource pool (query acquisition).

通过本申请提供的可视化过程,避免了黑盒管理。Through the visualization process provided by this application, black box management is avoided.

上述主要从云管理平台的工作原理的角度,对本发明实施例提供的方案进行了介绍。可以理解的是,云管理平台等为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本发明能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。The above mainly introduces the solution provided by the embodiment of the present invention from the perspective of the working principle of the cloud management platform. It can be understood that in order to realize the above functions, the cloud management platform, etc. includes hardware structures and/or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed in this document, the present invention can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.

本发明实施例可以根据上述方法示例对云管理平台中等进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本发明实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The embodiment of the present invention can divide the functional modules of the cloud management platform according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present invention is schematic and is only a logical functional division. There may be other division methods in actual implementation.

本申请还提供一种创建云服务实例的装置110,如图11所示,创建云服务实例的装置110可以包括:接收单元1101、确定单元1102以及创建单元1103。其中:The present application also provides a device 110 for creating a cloud service instance. As shown in FIG11 , the device 110 for creating a cloud service instance may include: a receiving unit 1101, a determining unit 1102, and a creating unit 1103. Among them:

接收单元1101,用于接收租户的服务请求,服务请求用于利用物理资源池内的计算资源创建目标云服务实例,物理资源池被配置为多个逻辑资源池,多个逻辑资源池用于提供不同类型的云服务实例,每种类型的云服务实例所需要的计算资源的比例不同,计算资源包括CPU和内存。The receiving unit 1101 is used to receive a service request from a tenant, where the service request is used to create a target cloud service instance using computing resources in a physical resource pool. The physical resource pool is configured as multiple logical resource pools, which are used to provide different types of cloud service instances. Each type of cloud service instance requires a different proportion of computing resources, and the computing resources include CPU and memory.

确定单元1102,用于响应于服务请求,从物理资源池的多个逻辑资源池中确定与目标云服务实例的类型相匹配的目标逻辑资源池。The determining unit 1102 is configured to determine, in response to a service request, a target logical resource pool that matches the type of the target cloud service instance from a plurality of logical resource pools in the physical resource pool.

创建单元1103,用于利用目标逻辑资源池内的计算资源,创建目标云服务实例。The creation unit 1103 is used to create a target cloud service instance by using computing resources in the target logical resource pool.

其中,接收单元1101、确定单元1102以及创建单元1103均可以通过软件实现,或者可以通过硬件实现。示例性的,接下来以确定单元1102为例,介绍确定单元1102的实现方式。类似的,接收单元1101和创建单元1103的实现方式可以参考确定单元1102的实现方式。The receiving unit 1101, the determining unit 1102, and the creating unit 1103 may all be implemented by software or by hardware. Exemplarily, the implementation of the determining unit 1102 is described below by taking the determining unit 1102 as an example. Similarly, the implementation of the receiving unit 1101 and the creating unit 1103 may refer to the implementation of the determining unit 1102.

模块作为软件功能单元的一种举例,确定单元1102可以包括运行在计算实例上的代码。其中,计算实例可以包括物理主机(计算设备)、虚拟机、容器中的至少一种。进一步地,上述计算实例可以是一台或者多台。例如,A模块可以包括运行在多个主机/虚拟机/容器上的代码。需要说明的是,用于运行该代码的多个主机/虚拟机/容器可以分布在相同的区域(region)中,也可以分布在不同的region中。进一步地,用于运行该代码的多个主机/虚拟机/容器可以分布在相同的可用区(availability zone,AZ)中,也可以分布在不同的AZ中,每个AZ包括一个数据中心或多个地理位置相近的数据中心。其中,通常一个region可以包括多个AZ。As an example of a software functional unit, the module 1102 may include code running on a computing instance. The computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Furthermore, the computing instance may be one or more. For example, module A may include code running on multiple hosts/virtual machines/containers. It should be noted that the multiple hosts/virtual machines/containers used to run the code may be distributed in the same region or in different regions. Furthermore, the multiple hosts/virtual machines/containers used to run the code may be distributed in the same availability zone (AZ) or in different AZs, each AZ including one data center or multiple data centers with similar geographical locations. Generally, a region may include multiple AZs.

同样,用于运行该代码的多个主机/虚拟机/容器可以分布在同一个虚拟私有云(virtual private cloud,VPC)中,也可以分布在多个VPC中。其中,通常一个VPC设置在一个region内,同一region内两个VPC之间,以及不同region的VPC之间跨区通信需在每个VPC内设置通信网关,经通信网关实现VPC之间的互连。Similarly, multiple hosts/virtual machines/containers used to run the code can be distributed in the same virtual private cloud (VPC) or in multiple VPCs. Usually, a VPC is set up in a region. For cross-region communication between two VPCs in the same region and between VPCs in different regions, a communication gateway needs to be set up in each VPC to achieve interconnection between VPCs through the communication gateway.

模块作为硬件功能单元的一种举例,A模块可以包括至少一个计算设备,如服务器等。或者,确定单元1102也可以是利用专用集成电路(application-specific integrated circuit,ASIC)实现、或可编程逻辑器件(programmable logic device,PLD)实现的设备等。其中,上述PLD可以是复杂程序逻辑器件(complex programmable logical device,CPLD)、现场可编程门阵列(field-programmable gate array,FPGA)、通用阵列逻辑(generic array logic,GAL)或其任意组合实现。As an example of a hardware functional unit, module A may include at least one computing device, such as a server, etc. Alternatively, the determination unit 1102 may also be a device implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.

确定单元1102包括的多个计算设备可以分布在相同的region中,也可以分布在不同的region中。确定单元1102包括的多个计算设备可以分布在相同的AZ中,也可以分布在不同的AZ中。同样,确定单元1102包括的多个计算设备可以分布在同一个VPC中,也可以分布在多个VPC中。其中,所述多个计算设备可以是服务器、ASIC、PLD、CPLD、FPGA和GAL等计算设备的任意组合。The multiple computing devices included in the determination unit 1102 may be distributed in the same region or in different regions. The multiple computing devices included in the determination unit 1102 may be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in the determination unit 1102 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.

需要说明的是,在其他实施例中,接收单元1101用于执行图5或图8中的过程S501;确定单元1102用于执行图5或图8中的过程S502;创建单元1103用于执行图5或图8中的过程S503。接收单元1101、确定单元1102以及创建单元1103负责实现的步骤可根据需要指定,通过接收单元1101、确定单元1102以及创建单元1103分别实现图5或图8提供的创建云服务实例的方法中不同的步骤来实现创建云服务实例的装置的全部功能。It should be noted that, in other embodiments, the receiving unit 1101 is used to execute the process S501 in FIG. 5 or FIG. 8; the determining unit 1102 is used to execute the process S502 in FIG. 5 or FIG. 8; and the creating unit 1103 is used to execute the process S503 in FIG. 5 or FIG. 8. The steps that the receiving unit 1101, the determining unit 1102, and the creating unit 1103 are responsible for implementing can be specified as needed, and the receiving unit 1101, the determining unit 1102, and the creating unit 1103 respectively implement different steps in the method for creating a cloud service instance provided in FIG. 5 or FIG. 8 to implement all functions of the device for creating a cloud service instance.

另一方面,本申请提供的图4所示的计算设备400中的存储器406中存储有可执行的程序代码,处理器404执行该可执行的程序代码以分别实现前述确定单元1102以及创建单元1103的功能,从而实现上述图5或图8示意的创建云服务实例的方法。也即,存储器406上存有用于执行上述图5或图8示意的创建云服务实例的方法的指令。On the other hand, the memory 406 in the computing device 400 shown in FIG. 4 provided by the present application stores executable program codes, and the processor 404 executes the executable program codes to respectively implement the functions of the aforementioned determining unit 1102 and the creating unit 1103, thereby implementing the method for creating a cloud service instance illustrated in FIG. 5 or FIG. 8. That is, the memory 406 stores instructions for executing the method for creating a cloud service instance illustrated in FIG. 5 or FIG. 8.

再一方面,本申请实施例还提供了一种如图12所示的计算设备集群。该计算设备集群包括至少一台计算设备。该计算设备可以是服务器,例如是中心服务器、边缘服务器,或者是本地数据中心中的本地服务器。在一些实施例中,计算设备也可以是台式机、笔记本电脑或者智能手机等终端设备。On the other hand, the embodiment of the present application also provides a computing device cluster as shown in Figure 12. The computing device cluster includes at least one computing device. The computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop, a laptop, or a smart phone.

如图12所示,所述计算设备集群包括至少一个计算设备400。计算设备集群中的一个或多个计算设备400中的存储器406中可以存有相同的用于执行上述图5或图8示意的创建云服务实例的方法的指令。As shown in Fig. 12, the computing device cluster includes at least one computing device 400. The memory 406 in one or more computing devices 400 in the computing device cluster may store the same instructions for executing the method for creating a cloud service instance illustrated in Fig. 5 or Fig. 8.

在一些可能的实现方式中,该计算设备集群中的一个或多个计算设备400的存储器406中也可以分别存有用于执行上述图5或图8示意的创建云服务实例的方法的部分指令。换言之,一个或多个计算设备400的组合可以共同执行用于执行上述图5或图8示意的创建云服务实例的方法的指令。In some possible implementations, the memory 406 of one or more computing devices 400 in the computing device cluster may also respectively store partial instructions for executing the method for creating a cloud service instance illustrated in FIG5 or FIG8. In other words, the combination of one or more computing devices 400 may jointly execute instructions for executing the method for creating a cloud service instance illustrated in FIG5 or FIG8.

需要说明的是,计算设备集群中的不同的计算设备400中的存储器406可以存储不同的指令,分别用于执行创建云服务实例的装置110的部分功能。也即,不同的计算设备400中的存储器406存储的指令可以实现确定单元1102以及创建单元1103中的一个或多个模块的功能。It should be noted that the memory 406 in different computing devices 400 in the computing device cluster may store different instructions, which are respectively used to execute part of the functions of the apparatus 110 for creating a cloud service instance. That is, the instructions stored in the memory 406 in different computing devices 400 may implement the functions of one or more modules in the determining unit 1102 and the creating unit 1103.

在一些可能的实现方式中,计算设备集群中的一个或多个计算设备400可以通过网络连接。其中,所述网络可以是广域网或局域网等等。图13示出了一种可能的实现方式。如图13所示,两个计算设备400A和400B之间通过网络进行连接。具体地,通过各个计算设备中的通信接口与所述网络进行连接。在这一类可能的实现方式中,计算设备400A中的存储器406中存有执行确定单元1102的功能的指令。同时,计算设备400B中的存储器406中存有执行创建单元1103的功能的指令。In some possible implementations, one or more computing devices 400 in the computing device cluster can be connected via a network. The network may be a wide area network or a local area network, etc. FIG. 13 shows a possible implementation. As shown in FIG. 13 , two computing devices 400A and 400B are connected via a network. Specifically, the network is connected via a communication interface in each computing device. In this type of possible implementation, the memory 406 in the computing device 400A stores instructions for executing the function of the determination unit 1102. At the same time, the memory 406 in the computing device 400B stores instructions for executing the function of the creation unit 1103.

图13所示的计算设备集群之间的连接方式可以是考虑到本申请提供的创建云服务实例的方法需要大量地存储数据,因此考虑将创建单元1103实现的功能交由计算设备400B执行。The connection method between the computing device clusters shown in Figure 13 can be considered that the method for creating a cloud service instance provided in this application requires a large amount of data storage, so it is considered to hand over the functions implemented by the creation unit 1103 to the computing device 400B for execution.

应理解,图13中示出的计算设备400A的功能也可以由多个计算设备400完成。同样,计算设备400B的功能也可以由多个计算设备400完成。It should be understood that the functions of the computing device 400A shown in FIG13 may also be completed by multiple computing devices 400. Similarly, the functions of the computing device 400B may also be completed by multiple computing devices 400.

再一方面,本申请实施例还提供了一种包含指令的计算机程序产品。所述计算机程序产品可以是包含指令的,能够运行在计算设备上或被储存在任何可用介质中的软件或程序产品。当所述计算机程序产品在至少一个计算设备上运行时,使得至少一个计算设备执行上述图5或图8示意的创建云服务实例的方法。On the other hand, the embodiment of the present application further provides a computer program product including instructions. The computer program product may be a software or 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 for creating a cloud service instance illustrated in FIG. 5 or FIG. 8 above.

再一方面,本申请实施例还提供了一种计算机可读存储介质。所述计算机可读存储介质可以是计算设备能够存储的任何可用介质或者是包含一个或多个可用介质的数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘)等。该计算机可读存储介质包括指令,所述指令指示计算设备执行上述图5或图8示意的创建云服务实例的方法,或指示计算设备执行上述图5或图8示意的创建云服务实例的方法。On the other hand, an 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 drive), etc. The computer-readable storage medium includes instructions that instruct the computing device to execute the method for creating a cloud service instance illustrated in Figure 5 or Figure 8 above, or instruct the computing device to execute the method for creating a cloud service instance illustrated in Figure 5 or Figure 8 above.

最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的保护范围。 Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the protection scope of the technical solutions of the embodiments of the present invention.

Claims (21)

一种创建云服务实例的方法,其特征在于,所述方法应用于云管理平台,所述云管理平台用于管理租户的物理资源池,所述方法包括:A method for creating a cloud service instance, characterized in that the method is applied to a cloud management platform, the cloud management platform is used to manage a tenant's physical resource pool, and the method includes: 所述云管理平台接收所述租户的服务请求,所述服务请求用于利用所述物理资源池内的计算资源创建目标云服务实例,所述物理资源池被配置为多个逻辑资源池,所述多个逻辑资源池用于提供不同类型的云服务实例,每种类型的云服务实例所需要的计算资源的比例不同,所述计算资源包括中央处理器CPU和内存;The cloud management platform receives a service request from the tenant, wherein the service request is used to create a target cloud service instance using computing resources in the physical resource pool, wherein the physical resource pool is configured as a plurality of logical resource pools, and wherein the plurality of logical resource pools are used to provide different types of cloud service instances, and each type of cloud service instance requires a different proportion of computing resources, and the computing resources include a central processing unit (CPU) and memory; 所述云管理平台响应于所述服务请求,从所述物理资源池的多个逻辑资源池中确定与所述目标云服务实例的类型相匹配的目标逻辑资源池;The cloud management platform determines, in response to the service request, a target logical resource pool that matches the type of the target cloud service instance from a plurality of logical resource pools of the physical resource pool; 所述云管理平台利用所述目标逻辑资源池内的计算资源,创建所述目标云服务实例。The cloud management platform creates the target cloud service instance by using the computing resources in the target logical resource pool. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, characterized in that the method further comprises: 在满足触发条件后,所述云管理平台调整所述物理资源池中至少一个逻辑资源池对应分配的计算资源的数量,以提高第一类型的云服务实例的可发放量,所述第一类型的云服务实例是所述不同类型的云服务实例中的任意一种。After the trigger condition is met, the cloud management platform adjusts the number of computing resources allocated to at least one logical resource pool in the physical resource pool to increase the amount of cloud service instances of the first type that can be issued, and the first type of cloud service instances is any one of the different types of cloud service instances. 根据权利要求2所述的方法,其特征在于,所述触发条件包括下述内容中一项或多项:预设时刻、预设周期、所述第一类型的云服务实例的可发放量小于第一阈值、第二类型的云服务实例的分配率超过第二阈值,所述第二类型的云服务实例是所述不同类型的云服务实例中的任意一种。The method according to claim 2 is characterized in that the trigger condition includes one or more of the following: a preset time, a preset period, the releasable amount of the first type of cloud service instance is less than a first threshold, the allocation rate of the second type of cloud service instance exceeds a second threshold, and the second type of cloud service instance is any one of the different types of cloud service instances. 根据权利要求2或3所述的方法,其特征在于,所述方法还包括:The method according to claim 2 or 3, characterized in that the method further comprises: 所述云管理平台接收所述租户输入的所述触发条件和容量规划目标,所述容量规划目标包括:所述第一类型的云服务实例的可发放量最高。The cloud management platform receives the trigger condition and capacity planning target input by the tenant, where the capacity planning target includes: the maximum number of cloud service instances of the first type that can be issued. 根据权利要求4所述的方法,其特征在于,所述在满足触发条件后,所述云管理平台调整所述物理资源池中至少一个逻辑资源池对应分配的计算资源的数量,包括:The method according to claim 4 is characterized in that after the trigger condition is met, the cloud management platform adjusts the number of computing resources corresponding to at least one logical resource pool in the physical resource pool, including: 在满足所述触发条件后,所述云管理平台按照所述容量规划目标进行数学建模并求解,得到资源配置方案;After the trigger condition is met, the cloud management platform performs mathematical modeling and solves according to the capacity planning target to obtain a resource allocation plan; 根据所述资源配置方案,调整所述物理资源池中至少一个逻辑资源池对应分配的计算资源的数量。According to the resource configuration scheme, the quantity of computing resources allocated to at least one logical resource pool in the physical resource pool is adjusted. 根据权利要求2至5中任意一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 2 to 5, characterized in that the method further comprises: 所述云管理平台接收所述租户输入的容量规划限制条件,所述容量规划限制条件包括下述内容中一项或多项:被调整了资源分配的物理主机数不超过第三阈值、相邻两次调整之间第三类型的云服务实例的可发放量的变动不超过第四阈值,其中,所述第三类型的云服务实例是所述不同类型的云服务实例中的任意一种;The cloud management platform receives a capacity planning constraint condition input by the tenant, wherein the capacity planning constraint condition includes one or more of the following: the number of physical hosts whose resource allocation is adjusted does not exceed a third threshold, and the change in the provisionable quantity of the third type of cloud service instance between two adjacent adjustments does not exceed a fourth threshold, wherein the third type of cloud service instance is any one of the different types of cloud service instances; 所述在满足触发条件后,所述云管理平台调整所述物理资源池中至少一个逻辑资源池对应分配的计算资源的数量,包括:After the trigger condition is met, the cloud management platform adjusts the number of computing resources allocated to at least one logical resource pool in the physical resource pool, including: 在满足所述触发条件后,所述云管理平台根据所述容量规划限制条件,调整所述物理资源池中至少一个逻辑资源池对应分配的计算资源的数量。After the trigger condition is met, the cloud management platform adjusts the number of computing resources allocated to at least one logical resource pool in the physical resource pool according to the capacity planning restriction condition. 根据权利要求1至6中任意一项所述的方法,其特征在于,在所述云管理平台接收所述服务请求之前,所述方法还包括:The method according to any one of claims 1 to 6, characterized in that before the cloud management platform receives the service request, the method further comprises: 所述云管理平台接收所述租户输入的关于所述物理资源池的配置项,所述配置项用于指示所述多个逻辑资源池、每个逻辑资源池对应分配的计算资源的数量、以及每个逻辑资源池对应的云服务实例的类型;The cloud management platform receives a configuration item about the physical resource pool input by the tenant, where the configuration item is used to indicate the multiple logical resource pools, the number of computing resources allocated to each logical resource pool, and the type of cloud service instance corresponding to each logical resource pool; 所述云管理平台根据所述配置项,将所述物理资源池配置为所述多个逻辑资源池。The cloud management platform configures the physical resource pool into the multiple logical resource pools according to the configuration items. 根据权利要求7所述的方法,其特征在于,所述配置项还用于指示:所述物理资源池中每个逻辑资源池对应的物理主机的标识。The method according to claim 7 is characterized in that the configuration item is also used to indicate: an identifier of a physical host corresponding to each logical resource pool in the physical resource pool. 根据权利要求1至8中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 8, characterized in that the method further comprises: 提供可视化界面,所述可视化界面用于展示所述物理资源池的观察指标的值,和/或,所述多个逻辑资源池的观察指标的值;Providing a visualization interface, the visualization interface is used to display the values of the observation indicators of the physical resource pool and/or the values of the observation indicators of the multiple logical resource pools; 所述物理资源池的观察指标包括下述指标中一项或多项:所述物理资源池提供的云服务实例的类型数、所述物理资源池中计算资源的总量、未发放的计算资源的数量、已发放的计算资源的数量、计算资源的分配率;The observation indicators of the physical resource pool include one or more of the following indicators: the number of types of cloud service instances provided by the physical resource pool, the total amount of computing resources in the physical resource pool, the number of unissued computing resources, the number of issued computing resources, and the allocation rate of computing resources; 所述多个逻辑资源池的观察指标包括下述指标中一项或多项:每个逻辑资源池中计算资源的总量、未发放的计算资源的数量、已发放的计算资源的数量、计算资源的分配率。The observation indicators of the multiple logical resource pools include one or more of the following indicators: the total amount of computing resources in each logical resource pool, the number of unissued computing resources, the number of issued computing resources, and the allocation rate of computing resources. 一种创建云服务实例的装置,其特征在于,所述装置部署于云管理平台,所述云管理平台用于管理租户的物理资源池,所述装置包括:A device for creating a cloud service instance, characterized in that the device is deployed on a cloud management platform, the cloud management platform is used to manage a tenant's physical resource pool, and the device includes: 接收单元,用于接收所述租户的服务请求,所述服务请求用于利用所述物理资源池内的计算资源创建目标云服务实例,所述物理资源池被配置为多个逻辑资源池,所述多个逻辑资源池用于提供不同类型的云服务实例,每种类型的云服务实例所需要的计算资源的比例不同,所述计算资源包括中央处理器CPU和内存;a receiving unit, configured to receive a service request from the tenant, wherein the service request is used to create a target cloud service instance using computing resources in the physical resource pool, wherein the physical resource pool is configured as a plurality of logical resource pools, and wherein the plurality of logical resource pools are used to provide different types of cloud service instances, and each type of cloud service instance requires a different proportion of computing resources, and the computing resources include a central processing unit (CPU) and memory; 确定单元,用于响应于所述服务请求,从所述物理资源池的多个逻辑资源池中确定与所述目标云服务实例的类型相匹配的目标逻辑资源池;a determining unit, configured to determine, in response to the service request, a target logical resource pool that matches the type of the target cloud service instance from a plurality of logical resource pools of the physical resource pool; 创建单元,用于利用所述目标逻辑资源池内的计算资源,创建所述目标云服务实例。The creation unit is used to create the target cloud service instance by using the computing resources in the target logical resource pool. 根据权利要求10所述的装置,其特征在于,所述装置还包括配置单元,用于:The device according to claim 10, characterized in that the device further comprises a configuration unit, configured to: 满足触发条件后,调整所述物理资源池中至少一个逻辑资源池对应分配的计算资源的数量,以提高第一类型的云服务实例的可发放量,所述第一类型的云服务实例是所述不同类型的云服务实例中的任意一种。After the trigger condition is met, the number of computing resources allocated to at least one logical resource pool in the physical resource pool is adjusted to increase the amount of cloud service instances of the first type that can be issued, where the first type of cloud service instances is any one of the different types of cloud service instances. 根据权利要求11所述的装置,其特征在于,所述触发条件包括下述内容中一项或多项:预设时刻、预设周期、所述第一类型的云服务实例的可发放量小于第一阈值、第二类型的云服务实例的分配率超过第二阈值,所述第二类型的云服务实例是所述不同类型的云服务实例中的任意一种。The device according to claim 11 is characterized in that the trigger condition includes one or more of the following: a preset time, a preset period, the releasable amount of the first type of cloud service instance is less than a first threshold, the allocation rate of the second type of cloud service instance exceeds a second threshold, and the second type of cloud service instance is any one of the different types of cloud service instances. 根据权利要求11或12所述的装置,其特征在于,所述接收单元还用于:The device according to claim 11 or 12, characterized in that the receiving unit is further used for: 接收所述租户输入的所述触发条件和容量规划目标,所述容量规划目标包括:所述第一类型的云服务实例的可发放量最高。The trigger condition and capacity planning target input by the tenant are received, where the capacity planning target includes: the maximum number of cloud service instances of the first type that can be issued is the highest. 根据权利要求13所述的装置,其特征在于,所述配置单元具体用于:The device according to claim 13, characterized in that the configuration unit is specifically used to: 在满足所述触发条件后,按照所述容量规划目标进行数学建模并求解,得到资源配置方案;After the trigger condition is met, mathematical modeling is performed and solved according to the capacity planning target to obtain a resource allocation plan; 根据所述资源配置方案,调整所述物理资源池中至少一个逻辑资源池对应分配的计算资源的数量。According to the resource configuration scheme, the quantity of computing resources allocated to at least one logical resource pool in the physical resource pool is adjusted. 根据权利要求11至14中任意一项所述的装置,其特征在于,The device according to any one of claims 11 to 14, characterized in that 所述接收单元还用于:接收所述租户输入的容量规划限制条件,所述容量规划限制条件包括下述内容中一项或多项:被调整了资源分配的物理主机数不超过第三阈值、相邻两次调整之间第三类型的云服务实例的可发放量的变动不超过第四阈值,其中,所述第三类型的云服务实例是所述不同类型的云服务实例中的任意一种;The receiving unit is further used to: receive a capacity planning restriction condition input by the tenant, wherein the capacity planning restriction condition includes one or more of the following: the number of physical hosts whose resource allocation is adjusted does not exceed a third threshold, and the change in the provisionable amount of the third type of cloud service instance between two adjacent adjustments does not exceed a fourth threshold, wherein the third type of cloud service instance is any one of the different types of cloud service instances; 所述配置单元具体用于:在满足所述触发条件后,根据所述容量规划限制条件,调整所述物理资源池中至少一个逻辑资源池对应分配的计算资源的数量。The configuration unit is specifically configured to adjust the number of computing resources allocated to at least one logical resource pool in the physical resource pool according to the capacity planning restriction condition after the trigger condition is met. 根据权利要求10至15中任意一项所述的装置,其特征在于,The device according to any one of claims 10 to 15, characterized in that 所述接收单元还用于:在接收所述服务请求之前,接收所述租户输入的关于所述物理资源池的配置项,所述配置项用于指示所述多个逻辑资源池、每个逻辑资源池对应分配的计算资源的数量、以及每个逻辑资源池对应的云服务实例的类型;The receiving unit is further used to: before receiving the service request, receive a configuration item about the physical resource pool input by the tenant, the configuration item being used to indicate the multiple logical resource pools, the number of computing resources allocated to each logical resource pool, and the type of cloud service instance corresponding to each logical resource pool; 所述装置还包括配置单元,用于根据所述配置项,将所述物理资源池配置为所述多个逻辑资源池。The device also includes a configuration unit, configured to configure the physical resource pool into the multiple logical resource pools according to the configuration items. 根据权利要求16所述的装置,其特征在于,所述配置项还用于指示:所述物理资源池中每个逻辑资源池对应的物理主机的标识。The device according to claim 16 is characterized in that the configuration item is also used to indicate: an identifier of a physical host corresponding to each logical resource pool in the physical resource pool. 根据权利要求10至17中任一项所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 10 to 17, characterized in that the device further comprises: 显示单元,用于提供可视化界面,所述可视化界面用于展示所述物理资源池的观察指标的值,和/或,所述多个逻辑资源池的观察指标的值;A display unit, configured to provide a visualization interface, wherein the visualization interface is configured to display the values of the observation indicators of the physical resource pool and/or the values of the observation indicators of the plurality of logical resource pools; 所述物理资源池的观察指标包括下述指标中一项或多项:所述物理资源池提供的云服务实例的类型数、所述物理资源池中计算资源的总量、未发放的计算资源的数量、已发放的计算资源的数量、计算资源的分配率;The observation indicators of the physical resource pool include one or more of the following indicators: the number of types of cloud service instances provided by the physical resource pool, the total amount of computing resources in the physical resource pool, the number of unissued computing resources, the number of issued computing resources, and the allocation rate of computing resources; 所述多个逻辑资源池的观察指标包括下述指标中一项或多项:每个逻辑资源池中计算资源的总量、未发放的计算资源的数量、已发放的计算资源的数量、计算资源的分配率。The observation indicators of the multiple logical resource pools include one or more of the following indicators: the total amount of computing resources in each logical resource pool, the number of unissued computing resources, the number of issued computing resources, and the allocation rate of computing resources. 一种计算设备集群,其特征在于,包括至少一个计算设备,每个计算设备包括处理器和存储器; A computing device cluster, characterized in that it includes at least one computing device, each computing device includes a processor and a memory; 所述至少一个计算设备的处理器用于执行所述至少一个计算设备的存储器中存储的指令,以使得所述计算设备集群执行如权利要求1-9中任一项所述的方法。The processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the method according to any one of claims 1 to 9. 一种包含指令的计算机程序产品,其特征在于,当所述指令被计算设备集群运行时,使得所述计算设备集群执行如权利要求的1-9任一项所述的方法。A computer program product comprising instructions, characterized in that when the instructions are executed by a computing device cluster, the computing device cluster executes the method according to any one of claims 1 to 9. 一种计算机可读存储介质,其特征在于,包括计算机程序指令,当所述计算机程序指令由计算设备集群执行时,所述计算设备集群执行如权利要求1-9任一项所述的方法。 A computer-readable storage medium, characterized in that it includes computer program instructions. When the computer program instructions are executed by a computing device cluster, the computing device cluster executes the method according to any one of claims 1 to 9.
PCT/CN2024/098721 2023-07-10 2024-06-12 Method and apparatus for creating cloud service instance Pending WO2025011247A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202310840577.2 2023-07-10
CN202310840577 2023-07-10
CN202311489551.4A CN119292757A (en) 2023-07-10 2023-11-09 A method and device for creating a cloud service instance
CN202311489551.4 2023-11-09

Publications (2)

Publication Number Publication Date
WO2025011247A1 WO2025011247A1 (en) 2025-01-16
WO2025011247A9 true WO2025011247A9 (en) 2025-03-20

Family

ID=94149684

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2024/098721 Pending WO2025011247A1 (en) 2023-07-10 2024-06-12 Method and apparatus for creating cloud service instance

Country Status (2)

Country Link
CN (1) CN119292757A (en)
WO (1) WO2025011247A1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10994198B1 (en) * 2018-11-28 2021-05-04 Amazon Technologies, Inc. Risk assessment for placement of hosted sessions
WO2020197688A1 (en) * 2019-03-22 2020-10-01 Amazon Technologies, Inc. Bin-packing virtual machine workloads using forecasted capacity usage
CN112286632B (en) * 2020-10-27 2023-07-11 龙芯中科技术股份有限公司 Cloud platform, cloud platform management method and device, electronic equipment and storage medium
CN114640485B (en) * 2020-12-01 2024-04-09 中移(苏州)软件技术有限公司 A centralized access method, device, equipment and storage medium for service data
CN116360994A (en) * 2023-03-30 2023-06-30 中国联合网络通信集团有限公司 Scheduling method, device, server and storage medium of distributed heterogeneous resource pool

Also Published As

Publication number Publication date
WO2025011247A1 (en) 2025-01-16
CN119292757A (en) 2025-01-10

Similar Documents

Publication Publication Date Title
US10164899B2 (en) Software defined infrastructures that encapsulate physical server resources into logical resource pools
CN110476402B (en) Method, device and communication system for creating network slice
US9491313B2 (en) Optimizing storage between mobile devices and cloud storage providers
EP3553657A1 (en) Method and device for allocating distributed system task
US20150304231A1 (en) Generic resource provider for cloud service
CN108614726A (en) Virtual machine creation method and device
EP4187813A1 (en) Resource distribution method for cloud service and related device
US9110729B2 (en) Host system admission control
WO2022199234A1 (en) Method and apparatus for providing cloud service, and device
WO2019076472A1 (en) Management of a virtual network function
US20250165308A1 (en) Resource Scheduling Method and Apparatus, Computing Device Cluster, Medium, and Program Product
US10140163B2 (en) Intelligent framework for shared services orchestration
WO2024055715A1 (en) Method and apparatus for determining big data cluster deployment scheme, cluster, and storage medium
WO2025011247A9 (en) Method and apparatus for creating cloud service instance
WO2023217113A1 (en) Public cloud-based cloud connection service configuration method, and cloud management platform
CN116471134A (en) Charging method, device, electronic equipment and storage medium for heterogeneous cloud resources
CN115701585A (en) Instance migration method and device and related equipment
EP4481562A1 (en) Instance configuration method and apparatus, and device
WO2025016001A1 (en) Resource issuing method and apparatus, and computing device cluster
WO2024109072A1 (en) Host management method and apparatus
WO2024159734A1 (en) Container scheduling method and related device
CN117097632A (en) Public cloud-based cloud connection service configuration method and cloud management platform
CN119902855A (en) Cluster resource management method, device, electronic device and storage medium
HK1250809B (en) Control method and device of resources and cluster resource management system
CN116843539A (en) Processing method and device for nodes in cloud cluster platform

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 24838505

Country of ref document: EP

Kind code of ref document: A1

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载