Method, apparatus and computer-readable storage medium for managing cloud disk capacity

By calculating the change rate of cloud disk usage and dynamically adjusting capacity, the problem of untimely cloud disk capacity management is solved, flexible and accurate resource management is achieved, resource waste is avoided, and computing efficiency is improved.

CN116301616BActive Publication Date: 2025-07-04SHENZHEN HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202310217447.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-27
Publication Date
2025-07-04
Estimated Expiration
2043-02-27

AI Technical Summary

Technical Problem

In the prior art, cloud disk capacity management is not timely, resulting in waste of resources and inefficient computing.

Method used

By obtaining the distributed capacity and current usage rate of cloud disks, and calculating the usage change rate in combination with multiple historical usage rates, dynamically adjusting the cloud disk capacity to achieve on-demand distribution.

Benefits of technology

It realizes flexible and accurate management of cloud disk capacity, reduces resource waste, and improves computing efficiency and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116301616B_ABST
    Figure CN116301616B_ABST
Patent Text Reader

Abstract

The present application discloses a method, apparatus and computer-readable storage medium for managing the capacity of a cloud disk, relating to the technical field of cloud computing. The method includes: by obtaining the allocated capacity of the cloud disk and the current utilization rate of the allocated capacity, when the current utilization rate is greater than or equal to the first usage threshold, determining the usage change rate according to the current utilization rate of the allocated capacity and multiple historical utilization rates, and determining the first additional capacity of the cloud disk based on the usage change rate, and completing the management and adjustment of the allocated capacity of the cloud disk according to the first additional capacity. Through this method, the capacity of the cloud disk can be adjusted and managed in a timely manner, realizing the on-demand allocation of the cloud disk capacity, having flexibility and accuracy, and being able to avoid resource waste.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of cloud computing technology, and particularly to a method, apparatus, and computer-readable storage medium for managing the capacity of cloud disks. Background Art

[0002] With the development of cloud computing technology, cloud computing technology can process more and more data. A large amount of data required during computing by cloud computing technology can be stored in the cloud disks of a cloud database. The capacity of the cloud disks of the cloud database needs to change with the change in the amount of data. Therefore, it is necessary to manage the capacity of cloud disks so that the data stored in the cloud disks can meet the computing requirements of cloud computing technology. Summary of the Invention

[0003] This application provides a method, apparatus, and computer-readable storage medium for managing the capacity of cloud disks. This method can solve the problems of untimely management of cloud disk capacity and waste of resources caused by issuing a large amount of cloud disk capacity at one time. The technical solution is as follows:

[0004] In a first aspect, a method for managing the capacity of a cloud disk is provided. This method is used for a device that provides cloud computing services. The method includes: obtaining the issued capacity of the cloud disk and the current usage rate of the issued capacity; when the current usage rate is greater than or equal to a first usage threshold, determining a usage change rate according to the current usage rate of the issued capacity and multiple historical usage rates; determining a first additional capacity of the cloud disk according to the usage change rate; and adjusting the issued capacity of the cloud disk according to the first additional capacity.

[0005] By determining the first additional capacity of the cloud disk according to the usage change rate, this method can timely adjust and manage the capacity of the cloud disk, realize the on-demand issuance of cloud disk capacity, has flexibility and accuracy, and can avoid waste of resources.

[0006] In a possible implementation manner, the multiple historical usage rates include a first historical usage rate and a second historical usage rate. Determining the usage change rate according to the current usage rate of the issued capacity and the multiple historical usage rates includes: determining a first average value of the first historical usage rate and the current usage rate, where the first historical usage rate is the usage rate of the issued capacity at a first moment, and the first moment is before the current moment; and determining the ratio of the first average value to the second historical usage rate as the usage change rate, where the second historical usage rate is the usage rate of the issued capacity at a second moment, and the time interval between the second moment and the current moment is the same as the time interval between the second moment and the first moment.

[0007] By calculating the ratio of the first mean value to the second historical utilization rate, the utilization change rate of the allocated capacity of the cloud disk between the first moment and the current moment can be accurately determined, so that the first additional capacity can be accurately determined according to the determined utilization change rate.

[0008] In a possible implementation, the multiple historical utilization rates include a third historical utilization rate, a fourth historical utilization rate, and a fifth historical utilization rate. Determining the utilization change rate according to the current utilization rate of the allocated capacity and the multiple historical utilization rates includes: determining a second mean value of the current utilization rate and the third historical utilization rate, where the third historical utilization rate is the utilization rate of the allocated capacity at the third moment, and the third moment is before the current moment; determining a third mean value of the fourth historical utilization rate and the fifth historical utilization rate, where the fourth historical utilization rate is the utilization rate of the allocated capacity at the fourth moment, and the fifth historical utilization rate is the utilization rate of the allocated capacity at the fifth moment, the fifth moment is before the third moment and the fourth moment, and the time interval between the fourth moment and the fifth moment is the same as the time interval between the third moment and the current moment; determining the ratio of the second mean value to the third mean value as the utilization change rate.

[0009] By calculating the ratio of the second mean value to the third mean value, the utilization change rate of the allocated capacity of the cloud disk between the fifth moment and the current moment can be accurately determined, so that the first additional capacity can be accurately determined according to the determined utilization change rate.

[0010] In a possible implementation, determining the first additional capacity of the cloud disk according to the utilization change rate includes: multiplying the allocated capacity by the utilization change rate, and determining the difference between the obtained product and the allocated capacity as the first additional capacity. Determining the first additional capacity according to the utilization change rate and the allocated capacity is more flexible and can make the determined first additional capacity more accurate.

[0011] In a possible implementation, after obtaining the allocated capacity of the cloud disk and the current utilization rate of the allocated capacity, it further includes: in the case where the current utilization rate is greater than or equal to the second utilization threshold, determining a second additional capacity according to the allocated capacity and the allocation reference value, where the second utilization threshold is greater than the first utilization threshold; adjusting the allocated capacity of the cloud disk according to the second additional capacity. Determining the second additional capacity according to the allocated capacity and the allocation reference value and timely adjusting the allocated capacity of the cloud disk can ensure the timeliness of adjusting the allocated capacity.

