Cloud storage space management methods and devices

By dynamically adjusting the storage space update frequency based on time windows and activity evaluation algorithms in cloud storage services, the problems of storage space waste and network congestion under large data volumes are solved, and the user experience is improved.

CN119071311BActive Publication Date: 2025-11-14CHINA MOBILE INTERNET CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411077807.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-07
Publication Date
2025-11-14
Estimated Expiration
2044-08-07

AI Technical Summary

Technical Problem

When dealing with massive amounts of data, existing cloud storage services are prone to wasting storage space and computing power, as well as causing network congestion, in order to achieve data consistency and timeliness, resulting in a decline in user experience.

Method used

Upload and download data are calculated based on file request records within a time window. An activity evaluation algorithm is used to calculate a frequency adjustment coefficient, and the storage space update frequency is dynamically adjusted to optimize storage space utilization.

Benefits of technology

It enables the rational use of storage space under large data volumes, reduces network congestion, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119071311B_ABST
    Figure CN119071311B_ABST
Patent Text Reader

Abstract

This specification provides a cloud storage space management method and apparatus according to one embodiment. The method includes: firstly, determining a time window based on a user's file requests for cloud storage space; calculating upload and download data based on the user's file processing records within the time window; secondly, inputting the upload and download data into an activity evaluation algorithm for activity evaluation; calculating a frequency adjustment coefficient based on the obtained activity evaluation value; subsequently calculating a target space update frequency based on the frequency adjustment coefficient and the initial space update frequency mapped by the upload and download data; and finally, updating files in the user's remaining storage space in the cloud storage space based on the target space update frequency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This document relates to the field of Internet technology, and in particular to a cloud storage space management method and apparatus. Background Technology

[0002] With the continuous development of Internet technology, cloud storage has become an important means for individuals and enterprises to store data. However, with the growth of data volume, the efficient management and utilization of storage space has become increasingly important.

[0003] Currently, cloud storage services typically update storage space periodically to ensure file consistency and integrity. However, while a fixed update frequency can guarantee data consistency and timeliness when dealing with small amounts of data, real-time updates to all files can lead to wasted storage space and computing power, congestion of upload and download channels, and a degraded user experience when dealing with massive amounts of data. Therefore, how to achieve data consistency and timeliness while effectively utilizing storage space and avoiding network congestion in the case of massive amounts of data has become an urgent problem to be solved. Summary of the Invention

[0004] The purpose of one embodiment of this specification is to provide a cloud storage space management method and apparatus to achieve the rational utilization of cloud storage space resources.

[0005] To solve the above-mentioned technical problems, one embodiment of this specification is implemented as follows:

[0006] Firstly, one embodiment of this specification provides a cloud storage space management method, including:

[0007] Based on the user's file requests for cloud storage space, a time window is determined, and the upload and download data is calculated according to the user's file processing records within the time window.

[0008] The uploaded and downloaded data are input into an activity evaluation algorithm to evaluate activity, and a frequency adjustment coefficient is calculated based on the obtained activity evaluation value.

[0009] Calculate the target space update frequency based on the frequency adjustment coefficient and the initial space update frequency of the uploaded and downloaded data mapping;

[0010] Based on the target space update frequency, the remaining storage space of the user in the cloud storage space is updated with files.

[0011] Secondly, another embodiment of this specification provides a cloud storage space management device, comprising:

[0012] The data calculation module is configured to determine a time window based on the user's file requests for cloud storage space, and calculate the uploaded and downloaded data based on the user's file processing records within the time window;

[0013] The coefficient acquisition module is configured to input the uploaded and downloaded data into the activity evaluation algorithm for activity evaluation, and calculate the frequency adjustment coefficient based on the obtained activity evaluation value.

[0014] The frequency calculation module is configured to calculate the target space update frequency based on the frequency adjustment coefficient and the initial space update frequency mapped by the uploaded and downloaded data;

[0015] The file update module is configured to update the files in the user's remaining storage space in the cloud storage space based on the target space update frequency.

[0016] Thirdly, another embodiment of this specification provides a cloud storage space management device, including: a memory, a processor, and computer-executable instructions stored on the memory and executable on the processor, wherein the computer-executable instructions, when executed by the processor, implement the steps of the cloud storage space management method as described in the first aspect above.

[0017] Fourthly, in another embodiment of this specification, a computer-readable storage medium is provided for storing computer-executable instructions that, when executed by a processor, implement the steps of the cloud storage space management method as described in the first aspect above.

[0018] Fifthly, in another embodiment of this specification, a computer program product is provided, the computer program product including a cloud storage space management program, the cloud storage space management program being executed by a processor to implement the steps of the cloud storage space management method as described in the first aspect above.

[0019] The cloud storage space management method provided in this embodiment first determines a time window based on the user's file requests for cloud storage space, calculates upload and download data based on the user's file processing records within the time window, then inputs the upload and download data into an activity evaluation algorithm for activity evaluation, and calculates a frequency adjustment coefficient based on the obtained activity evaluation value. Subsequently, based on the frequency adjustment coefficient and the initial space update frequency mapped by the upload and download data, the target space update frequency is calculated. Finally, based on the target space update frequency, files are updated in the user's remaining storage space in the cloud storage space. By using the above method, cloud storage space management is carried out to achieve the rational utilization of cloud storage space resources. Attached Figure Description

