A method, device and equipment for calculating instance specification change

Through automatic monitoring of the device and the specification changes of recommended computing instances, the problems of low resource utilization and insufficient business support in cloud computing are solved, and efficient resource utilization and stable business operation are achieved.

CN113900766BActive Publication Date: 2025-08-05HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202010640633.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-06
Publication Date
2025-08-05
Estimated Expiration
2040-07-06

AI Technical Summary

Technical Problem

In the prior art, cloud computing instances have low resource utilization rates and cannot effectively support business needs. Tenants spontaneously change the specifications of computing instances, resulting in waste of resources and unstable business operations.

Method used

A method for changing the specification of the calculation example is provided. Through the change device, the resource usage of the calculation example is monitored, and the specifications to be changed are automatically judged and recommended, and the specifications to be changed are notified and the specifications are changed after obtaining confirmation. The resource monitoring module, monitoring data processing module, computing instance management module and computing instance specification recommendation module of the change device are used to realize the optimal configuration of resources.

Benefits of technology

It improves the efficiency of computing instance specification changes, improves resource utilization, ensures that computing instances can meet business needs, and improves user experience and full utilization of resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113900766B_ABST
    Figure CN113900766B_ABST
Patent Text Reader

Abstract

A method, device and equipment for changing the specifications of a computing instance. The method is applied to a computing system including one or more computing nodes, on which a tenant's computing instance can be deployed. In the method, for a tenant's computing instance, a changing device can determine the specifications to be changed of the computing instance based on the resource usage parameters of the computing instance and the current specifications of the computing instance. Afterwards, the specification change of the computing instance is implemented based on the specifications to be changed of the computing instance. Tenants do not need to determine the specifications to be changed of the computing instance by themselves, which improves the efficiency of changing the specifications of the computing instance. In addition, the specifications to be changed of the computing instance determined by the changing device can better meet the resource usage of the computing instance. After the specification change of the computing instance is implemented based on the specifications to be changed of the computing instance, the resources of the computing instance can be fully utilized, the resource utilization rate can be effectively improved, and at the same time, it can be ensured that the computing instance can support the business.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, device, and apparatus for changing the specifications of a computing instance. Background Art

[0002] With the rapid development of cloud computing technology, the cloud can now provide tenants with a variety of compute instances of varying specifications. Each instance's specifications indicate the number of virtual processors, memory, and other resources it occupies. Tenants can rent compute instances of corresponding specifications based on their needs and use them to run their businesses. While using these instances, tenants can also choose to change the instance's specifications.

[0003] Currently, compute instance resources suffer from low utilization. This means that when tenants' compute instances run their businesses, their resources are not fully utilized, leaving many idle. Furthermore, there's also the issue of compute instances failing to support their businesses. This means that when tenants' compute instances run their businesses, their resources are limited, making them inefficient and unable to effectively support their current businesses.

[0004] Although tenants can spontaneously change computing instances, in actual scenarios, this rarely happens, and it cannot effectively solve the problem of low computing instance resource utilization or the inability of computing instances to support current business. Summary of the Invention

[0005] The present application provides a method, apparatus, and device for changing the specifications of a computing instance to achieve a method for changing the specifications of a computing instance that meets business needs and the resource utilization of the computing instance.

[0006] In the first aspect, the present application provides a method for changing the specifications of a computing instance, which can be executed by a changing device. The method is applied to a computing system including one or more computing nodes, and the computing instance of a tenant can be deployed on one or more computing nodes in the computing system. The method includes: the changing device obtains the resource usage parameters of the tenant's computing instance and the current specifications of the computing instance, and determines whether the specifications of the computing instance need to be changed based on the resource usage parameters of the computing instance and the current specifications of the computing instance. If the specifications of the computing instance need to be changed, the specifications of the computing instance to be changed are determined; after determining the specifications of the computing instance to be changed, the changing device changes the current specifications of the computing instance according to the specifications of the computing instance to be changed.

[0007] Through the above method, tenants do not need to determine the specifications to be changed of the computing instance by themselves, which improves the efficiency of changing the specifications of the computing instance; in addition, the specifications to be changed of the computing instance determined by the changing device can better conform to the resource usage of the computing instance. After the specifications of the computing instance are changed based on the specifications to be changed of the computing instance, the resources of the computing instance can be fully utilized, the resource utilization rate can be effectively improved, and business needs can also be met.

[0008] In one possible implementation, before determining the specifications to be changed of the computing instance based on the resource usage parameters of the computing instance and the current specifications of the computing instance, the changing device can monitor the resource usage of the computing instances deployed on one or more computing nodes, determine and obtain the resource usage parameters of the computing instances deployed on the one or more computing nodes.

[0009] By using the above method, the resource usage of the computing instances deployed on the computing nodes is monitored in advance, and the resource usage parameters of the computing instances deployed on the computing nodes can be determined in a timely manner, which facilitates the subsequent determination of the specifications of the computing instances to be changed.

[0010] In one possible implementation, before the change device changes the current specifications of the tenant's computing instance according to the specifications to be changed of the tenant's computing instance, it can first notify the tenant of the specifications to be changed of the tenant's computing instance; after the tenant reviews the specifications to be changed of the tenant's computing instance, he can determine whether the specifications of the computing instance need to be changed, and then trigger the tenant's confirmation message for the specifications to be changed of the tenant's computing instance, and the change device receives the confirmation message.

[0011] Through the above method, before the change device changes the specifications of the tenant's computing instance, it can first notify the tenant whether the specifications of the computing instance are needed, as well as the specifications of the computing instance to be changed, so that the tenant can timely understand the specification change status of the computing instance and improve the user experience.

[0012] In a possible implementation, if the changing device determines multiple specifications to be changed of the tenant's computing instance, the confirmation message may further include indication information, where the indication information indicates one or more specifications to be changed determined by the tenant from the multiple specifications to be changed.

[0013] Through the above method, the changing device can provide multiple specifications to be changed, and the tenant can select the specifications to be changed according to his own needs. Then the changing device can change the specifications according to the specifications to be changed determined by the tenant.

[0014] In one possible implementation, when the change device determines the specifications to be changed of the tenant's computing instance based on the resource usage parameters of the tenant's computing instance and the current specifications of the tenant's computing instance, it can first determine multiple alternative change specifications of the tenant's computing instance based on the resource usage parameters of the tenant's computing instance and the current specifications of the tenant's computing instance; then, according to a preset change specification selection strategy, determine the specifications to be changed of the tenant's computing instance from the multiple alternative change specifications of the tenant's computing instance.

[0015] Through the above method, the changing device can determine the to-be-changed specification of the tenant's computing instance from multiple candidate change specifications of the tenant's computing instance more conveniently based on the change specification selection strategy.

[0016] In one possible implementation, when notifying the tenant of the pending specifications of the tenant's computing instance, or before receiving a confirmation message, the change device may also display the resource usage parameters of the computing instance. For example, the resource usage parameters of the computing instance obtained by the change device indicate the resources used by the computing instance during a reference time period. For example, the change device may display the resource usage parameters of the computing instance during a target time period based on the resources used by the computing instance during the reference time period. The reference time period may include the target time period, and the target time period may not overlap with the reference time period. For example, the target time period may be a time period after the reference time period, or a time period in the future.

[0017] Through the above method, after obtaining the resource usage parameters, the change device can display the resource usage parameters of the computing instance in a certain time period in the past or in a certain time period in the future, so that the tenant can view the resource usage of the computing instance.

[0018] In one possible implementation, before displaying the resource usage parameters of the computing instance in the target time period, the changing device may receive a query instruction triggered by the tenant, wherein the query instruction is used to query the resource usage parameters of the computing instance in the target time period. After receiving the query instruction, the changing device determines the resource usage parameters of the computing instance in the target time period based on the resource usage parameters of the computing instance in the reference time period, and then may display the determined resource usage parameters of the computing instance in the target time period.

[0019] Through the above method, when triggered by the tenant, the change device can promptly display the resource usage parameters of the computing instance in the target time period to the tenant, so that the tenant can timely understand the resource usage of the computing instance and improve the user experience.