[0012] In a possible implementation, before obtaining the allocated capacity of the cloud disk and the current utilization rate of the allocated capacity, the method further includes: obtaining the target capacity and the initial capacity threshold of the cloud disk required for storing target data; based on the target capacity being greater than or equal to the initial capacity threshold, determining the initial allocated capacity of the cloud disk according to the target capacity; based on the target capacity being less than the initial capacity threshold, determining the initial capacity threshold as the initial allocated capacity; and determining the allocated capacity of the cloud disk according to the initial allocated capacity. By jointly determining the initial allocated capacity based on the initial capacity threshold and the target capacity, it is possible to ensure that the size of the initial allocated capacity is appropriate and avoid resource waste.

[0013] In a second aspect, an embodiment of the present application provides a management device for the capacity of a cloud disk. The device is used for a device that provides cloud computing services. The device includes: an obtaining module, configured to obtain the allocated capacity of the cloud disk and the current utilization rate of the allocated capacity; a determining module, configured to determine a usage change rate according to the current utilization rate of the allocated capacity and multiple historical utilization rates when the current utilization rate is greater than or equal to a first usage threshold; the determining module is further configured to determine a first additional capacity of the cloud disk according to the usage change rate; and an adjusting module, configured to adjust the allocated capacity of the cloud disk according to the first additional capacity.

[0014] In a possible implementation, the multiple historical utilization rates include a first historical utilization rate and a second historical utilization rate. The determining module is configured to determine a first average value of the first historical utilization rate and the current utilization rate, where the first historical utilization rate is the utilization rate of the allocated capacity at a first moment, and the first moment is before the current moment; and determining the ratio of the first average value to the second historical utilization rate as the usage change rate, where the second historical utilization rate is the utilization rate of the allocated capacity at a second moment, and the time interval between the second moment and the current moment is the same as the time interval between the second moment and the first moment.

[0015] In a possible implementation, the multiple historical utilization rates include a third historical utilization rate, a fourth historical utilization rate, and a fifth historical utilization rate. The determining module is configured to determine a second average value of the current utilization rate and the third historical utilization rate, where the third historical utilization rate is the utilization rate of the allocated capacity at a third moment, and the third moment is before the current moment; determining a third average value of the fourth historical utilization rate and the fifth historical utilization rate, where the fourth historical utilization rate is the utilization rate of the allocated capacity at a fourth moment, and the fifth historical utilization rate is the utilization rate of the allocated capacity at a fifth moment, and the fifth moment is before the third moment and the fourth moment, and the time interval between the fourth moment and the fifth moment is the same as the time interval between the third moment and the current moment; and determining the ratio of the second average value to the third average value as the usage change rate.

[0016] In a possible implementation, the determining module is configured to multiply the allocated capacity by the usage change rate, and determine the difference between the obtained product and the allocated capacity as the first additional capacity.

[0017] In a possible implementation, the obtaining module is further configured to, when the current usage rate is greater than or equal to a second usage threshold, determine a second newly added capacity according to the already allocated capacity and the allocation reference value, where the second usage threshold is greater than the first usage threshold; and adjust the already allocated capacity of the cloud disk according to the second newly added capacity.

[0018] In a possible implementation, the obtaining module is further configured to obtain the target capacity and the initial capacity threshold of the cloud disk required for storing target data; based on the target capacity being greater than or equal to the initial capacity threshold, determine the initial allocated capacity of the cloud disk according to the target capacity; based on the target capacity being less than the initial capacity threshold, determine the initial capacity threshold as the initial allocated capacity; and determine the already allocated capacity of the cloud disk according to the initial allocated capacity.

[0019] In a third aspect, an embodiment of the present application provides a computing device cluster, including at least one computing device, and each computing device includes a processor, and the processor is coupled to a memory; the processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the cloud disk capacity management method provided in the foregoing first aspect or any one of the possible implementation manners of the first aspect.

[0020] In a fourth aspect, an embodiment of the present application provides a computer program or product including instructions, when the instructions are run on a computing device cluster, enabling the computing device cluster to execute the cloud disk capacity management method provided in the foregoing first aspect or any one of the possible implementation manners of the first aspect. The computer program or product may be a software installation package, and in the case where it is necessary to implement the functions of the foregoing computing device cluster, the computer program or product may be downloaded and executed on the computing device cluster.

[0021] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, including computer program instructions, when the computer program instructions are executed by a computing device cluster, the computing device cluster executes the cloud disk capacity management method provided in the foregoing first aspect or any one of the possible implementation manners of the first aspect. The storage medium includes, but is not limited to, volatile memories such as random access memories, and non-volatile memories such as flash memories, hard disk drives (HDDs), and solid state drives (SSDs).

[0022] It should be understood that the beneficial effects obtained by the technical solutions of the second to fifth aspects of the present application and the corresponding possible implementation manners may refer to the technical effects of the first aspect and its corresponding possible implementation manners described above, and will not be elaborated here. Description of the Drawings

[0023] Figure 1 It is a schematic diagram of an implementation scenario of a method for managing cloud disk capacity provided by an embodiment of the present application;

[0024] Figure 2 It is a flowchart of a method for managing cloud disk capacity provided by an embodiment of the present application;

[0025] Figure 3 It is a schematic diagram of the classification of the allocated capacity provided by an embodiment of the present application;

[0026] Figure 4 It is a schematic diagram of an exemplary implementation scenario provided by an embodiment of the present application;

[0027] Figure 5 It is a schematic diagram of the structure of a device for managing cloud disk capacity provided by an embodiment of the present application;

[0028] Figure 6 It is a schematic diagram of the hardware structure of a computing device provided by an embodiment of the present application;

[0029] Figure 7 It is a schematic diagram of the structure of a computing device cluster provided by an embodiment of the present application;

[0030] Figure 8 It is a schematic diagram of the connection mode of a computing device cluster provided by an embodiment of the present application. Detailed implementation manners

[0031] The terms used in the implementation manners part of the present application are only used to explain the specific embodiments of the present application, rather than intended to limit the present application. To make the purpose, technical solutions and advantages of the present application clearer, the following will further describe the implementation manners of the present application in detail with reference to the accompanying drawings.

[0032] With the development of cloud computing technology, the amount of data required for cloud computing is increasing. In each calculation process, the amount of data that the computing device providing cloud computing services can process is also increasing. A large amount of data can be stored in the cloud disk of the cloud database. The cloud database is a database (DB) in the cloud scenario, and the capacity of the cloud disk of the cloud database needs to change with the change of the amount of data, so that the data stored in the cloud disk can meet the computing requirements of cloud computing technology.