[0020] To more clearly illustrate the technical solutions in one or more embodiments of this specification, the accompanying drawings used in the description of the embodiments or prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0021] Figure 1 A cloud storage space management process flowchart is provided as one embodiment of this specification;

[0022] Figure 2 A schematic diagram of a time window provided for one embodiment of this specification;

[0023] Figure 3 This specification provides a flowchart of a cloud storage space management method applied to a scenario of managing remaining storage space, as an embodiment of the present specification.

[0024] Figure 4 A schematic diagram of a cloud storage space management processing device provided in one embodiment of this specification;

[0025] Figure 5 This is a schematic diagram of a cloud storage space management and processing device provided in one embodiment of this specification. Detailed Implementation

[0026] To enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the technical solutions in one or more embodiments of this specification will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this specification, and not all of the embodiments. Based on one or more embodiments of this specification, all other embodiments obtained by those skilled in the art without creative effort should fall within the protection scope of this document.

[0027] This specification provides an example of a cloud storage space management method:

[0028] Reference Figure 1 The diagram illustrates a cloud storage space management method provided in this embodiment, which specifically includes the following steps S102 to S108.

[0029] Step S102: Determine a time window based on the user's file requests for cloud storage space, and calculate the upload and download data based on the user's file processing records within the time window.

[0030] The time window refers to a specific time period used to acquire and analyze a user's file request activities in the cloud storage space. This time period can be used to define which file upload or download requests will be included in the current data processing and analysis cycle, providing a start and end time for processing and analyzing the user's file processing records.

[0031] The upload and download data refers to the upload and download frequency and volume calculated by the user based on the corresponding file processing records within a specified time window.

[0032] In specific implementation, user file requests for cloud storage space are received in real time. Corresponding file operations are performed based on these requests, and file processing records are recorded, including data such as file size, operation time, and operation type. A preset time window length is used to define the time window, and the real-time file processing records are filtered and cached based on this time window. When a user file request for cloud storage space arrives, the corresponding time window is determined based on that file request. In one optional implementation of this embodiment, determining the time window based on the file request for cloud storage space includes:

[0033] The time window is determined based on the timestamp and time window length carried in the file request.

[0034] The time window length refers to the specific duration of each time window from start to end. For example, if the time window length is set to 5 minutes, each time window will cover file requests within 5 minutes from its start time. The time window length can be adjusted according to actual needs to adapt to data analysis and management requirements of different granularities.

[0035] In the specific execution process, a specified time window length is first preset. When a user initiates a file request, the specific time point when the file request occurs is recorded, which is the timestamp. It is then checked whether the timestamp falls within the current time window. If it does, the file request is included in the file request processing record set of the current time window. If not, it is checked whether the current time window has ended. If it has ended, the current time window is closed and a new time window is opened, and the file request is assigned to the new time window.

[0036] Optionally, the time window can be processed using a sliding time window algorithm; that is, as time progresses, the status of the current time window will be checked periodically. If the current time exceeds the end time of the time window, the current time window will be closed and a new time window will be opened immediately. The start time of the new time window is the current time, and the end time is the start time plus the preset time window length. Based on this, the time window corresponding to each file request can be determined according to the timestamp and the time window length.

[0037] For example, if the preset time window length is 5 minutes, and the current system time is 09:12:00, according to the time window length, the current time window starts at 09:07:00 and ends at 09:12:00. When user A initiates a file upload request at 09:10:30, the timestamp of this upload request is recorded as 09:10:30. Because 09:10:30 falls within the time range of 09:07:00 to 09:12:00, this upload request belongs to the current time window. Time window; When user B initiates a file download request at 09:13:05, the timestamp of the download request is recorded as 09:13:05. Since 09:13:05 is not within the current time window (09:07:00 to 09:12:00), the current time window will be closed and a new time window will be opened. The new time window starts at 09:12:00 and ends at 09:17:00. Therefore, the timestamp 09:13:05 belongs to the new time window.

[0038] In specific implementation, after determining the time window based on the timestamp carried in the file request and the preset time window length, the file processing records within the time window are identified. The corresponding upload and download data are then calculated for these file processing records. In one optional implementation provided in this embodiment, calculating the upload and download data based on the user's file processing records within the time window includes:

[0039] Delete the file processing records within the historical time window preceding the start of the stated time window;

[0040] Calculate the file upload and download frequency corresponding to the file processing records of the user within the time window, extract the file size from the file processing records within the time window, calculate the file upload and download volume, and use the upload and download frequency and the upload and download volume as the upload and download data.

[0041] In practice, when a user initiates a file request for cloud storage, such as uploading or downloading a file, these requests are recorded and form corresponding file processing records. Each file processing record includes an operation timestamp, user identifier, file size, and operation type. After determining the time window based on the timestamp carried by the file request and the preset time window length, all valid file processing records within that time window are filtered out. That is, file processing records in historical time windows before the start time of the current time window are deleted. For the remaining file processing records, the number of file requests executed by the user within that time window is counted, and the resulting count is the file upload and download frequency. At the same time, for the remaining file processing records, the file size information of each record is extracted, and the sizes of all files within that time window are summed up, and the result is the file upload and download count.

