Multi-tenant cloud service management method, device, equipment and storage medium
By dividing multiple resource pools for tenants and using exponential smoothing algorithms to dynamically schedule cloud services, the problem of resource waste and peak period stability in multi-tenant private clouds is solved, and resource utilization and management efficiency are improved.
Patent Information
- Application Number
- CN202210897600.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-28
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2042-07-28
AI Technical Summary
In a multi-tenant private cloud scenario, tenants purchase virtual machines individually to deploy cloud proxy services, resulting in a waste of resources, and the service may be unavailable during peak periods, affecting stability.
By dividing multiple resource pools for tenants in private cloud scenarios, allocating cloud services to exclusive, temporary and shared resource pools based on tenant information, and using exponential smoothing algorithms to calculate resource usage, dynamically schedule cloud services to improve resource utilization and stability sex.
It improves the utilization of virtual machine resources, ensures that cloud services with high resource usage can be discovered and dispatched in a timely manner during peak business periods, ensures business stability, and improves cloud service management efficiency.
Smart Images

Figure CN115348264B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of cloud service technology, and in particular to a multi-tenant cloud service management method, device, electronic device and computer-readable storage medium. Background Art
[0002] With the rise and popularity of cloud computing, more and more software products and services are delivered in the form of cloud services. Traditional software is directly oriented to users, while cloud services are usually oriented to tenants, who can be individual users or organizational units. Tenants sign contracts with cloud service providers and rent IaaS, PaaS, SaaS and other services provided by cloud service providers.
[0003] In the existing multi-tenant private cloud scenario, when tenants apply for cloud proxy services, they usually purchase a virtual machine separately and deploy cloud proxy services on the virtual machine. This will cause a large number of cloud proxy servers to occupy valuable virtual machine resources separately, and these cloud proxy services only use a small part of the CPU, memory and network resources of the virtual machine, which will cause a large waste of virtual machine resources. If tenants deploy multiple cloud proxy services on the same virtual machine, there is no guarantee that these services will not affect each other. During the peak period of business requests, services may scramble for limited virtual machine resources, resulting in unavailability of all services, affecting the stability of services. Summary of the invention
[0004] The present invention provides a multi-tenant cloud service management method, device, equipment and storage medium, the main purpose of which is to improve the management efficiency of cloud services.
[0005] To achieve the above object, the present invention provides a multi-tenant cloud service management method, comprising:
[0006] Acquire tenant information in a private cloud scenario, and divide multiple resource pools for tenants in the private cloud scenario based on the tenant information;
[0007] receiving a cloud service request from a tenant, acquiring a corresponding cloud service based on the cloud service request, and allocating the cloud service to an exclusive resource pool among the multiple resource pools;
[0008] Calculating the resource utilization rate of the cloud service in the exclusive resource pool and performing smoothing to obtain a standard resource utilization rate;
[0009] Scheduling the cloud service to a temporary resource pool among the multiple resource pools according to the standard resource usage rate, and performing resource management scheduling on the cloud services in the exclusive resource pool and the shared resource pool among the multiple resource pools based on the temporary resource pool;
[0010] In a preset time period, resource management scheduling is performed on a shared resource pool in the multiple resource pools and a cloud service in the shared resource pool based on the standard resource usage rate.
[0011] Optionally, the dividing a plurality of resource pools for tenants in the private cloud scenario based on the tenant information includes:
[0012] Searching for historical resource call information of the tenant based on the tenant information;
[0013] Based on the historical resource call information, a shared resource pool, an exclusive resource pool and a temporary resource pool are divided in the virtual machine preset by the tenant.
[0014] Optionally, acquiring a corresponding cloud service based on the cloud service request and allocating the cloud service to an exclusive resource pool among the multiple resource pools includes:
[0015] Performing a service mark on the cloud service corresponding to the cloud service request based on the tenant;
[0016] Based on the service tag, the cloud service is allocated to the exclusive resource pool of the tenant according to the preset network.
[0017] Optionally, the calculating the resource usage of the cloud service in the exclusive resource pool and performing smoothing to obtain a standard resource usage includes:
[0018] Calculate the resource usage rate of the cloud service according to a preset granularity to obtain the original resource usage rate;
[0019] An exponential smoothing algorithm is used to remove burrs in the original resource usage rate to obtain a standard resource usage rate.
[0020] Optionally, the using of an exponential smoothing algorithm to remove burrs in the original resource usage rate to obtain a standard resource usage rate includes:
[0021] Selecting a preset number of resource sequences from the original resource usage rates to calculate resource initial values;
[0022] Based on the initial resource value, a preset exponential smoothing formula is used to calculate the standard resource usage rate at each preset granularity.
[0023] Optionally, the preset exponential smoothing formula is as follows:
[0024] S t =a*y t +(1-a)S t-1
[0025] Among them, S t is the standard resource utilization rate at time t, a is the preset weight, yt is the original resource utilization rate at time t, S t-1 is the standard resource usage at time t-1.
[0026] Optionally, scheduling the cloud service to a temporary resource pool among the multiple resource pools according to the standard resource usage rate, and performing resource management scheduling on the cloud services in the exclusive resource pool and the shared resource pool among the multiple resource pools based on the temporary resource pool, includes:
[0027] Accumulating the standard resource utilization rates to obtain a resource utilization score;
[0028] The cloud services whose resource usage scores are greater than or equal to a preset score threshold are regarded as cloud services with high resource usage rates;
[0029] The cloud service whose resource usage score is less than the score threshold is regarded as a cloud service with low resource usage rate;
[0030] Determining whether the cloud service determined to have low resource utilization in the exclusive resource pool meets a preset first time range;
[0031] If the preset first time range is met, the resource is dispatched to the temporary resource pool; if the preset first time range is not met, the resource is kept in the exclusive resource pool;
[0032] Continue to determine whether the cloud service determined to have low resource utilization in the temporary resource pool meets a preset second time range;
[0033] If the preset second time range is met, scheduling is performed to the shared resource pool; if the preset second time range is not met, scheduling is performed to the exclusive resource pool or the temporary resource pool, and returning to the step of determining whether the cloud service determined to have low resource utilization in the temporary resource pool meets the preset second time range;
[0034] Determining whether the cloud service determined to have high resource usage in the shared resource pool meets a preset third time range;
[0035] If the preset third time range is met, the resource is dispatched to the temporary resource pool; if the preset third time range is not met, the resource is kept in the shared resource pool;
[0036] Continue to determine whether the cloud service determined to have a high resource usage rate in the temporary resource pool meets a preset fourth time range;
[0037] If the preset fourth time range is met, it is scheduled to the exclusive resource pool; if the preset fourth time range is not met, it is scheduled to the shared resource pool or the temporary resource pool, and the step of determining whether the cloud service determined to have high resource utilization in the temporary resource pool meets the preset fourth time range is returned.
[0038] In order to solve the above problems, the present invention also provides a multi-tenant cloud service management method and device, the device comprising:
[0039] A resource pool division module, used to obtain tenant information in a private cloud scenario, and divide multiple resource pools for tenants in the private cloud scenario based on the tenant information;
[0040] A cloud service allocation module, configured to receive a cloud service request from a tenant, obtain a corresponding cloud service based on the cloud service request, and allocate the cloud service to an exclusive resource pool among the multiple resource pools;
[0041] A resource smoothing processing module, used to calculate the resource utilization rate of the cloud service in the exclusive resource pool and perform smoothing processing to obtain a standard resource utilization rate;
[0042] A cloud service scheduling module is used to schedule the cloud service to a temporary resource pool among the multiple resource pools according to the standard resource utilization rate, and based on the temporary resource pool, perform resource management scheduling on the cloud services in the exclusive resource pool and the shared resource pool among the multiple resource pools; and in a preset time period, perform resource management scheduling on the shared resource pool and the cloud services in the shared resource pool among the multiple resource pools based on the standard resource utilization rate.
[0043] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:
[0044] a memory storing at least one instruction; and
[0045] The processor executes the instructions stored in the memory to implement the multi-tenant cloud service management method described above.
[0046] In order to solve the above problems, the present invention also provides a computer-readable storage medium, in which at least one instruction is stored. The at least one instruction is executed by a processor in an electronic device to implement the multi-tenant cloud service management method described above.
[0047] The present invention divides multiple resource pools for tenants in a private cloud scenario, first allocates the cloud service corresponding to the cloud service request to the exclusive resource pool, calculates the resource utilization rate of the cloud service in the exclusive resource pool, and performs smoothing to obtain the standard resource utilization rate. The cloud service is scheduled to a temporary resource pool in the multiple resource pools according to the standard resource utilization rate, and based on the temporary resource pool, the cloud services in the exclusive resource pool and the shared resource pool are resource managed and scheduled. By dividing different resource pools for resource scheduling, cloud services can be dynamically adjusted to improve the utilization rate of virtual machine resources. At the same time, by performing resource management through multiple resource pools, cloud services with high resource utilization rates can be discovered and scheduled in time during business peaks, ensuring business stability and improving the management efficiency of cloud services. Therefore, the multi-tenant cloud service management method, device, electronic device and computer-readable storage medium proposed in the present invention can improve the management efficiency of cloud services. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 A flowchart of a multi-tenant cloud service management method provided by an embodiment of the present invention;
[0049] Figure 2 A functional module diagram of a multi-tenant cloud service management device provided by an embodiment of the present invention;
[0050] Figure 3 A schematic diagram of the structure of an electronic device for implementing the multi-tenant cloud service management method provided in one embodiment of the present invention.
[0051] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0052] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0053] The embodiment of the present application provides a multi-tenant cloud service management method. The execution subject of the multi-tenant cloud service management method includes but is not limited to at least one of the electronic devices such as a server, a terminal, etc. that can be configured to execute the method provided by the embodiment of the present application. In other words, the multi-tenant cloud service management method can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc.
[0054] Reference Figure 1 FIG. 1 is a flow chart of a multi-tenant cloud service management method provided by an embodiment of the present invention. In this embodiment, the multi-tenant cloud service management method includes:
[0055] S1. Obtain tenant information in a private cloud scenario, and divide multiple resource pools for the tenants in the private cloud scenario based on the tenant information.
[0056] In the embodiment of the present invention, in the multi-tenant private cloud service scenario, tenants refer to various departments (such as corporate departments or government departments) that occupy IT resources. This occupation is different from the permanent occupation of resources in the past, but refers to sharing resources in the private cloud in a specific time period or location. For example, a company's video conferencing system is deployed in the private cloud data center of the company's headquarters, and branch A rents this video conferencing system from 16:00 to 17:00 every Monday afternoon, then this branch A is the tenant. Since different tenants apply for resources at different times and resource quantities, in order to ensure that the application services between different tenants are not affected, it is achieved by building a resource pool for each tenant.
[0057] In detail, the dividing a plurality of resource pools for tenants in the private cloud scenario based on the tenant information includes:
[0058] Searching for historical resource call information of the tenant based on the tenant information;
[0059] Based on the historical resource call information, a shared resource pool, an exclusive resource pool and a temporary resource pool are divided in the virtual machine preset by the tenant.
[0060] In the embodiment of the present invention, the tenant information includes the tenant name, authority and other information in the private cloud. The historical resource call information includes the resource call time, size and other information of each tenant, and three cloud proxy resource pools, namely, a shared resource pool, an exclusive resource pool and a temporary resource pool, are divided for each tenant based on the size record of the resource call. For example, three cloud proxy resource pools are divided for tenant 1: shared resource pool 1, exclusive resource pool 1 and temporary resource pool 1.
[0061] In the embodiment of the present invention, by dividing different cloud proxy resource pools for each tenant and dynamically adjusting the cloud proxy service through resource pools of different levels, the utilization rate of the tenant's virtual machine resources can be improved.
[0062] S2. Receive a cloud service request from a tenant, obtain a corresponding cloud service based on the cloud service request, and allocate the cloud service to an exclusive resource pool among the multiple resource pools.
[0063] In the embodiment of the present invention, the cloud service request refers to a tenant's specific resource request based on a certain service. For example, for the video conferencing service, department A requests to use the service from 2:00 p.m. to 4:00 p.m. on Mondays and Wednesdays.
[0064] Specifically, acquiring the corresponding cloud service based on the cloud service request and allocating the cloud service to an exclusive resource pool among the multiple resource pools includes:
[0065] Performing a service mark on the cloud service corresponding to the cloud service request based on the tenant;
[0066] Based on the service tag, the cloud service is allocated to the exclusive resource pool of the tenant according to the preset network.
[0067] In an optional embodiment of the present invention, in a multi-tenant private cloud service scenario, server virtualization virtualizes traditional physical servers into several virtual servers (i.e., virtual machines), each virtual server runs an independent operating system, and each tenant owns a virtual server or a group of virtual servers in a virtual server resource pool. In the present invention, since the resource pool is divided based on virtual servers, and the same type of cloud service may have multiple tenant requests, in order to avoid mutual impact of the services of different tenants, the multi-tenant network must be able to meet the isolation requirements between virtual machines. Therefore, each tenant has an independent transmission network. For example, a cloud service is marked as cloud service 1, and the network of tenant A includes: tenant 1-network port 1-virtual server sub-interface 1, and cloud service 1 is transmitted through the network corresponding to tenant A.
[0068] S3. Calculate the resource utilization rate of the cloud service in the exclusive resource pool and perform smoothing to obtain a standard resource utilization rate.
[0069] In the embodiment of the present invention, the resource utilization rate refers to the traffic utilization rate, memory utilization rate and CPU utilization rate of the cloud service, etc. At the same time, since the resource utilization rate is time series data, burrs may appear, so it is necessary to remove the burrs through smoothing processing to improve the accuracy of time series data analysis.
[0070] In detail, the calculating of the resource utilization rate of the cloud service in the exclusive resource pool and performing smoothing to obtain the standard resource utilization rate includes:
[0071] Calculate the resource usage rate of the cloud service according to a preset granularity to obtain the original resource usage rate;
[0072] An exponential smoothing algorithm is used to remove burrs in the original resource usage rate to obtain a standard resource usage rate.
[0073] In an optional embodiment of the present invention, the resource utilization rate of the cloud service calculated according to a preset granularity may be used to calculate a resource utilization rate score of the cloud service according to a granularity of 5 minutes or one day.
[0074] Furthermore, the exponential smoothing algorithm is used to remove burrs in the original resource usage rate to obtain a standard resource usage rate, including:
[0075] Selecting a preset number of resource sequences from the original resource usage rates to calculate resource initial values;
[0076] Based on the initial resource value, a preset exponential smoothing formula is used to calculate the standard resource usage rate at each preset granularity.
[0077] In an optional embodiment of the present invention, the preset exponential smoothing formula is as follows:
[0078] S t =a*y t +(1-a)S t-1
[0079] Among them, S t is the standard resource utilization rate at time t, a is the preset weight, y t is the original resource utilization rate at time t, S t-1 is the standard resource usage at time t-1.
[0080] For example, taking the CPU resource utilization rate with a granularity of every five minutes as an example, the average value of the CPU resource utilization rates of the first three five minutes is selected as the initial value of the CPU resource S0, then S1 = a*y1+(1-a)S0, y1 is the CPU resource utilization rate of the first five minutes, S2 = a*y2+(1-a)S1, y2 is the CPU resource utilization rate of the second five minutes, and so on to obtain the standard resource utilization rate after all smoothing processing.
[0081] In the embodiment of the present invention, by counting resource utilization rates of different granularities and removing burrs through an exponential smoothing algorithm, smoother and more accurate time series data can be obtained.
[0082] S4. Schedule the cloud service to a temporary resource pool among the multiple resource pools according to the standard resource usage rate, and perform resource management scheduling on the cloud services in the exclusive resource pool and the shared resource pool among the multiple resource pools based on the temporary resource pool.
[0083] In the embodiment of the present invention, the cloud proxy service is scheduled according to the standard resource utilization rate and is scheduled to different resource pools, thereby ensuring the stability of the business.
[0084] Specifically, scheduling the cloud service to a temporary resource pool among the multiple resource pools according to the standard resource usage rate, and performing resource management scheduling on the cloud services in the exclusive resource pool and the shared resource pool among the multiple resource pools based on the temporary resource pool, includes:
[0085] Accumulating the standard resource utilization rates to obtain a resource utilization score;
[0086] The cloud services whose resource usage scores are greater than or equal to a preset score threshold are regarded as cloud services with high resource usage rates;
[0087] The cloud service whose resource usage score is less than the score threshold is regarded as a cloud service with low resource usage rate;
[0088] Determining whether the cloud service determined to have low resource utilization in the exclusive resource pool meets a preset first time range;
[0089] If the preset first time range is met, the resource is dispatched to the temporary resource pool; if the preset first time range is not met, the resource is kept in the exclusive resource pool;
[0090] Continue to determine whether the cloud service determined to have low resource utilization in the temporary resource pool meets a preset second time range;
[0091] If the preset second time range is met, scheduling is performed to the shared resource pool; if the preset second time range is not met, scheduling is performed to the exclusive resource pool or the temporary resource pool, and returning to the step of determining whether the cloud service determined to have low resource utilization in the temporary resource pool meets the preset second time range;
[0092] Determining whether the cloud service determined to have high resource usage in the shared resource pool meets a preset third time range;
[0093] If the preset third time range is met, the resource is dispatched to the temporary resource pool; if the preset third time range is not met, the resource is kept in the shared resource pool;
[0094] Continue to determine whether the cloud service determined to have a high resource usage rate in the temporary resource pool meets a preset fourth time range;
[0095] If the preset fourth time range is met, it is scheduled to the exclusive resource pool; if the preset fourth time range is not met, it is scheduled to the shared resource pool or the temporary resource pool, and the step of determining whether the cloud service determined to have high resource utilization in the temporary resource pool meets the preset fourth time range is returned.
[0096] In an optional embodiment of the present invention, the standard resource utilization scores of cloud services can be accumulated and counted on a daily basis in the early morning of each day, and cloud services with resource utilization scores greater than or equal to a preset score threshold can be regarded as high resource utilization services, and cloud services with resource utilization scores less than the preset score threshold can be regarded as low resource utilization services.
[0097] For example, every morning, cloud services that were judged to have high resource utilization in the previous day (can be modified according to actual conditions) are scheduled from the shared resource pool to the temporary resource pool, and cloud services that were judged to have low resource utilization for seven consecutive days (can be modified according to actual conditions) are scheduled from the exclusive resource pool to the temporary resource pool.
[0098] In the embodiment of the present invention, for example, the temporary resource pool performs cloud service resource scheduling according to the following steps:
[0099] a. For the exclusive resource pool: Every morning, the cloud services that are judged to have low resource utilization for 7 consecutive days (i.e. the first time range, which can be modified according to the actual situation) will be dispatched from the exclusive resource pool to the temporary resource pool. On this basis, the cloud services that are judged to have low resource utilization for 5 consecutive days (i.e. the second time range, which can be modified according to the actual situation) will be dispatched from the temporary resource pool to the shared resource pool. Otherwise (not 5 consecutive days of low utilization), if more than half of the days are judged to have high resource utilization, they will be dispatched back to the exclusive resource pool. If only more than half of the days are judged to have low resource utilization, they will still be placed in the temporary resource pool. If they are still placed in the temporary resource pool, continue with the above judgment in a.
[0100] b. For the shared resource pool: Every morning, cloud services that are judged to have high resource usage for 1 consecutive day (the third time range, which can be modified according to actual conditions) will be scheduled from the shared resource pool to the temporary resource pool. On this basis, cloud services that are judged to have high resource usage for 3 consecutive days (i.e., the fourth time range, which can be modified according to actual conditions) will be scheduled from the temporary resource pool to the exclusive resource pool. Otherwise (not 3 consecutive days of high usage), if only more than half of the days are judged to have high resource usage, they will still be placed in the temporary resource pool. If more than half of the days are judged to have low resource usage, they will be scheduled back to the shared resource pool. If only more than half of the days are judged to have high resource usage, they will still be placed in the temporary resource pool. If they are still placed in the temporary resource pool, continue with the above b judgment.
[0101] S5. During a preset time period, resource management and scheduling are performed on the shared resource pools in the multiple resource pools and the cloud services in the shared resource pools based on the standard resource usage rate.
[0102] In an optional embodiment of the present invention, the preset time period can be a peak time period set for different services. For example, during the peak period of business A, cloud services whose resource utilization scores exceed a given threshold are scheduled from the shared resource pool to the temporary resource pool based on the 5-minute resource utilization score. After the peak period, if the resource utilization drops below the threshold, it is scheduled back to the shared resource pool. If it does not drop below the threshold, it is still placed in the temporary resource pool. For the cloud services in the temporary resource pool, return to the above S4 to perform resource management scheduling on the cloud services in the exclusive resource pool and the shared resource pool among the multiple resource pools based on the temporary resource pool.
[0103] In an embodiment of the present invention, cloud services in a temporary resource pool are scheduled based on a resource usage score threshold or when a preset time range (e.g., a peak time range) is met, so that cloud services with high resource usage can be discovered and scheduled in a timely manner during business peaks, reducing resource conflicts and ensuring that other cloud services on the same virtual machine resources are not affected and that the business is stable. At the same time, after the peak period ends, cloud services with low resource usage can be promptly scheduled back to the shared resource pool to share the allocation of virtual machine resources, saving a large amount of virtual machine resources.
[0104] The present invention divides multiple resource pools for tenants in a private cloud scenario, first allocates the cloud service corresponding to the cloud service request to the exclusive resource pool, calculates the resource utilization rate of the cloud service in the exclusive resource pool, and performs smoothing to obtain the standard resource utilization rate. The cloud service is dispatched to a temporary resource pool in the multiple resource pools according to the standard resource utilization rate, and based on the temporary resource pool, the cloud service in the exclusive resource pool and the shared resource pool is resource managed and dispatched. By dividing different resource pools for resource dispatching, the cloud service can be dynamically adjusted to improve the utilization rate of virtual machine resources. At the same time, by performing resource management through multiple resource pools, cloud services with high resource utilization rates can be discovered and dispatched in time during business peaks, ensuring business stability and improving the management efficiency of cloud services. Therefore, the multi-tenant cloud service management method proposed in the present invention can improve the management efficiency of cloud services.
[0105] like Figure 2 , is a functional module diagram of a multi-tenant cloud service management device provided by an embodiment of the present invention.
[0106] The multi-tenant cloud service management device 100 of the present invention can be installed in an electronic device. According to the functions to be implemented, the multi-tenant cloud service management device 100 can include a resource pool partitioning module 101, a cloud service allocation module 102, a resource smoothing processing module 103 and a cloud service scheduling module 104. The module of the present invention can also be referred to as a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.
[0107] In this embodiment, the functions of each module / unit are as follows:
[0108] The resource pool division module 101 is used to obtain tenant information in a private cloud scenario and divide multiple resource pools for tenants in the private cloud scenario based on the tenant information;
[0109] The cloud service allocation module 102 is used to receive a cloud service request from a tenant, obtain a corresponding cloud service based on the cloud service request, and allocate the cloud service to an exclusive resource pool among the multiple resource pools;
[0110] The resource smoothing processing module 103 is used to calculate the resource utilization rate of the cloud service in the exclusive resource pool and perform smoothing processing to obtain a standard resource utilization rate;
[0111] The cloud service scheduling module 104 is used to schedule the cloud service to a temporary resource pool among the multiple resource pools according to the standard resource utilization rate, and based on the temporary resource pool, perform resource management scheduling for the cloud services in the exclusive resource pool and the shared resource pool among the multiple resource pools, and perform resource management scheduling for the shared resource pool and the cloud services in the shared resource pool among the multiple resource pools based on the standard resource utilization rate during a preset time period.
[0112] In detail, the specific implementation of each module of the multi-tenant cloud service management device 100 is as follows:
[0113] Step 1: Obtain tenant information in a private cloud scenario, and divide multiple resource pools for tenants in the private cloud scenario based on the tenant information.
[0114] In the embodiment of the present invention, in the multi-tenant private cloud service scenario, tenants refer to various departments (such as corporate departments or government departments) that occupy IT resources. This occupation is different from the permanent occupation of resources in the past, but refers to sharing resources in the private cloud in a specific time period or location. For example, a company's video conferencing system is deployed in the private cloud data center of the company's headquarters, and branch A rents this video conferencing system from 16:00 to 17:00 every Monday afternoon, then this branch A is the tenant. Since different tenants apply for resources at different times and resource quantities, in order to ensure that the application services between different tenants are not affected, it is achieved by building a resource pool for each tenant.
[0115] In detail, the dividing a plurality of resource pools for tenants in the private cloud scenario based on the tenant information includes:
[0116] Searching for historical resource call information of the tenant based on the tenant information;
[0117] Based on the historical resource call information, a shared resource pool, an exclusive resource pool and a temporary resource pool are divided in the virtual machine preset by the tenant.
[0118] In the embodiment of the present invention, the tenant information includes the tenant name, authority and other information in the private cloud. The historical resource call information includes the resource call time, size and other information of each tenant, and three cloud proxy resource pools, namely, a shared resource pool, an exclusive resource pool and a temporary resource pool, are divided for each tenant based on the size record of the resource call. For example, three cloud proxy resource pools are divided for tenant 1: shared resource pool 1, exclusive resource pool 1 and temporary resource pool 1.
[0119] In the embodiment of the present invention, by dividing different cloud proxy resource pools for each tenant and dynamically adjusting the cloud proxy service through resource pools of different levels, the utilization rate of the tenant's virtual machine resources can be improved.
[0120] Step 2: Receive a cloud service request from a tenant, obtain a corresponding cloud service based on the cloud service request, and allocate the cloud service to an exclusive resource pool among the multiple resource pools.
[0121] In the embodiment of the present invention, the cloud service request refers to a tenant's specific resource request based on a certain service. For example, for the video conferencing service, department A requests to use the service from 2:00 p.m. to 4:00 p.m. on Mondays and Wednesdays.
[0122] Specifically, acquiring the corresponding cloud service based on the cloud service request and allocating the cloud service to an exclusive resource pool among the multiple resource pools includes:
[0123] Performing a service mark on the cloud service corresponding to the cloud service request based on the tenant;
[0124] Based on the service tag, the cloud service is allocated to the exclusive resource pool of the tenant according to the preset network.
[0125] In an optional embodiment of the present invention, in a multi-tenant private cloud service scenario, server virtualization virtualizes traditional physical servers into several virtual servers (i.e., virtual machines), each virtual server runs an independent operating system, and each tenant owns a virtual server or a group of virtual servers in a virtual server resource pool. In the present invention, since the resource pool is divided based on virtual servers, and the same type of cloud service may have multiple tenant requests, in order to avoid mutual impact of the services of different tenants, the multi-tenant network must be able to meet the isolation requirements between virtual machines. Therefore, each tenant has an independent transmission network. For example, a cloud service is marked as cloud service 1, and the network of tenant A includes: tenant 1-network port 1-virtual server sub-interface 1, and cloud service 1 is transmitted through the network corresponding to tenant A.
[0126] Step 3: Calculate the resource utilization rate of the cloud service in the exclusive resource pool and perform smoothing to obtain a standard resource utilization rate.
[0127] In the embodiment of the present invention, the resource utilization rate refers to the traffic utilization rate, memory utilization rate and CPU utilization rate of the cloud service, etc. At the same time, since the resource utilization rate is time series data, burrs may appear, so it is necessary to remove the burrs through smoothing processing to improve the accuracy of time series data analysis.
[0128] In detail, the calculating of the resource utilization rate of the cloud service in the exclusive resource pool and performing smoothing to obtain the standard resource utilization rate includes:
[0129] Calculate the resource usage rate of the cloud service according to a preset granularity to obtain the original resource usage rate;
[0130] An exponential smoothing algorithm is used to remove burrs in the original resource usage rate to obtain a standard resource usage rate.
[0131] In an optional embodiment of the present invention, the resource utilization rate of the cloud service calculated according to a preset granularity may be used to calculate a resource utilization rate score of the cloud service according to a granularity of 5 minutes or one day.
[0132] Furthermore, the exponential smoothing algorithm is used to remove burrs in the original resource usage rate to obtain a standard resource usage rate, including:
[0133] Selecting a preset number of resource sequences from the original resource usage rates to calculate resource initial values;
[0134] Based on the initial resource value, a preset exponential smoothing formula is used to calculate the standard resource usage rate at each preset granularity.
[0135] In an optional embodiment of the present invention, the preset exponential smoothing formula is as follows:
[0136] S t =a*y t +(1-a)S t-1
[0137] Among them, S t is the standard resource utilization rate at time t, a is the preset weight, y t is the original resource utilization rate at time t, S t-1 is the standard resource usage at time t-1.
[0138] For example, taking the CPU resource utilization rate with a granularity of every five minutes as an example, the average value of the CPU resource utilization rates of the first three five minutes is selected as the initial value of the CPU resource S0, then S1 = a*y1+(1-a)S0, y1 is the CPU resource utilization rate of the first five minutes, S2 = a*y2+(1-a)S1, y2 is the CPU resource utilization rate of the second five minutes, and so on to obtain the standard resource utilization rate after all smoothing processing.
[0139] In the embodiment of the present invention, by counting resource utilization rates of different granularities and removing burrs through an exponential smoothing algorithm, smoother and more accurate time series data can be obtained.
[0140] Step 4: Schedule the cloud service to a temporary resource pool among the multiple resource pools according to the standard resource usage rate, and perform resource management scheduling on the cloud services in the exclusive resource pool and the shared resource pool among the multiple resource pools based on the temporary resource pool.
[0141] In the embodiment of the present invention, the cloud proxy service is scheduled according to the standard resource utilization rate and is scheduled to different resource pools, thereby ensuring the stability of the business.
[0142] Specifically, scheduling the cloud service to a temporary resource pool among the multiple resource pools according to the standard resource usage rate, and performing resource management scheduling on the cloud services in the exclusive resource pool and the shared resource pool among the multiple resource pools based on the temporary resource pool, includes:
[0143] Accumulating the standard resource utilization rates to obtain a resource utilization score;
[0144] The cloud services whose resource usage scores are greater than or equal to a preset score threshold are regarded as cloud services with high resource usage rates;
[0145] The cloud service whose resource usage score is less than the score threshold is regarded as a cloud service with low resource usage rate;
[0146] Determining whether the cloud service determined to have low resource utilization in the exclusive resource pool meets a preset first time range;
[0147] If the preset first time range is met, the resource is dispatched to the temporary resource pool; if the preset first time range is not met, the resource is kept in the exclusive resource pool;
[0148] Continue to determine whether the cloud service determined to have low resource utilization in the temporary resource pool meets a preset second time range;
[0149] If the preset second time range is met, scheduling is performed to the shared resource pool; if the preset second time range is not met, scheduling is performed to the exclusive resource pool or the temporary resource pool, and returning to the step of determining whether the cloud service determined to have low resource utilization in the temporary resource pool meets the preset second time range;
[0150] Determining whether the cloud service determined to have high resource usage in the shared resource pool meets a preset third time range;
[0151] If the preset third time range is met, the resource is dispatched to the temporary resource pool; if the preset third time range is not met, the resource is kept in the shared resource pool;
[0152] Continue to determine whether the cloud service determined to have a high resource usage rate in the temporary resource pool meets a preset fourth time range;
[0153] If the preset fourth time range is met, it is scheduled to the exclusive resource pool; if the preset fourth time range is not met, it is scheduled to the shared resource pool or the temporary resource pool, and the step of determining whether the cloud service determined to have high resource utilization in the temporary resource pool meets the preset fourth time range is returned.
[0154] In an optional embodiment of the present invention, the standard resource utilization scores of cloud services can be accumulated and counted on a daily basis in the early morning of each day, and cloud services with resource utilization scores greater than or equal to a preset score threshold can be regarded as high resource utilization services, and cloud services with resource utilization scores less than the preset score threshold can be regarded as low resource utilization services.
[0155] For example, every morning, cloud services that were judged to have high resource utilization in the previous day (can be modified according to actual conditions) are scheduled from the shared resource pool to the temporary resource pool, and cloud services that were judged to have low resource utilization for seven consecutive days (can be modified according to actual conditions) are scheduled from the exclusive resource pool to the temporary resource pool.
[0156] In the embodiment of the present invention, for example, the temporary resource pool performs cloud service resource scheduling according to the following steps:
[0157] a. For the exclusive resource pool: Every morning, the cloud services that are judged to have low resource utilization for 7 consecutive days (i.e. the first time range, which can be modified according to the actual situation) will be dispatched from the exclusive resource pool to the temporary resource pool. On this basis, the cloud services that are judged to have low resource utilization for 5 consecutive days (i.e. the second time range, which can be modified according to the actual situation) will be dispatched from the temporary resource pool to the shared resource pool. Otherwise (not 5 consecutive days of low utilization), if more than half of the days are judged to have high resource utilization, they will be dispatched back to the exclusive resource pool. If only more than half of the days are judged to have low resource utilization, they will still be placed in the temporary resource pool. If they are still placed in the temporary resource pool, continue with the above judgment in a.
[0158] b. For the shared resource pool: Every morning, cloud services that are judged to have high resource usage for 1 consecutive day (the third time range, which can be modified according to actual conditions) will be scheduled from the shared resource pool to the temporary resource pool. On this basis, cloud services that are judged to have high resource usage for 3 consecutive days (i.e., the fourth time range, which can be modified according to actual conditions) will be scheduled from the temporary resource pool to the exclusive resource pool. Otherwise (not 3 consecutive days of high usage), if only more than half of the days are judged to have high resource usage, they will still be placed in the temporary resource pool. If more than half of the days are judged to have low resource usage, they will be scheduled back to the shared resource pool. If only more than half of the days are judged to have high resource usage, they will still be placed in the temporary resource pool. If they are still placed in the temporary resource pool, continue with the above b judgment.
[0159] Step 5: During a preset time period, resource management and scheduling are performed on the shared resource pools and the cloud services in the shared resource pools in the multiple resource pools based on the standard resource usage rate.
[0160] In an optional embodiment of the present invention, the preset time period can be a peak time period set for different services. For example, during the peak period of business A, cloud services with resource utilization scores exceeding a given threshold are scheduled from the shared resource pool to the temporary resource pool based on the 5-minute resource utilization score. After the peak period, if the resource utilization drops below the threshold, it is scheduled back to the shared resource pool. If it does not drop below the threshold, it is still placed in the temporary resource pool. For the cloud services in the temporary resource pool, return to step 4 above to perform resource management scheduling on the cloud services in the exclusive resource pool and the shared resource pool among the multiple resource pools based on the temporary resource pool.
[0161] In an embodiment of the present invention, cloud services in a temporary resource pool are scheduled based on a resource usage score threshold or when a preset time range (e.g., a peak time range) is met, so that cloud services with high resource usage can be discovered and scheduled in a timely manner during business peaks, reducing resource conflicts and ensuring that other cloud services on the same virtual machine resources are not affected and that the business is stable. At the same time, after the peak period ends, cloud services with low resource usage can be promptly scheduled back to the shared resource pool to share the allocation of virtual machine resources, saving a large amount of virtual machine resources.
[0162] The present invention divides multiple resource pools for tenants in a private cloud scenario, first allocates the cloud service corresponding to the cloud service request to the exclusive resource pool, calculates the resource utilization rate of the cloud service in the exclusive resource pool, and performs smoothing to obtain the standard resource utilization rate. The cloud service is scheduled to a temporary resource pool in the multiple resource pools according to the standard resource utilization rate, and based on the temporary resource pool, the cloud service in the exclusive resource pool and the shared resource pool is resource managed and scheduled. By dividing different resource pools for resource scheduling, the cloud service can be dynamically adjusted to improve the utilization rate of virtual machine resources. At the same time, by performing resource management through multiple resource pools, cloud services with high resource utilization rates can be discovered and scheduled in time during business peaks, ensuring business stability and improving the management efficiency of cloud services. Therefore, the multi-tenant cloud service management device proposed in the present invention can improve the management efficiency of cloud services.
[0163] like Figure 3 , is a schematic diagram of the structure of an electronic device for implementing the multi-tenant cloud service management method provided by an embodiment of the present invention, including a processor 111, a communication interface 112, a memory 113 and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114.
[0164] The memory 113 is used to store computer programs, such as a multi-tenant cloud service management method program;
[0165] In one embodiment of the present application, the processor 111 is used to execute the program stored in the memory 113 to implement the multi-tenant cloud service management method provided by any of the above method embodiments, including:
[0166] Acquire tenant information in a private cloud scenario, and divide multiple resource pools for tenants in the private cloud scenario based on the tenant information;
[0167] receiving a cloud service request from a tenant, acquiring a corresponding cloud service based on the cloud service request, and allocating the cloud service to an exclusive resource pool among the multiple resource pools;
[0168] Calculating the resource utilization rate of the cloud service in the exclusive resource pool and performing smoothing to obtain a standard resource utilization rate;
[0169] Scheduling the cloud service to a temporary resource pool among the multiple resource pools according to the standard resource usage rate, and performing resource management scheduling on the cloud services in the exclusive resource pool and the shared resource pool among the multiple resource pools based on the temporary resource pool;
[0170] In a preset time period, resource management scheduling is performed on a shared resource pool in the multiple resource pools and a cloud service in the shared resource pool based on the standard resource usage rate.
[0171] The communication bus 114 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus 114 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0172] The communication interface 112 is used for communication between the above electronic device and other devices.
[0173] The memory 113 may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory 113 may also be at least one storage device located away from the processor 111 .
[0174] The above-mentioned processor 111 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
[0175] The present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program can implement:
[0176] Acquire tenant information in a private cloud scenario, and divide multiple resource pools for tenants in the private cloud scenario based on the tenant information;
[0177] receiving a cloud service request from a tenant, acquiring a corresponding cloud service based on the cloud service request, and allocating the cloud service to an exclusive resource pool among the multiple resource pools;
[0178] Calculating the resource utilization rate of the cloud service in the exclusive resource pool and performing smoothing to obtain a standard resource utilization rate;
[0179] Scheduling the cloud service to a temporary resource pool among the multiple resource pools according to the standard resource usage rate, and performing resource management scheduling on the cloud services in the exclusive resource pool and the shared resource pool among the multiple resource pools based on the temporary resource pool;
[0180] In a preset time period, resource management scheduling is performed on a shared resource pool in the multiple resource pools and a cloud service in the shared resource pool based on the standard resource usage rate.
[0181] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0182] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0183] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0184] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0185] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.
[0186] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system claim can also be implemented by one unit or device through software or hardware. The second and other words are used to indicate names, but not to indicate any particular order.
[0187] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A multi-tenant cloud service management method, characterized in that: The method comprises: Acquire tenant information in a private cloud scenario, and divide multiple resource pools for tenants in the private cloud scenario based on the tenant information; receiving a cloud service request from a tenant, acquiring a corresponding cloud service based on the cloud service request, and allocating the cloud service to an exclusive resource pool among the multiple resource pools; Calculating the resource utilization rate of the cloud service in the exclusive resource pool and performing smoothing to obtain a standard resource utilization rate; Scheduling the cloud service to a temporary resource pool among the multiple resource pools according to the standard resource usage rate, and performing resource management scheduling on the cloud services in the exclusive resource pool and the shared resource pool among the multiple resource pools based on the temporary resource pool; In a preset time period, resource management scheduling is performed on a shared resource pool in the multiple resource pools and a cloud service in the shared resource pool based on the standard resource usage rate; Wherein, the dividing multiple resource pools for tenants in the private cloud scenario based on the tenant information includes: searching for historical resource call information of the tenant based on the tenant information; dividing a shared resource pool, an exclusive resource pool and a temporary resource pool in the virtual machine preset by the tenant based on the historical resource call information; The method of scheduling the cloud service to a temporary resource pool among the multiple resource pools according to the standard resource usage rate, and performing resource management scheduling on the cloud services in the exclusive resource pool and the shared resource pool among the multiple resource pools based on the temporary resource pool, includes: accumulating the standard resource usage rate to obtain a resource usage score; treating the cloud services whose resource usage scores are greater than or equal to a preset score threshold as cloud services with high resource usage rate; treating the cloud services whose resource usage scores are less than the score threshold as cloud services with low resource usage rate; judging whether the cloud services in the exclusive resource pool that are judged to have low resource usage rate meet a preset first time range; if they meet the preset first time range, scheduling them to the temporary resource pool; if they do not meet the preset first time range, keeping them in the exclusive resource pool; continuing to judge whether the cloud services in the temporary resource pool that are judged to have low resource usage rate meet a preset second time range; if they meet the preset second time range, scheduling The step of scheduling the cloud service determined as having low resource utilization in the temporary resource pool to the shared resource pool, and if the preset second time range is not met, scheduling it to the exclusive resource pool or the temporary resource pool, and returning to the step of determining whether the cloud service determined as having low resource utilization in the temporary resource pool meets the preset second time range; determining whether the cloud service determined as having high resource utilization in the shared resource pool meets the preset third time range; if the preset third time range is met, scheduling it to the temporary resource pool, and if the preset third time range is not met, staying in the shared resource pool; continuing to determine whether the cloud service determined as having high resource utilization in the temporary resource pool meets the preset fourth time range; if the preset fourth time range is met, scheduling it to the exclusive resource pool, and if the preset fourth time range is not met, scheduling it to the shared resource pool or the temporary resource pool, and returning to the step of determining whether the cloud service determined as having high resource utilization in the temporary resource pool meets the preset fourth time range.
2. The multi-tenant cloud service management method according to claim 1, characterized in that: The acquiring a corresponding cloud service based on the cloud service request and allocating the cloud service to an exclusive resource pool among the multiple resource pools includes: Performing a service mark on the cloud service corresponding to the cloud service request based on the tenant; Based on the service tag, the cloud service is allocated to the exclusive resource pool of the tenant according to the preset network.
3. The multi-tenant cloud service management method according to claim 1, characterized in that: The calculating the resource utilization rate of the cloud service in the exclusive resource pool and performing smoothing to obtain the standard resource utilization rate includes: Calculate the resource usage rate of the cloud service according to a preset granularity to obtain the original resource usage rate; An exponential smoothing algorithm is used to remove burrs in the original resource usage rate to obtain a standard resource usage rate.
4. The multi-tenant cloud service management method as claimed in claim 3, characterized in that: The step of removing burrs from the original resource usage rate by using an exponential smoothing algorithm to obtain a standard resource usage rate includes: Selecting a preset number of resource sequences from the original resource usage rates to calculate resource initial values; Based on the initial resource value, a preset exponential smoothing formula is used to calculate the standard resource usage rate at each preset granularity.
5. The multi-tenant cloud service management method as claimed in claim 4, characterized in that: The preset exponential smoothing formula is as follows: in, For time The standard resource utilization rate of is the preset weight, For time The original resource usage rate, For time Standard resource usage.
6. A multi-tenant cloud service management device, used to implement the multi-tenant cloud service management method according to any one of claims 1 to 5, characterized in that: The device comprises: A resource pool division module, used to obtain tenant information in a private cloud scenario, and divide multiple resource pools for tenants in the private cloud scenario based on the tenant information; A cloud service allocation module, configured to receive a cloud service request from a tenant, obtain a corresponding cloud service based on the cloud service request, and allocate the cloud service to an exclusive resource pool among the multiple resource pools; A resource smoothing processing module, used to calculate the resource utilization rate of the cloud service in the exclusive resource pool and perform smoothing processing to obtain a standard resource utilization rate; A cloud service scheduling module is used to schedule the cloud service to a temporary resource pool among the multiple resource pools according to the standard resource utilization rate, and based on the temporary resource pool, perform resource management scheduling on the cloud services in the exclusive resource pool and the shared resource pool among the multiple resource pools; and in a preset time period, perform resource management scheduling on the shared resource pool and the cloud services in the shared resource pool among the multiple resource pools based on the standard resource utilization rate.
7. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the multi-tenant cloud service management method as described in any one of claims 1 to 5.
8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the multi-tenant cloud service management method as described in any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Dynamic, temporary resource pools for use in virtualization
US20080320474A1
Methods and apparatus for resource pool design for vehicular communications
US20160295624A1