[0020] In one possible implementation, if the target time period does not overlap with the reference time period, for example, the target time period is a future time period, or for example, the target time period is a past time period but is not included in the reference time period, the changing device does not obtain the resource usage parameters of the computing instance in the target time period. In this case, the resource usage parameters of the computing instance in the reference time period do not include the resource usage parameters of the computing instance in the target time period. The changing device can predict the resource usage parameters of the computing instance in the target time period based on the resource usage parameters of the computing instance in the reference time period; and then, display the resource usage parameters of the computing instance in the target time period.

[0021] Through the above method, the changing device can predict the resource usage parameters of the computing instance in the unknown time period based on the resource parameters of the computing instance in the known time period, so that the predicted resource parameters can be more consistent with the resource usage of the computing instance.

[0022] In one possible implementation, the reference time period includes the target time period. In this case, the resource usage parameters of the computing instance in the reference time period include the resource usage parameters of the computing instance in the target time period. The changing device can determine the resource usage parameters of the computing instance in the target time period from the resource usage parameters of the computing instance in the reference time period; and display the resource usage parameters of the computing instance in the target time period.

[0023] Through the above method, the change device can quickly determine the resource usage parameters of the computing instance in the target time period from the known resource parameters of the computing instance in the reference time period, and can more quickly display the resource usage parameters of the computing instance in the target time period to the tenant.

[0024] In a possible implementation, the resource usage parameter of the tenant's computing instance includes a peak value of resource usage of the tenant's computing instance.

[0025] Through the above method, the resource usage peak of the tenant's computing instance can more intuitively display the resource usage of the computing instance.

[0026] In the second aspect, the embodiment of the present application also provides a change device, and the beneficial effects can be found in the description of the first aspect and will not be repeated here. The device has the function of implementing the behavior in the method example of the first aspect mentioned above. The function can be implemented by hardware, or it can be implemented by hardware executing the corresponding software. The hardware or software includes one or more modules corresponding to the above functions. In one possible design, the structure of the device includes a computing instance management module and a computing instance specification recommendation module. Optionally, it also includes a resource monitoring module and a monitoring data processing module. These modules or models can perform the corresponding functions in the method example of the first aspect mentioned above. Please refer to the detailed description in the method example for details, and will not be repeated here.

[0027] In a third aspect, an embodiment of the present application further provides a computing device, which includes a processor and a memory, and may also include a communication interface. Optionally, it also includes a display screen. The processor executes program instructions in the memory to execute the method provided in the above-mentioned first aspect or any possible implementation of the first aspect. The memory is coupled to the processor, which stores the program instructions and data necessary for determining the change in the specifications of the computing instance. The communication interface is used to communicate with other devices, such as receiving query instructions or resource usage parameters of the computing instance. The display screen is used to display information to the tenant when triggered by the processor, such as the resource usage parameters of the computing instance in the target time period or the specifications to be changed of the computing instance.

[0028] In a fourth aspect, the present application provides a computing device cluster comprising at least one computing device. Each computing device comprises a memory and a processor. The processor of at least one computing device is configured to access code in the memory to execute the method provided in the first aspect or any possible implementation of the first aspect.

[0029] In a fifth aspect, the present application provides a non-transitory readable storage medium. When the non-transitory readable storage medium is executed by a computing device, the computing device performs the method provided in the first aspect or any possible implementation of the first aspect. The storage medium stores a program. The storage medium includes, but is not limited to, volatile memory, such as random access memory, and non-volatile memory, such as flash memory, a hard disk drive (HDD), and a solid state drive (SSD).

[0030] In a sixth aspect, the present application provides a computer program product, comprising computer instructions. When executed by a computing device, the computing device performs the method provided in the aforementioned first aspect or any possible implementation of the first aspect. The computer program product may be a software installation package. When the method provided in the aforementioned first aspect or any possible implementation of the first aspect is required, the computer program product may be downloaded and executed on a computing device.

[0031] In the seventh aspect, the present application also provides a computer chip, which is connected to a memory and is used to read and execute a software program stored in the memory to execute the method provided in the aforementioned first aspect or any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 A schematic diagram of the system structure provided for this application;

[0033] Figure 2A schematic diagram of the structure of a changing device provided in this application;

[0034] Figure 3 A schematic diagram of an interface provided by this application and displayed to tenants;

[0035] Figure 4 Another system structure diagram provided for this application;

[0036] Figure 5 A schematic diagram of a computing instance specification change provided in this application;

[0037] Figure 6 A schematic diagram of a computing instance resource query interface provided in this application;

[0038] Figure 7 A schematic diagram of an interface displayed to tenants provided by this application;

[0039] Figure 8 A schematic diagram of an interface displayed to tenants provided by this application;

[0040] Figure 9 A schematic diagram of the structure of a computing device cluster provided in this application;

[0041] Figure 10 A schematic diagram of the structure of a system provided in this application. DETAILED DESCRIPTION

[0042] like Figure 1 , which is a schematic diagram of a system structure applicable to an embodiment of the present application, includes a change device 100 and at least one computing node 200, on which one or more computing instances 210 can be deployed. A tenant's computing instance 210 is deployed on the at least one computing node 200, and the tenant's computing instance 210 can be one or more.

[0043] The computing node 200 can provide resources such as the virtual central processing unit (VCPU), memory, network bandwidth, storage bandwidth, etc. required for the computing instance 210. Among them, the network bandwidth refers to the number of bytes allowed to be sent and / or received per second through the network interface (such as the Ethernet interface), and the storage bandwidth refers to the number of bytes allowed to be read and / or written per second through the disk interface. The embodiments of the present application do not limit the specific form of the computing node 200 and the deployment location of the computing node 200. For example, the computing node 200 can be deployed in a cloud device in a cloud data center, which can be a central cloud data center or an edge cloud data center.

[0044] Compute instance 210 can occupy resources such as virtual processors, memory, network bandwidth, and storage bandwidth on compute node 200 to build an independent business operating environment. The size (or quantity) of virtual processors, memory, network bandwidth, and storage bandwidth on compute node 200 occupied by compute instance 210 is the specification of compute instance 210.

[0045] In the embodiment of the present application, the computing instance 210 can be a virtual machine or a container. One or more computing instances 210 can be deployed on a computing node 200. The number of computing instances 210 that can be deployed on a computing node 200 is related to the number of resources on the computing node 200 and the specifications of each computing instance 210. In the embodiment of the present application, the computing instance 210 deployed on the computing node 200 can be pre-deployed or can be created in real time on the computing node 200 by triggering the creation process by the change device 100 or other devices.

[0046] The change device 100 is connected to at least one computing node 200 and can monitor the resource usage of the computing instances 210 deployed on the computing node 200 and obtain the resource usage parameters of the computing instances 210 deployed on the computing node 200. For a tenant's computing instance 210, the change device 100 can determine the specifications of the computing instance 210 to be changed based on the resource usage parameters of the computing instance 210 and the current specifications of the computing instance 210, and change the specifications of the computing instance 210 based on the specifications to be changed.

[0047] Optionally, the changing device 100 can also display the resource usage parameters of the computing instance 210 in a certain time period to the tenant (via a display).

[0048] like Figure 2 As shown, it is a structural diagram of a change device 100 provided in an embodiment of the present application. The change device 100 includes a resource monitoring module 110, a monitoring data processing module 120, a computing instance management module 130, and a computing instance specification recommendation module 140.

[0049] Resource monitoring module 110 can monitor resource usage of computing instances 210 deployed on computing node 200 and can also send monitoring data of one or more computing instances 210 to monitoring data processing module 120. Monitoring data of computing instances 210 includes resource usage parameters of computing instances 210.

