A cloud storage management method and system based on big data

By analyzing the file update records of cloud storage users, dynamically adjusting the backup frequency and user group classification, the problem of data loss and resource waste caused by cloud storage scheduled backup is solved, and load-balanced cloud storage management is achieved.

CN118075294BActive Publication Date: 2024-10-18上海瑞技计算机科技有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410303450.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-18
Publication Date
2024-10-18
Estimated Expiration
2044-03-18

AI Technical Summary

Technical Problem

Scheduled backup of cloud storage is prone to problems of data loss and resource waste, especially the mismatch in backup frequency due to different user activity levels.

Method used

By analyzing the historical file update records of cloud storage users, the update activity of each file is calculated and the backup frequency is determined based on the activity. Users are divided into different groups, and files are managed according to the backup frequency to dynamically adjust the backup strategy.

Benefits of technology

It effectively avoids data loss and resource waste, ensures timely backup of frequently updated files, and low-frequency backup of rarely updated files, achieves load balancing, and avoids load problems caused by unbalanced backup frequencies on storage nodes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118075294B_ABST
    Figure CN118075294B_ABST
Patent Text Reader

Abstract

The present invention relates to a cloud storage management method and system based on big data. By analyzing the historical file update records of each cloud storage user, the update activity of each file is obtained, and the backup frequency of each file is formulated based on the update activity. The more frequently updated the file, the higher the backup frequency, and the less frequently updated the file, the lower the backup frequency. Therefore, the problem of data loss and resource waste that is prone to occur in scheduled backup of cloud disks is solved. In addition, the application also determines the user activity of the corresponding user based on the file update activity, and uses the user activity to divide the users to achieve balanced load, thereby avoiding the phenomenon of unbalanced load of storage nodes due to different backup frequencies.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a cloud storage management method and system based on big data. Background Art

[0002] Cloud storage is a data storage service that stores data on a remote server provided by a third party and accesses and manages it through the Internet. Compared with traditional local storage, cloud storage has the advantages of low cost, high scalability, and easy management and maintenance. Users can choose the appropriate storage capacity and service type according to their needs, and upload, download, backup, archive, share, and other operations on data through the interface or API provided by the cloud storage provider.

[0003] In order to ensure data security, cloud storage providers generally back up data in remote servers at regular intervals. However, the update frequency of corresponding cloud disk data varies depending on the activity of different cloud storage users. Some users' cloud disks store data with a high update frequency, such as statistical tables, daily reports, etc. If such data is backed up at a fixed time, data loss is likely to occur. Some users' cloud disks store data with a low frequency, such as stored videos, pictures, archived documents, etc. If such data is backed up at a fixed time, a large amount of resources will be wasted. Summary of the invention

[0004] In view of this, the purpose of the present invention is to provide a cloud storage management method and system based on big data to solve the problems of data loss and resource waste that are prone to occur in scheduled cloud disk backup in the prior art.

[0005] In order to achieve the above object, the present invention adopts the following technical solutions:

[0006] A cloud storage management method based on big data of the present invention comprises the following steps:

[0007] Obtain cloud space update records of a target time period for multiple cloud storage users, wherein the cloud space update records are extracted from user behavior logs, and the target time period is a time period from a unit time to the current time point;

[0008] Determine the update activity of each file in the cloud space based on the cloud space update record; and determine the backup frequency of each file in the cloud space based on the update activity of each file in the cloud space;

[0009] Determine the user activity of the corresponding user based on the update activity of each file in the cloud space; and divide the multiple cloud storages into multiple user groups based on the user activity of multiple cloud storage users;

[0010] Backup files of multiple user groups based on the backup frequency of each file.

[0011] In an embodiment of the present application, determining the update activity of each file in the cloud space based on the cloud space update record includes:

[0012] Extract the update time point t of each file from the cloud space update record i , and each update time point t i The corresponding file size D i , where the update time point t i To add files, delete files, or change the time point corresponding to files;