[0042] For example, such as Figure 2 As shown, when a user initiates a file request for cloud storage space, these file requests are recorded and form corresponding file processing records. Based on the timestamp carried by the file request and the preset time window length, a time window 201 is determined. Since the time window can be processed using a sliding time window algorithm, when the time window 201 slides forward, if the data block within the time window 201 exceeds the time window 201, the data block will be judged as "discarded". That is, the file processing record corresponding to the data block will no longer be calculated in the file processing record of the current time window. In other words, the file processing record corresponding to data block a is deleted, while the file processing records within the time window are retained, that is, the file processing records corresponding to data blocks b, c, and d are retained. Based on data blocks b, c, and d, the corresponding upload and download frequencies are statistically obtained.

[0043] In practical applications, users can store files in cloud storage space and perform file transfer operations, that is, users can move files in cloud storage space, transferring files from their original storage location to another location (such as an external hard drive) or sending target files to other users. Since the files are sent to other users and are not added to the user's remaining storage space in cloud storage space, the transfer operation only generates the corresponding file transfer record and does not involve changing the size of the user's remaining storage space in cloud storage space. In order to obtain an accurate remaining storage space size for subsequent calculations, in an optional implementation of this embodiment, before determining the time window based on the user's file request for cloud storage space and calculating the upload and download data based on the user's file processing records within the time window, the following steps are also included:

[0044] If a user's file transfer request is received, the file transfer process is performed and a file transfer record is generated.

[0045] The aforementioned file transfer refers to a user's file request to perform operations such as moving files in the cloud storage space. This operation can transfer files from one location to another, such as sending the target file to another user.

[0046] During the actual execution process, the cloud storage space receives file requests from users in real time and identifies file transfer requests among these requests. When a file transfer request is detected, the corresponding file operation is performed and the file is sent to the target user. For each completed file transfer operation, a corresponding file transfer record is generated, including but not limited to information such as the operation time, source file path, and target file path.

[0047] Optionally, the user's file processing records within the time window include the file transfer records; the file transfer request file was not stored in the remaining storage space.

[0048] Specifically, since the file is sent to other users and not added to their remaining storage space, it's equivalent to not adding new data to their remaining storage space. In other words, the transfer operation only generates a corresponding file transfer record and does not change the size of the user's remaining storage space in the cloud storage space. In addition, the transfer operation may also involve file transfer operations, that is, moving the file from its original location to the target location. Correspondingly, for each completed file transfer operation, a corresponding file transfer record will also be generated. In this case, since the file is transferred to the user's private storage space (such as an external hard drive), this operation will also not change the size of the user's remaining storage space in the cloud storage space.

[0049] In this embodiment, the storage and management of files in the cloud storage space can also be carried out in a key-value pair manner. That is, based on the user's file request, it is allowed to quickly access, operate or manage the file directly through a unique key, thereby simplifying the file retrieval process. In an optional implementation method provided in this embodiment, the cloud storage space uses a key-value pair manner for data storage.

[0050] If the key-value pair is detected to be expired, the storage space occupied by the key-value pair is released, and the remaining storage space size is updated.

[0051] The key-value pair refers to the association of two related data items: a key and a value, to store and retrieve related data in the cloud storage space. When a user uploads a file, a unique key is generated for the file, and the content of the file is used as the value and associated with the key. Based on this, when a user wants to access or retrieve a file, they only need to provide the key of the file to retrieve the corresponding file content, thereby improving the efficiency of retrieval.

[0052] During the actual execution process, the status of key-value pairs in the cloud storage space is continuously monitored. When it is found that a key-value pair has expired, that is, the validity period of the file or data represented by the key-value pair has expired, the storage space occupied by the key-value pair is released, and the user's remaining storage space in the cloud storage space is updated. Through this process, the storage resources occupied by expired files are effectively managed and reclaimed, thereby optimizing the operating efficiency of the cloud storage space and providing users with more accurate and real-time information on the remaining storage space usage.

[0053] For example, user A has a storage quota of 10GB in cloud storage. After uploading some files, user A has 5GB of storage space remaining. If a 2GB file expires but is not deleted, it will occupy 2GB of space. When this expired file is detected, the 2GB of space occupied by the file will be removed from the remaining storage space first, and then user A's remaining storage space will be updated to 3GB (original remaining storage space 5GB - space occupied by expired file 2GB = 3GB).

[0054] Step S104: Input the uploaded and downloaded data into the activity evaluation algorithm to evaluate the activity, and calculate the frequency adjustment coefficient based on the obtained activity evaluation value.

[0055] The activity assessment refers to the process of quantitatively analyzing the frequency and volume of user uploads and downloads within a specified time window. This process is based on the acquired data such as the user's upload and download frequency and volume, and uses a preset activity assessment algorithm to calculate an activity assessment value. This activity assessment value can reflect the frequency with which the user uses cloud storage space within a certain period of time.

[0056] In practice, the frequency and volume of user uploads and downloads within a specified time window are obtained. Based on a preset activity evaluation algorithm, the obtained upload and download frequency and volume are input into the activity evaluation algorithm to calculate the user's activity evaluation value for the specified time window. The higher the activity evaluation value, the more frequent the user's activities are within the specified time window, and the greater the demand for cloud storage space.