[0050] In an embodiment of the present application, the resource usage parameters of the computing instance 210 can indicate the resources used by the computing instance 210 (resource usage). The resource usage parameters of the computing instance 210 can be the resource usage peak of the computing instance 210, that is, the maximum value of the resources actually used by the computing instance 210 during the operation of the computing instance 210. The resource usage parameters of the computing instance 210 include but are not limited to: the maximum usage or maximum utilization of the virtual processor of the computing instance 210 (the maximum utilization of the virtual processor is equal to the actual running time of the virtual processor per unit time), the maximum actual occupancy or maximum utilization of the memory of the computing instance 210 (the maximum utilization of the memory is equal to the ratio of the actual memory occupancy to the total memory), the maximum network bandwidth and storage bandwidth during the operation of the computing instance 210. The embodiment of the present application does not limit the specific type of the resource usage parameters of the computing instance 210. Any parameter that can indicate the resources used by the computing instance 210 can be used as the resource usage parameters of the computing instance 210.

[0051] The embodiment of the present application does not limit the manner in which the resource monitoring module 110 monitors the resource usage of the computing instance 210 deployed on the computing node 200. For example, the resource monitoring module 110 may include multiple resource monitoring sub-modules 111, each of which is deployed on at least one computing node 200. Each computing node 200 may have one or more resource monitoring sub-modules 111 deployed thereon. The resource monitoring sub-module 111 may monitor the resource usage of the computing instance 210 deployed thereon and send monitoring data of the computing instance 210 to the monitoring data processing module 120, where the monitoring data includes resource usage parameters of the computing instance 210 deployed thereon.

[0052] It should be noted that the embodiment of the present application does not limit the number of resource monitoring sub-modules 111 deployed on each computing node 200. One resource monitoring sub-module 111 can be deployed on a computing node 200, and the resource monitoring sub-module 111 can monitor the resource usage of all or part of the computing instances 210 deployed on the computing node 200. Multiple resource monitoring sub-modules 111 can also be deployed on a computing node 200, and each resource monitoring sub-module 111 can monitor the resource usage of one or more computing instances 210 deployed on the computing node 200. In this case, the resource monitoring sub-module 111 can be understood as being deployed in each computing instance monitored by the resource monitoring sub-module 111.

[0053] Monitoring data processing module 120 can obtain monitoring data of one or more computing instances 210 from resource monitoring module 110. Monitoring data processing module 120 can further process the monitoring data of one or more computing instances 210. For example, monitoring data processing module 120 can integrate and aggregate the monitoring data of one or more computing instances 210. Monitoring data processing module 120 can also save the processed monitoring data of one or more computing instances 210, that is, save the resource usage parameters of one or more computing instances 210.

[0054] The computing instance specification recommendation module 140 can obtain the resource usage parameters of the one or more computing instances 210 from the monitoring data processing module 120. For a tenant's computing instance 210, the computing instance specification recommendation module 140 can analyze the resource usage of the computing instance 210 on the computing node 200 based on the resource usage parameters of the computing instance 210, determine the specification of the computing instance 210 to be changed based on the current specification of the computing instance 210, and can also notify the tenant of the specification of the computing instance 210 to be changed.

[0055] The computing instance management module 130 is used to manage all computing instances 210 deployed on the computing node 200. The management operations of the computing instance management module 130 include but are not limited to: creating a computing instance 210, deleting a computing instance 210, stopping the operation of the computing instance 210, restarting the computing instance 210, and changing the specifications of the computing instance 210.

[0056] In the embodiment of the present application, the computing instance 210 deployed on the computing node 200 may be created by the computing instance management module 130 or by other devices. Here, the method for creating the computing instance 210 is briefly described using the computing instance management module 130 as an example. The method for creating the computing instance 210 includes the following steps:

[0057] Step 1: The computing instance management module 130 receives a first computing instance creation request triggered by a tenant. The first computing instance creation request includes specifications of the computing instance 210 .

[0058] There are many ways for the tenant to trigger the first computing instance creation request. For example, the tenant can send the first computing instance creation request to the computing instance management module 130 through a voice message, a text message, or an email.

[0059] The tenant can also select the specification of the computing instance 210 on the computing instance specification selection interface to trigger the first computing instance creation request. Figure 3As shown, this is a schematic diagram of a computing instance specification selection interface. A tenant can select the number of computing instances 210 to be created and the specifications of each computing instance 210 (such as the size of the virtual processors, memory, network bandwidth, and storage bandwidth occupied by the computing instance 210) on this computing instance specification selection interface. This computing instance specification selection interface is only an example, and the embodiments of this application do not limit the specific form of the computing instance specification selection interface. The computing instance 210 that the tenant determines to create is the tenant's computing instance.

[0060] The computing instance specification selection interface can be displayed directly to the tenant by the computing instance management module 130 through a display (the display is the display of the change device 100). The computing instance management module 130 detects the tenant's operation on the computing instance 210 specification selection interface and triggers the first computing instance creation request.

[0061] The computing instance 210 specification selection interface can also be displayed to the tenant through the client's display. When the client detects the tenant's operation on the computing instance specification selection interface, it can generate a first computing instance creation request and send the first computing instance 210 creation request to the computing instance management module 130.

[0062] Step 2: After receiving the first computing instance creation request, the computing instance management module 130 determines the computing node 200 where the computing instance 210 is located, and sends a second computing instance creation request to the computing node 200. The second computing instance creation request includes the specifications of the computing instance 210.

[0063] After receiving the second computing instance creation request, the computing node 200 creates a computing instance 210 according to the second computing instance creation request.

[0064] Step 3: After the computing node 200 successfully creates the computing instance 210 , it may first send a computing instance creation success response to the computing instance management module 130 .

[0065] Step 4: After receiving the computing instance creation success response, the computing instance management module 130 may notify the tenant that the computing instance has been created.

[0066] The embodiment of the present application does not limit the manner in which the computing instance management module 130 notifies the tenant that the computing instance has been created. For example, the tenant may be informed through voice reminders, text reminders, or picture reminders.

[0067] In the embodiment of the present application, tenants can interact with the change device 100 through some interfaces (such as the computing instance 210 specification selection interface mentioned above, and the monitoring data display interface and computing instance 210 rule recommendation interface mentioned later). These interactions between the tenant and the change device 100 can be implemented through the client.

[0068] like Figure 4 As shown, another system architecture provided by an embodiment of the present application includes a client 300 and a cloud device 400 deployed with a change device 100. The client 300 and the cloud device 400 are connected via a network. The cloud device 400 is located in a cloud environment and can be a server or virtual machine deployed in a cloud data center. Figure 4 In the embodiment, the changing device 100 is deployed on one cloud device 400 as an example. As a possible implementation manner, the changing device 100 can be deployed on multiple cloud devices 400 in a distributed manner.

[0069] The client 300 can also trigger the display screen to display information to the tenant, such as in the embodiment of the present application. Figure 3 、 Figure 6 、 Figure 7 、 Figure 8 The information included in the interface shown. The client 300 can also communicate with the cloud device 400. For example, the client 300 can obtain the specifications of the tenant's computing instance 210 to be changed from the cloud device 400, and can also notify the tenant of the specifications of the computing instance 210 to be changed through the display screen, and prompt the tenant whether to change the specifications of the computing instance 210. The client 300 then sends a confirmation message from the tenant regarding the specifications of the computing instance 210 to be changed to the cloud device 400.

[0070] After receiving the confirmation message from the client 300 , the cloud device 400 can change the specifications of the computing instance 210 .

[0071] The client 300 can also obtain the resource usage parameters of the tenant's computing instance 210 from the cloud device 400, and display the resource usage parameters of the tenant's computing instance 210 to the tenant through a display screen.

[0072] In an embodiment of the present application, the change device 100 can obtain the resource usage of the computing instance 210 of the tenant deployed on the computing node 200, determine the resource usage parameters of the computing instance 210, and can determine the specifications of the computing instance 210 to be changed based on the resource usage parameters of the computing instance 210 and the current specifications of the computing instance 210. Afterwards, the specifications of the computing instance 210 to be changed implement the specification change of the computing instance 210. Using the method provided in the embodiment of the present application, the tenant does not need to independently determine the specifications to be changed of the computing instance 210. The specifications to be changed of the computing instance 210 determined by the change device 100 can better meet the resource usage of the computing instance 210. After the specification change of the computing instance 210 is implemented based on the specifications to be changed of the computing instance 210, the resources of the computing instance 210 can be fully utilized, and the resource utilization rate can be effectively improved. At the same time, after the specifications of the computing instance 210 are changed, the computing instance 210 can still support the tenant's business.