[0033] The embodiment of the present application provides a method for managing cloud disk capacity. Through this method, the cloud disk capacity can be allocated in a timely manner according to the change of the amount of data, ensuring that the capacity of the cloud disk can store the data required for cloud computing, Figure 1 showing a schematic diagram of an implementation scenario of this method.

[0034] SeeFigure 1 , this implementation scenario includes a computing device 11 and a cloud disk 12. The computing device 11 can be a single device or a cluster of devices, and the computing device 11 is capable of providing cloud computing services. The cloud disk 12 can also be referred to as a cloud drive, disk, or elastic volume service (EVS). The cloud disk 12 can be a physical disk or a virtual disk.

[0035] See Figure 2 , which shows a schematic flowchart of a method for managing the capacity of a cloud disk provided by an embodiment of the present application. This method can be applied to the implementation scenario as Figure 1 shown, and this method is for a computing device. This method includes but is not limited to the following S201 to S204.

[0036] S201, Obtain the allocated capacity of the cloud disk and the current usage rate of the allocated capacity.

[0037] The allocated capacity of the cloud disk can be the initial allocated capacity after initializing the cloud disk, or the capacity of the cloud disk after multiple managements based on the initial allocated capacity. Before obtaining the allocated capacity of the cloud disk and the current usage rate of the allocated capacity, the initial allocated capacity can be determined first. Exemplarily, determining the initial allocated capacity can include: obtaining the target capacity and the initial capacity threshold of the cloud disk required for storing target data; based on the target capacity being greater than or equal to the initial capacity threshold, determining the initial allocated capacity of the cloud disk according to the target capacity; based on the target capacity being less than the initial capacity threshold, determining the initial capacity threshold as the initial allocated capacity.

[0038] The target stored data refers to the total data that needs to be stored initially determined for a cloud computing service. For example, for a cloud computing service of a user, the initially determined total data can be estimated by the user, that is, the target stored data can be the total data estimated by the user that needs to be stored. In the initialization stage of the cloud disk, the capacity of the cloud disk required for the initialization data in the total data is the target capacity, and the initialization data is part of the total data. For example, the initialization data can be 20% or 30% of the total data, and the size of the initialization data can be, for example, 20 gigabytes (GB) or 10 GB. The initial capacity threshold can be set according to experience or work requirements, for example, it can be 20 GB or 5 GB.

[0039] After obtaining the target capacity and the initial capacity threshold of the cloud disk, the target capacity and the initial capacity threshold can be compared. If the target capacity is greater than or equal to the initial capacity threshold, the initial allocated capacity can be determined according to the target capacity.

[0040] Exemplarily, if the obtained target capacity is 30 GB and the initial capacity threshold is 20 GB, it can be determined that the target capacity is greater than the initial capacity threshold, and then the target capacity of 30 GB can be determined as the initial issued capacity. That is to say, the maximum value (max) between the target capacity and the initial capacity threshold can be used as the initial issued capacity. Alternatively, the average value of the target capacity and the initial capacity threshold can also be used as the initial issued capacity. For example, if the target capacity is 30 GB and the initial capacity threshold is 20 GB, then the average value of 25 GB of the target capacity and the initial capacity threshold can be used as the initial issued capacity.

[0041] If the target capacity is less than the initial capacity threshold, the initial capacity threshold can be directly determined as the initial issued capacity. Exemplarily, if the target capacity is 10 GB and the initial capacity threshold is 20 GB, it can be determined that the target capacity is less than the initial capacity threshold, and then the initial capacity threshold of 20 GB can be determined as the initial issued capacity.

[0042] By comparing the initial issued threshold and the target capacity to determine the initial issued capacity, it can be ensured that the initial issued capacity can store the initialization data, avoiding the impact on the efficiency of cloud computing caused by the initial issued capacity being too small during the initialization stage to store the initialization data required for cloud computing services, and also avoiding waste caused by the initial issued capacity being too large during the initialization stage.

[0043] After determining the initial issued capacity, the initial issued capacity can be issued to complete the initialization of the cloud disk, and the issued capacity of the cloud disk can be determined according to the initial issued capacity. After managing the capacity of the cloud disk multiple times, the capacity of the cloud disk may change. Therefore, the issued capacity can be determined by the initial issued capacity and the changed capacity after multiple managements.

[0044] Exemplarily, the initial issued capacity and the changed capacity after multiple managements can be added to obtain the issued capacity of the cloud disk. For example, the initial issued capacity is 20 GB. After the initialization, the computing device manages the capacity of the cloud disk twice. The changed capacity increased after the first management is 10 GB, and the changed capacity increased after the second management is 5 GB. Then, the issued capacity of the current cloud disk can be determined to be 35 GB.

[0045] In a possible implementation manner, the computing device can also send a request to obtain the issued capacity to the cloud disk, and determine the issued capacity of the cloud disk through the feedback information sent by the cloud disk. For example, the computing device sends a request to obtain the issued capacity to the cloud disk, and the cloud disk sends feedback information to the computing device. The feedback information includes that the issued capacity is 56 GB, then the computing device can determine that the issued capacity of the cloud disk is 56 GB.

[0046] After determining the allocated capacity of the cloud disk, the utilization rate of the allocated capacity of the cloud disk at the current moment can be obtained. The utilization rate of the allocated capacity of the cloud disk at the current moment is the current utilization rate of the allocated capacity. The current utilization rate refers to the ratio of the occupied capacity in the allocated capacity of the cloud disk to all the capacity of the allocated capacity of the cloud disk at the current moment. Exemplarily, refer to Figure 3 , which shows a schematic diagram of the classification of the allocated capacity. The allocated capacity of the cloud disk includes the occupied capacity and the unoccupied capacity. If the allocated capacity of the cloud disk is 100 GB and the occupied capacity due to storing data in the allocated capacity is 40 GB, the current utilization rate of the allocated capacity can be determined to be 40%. Among them, the occupied capacity can also be referred to as the used capacity.

[0047] S202. When the current utilization rate is greater than or equal to the first usage threshold, determine the usage change rate according to the current utilization rate of the allocated capacity and multiple historical utilization rates.

[0048] The first usage threshold can be a utilization rate set according to experience or scenario requirements. For example, it can be 60%. If the current utilization rate is greater than or equal to the first usage threshold, it means that most of the allocated capacity has been occupied, and it is necessary to determine in a timely manner whether new capacity needs to be allocated and the size of the new capacity to be allocated. Therefore, when the current utilization rate is greater than or equal to the first usage threshold, multiple historical utilization rates at multiple historical moments can be obtained, and the usage change rate can be determined according to the multiple historical utilization rates and the current utilization rate. The number of multiple historical utilization rates of the allocated capacity can be two or more. One historical utilization rate corresponds to one historical moment. The multiple historical moments corresponding to the multiple historical utilization rates can be different. All the multiple historical moments are moments before the current moment. The time interval between any two historical moments can be the same or different. The embodiments of the present application do not make any limitations in this regard.