[0057] In the specific execution process, firstly, the user's upload and download data within a specified time window is acquired. Then, the acquired upload and download data is analyzed according to a preset activity evaluation algorithm to calculate a preliminary activity score. This activity score reflects the user's activity level within a certain period. In one optional implementation of this embodiment, the upload and download data is input into the activity evaluation algorithm for activity evaluation, including:

[0058] The frequency ratio is obtained by calculating the ratio between the upload and download frequencies and the preset critical frequency.

[0059] The ratio is calculated by comparing the upload / download volume with the average upload / download volume over multiple historical time windows.

[0060] Based on the timestamp carried in the file request, the remaining storage space corresponding to the timestamp is obtained, and the ratio of the remaining storage space corresponding to the timestamp to the maximum storage space is calculated to obtain the space ratio.

[0061] The activity evaluation value is obtained by calculating the activity level based on the frequency ratio, the quantity ratio, the spatial ratio, and preset parameters.

[0062] For example, the activity evaluation value F(T) corresponding to the upload and download data within the i-th specified time window at time t. i The value can be calculated using the following formula:

[0063]

[0064] Where 1≤i≤n, c is a preset constant parameter, t is the timestamp of the specified request, and W t Let T be the remaining storage space at time t, W be the maximum storage space, and T be the remaining storage space at time t. i For the i-th specified time window, K(T) n N(T) represents the upload and download volume within the nth specified time window. i ) represents the upload and download frequency within the i-th specified time window, and Ns represents the critical frequency.

[0065] Specifically, when the remaining storage space W t Reduce, space ratio Decrease Increase, thereby enhancing F(T) i The numerical value of ); similarly, the ratio value. This reflects the ratio of the upload and download volume within the i-th specified time window to the average upload and download volume within the previous n specified time windows. The larger the ratio, the more active the upload and download activity is within the i-th specified time window. This can significantly improve F(T) when the upload and download frequency increases sharply. i The value of ).

[0066] In this embodiment, based on the user's upload and download data within a specified time window, an activity evaluation value is calculated using an activity evaluation algorithm. Then, a frequency adjustment coefficient can be calculated based on the obtained activity evaluation value. In other words, the obtained activity evaluation value can be mapped to a fixed range (such as between 0 and 1). The obtained activity evaluation value is normalized to ensure comparability between different user activity levels, and the corresponding frequency adjustment coefficient is calculated based on the normalized activity evaluation value.

[0067] Normalization refers to the fact that different users may have significant differences in the amount of files they upload and download in cloud storage space. Directly comparing the activity evaluation values ​​of each user may not yield relatively accurate results. Therefore, by normalizing the activity evaluation values ​​of each user, that is, by adjusting them to the same standard (such as between 0 and 1) through mathematical transformation, the activity evaluation values ​​of users with different upload and download volumes can be compared.

[0068] For example, based on all historical activity assessment values, the activity assessment value F(T) is... i Perform direct proportional normalization to obtain the corresponding normalized score Fc(T) i According to the normalized score Fc(T) i The frequency adjustment coefficient α is calculated using the following formula:

[0069]

[0070] Where k is a preset constant, which can be set to 1, r is the amplification factor, and Fc(T) i )∈(0,1).

[0071] In practical applications, cloud storage services may have a membership permission system. A user's membership permission may directly affect their use of cloud storage space. For example, a user with membership permission may enjoy more storage space in the cloud storage space. Therefore, to ensure the accuracy of activity assessment, it is necessary to first detect the user's membership permission status. In one optional implementation of this embodiment, before inputting the upload and download data into the activity assessment algorithm for activity assessment, the following steps are also included:

[0072] Receive the user's file request for the cloud storage space and check whether the user's membership privileges have expired;

[0073] If so, perform an accumulation operation on the remaining storage space of the user in the cloud storage space to obtain the size of the remaining storage space after the accumulation operation;

[0074] If not, perform a cumulative subtraction operation on the user's remaining storage space in the cloud storage space to obtain the remaining storage space size after the cumulative operation.

[0075] In practice, upon receiving a file request from a user for cloud storage, the system first checks if the user is a member. If so, it further checks if the user's membership period has expired. If not, the user's membership is valid. If the file request requires additional storage space (e.g., for uploading a large file), the user's remaining storage space is incremented by the additional storage space corresponding to the value-added services of the membership. After the file operation is completed, the remaining storage space displayed on the user interface is updated to reflect the actual remaining cloud storage space after uploading a large file and performing the increment operation. If the membership period has expired, the user's remaining cloud storage space is decremented by removing the additional storage space corresponding to the value-added services of the membership. This process provides a more accurate estimate of the user's remaining storage space, thereby improving the accuracy of subsequent activity assessments.

[0076] Step S106: Calculate the target space update frequency based on the frequency adjustment coefficient and the initial space update frequency of the uploaded and downloaded data mapping.

[0077] The above process determines the time window based on user file requests for cloud storage space, calculates upload and download data based on user file processing records within the time window, and inputs the upload and download data into an activity evaluation algorithm for activity evaluation. After normalizing the obtained activity evaluation value to obtain a frequency adjustment coefficient, in this step, the target space update frequency is calculated based on the frequency adjustment coefficient and the initial space update frequency mapped by the upload and download data.

[0078] In specific implementation, to adapt to the usage habits of different users and provide a more flexible target space update frequency, in one optional implementation of this embodiment, before calculating the target space update frequency based on the frequency adjustment coefficient and the initial space update frequency mapped by the upload and download data, the following steps are also included:

[0079] Based on the upload and download frequency, the corresponding preset range is queried in the corresponding relationship table, and the initial space update frequency is determined based on the preset range.

[0080] In the specific execution process, the system acquires the user's file requests for cloud storage space in real time, performs corresponding file operations based on these file requests, and records the file processing records corresponding to the file operations within a specified time window. Based on the file processing records, the system counts the number of file requests executed by the user within the time window to obtain the upload and download frequency. Then, it searches for the preset range of the corresponding initial space update frequency in a preset correspondence table. Based on the preset range in the correspondence table, it determines the initial space update frequency used by the user.

[0081] For example, when the number of file uploads is in the range of [50, 100), the initial space update frequency can be updated once every 5 minutes; when the number of file uploads is in the range of [100, 200), the initial space update frequency can be updated once every 3 minutes; when the number of file uploads is in the range of [200, 500), the initial space update frequency can be updated once every 1 minute.

[0082] It should be noted that the process of obtaining the initial space update frequency by looking up a table based on the upload and download frequency can be executed in the following ways: either by determining a time window based on the user's file requests for cloud storage space, calculating the upload and download data based on the user's file processing records within the time window, or by inputting the upload and download data into an activity evaluation algorithm for activity evaluation, and then normalizing the obtained activity evaluation value to obtain a frequency adjustment coefficient.

[0083] Specifically, after obtaining the user's upload and download frequencies within a specified time window, and determining the initial space update frequency used by the user based on a preset range corresponding to the upload and download frequencies in a corresponding relationship table, in an optional implementation of this embodiment, the target space update frequency is calculated based on the frequency adjustment coefficient and the initial space update frequency mapped by the upload and download data, including:

[0084] The initial spatial update frequency is weighted using the frequency adjustment coefficient as a weight to obtain the target spatial update frequency.

[0085] For example, when the frequency adjustment coefficient is α and the initial space update frequency is P0, the target space update frequency P can be calculated as follows:

[0086] P = P0 * α

[0087] Where P is the target space update frequency, P0 is the initial space update frequency, and α is the frequency adjustment coefficient; since the normalized score Fc(T) i ) and activity assessment value F(T) i They are directly proportional, F(T) i The larger Fc(T) is, the greater Fc(T) is. i The larger the value of α and the closer it is to 1, the smaller the resulting α will be, thus allowing for a significant adjustment of the initial space update frequency.

[0088] Step S108: Based on the target space update frequency, update the files in the remaining storage space of the user in the cloud storage space.

[0089] The above process first determines a time window based on the user's file requests for cloud storage space, calculates upload and download data based on the user's file processing records within the time window, then inputs the upload and download data into an activity evaluation algorithm for activity evaluation, and normalizes the obtained activity evaluation value to obtain a frequency adjustment coefficient. Finally, based on the frequency adjustment coefficient and the initial space update frequency mapped by the upload and download data, the target space update frequency is calculated. In this step, based on the calculated target space update frequency, the remaining storage space of the user in the cloud storage space is updated with files.

[0090] In practice, based on the user's upload and download data within a specified time window, a frequency adjustment coefficient can be calculated for that user, thereby obtaining a target space update frequency suitable for that user. Based on this target space update frequency, file update operations can be performed, thereby optimizing storage space usage and improving overall performance. At the same time, this process can also achieve dynamic adjustment of the target space update frequency, thus adjusting the frequency of file updates in the cloud storage space according to the user's activity and needs, reducing network congestion and avoiding resource waste.

[0091] In practical applications, before updating files, a timer can be configured, and the files in the cloud storage space can be updated periodically based on the countdown set by the timer. In one optional implementation of this embodiment, after calculating the target space update frequency according to the frequency adjustment coefficient and the initial space update frequency mapped by the upload and download data, and before updating files in the user's remaining storage space in the cloud storage space based on the target space update frequency, the following steps are also included:

[0092] Configure the countdown timer based on the target space update frequency;

[0093] When the countdown of the timer reaches 0, the remaining storage space in the user's cloud storage space is updated.

[0094] In practice, based on the user's upload and download data within a specified time window, a frequency adjustment coefficient can be calculated for that user, thereby obtaining the target space update frequency suitable for that user. A corresponding timer with a countdown is set according to the target space update frequency. The higher the target space update frequency, the faster the file update speed, and correspondingly, the smaller the countdown value set for the timer. When the countdown is detected to be over, that is, when the timer countdown is 0, the file will be automatically updated, and the remaining storage space size of the user in the cloud storage space will be updated accordingly.

[0095] For example, in the corresponding relationship table, when the number of file uploads is in the range of [100, 200), the initial space update frequency can be updated once every 3 minutes. If the frequency adjustment coefficient calculated based on user A's upload and download data within a specified time window is 0.7, and user A's file upload count within the specified time window is 150 times / minute, then user A's target space update frequency can be calculated to be once every 2.1 minutes (3 * 0.7 = 2.1). Accordingly, a timer can be set to count down for 2.1 minutes. When the timer countdown ends (i.e., after 2.1 minutes), the file is updated, and the remaining storage space size of user A in the cloud storage space is updated accordingly.