[0013] When the number of update time points of file n is greater than two, based on each update time point t i The corresponding file size D i Calculate the update time of each file at t i The size change value C i , where C i =D i -D i-1 ;

[0014] Calculate the multiple size change values ​​C i The average value C A , and based on the average value C A and update time t i The number i constructs the update activity A of the corresponding file n , A n =α×C A +β×i, where α is the first weight and β is the second weight;

[0015] When the update time points of file n are greater than or equal to two, the update activity of file n is A n Set to 0.

[0016] In an embodiment of the present application, determining the backup frequency of each file in the cloud space based on the update activity of each file in the cloud space includes:

[0017] Get the lowest frequency f of each file in the cloud space min , where the lowest frequency is greater than or equal to 0;

[0018] Based on the lowest frequency f min , the update activity A of the file n n Determine the backup frequency f of each file in the cloud space n , f n =f min +An ×γ, where γ is a preset scaling factor.

[0019] In an embodiment of the present application, determining the user activity of the corresponding user based on the update activity of each file in the cloud space includes:

[0020] The update activity of all files of each user A n Sum and get the user activity A C .

[0021] In one embodiment of the present application, the plurality of cloud storages are divided into a plurality of user groups based on the user activities of the plurality of cloud storage users, including:

[0022] User activity for all cloud storage users A n Sorting and grouping are performed to obtain multiple user groups;

[0023] Based on the multiple user groups and in combination with the load balancing of multiple storage nodes, cloud storage users are divided to obtain multiple user groups, wherein files corresponding to one user group are stored in one or a group of backup servers.

[0024] In one embodiment of the present application, the user activity A of all cloud storage users is n Sorting and grouping are performed to obtain multiple user activity levels, including:

[0025] User activity for all cloud storage users A n Sort and get the user sequence;

[0026] The user sequence is divided into a plurality of user groups, wherein the difference in the total amount of resources between any two user groups does not exceed a preset threshold.

[0027] In an embodiment of the present application, based on the multiple user groups and in combination with the load balancing of multiple storage nodes, cloud storage users are divided to obtain multiple user groups, including:

[0028] S1, among the undivided user groups, taking multiple user groups with the highest user activity distribution range and the lowest user activity distribution range as current user groups; dividing the multiple current user groups into the same user group, wherein the sum of the activities of the multiple current user groups is within a preset range;

[0029] S2, repeating step S1 until all user groups are divided into multiple user groups.

[0030] In one embodiment of the present application, backup management is performed on files of multiple user groups based on the backup frequency of each file, including:

[0031] Allocate a storage node and backup node to each user group;

[0032] Move the files corresponding to each user group to the corresponding storage node, and automatically back up the files to the corresponding backup node based on the backup frequency of each file.

[0033] In one embodiment of the present application, it also includes:

[0034] When the file corresponding to each user group is moved to the corresponding storage node, the file is copied in the storage node to obtain a file copy; after the move is successful, the file copy is deleted.

[0035] The present application also provides a cloud storage management system based on big data, including:

[0036] An acquisition module, used to acquire cloud space update records of a target time period of multiple cloud storage users, wherein the cloud space update records are extracted from user behavior logs, and the target time period is a time period from a unit time to the current time point;

[0037] A frequency determination module, configured to determine the update activity of each file in the cloud space based on the cloud space update record; and determine the backup frequency of each file in the cloud space based on the update activity of each file in the cloud space;

[0038] A group division module is used to determine the user activity of the corresponding user based on the update activity of each file in the cloud space; and divide the multiple cloud storages into multiple user groups based on the user activity of the multiple cloud storage users;

[0039] The management module is used to perform backup management on files of multiple user groups based on the backup frequency of each file.