[0049] Exemplarily, the usage change rate can be determined according to two different situations, namely situation A1 and situation A2 as follows.

[0050] Situation A1. The multiple historical utilization rates include the first historical utilization rate and the second historical utilization rate. In this case, determining the usage change rate according to the current utilization rate of the allocated capacity and the multiple historical utilization rates includes: determining the first mean value of the first historical utilization rate and the current utilization rate. The first historical utilization rate is the utilization rate of the allocated capacity at the first moment, and the first moment is before the current moment; determining the ratio of the first mean value to the second historical utilization rate as the usage change rate. The second historical utilization rate is the utilization rate of the allocated capacity at the second moment, and the time interval between the second moment and the current moment and the time interval between the second moment and the first moment are the same.

[0051] In the order of time occurrence, the order of each usage rate is: the first historical usage rate, the second historical usage rate, and the current usage rate.

[0052] Exemplarily, the first historical usage rate corresponding to the first moment and the second historical usage rate corresponding to the second moment can be determined according to the occupied capacity sizes at each moment stored in the computing device and the issued capacity size at the current moment. For example, if the issued capacity of the cloud disk at the current moment is 100 GB, the occupied capacity at the first moment is 30 GB, and the occupied capacity at the second moment is 50 GB, then the ratio of the occupied capacity at the first moment to the issued capacity, which is 30%, can be determined as the first historical usage rate, and the ratio of the occupied capacity at the second moment to the issued capacity, which is 50%, can be determined as the second historical usage rate.

[0053] After determining the first historical usage rate and the current usage rate, the first mean value of the first historical usage rate and the current usage rate can be calculated. This first mean value is used to represent the average usage rate of the issued capacity between the first moment and the current moment, and the usage change rate can be determined by calculating the ratio of the first mean value to the second historical usage rate. This usage change rate is used to represent the change in the usage rate of the issued capacity between the first moment and the current moment.

[0054] Taking the first historical usage rate as 30%, the second historical usage rate as 40%, and the current usage rate as 60% as an example, determining the usage change rate may include the following steps:

[0055] A11. Calculate the first mean value of the first historical usage rate and the current usage rate to be 45%.

[0056] A12. Calculate the ratio of the first mean value to the second historical usage rate to be 112.5%, then determine the usage change rate to be 112.5%.

[0057] In a possible implementation manner, if the usage change rate is greater than 1, it indicates that the growth rate of the data is getting faster and faster; if the usage change rate is less than 1, it indicates that the growth rate of the data is getting slower and slower.

[0058] Case A2, where multiple historical utilization rates include a third historical utilization rate, a fourth historical utilization rate, and a fifth historical utilization rate. In this case, based on the current utilization rate of the allocated capacity and the multiple historical utilization rates, a usage change rate is determined, including: determining a second average value of the current utilization rate and the third historical utilization rate, where the third historical utilization rate is the utilization rate of the allocated capacity at a third time, and the third time is before the current time; determining a third average value of the fourth historical utilization rate and the fifth historical utilization rate, where the fourth historical utilization rate is the utilization rate of the allocated capacity at a fourth time, and the fifth historical utilization rate is the utilization rate of the allocated capacity at a fifth time, the fifth time is before the third time and the fourth time, and the time interval between the fourth time and the fifth time is the same as the time interval between the third time and the current time; and determining the ratio of the second average value to the third average value as the usage change rate.

[0059] In the order of time occurrence, the order of each utilization rate is: the fifth historical utilization rate, the third historical utilization rate, the fourth historical utilization rate, and the current utilization rate.

[0060] Exemplarily, each historical utilization rate is determined based on the size of the capacity occupied at each time stored in the computing device and the size of the allocated capacity at the current time. For example, if the allocated capacity of the cloud disk at the current time is 100 GB, the occupied capacity at the third time is 30 GB, the occupied capacity at the fourth time is 40 GB, and the occupied capacity at the fifth time is 20 GB, then the ratio of the occupied capacity at the third time to the allocated capacity, which is 30%, can be determined as the third historical utilization rate, the ratio of the occupied capacity at the fourth time to the allocated capacity, which is 40%, can be determined as the fourth historical utilization rate, and the ratio of the occupied capacity at the fifth time to the allocated capacity, which is 20%, can be determined as the fifth historical utilization rate.

[0061] After determining the third historical utilization rate and the current utilization rate, the second average value of the third historical utilization rate and the current utilization rate can be calculated, and the second average value is used to represent the average utilization rate of the allocated capacity between the third time and the current time; the third average value of the fifth historical utilization rate and the fourth historical utilization rate can be calculated, and the third average value is used to represent the average utilization rate of the allocated capacity between the fifth time and the fourth time, and the usage change rate is determined by calculating the ratio of the second average value to the third average value, and the usage change rate is used to represent the change in the utilization rate of the allocated capacity between the fifth time and the current time.

[0062] Taking the fifth historical utilization rate as 20%, the third historical utilization rate as 30%, the fourth historical utilization rate as 40%, and the current utilization rate as 50% as an example, determining the usage change rate may include the following steps:

[0063] B21, calculating the second average value of the third historical utilization rate and the current utilization rate as 40%.

[0064] B22. Calculate the third average value of the fifth historical usage rate and the fourth historical usage rate, which is 30%.

[0065] B23. Calculate the ratio of the second average value to the third average value, which is 133%, and then determine that the usage change rate is 133%.

[0066] S203. Determine the first increased capacity of the cloud disk according to the usage change rate.

[0067] The first increased capacity refers to the changed capacity after the capacity of the cloud disk is managed this time. The first increased capacity can be a positive value, a negative value, or zero. That is, after managing the allocated capacity of the cloud disk according to the first increased capacity, the new capacity of the cloud disk can be greater than the allocated capacity, less than the allocated capacity, or the same as the allocated capacity.

[0068] In a possible implementation, determining the first increased capacity of the cloud disk according to the usage change rate includes: multiplying the allocated capacity by the usage change rate, and determining the difference between the obtained product and the allocated capacity as the first increased capacity.