[0096] In summary, the cloud storage space management method provided in this embodiment first determines a time window based on the user's file requests for cloud storage space, calculates upload and download data based on the user's file processing records within the time window, then inputs the upload and download data into an activity evaluation algorithm for activity evaluation, and normalizes the obtained activity evaluation value to obtain a frequency adjustment coefficient. Subsequently, the target space update frequency is calculated based on the frequency adjustment coefficient and the initial space update frequency mapped by the upload and download data. Finally, the remaining storage space in the user's cloud storage space is updated based on the target space update frequency, thereby achieving the rational utilization of cloud storage space resources.

[0097] The following is in conjunction with the appendix Figure 3 Taking the application of the cloud storage space management method provided in this embodiment in the scenario of managing remaining storage space as an example, the cloud storage space management method provided in this embodiment will be further explained. (Refer to...) Figure 3 The cloud storage space management method applied to the scenario of managing remaining storage space specifically includes steps S302 to S332.

[0098] Step S302: Receive the user's file request.

[0099] Step S304: Check if the user's membership privileges have expired. If yes, proceed to step S306; otherwise, proceed to step S308.

[0100] Step S306: Accumulate the remaining storage space of the user in the cloud storage space and obtain the corresponding storage space size.

[0101] Step S308: Subtract the remaining storage space of the user in the cloud storage space and obtain the corresponding storage space size.

[0102] Step S310: Obtain the user's file transfer request.

[0103] Step S312: Perform file transfer processing and generate file transfer records.

[0104] Step S314: Determine the time window based on the timestamp and time window length carried in the file request.

[0105] Step S316: Delete the file processing records in the historical time window before the start of the time window.

[0106] Step S318: Calculate the file upload and download frequency corresponding to the user's file processing records within the time window.

[0107] Step S320: Extract the file size from the file processing records within the time window and calculate the file upload and download volume.

[0108] Step S322: Input the upload and download frequency and upload and download volume into the activity evaluation algorithm to evaluate activity.

[0109] Step S324: Normalize the obtained activity evaluation value to obtain the frequency adjustment coefficient.

[0110] Step S326: Based on the upload and download frequency, query the corresponding preset range in the corresponding relationship table to determine the initial space update frequency.

[0111] Step S328: The initial spatial update frequency is weighted using the frequency adjustment coefficient as the weight to obtain the target spatial update frequency.

[0112] Step S330: Configure the countdown timer based on the target space update frequency.

[0113] Step S332: When the countdown of the timer is detected to be 0, the remaining storage space in the user's cloud storage space is updated to realize the management of the remaining storage space.

[0114] The cloud storage space management method provided in this embodiment first determines a time window based on the user's file requests for cloud storage space, calculates upload and download data based on the user's file processing records within the time window, then inputs the upload and download data into an activity evaluation algorithm for activity evaluation, and calculates a frequency adjustment coefficient based on the obtained activity evaluation value. Subsequently, it calculates a target space update frequency based on the frequency adjustment coefficient and the initial space update frequency mapped by the upload and download data, and finally updates files in the user's remaining storage space in the cloud storage space based on the target space update frequency, thereby achieving reasonable utilization of cloud storage space resources.

[0115] Figure 4 This is a schematic diagram of a cloud storage space management device provided in one embodiment of the present invention, as shown below. Figure 4 The device includes:

[0116] The data calculation module 402 is configured to determine a time window based on the user's file requests for cloud storage space, and calculate the uploaded and downloaded data according to the user's file processing records within the time window;

[0117] The coefficient acquisition module 404 is configured to input the uploaded and downloaded data into the activity evaluation algorithm for activity evaluation, and calculate the frequency adjustment coefficient based on the obtained activity evaluation value.

[0118] The frequency calculation module 406 is configured to calculate the target space update frequency based on the frequency adjustment coefficient and the initial space update frequency mapped by the uploaded and downloaded data;

[0119] The file update module 408 is configured to update the remaining storage space of the user in the cloud storage space based on the space update frequency.

[0120] The cloud storage space management device provided in this embodiment first runs a data calculation module 402 to determine a time window based on the user's file requests for the cloud storage space, and calculates the upload and download data according to the user's file processing records within the time window. Next, a coefficient acquisition module 404 runs, inputs the upload and download data into an activity evaluation algorithm for activity evaluation, and calculates a frequency adjustment coefficient based on the obtained activity evaluation value. Then, a frequency calculation module 406 runs, calculates the target space update frequency based on the frequency adjustment coefficient and the initial space update frequency mapped by the upload and download data. Finally, a file update module 408 runs, updates the files in the user's remaining storage space in the cloud storage space based on the target space update frequency. This method manages the cloud storage space to achieve rational utilization of cloud storage space resources.

[0121] The cloud storage space management device provided in one embodiment of this specification can implement the various processes in the foregoing method embodiments and achieve the same functions and effects, which will not be repeated here.

[0122] Furthermore, one embodiment of this specification also provides a cloud storage space management device. Figure 5 This is a schematic diagram of the structure of a cloud storage space management device provided in one embodiment of this specification, as shown below. Figure 5 As shown, the device includes: a memory 501, a processor 502, a bus 503, and a communication interface 504. The memory 501, the processor 502, and the communication interface 504 communicate via the bus 503. The communication interface 504 may include input / output interfaces, including but not limited to a keyboard, mouse, monitor, microphone, and loudspeaker.