[0073] The following combination Figure 5 The method for changing the calculation instance 210 provided in the embodiment of the present application is described. The method for changing the calculation instance 210 provided in the embodiment of the present application includes the following steps:

[0074] Step 501: The resource monitoring module 110 monitors the resource usage of the computing instances 210 deployed on the computing nodes 200 and determines the resource usage parameters of the computing instances deployed on the computing nodes 200. There is no limit to the number of computing nodes 200 that the resource monitoring module 110 can monitor and the number of computing instances 210 deployed on each computing node 200.

[0075] The embodiment of the present application does not limit the manner in which the resource monitoring module 110 monitors the resource usage of the computing instance 210 deployed on the computing node 200. For example, during the operation of the computing instance 210 on the computing node 200, the resource monitoring submodule 111 may periodically monitor the resource usage of the computing instance 210 deployed on the computing node 200. For another example, during the operation of the computing instance 210 on the computing node 200, the resource monitoring submodule 111 deployed on the computing node 200 may also monitor the resource usage of the computing instance 210 deployed on the computing node 200 at different time periods and with different monitoring frequencies.

[0076] In actual scenarios, the amount of data processed by computing instance 210 varies at different times of the day, and resource usage also varies significantly. For example, taking computing instance 210 running a voice call service as an example, during the middle of the night (9:00 PM to midnight), computing instance 210 typically processes less data and uses fewer resources. Therefore, the resource monitoring submodule 111 deployed on computing node 200 monitors the resource usage of computing instance 210 deployed on computing node 200 using a lower monitoring frequency (e.g., monitoring every hour, where the monitoring frequency corresponds to a duration of 1 hour, which is a longer duration) during this period. During the daytime, between 8:00 AM and 5:00 PM, computing instance 210 processes more data and uses more resources. Therefore, the resource monitoring submodule 111 deployed on computing node 200 can monitor the resource usage of computing instance 210 deployed on computing node 200 using a higher monitoring frequency (e.g., monitoring every 10 minutes, where the monitoring frequency corresponds to a duration of 10 minutes, which is a shorter duration) during this period.

[0077] In an embodiment of the present application, the resource usage parameters of the computing instance 210 are the resource usage parameters of the computing instance 210 in a time period. The time period can be the duration corresponding to the monitoring frequency of the resource monitoring module 110, or it can be the time period from the last time the resource monitoring sub-module 111 reported the monitoring data of the computing instance 210 where the computing instance 210 is located to the monitoring data processing module 120 to the next time the resource monitoring sub-module 111 reported the monitoring data of the computing instance 210 where the computing instance 210 is located to the monitoring data processing module 120 (if the resource monitoring sub-module 111 reports the monitoring data of the computing instance 210 to the monitoring data processing module 120 periodically, this time period is the reporting period), or it can be other preset time periods.

[0078] For example, the monitoring frequency of the resource monitoring submodule 111 is 3 seconds / time, the duration corresponding to the monitoring frequency is 3 seconds, and the reporting period is 30 seconds. The resource monitoring submodule 111 can monitor the resource usage of the computing instance 210 deployed on the computing node 200 every 3 seconds. The resource monitoring submodule 111 determines the resource usage parameters of each 3-second computing instance 210, and can also determine the resource usage parameters of the computing instance 210 30 seconds after the last monitoring resource was reported to the monitoring data processing module 120.

[0079] Step 502 : The resource monitoring module 110 sends monitoring data of one or more computing instances 210 to the monitoring data processing module 120 , wherein the monitoring data of a computing instance 210 includes resource usage parameters of the computing instance 210 deployed on the computing node 200 .

[0080] When the resource monitoring module 110 sends monitoring data of one or more computing instances 210 to the monitoring data processing module 120, the resource monitoring submodule 111 may send the monitoring data of the monitored computing instances 210 to the monitoring data processing module 120. The resource monitoring submodule 111 may periodically report the monitoring data of the monitored computing instances 210 to the monitoring data processing module 120. If the resource usage parameters of the computing instance 210 are the resource usage parameters of the computing instance 210 for the duration corresponding to the monitoring frequency, the monitoring data of the computing instance 210 may include the resource usage parameters of the computing instance 210 for multiple durations corresponding to the monitoring frequency.

[0081] Still taking the resource monitoring sub-module 111 with a monitoring frequency of 3 seconds / time, a duration corresponding to the monitoring frequency of 3 seconds, and a reporting period of 30 seconds as an example, the monitoring data of the computing instance 210 can include 10 resource usage parameters of the computing instance 210 monitored within 3 seconds.

[0082] Optionally, the monitoring data of the computing instance 210 may further include time information corresponding to the resource usage parameters of the computing instance 210 , that is, the time when the resources used by the computing instance 210 reach the resource usage parameters.

[0083] If the monitoring data of the computing instance 210 does not include the time information corresponding to the resource usage parameters of the computing instance 210, the monitoring data processing module 120 may determine the time information corresponding to the resource usage parameters of the computing instance 210 based on the time of the monitoring data of the computing instance 210 sent to the monitoring data processing module 120 by the resource monitoring submodule 111. For example, the monitoring data processing module 120 may directly use the time of the monitoring data of the computing instance 210 sent to the monitoring data processing module 120 by the resource monitoring submodule 111 as the time information corresponding to the resource usage parameters of the computing instance 210. For another example, if a certain resource usage parameter of the computing instance 210 in the monitoring data of the computing instance 210 includes multiple usage parameters, the monitoring data processing module 120 may determine the time information corresponding to the resource usage parameters of the computing instance 210 based on the time of the monitoring data of the computing instance 210 sent to the monitoring data processing module 120 by the resource monitoring submodule 111.

[0084] Exemplarily, the monitoring data processing module 120 can roll back the time when the resource monitoring sub-module 111 sends the monitoring data of the computing instance 210 to the monitoring data processing module 120, and determine multiple time values respectively, each time value corresponds to a usage parameter, and each time value is the time information of the corresponding usage parameter.

[0085] For example, the monitoring data of computing instance 210 includes 10 usage parameters of the virtual processor of computing instance 210. The time when resource monitoring submodule 111 sends the monitoring data of computing instance 210 to monitoring data processing module 120 is 8:00:00. Monitoring data processing module 120 backs off from 8:00:30 and determines a time value every 3 seconds. Therefore, ten time values can be determined, namely 8:00:00, 8:00:03, 8:00:06, 8:00:09, 8:00:12, 8:00:15, 8:00:18, 8:00:21, 8:00:24, and 8:00:27. Each time value corresponds to a usage parameter.

[0086] After receiving the monitoring data of the one or more computing instances 210 , the monitoring data processing module 120 may directly save the monitoring data of the one or more computing instances 210 and may further process the monitoring data of the one or more computing instances 210 .

[0087] The processing operations performed by the monitoring data processing module 120 on the monitoring data of one or more computing instances 210 include, but are not limited to, integration and aggregation.

[0088] The above operations are described below.

[0089] 1. Integration

[0090] Since each resource monitoring sub-module 111 can send the monitoring data of the monitored computing instance 210 to the monitoring data processing module 120 multiple times, the monitoring data processing module 120 can receive multiple monitoring data of the computing instance 210.

[0091] The monitoring data processing module 120 integrates multiple monitoring data of the computing instances 210 according to the computing nodes 200 into resource-related information of the computing instances 210 . The resource-related information of each computing instance 210 includes resource usage parameters of the computing instance 210 .

[0092] If the monitoring data of the computing instance 210 includes the time information corresponding to the resource usage parameters of the computing instance 210 or the monitoring data processing module 120 determines the time information corresponding to the resource usage parameters of the computing instance 210 based on the time of the monitoring data of the computing instance 210 sent to the monitoring data processing module 120 by the resource monitoring sub-module 111, the resource-related information of each computing instance 210 may also include the time information corresponding to the resource usage parameters of the computing instance 210.

