A network data cloud storage allocation method, system, electronic device and storage medium
By receiving the first parameter of the network data and using the adversarial network model to split it into several sub-data, and allocating it based on the corresponding relationship between the sub-data and the attributes of the storage device, the problem of inaccurate data classification in the existing cloud storage method is solved. Efficient and stable network data storage and storage device performance balance are achieved.
Patent Information
- Application Number
- CN202410192528.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-21
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-02-21
AI Technical Summary
Existing cloud storage methods classify and store data too roughly, resulting in a mismatch between storage devices and data characteristics, affecting storage performance, and limited hardware resources, making it difficult to efficiently store large amounts of network data.
By receiving the first parameter of the network data, using the trained network computing model to calculate the second parameter, using the adversarial network model to split the data into several sub-data, and based on the corresponding relationship between the dynamic attributes of the sub-data and the attributes of the storage device. Distribution to ensure the accuracy and efficiency of data storage.
It achieves accurate splitting of network data and efficient storage allocation, improves the stability of storage and the performance balance of storage devices, and ensures the efficiency and stability of data storage.
Smart Images

Figure CN118093171B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a network data cloud storage allocation method, system, electronic device and storage medium. Background Art
[0002] Cloud storage space, also known as cloud disk, is an Internet storage tool and a product of Internet cloud technology. It provides file storage, reading, downloading and other services for enterprises and individuals through the Internet. It is a common means of network data storage. Due to the large amount of data to be stored, it is generally stored separately through multiple cloud storage devices included in the cloud storage system. In the prior art, it is generally stored separately based on the formation time of the data (i.e., time-based classification), and the current cloud storage hardware resources are limited. When storing a large number of network data, the existing storage methods are too rough in classifying and arranging data, resulting in low reliability of classified storage. Moreover, after the data is roughly distributed and stored, when the storage device stores data, the storage device's own characteristics cannot match the characteristics of the data, that is, the storage device may store data that conflicts with its own characteristics, which greatly affects the performance of the storage device. Summary of the invention
[0003] 1. Technical issues to be resolved
[0004] In view of the deficiencies in the prior art, the present invention provides a network data cloud storage allocation method, system, electronic device and storage medium to solve the problems raised in the above background technology.
[0005] (II) Technical solution
[0006] To achieve the above objectives, the present invention is implemented through the following technical solutions: a network data cloud storage allocation method,
[0007] Receiving network data sent by a client, extracting a first parameter of the network data and a storage device attribute, the storage device having at least one group;
[0008] Using the trained network calculation model, calculating a second parameter of the network data based on the first parameter of the network data, wherein the first parameter and the second parameter have a corresponding relationship;
[0009] Encode the network data through an encoder, and preliminarily split the network data based on the encoding;
[0010] Establish an adversarial network model, train the preliminary segmentation results and manual segmentation results, and use the adversarial network model to split the network data into several sub-data;
[0011] Predicting the dynamic properties of each of the plurality of sub-data based on the second parameter of the network data;
[0012] The network data is allocated for cloud storage based on the corresponding relationship between the dynamic attributes of several sub-data and the attributes of the storage device.
[0013] As a preferred embodiment of this embodiment, the first parameter of the network data is specifically any one or more of data location, attribute, size and name, the first parameter of the network data is specifically bandwidth occupancy and output request volume, and the storage device attributes include bandwidth, latency and IOPS.
[0014] As a preferred embodiment of this embodiment, the calculating the second parameter of the network data based on the first parameter of the network data by using the trained network calculation model includes:
[0015] Get the first parameter and the second parameter of the network data;
[0016] Generate a data set based on the acquired first network data parameter and second network data parameter;
[0017] The network computing model is trained based on the data set, so that the network computing module trained with the data set can calculate the corresponding relationship between the first parameter of the data and the second parameter of the data.
[0018] As a preferred embodiment of this embodiment, the establishment of an adversarial network model, training the preliminary segmentation results and the manual segmentation results, and using the adversarial network model to split the network data into a number of sub-data include:
[0019] The adversarial network model is established, the preliminary segmentation results and the manual segmentation results are trained, and the network data is split into several sub-data using the adversarial network model, including:
[0020] Import network data into the adversarial network model and split the network data;
[0021] The splitting process includes a generation phase and an identification phase. The generation phase includes encoding and decoding. The encoding is specifically to perform a convolution operation on the preliminary split network data. The decoding is specifically to perform a deconvolution operation on the decoding result. The encoding and the decoding extract characteristic signals in the network data and generate preliminary splitting results based on the characteristic signals.
[0022] The identification stage is to input the preliminary segmentation results of the generation stage and the manual segmentation results into the adversarial network model for training until the final segmentation results are generated in the adversarial network model.
[0023] As a preferred embodiment of this invention, allocating network data to cloud storage based on the corresponding relationship between the dynamic attributes of a plurality of sub-data and the attributes of storage devices includes:
[0024] Compare the fit between the sub-data dynamic attributes and the storage device attributes;
[0025] Allocate the sub-data to corresponding storage devices respectively.
[0026] As a preferred embodiment of this embodiment, after a number of sub-data are distributed to corresponding storage devices, the storage performance of the storage devices is balanced.
[0027] As a preferred embodiment of this invention, a network data cloud storage distribution system includes:
[0028] A receiving and determining module, configured to receive network data, determine a first parameter of the network data and a storage device attribute, and calculate a second parameter of the network data based on a network calculation model and the first parameter;
[0029] A splitting module is used to train the network data based on the preliminary coding split and the results of manual splitting through an adversarial network model, and output the final splitting results of the network data;
[0030] The allocation module is used to predict the dynamic attributes of each of the plurality of sub-data and to perform cloud storage allocation on the network data based on the corresponding relationship between the dynamic attributes of the plurality of sub-data and the attributes of the storage device.
[0031] As a preferred embodiment of the present invention, the first parameter of the network data is specifically any one or more of data location, attribute, size and name, the first parameter of the network data is specifically bandwidth usage and output request amount, and the storage device attribute includes bandwidth, latency and IOPS;
[0032] The allocation module is also used to ensure balanced storage performance of the storage devices after allocating the plurality of sub-data to the corresponding storage devices.
[0033] As a preferred embodiment of this embodiment, an electronic device includes: a processor and a memory, wherein the processor executes instructions in the memory, so that the electronic device executes the above method.
[0034] As a preferred embodiment of this embodiment, a computer storage medium stores one or more computer programs, and when the computer program is executed by a processor of the computer, the above method is implemented.
[0035] (III) Beneficial effects
[0036] The present invention provides a network data cloud storage allocation method, system, electronic device and storage medium, which have the following beneficial effects: a first parameter of the network data can be extracted first, wherein the first parameter is an inherent attribute of the network data, a second parameter of the network data can be calculated based on the first parameter through a network calculation model, and then the specialized feature points of the network data can be extracted through an adversarial network model, and then the network data can be split into a plurality of sub-data through the specialized feature points of the network data, thereby achieving accurate splitting of the network data and indirectly improving the accuracy of subsequent network data allocation and storage. At the same time, the sub-data is stored and allocated by comparing the dynamic attributes of the sub-data with the compatibility of the storage device attributes, so that the efficiency of each sub-data is kept consistent during storage, which can ensure the stability of the network data storage to a certain extent, and can also keep the storage device balanced after storing the data. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 A process diagram of the network data cloud storage allocation method of the present invention;
[0038] Figure 2 It is a structural block diagram of the network data cloud storage distribution system of the present invention;
[0039] Figure 3 The present invention is a block diagram of the network data cloud storage allocation method for allocating network data sent by a client to cloud storage. DETAILED DESCRIPTION
[0040] The embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0041] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0042] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection, an electrical connection, or mutual communication; it can be a direct connection, or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0043] In the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may include that the first and second features are in direct contact, or may include that the first and second features are not in direct contact but are in contact through another feature between them. Moreover, a first feature being "above", "above" and "above" a second feature includes that the first feature is directly above and obliquely above the second feature, or simply indicates that the first feature is higher in level than the second feature. A first feature being "below", "below" and "below" a second feature includes that the first feature is directly below and obliquely below the second feature, or simply indicates that the first feature is lower in level than the second feature.
[0044] The disclosure below provides many different embodiments or examples to realize different structures of the present invention. In order to simplify the disclosure of the present invention, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present invention. In addition, the present invention can repeat reference numbers and / or reference letters in different examples, and this repetition is for the purpose of simplicity and clarity, which itself does not indicate the relationship between the various embodiments and / or settings discussed. In addition, the present invention provides various specific examples of processes and materials, but those of ordinary skill in the art can be aware of the application of other processes and / or the use of other materials.
[0045] like Figure 1 As shown, an embodiment of the present invention provides a network data cloud storage allocation method, characterized in that:
[0046] receiving network data sent by a client, extracting a first parameter of the network data and a storage device attribute, wherein the storage device has at least one group of storage devices;
[0047] In the embodiment of the present invention, the first parameter of the network data is specifically an inherent attribute of the data, which will not change due to the transfer of the data. It can be understood that the inherent attribute of the data is simple and easy to obtain, and it can be understood that there is more than one set of storage devices.
[0048] Using the trained network calculation model, calculating a second parameter of the network data based on a first parameter of the network data, wherein the first parameter and the second parameter have a corresponding relationship;
[0049] In the embodiment of the present invention, the network calculation model can calculate the second parameter through the first parameter of the network data. It can be understood that the second parameter is a dynamic attribute of the network data, which can only be obtained according to the process and result of the allocation storage after the network data is allocated storage.
[0050] Encode the network data through an encoder, and preliminarily split the network data based on the encoding;
[0051] In the embodiment of the present invention, the encoder will add a coding identifier to the network data when the network data is sent. It can be understood that each group of network data contains at least one group of coding identifiers. The coding identifiers corresponding to the network data will be used as nodes for subsequent network data splitting.
[0052] Establish an adversarial network model, train the preliminary segmentation results and manual segmentation results, and use the adversarial network model to split the network data into several sub-data;
[0053] In an embodiment of the present invention, the network data is preliminarily split based on the coding identifier of the network data, and then the network data is manually split by senior technical personnel in the field, and then the preliminary splitting results and the manual splitting results are compared and trained through the established adversarial network model.
[0054] Among them, a generator and a discriminator are provided in the adversarial network model, and the data of the network data in the generator is stored in the generator, and an automatic splitting module is constructed in the generator. In this embodiment, the network data is processed and split into a number of node data based on the coding identifier, wherein each corresponding feature point in the node data is output after multiple convolution operations are performed on the node data, and the specialized feature points of the node data are extracted by convolution kernel operation. Based on the continuous superposition of convolution kernel and convolution operation, the feature point extraction of the node data will change from low level to high level, and the specialized feature points of the node data will gradually decrease, thereby obtaining refined specialized feature points.
[0055] It can be understood that the specialized feature point is specifically any one of the first parameter or the second parameter.
[0056] Figure 3 An example diagram of an implementation environment of the present application is shown, in which the environment includes several clients, a cloud storage allocation system and cloud storage devices, the cloud storage devices include several storage devices, a user sends a storage request and network data to the cloud storage system through the client, and the cloud storage system processes the received network data, splits the network data and allocates it to appropriate storage devices.
[0057] Then, the node data of the obtained refined specialized feature points are clustered, and the sub-data for splitting the network data are determined based on the clustering. It is understandable that the specialized feature points of the node data can be clustered using existing clustering algorithms, including but not limited to the k-means algorithm, hierarchical clustering algorithm, non-hierarchical clustering algorithm, etc.
[0058] In some embodiments, the specialized feature point may be represented as a vector, where each element in the vector represents a specialized feature point.
[0059] Predicting the dynamic properties of each of the plurality of sub-data based on the second parameter of the network data;
[0060] The process of predicting the dynamic attributes of the plurality of sub-data by the second parameter of the network data includes:
[0061] Determine the correspondence between the plurality of sub-data and the network data, and predict the dynamic attributes of the plurality of sub-data based on the correspondence between the sub-data and the network data and the second parameter of the network data. It should be understood that the sub-data is obtained by splitting the network data, and the second parameter generated when the network data is stored in the cloud storage device is a fluctuating / consistent attribute related to the storage cycle. The plurality of sub-data are linked together to form the network data, that is, the dynamic attribute of the sub-data is specifically a section of the second parameter in the network data storage cycle.
[0062] The network data is allocated for cloud storage based on the corresponding relationship between the dynamic attributes of several sub-data and the attributes of the storage device.
[0063] Furthermore, the first parameter of the storage device network data is specifically any one or more of data location, attribute, size and name, the first parameter of the storage device network data is specifically bandwidth occupancy and output request volume, and the storage device storage device attributes include bandwidth, latency and IOPS.
[0064] Furthermore, the storage device calculates the second parameter of the network data based on the first parameter of the network data through the trained network calculation model, including:
[0065] Get the first parameter and the second parameter of the network data;
[0066] Generate a data set based on the acquired first network data parameter and second network data parameter;
[0067] The network computing model is trained based on the data set, so that the network computing module trained with the data set can calculate the corresponding relationship between the first parameter of the data and the second parameter of the data.
[0068] In an embodiment of the present invention, a network training model is used to train a model using a first parameter of network data and a second parameter of network data, and the model learns based on the correlation between the first parameter and the second parameter. It can be understood that the model can be a decision tree, a random forest, a deep learning model, a neural network model, etc.
[0069] Wherein, during the generation process of the network computing model, a first parameter of the network data is obtained, and the first parameter is an inherent attribute of the network data;
[0070] Acquire a second parameter of the network data, the second parameter is dynamic data of specific use / storage of the network data, and it can be understood that the second parameter is an attribute related to cloud storage allocation of the network data;
[0071] Integrate the obtained first parameter and second parameter to obtain a training data set;
[0072] The computational model is trained using the training data set to obtain a network computational model.
[0073] The trained network computing model can represent the corresponding relationship between the first parameter and the second parameter.
[0074] Furthermore, the storage device establishes an adversarial network model, trains the preliminary splitting results and the manual splitting results, and uses the adversarial network model to split the network data into several sub-data including:
[0075] Import network data into the adversarial network model and split the network data;
[0076] The splitting process includes a generation phase and an identification phase. The storage device generation phase includes encoding and decoding. The storage device encoding specifically performs a convolution operation on the initially split network data. The storage device decoding specifically performs a deconvolution operation on the storage device decoding result. The storage device encoding and the storage device decoding extract characteristic signals in the storage device network data, and generate preliminary splitting results based on the characteristic signals.
[0077] The identification stage is to input the preliminary segmentation results of the generation stage and the manual segmentation results into the adversarial network model for training until the final segmentation results are generated in the adversarial network model.
[0078] Furthermore, allocating cloud storage to network data based on the corresponding relationship between the dynamic attributes of the plurality of sub-data and the attributes of the storage device includes:
[0079] Compare the fit between the sub-data dynamic attributes and the storage device attributes;
[0080] Allocate the sub-data to corresponding storage devices respectively.
[0081] Furthermore, after a number of sub-data are distributed to corresponding storage devices, the storage performance of the storage devices is balanced.
[0082] In an embodiment of the present invention, network data will be split into several sub-data and then allocated to corresponding storage devices for storage. During the storage process, the time required for the storage device process corresponding to the storage of the sub-data is the same, and the storage rate of the sub-data is the fastest in a certain storage device. The actual storage allocation is that the sub-data is stored in a storage device that is not the fastest.
[0083] Exemplarily, the sub-data include sub-data 1, sub-data 2, ... sub-data n, and the storage device includes storage device 1, storage device 2, ... storage device n. Specifically, during storage, sub-data 1 may be stored in any group of storage devices 2, 3, ..., and sub-data 2 may be stored in a storage device other than the storage device where sub-data 1 is stored.
[0084] It should be noted that when the sub-data is stored, the real dynamic attributes of the sub-data will be collected, and when the real dynamic attributes do not match the predicted dynamic attributes, the sub-data will be reallocated.
[0085] In the present invention, if there is a storage abnormality in a certain storage device, the sub-data corresponding to the abnormal storage device will be transferred to the storage device with the maximum storage rate for storage, so as to ensure the stability of network data storage.
[0086] The network data cloud storage allocation method of the present application can first extract a first parameter of the network data, wherein the first parameter is an inherent attribute of the network data, calculate a second parameter of the network data based on the first parameter through a network calculation model, and then extract specialized feature points of the network data through an adversarial network model, and then split the network data into a number of sub-data through the specialized feature points of the network data, thereby achieving accurate splitting of the network data and indirectly improving the accuracy of subsequent network data allocation and storage. At the same time, by comparing the dynamic attributes of the sub-data and the compatibility of the storage device attributes, the efficiency of each sub-data is kept consistent during storage allocation of the sub-data, which can guarantee the stability of network data storage to a certain extent, and can also keep the storage device balanced after storing the data.
[0087] like Figure 2 As shown, the present invention also provides a network data cloud storage distribution system, comprising:
[0088] A receiving and determining module, configured to receive network data, determine a first parameter of the network data and a storage device attribute, and calculate a second parameter of the network data based on a network calculation model and the first parameter;
[0089] In an embodiment of the present invention, the receiving and determining module can process the received network data, so that the network data can be calculated by the network computing model and can also be processed by the adversarial network model; it can be understood that the way the receiving and determining model processes the network data is a prior art means and no further description is given here.
[0090] A splitting module is used to train the network data based on the preliminary coding split and the results of manual splitting through an adversarial network model, and output the final splitting results of the network data;
[0091] The allocation module is used to predict the dynamic attributes of each of the plurality of sub-data and to perform cloud storage allocation on the network data based on the corresponding relationship between the dynamic attributes of the plurality of sub-data and the attributes of the storage device.
[0092] Further, the first parameter of the storage device network data is specifically any one or more of data location, attribute, size and name, the first parameter of the storage device network data is specifically bandwidth usage and output request amount, and the storage device storage device attributes include bandwidth, latency and IOPS;
[0093] The storage device allocation module is also used to ensure balanced storage performance of the storage devices after allocating a number of sub-data to corresponding storage devices.
[0094] An electronic device includes: a processor and a memory, wherein the memory device processor executes instructions in the memory of the memory device, so that the electronic device executes the above method.
[0095] A computer storage medium stores one or more computer programs. When the storage device computer program is executed by a processor of the computer, the above method is implemented.
[0096] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A network data cloud storage allocation method, characterized in that: Receiving network data sent by a client, extracting a first parameter of the network data and a storage device attribute, the storage device having at least one group; Using the trained network calculation model, calculating a second parameter of the network data based on the first parameter of the network data, wherein the first parameter and the second parameter have a corresponding relationship; Encode the network data through an encoder, and preliminarily split the network data based on the encoding; Establish an adversarial network model, train the preliminary segmentation results and manual segmentation results, and use the adversarial network model to split the network data into several sub-data; Predicting the dynamic properties of each of the plurality of sub-data based on the second parameter of the network data; Determine the correspondence between the plurality of sub-data and the network data, and predict the dynamic attributes of the plurality of sub-data based on the correspondence between the sub-data and the network data and a second parameter of the network data, wherein the dynamic attribute of the sub-data is specifically a section of the second parameter in a network data storage period; Allocate cloud storage for network data based on the corresponding relationship between the dynamic attributes of several sub-data and the attributes of storage devices; The first parameter of the network data is specifically any one or more of data location, attribute, size and name, the second parameter of the network data is specifically bandwidth usage and output request volume, and the storage device attributes include bandwidth, latency and IOPS; The adversarial network model is established, the preliminary segmentation results and the manual segmentation results are trained, and the network data is split into several sub-data using the adversarial network model, including: Import network data into the adversarial network model and split the network data; The splitting process includes a generation phase and an identification phase. The generation phase includes encoding and decoding. The encoding is specifically to perform a convolution operation on the preliminary split network data. The decoding is specifically to perform a deconvolution operation on the encoding result. The encoding and decoding extract characteristic signals in the network data and generate preliminary splitting results based on the characteristic signals. The identification stage is to input the preliminary segmentation results of the generation stage and the manual segmentation results into the adversarial network model for training until the final segmentation results are generated in the adversarial network model; The cloud storage allocation of network data based on the corresponding relationship between the dynamic attributes of several sub-data and the attributes of the storage device includes: Compare the fit between the sub-data dynamic attributes and the storage device attributes; Allocate the sub-data to corresponding storage devices respectively.
2. A network data cloud storage allocation method according to claim 1, characterized in that: The using the trained network computing model to calculate the second parameter of the network data based on the first parameter of the network data comprises: Get the first parameter and the second parameter of the network data; Generate a data set based on the acquired first network data parameter and second network data parameter; The network computing model is trained based on the data set, so that the network computing model trained with the data set can calculate the corresponding relationship between the first parameter of the data and the second parameter of the data.
3. A network data cloud storage allocation method according to claim 1, characterized in that: After a number of sub-data are allocated to corresponding storage devices, the storage performance of the storage devices is balanced.
4. A network data cloud storage allocation system, applied to the network data cloud storage allocation method according to any one of claims 1 to 3, characterized in that: include: A receiving and determining module, configured to receive network data, determine a first parameter of the network data and a storage device attribute, and calculate a second parameter of the network data based on a network calculation model and the first parameter; A splitting module is used to train the network data based on the preliminary coding split and the results of manual splitting through an adversarial network model, and output the final splitting results of the network data; The allocation module is used to predict the dynamic attributes of each of the plurality of sub-data and to perform cloud storage allocation on the network data based on the corresponding relationship between the dynamic attributes of the plurality of sub-data and the attributes of the storage device.
5. A network data cloud storage distribution system according to claim 4, characterized in that: The first parameter of the network data is specifically any one or more of data location, attribute, size and name, the second parameter of the network data is specifically bandwidth usage and output request volume, and the storage device attributes include bandwidth, latency and IOPS; The allocation module is also used to ensure balanced storage performance of the storage devices after allocating the plurality of sub-data to the corresponding storage devices.
6. An electronic device, characterized in that: include: A processor and a memory, wherein the processor executes instructions in the memory so that the electronic device executes the method according to any one of claims 1 to 3.
7. A computer storage medium, characterized in that: One or more computer programs are stored thereon, and when the computer programs are executed by a processor of a computer, the method according to any one of claims 1 to 3 is implemented.
Citation Information
Patent Citations
Method and device for distributing cloud storage resources, electronic equipment and medium
CN117290078A