[0069] Exemplarily, the total capacity after this management can be determined according to the following formula (1).

[0070] Total capacity after management = Allocated capacity * Usage change rate (1)

[0071] For example, if the allocated capacity is 100 GB and the usage change rate is 120%, then it can be determined that the product of the allocated capacity and the usage change rate is 120 GB, that is, the total capacity after management is determined to be 120 GB. According to the difference between the total capacity after management and the allocated capacity, the first increased capacity is determined to be 120 GB - 100 GB = 20 GB.

[0072] In a possible case, since during the cloud computing process, some data stored in the cloud disk will not be called again after being called once, the cloud disk can delete this part of the data after calling it. Therefore, the occupied capacity in the allocated capacity of the cloud disk does not necessarily increase in the order of time, and the occupied capacity can also decrease in the order of time. So, the total capacity after management can also be less than the allocated capacity. For example, if the determined usage change rate is 95% and the allocated capacity is 100 GB, then the total capacity after management determined according to the above formula (1) is 95 GB, which is less than the allocated capacity of 100 GB. Then the first increased capacity can be determined to be -5 GB.

[0073] S204. Adjust the allocated capacity of the cloud disk according to the first increased capacity.

[0074] After determining the first increased capacity, if the first increased capacity is positive, the first increased capacity can be allocated to the user so that the total capacity after management can be used to store subsequent growing data. Exemplarily, all of the first increased capacity can be allocated at once, or the first increased capacity can be allocated in multiple times. For example, if the determined first increased capacity is 20GB, 20GB of capacity can be allocated at once, or 10GB of capacity can be allocated first, and then 10GB can be allocated after the 10GB of capacity is allocated.

[0075] If the first increased capacity is negative, the capacity of the cloud disk can be recovered from the allocated capacity according to the first increased capacity, so as to avoid waste of resources caused by redundant capacity. Exemplarily, if the first increased capacity is -5GB, the computing device can recover 5GB of capacity from the allocated capacity to complete the management of the allocated capacity.

[0076] In addition, if the first increased capacity is zero, the allocated capacity can be not adjusted.

[0077] In a possible implementation, the obtained current utilization rate is not only greater than the first utilization threshold, but also greater than or equal to the second utilization threshold. Wherein, the second utilization threshold is greater than the first utilization threshold, and the second utilization threshold can be set according to experience or work requirements. The second utilization threshold can be, for example, 80%. In this case, the allocated capacity may not be managed according to S202 to S204 above. Instead, the second increased capacity can be determined according to the allocated capacity and the allocation reference value, and the allocated capacity of the cloud disk can be adjusted according to the second increased capacity. The allocation reference value can be a proportional value, such as 20%, or a capacity set according to experience, such as 10GB.

[0078] Exemplarily, if after obtaining the current utilization rate, it is determined that the current utilization rate is greater than or equal to the second utilization threshold, it means that the unoccupied capacity of the cloud disk is small, and it is necessary to timely determine the second increased capacity and allocate new capacity. If the allocation reference value is a proportional value, the product of the allocated capacity and the allocation reference value can be determined as the second increased capacity. For example, if the allocated capacity is 100GB and the allocation reference value is 25%, the second increased capacity of 25GB can be determined. If the allocation reference value is a fixed capacity, the allocation reference value can be directly determined as the second increased capacity. For example, if the allocation reference value is 30GB, the second increased capacity can be directly determined to be 30GB.

[0079] After determining the second increased capacity, the second increased capacity can be allocated on the basis of the allocated capacity to complete the management of the allocated capacity of the cloud disk.

[0080] See Figure 4, which shows an exemplary implementation scenario provided by this application. This implementation scenario includes a database kernel 41, a computing module 42, a network module 43, and a storage module 44. The database kernel 41, the computing module 42, the network module 43, and the storage module 44 are all integrated into the cloud database instance 40.

[0081] The cloud database instance 40 is a small management unit of the cloud database. The cloud database instance 40 can be a single-machine instance, a master-slave instance, a read-only instance, or a cluster version instance, etc. Multiple cloud database instances 40 can exist in a cloud database. The types of cloud database instances 40 in the cloud database are different when the types of cloud databases are different. The cloud database can be, for example, a relational database service (RDS), a relational database supporting structured query language (RDS for MySQL), or a high-performance relational database supporting structured query language (RDS for PostgreSQL).

[0082] The database kernel 41 is the core part of the cloud database instance 40, responsible for processing operations such as data storage, reading, updating, and deleting, and capable of controlling and managing the computing module 42, the network module 43, and the storage module 44. The computing module 42 can perform a large amount of data calculations. The network module 43 is responsible for the network communication of each module of the cloud database instance 40 and the network communication between the cloud database instance 40 and other cloud database instances. There are a large number of cloud disks in the storage module 44 for storing user data.

[0083] The database kernel 41 can monitor the usage of the allocated capacity of the cloud disks in the storage module 44 in real time, and can timely allocate new cloud disk capacity according to the method for allocating cloud disk capacity provided in the embodiments of this application, ensuring that the disk capacity in the storage module 44 can fully store user data.

[0084] In the related art, when creating a cloud database or during the initialization of a cloud disk, the cloud disk capacity required for all data is allocated to the user at one time, and no new cloud disk capacity will be allocated again during the entire life cycle of the cloud database. That is, the allocated capacity of the cloud disk in the related art is fixed. This way of allocating cloud disk capacity results in a longer initialization time, affecting the user experience and causing great pressure on the cloud disk capacity management service in the cloud region (region). In addition, the change process of the data volume in the cloud disk is a steadily increasing process, and generally there will be no sudden change in the data volume. Therefore, allocating a large cloud disk capacity at one time is idle for a long time, resulting in resource waste.

[0085] In summary, the present application allocates part of the capacity during the initialization of the cloud disk, reducing the time required for initialization and improving the user experience. Moreover, the present application obtains the usage rate of the allocated capacity in real time, calculates the usage change rate of the allocated capacity, and timely determines whether to allocate new capacity and the size of the new capacity according to the usage change rate, realizing on-demand allocation, and adjusting and managing the capacity of the cloud disk timely and accurately, with flexibility and accuracy, and can avoid resource waste.