[0093] 2. Aggregation

[0094] After integrating the multiple monitoring data of the computing instance 210 , the monitoring data processing module 120 can directly save the resource-related information of the computing instance 210 .

[0095] In order to minimize the amount of resource-related information of the computing instance 210 stored by the monitoring data processing module 120 , the monitoring data processing module 120 may aggregate resource usage parameters of the computing instance 210 .

[0096] For example, the monitoring data processing module 120 can retain the resource usage parameters of the computing instance 210 deployed on the computing node 200 in the most recent period (such as the last two weeks) in the resource-related information of the computing instance 210, and delete the resource usage parameters of the computing instance 210 deployed on the computing node 200 in the rest of the time (such as two weeks ago).

[0097] For another example, the monitoring data processing module 120 may retain the resource usage parameters of the computing instance 210 deployed on the computing node 200 in the most recent period of time in the resource-related information of the computing instance 210, and aggregate the resource usage parameters of the computing instance 210 deployed on the computing node 200 in the rest of the time.

[0098] For the resource usage parameters of the computing instances 210 deployed on the computing nodes 200 during the remaining time, the monitoring data processing module 120 can aggregate them according to a set time period, such as one day, 12 hours, or one hour. In other words, the monitoring data processing module 120 can divide the resource usage parameters of the computing instances 210 deployed on the computing nodes 200 during the remaining time by the set time period, determine the maximum value of the resource usage parameters of the computing instances 210 deployed on the computing nodes 200 during each time period, save the maximum value of the resource usage parameters of the computing instances 210 deployed on the computing nodes 200 during each time period, and delete other resource usage parameters from the resource usage parameters of the computing instances 210 deployed on the computing nodes 200 during the remaining time.

[0099] For example, when the monitoring data processing module 120 integrates the monitoring data of the computing instance 210, the resource-related information generated for the computing instance 210 is the resource usage parameters of the computing instance 210 in the past month. The time information of the resource usage parameters of the computing instance 210 is based on an interval of one hour, that is, each hour corresponds to a usage parameter of the resources of the same computing instance 210 of the computing node 200.

[0100] The monitoring data processing module 120 saves the resource usage parameters of the computing instances 210 deployed on the computing nodes 200 in the past two weeks. For the resource usage parameters of the computing instances 210 deployed on the computing nodes 200 in the remaining two weeks, the resource usage parameters of the computing instances 210 deployed on the computing nodes 200 in the remaining two weeks are divided into daily units, and the maximum value of the resource usage parameters of the computing instances 210 deployed on the computing nodes 200 in each of the remaining two weeks is determined. The maximum value of the resource usage parameters of the computing instances 210 deployed on the computing nodes 200 in each of the remaining two weeks is saved, and other resource usage parameters in the resource usage parameters of the computing instances 210 deployed on the computing nodes 200 in the remaining two weeks are deleted.

[0101] To further control the amount of resource-related information about the computing instance 210 stored by the monitoring data processing module 120, a maximum data storage capacity can be preset. For example, the monitoring data processing module 120 can be preset to store only 365 days of resource usage parameters for the computing instance 210, or the monitoring data processing module 120 can be preset to store only 730 days of resource usage parameters for the computing instance 210.

[0102] In addition to storing resource-related information of the computing instance 210 , the monitoring data processing module 120 can also display resource usage parameters of the computing instance 210 to tenants through the client.

[0103] The following describes how the monitoring data processing module 120 displays the resource usage parameters of the computing instance 210 to the tenant via the client:

[0104] Step 1: The client generates a query request under the triggering of the tenant. The query request is used to query the monitoring data processing module 120 for resource usage parameters of computing instance 1 in time period 1.

[0105] It should be noted that the query request can be used to query the resource usage parameters of one or more computing instances 210 in different time periods, and can also be used to query the resource usage parameters of one or more computing instances 210 in the same time period. In the embodiment of the present application, the query request is only used to query the resource usage parameters of a computing instance 210 (such as computing instance 1) in a time period (such as time period 1) as an example for explanation. Other situations are the same as the query request being used to query the resource usage parameters of a computing instance 210 in a time period, and will not be repeated here.

[0106] Tenants can trigger the client to generate query requests through voice messages, text messages, or emails. Tenants can also trigger query requests by performing operations on the computing instance resource query interface.

[0107] like Figure 6The figure shows a schematic diagram of a computing instance resource query interface, in which tenants can select the computing instance to be queried and the time period (such as the start time and end time) to be queried. The computing instance resource query interface is only an example, and the embodiments of this application do not limit the specific form of the computing instance resource query interface.

[0108] After detecting the tenant's operation on the computing instance resource query interface, the client 300 may generate a query request and send the query request to the monitoring data processing module 120 .

[0109] Step 2: The monitoring data processing module 120 receives the query request and retrieves the resource usage parameters of the calculation instance 1 in the time period 1.

[0110] After the monitoring data processing module 120 retrieves the resource usage parameters of the calculation instance 1 in time period 1, it can further process the resource usage parameters of the calculation instance 1 in time period 1. For example, the monitoring data processing module 120 can organize the resource usage parameters of the calculation instance 1 in time period 1 into the format of a data curve, picture or table, and then execute step 3.

[0111] Step 3: The monitoring data processing module 120 feeds back the resource usage parameters of the calculation instance 1 in the time period 1 to the client 300 .

[0112] Step 4: The client 300 displays the resource usage parameters of the calculation instance 1 in time period 1 to the tenant. In the embodiment of the present application, the client 300 displays the resource usage parameters of the calculation instance 1 in time period 1 to the tenant in any manner, and may use a table, a picture, a data curve, or other manners.

[0113] like Figure 7 As shown, this is a schematic diagram of a computing instance resource display interface. The client 300 can display the resource usage parameters of computing instance 1 in time period 1 to the tenant in the form of a data curve, so that the tenant can observe the resource usage of computing instance 210 more intuitively.

[0114] It should be noted that the time period 1 can be a time period in the past or a time period in the future. If the time period 1 is a time period in the future, the monitoring data processing module 120 can predict the resource usage parameters of the computing instance 1 in the time period 1 based on the saved resource-related information of the computing instance 1 (that is, the saved resource usage parameters of the computing instance 1), and feed back the predicted resource usage parameters of the computing instance 1 in the time period 1 to the client 300. The manner in which the monitoring data processing module 120 can predict the resource usage parameters of the computing instance 1 in the time period 1 based on the saved resource usage parameters of the computing instance 1 is not limited here. For example, the resource usage parameters of the computing instance 1 in the same time period in the past can be used to determine the resource usage parameters of the computing instance 1 in the time period 1, or the resource usage parameters of the computing instance 1 in the same time period in the past can be averaged to determine the resource usage parameters of the computing instance 1 in multiple time periods in the same time period.

[0115] If time period 1 is a past time period, but monitoring data processing module 120 does not save the resource usage parameters of computing instance 1 for time period 1, monitoring data processing module 120 can predict the resource usage parameters of computing instance 1 for time period 1 based on the saved resource usage parameters of computing instance 1. The prediction method can be found in the above content and will not be repeated here.

[0116] In the description of steps 1 to 4, the query request triggered by the tenant itself is used as an example. The query request can be triggered when the tenant wants to query the resource usage parameters of computing instance 1, or it can be triggered after the tenant receives the notification of the computing instance specification recommendation module 140 about the specifications to be changed of computing instance 1 (that is, step 505). In a possible implementation, the monitoring data processing module 120 can also actively display the resource usage parameters of computing instance 1 in time period 1 to the tenant. For example, when the computing instance specification recommendation module 140 executes step 505, that is, notifies the tenant of the specifications to be changed of the tenant's computing instance 1, the resource usage parameters of the computing instance 1 of the tenant in time period 1 can be directly displayed to the tenant, so that the tenant can more clearly determine the resource usage of the computing instance 1 in time period 1. The tenant can select the specifications to be changed of the computing instance 1 based on the resource usage parameters of the computing instance 1 in time period 1 (corresponding to the case where there are multiple specifications to be changed of the computing instance 1) and determine whether to change the specifications of the computing instance 1. In this case, time period 1 can be a pre-set time period, a time period in the past, or a time period in the future.

