Resource detection method and device for tenants, chip system and computing device cluster
By analyzing the resource usage characteristics of tenants, identifying the resource requirements that have not been met and allocating resources to be changed, it solves the problem that cloud service providers find it difficult to accurately detect the resource requirements of tenants, improves the accuracy and timeliness of resource allocation, and improves the resources of tenants User experience.
Patent Information
- Application Number
- CN202311558367.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-07-12
- Filing Date
- 2023-11-21
- Publication Date
- 2025-01-14
AI Technical Summary
In the prior art, cloud service providers find it difficult to accurately detect the tenant's resource needs, resulting in untimely or inadequate resource allocation, affecting the tenant's resource usage experience.
By analyzing the resource usage characteristics of tenants, identify tenants that do not meet resource needs, and allocate resources to them to be changed to ensure that the resource needs are met. This method is based on dynamically changing resource usage, which improves the accuracy of resource requirements compared to relying on historical usage prediction.
It improves the accuracy of detection of tenants' resource requirements, ensures the timeliness and adequacy of resource allocation, and improves the tenant's resource usage experience.
Smart Images

Figure CN119316415A_ABST
Abstract
Description
[0001] This application claims priority to a Chinese patent application filed with the State Intellectual Property Office on July 12, 2023, with application number 202310854387.6 and application name “A method, apparatus and computing device cluster for supplying resources to tenants”, the entire contents of which are incorporated by reference in this application. Technical Field
[0002] The present application relates to the field of cloud computing technology, and in particular to a tenant resource detection method, device, chip system and computing device cluster. Background Art
[0003] Currently, cloud service providers hope to detect tenants' usage of cloud resources so as to timely supply tenants with sufficient resources to meet their resource needs. Usually, tenants' future resource needs are predicted based on their historical resource usage. However, when tenants' resource needs are not met, their historical resource usage cannot accurately reflect their actual resource needs at that time, resulting in low accuracy in detecting tenants' resource needs. Summary of the invention
[0004] The present application provides a tenant resource detection method, device, chip system and computing device cluster, which solves the problem of low accuracy in detecting tenant resource demand.
[0005] In the first aspect, a tenant resource detection method is provided, the method is executed by a computer device cluster, the method is applied to a cloud platform, the cloud platform is used to manage infrastructure, and multiple cloud resources are running on the infrastructure. The method includes: different tenants have different requirements for resource use, responding to a resource issuance request from a first tenant, issuing a first resource to the first tenant; responding to a resource issuance request from a second tenant, issuing a second resource to the second tenant. After the resources are issued, first determine that the first tenant is a tenant whose resource needs are not met based on the resource usage characteristics of the first tenant and the resource usage characteristics of the second tenant, where the resource usage characteristics can be used to indicate the characteristics of changes in resource usage; then calculate the resources to be changed corresponding to the first tenant, and allocate the resources to be changed to the first tenant, and the allocated resources to be changed can meet the resource needs of the first tenant.
[0006] The resource usage of tenants changes dynamically, and the resource usage characteristics can reflect the changing trend of resource usage. The changing trends of resource usage of different tenants are different, and the resources used by some tenants may occupy the resources required by other tenants. Compared with predicting the future resource demand of tenants based on their historical resource usage, it ignores the fact that historical resource usage may not meet the actual resource demand of tenants at that time. In this application, the resource usage of tenants who have met their resource needs is used as a reference to analyze the changing trends of resource usage of the remaining tenants affected by their dynamic changes, and determine the tenants whose resource needs have not been met among the remaining tenants based on the changing trends, thereby improving the accuracy of detecting tenant resource demand.
[0007] In one possible implementation, determining the first tenant as a tenant whose resource needs are not met based on resource usage characteristics of the first tenant and resource usage characteristics of the second tenant includes: determining the first tenant as a tenant whose resource needs are not met based on resource usage characteristics of the first tenant within a resource usage time period and resource usage characteristics of the second tenant within a resource usage time period.
[0008] The resource usage time period can be a certain time period or multiple time periods when the tenant uses resources. The resource usage characteristics of the tenant will change dynamically over time, and different tenants will have different resource usage characteristics in the same resource usage time period. Based on the resource usage characteristics of the first tenant and the second tenant in the resource usage time period, the resource usage characteristics of the tenant who has met the resource demand (such as the second tenant) in the resource usage time period can be used as a reference. According to the different change trends (such as: increasing trend) of the resource usage characteristics of the first tenant under the influence of the first tenant in the resource usage time period, the first tenant is determined as a tenant whose resource demand is not met, thereby improving the accuracy of the tenant's resource detection.
[0009] In another possible implementation, the first tenant is determined to be a tenant whose resource needs are not met based on resource usage characteristics of the first tenant in a resource usage time period and resource usage characteristics of the second tenant in a resource usage time period, including: the first tenant is determined to be a tenant whose resource needs are not met based on resource usage characteristics of the first tenant in multiple resource usage time periods and resource usage characteristics of the second tenant in multiple resource usage time periods, the resource usage characteristics of the first tenant in the multiple resource usage time periods are an increasing trend, and the resource usage characteristics of the second tenant in the multiple resource usage time periods are a trend from increasing to decreasing.
[0010] Resource usage characteristics can be reflected in the form of a trend of resource usage. The resource usage of the first tenant increases in multiple resource usage time periods. The resources used by the second tenant may occupy the resources needed by the first tenant. When the first tenant's resources are insufficient, the resource usage of the first tenant will continue to increase when the second tenant's resource usage decreases to meet its resource needs. Therefore, based on the increasing trend of the first tenant's resource usage and the increasing to decreasing trend of the second tenant's resource usage, the first tenant is determined to be a tenant whose resource needs are not met, thereby improving the accuracy of tenant resource detection.
[0011] In another possible implementation, the multiple resource usage time periods include a first time period, a second time period, and a third time period, the second time period includes the moment of peak resource quantity in the cloud resource pool, and the first tenant is determined to be a tenant whose resource demand is not met based on resource usage characteristics of the first tenant in the multiple resource usage time periods and resource usage characteristics of the second tenant in the multiple resource usage time periods, including: determining that the first tenant is a tenant whose resource demand is not met based on the fact that the resource usage of the first tenant in the first time period is less than the resource usage in the second time period, the resource usage in the second time period is less than the resource usage in the third time period, the resource usage of the second tenant in the first time period is less than the resource usage in the second time period, and the resource usage in the second time period is greater than the resource usage in the third time period.
[0012] Among them, the resource usage of the first tenant in the first time period is less than the resource usage in the second time period, and the resource usage in the second time period is less than the resource usage in the third time period, which indicates that the resource usage of the first tenant in the first time period, the second time period and the third time period gradually increases.
[0013] The resource usage of the second tenant in the first time period is less than the resource usage in the second time period, and the resource usage in the second time period is greater than the resource usage in the third time period, which indicates that the resource usage of the second tenant in the first time period and the second time period gradually increases, and the resource usage in the third time period gradually decreases.
[0014] In the second time period, the resources used by the second tenant occupied the resources needed by the first tenant, resulting in the first tenant's actual resource usage failing to meet the actual resource demand at that time. In order to use sufficient resources in a timely manner, the first tenant continued to increase its resources while the resources used by the second tenant gradually decreased in the third time period. Therefore, it is determined that the first tenant is the tenant "run out" by the second tenant, that is, the first tenant is the tenant whose resource demand is not met, and the accuracy of tenant resource detection is improved.
[0015] In another possible implementation, the resources to be changed corresponding to the first tenant are calculated, and the resources to be changed are allocated to the first tenant, including: calculating the resources to be changed based on the difference in resource usage of the first tenant in adjacent time periods in the resource usage time period, and allocating the resources to be changed to the first tenant.
[0016] Since the actual resource usage of the first tenant fails to meet the actual resource demand at that time, in order to use sufficient resources in a timely manner, the first tenant gradually increases the resource usage in adjacent time periods in the resource usage time period, thereby using the increased resource usage in the later time period to make up for the lack of resource usage in the earlier time period. In this way, the difference in resource usage in adjacent time periods can reflect the resources to be changed corresponding to the first tenant. Allocating the resources to be changed to the first tenant based on this difference can ensure the accuracy of the allocation and meet the resource needs of the tenant.
[0017] In another possible implementation, the method further includes: receiving confirmation of a change characteristic of the first tenant's resource usage.
[0018] In another possible implementation, the method further includes: displaying a recommended processing solution, where the recommended processing solution is used to recommend a resource solution that meets the resource demand for the first tenant.
[0019] The above content is displayed on the display screen of the computer device, and the administrator of the cloud resource management platform receives confirmation of the resource usage of tenants whose resource needs are not met, which can facilitate the administrator to monitor and manage the resource usage of tenants, timely discover tenants whose resource needs are not met, and allocate sufficient resources to tenants in a timely manner. It can also facilitate tenants of the cloud resource management platform to clearly and obviously know the changing trend of their resource usage, and timely select the resource plan recommended by the cloud resource management platform when the resource needs are not met, thereby improving the resource usage experience of tenants.
[0020] In a second aspect, a resource detection device for a tenant is provided, which includes a resource issuance module, which is used to issue a first resource to the first tenant in response to a resource issuance request of the first tenant; and is also used to issue a second resource to the second tenant in response to a resource issuance request of the second tenant; a detection module, which is used to determine that the first tenant is a tenant whose resource demand is not met based on the resource usage characteristics of the first tenant and the resource usage characteristics of the second tenant, and the resource usage characteristics are used to indicate the changing characteristics of resource usage; an allocation module, which is used to calculate the resources to be changed corresponding to the first tenant, and allocate the resources to be changed to the first tenant.
[0021] In one possible implementation, when the detection module determines that the first tenant is a tenant whose resource needs are not met based on the resource usage characteristics of the first tenant and the resource usage characteristics of the second tenant, it is specifically used to: determine that the first tenant is a tenant whose resource needs are not met based on the resource usage characteristics of the first tenant within the resource usage time period and the resource usage characteristics of the second tenant within the resource usage time period.
[0022] In another possible implementation, when the detection module determines that the first tenant is a tenant whose resource needs are not met based on the resource usage characteristics of the first tenant within the resource usage time period and the resource usage characteristics of the second tenant within the resource usage time period, the detection module is specifically used to: determine that the first tenant is a tenant whose resource needs are not met based on the resource usage characteristics of the first tenant within multiple resource usage time periods and the resource usage characteristics of the second tenant within multiple resource usage time periods, the resource usage characteristics of the first tenant within the multiple resource usage time periods are an increasing trend, and the resource usage characteristics of the second tenant within the multiple resource usage time periods are a trend from increasing to decreasing.
[0023] In another possible implementation, the multiple resource usage time periods include a first time period, a second time period, and a third time period, the second time period includes the moment of peak resource amount in the cloud resource pool, and the detection module determines that the first tenant is a tenant whose resource needs are not met based on the resource usage characteristics of the first tenant in the multiple resource usage time periods and the resource usage characteristics of the second tenant in the multiple resource usage time periods. Specifically, it is used to: determine that the first tenant is a tenant whose resource needs are not met based on the fact that the resource usage of the first tenant in the first time period is less than the resource usage in the second time period, the resource usage in the second time period is less than the resource usage in the third time period, the resource usage of the second tenant in the first time period is less than the resource usage in the second time period, and the resource usage in the second time period is greater than the resource usage in the third time period.
[0024] In another possible implementation, when the allocation module calculates the resources to be changed corresponding to the first tenant and allocates the resources to be changed to the first tenant, it is specifically used to: calculate the resources to be changed based on the difference in resource usage of the first tenant in adjacent time periods in the resource usage time period, and allocate the resources to be changed to the first tenant.
[0025] In another possible implementation, the apparatus further includes: a receiving module configured to receive confirmation of a change characteristic of the first tenant's resource usage.
[0026] In another possible implementation, the apparatus further includes: a display module, configured to display a recommended processing solution, wherein the recommended processing solution is used to recommend a resource solution that meets the resource demand for the first tenant.
[0027] In a third aspect, a chip system is provided, the chip system comprising a logic circuit and a power supply circuit, the power supply circuit supplies power to the logic circuit, and the logic circuit is used to execute the operation steps of the tenant resource detection method in the first aspect or any possible implementation of the first aspect. In a possible design, the chip system also includes a memory for storing program instructions and / or data.
[0028] In a fourth aspect, a computing device cluster is provided, which includes at least one computer device, and the computer device includes a memory and a processor, and the memory is used to store a set of computer instructions; when the processor executes the set of computer instructions as an execution device in the first aspect or any possible implementation of the first aspect, the resource detection method of the tenant in the first aspect or any possible implementation of the first aspect is executed.
[0029] In a fifth aspect, a computer-readable storage medium is provided, comprising: computer software instructions; when the computer software instructions are executed in a computing device cluster, the computing device cluster executes a resource detection method for a tenant as in the first aspect or any possible implementation of the first aspect.
[0030] In a sixth aspect, a computer program product comprising instructions is provided. When the instructions are executed by a computing device cluster, the computing device cluster executes the resource detection method for tenants in the first aspect or any possible implementation of the first aspect.
[0031] The technical effects brought about by any design method in the second to sixth aspects can refer to the technical effects brought about by the first aspect or different design methods in the first aspect, and will not be repeated here.
[0032] Based on the implementations provided in the above aspects, this application can also be further combined to provide more implementations. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 A schematic diagram of the structure of a tenant resource detection system provided for this application;
[0034] Figure 2 A flowchart of a tenant resource detection method provided for this application;
[0035] Figure 3 A resource usage change trend graph for multiple resource usage time periods provided for this application;
[0036] Figure 4 A display diagram of an administrator interface provided for this application;
[0037] Figure 5 A display diagram of a tenant interface provided for this application;
[0038] Figure 6 A schematic diagram of the structure of a tenant resource detection device provided in this application;
[0039] Figure 7 A schematic diagram of the structure of a computing device cluster provided for this application;
[0040] Figure 8 A schematic diagram of the structure of another computing device cluster provided in this application. DETAILED DESCRIPTION
[0041] The technical solution provided by the present application will be described in detail below in conjunction with the accompanying drawings. Although certain embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be interpreted as being limited to the embodiments described herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present application. It should be understood that the drawings and embodiments of the present application are only for exemplary purposes and are not intended to limit the scope of protection of the present application.
[0042] In the description of the embodiments of the present application, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.
[0043] In this application, "multiple" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: including the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.
[0044] In order to make the description of the following embodiments clear and concise, the terms involved in this application are first briefly introduced.
[0045] Cloud resources refer to computing resources provided by cloud service providers through the Internet, including but not limited to virtual machine resources, container resources, storage resources, and network resources. These resources are provided to users in the form of services. Users can access and use these resources through the network without having to manage and maintain hardware equipment.
[0046] A resource pool of cloud computing refers to a collection of computing, storage, and network resources managed and maintained by a cloud service provider. Cloud service providers can dynamically allocate these cloud resources in the cloud resource pool to tenants based on their resource usage needs to ensure efficient use of cloud resources.
[0047] The basic unit of user of resource usage in this application is tenant. After an individual or enterprise registers an account on the cloud platform, the cloud platform regards the user with account information as a tenant, and allocates resources based on the tenant's demand for resource usage. There is no restriction on the form of tenants in this application. For example, a tenant can be a large single tenant or a tenant group consisting of multiple small tenants.
[0048] Multiple tenants can share cloud resources in the same cloud resource pool, but the total amount of cloud resources is limited, and cloud resources may not be able to meet the resource needs of some tenants. Based on this, cloud service providers need to detect tenants' use of cloud resources and discover tenants with potential resource needs, so as to allocate sufficient resources to tenants in a timely manner, meet tenants' resource needs, and improve tenants' resource usage experience.
[0049] In order to solve the problem of low accuracy in detecting tenant resource demands and improve the accuracy of detecting tenant resources, the present application provides a tenant resource detection method, which is executed by a computer device cluster. The method is applied to a cloud platform, which is used to manage infrastructure, and multiple cloud resources are running on the infrastructure. The method includes: different tenants have different resource usage requirements, and in response to a resource issuance request from a first tenant, a first resource is issued to the first tenant; in response to a resource issuance request from a second tenant, a second resource is issued to the second tenant. After the resources are issued, the first tenant is first determined as a tenant whose resource demand is not met based on the resource usage characteristics of the first tenant and the resource usage characteristics of the second tenant. The resource usage characteristics here can be used to indicate the characteristics of changes in resource usage; then the resources to be changed corresponding to the first tenant are calculated, and the resources to be changed are allocated to the first tenant. The allocated resources to be changed can meet the resource demand of the first tenant.
[0050] The resource usage of tenants changes dynamically, and the resource usage characteristics can reflect the changing trend of resource usage. The changing trends of resource usage of different tenants are different, and the resources used by some tenants may occupy the resources required by other tenants. Compared with predicting the future resource demand of tenants based on their historical resource usage, it ignores the situation that historical resource usage may not meet the actual resource demand of tenants at that time. In this application, the resource usage of tenants who have met their resource needs is used as a reference to analyze the changing trends of resource usage of other tenants affected by their dynamic changes, and determine the tenants whose resource needs are not met among the remaining tenants based on the changing trends, thereby improving the accuracy of detecting tenant resource demand.
[0051] The following is a detailed description of the tenant resource detection method provided by the present application with reference to the accompanying drawings.
[0052] Figure 1 This is a schematic diagram of the structure of a tenant resource detection system provided by this application. Figure 1 As shown, the tenant's resource detection system 100 includes a cloud resource pool 110 , a client 120 , and a detection device 130 .
[0053] The cloud resource pool 110 includes computing resources, storage resources, and network resources, etc. The cloud service provider can distribute these resources to multiple tenants in the client 120 on demand according to the resource usage requirements of the tenants. Exemplarily, the cloud resource pool 110 can receive a resource distribution request sent by the client 120 through the network, and the resource distribution request indicates the resource demand of the tenant.
[0054] The client 120 can be a cloud resource management platform (cloud platform) that manages tenant cloud resources, helping tenants to conveniently manage the cloud resources they use. Tenants can start or stop cloud services through the cloud resource management platform and learn about the usage of their resources. Exemplarily, the client 120 can receive a resource detection request sent by the detection device 130, and send the resource usage of each tenant to the detection device 130, so that the detection device 130 can perform resource detection of the tenant.
[0055] The detection device 130 is used to implement the tenant resource detection function and determine the tenants whose resource requirements are not met. In some embodiments, the detection device 130 can be at least one computer device 131. Exemplarily, the computer device 131 includes at least one processor 101, a communication line 102, and at least one communication interface 104, and can also include a memory 103. Among them, the processor 101, the memory 103 and the communication interface 104 can be connected through the communication line 102.
[0056] The processor 101 can be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application, such as one or more digital signal processors (DSP), or one or more field programmable gate arrays (FPGA). In the present application, the processor 101 is used to determine that the first tenant is a tenant whose resource requirements are not met based on the resource usage characteristics of the first tenant and the resource usage characteristics of the second tenant; calculate the resources to be changed corresponding to the first tenant, and allocate the resources to be changed to the first tenant, and the allocated resources can meet the resource requirements of the first tenant. The specific implementation method can refer to the description of steps 210 to 220 in the following embodiment.
[0057] The communication line 102 may include a path for transmitting information between the above components (such as the processor 101, the memory 103, and the communication interface 104). In addition to the data bus, the communication line 102 may also include a power bus, a control bus, and a status signal bus. However, for the sake of clarity, various buses are marked as communication lines 102 in the figure. The communication line 102 may be a Peripheral Component Interconnect Express (PCIe) bus, or an extended industry standard architecture (EISA) bus, a unified bus (Ubus or UB), a compute express link (CXL), a cache coherent interconnect for accelerators (CCIX), etc.
[0058] The communication interface 104 is used to enable the computer device 131 to communicate with other devices or communication networks, and can use any transceiver-like device, such as Ethernet, radio access network (RAN), WLAN, etc.
[0059] The memory 103 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to include or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.
[0060] In one possible design, the memory 103 can exist independently of the processor 101, that is, the memory 103 can be a memory outside the processor 101. In this case, the memory 103 can be connected to the processor 101 through the communication line 102, and is used to store execution instructions or application code, and the processor 101 controls the execution to implement the tenant resource detection method provided in the following embodiment of the present application. In another possible design, the memory 103 can also be integrated with the processor 101, that is, the memory 103 can be the internal memory of the processor 101. For example, the memory 103 is a cache, which can be used to temporarily store the changing characteristics of resource usage of at least two tenants, the first tenant, and the resources to be allocated.
[0061] As a possible implementation, the processor 101 may be a multi-core (multi-CPU) processor. The processor here may refer to one or more devices, circuits, and / or computing units for processing data (such as computer program instructions). The processor 101 includes one or more CPUs, such as Figure 1 CPU0 and CPU1 in.
[0062] As another possible implementation, the computer device 131 may include multiple processors, such as Figure 1 The processor 101 and the processor 107 in it.
[0063] As another possible implementation, the computer device 131 may further include an output device 105 and an input device 106. Exemplarily, the input device 106 may be a keyboard, a mouse, a microphone, a joystick, or other devices, and the output device 105 may be a display screen, a speaker, or other devices. In the present application, the display screen may display the administrator interface of the cloud resource management platform, on which the changing characteristics of the first tenant and the resource usage may be presented, and the tenant interface of the cloud resource management platform may be displayed, on which the resource solution recommended to the first tenant to meet its resource needs may be presented. For the specific content displayed, reference may be made to the description of steps 230 to 240 in the following embodiments.
[0064] It should be noted that the computer device 131 may be a desktop computer, a portable computer, a network server, a wireless terminal, an embedded device, a chip system or a Figure 1 A computer device 131 of similar structure. In addition, Figure 1 The composition structure shown in the figure does not constitute a limitation on the processing device, except Figure 1 In addition to the components shown, the computer device 131 may include more or fewer components than shown, or combine certain components, or arrange the components differently.
[0065] Next, combine Figures 2 to 5 , the tenant resource detection method provided in this application is described in detail. Figure 2 A schematic diagram of a tenant resource detection method provided in this application. Figure 1 The resource detection method is described as an example in which the processor determines the tenant whose resource demand is not met according to the resource usage characteristics of the first tenant and the second tenant. Figure 2 As shown, the method may include the following steps.
[0066] Step 200: In response to a resource issuance request from a first tenant, a first resource is issued to the first tenant; in response to a resource issuance request from a second tenant, a second resource is issued to the second tenant.
[0067] The resource allocation request may indicate the resource demand of the tenant, such as the demand for computing resources is xx cores. The processor may respond to the resource allocation request of each tenant and allocate resources to each tenant. In this application, the first tenant and the second tenant are taken as examples.
[0068] In this application, when a tenant applies for resources through a resource issuance request, the specific scenario of resource use can be specified, such as the quantity and specifications required for a cloud instance in a cloud resource pool to run a business. It is also possible not to specify a specific scenario for resource use, for example, a tenant purchases multiple cloud instances in a cloud resource pool to run a business. However, the business volume will not remain stable, but will change dynamically between peaks and troughs. During the actual use of resources by tenants, there may be a time period when resource issuance cannot meet resource demand, that is, a time period when resource usage is less than resource demand, resulting in a poor resource use experience due to the failure of the resources actually used by the tenants to meet the resources required at the time. In order to improve the resource use experience of tenants, it is necessary to identify these tenants whose resource needs are not met, so that sufficient resources can be allocated to them in a timely manner to meet the resource needs of the tenants.
[0069] Step 210: According to the resource usage characteristics of the first tenant and the resource usage characteristics of the second tenant, determine that the first tenant is a tenant whose resource requirements are not met.
[0070] The cloud resources in the cloud resource pool can be provided to multiple tenants. The cloud service provider can allocate cloud resources to multiple tenants according to their resource usage requirements. Sharing cloud resources among multiple tenants can improve resource utilization and reduce resource waste. However, multiple tenants may have high resource requirements in the same period of time. In this case, the resources used by some tenants may occupy the resources required by other tenants. The actual resource usage of tenants fails to meet the actual resource requirements of tenants at that time, that is, there will be tenants with unmet resource requirements among multiple tenants.
[0071] The resource usage of tenants changes dynamically. For example, when a tenant is processing busy business, the resource usage is high, and when a tenant is processing simple business, the resource usage is low. Resource usage characteristics can be used to indicate the changing characteristics of resource usage. Different tenants have different resource usage, and the changing characteristics of resource usage are also different. The resource usage characteristics of the first tenant can be the changing characteristics of the first tenant's resource usage of the first resource, and the resource usage characteristics of the second tenant can be the changing characteristics of the second tenant's resource usage of the second resource.
[0072] Resource usage characteristics can reflect the changing trend of resource usage. For example, a corporate tenant's business is stable in the morning and resource usage remains stable; in the afternoon, employees take a lunch break and resource usage drops slightly; in the afternoon, the execution of activities such as project development and data analysis increases resource usage, and in the evening, the closing of business causes resource usage to peak; in the early morning, it is a rest time, resource usage is low, and computing resources and storage resources can be released during this time period. For another example, in the case of an emergency, when a tenant is suddenly attacked by a network attack, it is necessary to immediately increase the usage of network resources to cope with the attack until the network gradually stabilizes.
[0073] The processor can determine the tenant whose resource requirements are not met according to the resource usage characteristics of the first tenant and the resource usage characteristics of the second tenant. Exemplarily, the first tenant is determined to be the tenant whose resource requirements are not met. The implementation method of the processor determining the first tenant as the tenant whose resource requirements are not met is described by the following step 221.
[0074] Step 221: Determine that the first tenant is a tenant whose resource demand is not met based on the resource usage characteristics of the first tenant in the resource usage time period and the resource usage characteristics of the second tenant in the resource usage time period.
[0075] The resource usage time period can be a certain time period when the tenant uses resources, such as 8:00 to 16:00 in a day, or multiple time periods when the tenant uses resources, such as 0:00 to 8:00, 8:00 to 16:00, and 16:00 to 24:00 in a day. The resource usage of the tenant changes dynamically within the resource usage time period, and different tenants have different characteristics of resource usage changes within the same resource usage time period.
[0076] In some embodiments, the processor may determine that the first tenant is a tenant whose resource demand is not met based on resource usage characteristics of the first tenant and the second tenant in multiple resource usage time periods.
[0077] Among them, multiple resource usage time periods can be divided based on the time when the peak resource amount in the cloud resource pool occurs. The peak resource amount here can be the sum of the maximum computing resources, storage resources and network resources that the cloud service provider can provide in its data center, that is, the maximum resource capacity of the cloud resource pool. The multiple resource usage time periods include a first time period, a second time period and a third time period. The second time period is connected with the first time period in chronological order, and the third time period is connected with the second time period in chronological order. The second time period may include the time when the peak resource amount in the cloud resource pool occurs.
[0078] The division of the above-mentioned multiple resource usage time periods will be understood with reference to the accompanying drawings. Figure 3 A resource usage change trend diagram provided for this application in multiple resource usage time periods, such as Figure 3 As shown in the figure, the peak resource amount of the cloud resource pool is set to C, and multiple resource usage time periods are divided based on the time when the peak resource amount C occurs. The continuous time period when the resource usage is greater than μ·C is taken as the peak time period T, where μ can be between 0.95 and 1, for example, μ∈[0.95,1). The first time period can be W hours before the start time of the peak time period T, denoted as T S The second time period may be W hours starting from the start time of the peak time period T, and the amount of resources in the cloud resource pool gradually increases until the peak amount of resources C, recorded as T V , in T V The third time period may be W hours after the peak resource amount C as the starting time, denoted as T E , in T E The time when the peak resource volume C occurs is not included in W, and W here can be between 6 hours and 12 hours.
[0079] The resource usage characteristics can be intuitively reflected in the form of the changing trend of resource usage. If the resource usage characteristics of the first tenant in multiple resource usage time periods are an increasing trend, and the resource usage characteristics of the second tenant in multiple resource usage time periods are from increasing to decreasing, that is, first increasing and then decreasing, the first tenant is determined to be a tenant whose resource demand is not met. It should be noted that the first tenant or the second tenant here can be a single large tenant or a tenant group consisting of multiple small tenants.
[0080] In one possible implementation, the resource usage characteristics of the first tenant in multiple resource usage time periods are an increasing trend, and the resource usage of the first tenant in the first time period, the second time period, and the third time period gradually increases, that is, the resource usage of the first tenant in the first time period is less than the resource usage in the second time period, and the resource usage in the second time period is less than the resource usage in the third time period.
[0081] For example, the first tenant is assigned to the first time period T S The resource usage in is recorded as E(x1(T S )), the first tenant is in the second time period T V The resource usage in is recorded as E(x1(T v )), the first tenant is in the third time period T E The resource usage in is recorded as E(x1(T E )).like Figure 3 As shown, according to the change trend curve of the resource usage of the first tenant in each of the above time periods, it can be obtained that E(x1(T S )) <E(x1(T v)) <E(x1(T E )).
[0082] The resource usage characteristics of the above-mentioned second tenant in multiple resource usage time periods are a trend from increasing to decreasing, which may be that the resource usage of the second tenant in the first time period and the second time period gradually increases, and the resource usage in the third time period gradually decreases, that is, the resource usage of the second tenant in the first time period is less than the resource usage in the second time period, and the resource usage in the second time period is greater than the resource usage in the third time period.
[0083] For example, the second tenant is S The resource usage in is recorded as E(x2(T S )), the second tenant is in the second time period T V The resource usage in is recorded as E(x2(T v )), the second tenant is in the third time period T E The resource usage in is recorded as E(x2(T E )).like Figure 3 As shown, according to the change trend curve of the resource usage of the second tenant in each of the above time periods, it can be obtained that E(x2(T S )) <E(x2(T v )) and E(x2(T v ))>E(x2(T E )).
[0084] Refer to the analysis of each time period Figure 3 The resource usage change trend curve of the second tenant in the first time period T S Resource usage E(x2(T S )) and the first tenant in the first time period T S Resource usage E(x1(T S )) both increase slowly; the second tenant in the second time period T V Resource usage E(x2(T v )) increased much more than the first tenant in the second period T V Resource usage E(x1(T v )) The increase in the second tenant in the third time period T E Resource usage E(x2(T E )) gradually decreases, the first tenant in the third time period T E Resource usage E(x1(T E )) In the second time period T V Resource usage E(x1(T v )) and continue to increase gradually on the basis of.
[0085] This indicates that the resources used by the second tenant in the second time period occupied the resources needed by the first tenant, resulting in the first tenant's actual resource usage in the second time period failing to meet the actual resource demand at that time. In order to use sufficient resources in a timely manner, the first tenant gradually increased the resources used by the first tenant when the resources used by the second tenant gradually decreased in the third time period, so as to make up for the unmet resource demand in the second time period due to the second tenant's resource preemption. Therefore, it is determined that the first tenant is the tenant "run" by the second tenant, that is, the first tenant is the tenant whose resource demand is not met. It should be noted that if the first tenant's resource demand is small in the second time period and large in the third time period, so that the first tenant's actual resource usage in the third time period is greater than the actual resource usage in the second time period, in this case, the influence of the second tenant's resource usage change trend is not considered for the time being, and the first tenant has met its resource demand.
[0086] Step 220: Calculate the resources to be changed corresponding to the first tenant, and allocate the resources to be changed to the first tenant.
[0087] After the processor determines that the first tenant is a tenant whose resource needs are not met, it needs to calculate the resources to be changed corresponding to the first tenant and allocate the resources to be changed to the first tenant. The allocated resources to be changed can meet the resource needs of the first tenant to improve the tenant's resource usage experience.
[0088] In some embodiments, based on the trend of gradually increasing resource usage of the first tenant within the resource usage time period, the processor can calculate the resources to be changed of the first tenant according to the difference in resource usage in adjacent time periods within the resource usage time period of the first tenant, and allocate the resources to be changed to the first tenant.
[0089] In a possible implementation, since the first tenant is a "run" tenant, the amount of resources obtained in the second time period is not sufficient for use, and the resource usage in the third time period continues to gradually increase based on the resource usage in the second time period. The processor can calculate the resources to be changed of the first tenant according to the difference between the resource usage in the third time period and the resource usage in the second time period in the resource usage time period of the first tenant, and allocate the resources to be changed to the first tenant.
[0090] Exemplarily, the resource amount of the to-be-changed resource corresponding to the first tenant is recorded as L(x). The resource amount L(x) of the to-be-changed resource is calculated to satisfy formula (1).
[0091] L(x)=E(x1(T E ))-E(x1(T v )) Formula (1)
[0092] Among them, E(x1(T E )) indicates that the first tenant is in the third time period T E Resource usage within, E(x1(T v )) represents the resource usage of the first tenant in the second time period Tv. Here E(x1(T E )) may be the average value of the total resource usage of the first tenant at each time in the third time period, E(x1(T v )) can be the average value of the total resource usage of the first tenant at each moment in the second time period.
[0093] In some embodiments, in order to facilitate the administrator of the cloud resource management platform to monitor and manage the resource usage of each tenant, and to facilitate the tenant to clearly and obviously know the situation of unmet resource demand, the change characteristics of the first tenant's resource usage can be displayed on the administrator interface, and the processing solution recommended to the tenant to meet its resource demand can be displayed on the tenant interface. The specific content of the display is described by the following steps 230 to 240.
[0094] Step 230: Receive confirmation of the change characteristics of the first tenant's resource usage.
[0095] The administrator of the cloud resource management platform needs to know the resource usage of each tenant in order to timely recommend solutions that meet the resource needs of tenants whose resource needs are not met. In the administrator interface of the cloud resource management platform, the change characteristics of the resource usage of each tenant can be displayed, showing the dynamically changing resource usage of each tenant during the resource usage period, and receiving confirmation of the change characteristics of the resource usage of the first tenant (the tenant whose resource needs are not met).
[0096] Figure 4 A display diagram of an administrator interface provided for this application, such as Figure 4As shown, in the administrator interface of the cloud resource management platform, the administrator can query the resource usage of each tenant, and the interface can display which tenant is the first tenant (the tenant who does not meet the resource demand), and display the change characteristics of the resource usage of each tenant in the form of a change trend chart. Exemplarily, assuming that the processor detects that the computing resources of tenant A do not meet the resource demand based on the method in steps 210 to 220 above, and calculates the amount of resources to be changed that need to be allocated to it, the interface can prompt the administrator to detect that the amount of resources to be changed for tenant A is xx cores. It is recommended that tenant A purchase resources from the xx resource pool with stronger computing power on demand, but still charge the current resource price. In this way, the administrator receives confirmation of tenant A's resource usage and can click the "Agree to prompt tenant A" button or the "Do not prompt tenant A for the time being" button. After the administrator agrees to prompt tenant A, the above-mentioned processing solution that meets its resource needs can be displayed on the tenant A interface.
[0097] Step 240: Display the recommended treatment plan.
[0098] Figure 5 A display diagram of a tenant interface provided for this application, such as Figure 5 As shown, for example, assuming that tenant A is a tenant whose resource demand is not met, the tenant interface of the cloud resource management platform can display the change trend of tenant A's resource usage and provide a recommended solution, which is used to recommend a resource solution that meets the resource demand for tenant A. The content of the recommended solution can be that it is detected that the amount of resources that you currently do not meet your demand is xx cores, and at least xx cores of resources will be automatically allocated to you.
[0099] This application does not limit the operations after identifying tenants whose resource requirements are not met. For example, when automatically allocating xx core resources to tenants whose resource requirements are not met, if no new fees are generated, the tenant does not need to confirm and the fees are still charged at the current resource price. If new fees are generated, such as Figure 5 In the example above, the cloud service provider can recommend that you purchase resources from the xx resource pool with stronger computing power on demand at a price of xx. The tenant can click the "Agree to Purchase" button or the "Disagree to Purchase" button. After the tenant agrees to purchase, the cloud service provider can automatically switch the changed resources for the tenant and allocate xx core resources in a timely manner to meet its resource needs.
[0100] According to the tenant resource detection method provided by the above steps, the tenant's resource usage changes dynamically, and the resource usage characteristics can reflect the changing trend of resource usage. The changing trends of resource usage of different tenants are different, and the resources used by some tenants may occupy the resources required by other tenants. Compared with predicting the future resource demand of tenants based on the tenant's historical resource usage, the situation that the historical resource usage may not meet the tenant's actual demand for resources at the time is ignored. Since the total amount of resources in the cloud resource pool is limited, when some tenants use a large amount of resources, it may cause the resources used by other tenants to fail to meet their resource needs. In this application, the resource usage of tenants who have met the resource needs is used as a reference, and the changing trend of the resource usage of the remaining tenants affected by their dynamic changes is analyzed. The tenants whose resource needs are not met among the remaining tenants are determined according to the changing trend, and resources that can meet their resource needs are allocated to these tenants. In this way, the accuracy of detecting the resource needs of tenants is improved.
[0101] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. It is understandable that in order to achieve the above functions, the computer device includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the algorithm steps of each example described in the embodiment disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.
[0102] Combined with the above Figures 2 to 5 , describes in detail the tenant resource detection method provided by the embodiment of the present application, and will be combined with Figure 6 , describing a resource detection device for a tenant provided according to an embodiment of the present application.
[0103] Figure 6 A schematic diagram of the structure of a tenant resource detection device provided in this application, such as Figure 6 As shown, the tenant resource detection device 600 includes:
[0104] A detection module 610, configured to determine that the first tenant is a tenant whose resource demand is not met according to the resource usage characteristics of the first tenant and the resource usage characteristics of the second tenant, where the resource usage characteristics are used to indicate the characteristics of changes in resource usage;
[0105] An allocation module 620, configured to calculate the resources to be changed corresponding to the first tenant, and allocate the resources to be changed to the first tenant;
[0106] Optionally, the tenant's resource detection device also includes a display module 630, which is used to display the change characteristics of the first tenant's resource usage; and is also used to display a recommended processing solution, which is used to recommend a resource solution that meets the resource requirements for the first tenant.
[0107] Among them, the detection module 610, the allocation module 620 and the display module 630 can all be implemented by software, or can be implemented by hardware. Exemplarily, the following takes the detection module 610 as an example to introduce the implementation of the detection module 610. Similarly, the implementation of the allocation module 620 and the display module 630 can refer to the implementation of the detection module 610.
[0108] As an example of a software functional unit, the detection module 610 may include code running on a computing instance. Among them, the computing instance may include at least one of a physical host (computer device), a virtual machine, and a container. Further, the above-mentioned computing instance may be one or more. For example, the detection module 610 may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the code can be distributed in the same region (region) or in different regions. Furthermore, the multiple hosts / virtual machines / containers used to run the code can be distributed in the same availability zone (AZ) or in different AZs, each AZ including a data center or multiple data centers with close geographical locations. Among them, usually a region can include multiple AZs.
[0109] Similarly, multiple hosts / virtual machines / containers used to run the code can be distributed in the same virtual private cloud (VPC) or in multiple VPCs. Usually, a VPC is set up in a region. For cross-region communication between two VPCs in the same region and between VPCs in different regions, a communication gateway needs to be set up in each VPC to achieve interconnection between VPCs through the communication gateway.
[0110] As an example of a hardware functional unit, the detection module 610 may include at least one computing device, such as a server, etc. Alternatively, the detection module 610 may also be a device implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.
[0111] The multiple computing devices included in the detection module 610 can be distributed in the same region or in different regions. The multiple computing devices included in the detection module 610 can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in the detection module 610 can be distributed in the same VPC or in multiple VPCs. The multiple computing devices can be any combination of computing devices such as servers, ASICs, PLDs, CPLDs, FPGAs, and GALs.
[0112] It should be noted that, in other embodiments, the detection module 610 can be used to execute any step in the method of determining that the first tenant is a tenant whose resource needs are not met based on the resource usage characteristics of the first tenant and the resource usage characteristics of the second tenant. The allocation module 620 can be used to execute any step in the method of calculating the resources to be changed corresponding to the first tenant and allocating the resources to be changed to the first tenant. The display module 630 can be used to execute any step in the method of displaying the changing characteristics of the resource usage of the first tenant and recommending a processing solution. The steps that the detection module 610, the allocation module 620, and the display module 630 are responsible for implementing can be specified as needed. The detection module 610, the allocation module 620, and the display module 630 respectively implement different steps in the tenant's resource detection method to realize all the functions of the tenant's resource detection device.
[0113] The embodiment of the present application also provides a computing device cluster. The computing device cluster includes at least one computer device. The computer device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer or a laptop computer.
[0114] like Figure 7As shown, the computing device cluster includes at least one computer device 700. The memory 706 in one or more computer devices 700 in the computing device cluster may store the same instructions for executing the resource detection method of the tenant. The functions of the bus 702, the processor 704, the memory 706, and the communication interface 708 may refer to Figure 1 The introduction of the corresponding content will not be repeated here.
[0115] In some possible implementations, the memory 706 of one or more computer devices 700 in the computing device cluster may also store partial instructions for executing the tenant's resource detection method. In other words, the combination of one or more computer devices 700 may jointly execute instructions for executing the tenant's resource detection method.
[0116] It should be noted that the memory 706 in different computer devices 700 in the computing device cluster can store different instructions, which are respectively used to execute part of the functions of the tenant's resource detection device. That is, the instructions stored in the memory 706 in different computer devices 700 can implement the functions of one or more modules among the detection module, the allocation module and the display module.
[0117] In some possible implementations, one or more computer devices in the computing device cluster may be connected via a network, which may be a wide area network or a local area network. Figure 8 A possible implementation is shown. Figure 8 As shown, two computer devices 800A and 800B are connected via a network. Specifically, the network is connected via a communication interface in each computer device. In this type of possible implementation, the memory 806 in the computer device 800A stores instructions for executing the functions of one or more modules among the detection module, the allocation module, and the display module. At the same time, the memory 806 in the computer device 800B also stores instructions for executing the functions of one or more modules among the detection module, the allocation module, and the display module. The functions of the bus 802, the processor 804, the memory 806, and the communication interface 808 can be referred to. Figure 1 The introduction of the corresponding content will not be repeated here.
[0118] It should be understood that Figure 8 The functions of the computer device 800A shown in FIG. 8 may also be completed by multiple computer devices 800. Similarly, the functions of the computing device 800B may also be completed by multiple computing devices 800.
[0119] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by a computer device or a data storage device such as a data center that contains one or more available media. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid-state hard disk), etc. The computer-readable storage medium includes instructions that instruct the computer device to execute a method for determining that a first tenant is a tenant whose resource needs are not met based on resource usage characteristics of at least two tenants, or instruct the computer device to execute a method for allocating resources to the first tenant based on the changing characteristics of the resource usage of the first tenant.
[0120] The embodiment of the present application also provides a computer program product including instructions. The computer program product may be a software or program product including instructions that can be run on a computer device or stored in any available medium. When the computer program product is run on at least one computer device, the at least one computer device executes a method for determining that a first tenant is a tenant with unmet resource needs based on resource usage characteristics of at least two tenants, or a method for allocating resources to the first tenant based on the change characteristics of the resource usage of the first tenant.
[0121] The present application also provides a chip system, which includes a processor for implementing the functions of the tenant resource detection method in the above embodiment. In one possible design, the chip system also includes a memory for storing program instructions and / or data. The chip system can be composed of a chip, or it can include a chip and other discrete devices.
[0122] The chip integrates a control circuit and one or more ports for realizing the functions of the above-mentioned computer device. Optionally, the functions supported by the chip can be referred to above and will not be repeated here. A person of ordinary skill in the art can understand that all or part of the steps of implementing the above-mentioned embodiment can be completed by instructing the relevant hardware through a program. The program can be stored in a computer-readable storage medium. The storage medium mentioned above can be a read-only memory, a random access memory, etc. The above-mentioned processing unit or processor can be a central processing unit, a general-purpose processor, an application specific integrated circuit (ASIC), a microprocessor (digital signal processor, DSP), a field programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof.
[0123] It should be noted that the above-mentioned devices for storing computer instructions or computer programs provided in the embodiments of the present application, such as but not limited to the above-mentioned memories, computer-readable storage media and communication chips, etc., are all non-transitory.
[0124] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the protection scope of the technical solutions of the embodiments of the present invention.
Claims
1. A tenant resource detection method, characterized in that: The method is applied to a cloud platform, the cloud platform is used to manage infrastructure, and multiple cloud resources are running on the infrastructure. The method includes: In response to a resource issuance request from a first tenant, issuing a first resource to the first tenant; In response to the resource issuance request of the second tenant, issuing a second resource to the second tenant; Determining, according to a resource usage characteristic of the first tenant and a resource usage characteristic of the second tenant, that the first tenant is a tenant whose resource demand is not met, the resource usage characteristic being used to indicate a characteristic of a change in resource usage; The resources to be changed corresponding to the first tenant are calculated, and the resources to be changed are allocated to the first tenant.
2. The method according to claim 1, characterized in that: Determining, according to the resource usage characteristics of the first tenant and the resource usage characteristics of the second tenant, that the first tenant is a tenant whose resource requirements are not met includes: According to the resource usage characteristics of the first tenant in the resource usage time period and the resource usage characteristics of the second tenant in the resource usage time period, it is determined that the first tenant is a tenant whose resource demand is not met.
3. The method according to claim 2, characterized in that Determining, according to the resource usage characteristics of the first tenant in the resource usage time period and the resource usage characteristics of the second tenant in the resource usage time period, that the first tenant is a tenant whose resource demand is not met includes: Based on the resource usage characteristics of the first tenant in multiple resource usage time periods and the resource usage characteristics of the second tenant in the multiple resource usage time periods, it is determined that the first tenant is a tenant whose resource needs are not met, the resource usage characteristics of the first tenant in the multiple resource usage time periods are an increasing trend, and the resource usage characteristics of the second tenant in the multiple resource usage time periods are a trend from increasing to decreasing.
4. The method according to claim 3, characterized in that The multiple resource usage time periods include a first time period, a second time period, and a third time period, the second time period includes a moment of peak resource quantity in the cloud resource pool, and determining that the first tenant is a tenant whose resource demand is not met according to resource usage characteristics of the first tenant in the multiple resource usage time periods and resource usage characteristics of the second tenant in the multiple resource usage time periods, includes: Based on the fact that the resource usage of the first tenant in the first time period is less than the resource usage in the second time period, the resource usage in the second time period is less than the resource usage in the third time period, the resource usage of the second tenant in the first time period is less than the resource usage in the second time period, and the resource usage in the second time period is greater than the resource usage in the third time period, it is determined that the first tenant is a tenant whose resource needs are not met.
5. The method according to any one of claims 2 to 4, characterized in that: The calculating the resources to be changed corresponding to the first tenant and allocating the resources to be changed to the first tenant includes: The resource to be changed is calculated based on the difference in resource usage of the first tenant in adjacent time periods in the resource usage time period, and the resource to be changed is allocated to the first tenant.
6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: Receiving confirmation of a characteristic of a change in resource usage by the first tenant.
7. The method according to any one of claims 1 to 6, characterized in that The method further comprises: A recommended processing solution is displayed, where the recommended processing solution is used to recommend a resource solution that meets the resource demand for the first tenant.
8. A tenant resource detection device, characterized in that: The device is applied to a cloud platform, the cloud platform is used to manage infrastructure, and multiple cloud resources are running on the infrastructure. The device includes: A resource issuing module, configured to issue a first resource to the first tenant in response to a resource issuing request of the first tenant; The resource method module is further configured to issue a second resource to the second tenant in response to a resource issuance request from the second tenant; a detection module, configured to determine that the first tenant is a tenant whose resource demand is not met according to a resource usage characteristic of the first tenant and a resource usage characteristic of the second tenant, wherein the resource usage characteristic is used to indicate a characteristic of a change in resource usage; An allocation module is used to calculate the resources to be changed corresponding to the first tenant and allocate the resources to be changed to the first tenant.
9. The device according to claim 8, characterized in that When the detection module determines, based on the resource usage characteristics of the first tenant and the resource usage characteristics of the second tenant, that the first tenant is a tenant whose resource requirements are not met, it is specifically configured to: According to the resource usage characteristics of the first tenant in the resource usage time period and the resource usage characteristics of the second tenant in the resource usage time period, it is determined that the first tenant is a tenant whose resource demand is not met.
10. The device according to claim 9, characterized in that When the detection module determines that the first tenant is a tenant whose resource demand is not met according to the resource usage characteristics of the first tenant in the resource usage time period and the resource usage characteristics of the second tenant in the resource usage time period, the detection module is specifically used to: Based on the resource usage characteristics of the first tenant in multiple resource usage time periods and the resource usage characteristics of the second tenant in the multiple resource usage time periods, it is determined that the first tenant is a tenant whose resource needs are not met, the resource usage characteristics of the first tenant in the multiple resource usage time periods are an increasing trend, and the resource usage characteristics of the second tenant in the multiple resource usage time periods are a trend from increasing to decreasing.
11. The device according to claim 10, characterized in that The multiple resource usage time periods include a first time period, a second time period, and a third time period, the second time period includes the moment of peak resource quantity in the cloud resource pool, and the detection module determines that the first tenant is a tenant whose resource demand is not met according to the resource usage characteristics of the first tenant in the multiple resource usage time periods and the resource usage characteristics of the second tenant in the multiple resource usage time periods, specifically for: Based on the fact that the resource usage of the first tenant in the first time period is less than the resource usage in the second time period, the resource usage in the second time period is less than the resource usage in the third time period, the resource usage of the second tenant in the first time period is less than the resource usage in the second time period, and the resource usage in the second time period is greater than the resource usage in the third time period, it is determined that the first tenant is a tenant whose resource needs are not met.
12. The device according to any one of claims 9 to 11, characterized in that When the allocation module calculates the resources to be changed corresponding to the first tenant and allocates the resources to be changed to the first tenant, it is specifically used to: The resource to be changed is calculated based on the difference in resource usage of the first tenant in adjacent time periods in the resource usage time period, and the resource to be changed is allocated to the first tenant.
13. The device according to any one of claims 8 to 12, characterized in that The device also includes: A receiving module is used to receive confirmation of the change characteristics of the first tenant's resource usage.
14. The device according to any one of claims 8 to 13, characterized in that The device also includes: The display module is used to display a recommended processing solution, where the recommended processing solution is used to recommend a resource solution that meets the resource requirements for the first tenant.
15. A chip system, characterized in that: The chip system includes a memory and a processor, wherein the memory is used to store a set of computer instructions; when the processor executes the set of computer instructions, the method described in any one of claims 1 to 7 is executed.
16. A computing device cluster, characterized in that: The computing device cluster includes at least one computer device, and the computer device includes a memory and a processor, wherein the memory is used to store a set of computer instructions; when the processor executes the set of computer instructions, the method described in any one of claims 1 to 7 is executed.
17. A computer-readable storage medium, characterized in that: The method comprises computer program instructions. When the computer program instructions are executed by a computing device cluster, the computing device cluster performs the method according to any one of claims 1 to 7.
18. A computer program product comprising instructions, characterized in that When the instructions are executed by a computing device cluster, the computing device cluster is caused to perform the method according to any one of claims 1 to 7.