[0086] The above introduces the management method of the cloud disk capacity in the embodiments of the present application. Corresponding to the above method, the embodiments of the present application also provide a management device for the cloud disk capacity. Figure 5 FIG. is a schematic structural diagram of a management device for the cloud disk capacity provided by the embodiments of the present application. The management device for the cloud disk capacity can implement the foregoing management method of the cloud disk capacity through software, hardware, or a combination of both. It should be understood that the device may include more additional modules than those shown or omit some of the modules shown, and the embodiments of the present application do not limit this. As Figure 5 shown, the management device for the cloud disk capacity includes an acquisition module 501, a determination module 502, and an adjustment module 503.

[0087] The acquisition module 501 is configured to acquire the allocated capacity of the cloud disk and the current usage rate of the allocated capacity; the determination module 502 is configured to determine the usage change rate according to the current usage rate of the allocated capacity and multiple historical usage rates when the current usage rate is greater than or equal to a first usage threshold; the determination module 502 is further configured to determine the first new capacity of the cloud disk according to the usage change rate; the adjustment module 503 is configured to adjust the allocated capacity of the cloud disk according to the first new capacity.

[0088] In a possible implementation, the multiple historical utilization rates include a first historical utilization rate and a second historical utilization rate. The determination module 502 is configured to determine a first average value of the first historical utilization rate and the current utilization rate. The first historical utilization rate is the utilization rate of the allocated capacity at a first moment, and the first moment is before the current moment. The ratio of the first average value to the second historical utilization rate is determined as the usage change rate. The second historical utilization rate is the utilization rate of the allocated capacity at a second moment, and the time interval between the second moment and the current moment is the same as the time interval between the second moment and the first moment.

[0089] In a possible implementation, the multiple historical utilization rates include a third historical utilization rate, a fourth historical utilization rate, and a fifth historical utilization rate. The determination module 502 is configured to determine a second average value of the current utilization rate and the third historical utilization rate. The third historical utilization rate is the utilization rate of the allocated capacity at a third moment, and the third moment is before the current moment. The determination module 502 is further configured to determine a third average value of the fourth historical utilization rate and the fifth historical utilization rate. The fourth historical utilization rate is the utilization rate of the allocated capacity at a fourth moment, and the fifth historical utilization rate is the utilization rate of the allocated capacity at a fifth moment. The fifth moment is before the third moment and the fourth moment, and the time interval between the fourth moment and the fifth moment is the same as the time interval between the third moment and the current moment. The ratio of the second average value to the third average value is determined as the usage change rate.

[0090] In a possible implementation, the determination module 502 is configured to multiply the allocated capacity by the usage change rate, and determine the difference between the obtained product and the allocated capacity as the first newly added capacity.

[0091] In a possible implementation, the acquisition module 501 is further configured to, when the current utilization rate is greater than or equal to a second usage threshold (the second usage threshold is greater than the first usage threshold), determine a second newly added capacity according to the allocated capacity and the allocation reference value, and adjust the allocated capacity of the cloud disk according to the second newly added capacity.

[0092] In a possible implementation, the acquisition module 501 is further configured to acquire the target capacity and the initial capacity threshold of the cloud disk required for storing the target data. Based on the target capacity being greater than or equal to the initial capacity threshold, determine the initial allocated capacity of the cloud disk according to the target capacity. Based on the target capacity being less than the initial capacity threshold, determine the initial capacity threshold as the initial allocated capacity, and determine the allocated capacity of the cloud disk according to the initial allocated capacity.

[0093] It should be understood that the above Figure 5When the provided device implements its functions, only the division of the above functional modules is used for illustration. In practical applications, the above functions can be assigned to different functional modules according to needs, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the device provided in the above embodiment and the method embodiment belong to the same concept. For the specific implementation process, please refer to the method embodiment and will not be elaborated here.

[0094] In addition, in the above cloud disk capacity management device, the acquisition module 501, the determination module 502, and the adjustment module 503 can all be implemented by software or by hardware. Exemplarily, next, taking the acquisition module 501 as an example, the implementation manner of the acquisition module 501 will be introduced. Similarly, the implementation manners of the determination module 502, the adjustment module 503, and other modules can refer to the implementation manner of the acquisition module 501.

[0095] As an example of a software functional unit, the acquisition module 501 may include code running on a computing instance. Among them, the computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Further, the above computing instance may be one or more. For example, the acquisition module 501 may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers for running this code may be distributed in the same region or in different regions. Further, the multiple hosts / virtual machines / containers for running this code may be distributed in the same availability zone (AZ) or in different AZs, and each AZ includes one data center or multiple geographically proximate data centers. Among them, generally one region may include multiple AZs.

[0096] Similarly, the multiple hosts / virtual machines / containers for running this code may be distributed in the same virtual private cloud (VPC) or in multiple VPCs. Among them, generally one VPC is set within one region. For cross-region communication between two VPCs within the same region and between VPCs in different regions, a communication gateway needs to be set in each VPC, and the interconnection between VPCs is realized through the communication gateway.

[0097] As an example of a hardware functional unit, the obtaining module 501 may include at least one computing device. Alternatively, the obtaining module 501 may also be a device implemented by an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). Among them, the above PLD may be implemented by a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.

[0098] The multiple computing devices included in the obtaining module 501 may be distributed in the same region or in different regions. The multiple computing devices included in the obtaining module 501 may be distributed in the same availability zone (AZ) or in different AZs. Similarly, the multiple computing devices included in the obtaining module 501 may be distributed in the same virtual private cloud (VPC) or in multiple VPCs. Among them, the multiple computing devices may be any combination of computing devices such as servers, ASICs, PLDs, CPLDs, FPGAs, and GALs.

[0099] It should be noted that in other embodiments, the obtaining module 501 may be used to execute any step in the method for managing the cloud disk capacity. That is, the steps implemented by the obtaining module 501, the determining module 502, and the adjusting module 503 may be specified as needed. The full functions of the cloud disk capacity management device are realized by the obtaining module 501, the determining module 502, and the adjusting module 503 respectively implementing different steps in the method for managing the cloud disk capacity. In addition, the cloud disk capacity management device provided in the above embodiment and the embodiment of the cloud disk capacity management method belong to the same concept. For the specific implementation process, please refer to the method embodiment and will not be elaborated here.

[0100] This application also provides a computing device that can be configured as a server in the above implementation environment. Refer to Figure 6 , Figure 6 FIG. is a schematic hardware structure diagram of a computing device provided in an embodiment of this application. As Figure 6 shown, the computing device 600 includes: a bus 602, a processor 604, a memory 606, and a communication interface 608. The processor 604, the memory 606, and the communication interface 608 communicate with each other through the bus 602. It should be understood that this application does not limit the number of processors and memories in the computing device 600.