[0117] Step 503 : The computing instance specification recommendation module 140 obtains the resource usage parameters of the tenant's computing instance 210 from the monitoring data processing module 120 .

[0118] The computing instance specification recommendation module 140 can also obtain the current specifications of the computing instance 210. The embodiment of the present application does not limit the way in which the computing instance specification recommendation module 140 obtains the current specifications of the computing instance 210. For example, the current specifications of the computing instance 210 can be stored in the computing instance management module 130, and the computing instance specification recommendation module 140 can obtain the current specifications of the computing instance 210 from the computing instance management module 130.

[0119] It should be noted that the manner in which the computing instance specification recommendation module 140 obtains the resource usage parameters of the computing instance 210 from the monitoring data processing module 120 is not limited in this embodiment of the present application. For example, the computing instance specification recommendation module 140 may proactively request the resource usage parameters of the computing instance 210 from the monitoring data processing module 120, and then the monitoring data processing module 120 may send the resource usage parameters of the computing instance 210 to the computing instance specification recommendation module 140. For another example, the monitoring data processing module 120 may proactively send the resource usage parameters of the computing instance 210 to the computing instance specification recommendation module 140.

[0120] When the computing instance specification recommendation module 140 obtains the resource usage parameters of the computing instance 210 from the monitoring data processing module 120, it can obtain all the resource usage parameters of the computing instance 210 saved in the monitoring data processing module 120, or it can obtain part of the resource usage parameters of the computing instance 210 saved in the monitoring data processing module 120 from the monitoring data processing module 120.

[0121] For example, the computing instance specification recommendation module 140 may obtain the resource usage parameters of the computing instance 210 for a fixed time period (such as 3 months, 6 months, or 12 months) stored in the monitoring data processing module 120 from the monitoring data processing module 120 .

[0122] Step 504 : The computing instance specification recommendation module 140 determines the specification of the computing instance 210 to be changed based on the resource usage parameters of the computing instance 210 and the current specification of the computing instance 210 .

[0123] The computing instance specification recommendation module 140 determines the maximum value of the resource usage parameter in the resource-related information of the computing instance 210 based on the resource-related information of the computing instance 210 .

[0124] The computing instance specification recommendation module 140 may first determine whether the specification of the computing instance 210 needs to be changed based on the resource usage parameters in the resource-related information of the computing instance 210. The embodiment of the present application does not limit the specific manner in which the computing instance specification recommendation module 140 determines whether the specification of the computing instance 210 needs to be changed.

[0125] For example, a first threshold and a second threshold may be set for a certain type of resource. If the computing instance specification recommendation module 140 determines that the maximum value of the resource usage parameter in the resource usage parameters of the computing instance 210 is greater than the first threshold but less than the second threshold, it indicates that the resource in the computing instance 210 is fully utilized and there are few idle resources. Then, it is determined that there is no need to change the specification of the computing instance 210. If the computing instance specification recommendation module 140 determines that the maximum value of the resource usage parameter in the resource usage parameters of the computing instance 210 is less than the first threshold, it indicates that the resource in the computing instance 210 is not fully utilized and there are idle resources. Then, it is determined that there is a need to change the specification of the computing instance 210. If the computing instance specification recommendation module 140 determines that the maximum value of the resource usage parameter in the resource usage parameters of the computing instance 210 is greater than the second threshold, it indicates that the resource in the computing instance 210 is limited, there is a resource shortage, and it may not be able to well support the currently running business. Then, it is determined that there is a need to change the specification of the computing instance 210.

[0126] Because the specifications of computing instance 210 involve multiple types of resources, computing instance specification recommendation module 140 may determine that the specifications of computing instance 210 need to be changed if it is determined that the maximum value of any resource usage parameter among the resource usage parameters of computing instance 210 is less than the corresponding first threshold or greater than the corresponding second threshold. Computing instance specification recommendation module 140 may also determine that the specifications of computing instance 210 do not need to be changed if the maximum value of each resource usage parameter among the resource usage parameters of computing instance 210 is greater than the corresponding first threshold and less than the second threshold.

[0127] After determining that the specification of the computing instance 210 needs to be changed, the computing instance specification recommendation module 140 can determine the specification of the computing instance 210 to be changed based on the resource usage parameters of the computing instance 210 and the current specification of the computing instance 210 .

[0128] When the computing instance specification recommendation module 140 determines the specification to be changed of the computing instance 210 based on the resource usage parameters of the computing instance 210, it can only change the size of one resource in the current specification of the computing instance 210 to further determine the specification to be changed of the computing instance 210. The computing instance specification recommendation module 140 can also change the size of multiple resources in the current specification of the computing instance 210 to determine the specification to be changed of the computing instance 210.

[0129] Take the example where the computing instance specification recommendation module 140 only changes the memory in the current specification of the computing instance 210 as an example for explanation:

[0130] The computing instance specification recommendation module 140 may store a specification set of computing instances 210, which includes the specifications of all computing instances 210 supported by the computing node 200. The computing instance specification recommendation module 140 selects, from the specification set of computing instances 210, a specification of computing instance 210 whose resource sizes, except for memory, are the same as the current specifications of the computing instance 210. In other words, it selects one or more computing instance 210 specifications with the same number of virtual processors, network bandwidth, and storage bandwidth.

[0131] If the maximum value of the memory usage parameter is less than the corresponding first threshold, the computing instance specification recommendation module 140 selects the specification of the computing instance 210 whose memory is greater than the maximum value of the memory usage parameter of the computing instance 210 and less than the current specification memory of the computing instance 210 from the specifications of the one or more computing instances 210, and uses the specification of the selected computing instance 210 as the specification to be changed of the computing instance 210.

[0132] It should be noted that when the computing instance specification recommendation module 140 selects the specification of the computing instance 210 whose memory is greater than the maximum value of the memory usage parameter of the computing instance 210 and less than the current specification memory of the computing instance 210, it can select multiple specifications of the computing instance 210 as multiple alternative change specifications, and then determine the specifications to be changed of the computing instance 210 from the multiple alternative change specifications.

[0133] When determining multiple alternative change specifications, the computing instance specification recommendation module 140 can randomly select a specific number of specifications of computing instances 210 from the specifications of computing instances 210 whose memory is greater than the maximum value of the memory usage parameter of the computing instance 210 and less than the current memory specification of the computing instance 210, or select all specifications of computing instances 210 whose memory is greater than the maximum value of the memory usage parameter of the computing instance 210 and less than the current memory specification of the computing instance 210 as alternative change specifications. The embodiments of the present application do not limit the method for selecting alternative change specifications.

[0134] After determining multiple candidate change specifications, the computing instance specification recommendation module 140 can determine the specification to be changed for the computing instance 210 from the multiple candidate change specifications based on a preset change specification selection policy. The change specification selection policy can be pre-set by the tenant for the computing instance 210 or a default policy.

[0135] The embodiments of the present application do not limit the specific content of the change specification selection strategy. For example, the change specification selection strategy may indicate the selection of the alternative change specification with the lowest cost as the specification to be changed for the computing instance 210, or may indicate the selection of the alternative change specification with the smallest number of resources as the specification to be changed for the computing instance 210, or may indicate the selection of the alternative change specification with the first N positions after the resource quantities are sorted from small to large as the specification to be changed for the computing instance 210, where N is a positive integer.

[0136] If the maximum value of the memory usage parameter is greater than the corresponding second threshold, the computing instance specification recommendation module 140 selects the specifications of the computing instance 210 whose memory is greater than the maximum value of the memory usage parameter of the computing instance 210 and greater than the current specification memory of the computing instance 210 from the specifications of the one or more computing instances 210, and uses the specifications of the selected computing instance 210 as the specifications to be changed of the computing instance 210.

