Cloud platform host node scheduling system and method and electronic equipment
By deploying reservation services in the cloud computing platform, flexibly managing and allocating physical host resources in the cloud platform, the waste caused by resource reservation in the existing technology is solved, and the full utilization of resources and the stable operation of the cloud platform is achieved.
Patent Information
- Application Number
- CN202412000388.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-04-18
- Estimated Expiration
- 2044-12-31
AI Technical Summary
There is a problem of resource waste when reserving computing resources in existing cloud computing platforms. The existing solution is to reserve resources on each host node, which makes these resources unable to be used by other cloud hosts.
By deploying the reservation service in the cloud platform, the client sends a resource reservation registration request. The reservation service sets the resources of the third physical host as reserved resources and moves them into the reserved available domain. Cloud services can apply for the use of these reserved resources and return them after use is completed.
It realizes flexible scheduling of cloud platform resources, avoids the waste of reserved resources on each physical host, makes full use of reserved resources, and ensures the stable operation of cloud platform.
Smart Images

Figure CN119854233A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of cloud computing, and in particular to a cloud platform host node scheduling system, method and electronic device. Background Art
[0002] Cloud computing platform, also known as cloud platform, refers to services based on hardware resources and software resources, providing computing, network and storage capabilities. The rapid development of cloud computing technology has brought about tremendous changes and improvements in all walks of life. How to evaluate the capacity of cloud computing platforms and the reservation strategy and management of resources have become important issues in the development of cloud computing.
[0003] Resource reservation refers to reserving certain resources in advance on the cloud computing platform for the needs of the platform or users. Proper resource reservation can improve the performance and stability of the platform. The cloud host carries user services, and the cloud host is deployed on a physical host. Once the physical host is abnormal or fails, the user services on it will be affected. In order to achieve stable operation of the cloud platform and provide services, the cloud platform needs to reserve certain computing resources for redundancy.
[0004] However, the existing resource reservation scheme allocates and reserves a certain amount of computing resources (such as CPU and memory) on each host node (physical host) as redundant resources in advance. These resources will not be used by other cloud host processes. Although it can ensure the normal operation of the cloud host, there is a problem of computing resource waste. Therefore, how to reasonably reserve computing resources to ensure the stable operation of the cloud platform and provide services is a technical problem that needs to be solved urgently. Summary of the invention
[0005] In order to overcome the problems existing in the related art, the present disclosure provides a cloud platform host node scheduling system, method and electronic device. The technical solution of the present disclosure is as follows: According to a first aspect of an embodiment of the present disclosure, a cloud platform host node scheduling system is provided, including: A client, a first physical host with a reserved service deployed thereon, and a second physical host with a cloud service deployed thereon, wherein the cloud service is a cloud platform service other than the reserved service; The client sends a resource reservation registration request for the third physical host, the first physical host receives the resource reservation registration request, and sets the resources of the third physical host in the cloud platform as reserved resources through the reservation service; The second physical host sends a request for applying for use of reserved resources to the cloud service, the first physical host receives the request for applying for use of reserved resources, and allocates the reserved resources to the platform service through the reservation service.
[0006] Optionally, setting the resources of the third physical host in the cloud platform as reserved resources through the reservation service includes: The third physical host is set to a reserved state through the reservation service, and the third physical host in the reserved state is moved into a reserved available domain. The third physical host in the reserved available domain is not selected when the cloud host is scheduled.
[0007] Optionally, allocating the reserved resources to the platform service for use by the reservation service includes: The reservation service determines the target reserved resource to be applied for according to the request for applying for the use of the reserved resource, sets the target third physical host corresponding to the target reserved resource to a non-reserved state, and moves the target third physical host in the non-reserved state from the reserved available domain to the designated available domain; wherein the target third physical host in the designated available domain is selected when the cloud service schedules the cloud host, and will not be applied for again; The second physical host sends a reserved resource return request, where the reserved resource return request is used to return the target reserved resource used by the cloud service application; The first physical host receives the reserved resource return request, sets the target third physical host corresponding to the reserved resources to a reserved state through the reservation service, and moves the target third physical host in the reserved state from the designated available domain to the reserved available domain. The target third physical host in the reserved available domain is not selected when scheduled by the cloud host.
[0008] Optionally, the reservation service includes: A database, used to store the status and configuration information of the third physical host, wherein the status is a reserved status or a non-reserved status; The cloud service queries the database to see whether there is an available third physical host. If there is an available third physical host, the second physical host sends a request to the cloud service to apply for the use of reserved resources. The available third physical host indicates that the state of the third physical host is a reserved state, and the configuration of the third physical host meets the usage requirements.
[0009] Optionally, setting the third physical host to a reserved state through the reservation service includes: The reservation service obtains the power state of the third physical host through the first plug-in, and when the power state is off, remotely powers on the third physical host through the first plug-in; Detecting the hardware information of the third physical host through the second plug-in, and storing the hardware information in the database for query when the cloud service applies to use the reserved resources; The third physical host is set to a reserved state.
[0010] Optionally, the cloud service is a host high availability service or a dynamic resource adjustment service; In the event of a physical host failure and / or a cloud host failure, the second physical host sends a request for applying to use reserved resources for the host high availability service; When the cloud host service load is at a peak stage, the second physical host sends a request for applying for the use of reserved resources for the dynamic resource adjustment service.
[0011] Optionally, the cloud service is a dynamic power saving function service; In the case of performing node management on the third physical host, the second physical host sends a reserved resource power saving request for the dynamic power saving function service; The first physical host receives the resource reservation registration request, determines a third physical host to be powered off through the reservation service, and performs a power-off operation on the third physical host to be powered off.
[0012] According to a second aspect of an embodiment of the present disclosure, a cloud platform host node scheduling method is provided, including: The client sends a resource reservation registration request for the third physical host; The first physical host receives the resource reservation registration request, and sets the resources of the third physical host in the cloud platform as reserved resources through the reservation service; The second physical host sends a request for applying to use the reserved resources for the cloud service, where the cloud service is a cloud platform service other than the reserved service; The first physical host receives the request for applying for use of the reserved resources, and allocates the reserved resources to the platform service through the reservation service.
[0013] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the steps of the cloud platform host node scheduling method as described in the second aspect.
[0014] According to the fourth aspect of an embodiment of the present disclosure, a non-volatile readable storage medium is provided. When the instructions in the non-volatile readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the steps of the cloud platform host node scheduling method as described in the second aspect.
[0015] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, including a computer program, which, when executed by a processor, implements the steps of the cloud platform host node scheduling method described in the second aspect.
[0016] The disclosed embodiments include the following advantages: The cloud platform host node scheduling system provided in the embodiment of the present disclosure includes: a client, a first physical host with a reservation service deployed, and a second physical host with a cloud service deployed, wherein the cloud service is a cloud platform service other than the reservation service; wherein the client sends a resource reservation registration request for a third physical host, the first physical host receives the resource reservation registration request, and sets the resources of the third physical host in the cloud platform as reserved resources through the reservation service; the second physical host sends an application request for the use of reserved resources to the cloud service, the first physical host receives the application request for the use of reserved resources, and allocates the reserved resources to the platform service for use through the reservation service.
[0017] The system is combined with cloud services in the cloud platform, and flexibly schedules resources based on the granularity of physical hosts. The resources of the third physical host in the cloud platform are set as reserved resources as needed, providing redundant computing resources for cloud services in the cloud platform (for example, reserved resources for high availability of host nodes, resources prepared for peak loads, etc.), which can be applied for and used by all cloud services in the cloud platform. Compared with related technologies, there is no need to reserve resources on each physical host for redundancy, but the resources of some physical hosts (i.e., the third physical host) in the cloud platform are used as reserved resources for application and use by all cloud services in the cloud platform. In this way, the reserved resources of the cloud platform are fully utilized, and the stable operation of the cloud platform is effectively guaranteed by the reserved resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for use in the description of the embodiments of the present disclosure will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0019] Figure 1 It is a structural diagram of a cloud platform host node scheduling system provided by an embodiment of the present disclosure; Figure 2 It is a structural diagram of a cloud platform host node scheduling system provided by an embodiment of the present disclosure; Figure 3 It is a flowchart of the steps of a cloud platform host node scheduling method provided by an embodiment of the present disclosure; Figure 4 It is a flow chart of setting resources of a third physical host in a cloud platform as reserved resources provided by an embodiment of the present disclosure; Figure 5 This is a flow chart of a cloud service application for using reserved resources provided by an embodiment of the present disclosure; Figure 6 It is a flow chart of a cloud service returning reserved resources used in an application provided by an embodiment of the present disclosure; Figure 7 It is a structural schematic diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0020] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0021] The terms "first", "second", etc. in the specification and claims of the present disclosure are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable when appropriate, so that the embodiments of the present disclosure can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0022] In order to better understand the technical solution of the present disclosure, the technical concepts involved in the present disclosure are explained: Cloud platform: also called cloud computing platform, is a combination of a series of software open source projects.
[0023] Host node: also called computing node or physical host, an independent computing node relative to the cloud host, which has all the software and hardware resources of the entire server.
[0024] Cloud host: also called virtual machine, it uses virtual machine technology to virtualize multiple independent host-like parts on a physical host. Each part can have a separate operating system and is managed in the same way as the host.
[0025] Resource reservation refers to reserving certain resources in advance on the cloud computing platform for the needs of the platform or users. Proper resource reservation can improve the performance and stability of the platform. In the planning stage of the cloud computing platform, it is necessary to reasonably configure and plan the infrastructure of the cloud platform. When conducting capacity assessment, first determine the resource requirements of the cloud computing platform, that is, the computing, storage and network resources required under a specific workload. The resource requirements and adaptability to workloads of different sizes can be determined by analyzing historical data, user needs and performance expectations.
[0026] The cloud platform manages various physical resources through hardware virtualization technology to allocate resources to users on demand. By default, the cloud host can use all available capacity of the host node. Since the host node usually runs a lot of operating systems and virtualization virtual machine monitor (hypervisor) processes, unless resources are reserved for these system processes and virtualization processes, they will compete with the cloud host process for resources, resulting in a shortage of host node resources, and even causing the host node to crash. In addition, in order to meet specific business continuity and performance requirements, the most common resource reservation scenario of the cloud platform is to pre-allocate and reserve a certain amount of computing resources (for example, CPU, memory) on the host node. These resources will not be used by other cloud host processes to ensure the smooth operation of the host node operating system and virtualization hyperviosr processes. In order to meet specific business continuity and performance requirements, a resource reservation scenario is to pre-allocate and reserve a certain amount of computing resources (such as CPU, memory) on the host node. These resources will not be used by other cloud host processes, so there is a problem of computing resource waste. Therefore, there is an unreasonable problem of computing resource reservation.
[0027] The cloud host carries user services, and the cloud host is deployed on a physical host. Once the physical host is abnormal or fails, the user services on it will be affected. In order to achieve stable operation of the cloud platform and provide services, the cloud platform needs to reserve certain computing resources for redundancy. When a physical host failure is detected, the reserved resources can be used immediately to restore the cloud host, reduce business interruption time, and provide stable resource guarantee for key applications or workloads.
[0028] In addition, the cloud computing platform will show periodic overtime during operation. When the business load is at its peak, the cloud platform enables redundant computing resources and evenly distributes cloud hosts to all host nodes in the cluster through the load balancing function. When the business load is at its low point, the cloud platform uses the load concentration strategy to concentrate virtual machines (VMs) on certain hosts through hot migration, thereby releasing redundant computing resources. At the same time, power-saving management of the released computing resources can achieve the purpose of energy saving and consumption reduction.
[0029] In order to overcome the limitations of related technologies, the embodiments of the present disclosure provide a cloud platform host node scheduling system and method, which reserves resources at the granularity of host nodes (physical hosts), manages and reserves the resources of the physical hosts of the cloud platform as needed, and provides redundant computing resources for cloud services in the cloud platform. The reserved resources can be applied for and used by all cloud services in the cloud platform. Compared with related technologies, there is no need to reserve resources on each physical host for redundancy. Instead, the resources of some physical hosts in the cloud platform are used as reserved resources for application by all cloud services in the cloud platform, thereby achieving full utilization of the reserved resources of the cloud platform and effectively ensuring the stable operation of the cloud platform through reserved resources.
[0030] The embodiments of the present disclosure provide a cloud platform host node scheduling system and method that can be applied to the following scenarios: 1) It is applicable to the use scenario where the cloud platform has passed capacity assessment and a certain amount of redundant resources are planned; 2) It is applicable to the use scenario where the cloud platform needs to enable at least one of the host high availability (High Available, HA), dynamic resource adjustment or dynamic power saving function services; 3) It can provide computing resources for the normal operation of the cloud computing platform, and can also provide temporary reserved resources for peak loads or abnormal scenarios such as host failures.
[0031] A cloud platform host node scheduling system and method provided by an embodiment of the present disclosure will be described below in conjunction with the accompanying drawings.
[0032] A cloud platform host node scheduling system provided by the embodiment of the present disclosure refers to Figure 1 As shown, Figure 1 1 is a schematic diagram of a cloud platform host node scheduling system provided by an embodiment of the present disclosure. Specifically, the cloud platform host node scheduling system includes: A client, a first physical host with a reserved service deployed thereon, and a second physical host with a cloud service deployed thereon, wherein the cloud service is a cloud platform service other than the reserved service; The client sends a resource reservation registration request for the third physical host, the first physical host receives the resource reservation registration request, and sets the resources of the third physical host in the cloud platform as reserved resources through the reservation service; The second physical host sends a request for applying for use of reserved resources to the cloud service, the first physical host receives the request for applying for use of reserved resources, and allocates the reserved resources to the platform service through the reservation service.
[0033] In the disclosed embodiment, the first physical host, the second physical host and the third physical host are all physical hosts (host nodes) in the cloud platform. The reservation service is deployed on the first physical host. The reservation service is a service for resource reservation and reserved resource allocation. Other cloud services are deployed on the second host node. The cloud services can be cloud host high availability services, dynamic resource adjustment services, dynamic power saving function services and other services.
[0034] The third physical host refers to a physical host in the cloud platform that is used as a reserved resource. The third physical host can be one or more, and the third physical host is determined by analyzing historical data, user needs, and performance expectations. The client can interact with the reservation service on the first physical host. When the cloud platform is deployed or running, the system administrator can specify the resources of certain physical hosts (third physical hosts) in the cloud platform as reserved resources, and send a resource reservation registration request for the third physical host to the first physical host where the reservation service is deployed through the client.
[0035] After receiving the resource reservation registration request, the first physical host sets the resources of the third physical host in the cloud platform as reserved resources through the reservation service, so as to provide redundant computing resources for the cloud services in the cloud platform (for example, host node high availability reserved resources, resources prepared for peak loads, etc.), and the reserved resources can be applied for and used by all cloud services in the cloud platform.
[0036] During the operation of the cloud platform, the cloud service applies to the cloud platform host node scheduling system for the use of reserved resources according to its own business needs. That is, the second physical host sends a request for the use of reserved resources to the cloud service. After the first physical host receives the request for the use of reserved resources, it allocates the reserved resources to the platform service through the reservation service, and then the cloud service can use the reserved resources to schedule the cloud host.
[0037] By adopting the technical solution implemented in the present disclosure, the system is combined with the cloud service in the cloud platform, and the resource scheduling is flexibly performed with the physical host as the granularity. The resources of the third physical host in the cloud platform are set as reserved resources as needed, and redundant computing resources are provided for the cloud services in the cloud platform. The reserved resources can be applied for and used by all cloud services in the cloud platform. Compared with the related art, there is no need to reserve resources on each physical host for redundancy, but the resources of some physical hosts (i.e., the third physical host) in the cloud platform are used as reserved resources for application and use by all cloud services in the cloud platform. In this way, the reserved resources of the cloud platform are fully utilized, and the stable operation of the cloud platform is effectively guaranteed by the reserved resources.
[0038] The following describes "a method of setting resources of the third physical host as reserved resources" and "a method of using reserved resources" respectively.
[0039] (1) Setting the resources of the third physical host as reserved resources: In an optional embodiment, the resources of the third physical host in the cloud platform are set as reserved resources through the reservation service, including: setting the third physical host to a reserved state through the reservation service, and moving the third physical host in the reserved state into a reserved available domain, and the third physical host in the reserved available domain is not selected when the cloud host is scheduled.
[0040] In the disclosed embodiment, the physical hosts in the cloud platform are generally stored in the default designated available domain, and the cloud service can call the physical hosts in the designated available domain to complete the corresponding tasks. For the third physical host that applies to be registered as a reserved resource, its status needs to be set and its placement location needs to be moved. Once the third physical host is set to the reserved status and moved into the reserved available domain, the cloud service will not select the physical host when scheduling the cloud host.
[0041] In this way, by moving the status and placement of the third physical host, the resources of the third physical host can be set as reserved resources, so as to provide redundant computing resources for the cloud services in the cloud platform, and the stable operation of the cloud platform can be effectively guaranteed through the reserved resources.
[0042] Furthermore, the third physical host is set to a reserved state through the reservation service, including: the reservation service obtains the power state of the third physical host through the first plug-in, and when the power state is shut down, remotely powers on the third physical host through the first plug-in; detects the hardware information of the third physical host through the second plug-in, and stores the hardware information in the database for query when the cloud service applies to use reserved resources; and sets the third physical host to a reserved state.
[0043] In the disclosed embodiment, for the third physical host registered as a reserved resource, the reservation service needs to detect the power status (including: shutdown status and power-on status) and hardware information of the physical host before setting the third physical host to the reserved state to ensure that the reserved resources can be applied for use.
[0044] Specifically, the reservation service also includes a first plug-in and a second plug-in. The reservation service can obtain the power status of the third physical host by calling the first plug-in (i.e., the baremetal plug-in). For the third physical host whose power status is off, the first plug-in is also required to remotely power on the third physical host; for the third physical host in the powered-on state, the second plug-in (lcompute plug-in) is used to detect hardware information to add the hardware information to the database for subsequent query of the information of the third physical host through the database. Among them, the hardware information refers to the CPU model, number of CPU cores, memory capacity and other information of the host node.
[0045] In this way, the reservation service flexibly sets the resources of the third physical host in the cloud platform as reserved resources, and the reserved resources are in a powered-on state and can be directly applied for by the cloud service, thereby providing redundant computing resources for the cloud services in the cloud platform to ensure the smooth operation of the cloud platform.
[0046] (2) How to use reserved resources: In an optional embodiment, allocating the reserved resources to the platform service for use by the reservation service includes: The reservation service determines the target reserved resource to be applied for according to the request for applying for the use of the reserved resource, sets the target third physical host corresponding to the target reserved resource to a non-reserved state, and moves the target third physical host in the non-reserved state from the reserved available domain to the designated available domain; wherein the target third physical host in the designated available domain is selected when the cloud service schedules the cloud host, and will not be applied for again; The second physical host sends a reserved resource return request, where the reserved resource return request is used to return the target reserved resource used by the cloud service application; The first physical host receives the reserved resource return request, sets the target third physical host corresponding to the reserved resources to a reserved state through the reservation service, and moves the target third physical host in the reserved state from the designated available domain to the reserved available domain. The target third physical host in the reserved available domain is not selected when scheduled by the cloud host.
[0047] In the disclosed embodiment, the state of the third physical host corresponding to the reserved resources is a reserved state, and the location is in the reserved available domain. When the reserved service on the first physical host receives a request for applying to use the reserved resources, it executes an operation of allocating the reserved resources for use by the cloud service, that is, the target third physical host corresponding to the target reserved resources applied for use is set to a non-reserved state, and is placed in a designated available domain, so that the cloud service can select the target third physical host to schedule the cloud host.
[0048] Moreover, after the cloud service has completed using the reserved resources, the target reserved resources requested for use can be returned, that is, the second physical host sends a request to return the reserved resources, and after the first physical host receives the request to return the reserved resources, the corresponding target third physical host is set to a reserved state through the reservation service, and the target third physical host is moved into the reserved available domain again for use by other cloud services.
[0049] It can be understood that when the target reserved resources are applied for by the cloud service, other cloud services cannot apply for the target reserved resources that have been applied for again; only when the target reserved resources that have been applied for are returned, that is, the target third physical host corresponding to the target reserved resources is set to the reserved state again, and moved from the specified available domain to the reserved available domain, can the reserved resources be applied for again. In this way, multiple cloud services are prevented from applying for the same target reserved resources at the same time, resulting in resource preemption, thereby ensuring the smooth operation of the cloud platform.
[0050] In an optional embodiment, the reservation service includes: A database, used to store the status and configuration information of the third physical host, wherein the status is a reserved status or a non-reserved status; The cloud service queries the database to see whether there is an available third physical host. If there is an available third physical host, the second physical host sends a request to the cloud service to apply for the use of reserved resources. The available third physical host indicates that the state of the third physical host is a reserved state, and the configuration of the third physical host meets the usage requirements.
[0051] In the disclosed embodiment, the database can persistently save the information and operation records of the third physical host in the cloud platform, that is, the status and configuration information of the third physical host as the reserved resource are placed in the data. The cloud service can apply to use the reserved resources according to business needs. Before applying to use the reserved resources, it first queries the database to see whether there is an available third physical host. If there is no available third physical host, the operation is terminated; if there is an available third physical host, the cloud service applies to use the third physical host, that is, the second physical host sends an application request to use the reserved resources to the cloud service, and then the reserved service of the first physical host, after receiving the application request to use the reserved resources, will execute the operation of allocating the reserved resources to the platform service for use.
[0052] In this way, cloud services in the cloud platform can apply for the use of reserved resources as needed, making full use of the reserved resources of the cloud platform, thereby ensuring the smooth operation of the cloud platform.
[0053] In an optional embodiment, the cloud service is a host high availability service or a dynamic resource adjustment service; In the event of a physical host failure and / or a cloud host failure, the second physical host sends a request for applying to use reserved resources for the host high availability service; When the cloud host service load is at a peak stage, the second physical host sends a request for applying for the use of reserved resources for the dynamic resource adjustment service.
[0054] In the disclosed embodiments, the reserved resources can be used as high availability reserved resources. In the event of a physical host failure and / or a cloud host failure, the host high availability service can immediately apply for the use of the reserved resources to restore the cloud host, thereby reducing service interruption time. The reserved resources can be used as peak load preparation resources. In the event of a cloud host service load at a peak stage, the dynamic resource adjustment service can immediately apply for the use of the reserved resources to ensure the smooth operation of the service.
[0055] In this way, during the operation of the cloud platform, the host high availability service and dynamic resource adjustment service can use the reserved host nodes on demand, fully utilize the reserved host nodes in the cloud platform, and effectively ensure the stable operation of the cloud platform.
[0056] In an optional embodiment, the cloud service is a dynamic power saving function service; when performing node management on the third physical host, the second physical host sends a reserved resource power saving request for the dynamic power saving function service; the first physical host receives the resource reservation registration request, determines the third physical host to be powered off through the reservation service, and powers off the third physical host to be powered off.
[0057] In the disclosed embodiment, the reserved resources can be used to optimize energy consumption. When performing node management on the third physical host, the dynamic power saving function service can perform power saving management on the reserved resources, thereby achieving the purpose of energy saving and consumption reduction.
[0058] Reference Figure 2 As shown, Figure 2 1 is a schematic diagram of the structure of another cloud platform host node scheduling system provided by an embodiment of the present disclosure. Specifically, the cloud platform host node scheduling system specifically includes: A client, a first physical host with a reserved service deployed, and a second physical host with a cloud service deployed, wherein the cloud service is a cloud platform service other than the reserved service; the reserved service includes a database, an interactive interface, a management module, and a plug-in, wherein the plug-in includes a first plug-in and a second plug-in; Specifically, the client interacts with the reservation service deployed on the first physical host through an interactive interface (wherein the interactive interface may be an application programming interface), that is, the client sends a resource reservation registration request for the third physical host, the first physical host receives the resource reservation registration request, and then the management module in the reservation service obtains the power status of the third physical host through the first plug-in, and when the power status is off, remotely powers on the third physical host through the first plug-in; the hardware information of the third physical host is detected through the second plug-in, and the hardware information is stored in the database for query when the cloud service applies to use the reserved resources; finally, the third physical host is set to a reserved state, and the second plug-in is called to move the third physical host in the reserved state into the reserved available domain. The third physical host in the reserved available domain is used as a reserved resource and is not selected when the cloud host is scheduled.
[0059] When the cloud service in the cloud platform needs to apply for the use of reserved resources, the cloud service queries whether there is an available third physical host through the database. If there is an available third physical host, the second physical host sends a request to apply for the use of reserved resources to the cloud service through the interactive interface. After the first physical host receives the request to apply for the use of reserved resources, the reservation service determines the target reserved resources to be applied for through the management module, sets the target third physical host corresponding to the target reserved resources to a non-reserved state, and calls the second plug-in to move the third physical host in a non-reserved state from the reserved available domain to the specified available domain, so that the cloud service can select the target third physical host to schedule the cloud host.
[0060] After the cloud service has completed using the reserved resources, the target reserved resources applied for can be returned, that is, the second physical host sends a reserved resource return request through the interactive interface, and the management module in the reservation service initializes and verifies the returned target third physical host (for example, verifies the configuration and status of the target third physical host), and sets the target third physical host corresponding to the reserved resources to the reserved state, and moves the target third physical host to the reserved available domain again to realize the return of the reserved resource cat.
[0061] In this way, the system is combined with the cloud service in the cloud platform, and flexibly performs resource scheduling based on the granularity of the physical host. The resources of the third physical host in the cloud platform are set as reserved resources as needed, providing redundant computing resources for the cloud services in the cloud platform. The reserved resources can be applied for and used by all cloud services in the cloud platform. Specifically, based on the resource reservation registration request sent by the client, the resources of the third physical host in the cloud platform are flexibly set as reserved resources, and this part of the reserved resources is flexibly allocated to the cloud service for use. The cloud service can return the reserved host node applied for for use by other cloud services. Compared with the related art, there is no need to reserve resources on each physical host for redundancy, but the resources of some physical hosts (i.e., the third physical host) in the cloud platform are used as reserved resources for all cloud services in the cloud platform to apply for use, so as to make full use of the reserved resources of the cloud platform and effectively ensure the stable operation of the cloud platform through reserved resources.
[0062] A cloud platform host node scheduling method provided by the embodiment of the present disclosure refers to Figure 3 As shown, Figure 3 : is a flow chart of the steps of a cloud platform host node scheduling method provided by an embodiment of the present disclosure. The cloud platform host node scheduling method may include steps S310 to S340: Step S310: the client sends a resource reservation registration request for the third physical host.
[0063] Step S320: The first physical host receives the resource reservation registration request, and sets the resources of the third physical host in the cloud platform as reserved resources through the reservation service.
[0064] Step S330: the second physical host sends a request for using the reserved resources for the cloud service, where the cloud service is a cloud platform service other than the reserved service.
[0065] Step S340: The first physical host receives the request for applying for the use of the reserved resources, and allocates the reserved resources to the platform service through the reservation service.
[0066] In the disclosed embodiment, resource scheduling is flexibly performed with the physical host as the granularity, and the resources of the third physical host in the cloud platform are set as reserved resources as needed, providing redundant computing resources for the cloud services in the cloud platform (for example, host node high availability reserved resources, resources prepared for peak loads, resources prepared for peak loads, etc.), and the reserved resources can be applied for and used by all cloud services in the cloud platform. Compared with the related art, there is no need to reserve resources on each physical host for redundancy, but the resources of some physical hosts (i.e., the third physical host) in the cloud platform are used as reserved resources for all cloud services in the cloud platform to apply for use, so that the reserved resources of the cloud platform are fully utilized, and the stable operation of the cloud platform is effectively guaranteed by the reserved resources.
[0067] like Figure 4 As shown, the process of setting the resources of the third physical host in the cloud platform as reserved resources is as follows: the first physical host receives the resource reservation registration request, and then the reservation service initializes and verifies the third physical host to obtain hardware information, that is, the reservation service obtains the power status of the third physical host through the first plug-in, and when the power status is off, the third physical host is remotely powered on through the first plug-in, the hardware information of the third physical host is detected through the second plug-in, and the hardware information is stored in the database for query when the cloud service applies to use the reserved resources, and finally the third physical host is set to the reserved state, and the third physical host in the reserved state is moved into the reserved available domain.
[0068] like Figure 5 As shown, the process of the cloud service applying for the use of reserved resources is as follows: the process of setting the resources of the third physical host in the cloud platform as reserved resources through the reservation service is as follows: the cloud service queries through the database whether there is an available third physical host, and when there is an available third physical host, the second physical host sends a request for applying for the use of reserved resources to the cloud service; then the first physical host receives the request for applying for the use of reserved resources, and the reservation service determines the target reserved resources to be applied for based on the request for applying for the use of reserved resources, sets the target third physical host corresponding to the target reserved resources to a non-reserved state, and moves the non-reserved target third physical host from the reserved available domain to the specified available domain.
[0069] After the cloud service has finished using the reserved resources, you can return the reserved resources you applied for. Figure 6As shown, the process of cloud service returning the reserved resources applied for use is as follows: the second physical host sends a request to return the reserved resources, the first physical host receives the request to return the reserved resources, and the target third physical host corresponding to the reserved resources is set to a reserved state through the reservation service, and the target third physical host in the reserved state is moved from the specified available domain to the reserved available domain to realize the return of the reserved resources. In this way, by executing the operation of applying for the reserved resources, the cloud service can return the reserved resources applied for use as needed for other cloud services to apply for use, thereby realizing the flexible use of reserved resources and avoiding the waste of computing resources in the cloud platform.
[0070] In some optional embodiments, the reserved resources may be applied for use according to the priority of the cloud service. Specifically, when there are multiple cloud services applying for use of the reserved resources at the same time, the request for use of the reserved resources by the cloud service with a high priority is responded to first according to the priority order of different cloud services in the cloud platform, so as to ensure that the cloud service with a high priority can use the reserved resources to execute the corresponding business, thereby ensuring that the important business in the cloud platform can proceed smoothly.
[0071] The present disclosure also provides an electronic device, referring to Figure 7 , Figure 7 Schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Figure 7 As shown, the electronic device 700 includes: a memory 710 and a processor 720. The memory 710 and the processor 720 are connected via a bus communication. A computer program is stored in the memory 710. The computer program can be run on the processor 720 to implement the steps of the cloud platform host node scheduling method disclosed in the public embodiment.
[0072] The embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the cloud platform host node scheduling method disclosed in the embodiment of the present disclosure are implemented.
[0073] The embodiments of the present disclosure also provide a computer program product, including a computer program. When the computer program is executed by a processor, the steps of the cloud platform host node scheduling method disclosed in the embodiments of the present disclosure are implemented.
[0074] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0075] It should be understood by those skilled in the art that the embodiments of the present disclosure may be provided as a system, method or computer program product. Therefore, the embodiments of the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0076] The embodiments of the present disclosure are described with reference to the flowcharts and / or block diagrams of the methods, systems, electronic devices, and computer program products according to the embodiments of the present disclosure. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0077] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0078] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0079] Although some embodiments of the present disclosure have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiment and all changes and modifications that fall within the scope of the present disclosure.
[0080] The cloud platform host node scheduling system, method and electronic device provided by the present invention are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for general technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A cloud platform host node scheduling system, characterized in that: include: A client, a first physical host with a reserved service deployed thereon, and a second physical host with a cloud service deployed thereon, wherein the cloud service is a cloud platform service other than the reserved service; The client sends a resource reservation registration request for the third physical host, the first physical host receives the resource reservation registration request, and sets the resources of the third physical host in the cloud platform as reserved resources through the reservation service; The second physical host sends a request for applying for use of reserved resources to the cloud service, the first physical host receives the request for applying for use of reserved resources, and allocates the reserved resources to the platform service through the reservation service.
2. The cloud platform host node scheduling system according to claim 1, characterized in that: Setting the resources of the third physical host in the cloud platform as reserved resources by using the reservation service includes: The third physical host is set to a reserved state through the reservation service, and the third physical host in the reserved state is moved into a reserved available domain. The third physical host in the reserved available domain is not selected when the cloud host is scheduled.
3. The cloud platform host node scheduling system according to claim 1, characterized in that: Allocating the reserved resources to the platform service for use by the reservation service includes: The reservation service determines the target reserved resource to be applied for according to the request for applying for the use of the reserved resource, sets the target third physical host corresponding to the target reserved resource to a non-reserved state, and moves the target third physical host in the non-reserved state from the reserved available domain to the designated available domain; wherein the target third physical host in the designated available domain is selected when the cloud service schedules the cloud host, and will not be applied for again; The second physical host sends a reserved resource return request, where the reserved resource return request is used to return the target reserved resource used by the cloud service application; The first physical host receives the reserved resource return request, sets the target third physical host corresponding to the reserved resources to a reserved state through the reservation service, and moves the target third physical host in the reserved state from the designated available domain to the reserved available domain. The target third physical host in the reserved available domain is not selected when scheduled by the cloud host.
4. The cloud platform host node scheduling system according to claim 2, characterized in that: The reservation service includes: A database, used to store the status and configuration information of the third physical host, wherein the status is a reserved status or a non-reserved status; The cloud service queries the database to see whether there is an available third physical host. If there is an available third physical host, the second physical host sends a request to the cloud service to apply for the use of reserved resources. The available third physical host indicates that the state of the third physical host is a reserved state, and the configuration of the third physical host meets the usage requirements.
5. The cloud platform host node scheduling system according to claim 4, characterized in that: Setting the third physical host to a reserved state through the reservation service includes: The reservation service obtains the power state of the third physical host through the first plug-in, and when the power state is off, remotely powers on the third physical host through the first plug-in; Detecting the hardware information of the third physical host through the second plug-in, and storing the hardware information in the database for query when the cloud service applies to use the reserved resources; The third physical host is set to a reserved state.
6. The cloud platform host node scheduling system according to any one of claims 1 to 5, characterized in that: The cloud service is a host high availability service or a dynamic resource adjustment service; In the event of a physical host failure and / or a cloud host failure, the second physical host sends a request for applying to use reserved resources for the host high availability service; When the cloud host service load is at a peak stage, the second physical host sends a request for applying for the use of reserved resources for the dynamic resource adjustment service.
7. The cloud platform host node scheduling system according to any one of claims 1 to 5, characterized in that: The cloud service is a dynamic power saving function service; In the case of performing node management on the third physical host, the second physical host sends a reserved resource power saving request for the dynamic power saving function service; The first physical host receives the resource reservation registration request, determines a third physical host to be powered off through the reservation service, and performs a power-off operation on the third physical host to be powered off.
8. A cloud platform host node scheduling method, characterized in that: include: The client sends a resource reservation registration request for the third physical host; The first physical host receives the resource reservation registration request, and sets the resources of the third physical host in the cloud platform as reserved resources through the reservation service; The second physical host sends a request for applying to use the reserved resources for the cloud service, where the cloud service is a cloud platform service other than the reserved service; The first physical host receives the request for applying for use of the reserved resources, and allocates the reserved resources to the platform service through the reservation service.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the cloud platform host node scheduling method described in claim 8 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the cloud platform host node scheduling method described in claim 8 are implemented.
Citation Information
Patent Citations
Method, apparatus and system for scheduling resources
CN105808341A
Progressive non-blocking opportunity resource reservation method and system
CN109150759A
Method for reducing cost by using spot instance on Amazon cloud platform
CN114928543A
Virtual host resource allocation method and device, equipment and storage medium
CN115499388A
Resource management method of public cloud data center and related equipment
CN115700481A