[0040] The beneficial effects of the present invention are as follows: a cloud storage management method and system based on big data of the present invention obtains the update activity of each file by analyzing the historical file update records of each cloud storage user, and formulates the backup frequency of each file based on the update activity. The more frequently updated files have a higher backup frequency, and the less frequently updated files have a lower backup frequency. Therefore, the problems of data loss and resource waste that are prone to occur in scheduled backup of cloud disks are solved. In addition, the present application also determines the user activity of the corresponding user based on the file update activity, and uses the user activity to divide the users to achieve balanced load, thereby avoiding the phenomenon of unbalanced load on storage nodes due to different backup frequencies. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The present invention will be further described below in conjunction with the accompanying drawings and embodiments:

[0042] Figure 1It is an application scenario diagram of a cloud storage management method based on big data shown in an embodiment of the present application;

[0043] Figure 2 It is a flow chart of a cloud storage management method based on big data shown in one embodiment of the present application;

[0044] Figure 3 This is a schematic diagram of the user group division structure in this application;

[0045] Figure 4 It is a structural diagram of a cloud storage management system based on big data shown in an embodiment of the present application;

[0046] Figure 5 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION

[0047] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0048] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show the layers related to the present invention rather than being drawn according to the number, shape and size of the layers in actual implementation. In actual implementation, the type, quantity and proportion of each layer may be changed arbitrarily, and the layer layout may also be more complicated.

[0049] In the following description, numerous details are discussed to provide a more thorough explanation of embodiments of the present invention; however, it is apparent to one skilled in the art that embodiments of the present invention may be practiced without these specific details.

[0050] Figure 1 is an application scenario diagram of a cloud storage management method based on big data shown in an embodiment of the present application, such as Figure 1As shown, the cloud storage system in the present application is composed of multiple remote servers 110. The user's client 120 can upload and download data with the remote server 110 through the Internet. In the present application, multiple remote servers 110 are managed by a management server 130, and the activity of the corresponding users and files is obtained by retrieving and analyzing the logs of the multiple remote servers 110, and the backup frequency of each file is determined based on the activity, and the file is backed up to the backup server 140 (backup node) based on the backup frequency.

[0051] At the same time, the management server 130 divides users based on user activity, so that the load of each remote server 110 during backup is roughly the same.

[0052] Figure 2 is a flow chart of a cloud storage management method based on big data shown in an embodiment of the present application, such as Figure 2 As shown: A cloud storage management method based on big data in this embodiment may include steps S210 to S240:

[0053] S210, obtaining cloud space update records of a target time period of multiple cloud storage users, wherein the cloud space update records are extracted from user behavior logs, and the target time period is a time period from a unit time of the current time point to the current time point;

[0054] Among them, users cannot directly access the remote server. Generally speaking, users will interact with the remote server through APP or WEB. Therefore, when users access the WEB server or APP server, their behavior will be recorded by the WEB server or APP server, and then a log file (i.e. log) will be formed. These log files contain the user's behavior data. Therefore, by collecting log files, the user's historical behavior and the file update history can be analyzed to obtain the user activity and file activity.

[0055] S220, determining the update activity of each file in the cloud space based on the cloud space update record; and determining the backup frequency of each file in the cloud space based on the update activity of each file in the cloud space;

[0056] When using the cloud storage function, users will demarcate a certain size of cloud space. If it is a private cloud, each user has his or her own cloud space, and if it is a public cloud, a group of users owns a cloud space. The cloud storage users in this application can be private cloud users or public cloud users.

[0057] The update activity is determined based on the update time of each file in the log file and the file size corresponding to the update time. The main idea is that the more frequent the update time and the greater the change in the update file size, the higher the frequency of backup required and the greater the amount of resources consumed by the backup, so the higher the activity.

[0058] Specifically, determining the update activity of each file in the cloud space based on the cloud space update record includes:

[0059] S2201, extracting the update time point t of each file from the cloud space update record i , and each update time point t i The corresponding file size D i , where the update time point t i To add files, delete files, or change the time point corresponding to files;