[0137] It should be noted that when the computing instance specification recommendation module 140 selects the specification of the computing instance 210 whose memory is greater than the maximum value of the memory usage parameter of the computing instance 210 and greater than the current specification memory of the computing instance 210, it can also select multiple specifications as multiple alternative change specifications, and then determine the specification to be changed of the computing instance 210 from the multiple alternative change specifications.

[0138] The computing instance specification recommendation module 140 determines multiple alternative change specifications, and the manner in which the specifications of the computing instance 210 to be changed are determined from the multiple alternative change specifications is similar to the manner in which the computing instance specification recommendation module 140 selects multiple specifications of the computing instance 210 as multiple alternative change specifications when the specifications of the computing instance 210 whose memory is greater than the maximum value of the memory usage parameter of the computing instance 210 and less than the current specification memory of the computing instance 210 are determined from the multiple alternative change specifications. For details, please refer to the aforementioned content and will not be repeated here.

[0139] The computing instance specification recommendation module 140 can change the size of multiple resources in the current specification of the computing instance 210. Determining the specification of the computing instance 210 to be changed is similar to changing the size of a resource in the current specification of the computing instance 210. The only difference lies in the type of resource to be changed. For details, please refer to the above content and will not be repeated here.

[0140] The embodiment of the present application does not limit the number of specifications to be changed for the computing instance 210 to be one or more. After determining the specifications to be changed for the computing instance 210 , the computing instance specification recommendation module 140 may execute step 504 .

[0141] Step 505: The computing instance specification recommendation module 140 notifies the tenant of the specification of the computing instance 210 to be changed.

[0142] The embodiment of the present application does not limit the manner in which the computing instance specification recommendation module 140 notifies the tenant of the specification to be changed of the computing instance 210 .

[0143] For example, the compute instance specification recommendation module 140 can notify the tenant of the pending specification changes for the compute instance 210 via a machine message. Machine messages include, but are not limited to, text messages, WeChat messages, multimedia messages, and emails. The machine message contains the pending specification changes for the compute instance 210, or it can be a link. After clicking the link, the tenant is redirected to a page displaying the pending specification changes for the compute instance 210, making it easier for the tenant to review the changes.

[0144] For another example, the computing instance specification recommendation module 140 can trigger intelligent customer service or manual customer service to notify the tenant by phone that the computing instance 210 can be changed in specifications, as well as the specifications of the computing instance 210 to be changed.

[0145] Optionally, when notifying the tenant of the specifications of the computing instance 210 to be changed, the computing instance specification recommendation module 140 can also actively display the resource usage parameters of the computing instance 210 in time period 1 to the tenant through the monitoring data processing module 120. The manner in which the monitoring data processing module 120 displays the resource usage parameters of the computing instance 210 in time period 1 to the tenant can be found in the above description.

[0146] For another example, the computing instance specification recommendation module 140 can trigger the client to display a computing instance change interface to the tenant, in which the tenant can be prompted that the specifications of the computing instance 210 can be changed, and the current specifications of the computing instance 210 and the specifications to be changed of the computing instance 210 are displayed.

[0147] like Figure 8 As shown, it is a schematic diagram of a computing instance change interface. In the computing instance change interface, a prompt message that the specifications of the computing instance 210 can be changed, as well as the current specifications of the computing instance 210 and the specifications of the computing instance 210 to be changed are displayed.

[0148] exist Figure 8 In the interface shown, resource usage parameters of the computing instance 210 in a certain time period may also be displayed.

[0149] Optionally, when notifying the tenant of the specifications of the computing instance 210 to be changed, the computing instance specification recommendation module 140 may also simultaneously inform the tenant of the cost reduction (corresponding to the specifications to be changed determined by the computing instance specification recommendation module 140 when the maximum value of the resource usage parameter of the computing instance 210 is less than the first threshold) or the cost increase (corresponding to the specifications to be changed determined by the computing instance specification recommendation module 140 when the maximum value of the resource usage parameter of the computing instance 210 is greater than the second threshold) after the specifications of the computing instance 210 are changed according to the specifications to be changed. When there are multiple changed specifications of computing instances 210, the tenant can be informed of the cost reduction or cost increase of the specifications to be changed for each computing instance 210.

[0150] The embodiments of the present application do not limit the method of calculating the cost. For example, the cost reduction or cost increase can be calculated in years or months.

[0151] Step 505 : The computing instance management module 130 receives the tenant's confirmation message regarding the specifications of the computing instance 210 to be changed, and changes the specifications of the computing instance 210 according to the specifications of the computing instance 210 to be changed.

[0152] The embodiment of the present application does not limit the manner in which the computing instance management module 130 receives the confirmation message. For example, if the computing instance specification recommendation module 140 notifies the tenant of the specifications of the computing instance 210 to be changed via a machine message, the tenant may also send the confirmation message via a machine message, where the confirmation message indicates agreement to change the specifications of the computing instance 210. Optionally, if there are multiple specifications of the computing instance 210 to be changed, the confirmation message may further include an indication message, where the indication message indicates the specification of the computing instance 210 to be changed determined by the tenant from the multiple specifications of the computing instance 210 to be changed. The specification of the computing instance 210 to be changed determined by the tenant may be one or more. The embodiments of the present application do not limit the manner in which the indication message indicates to the tenant the specification to be changed of the computing instance 210 determined from the specifications to be changed of multiple computing instances 210. For example, the indication message may be an identifier of the specification to be changed of the computing instance 210. For example, the identifier may be set by the computing instance specification recommendation module 140 for the specification to be changed of the computing instance 210. The computing instance management module 130 can determine the specification to be changed of the computing instance 210 based on the identifier. It may also be the specific content of the specification to be changed of the computing instance 210, such as the size of the resources required by the specification to be changed.

[0153] If the computing instance specification recommendation module 140 displays the computing instance 210 change interface to the tenant through the client 300, the tenant can trigger the client 300 to generate a confirmation message through operations on the computing instance 210 change interface, such as selecting the specifications to be changed of the computing instance 210 and agreeing to the change. The confirmation message indicates that the tenant agrees to change the specifications of the computing instance 210. The confirmation message may also include an indication message. The description of the indication message can be found in the aforementioned content and will not be repeated here.

[0154] In addition, when the tenant agrees to the change by selecting in the computing instance 210 change interface, the client 300 can also prompt the tenant to pay attention to the changes in the specifications of the computing instance 210, such as the need for the tenant to restart the computing instance 210, and the possibility that the efficiency of the computing instance 210 may deteriorate when the amount of data surges.

[0155] After receiving the confirmation message, the computing instance management module 130 may reselect a computing node 200 that can support the specifications of the computing instance 210 to be changed, and create a computing instance 210 on the computing node 200 that meets the specifications of the computing instance 210 to be changed determined by the tenant. If the tenant determines that there are multiple specifications of the computing instance 210 to be changed, the computing instance management module 130 may select the specifications of one of the computing instances 210 to be changed and create a computing instance 210 that meets the specifications of the computing instance 210 to be changed. The manner in which the computing instance management module 130 can select the specifications of one of the computing instances 210 to be changed is not limited here.

[0156] After creating a computing instance 210 that meets the specifications to be changed of the computing instance 210, you can stop the running status of the previous computing instance 210, and then start the computing instance 210 that meets the specifications to be changed of the computing instance 210, and run the business on the computing instance 210.

[0157] Based on the same inventive concept, the embodiment of the present application provides a computer cluster, such as Figure 9 As shown, a computer cluster provided by an embodiment of the present application includes at least one computing device 10 , and a communication path is established between each computing device 10 through a communication network.

[0158] Each computing device 10 includes a bus 101, a processor 102, a communication interface 103, and a memory 104. Optionally, the computing device 10 may further include a display screen 105. The processor 102, the memory 104, and the communication interface 103 communicate with each other via the bus 101.

[0159] The processor 102 may be composed of one or more general-purpose processors, such as a central processing unit (CPU), or a combination of a CPU and a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.