[0101] The bus 602 can be a peripheral component interconnect (PCI) bus, an extended industry standard architecture (EISA) bus, or the like. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 only one line is used in the figure, but it does not mean that there is only one bus or one type of bus. The bus 602 can include a path for transmitting information between various components of the computing device 600 (for example, the memory 606, the processor 604, and the communication interface 608).

[0102] The processor 604 can include any one or more of processors such as a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

[0103] The memory 606 can include volatile memory, such as random access memory (RAM). The processor 604 can also include non-volatile memory, such as read-only memory (ROM), flash memory, a hard disk drive (HDD), or a solid state drive (SSD).

[0104] The memory 606 stores executable program code, and the processor 604 executes the executable program code to respectively implement the functions of the aforementioned acquisition module 501, determination module 502, and adjustment module 503, thereby implementing the method for managing the cloud disk capacity. That is, the memory 606 stores instructions for executing the method for managing the cloud disk capacity.

[0105] The communication interface 608 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 600 and other devices or a communication network.

[0106] The embodiments of the present application also provide a computing device cluster. The computing device cluster includes at least one computing device. The computing device can be configured as the server in the above-mentioned implementation environment, such as a central server, an edge server, or a local server in a local data center.

[0107] Figure 7 It is a schematic structural diagram of a computing device cluster provided by the embodiments of the present application. As Figure 7 shown, the computing device cluster includes at least one computing device 600. In the memory 606 of one or more computing devices 600 in the computing device cluster, there can be stored the same instructions for executing the method for managing the cloud disk capacity.

[0108] In some possible implementation manners, in the memory 606 of one or more computing devices 600 in the computing device cluster, there can also be stored respectively partial instructions for executing the method for managing the cloud disk capacity. In other words, the combination of one or more computing devices 600 can jointly execute the instructions for executing the method for managing the cloud disk capacity.

[0109] It should be noted that the memories 606 in different computing devices 600 in the computing device cluster can store different instructions, which are respectively used to execute partial functions of the device for managing the cloud disk capacity. That is to say, the instructions stored in the memories 606 of different computing devices 600 can implement the functions of one or more of the acquisition module 501, the determination module 502, and the adjustment module 503.

[0110] In some embodiments, one or more computing devices in the computing device cluster can be connected through a network. Among them, the network can be a wide area network or a local area network, etc. Figure 8 It is a schematic diagram of the connection manner of a computing device cluster provided by the embodiments of the present application. As Figure 8 shown, two computing devices 600 are connected through a network. Specifically, they are connected to the network through the communication interfaces in each computing device.

[0111] It should be understood that Figure 8 the functions of the computing device 600 shown in

[0112] The embodiments of the present application also provide a computer program or product containing instructions. The computer program or product can be a program product containing instructions that can run on a computing device or be stored in any available medium. When the computer program or product runs on at least one computing device, it causes at least one computing device to execute the method for managing the cloud disk capacity.

[0113] An embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by a computing device or a data storage device such as a data center that contains one or more available media. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid-state drive), etc. The computer-readable storage medium includes instructions that direct the computing device to execute the method for managing the cloud disk capacity.

[0114] In the above embodiment, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (such as coaxial cable, optical fiber, digital subscriber line) or wirelessly (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that contains one or more available media integrated. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid-state drive (Solid State Disk)), etc.

[0115] In the present application, terms such as "first" and "second" are used to distinguish identical or similar items with basically the same functions. It should be understood that there is no logical or chronological dependency between "first", "second", and "nth", nor are the quantity and execution order limited. It should also be understood that although the following description uses terms such as first and second to describe various elements, these elements should not be limited by the terms. These terms are only used to distinguish one element from another.

[0116] It should also be understood that in various embodiments of the present application, the magnitudes of the serial numbers of each process do not mean the sequence of execution. The execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.

[0117] As used in this application, the term "at least one" means one or more, and the term "a plurality" means two or more. For example, a plurality of second devices means two or more second devices. As used herein, the terms "system" and "network" are often used interchangeably.

[0118] It should be understood that the terms used in the description of the various examples herein are only for the purpose of describing specific examples and are not intended to be limiting. As used in the description of the various examples and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.

[0119] It should also be understood that the term "and / or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items. The term "and / or" describes the associative relationship of associated objects and indicates that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this application generally represents an "or" relationship between the associated objects before and after.

[0120] It should also be understood that the terms "if" and "when" can be interpreted to mean "when" or "upon" or "in response to determining" or "in response to detecting". Similarly, depending on the context, the phrase "if it is determined..." or "if [the stated condition or event] is detected" can be interpreted to mean "when it is determined..." or "in response to determining..." or "when [the stated condition or event] is detected" or "in response to detecting [the stated condition or event]".

[0121] The above description is only a specific implementation manner of this application, but the protection scope of this application is not limited thereto. Any person skilled in the art in the technical field disclosed in this application can easily think of various equivalent modifications or substitutions, and these modifications or substitutions should all be covered within the protection scope of this application. Therefore, the protection scope of this application shall be subject to the protection scope of the claims.

[0122] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of program structure information. This program structure information includes one or more program instructions. When the program instructions are loaded and executed on a computing device, the processes or functions in the embodiments of this application are generated in whole or in part.

[0123] Those of ordinary skill in the art can understand that all or part of the steps to implement the above embodiments can be completed by hardware, or can be completed by instructing relevant hardware through a program. This program can be stored in a computer-readable storage medium, and the above-mentioned storage medium can be a read-only memory, a magnetic disk or an optical disc, etc.

[0124] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with the relevant laws, regulations and standards of relevant countries and regions. For example, the issued capacity involved in this application is obtained under full authorization.

[0125] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the embodiments of the present application, and are not intended to limit them; although the embodiments of the present application have been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the protection scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for managing the capacity of a cloud disk, characterized in that, The method is for a device providing cloud computing services, and the method includes: Obtaining the allocated capacity of a cloud disk and the current utilization rate of the allocated capacity; When the current utilization rate is greater than or equal to a first utilization threshold and less than a second utilization threshold, determining a usage change rate according to the current utilization rate of the allocated capacity and multiple historical utilization rates, where the second utilization threshold is greater than the first utilization threshold; Determining a first additional capacity of the cloud disk according to the usage change rate, where the first additional capacity is a positive value, a negative value or zero; Adjusting the allocated capacity of the cloud disk according to the first additional capacity; When the current utilization rate is greater than or equal to the second utilization threshold, determining a second additional capacity according to the allocated capacity and an allocation reference value; Adjusting the allocated capacity of the cloud disk according to the second additional capacity.