[0060] When users upload new files, delete existing files, or edit files, corresponding update records will be generated. The update time and file information (including size information) in the update record can reflect the frequency and degree of change of the file update.

[0061] S2202: when the update time points of file n are greater than two, based on each update time point t i The corresponding file size D i Calculate the update time of each file at t i The size change value C i , where C i =D i -D i-1 ;

[0062] Among them, if a new file is uploaded or an existing file is deleted, and during the storage process, the file itself is not edited, only downloading, sharing and other operations are performed. This application is not considered an update, and the original backup file can be used for backup. In this case, there are at most two update time points (upload time point and deletion time point). In this case, the size change value is the data volume of the file itself. However, since the file has not changed during the storage process, it is only backed up once (can be backed up to multiple backup nodes, but only backed up once), and there is no need for repeated backup. In some cases, there may be two update time points (upload time point and edit time point), and there are changes in the file. In order to cope with this situation, this application can also set a minimum backup frequency, and the minimum backup frequency will be introduced later.

[0063] If the file has been updated more than two times, the instruction manual file has been edited at least once. For example, spreadsheet files, design files, etc. need to be updated regularly. For such frequently updated files, the backup frequency needs to be increased. The backup frequency is also related to the degree of change in the content of the file. Since directly parsing the file content will take up a lot of computing power and there are privacy issues, this application determines the degree of change in the file content by calculating the size change value of the file at the update time point.

[0064] S2203, calculating the multiple size change values ​​C i The average value C A , and based on the average value C A and update time t i The number i constructs the update activity A of the corresponding file n , A n =α×C A +β×i, where α is the first weight and β is the second weight;

[0065] Multiple size change values ​​C i The average value C A It is used to reflect the average change size of the file when the file is updated multiple times, and multiple size change values ​​C i The average value C A It can reflect the resources occupied by the server when backing up files to a certain extent. The update time point t i The number i is a parameter that directly reflects the file update frequency. Therefore, this application uses multiple size change values ​​C i The average value C A and update time t i The weighted sum of the number of i constitutes the update activity of the file.

[0066] S2204: When the update time points of file n are greater than or equal to two, the update activity of file n is increased to A. n Set to 0.

[0067] As mentioned above, this application regards this situation as the file has not changed during the storage process, so it is only backed up once. Therefore, the update activity is set to 0.

[0068] In an embodiment of the present application, determining the backup frequency of each file in the cloud space based on the update activity of each file in the cloud space includes:

[0069] S2211, obtaining the lowest frequency f of each file in the cloud space min , where the minimum frequency is greater than or equal to 0; the minimum frequency is set manually, for example, it can be set to 1 time / year.

[0070] S2212, based on the lowest frequency f min , the update activity A of the file n n Determine the backup frequency f of each file in the cloud space n , f n =f min +A n ×γ, where γ is a preset scaling factor.

[0071] In this application, the file update activity is directly linked to the backup frequency, and the minimum backup frequency is guaranteed. Most files stored in the cloud space that will not change are backed up at the lowest frequency. Files that are updated frequently and have large changes are backed up at a higher frequency. This ensures that the server resources will not be wasted, and that the file content can be backed up in time and will not be lost.

[0072] S230, determining the user activity of the corresponding user based on the update activity of each file in the cloud space; and dividing the plurality of cloud storages into a plurality of user groups based on the user activity of the plurality of cloud storage users;

[0073] The user activity is obtained by summing the update activity of each file in the cloud space. In this application, the user activity is represented by A C User activity A C It is used to indicate the resources that the server needs to occupy when backing up the corresponding user's files. The higher the user activity, the more resources are required. Among them, user activity is composed of two dimensions: backup frequency and file change degree.

[0074] Since a large number of files are backed up at different backup frequencies, load imbalance is likely to occur during this process. The purpose of dividing user groups is to balance the load of each server.

[0075] In one embodiment of the present application, the plurality of cloud storages are divided into a plurality of user groups based on the user activities of the plurality of cloud storage users, including:

[0076] S231, user activity A for all cloud storage users n Sorting and grouping are performed to obtain multiple user groups; specifically including:

[0077] S2311, user activity A for all cloud storage users n Sort and get the user sequence;

[0078] S2312: Divide the user sequence to obtain multiple user groups, wherein the difference in the total amount of resources between any two user groups does not exceed a preset threshold.

[0079] The present application divides the user sequence according to the total amount of file resources so that the total amount of file resources of each user group is generally consistent.

[0080] S232, based on the multiple user groups and in combination with the load balancing of multiple storage nodes, the cloud storage users are divided to obtain multiple user groups, wherein files corresponding to one user group are stored in one or a group of backup servers.

[0081] Figure 3 This is a schematic diagram of the user group division structure in this application, such as Figure 3 As shown in the figure, the user group classification includes:

[0082] S1, among the undivided user groups, taking multiple user groups with the highest user activity distribution range and the lowest user activity distribution range as current user groups; dividing the multiple current user groups into the same user group, wherein the sum of the activities of the multiple current user groups is within a preset range;

[0083] S2, repeating step S1 until all user groups are divided into multiple user groups.

[0084] Since the user sequence is arranged according to the user activity, multiple user groups with the highest and lowest user activity distribution ranges are used as current user groups; when multiple current user groups are divided into the same user group, it can be ensured that the total amount of file resources of each user group is roughly consistent and the total activity is roughly consistent. When storing, each or each group of remote servers stores a user group. When backing up, the load generated on each or each group of remote servers can be roughly consistent.

[0085] In addition, since user activity generally satisfies the normal distribution, there are more users with intermediate activity. It is impossible to achieve true balance when dividing user groups. Therefore, the following conditions must be met overall: user groups with higher total user activity have lower total file resources; user groups with lower total user activity have higher total file resources.

[0086] S240, backing up and managing files of multiple user groups based on the backup frequency of each file

[0087] In one embodiment of the present application, backup management is performed on files of multiple user groups based on the backup frequency of each file, including:

[0088] S241, allocating a storage node and a backup node to each user group;

[0089] S242, moving the files corresponding to each user group to the corresponding storage node, and automatically backing up the files to the corresponding backup node based on the backup frequency of each file. When the files corresponding to each user group are moved to the corresponding storage node, the files are copied in the storage node to obtain a file copy; after the move is successful, the file copy is deleted.

[0090] Among them, the backup frequency of each file is obtained in the previous text. This application allocates a storage node and a backup node for each user group. The file resources of each user group are transferred to the corresponding storage node. Then, automatic backup can be performed according to the corresponding backup frequency, and the backup is in the corresponding backup node.

[0091] The present invention provides a cloud storage management method based on big data, which obtains the update activity of each file by analyzing the historical file update records of each cloud storage user, and formulates the backup frequency of each file based on the update activity. The more frequently updated files have a higher backup frequency, and the less frequently updated files have a lower backup frequency. Therefore, the problems of data loss and resource waste that are prone to occur in scheduled backup of cloud disks are solved. In addition, the present application also determines the user activity of the corresponding user based on the file update activity, and divides the users by using the user activity to achieve balanced load, thereby avoiding the phenomenon of unbalanced load on storage nodes due to different backup frequencies.

[0092] like Figure 4 As shown, the present application also provides a cloud storage management system based on big data, including:

[0093] An acquisition module, used to acquire cloud space update records of a target time period of multiple cloud storage users, wherein the cloud space update records are extracted from user behavior logs, and the target time period is a time period from a unit time to the current time point;

[0094] A frequency determination module, configured to determine the update activity of each file in the cloud space based on the cloud space update record; and determine the backup frequency of each file in the cloud space based on the update activity of each file in the cloud space;

[0095] A group division module is used to determine the user activity of the corresponding user based on the update activity of each file in the cloud space; and divide the multiple cloud storages into multiple user groups based on the user activity of the multiple cloud storage users;