[0160] Memory 104 may include volatile memory, such as random access memory (RAM). Memory 104 may also include non-volatile memory (NVM), such as read-only memory (ROM), flash memory, a hard disk drive (HDD), or a solid-state drive (SSD). Memory 104 may also include a combination of the above.

[0161] The memory 104 stores executable code, and the processor 102 can read the executable code in the memory 104 to implement functions, and can also communicate with other computing devices through the communication interface 103. The processor 102 can also trigger the display screen 105 to display information to the tenant, as in the embodiment of the present application. Figure 3 、 Figure 6 、 Figure 7 、 Figure 8 The information included in the interface shown.

[0162] In an embodiment of the present application, the processor 102 can implement the functions of one or more modules of the change device 100 (such as one or more modules of the resource monitoring module 110, the monitoring data processing module 120, the computing instance management module 130, and the computing instance specification recommendation module 140). In this case, the memory 104 stores one or more modules of the resource monitoring module 110, the monitoring data processing module 120, the computing instance management module 130, and the computing instance specification recommendation module 140 in the change device 100.

[0163] In an embodiment of the present application, the processors 101 in multiple computing devices 10 can work in coordination to execute the cloud system resource set recommendation method provided in an embodiment of the present application.

[0164] The following figure Figure 10 right Figure 4 The structure of the client and cloud devices in the system architecture shown in the figure is described in detail. Figure 10 , the client 300 includes a bus 301, a processor 302, a communication interface 303, and a memory 304. Optionally, the client 300 also includes a display screen 305. The processor 302, the memory 304, and the communication interface 303 communicate through the bus 301. Among them, the types of the processor 302 and the memory 304 can refer to the relevant descriptions of the processor 103 and the memory 104, which will not be repeated here. The memory 304 stores executable code, and the processor 302 can read the executable code in the memory 304 to implement functions. The processor 302 can also trigger the display screen 305 to display information to the tenant, such as in the embodiment of the present application. Figure 3 、 6 The information included in the interface shown in Figures 7 and 8. The processor 302 can also communicate with the cloud device 400 through the communication interface 303.

[0165] like Figure 10 As shown, the cloud device 400 includes a bus 401, a processor 402, a communication interface 403 and a memory 404. The processor 402, the memory 404 and the communication interface 403 communicate with each other via the bus 401. The types of the processor 402 and the memory 404 can refer to the relevant descriptions of the processor 102 and the memory 104, which will not be repeated here. The memory 404 stores executable code, and the processor 402 can read the executable code in the memory 404 to implement functions, and can also communicate with the client 300 through the communication interface 403. In the embodiment of the present application, reference is made to Figure 10 The functions of the change device 400 can be implemented by the cooperation of the processors 402 of multiple cloud devices 400. In this case, the memory 404 stores one or more modules of the resource monitoring module 110, monitoring data processing module 120, computing instance management module 140, and computing instance specification recommendation module 140 of the change device 400.

[0166] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0167] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0168] The above description is only a specific embodiment of the present invention. Those skilled in the art may conceive of variations or replacements based on the specific embodiments provided by the present invention, which should all fall within the scope of protection of the present invention.

Claims

1. A method for changing the specification of a computing instance, characterized in that: The method is applied to a computing system, the computing system including at least one computing node, on which a computing instance of a tenant is deployed, and the method includes: Obtain resource usage parameters of the tenant's computing instance and current specifications of the tenant's computing instance, where the current specifications of the computing instance include specifications of at least one resource, and the at least one resource includes a target resource; According to the resource usage parameters of the computing instance of the tenant and the current specifications of the computing instance of the tenant, selecting a specification to be changed of the target resource whose specification is greater than the maximum value of the resource usage parameters of the computing instance and smaller than the specification of the target resource in the current specifications of the computing instance, wherein the specification to be changed includes changing the specification of at least one resource included in the current specifications of the computing instance; The tenant is notified of the specification to be changed of the computing instance.

2. The method according to claim 1, wherein The method further comprises: According to the resource usage parameters of the tenant's computing instance and the current specifications of the tenant's computing instance, the specification of the target resource is selected to be greater than the maximum value of the tenant's resource usage parameters and greater than the target resource specification in the current specifications of the computing instance.

3. The method according to claim 1 or 2, wherein: The target resources include memory resources and / or central processing unit (CPU) resources.

4. The method according to claim 1 or 2, wherein: The specification to be changed includes changing only the specification of a resource included in the current specification of the computing instance.

5. The method according to claim 1 or 2, wherein: The method further comprises: receiving a query request from the tenant, the query request being used to query the resource usage parameters within a specified time; Feedback the resource usage parameters within the specified time.

6. The method according to claim 5, wherein The displaying of the resource usage parameters within the specified time to the tenant includes: The resource usage parameters within the specified time period are displayed to the tenant in the form of a data curve.

7. The method according to claim 1 or 2, wherein: The changing the current specifications of the tenant's computing instance according to the specifications to be changed of the tenant's computing instance includes: Stop the computing instance and start a computing instance that meets the specifications to be changed.

8. A changing device, characterized in that: The changing device is used to change the specifications of a computing instance in a computing system, wherein the computing system includes at least one computing node, and a computing instance of a tenant is deployed on the at least one computing node. The changing device includes: a computing instance specification recommendation module, configured to obtain resource usage parameters of the computing instance of the tenant and the current specifications of the computing instance of the tenant, the current specifications of the computing instance including the specifications of at least one resource, the at least one resource including a target resource; and, based on the resource usage parameters of the computing instance of the tenant and the current specifications of the computing instance of the tenant, select a specification to be changed of the target resource, the specification of which is greater than the maximum value of the resource usage parameters of the computing instance and smaller than the specification of the target resource in the current specifications of the computing instance, the specification to be changed including changing the specification of at least one resource included in the current specifications of the computing instance; The computing instance specification recommendation module is used to notify the tenant of the specification of the computing instance to be changed.

9. The device according to claim 8, wherein The computing instance specification recommendation module is also used to select the target resource specification to be changed, which is greater than the maximum value of the tenant's resource usage parameters and greater than the target resource specification in the current specification of the computing instance, based on the resource usage parameters of the tenant's computing instance and the current specification of the tenant's computing instance.

10. The device according to claim 8 or 9, characterized in that The target resources include memory resources and / or central processing unit (CPU) resources.

11. The device according to claim 8 or 9, characterized in that The specification to be changed includes changing only the specification of a resource included in the current specification of the computing instance.

12. The device according to claim 8 or 9, characterized in that Resource Monitoring Module, used for receiving a query request from the tenant, the query request being used to query the resource usage parameters within a specified time; The monitoring data processing module is further configured to feed back the resource usage parameters within the specified time.

13. The device according to claim 12, wherein The computing instance specification recommendation module is further configured to display the resource usage parameters within the specified time to the tenant in the form of a data curve.

14. The device according to claim 8 or 9, characterized in that The computing instance specification management module is further configured to stop the computing instance and start a computing instance that meets the specifications to be changed.

15. A computing device, characterized in that The computing device includes a processor and a memory; the memory is used to store computer program instructions; The processor calls the computer program instructions stored in the memory to execute the method according to any one of claims 1 to 7.

16. A computing device cluster, characterized in that: The computing device cluster includes at least one computing device, each computing device includes a processor and a memory; the memory in the at least one computing device is used to store computer program instructions; The processor in the at least one computing device calls the computer program instructions stored in the memory to execute the method according to any one of claims 1 to 7.

17. A non-transitory readable storage medium, characterized in that When the non-transitory readable storage medium is executed by a computing device, the computing device executes the method according to any one of claims 1 to 7.

18. A computer program product comprising instructions, characterized in that When the computer program product is run on a computing device, the computer is caused to perform the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Virtual machine specification adjustment method and virtual machine specification adjustment device

    CN103885812A

  • Multi-tenant performance isolation framework based on virtualization technology

    CN104142864A

  • Method and apparatus for automatically and flexibly expanding and contracting virtual resources

    CN107656807A