[0123] Figure 5In the memory 501, computer-executable instructions that can run on the processor 502 are stored. When the processor 502 executes the computer-executable instructions, the following process is implemented:

[0124] Based on the user's file requests for cloud storage space, a time window is determined, and the upload and download data is calculated according to the user's file processing records within the time window.

[0125] The uploaded and downloaded data are input into an activity evaluation algorithm to evaluate activity, and a frequency adjustment coefficient is calculated based on the obtained activity evaluation value.

[0126] Calculate the target space update frequency based on the frequency adjustment coefficient and the initial space update frequency of the uploaded and downloaded data mapping;

[0127] Based on the target space update frequency, the remaining storage space of the user in the cloud storage space is updated with files.

[0128] The cloud storage space management device provided in this embodiment, through the cooperation of memory 501, processor 502, bus 503 and communication interface 504, firstly determines a time window based on the user's file requests for cloud storage space, calculates the upload and download data based on the user's file processing records within the time window, then inputs the upload and download data into an activity evaluation algorithm for activity evaluation, and calculates a frequency adjustment coefficient based on the obtained activity evaluation value. Subsequently, based on the frequency adjustment coefficient and the initial space update frequency mapped by the upload and download data, the target space update frequency is calculated. Finally, based on the space update frequency, the remaining storage space of the user in the cloud storage space is updated with files.

[0129] The cloud storage space management device provided in one embodiment of this specification can implement the various processes in the foregoing method embodiments and achieve the same functions and effects, which will not be repeated here.

[0130] Furthermore, another embodiment of this specification provides a computer-readable storage medium for storing computer-executable instructions that, when executed by a processor, implement the following process:

[0131] Based on the user's file requests for cloud storage space, a time window is determined, and the upload and download data is calculated according to the user's file processing records within the time window.

[0132] The uploaded and downloaded data are input into an activity evaluation algorithm to evaluate activity, and a frequency adjustment coefficient is calculated based on the obtained activity evaluation value.

[0133] Calculate the target space update frequency based on the frequency adjustment coefficient and the initial space update frequency of the uploaded and downloaded data mapping;

[0134] Based on the target space update frequency, the remaining storage space of the user in the cloud storage space is updated with files.

[0135] The computer-readable storage medium provided in this embodiment first determines a time window based on the user's file requests for cloud storage space, calculates upload and download data based on the user's file processing records within the time window, then inputs the upload and download data into an activity evaluation algorithm for activity evaluation, and calculates a frequency adjustment coefficient based on the obtained activity evaluation value. Subsequently, based on the frequency adjustment coefficient and the initial space update frequency mapped by the upload and download data, the target space update frequency is calculated. Finally, based on the target space update frequency, the remaining storage space in the user's cloud storage space is updated with files.

[0136] The computer-readable storage medium includes read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk, etc.

[0137] The computer-readable storage medium provided in one embodiment of this specification can implement the various processes in the foregoing method embodiments and achieve the same functions and effects, which will not be repeated here.

[0138] Furthermore, another embodiment of this specification provides a computer program product that, when executed by a processor, implements the following process:

[0139] Based on the user's file requests for cloud storage space, a time window is determined, and the upload and download data is calculated according to the user's file processing records within the time window.

[0140] The uploaded and downloaded data are input into an activity evaluation algorithm to evaluate activity, and a frequency adjustment coefficient is calculated based on the obtained activity evaluation value.

[0141] Calculate the target space update frequency based on the frequency adjustment coefficient and the initial space update frequency of the uploaded and downloaded data mapping;

[0142] Based on the target space update frequency, the remaining storage space of the user in the cloud storage space is updated with files.

[0143] The computer program product provided in this embodiment first determines a time window based on the user's file requests for cloud storage space, calculates upload and download data based on the user's file processing records within the time window, then inputs the upload and download data into an activity evaluation algorithm for activity evaluation, and normalizes the obtained activity evaluation value to obtain a frequency adjustment coefficient. Subsequently, based on the frequency adjustment coefficient and the initial space update frequency mapped by the upload and download data, the target space update frequency is calculated. Finally, based on the target space update frequency, the remaining storage space of the user in the cloud storage space is updated with files.

[0144] The computer program product provided in one embodiment of this specification can implement the various processes in the foregoing method embodiments and achieve the same functions and effects, which will not be repeated here.

[0145] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-readable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0146] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0147] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0148] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0149] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0150] Memory may include non-persistent storage in computer-readable storage media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable storage media.

[0151] Computer-readable storage media include both permanent and non-permanent, removable and non-removable media that can store information by any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer-readable storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable storage media does not include transient media, such as modulated data signals and carrier waves.

[0152] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0153] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0154] The above description is merely an embodiment of this application and is not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.

Claims

1. A cloud storage space management method, characterized in that, The method includes: Based on the user's file requests for cloud storage space, a time window is determined, and upload and download data are calculated according to the user's file processing records within the time window; the upload and download data is the upload and download frequency and upload and download volume calculated based on the user's file processing records within the time window. The uploaded and downloaded data are input into an activity evaluation algorithm to evaluate activity, and a frequency adjustment coefficient is calculated based on the obtained activity evaluation value. Calculate the target space update frequency based on the frequency adjustment coefficient and the initial space update frequency of the uploaded and downloaded data mapping; Based on the target space update frequency, the remaining storage space of the user in the cloud storage space is updated with files.