2. The method according to claim 1, wherein The multiple historical utilization rates include a first historical utilization rate and a second historical utilization rate. Determining the usage change rate according to the current utilization rate of the allocated capacity and multiple historical utilization rates includes: Determining a first mean value of the first historical utilization rate and the current utilization rate, where the first historical utilization rate is the utilization rate of the allocated capacity at a first moment, and the first moment is before the current moment; Determining the ratio of the first mean value to the second historical utilization rate as the usage change rate, where the second historical utilization rate is the utilization rate of the allocated capacity at a second moment, and the time interval between the second moment and the current moment and the time interval between the second moment and the first moment are the same.

3. The method according to claim 1, characterized in that, The multiple historical utilization rates include a third historical utilization rate, a fourth historical utilization rate and a fifth historical utilization rate. Determining the usage change rate according to the current utilization rate of the allocated capacity and multiple historical utilization rates includes: Determining a second mean value of the current utilization rate and the third historical utilization rate, where the third historical utilization rate is the utilization rate of the allocated capacity at a third moment, and the third moment is before the current moment; Determining a third mean value of the fourth historical utilization rate and the fifth historical utilization rate, where the fourth historical utilization rate is the utilization rate of the allocated capacity at a fourth moment, the fifth historical utilization rate is the utilization rate of the allocated capacity at a fifth moment, the fifth moment is before the third moment and the fourth moment, and the time interval between the fourth moment and the fifth moment and the time interval between the third moment and the current moment are the same; Determining the ratio of the second mean value to the third mean value as the usage change rate.

4. The method according to any one of claims 1 to 3, characterized in that Determining the first additional capacity of the cloud disk according to the usage change rate includes: Multiplying the allocated capacity by the usage change rate, and determining the difference between the obtained product and the allocated capacity as the first additional capacity.

5. The method according to any one of claims 1 to 3, characterized in that Before obtaining the allocated capacity of the cloud disk and the current utilization rate of the allocated capacity, the method further includes: Obtaining the target capacity of the cloud disk required for storing target data and an initial capacity threshold; Based on the target capacity being greater than or equal to the initial capacity threshold, determine the initial allocation capacity of the cloud disk according to the target capacity; Based on the target capacity being less than the initial capacity threshold, determine the initial capacity threshold as the initial allocation capacity; Determine the allocated capacity of the cloud disk according to the initial allocation capacity.

6. A management device for cloud disk capacity, characterized in that, The device is a device for providing cloud computing services, and the device includes: An acquisition module, configured to acquire the allocated capacity of the cloud disk and the current usage rate of the allocated capacity; A determination module, configured to determine a usage change rate according to the current usage rate of the allocated capacity and multiple historical usage rates when the current usage rate is greater than or equal to a first usage threshold and less than a second usage threshold, and the second usage threshold is greater than the first usage threshold; The determination module is further configured to determine a first additional capacity of the cloud disk according to the usage change rate, and the first additional capacity is a positive value, a negative value or zero; An adjustment module, configured to adjust the allocated capacity of the cloud disk according to the first additional capacity; The acquisition module is further configured to determine a second additional capacity according to the allocated capacity and an allocation reference value when the current usage rate is greater than or equal to the second usage threshold; The acquisition module is further configured to adjust the allocated capacity of the cloud disk according to the second additional capacity.

7. The device according to claim 6, characterized in that, The multiple historical usage rates include a first historical usage rate and a second historical usage rate. The determination module is configured to determine a first average value of the first historical usage rate and the current usage rate, where the first historical usage rate is the usage rate of the allocated capacity at a first moment, and the first moment is before the current moment; determine the ratio of the first average value to the second historical usage rate as the usage change rate, where the second historical usage rate is the usage rate of the allocated capacity at a second moment, and the time interval between the second moment and the current moment is the same as the time interval between the second moment and the first moment.

8. The device according to claim 6, characterized in that, The multiple historical usage rates include a third historical usage rate, a fourth historical usage rate and a fifth historical usage rate. The determination module is configured to determine a second average value of the current usage rate and the third historical usage rate, where the third historical usage rate is the usage rate of the allocated capacity at a third moment, and the third moment is before the current moment; Determine a third average value of the fourth historical usage rate and the fifth historical usage rate, where the fourth historical usage rate is the usage rate of the allocated capacity at a fourth moment, and the fifth historical usage rate is the usage rate of the allocated capacity at a fifth moment, and the fifth moment is before the third moment and the fourth moment, and the time interval between the fourth moment and the fifth moment is the same as the time interval between the third moment and the current moment; determine the ratio of the second average value to the third average value as the usage change rate.

9. The device according to any one of claims 6 - 8, characterized in that, The determination module is configured to multiply the allocated capacity by the usage change rate, and determine the difference between the obtained product and the allocated capacity as the first additional capacity.

10. The device according to any one of claims 6-8, characterized in that, The obtaining module is further configured to obtain the target capacity and the initial capacity threshold of the cloud disk required for the target stored data; based on the target capacity being greater than or equal to the initial capacity threshold, determine the initial allocation capacity of the cloud disk according to the target capacity; Based on the target capacity being less than the initial capacity threshold, determine the initial capacity threshold as the initial allocation capacity; Determine the allocated capacity of the cloud disk according to the initial allocation capacity.

11. A cluster of computing devices, characterized in that, The computing device cluster includes at least one computing device, and each computing device includes a processor, and the processor is coupled to a memory; The processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the cloud disk capacity management method according to any one of claims 1-5.

12. A computer program product comprising instructions, characterized in that, When the instructions are run by the computing device cluster, the computing device cluster executes the cloud disk capacity management method according to any one of claims 1-5.

13. A computer-readable storage medium, characterized in that, It includes computer program instructions, and when the computer program instructions are executed by the computing device cluster, the computing device cluster executes the cloud disk capacity management method according to any one of claims 1-5.

Citation Information

Patent Citations

  • Method and apparatus for predicting disk capacity

    CN105094708A

  • Method, apparatus and computer program product for determining use change rate of storage system

    CN112148551A

  • Data storage method and device, equipment and storage medium

    CN113867643A

  • Storage volume expansion method and device and medium

    CN114968110A