[0096] The management module is used to perform backup management on files of multiple user groups based on the backup frequency of each file.

[0097] The present invention provides a cloud storage management system based on big data, which obtains the update activity of each file by analyzing the historical file update records of each cloud storage user, and formulates the backup frequency of each file based on the update activity. The more frequently updated files have a higher backup frequency, and the less frequently updated files have a lower backup frequency. Therefore, the problems of data loss and resource waste that are prone to occur in scheduled backup of cloud disks are solved. In addition, the present application also determines the user activity of the corresponding user based on the file update activity, and divides the users by using the user activity to achieve balanced load, thereby avoiding the phenomenon of unbalanced load on storage nodes due to different backup frequencies.

[0098] Figure 5 The structure diagram of the computer system suitable for implementing the electronic device of the embodiment of the present application is shown. It should be noted that: Figure 5 The computer system 500 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0099] like Figure 5 As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 502 or the program loaded from the storage part 508 to the random access memory (RAM) 503, such as executing the method in the above embodiment. In the RAM 503, various programs and data required for system operation are also stored. The CPU 501, the ROM 502 and the RAM 503 are connected to each other through the bus 504. The input / output (I / O) interface 505 is also connected to the bus 504.

[0100] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed so that a computer program read therefrom is installed into the storage section 508 as needed.

[0101] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 509, and / or installed from a removable medium 511. When the computer program is executed by a central processing unit (CPU) 501, various functions defined in the system of the present application are executed.

[0102] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. This propagated data signal can take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. A computer program contained on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0103] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0104] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0105] Another aspect of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor of a computer, the computer executes the above method. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.

[0106] Another aspect of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method provided in each of the above embodiments.

[0107] The above embodiments are only preferred embodiments for fully illustrating the present application, and the protection scope of the present application is not limited thereto. Any equivalent substitution or change made by a person skilled in the art based on the present application is within the protection scope of the present application.

Claims

1. A cloud storage management method based on big data, characterized in that: Includes steps: Obtain cloud space update records of a target time period for multiple cloud storage users, wherein the cloud space update records are extracted from user behavior logs, and the target time period is a time period from a unit time before a current time point to the current time point; Determining the update activity of each file in the cloud space based on the cloud space update record; and determining the backup frequency of each file in the cloud space based on the update activity of each file in the cloud space; determining the update activity of each file in the cloud space based on the cloud space update record, including: extracting the update time point t of each file from the cloud space update record i , and each update time point t i The corresponding file size D i , wherein the update time point t i The time point corresponding to adding a file, deleting a file, or changing a file; when the update time point of file n is greater than two, based on each update time point t i The corresponding file size D i Calculate the update time of each file at t i The size change value C i , where C i =D i -D i-1 ; Calculate the multiple size change values ​​C i The average value C A , and based on the average value C A and update time t i The number i constructs the update activity A of the corresponding file n , A n =α×C A +β×i, where α is the first weight and β is the second weight; when the update time point of file n is less than or equal to two, the update activity of file n is A n is set to 0; determining the backup frequency of each file in the cloud space based on the update activity of each file in the cloud space, including: obtaining the minimum frequency f of each file in the cloud space min , wherein the lowest frequency is greater than or equal to 0; based on the lowest frequency f min , the update activity A of the file n n Determine the backup frequency f of each file in the cloud space n , f n =f min +A n ×γ, where γ is the preset scaling factor; Determine the user activity of the corresponding user based on the update activity of each file in the cloud space; and divide the multiple cloud storage users into multiple user groups based on the user activity of the multiple cloud storage users; Backup management is performed on files of multiple user groups based on the backup frequency of each file. Backup management is performed on files of multiple user groups based on the backup frequency of each file, including: allocating a storage node and a backup node to each user group; moving the files corresponding to each user group to the corresponding storage node, and automatically backing up the files to the corresponding backup node based on the backup frequency of each file.