2. The cloud storage space management method according to claim 1, characterized in that, The calculation of upload and download data based on the user's file processing records within the time window includes: Delete the file processing records within the historical time window preceding the start of the stated time window; Calculate the upload and download frequency corresponding to the file processing records of the user within the time window, extract the file size from the file processing records within the time window, calculate the upload and download volume, and use the upload and download frequency and the upload and download volume as the upload and download data.

3. The cloud storage space management method according to claim 2, characterized in that, The step of inputting the uploaded and downloaded data into the activity evaluation algorithm for activity evaluation includes: The frequency ratio is obtained by calculating the ratio between the upload and download frequencies and the preset critical frequency. The ratio is calculated by comparing the upload / download volume with the average upload / download volume over multiple historical time windows. Based on the timestamp carried in the file request, the remaining storage space corresponding to the timestamp is obtained, and the ratio of the remaining storage space corresponding to the timestamp to the maximum storage space is calculated to obtain the space ratio. The activity evaluation value is obtained by calculating the activity level based on the frequency ratio, the quantity ratio, the spatial ratio, and preset parameters.

4. The cloud storage space management method according to claim 3, characterized in that, Before the process of inputting the uploaded and downloaded data into the activity evaluation algorithm for activity evaluation is executed, the method further includes: Receive the user's file request for the cloud storage space and check whether the user's membership privileges have expired; If so, perform an accumulation operation on the remaining storage space of the user in the cloud storage space to obtain the size of the remaining storage space after the accumulation operation; If not, perform a cumulative reduction operation on the user's remaining storage space in the cloud storage space to obtain the remaining storage space size after the cumulative reduction operation.

5. The cloud storage space management method according to claim 1, characterized in that, The step of calculating the target space update frequency based on the frequency adjustment coefficient and the initial space update frequency mapped by the uploaded and downloaded data includes: The initial spatial update frequency is weighted using the frequency adjustment coefficient as a weight to obtain the target spatial update frequency.

6. The cloud storage space management method according to claim 1, characterized in that, The process of determining a time window based on a user's file requests for cloud storage space, and calculating upload and download data based on the user's file processing records within that time window, includes: If a user's file transfer request is received, the file transfer process is performed and a file transfer record is generated; Based on the user's file requests for cloud storage space, a time window is determined, and the upload and download data is calculated according to the user's file processing records within the time window. The user's file processing records within the time window include the file transfer records; the file transfer request file was not stored in the remaining storage space.

7. The cloud storage space management method according to claim 1, characterized in that, After the step of calculating the target space update frequency based on the frequency adjustment coefficient and the initial space update frequency mapped by the uploaded and downloaded data is executed, and before the step of updating files in the remaining storage space of the user in the cloud storage space based on the target space update frequency is executed, the method further includes: Configure the countdown timer based on the target space update frequency; When the countdown of the timer reaches 0, the remaining storage space in the user's cloud storage space is updated.

8. The cloud storage space management method according to claim 1, characterized in that, The cloud storage space uses key-value pairs for data storage. If the key-value pair is detected to be expired, the storage space occupied by the key-value pair is released, and the remaining storage space size is updated.

9. The cloud storage space management method according to claim 1, characterized in that, The determination of the time window based on user file requests for cloud storage space includes: The time window is determined based on the timestamp and time window length carried by the user in the file request for cloud storage space.

10. The cloud storage space management method according to claim 1, characterized in that, After the step of determining a time window based on a user's file requests for cloud storage space and calculating upload and download data based on the user's file processing records within the time window is executed, and before the step of calculating the target space update frequency based on the frequency adjustment coefficient and the initial space update frequency mapped by the upload and download data is executed, the method further includes: Based on the upload and download frequency, the corresponding preset range is queried in the corresponding relationship table, and the initial space update frequency is determined based on the preset range.

11. A cloud storage space management device, characterized in that, include: The data calculation module is configured to determine a time window based on the user's file requests for cloud storage space, and calculate upload and download data based on the user's file processing records within the time window; the upload and download data is the upload and download frequency and upload and download volume calculated based on the user's file processing records within the time window. The coefficient acquisition module is configured to input the uploaded and downloaded data into the activity evaluation algorithm for activity evaluation, and calculate the frequency adjustment coefficient based on the obtained activity evaluation value. The frequency calculation module is configured to calculate the target space update frequency based on the frequency adjustment coefficient and the initial space update frequency mapped by the uploaded and downloaded data; The file update module is configured to update the files in the user's remaining storage space in the cloud storage space based on the target space update frequency.

12. A cloud storage space management device, characterized in that, The method includes a memory and a processor, wherein the memory stores computer-executable instructions that, when executed on the processor, enable the implementation of the steps of the method described in any one of claims 1-10.

13. A computer-readable storage medium storing computer-executable instructions, characterized in that, When the computer-executable instructions are executed by a processor, they can implement the steps of the method described in any one of claims 1-10.

14. A computer program product, characterized in that, The computer program product includes a cloud storage space management program, which, when executed by a processor, is capable of implementing the steps of the method described in any one of claims 1-10.

Citation Information

Patent Citations

  • Information recommendation method and device and computer readable storage medium

    CN114117221A

  • Data processing method and device, terminal equipment and storage medium

    CN114880339A