2. The cloud storage management method based on big data according to claim 1, characterized in that: The user activity of the corresponding user is determined based on the update activity of each file in the cloud space, including: The update activity of all files of each user A n Sum and get the user activity A C .

3. The cloud storage management method based on big data according to claim 2, characterized in that: Dividing the plurality of cloud storage users into a plurality of user groups based on the user activities of the plurality of cloud storage users includes: User activity for all cloud storage users A C Sorting and grouping are performed to obtain multiple user groups; Based on the multiple user groups and in combination with the load balancing of multiple storage nodes, cloud storage users are divided to obtain multiple user groups, wherein files corresponding to one user group are stored in one or a group of backup servers.

4. The cloud storage management method based on big data according to claim 3 is characterized in that: User activity for all cloud storage users A C Sorting and grouping are performed to obtain multiple user groups, including: User activity for all cloud storage users A C Sort and get the user sequence; The user sequence is divided into a plurality of user groups, wherein the difference in the total amount of resources between any two user groups does not exceed a preset threshold.

5. The cloud storage management method based on big data according to claim 3, characterized in that: Based on the multiple user groups and combined with the load balancing of multiple storage nodes, cloud storage users are divided to obtain multiple user groups, including: S1, among the undivided user groups, taking multiple user groups with the highest user activity distribution range and the lowest user activity distribution range as current user groups; dividing the multiple current user groups into the same user group, wherein the sum of the activities of the multiple current user groups is within a preset range; S2, repeating step S1 until all user groups are divided into multiple user groups.

6. The cloud storage management method based on big data according to claim 1, characterized in that: Also includes: When the file corresponding to each user group is moved to the corresponding storage node, the file is copied in the storage node to obtain a file copy; After the move is successful, the file copy is deleted.

7. A cloud storage management system based on big data, characterized in that: include: An acquisition module, used to acquire cloud space update records of a target time period of multiple cloud storage users, wherein the cloud space update records are extracted from user behavior logs, and the target time period is a time period from a unit time before the current time point to the current time point; A frequency determination module is used to determine the update activity of each file in the cloud space based on the cloud space update record; and determine the backup frequency of each file in the cloud space based on the update activity of each file in the cloud space; determining the update activity of each file in the cloud space based on the cloud space update record includes: extracting the update time point t of each file from the cloud space update record i , and each update time point t i The corresponding file size D i , where the update time point t i The time point corresponding to adding a file, deleting a file, or changing a file; when the update time point of file n is greater than two, based on each update time point t i The corresponding file size D i Calculate the update time of each file at t i The size change value C i , where C i =D i -D i-1 ; Calculate the multiple size change values ​​C i The average value C A , and based on the average value C A and update time t i The number i constructs the update activity A of the corresponding file n , A n =α×C A +β×i, where α is the first weight and β is the second weight; when the update time point of file n is less than or equal to two, the update activity of file n is A n is set to 0; determining the backup frequency of each file in the cloud space based on the update activity of each file in the cloud space, including: obtaining the minimum frequency f of each file in the cloud space min , wherein the lowest frequency is greater than or equal to 0; based on the lowest frequency f min , the update activity A of the file n n Determine the backup frequency f of each file in the cloud space n , f n =f min +A n ×γ, where γ is the preset scaling factor; A grouping module is used to determine the user activity of the corresponding user based on the update activity of each file in the cloud space; and dividing the plurality of cloud storage users into a plurality of user groups based on user activity of the plurality of cloud storage users; A management module is used to perform backup management on files of multiple user groups based on the backup frequency of each file, including: allocating a storage node and a backup node to each user group; moving the files corresponding to each user group to the corresponding storage node, and automatically backing up the files to the corresponding backup node based on the backup frequency of each file.

Citation Information

Patent Citations

  • File backup method and device and computer storage medium

    CN109542680A

  • File storage method and device, electronic equipment and storage medium

    CN117370072A