Data management method and device, electronic equipment, storage medium and program product

By classifying and reconstructing data, and using the dynamic adjustment of master-slave nodes, the problem of high node load in distributed storage is solved, and rapid data response and system performance improvement are achieved.

CN118550465APending Publication Date: 2024-08-27CHINA MOBILE GROUP DESIGN INST +1
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410639797.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-22
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

When the amount of data requests exceeds the processing capacity of the node, the existing distributed storage solution leads to high load on the node, performance bottlenecks and reduced response speed.

Method used

By classifying the data to be stored, the first type of data is written to the master node, the second type of data is reconstructed and stored distributedly on the slave nodes, and the master-slave node structure is dynamically adjusted to adapt to load changes.

Benefits of technology

It achieves rapid data response and system performance improvement, breaks through the node performance bottleneck, and improves the system's flexibility and fault tolerance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118550465A
    Figure CN118550465A
Patent Text Reader

Abstract

The invention provides a data management method and device, electronic equipment, a storage medium and a program product. The method comprises the steps of obtaining to-be-stored data; when the to-be-stored data is the first type of data, writing the to-be-stored data into the storage space of the main node; and when the to-be-stored data is the second type of data, obtaining reconstruction data of the to-be-stored data, and storing the reconstruction data in the at least one slave node in a distributed manner. According to the technical scheme provided by the invention, the data can be classified and subjected to differentiated storage and management. The data management mode can be flexibly adjusted according to different characteristics and requirements of the data, so that when the nodes are overloaded, different numbers of data requests can be adapted through dynamic adjustment of the master node and the slave node, the performance bottleneck of the nodes is broken through, the data response speed is increased, and the system performance is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of communication technology, and in particular to a data management method, device, electronic device, storage medium and program product. Background Art

[0002] Current distributed storage solutions generally do not differentiate data, but all use distributed storage to store data on multiple nodes to achieve data redundancy and fault tolerance. However, when the number of data requests exceeds the processing capacity of the node, the node will be in a high-load state, which will cause performance bottlenecks in the node, slow down the data response speed, and reduce system performance. Summary of the invention

[0003] The present disclosure provides a data management method, device, electronic device, storage medium and program product, which are used to solve the problem that when a node is in a high-load state, a performance bottleneck occurs at the node, the data response speed slows down, and the system performance is reduced to a certain extent.

[0004] In a first aspect, the present disclosure provides a data management method, including: obtaining data to be stored; when the data to be stored is first category data, writing the data to be stored into the storage space of a master node; when the data to be stored is second category data, obtaining reconstructed data of the data to be stored, and distributively storing the reconstructed data in at least one slave node.

[0005] In addition, according to the method of the first aspect of the present disclosure, reconstructed data of the data to be stored is obtained, and the reconstructed data is distributedly stored in at least one slave node, including: performing N reconstruction processes on the data to be stored to obtain N reconstructed data; in M ​​slave nodes, the N reconstructed data are distributedly stored; wherein any one of the M slave nodes locally stores at least one reconstructed data; wherein N is an integer greater than 0, and M is an integer greater than 0.

[0006] In addition, according to the method of the first aspect of the present disclosure, obtaining reconstructed data of the data to be stored includes: splitting the data to be stored to obtain multiple data fragments; recombining the data fragments to obtain reconstructed data; wherein the reconstructed data is different from the data to be stored.

[0007] In addition, according to the method of the first aspect of the present disclosure, before reassembling the data fragments, the method also includes: adding identification information to the data fragments; wherein the identification information is used to identify the relationship between the data fragments and the data to be stored; the identification information includes at least one of the following: format information, location information.

[0008] In addition, according to the method of the first aspect of the present disclosure, reconstructed data of the data to be stored is obtained, and the reconstructed data is distributedly stored in at least one slave node, including: using at least one slave node to reconstruct the data to be stored to obtain the reconstructed data, and the slave node locally stores the reconstructed data.

[0009] In addition, according to the method of the first aspect of the present disclosure, the method also includes: monitoring the status data of the target object, the status data includes at least one of the following: load, storage space utilization, and access volume; when the status data indicates a change in the state of the target object, adjusting the storage structure of the target object; the storage structure includes at least one of the following: storage space size and the number of nodes.

[0010] In addition, according to the method of the first aspect of the present disclosure, when the target object is a slave node, the storage structure of the target object is adjusted, including: when the status data indicates that the slave node load is large, increasing the number of slave nodes; when the status data indicates that the slave node load is small, reducing the number of slave nodes.

[0011] In addition, according to the method of the first aspect of the present disclosure, when the target object is a master node, the storage structure of the target object is adjusted, including: when the status data indicates that the access frequency of the first type of data is higher, increasing the storage space of the master node; when the status data indicates that the access frequency of the first type of data is lower, reducing the storage space of the master node.

[0012] In addition, according to the method of the first aspect of the present disclosure, the access frequency of the first category of data is higher than the access frequency of the second category of data; and / or, the importance of the first category of data is higher than the importance of the second category of data.

[0013] In addition, according to the method of the first aspect of the present disclosure, the method also includes: when an access request for any stored data is received, based on the data type of the stored data, using the master node or the slave node to respond to the data.

[0014] In a second aspect, the present disclosure provides a data management device, including: an acquisition unit, used to acquire data to be stored; a first management unit, used to write the data to be stored into the storage space of the master node when the data to be stored is the first type of data; a second management unit, used to acquire reconstructed data of the data to be stored when the data to be stored is the second type of data, and distribute the reconstructed data in at least one slave node. In a third aspect, the present disclosure provides an electronic device, including: a memory, used to store computer-readable instructions; and a processor, used to run the computer-readable instructions so that the electronic device executes the method as described in any embodiment of the first aspect.

[0015] In a fourth aspect, the present disclosure provides a non-transitory computer-readable storage medium for storing computer-readable instructions, which, when executed by a processor, causes the processor to execute the method described in any embodiment of the first aspect.

[0016] In a fifth aspect, the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the method described in any embodiment of the first aspect.

[0017] The present disclosure provides a data management method, device, electronic device, storage medium and program product. The technical solution provided by the present disclosure can classify data and perform differential storage and management. For the first type of data, the first type of data is written to the master node so that the first type of data can achieve a fast response. For the second type of data, the second type of data is reconstructed to generate reconstructed data, and the reconstructed data is stored in at least one slave node for distributed management. This data management method can be flexibly adjusted according to the different characteristics and requirements of the data. In this way, when the node is overloaded, it can adapt to different numbers of data requests through dynamic adjustment of the master and slave nodes, thereby breaking through the performance bottleneck of the node, accelerating the data response speed, and improving system performance.

[0018] It is to be understood that both the foregoing general description and the following detailed description are exemplary, and are intended to provide further explanation of the technology as claimed. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The above and other purposes, features and advantages of the present disclosure will become more apparent by describing the embodiments of the present disclosure in more detail in conjunction with the accompanying drawings. The accompanying drawings are used to provide a further understanding of the embodiments of the present disclosure and constitute a part of the specification. Together with the embodiments of the present disclosure, they are used to explain the present disclosure and do not constitute a limitation of the present disclosure. In the accompanying drawings, the same reference numerals generally represent the same components or steps.

[0020] Figure 1 A flowchart of a data management method provided by an embodiment of the present disclosure;

[0021] Figure 2 A schematic diagram of splitting data segments into the preferred complete second type of data according to an embodiment of the present disclosure and reconstructing the reconstructed data;

[0022] Figure 3 A schematic diagram for distinguishing first-category data from second-category data provided in an embodiment of the present disclosure;

[0023] Figure 4 The overall process of data management is preferred according to the embodiment of the present disclosure;

[0024] Figure 5 A preferred data management device according to an embodiment of the present disclosure;

[0025] Figure 6 A structural block diagram of a data management device provided in an embodiment of the present disclosure;

[0026] Figure 7 A hardware block diagram of an electronic device provided in an embodiment of the present disclosure;

[0027] Figure 8 A schematic diagram of a computer-readable storage medium provided for an embodiment of the present disclosure. DETAILED DESCRIPTION

[0028] In order to make the purpose, technical solution and advantages of the present disclosure more obvious, the exemplary embodiments according to the present disclosure will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all the embodiments of the present disclosure, and it should be understood that the present disclosure is not limited to the exemplary embodiments described here.

[0029] At present, data storage generally adopts indiscriminate distributed storage technology, that is, all data is dispersed to multiple nodes to achieve redundant backup and fault tolerance.

[0030] At the same time, existing distributed storage requires a lot of data scheduling and fragmented file management; when the file is large or the data is complex, the hash table used for content addressing will also become large, and the addressing time will be longer. There are also many uncertainties in the impact of the node's network resource status on the network input / output (I / O) performance. If the network status of some data fragment nodes is poor, it will affect the access service quality of the entire data file.

[0031] In summary, with existing data management methods, when the amount of data requests exceeds the node processing threshold, the node load will surge, resulting in a high node load state, which will lead to node performance bottlenecks and reduced response speed, thereby affecting the overall performance of the system.

[0032] Therefore, the present disclosure provides a data management method. Figure 1 , Figure 1 The following is a flow chart of a data management method provided by an embodiment of the present disclosure. Figure 1 As shown, the method includes:

[0033] In step S101, data to be stored is obtained.

[0034] In the embodiments of the present disclosure, the data to be stored may be various types of data that need to be stored. For example, the data to be stored may be structured data or unstructured data; for another example, the data to be stored may be data in various forms such as audio, video, text, and tables; for another example, the data to be stored may be various types of data such as business data and configuration data. The present disclosure has no particular restrictions on the data types of the data to be stored, and no exhaustive list is given. The methods for obtaining the data to be stored include, but are not limited to, at least one of the following: calling an application program interface, querying a database, user input, etc., which are not limited here.

[0035] In step S102, when the data to be stored is first type data, the data to be stored is written into the storage space of the master node.

[0036] In step S103, when the data to be stored is the second type of data, reconstructed data of the data to be stored is obtained, and the reconstructed data is distributedly stored in at least one slave node.

[0037] In the embodiments of the present disclosure, the classification criteria of the first category data and the second category data include but are not limited to at least one of the following: data access frequency, data importance, data storage requirements, and data security. The first category data may be data with at least one standard higher than the second data, such as access frequency, importance, storage requirements, and security.

[0038] Exemplarily, the classification of the first category data and the second category data may be that the access frequency of the first category data is higher than the access frequency of the second category data; and / or the importance of the first category data is higher than the importance of the second category data.

[0039] In one embodiment of the present disclosure, the access frequency of the first type of data is higher than the access frequency of the second type of data. Generally speaking, the first type of data may be data that has high real-time requirements and needs to be accessed frequently, such as at least one of online transaction data and user activity logs. The second type of data may be data that has a low access frequency and is mainly used for archiving or backup, such as at least one of historical records and old documents.

[0040] In another embodiment of the present disclosure, the importance of the first category of data is higher than that of the second category of data. Generally speaking, the first category of data may be data that is directly involved in core business processes, decision making, or product / service provision. These data are indispensable and require fast and frequent access, such as at least one of customer information and order data. The second category of data may be data that is not directly involved in core business but may be valuable for analysis, reporting, or long-term storage. The access frequency of these data is usually low, such as at least one of log files and test data.

[0041] In another embodiment of the present disclosure, the access frequency and importance of the first category of data are greater than the access frequency and importance of the second category of data. Generally speaking, the first category of data may be data that has high real-time requirements, needs to be accessed frequently, and is directly involved in core business. The second category of data may be data that has a low access frequency and is not directly involved in core business.

[0042] In a distributed system, the master node can be used to implement independent data storage, and further, it can also be responsible for processing requests and maintaining data integrity and consistency. The number of slave nodes is generally multiple, which is used to implement distributed storage of data to improve data availability and fault tolerance. In the present disclosure, whether the master node and the slave node have the request processing capability can be customized. For example, the master node can have the ability to process read and write requests, and the slave node does not have the ability to process requests and is only responsible for storing data; it can also be that both the master and slave nodes have the ability to process read and write requests; it can also be that the master node has the ability to process write requests, and the slave node has the ability to process read requests. The specific capabilities of the master and slave nodes can be flexibly adjusted according to actual needs.

[0043] Specifically, after obtaining the data to be stored, the classification of the data to be stored can be determined first. This can be achieved by using a data classification tool in accordance with at least one of the classification criteria, comparison with a preset threshold, and comparison with a preset condition. Then, when it is determined that the data to be stored is the first type of data, the first type of data will be written into the storage space of the master node. Because the master node has high-performance storage and processing capabilities, the first data can be quickly responded to and processed. Of course, when the first data is written into the storage space of the master node, a cache strategy can be used, so that the first data can be directly obtained from the cache when the data is requested, further speeding up the response processing speed of the first data. At the same time, when it is determined that the data to be stored is the second type of data, before the second data is stored in the slave node, the second data will be reconstructed to obtain reconstructed data. Reconstructed data can be understood as data obtained by dividing the second type of data into data fragments and recombining them. Among them, the methods of data segmentation and data recombination are different. Data segmentation includes but is not limited to at least one of the following: segmentation by time, segmentation by attribute, and random segmentation. Data reorganization includes but is not limited to at least one of the following: convex optimization method, greedy calculation method, combination method, word frequency weighted statistical method (TF-IDF), etc. The specific method of data segmentation and data reorganization for obtaining the reconstructed data is not limited here. After obtaining the reconstructed data, these reconstructed data can be stored in one or more slave nodes. Reconstructing data can improve the security of data. At the same time, since the data has been divided and recombined on multiple nodes, even if a node fails, the reconstructed data of other nodes can be used to recombine the original data, thereby recovering the lost data. This greatly improves the fault tolerance and reliability of the system and ensures the integrity and availability of the data.

[0044] In summary, the present disclosure can classify data and perform differentiated storage and management. For the first category of data, the first category of data is written to the master node so that the first category of data can achieve a quick response. For the second category of data, the second category of data is reconstructed to generate reconstructed data, and the reconstructed data is stored in at least one slave node for distributed management. This data management method can be flexibly adjusted according to the different characteristics and requirements of the data. In this way, when a node is overloaded, it can adapt to different numbers of data requests through dynamic adjustment of the master and slave nodes, thereby breaking through the performance bottleneck of the node, accelerating the data response speed, and improving system performance.

[0045] In the present disclosure, the second type of data to be stored can be reconstructed to obtain reconstructed data, and the reconstructed data is distributedly stored. The following specifically describes how the reconstructed data is distributedly stored.

[0046] As follows, according to an embodiment of the present disclosure, a method for obtaining reconstructed data of data to be stored and distributively storing the reconstructed data in at least one slave node includes:

[0047] Perform N reconstruction processing on the data to be stored to obtain N reconstructed data;

[0048] In M slave nodes, N reconstruction data are distributedly stored; wherein any slave node among the M slave nodes locally stores at least one reconstruction data;

[0049] Wherein, N is an integer greater than 0, and M is an integer greater than 0.

[0050] In the disclosed embodiment, the data to be stored can be reconstructed N times to obtain N reconstructed data. Among them, the reconstruction method includes but is not limited to at least one of the following: convex optimization method, greedy calculation method, combination method, word frequency weighted statistics method (TF-IDF), etc. It should be noted that the reconstruction method can be one or more. The reconstruction methods can be the same or different. The reconstructed data obtained in this way can be the same or different. Of course, it is also safer to store different reconstructed data in a distributed manner. In this way, due to the diversity of the reconstructed data, even if one or more reconstructed data are lost, it will not immediately affect the security of the entire system.

[0051] Then, after obtaining N reconstructed data, plan to store these N reconstructed data in M ​​slave nodes. The storage method can be to store at least one reconstructed data on each of the M slave nodes, where M is an integer greater than 0. This can achieve that when some slave nodes fail and data is lost, the original data can still be restored using data from other slave nodes to obtain the lost data (such as: slave node 1 stores reconstructed data 1 and 2, and slave node 2 stores reconstructed data 2. When the data of slave node 2 is lost, the data of slave node 2 can be restored using slave node 1). The lost data is still accessible, achieving data redundancy and fault tolerance. The method used to recover data includes but is not limited to at least one of the following: distributed file system recovery tool recovery, data sharding and replica recovery, etc.

[0052] It should be noted that N can represent the reconstruction data, M can represent the number of slave nodes, and N and M can be the same or different. When N is less than or equal to M, each slave node can store one or more reconstruction data; when N is greater than M, at least one slave node needs to store multiple reconstruction data.

[0053] In this way, by reconstructing the data to be stored N times and distributively storing them in M ​​slave nodes, the flexibility and fault tolerance of the system can be significantly improved. The above describes the method of distributing and storing the reconstructed data obtained from the data to be stored in the slave nodes, and before the distributed storage, the reconstructed data of the data to be stored needs to be obtained. The following specifically describes how the data to be stored is reconstructed to obtain the reconstructed data.

[0054] In an exemplary embodiment, a method for obtaining reconstructed data of data to be stored may include:

[0055] Split the data to be stored into multiple data fragments;

[0056] The data segments are reassembled to obtain reconstructed data; wherein the reconstructed data is different from the data to be stored.

[0057] In the disclosed embodiment, when reconstructing data, it is first necessary to split the data to obtain multiple data fragments. This can determine the method of data splitting based on at least one of the content, structure, and attributes of the data itself. Among them, the splitting methods include but are not limited to at least one of the following: range splitting, time series, by geographic location, by topic, hash splitting, consistent hash splitting, etc. For example: for video, audio or image files, they can be split according to at least one method such as file size, time length, number of frames, etc.; for tabular data, they can be split according to at least one method such as table, column, etc. The specific splitting method is not limited here.

[0058] Then, the split data fragments (all or part) can be recombined to obtain reconstructed data. The recombining method includes but is not limited to at least one of the following: convex optimization method, greedy calculation method, combination method, word frequency weighted statistical method (TF-IDF), etc. In actual application, the method of recombining data fragments can be flexibly selected according to the application scenario or usage requirements. Among them, the order of recombining data fragments of different methods can be different. Different orders can produce different reconstructed data.

[0059] It should be noted that the reconstructed data is different from the original data to be stored. In layman's terms, it can be understood that the original data to be stored is split into multiple data fragments, and the data fragments (all or part) can be recombined into reconstructed data in different combination orders. In this way, the reconstructed data can be distinguished from the original data to be stored, so that several data fragments in the data to be stored can be combined in different orders and mixed for storage, so as to avoid the problem of possible data loss from the node, thereby ensuring the reliability of the system.

[0060] The following specifically describes how data identification can be performed before the split data segments are reassembled.

[0061] As follows, before reassembling the data segments according to the embodiment of the present disclosure, the method further includes:

[0062] Adding identification information to the data segment; wherein the identification information is used to identify the relationship between the data segment and the data to be stored;

[0063] The identification information includes at least one of the following: format information and location information.

[0064] In an embodiment of the present disclosure, identification information can be used to identify the association between the split data fragments and the data to be stored, and the data fragments can be restored to the original information to be stored based on the identification information. The identification information includes, but is not limited to, at least one of the following: format information, location information. The format information describes the storage format or encoding method of the data fragments. The format information helps to correctly decode or decompress the data fragments when reassembling the data, thereby restoring the original data. In an embodiment of the present disclosure, the format information includes, but is not limited to, at least one of the following: a specific beginning, a specific structure, etc. The location information describes the location of the data fragment in the original data. The location information is crucial for the data fragments to be reassembled into the original data in the correct order and structure. In an embodiment of the present disclosure, the location information includes, but is not limited to, at least one of the following: a timing position, a custom number, a logical block number, etc.

[0065] Specifically, identification information may be added to the data fragments. When the original data needs to be restored from the distributed system, the data fragments may be located, decoded, and reassembled based on the identification information, thereby ensuring the consistency, correctness, and integrity of the data.

[0066] For example, Figure 2 is a schematic diagram of splitting the data segments into the preferred complete second type of data according to the embodiment of the present disclosure and reconstructing the reconstructed data, such as Figure 2 As shown:

[0067] Figure 2N1NDF1 (Data Fragment 1), N1DF2, N1DF3…N1DFN are shown, representing several data fragments divided from non-base data (i.e., the second type of data disclosed in the present invention), wherein N1 represents slave node 1, NDF1 represents data fragment 1, and so on. Specific beginnings (i.e., the format information disclosed in the present invention) and address information (i.e., the location information disclosed in the present invention) can be added to several data fragments to improve data management efficiency, ensure data consistency and integrity, and ensure that data fragment reconstruction can be completed, so that the reconstructed combined data can be distinguished from the initial data, so that several data fragments in the initial data can be mixed and stored to avoid possible slave node data loss, and when a slave node fails, the data fragments of other slave nodes can be recombined into the initial data fragment to restore the lost data.

[0068] The above illustrates that for the second type of data to be stored, data reconstruction can be performed to obtain reconstructed data, and the reconstructed data can be distributed and stored in at least one slave node, which can improve data reliability and scalability while reducing the risk of single point failure.

[0069] The following describes in detail how to achieve data reconstruction and distributed storage.

[0070] As follows, the method for reconstructing and distributing data using slave nodes according to an embodiment of the present disclosure includes:

[0071] At least one slave node is used to reconstruct the data to be stored to obtain reconstructed data, and the slave node stores the reconstructed data locally.

[0072] As explained in the previous article, whether the slave node has the ability to process requests can be flexibly adjusted according to actual needs.

[0073] In this embodiment, the slave node has data processing capabilities, for example, it has the processing capabilities to reconstruct and store data. For example, the slave node maintains an implementation method for data reconstruction, such as the above-mentioned method of splitting and recombining data (not repeated). In this case, at least one slave node in the distributed system can be directly used to reconstruct the data to be stored, obtain reconstructed data, and store the reconstructed data locally. This means that the slave node can reconstruct and store the data by itself. In this embodiment, the data reconstruction methods maintained by different slave nodes can be the same or different. For example, after slave node A splits the data to be stored according to splitting method A, it recombines according to reorganization method A to obtain reconstructed data A; and after slave node B splits the data to be stored according to splitting method B, it recombines according to reorganization method B to obtain reconstructed data B.

[0074] In another embodiment of the present disclosure, the slave node does not have the above data processing capability. The execution subject of the reconstruction process may be a management device of the system. The management device of the system may perform the reconstruction process to obtain the reconstructed data, and send the reconstructed data to the slave node, and the slave node stores the reconstructed data.

[0075] It is specifically described above that different execution entities in different embodiments can realize data reconstruction and distributed storage.

[0076] The following specifically describes how to monitor and dynamically adjust the master and slave nodes. Further, the method according to the embodiment of the present disclosure also includes:

[0077] Monitor the status data of the target object, the status data including at least one of the following: load, storage space utilization, and access volume;

[0078] When the state data indicates a state change of the target object, the storage structure of the target object is adjusted; the storage structure includes at least one of the following: storage space size, number of nodes.

[0079] In the disclosed embodiment, the target object may be a master node or a slave node. The status data includes at least one of the following: load, storage space utilization, and access volume. The load may be at least one of memory usage, network bandwidth, etc. The storage space utilization may be the ratio of the used space to the total space of the storage system where the target object is located. The access volume may be the number of times or frequency at which the target object is accessed. The storage structure includes at least one of the following: storage space size, number of nodes. The storage space size may refer to the size of the physical space or capacity used by the target object to store data. This may refer to the capacity of a hard disk, a solid-state drive, or memory. The number of nodes may refer to the number of nodes of the target object in the system.

[0080] Specifically, the system can monitor the status data of the target object (master node or slave node) (at least one of load, storage space utilization, access volume, etc.), which can be achieved through third-party monitoring software or by creating a monitoring thread. If it is determined that the target object indicated by the status data has a state change, the storage structure of the target object can be adjusted accordingly. In an exemplary embodiment, it can be determined whether to adjust the storage structure of the target object accordingly by at least one method such as comparison with a preset threshold value and comparison with a preset condition. For example, when the status data exceeds / is lower than a preset threshold value (at least one of the load exceeds / is lower than a preset threshold value, the storage space utilization exceeds / is lower than a preset threshold value, the access volume exceeds / is lower than a preset threshold value), the storage space allocated to the target object can be increased or decreased, and the number of nodes can also be increased or decreased, so as to complete the dynamic adjustment of the storage space of the target object.

[0081] Illustratively, in one embodiment of the present disclosure, in a distributed system, the system load and storage space utilization can be monitored in real time, and nodes can be dynamically increased or decreased based on the set initial threshold range of load and storage space utilization to adapt to different data storage needs. That is, when the system load is high or the storage space is insufficient, new nodes can be automatically added to expand the storage capacity; when the system load is low or the storage space is in excess, nodes can be automatically reduced to save resources. In this way, the system can achieve elastic data storage and can be dynamically adjusted according to different needs to improve the performance and reliability of the system.

[0082] The above illustrates that the system can monitor the state data of the target object, and then dynamically adjust the storage structure of the target object according to the state change of the state data. Further, how to perform dynamic adjustment for different target objects is specifically described.

[0083] As follows, when the target object is a slave node, the method for adjusting the storage structure of the target object according to an embodiment of the present disclosure includes:

[0084] When the status data indicates that the slave node load is large, the number of slave nodes is increased;

[0085] When the status data indicates that the slave node load is small, the number of slave nodes is reduced.

[0086] In the disclosed embodiment, the load of the slave node can be monitored, and the load of the slave node can be determined to be larger or smaller by comparing the load of the slave node with a preset threshold, thereby determining to increase or decrease the data of the slave node. The preset threshold can be customized according to business needs and the performance characteristics of the system, and is not limited here. When the monitored load of the slave node is greater than the preset threshold, the number of slave nodes can be increased. This can be achieved by setting a container orchestration tool to determine the number of slave nodes to be increased, the system automatically monitors and adjusts, and the user customizes the settings. When the load of the slave node is monitored to be less than the preset threshold, the number of slave nodes can be reduced. This can be achieved by at least one of the following methods: user customization and adjustment, system automatic monitoring and adjustment, etc.

[0087] In an exemplary embodiment, when the target object is a primary node, the method for adjusting the storage structure of the target object according to an embodiment of the present disclosure includes:

[0088] When the status data indicates that the first type of data has a high access frequency, the storage space of the master node is increased;

[0089] When the status data indicates that the access frequency of the first type of data is low, the storage space of the master node is reduced.

[0090] In the disclosed embodiment, the access frequency of the first category of data of the master node can be monitored, and the access frequency of the first category of data can be determined by comparing the access frequency of the first category of data with a preset threshold. The preset threshold can be customized according to business needs and system performance characteristics, and is not limited here. When the access frequency of the monitored first category of data is higher than the preset threshold, the storage space of the master node can be increased (such as: increasing at least one of the hard disk, solid state drive, memory, etc.). When the access frequency of the monitored first category of data is lower than the preset threshold, the storage space of the master node can be reduced.

[0091] Exemplarily, in one embodiment of the present disclosure, a weight method is used to distinguish between base data (data that directly participates in the core business process and needs to be accessed quickly and frequently, i.e., the first type of data of the present disclosure) and non-base data (data that does not directly participate in the core business and has a low access frequency, i.e., the second type of data of the present disclosure), wherein the TF-IDF algorithm is used to determine the weight of each data, so as to distinguish between the first type of data and the second type of data, such as Figure 3 shown.

[0092] The following describes different storage methods for the first type of data and the second type of data to be stored. Further, a method for reading data after storing data according to the above storage methods is specifically described.

[0093] As follows, the method for reading data according to an embodiment of the present disclosure includes:

[0094] When an access request for any stored data is received, a master node or a slave node is used to respond to the data based on the data type of the stored data.

[0095] In the present disclosure, receiving a data request for data response may be responding with data from a master node or responding with data from a slave node.

[0096] Specifically, when an access request for stored data is received, the data type in the request can be parsed. Based on the data type information, it is determined whether the type of the request is first-class data or second-class data. If the request is for first-class data, the request can be routed to the master node for processing, and the master node returns a data response. If the request is for second-class data, the request can be routed to one or more slave nodes for processing, and the slave nodes return a data response. In order to improve performance and fault tolerance, a load balancing algorithm can also be used to distribute read requests to different slave nodes, thereby completing the data reading process.

[0097] For example, Figure 4 This is the overall process of optimal data management according to the embodiment of the present disclosure.

[0098] like Figure 4 As shown:

[0099] S1: Data segmentation: divide the original data (i.e., the data to be stored in the present disclosure) into base data (i.e., the first category of data in the present disclosure) and non-base data (i.e., the second category of data in the present disclosure), store the base data in the master node, and then segment the non-base data into several data fragments (i.e., multiple data fragments in the present disclosure).

[0100] This step may specifically include:

[0101] Step 1.1, division of base data and non-base data: determine the weight factors and the corresponding weight values ​​(the weight values ​​can be set according to the actual situation, for example, data with higher business importance can be given at least one of higher weight values), divide the data into base data and non-base data according to the total weight (for example, data with higher total weight can be used as base data, and data with lower total weight can be used as non-base data), and store the base data in the master node;

[0102] Step 1.2: Confirmation of non-base data: Determine the segmentation strategy for non-base data and scan the non-base data to determine its content, structure and attributes;

[0103] Step 1.3: Segmentation of non-base data: Segment the scanned non-base data into segments to ensure that each data segment has independent meaning and integrity.

[0104] Step S2, identification of data segments: adding a specific beginning and address information (i.e., identification information disclosed in the present invention) to each segmented data segment;

[0105] This step may specifically include:

[0106] The format and structure of the data fragments need to be clarified to ensure that each data fragment has a fixed beginning and end, and the content is stored in the prescribed format. This ensures that the structure and content of the data fragment will not be destroyed when the beginning and address information are added.

[0107] Step S3, storage of data segments: reconstructing the data segments with specific beginning and address information added, and storing the reconstructed combined data (i.e., the reconstructed data disclosed in the present invention) in the same slave node;

[0108] This step may specifically include:

[0109] Step 3.1, cleaning and sorting of data fragments: The collected data fragments are cleaned and sorted to remove duplicate, invalid or erroneous data fragments, and ensure that each data fragment contains the correct beginning and address information and has a consistent format;

[0110] Step 3.2, determine the association between data fragments: Analyze the extracted specific beginning and address information to determine the association and structure between data fragments, which helps to understand the relationship between data fragments and how to reassemble them into a structure that is different from the original data;

[0111] Step 3.3, Reconstruction of data fragments: disrupt the arrangement of original data, and reorganize it using specific rules or algorithms, such as selecting data fragments from different sources to form new combined data that does not belong to the original data.

[0112] Step S4, dynamic regulation of slave nodes: according to the load conditions and the utilization of the storage space (ie, the status data disclosed herein), reduce or increase the number of slave nodes, thereby dynamically adjusting the slave node capacity (ie, the storage structure disclosed herein).

[0113] This step may specifically include:

[0114] Step 4.1, system monitoring: real-time monitoring of system load and storage space utilization, and setting initial threshold ranges for load and storage space utilization according to demand;

[0115] Step 4.2, automatic adjustment of nodes: Based on the set initial threshold range, add container orchestration tools (such as container orchestration system Kubernetes) to dynamically adjust the number of slave nodes according to system load and storage space utilization. When the system load exceeds the threshold or the data access volume increases, the number of slave nodes can be automatically increased; when the system load decreases or the data access volume decreases, the number of slave nodes can be automatically reduced;

[0116] Step 4.3, deployment of slave nodes: according to the automatic adjustment of slave nodes, automatically deploy and configure the slave nodes;

[0117] Step 4.4, system feedback: record in real time the number of slave nodes that increase or decrease, as well as the reasons that trigger the automatic adjustment of the slave nodes, so as to continuously improve and optimize the function of dynamically adjusting the number of slave nodes based on the actual operation of the system and user feedback.

[0118] In summary, it can be understood that the original data is divided into base data and non-base data using weight values, where the base data adopts a cache strategy and is stored in the master node. The cache strategy for the base data can be dynamically regulated through automatic system monitoring and management, that is, it can be adjusted according to the real-time data access situation and load situation to ensure that the data can respond quickly (caching management tools or system monitoring can be used to achieve automatic adjustment);

[0119] Among them, data with large weight values ​​are usually frequently accessed and used, and the data is often more important to the business. Storing them as base data can greatly improve the data reading speed, thereby improving the overall performance of the system. The cache strategy of base data allocates corresponding cache space for base data according to the access frequency and importance of the data. For frequently accessed data, more cache space can provide faster access speed;

[0120] Non-base data uses a distributed system to segment non-base data according to certain rules, so that each part can be stored independently and reconstructed into new combined data. When necessary, these parts can be reassembled and restored to the complete original data. A specific beginning and address information is added to each data fragment after segmentation, which serves as the identifier of the data fragment, so that the data fragment can be quickly located and accessed during storage and reading. At the same time, it helps to correctly combine related data fragments during data reconstruction to ensure the logical integrity and consistency of the data. Subsequently, the data fragments with the beginning and address information added are stored in different slave nodes in a load-balanced manner, realizing distributed storage and backup of data and improving data reliability and availability.

[0121] The amount of non-base data is huge and relatively scattered. In order to make more efficient use of storage space, distributed storage is performed according to the distributed system, which can more reasonably allocate storage resources and reduce space waste;

[0122] At the same time, in a distributed system, the system load and storage space utilization will be monitored in real time. According to the initial threshold range of the set load and storage space utilization, slave nodes can be dynamically increased or decreased to adapt to different data storage needs. That is, when the system load is high or the storage space is insufficient, new slave nodes can be automatically added to expand the storage capacity. When the system load is low or the storage space is in excess, slave nodes can be automatically reduced to save resources. In this way, the system can achieve elastic data storage and can be dynamically adjusted according to different needs to improve the performance and reliability of the system, thereby completing the entire data management process.

[0123] The present disclosure also provides a data management device storage system. The storage system can utilize the method of any of the above embodiments, and the storage device can include a storage node and a management device.

[0124] Storage nodes include master nodes and slave nodes. The master node can be used to implement independent data storage. Furthermore, it can also be responsible for processing requests and maintaining data integrity and consistency. The number of slave nodes is generally multiple, which is used to implement distributed storage of data. Whether the master and slave nodes have the ability to process requests can be flexibly adjusted according to actual needs and is not limited here.

[0125] The management device may be responsible for the operation and management of the entire system. The management system may include a foreground and a background. The foreground may be an interface for direct interaction between the user and the system, and may implement functions of user interaction and data display. The background may be the core part of the management system, and may implement functions such as data processing, logical operations, and data management. In the disclosed embodiment, the background may include: a data collection and segmentation module, a data segment identification module, a data segment reconstruction storage module, and a node dynamic adjustment module.

[0126] Specifically, the data collection and segmentation module can segment the second type of data. The data segment identification module can identify the segmented data segments. The data segment reconstruction storage module can reconstruct the segmented and identified data segments to obtain reconstructed data and perform distributed storage. The node dynamic control module can dynamically adjust according to the load of the system.

[0127] For example, Figure 5 The preferred data management device according to the embodiment of the present disclosure includes: a node and a management system. The management system may include: a metadata server cluster and an operation background.

[0128] Metadata server cluster: includes data collection and segmentation module, data segment identification module, data segment reconstruction storage module and slave node dynamic control module.

[0129] Specifically, the data collection and segmentation module can be understood as the reconstruction processing for the second data described above: including a data preprocessing unit, a weight calculation unit, a data segmentation unit and a monitoring collection unit; wherein the data segmentation unit and the monitoring collection unit are indispensable. The data preprocessing unit and the weight calculation unit can be replaced or adjusted according to actual needs.

[0130] A. A data preprocessing unit, which preprocesses the original data (i.e., the data to be stored in the present disclosure), including operations such as cleaning, formatting, and standardization, to ensure the quality and consistency of the data;

[0131] B. A weight calculation unit is responsible for determining factors used to calculate weights, wherein the factors include attributes, characteristics or business importance of the data, etc. By determining these factors, the relative importance of each data point can be determined, thereby dividing the data into basic data (i.e., the first type of data disclosed in the present invention) and non-basic data (i.e., the second type of data disclosed in the present invention), and according to the determined weight factors, the weight calculation unit will calculate each data point to obtain its corresponding weight value, and these weight values ​​reflect the importance and relative position of each data point in the data set; at the same time, the output result of the weight calculation unit can be used for data segmentation, and according to the weight values ​​calculated above, the data set can be divided into different levels or groups, so that the data points can be classified into different data segments according to their weight values;

[0132] C. Data segmentation unit, which segments the data according to the calculated weight value. Common segmentation strategies include at least one of time range, geographic location, business type, etc. According to the determined segmentation strategy, one or more keys for segmenting the data are selected, wherein the key is usually a field or attribute in the data, such as date, region code, etc. The defined segmentation key is used to segment the data according to the segmentation strategy by writing a script or using a data warehouse tool, and the segmented data is verified and tested;

[0133] D. A monitoring and collection unit monitors the plurality of data segments obtained by segmentation (ie, the data segments disclosed in the present invention).

[0134] The data segment identification module (ie, the identification information disclosed in the present invention) can be understood as being able to perform data identification during the reconstruction process of the second type of data as described above: including a data segment identifier.

[0135] The data segment identifier determines the format and structure of the data segment, which involves analyzing at least one attribute of the data segment, such as the type, length, and content; based on the determined format and structure, generates appropriate header information (i.e., the format information disclosed herein), including specific identifiers, separators, or other marks; and assigns a unique address (i.e., the location information disclosed herein) based on the data segment, and the address can be a physical address, a logical address, or other form of identification.

[0136] The data segment reconstruction storage module can be understood as the above-mentioned distributed storage for the reconstruction of the second data: including a reconstruction algorithm processing unit, a data segment storage unit, and a storage management unit; wherein, the reconstruction algorithm processing unit and the storage management unit are indispensable, and the data segment storage unit can be flexibly adjusted according to actual needs. The reconstruction algorithm of the reconstruction algorithm processing unit includes but is not limited to at least one of the following: convex optimization method, greedy calculation method, combination method, word frequency weighted statistical method (TF-IDF), which is not limited here. The storage management unit can be understood as the above-mentioned distributed storage of the reconstructed data.

[0137] A. Reconstruction algorithm processing unit, responsible for executing the reconstruction algorithm of the data fragments, processing and converting the data according to specific requirements, wherein the reconstruction algorithm used is different from the algorithm of the original data, and the reconstruction algorithm for the data fragments can be a data cleaning algorithm, a format conversion algorithm, etc., to reconstruct and combine the data fragments;

[0138] B. A data segment storage unit, used to store the original data and reconstructed data (i.e., the reconstructed data disclosed in the present invention) of the data segment; it can be selectively stored;

[0139] C. A storage management unit, which is used to store the reconstructed combined data in different slave nodes, wherein the combined data is pre-processed, such as data compression and encryption, and the combined data is stored in the slave nodes according to certain policies or rules, including selecting storage nodes, determining the number of data copies, setting data access permissions, etc. The storage of the combined data may also involve network communications, file system operations, or database writes.

[0140] The slave node dynamic control module can be understood as the dynamic adjustment of the target object based on the state data as described above: including a load balancing unit, a resource allocation unit and a fault tolerance mechanism control unit; among them, the load balancing unit and the fault tolerance mechanism control unit are indispensable.

[0141] A. Load balancing unit, according to the load situation of the system, selects a suitable load balancing algorithm, among which the load balancing algorithms include polling, least number of connections, source IP hashing, etc. The polling algorithm is simple and fair, the least number of connections algorithm can give priority to the server with the least number of connections, and the source IP hashing algorithm selects the server by performing hash calculation based on the client IP address; selects a suitable load balancing architecture according to the needs and algorithms, and common load balancing architectures include LAN load balancing, global load balancing, and cloud load balancing, etc. LAN load balancing is suitable for traffic distribution within a single data center, global load balancing is suitable for traffic distribution between multiple data centers, and cloud load balancing is suitable for traffic distribution in a cloud environment; the load balancing unit will dynamically adjust the task distribution strategy to distribute requests to slave nodes with lighter loads;

[0142] B. Resource allocation unit, which determines the resource requirements of each slave node, such as memory, CPU, storage space, etc., and determines how to allocate the combined data among these slave nodes, so as to allocate the combined data to be allocated to different slave nodes. The allocation of combined data involves operations such as data replication, migration, and caching, and the combined data in different slave nodes are monitored in real time.

[0143] C. The fault-tolerant mechanism control unit monitors at least one of the data access logs, load data, storage space utilization, etc. of the mobile phone or computer in real time. A third-party monitoring tool can be used, such as the open source monitoring and alarm tool Prometheus, the open source data analysis and monitoring tool Grafana, etc., wherein the load data includes monitoring at least one of the CPU usage, memory occupancy, network bandwidth, etc., to determine whether the slave node is idle. According to the data access and load conditions, for frequently accessed data, the number of slave nodes can be increased to improve the response speed. For data with less access, the number of slave nodes can be appropriately reduced to save resources. By using the automatic expansion function of cloud computing, when a slave node is overloaded, the number of slave nodes is automatically increased to share the load. The future data access pattern and load conditions are predicted according to intelligent algorithms (such as machine learning, artificial intelligence, etc.). Based on these predictions, the slave nodes are adjusted in advance.

[0144] The operation background is specifically a cloud management platform, which undertakes many important responsibilities such as monitoring, scheduling, configuration, and security control. Through real-time system monitoring, the operation background can promptly discover and solve performance problems to ensure stable system operation. At the same time, it is also responsible for the reasonable allocation of resources, dynamically adjusting the system load according to demand, and optimizing data processing efficiency. It is responsible for coordinating and managing the operation of the entire system to ensure efficient, stable, and secure data storage and processing.

[0145] The present disclosure also provides a data management device. Figure 6 A structural block diagram of a data management device provided in an embodiment of the present disclosure, such as Figure 6 As shown, the data management device 600 includes:

[0146] The acquisition unit 601 is used to acquire data to be stored.

[0147] The first management unit 602 is used to write the data to be stored into the storage space of the master node when the data to be stored is the first type of data.

[0148] The second management unit 603 is used to obtain reconstructed data of the data to be stored when the data to be stored is the second type of data, and to store the reconstructed data in a distributed manner in at least one slave node.

[0149] In an exemplary embodiment, reconstructed data of data to be stored is obtained, and the reconstructed data is distributedly stored in at least one slave node, including: reconstructing the data to be stored N times to obtain N reconstructed data, distributing and storing the N reconstructed data in M ​​slave nodes; wherein any one of the M slave nodes locally stores at least one reconstructed data; wherein N is an integer greater than 0, and M is an integer greater than 0.

[0150] In an exemplary embodiment, obtaining reconstructed data of data to be stored includes: splitting the data to be stored to obtain multiple data segments; and recombining the data segments to obtain reconstructed data; wherein the reconstructed data is different from the data to be stored.

[0151] In an exemplary embodiment, before reassembling the data segments, the method further includes: adding identification information to the data segments; wherein the identification information is used to identify the relationship between the data segments and the data to be stored; the identification information includes at least one of the following: format information, location information.

[0152] In an exemplary embodiment, reconstructed data of data to be stored is obtained, and the reconstructed data is distributedly stored in at least one slave node, including: using at least one slave node to reconstruct the data to be stored to obtain the reconstructed data, and the slave node locally stores the reconstructed data.

[0153] In an exemplary embodiment, the method also includes: monitoring the status data of the target object, the status data including at least one of the following: load, storage space utilization, and access volume; when the status data indicates a change in the state of the target object, adjusting the storage structure of the target object; the storage structure includes at least one of the following: storage space size and number of nodes.

[0154] In an exemplary embodiment, when the target object is a slave node, the storage structure of the target object is adjusted, including: when the status data indicates that the slave node load is large, increasing the number of slave nodes; when the status data indicates that the slave node load is small, reducing the number of slave nodes.

[0155] In an exemplary embodiment, when the target object is a master node, the storage structure of the target object is adjusted, including: when the status data indicates that the access frequency of the first type of data is high, increasing the storage space of the master node; when the status data indicates that the access frequency of the first type of data is low, reducing the storage space of the master node.

[0156] In an exemplary embodiment, the access frequency of the first category of data is higher than the access frequency of the second category of data; and / or the importance of the first category of data is higher than the importance of the second category of data.

[0157] In an exemplary embodiment, the method further includes: when an access request for any stored data is received, based on the data type of the stored data, using a master node or a slave node to respond to the data.

[0158] Figure 7 A hardware block diagram of an electronic device provided in an embodiment of the present disclosure. The electronic device 700 according to an embodiment of the present disclosure includes at least a processor; and a memory for storing computer-readable instructions. When the computer-readable instructions are loaded and executed by the processor, the processor executes the data management method described in any of the above embodiments of the present disclosure.

[0159] Figure 7 The electronic device 700 shown specifically includes: a central processing unit (CPU) 701, a graphics processing unit (GPU) 702 and a memory 703. These units are interconnected via a bus 704. The central processing unit (CPU) 701 and / or the graphics processing unit (GPU) 702 can be used as the above-mentioned processor, and the memory 703 can be used as the above-mentioned memory for storing computer-readable instructions. In addition, the electronic device 700 may also include a communication unit 705, a storage unit 706, an output unit 707, an input unit 708 and an external device 709, which are also connected to the bus 704.

[0160] Figure 8 A schematic diagram of a computer-readable storage medium provided in an embodiment of the present disclosure. Figure 8 As shown, a computer-readable storage medium 800 according to an embodiment of the present disclosure has computer-readable instructions 801 stored thereon. When the computer-readable instructions 801 are executed by the processor, the data management method described with reference to the above figures according to any of the foregoing embodiments of the present disclosure is executed. The computer-readable storage medium includes, but is not limited to, for example, volatile memory and / or non-volatile memory. Volatile memory may, for example, include random access memory (RAM) and / or cache memory (cache), etc. Non-volatile memory may, for example, include read-only memory (ROM), hard disk, flash memory, optical disk, magnetic disk, etc.

[0161] The present disclosure further provides a computer program product, including a computer program, which, when executed by a processor, implements the data management method described in any of the foregoing embodiments of the present disclosure.

[0162] As described above, the present disclosure provides a data management method, device, electronic device, storage medium and program product. The technical solution provided by the present disclosure can classify data and perform differentiated storage and management. For the first category of data, the first category of data is written to the master node so that the first category of data can achieve a quick response. For the second category of data, the second category of data is reconstructed to generate reconstructed data, and the reconstructed data is stored in at least one slave node for distributed management. This data management method can be flexibly adjusted according to the different characteristics and requirements of the data. In this way, when the node is overloaded, it can adapt to different numbers of data requests through dynamic adjustment of the master and slave nodes, thereby breaking through the performance bottleneck of the node, accelerating the data response speed, and improving system performance.

[0163] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this disclosure.

[0164] The basic principles of the present disclosure are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present disclosure are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present disclosure. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, and are not limitations. The above details do not limit the present disclosure to the necessity of adopting the above specific details to be implemented.

[0165] The block diagrams of the devices, apparatuses, equipment, and systems involved in this disclosure are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including," "comprising," "having," and the like are open words, referring to "including but not limited to," and can be used interchangeably therewith. The words "or" and "and" used herein refer to the words "and / or," and can be used interchangeably therewith, unless the context clearly indicates otherwise. The word "such as" used herein refers to the phrase "such as but not limited to," and can be used interchangeably therewith.

[0166] Additionally, as used herein, "or" used in a list of items beginning with "at least one" indicates a separate list, so that, for example, a list of "at least one of A, B, or C" means A or B or C, or AB or AC or BC, or ABC (i.e., A and B and C). Furthermore, the word "exemplary" does not mean that the example described is preferred or better than other examples.

[0167] It should also be noted that in the system and method of the present disclosure, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present disclosure.

[0168] Various changes, substitutions, and modifications of the techniques described herein may be made without departing from the teachings defined by the appended claims. Furthermore, the scope of the claims of the present disclosure is not limited to the specific aspects of the processes, machines, manufactures, compositions of events, means, methods, and actions described above. Currently existing or later to be developed processes, machines, manufactures, compositions of events, means, methods, or actions that perform substantially the same functions or achieve substantially the same results as the corresponding aspects described herein may be utilized. Thus, the appended claims include such processes, machines, manufactures, compositions of events, means, methods, or actions within their scope.

[0169] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

[0170] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present disclosure to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.

Claims

1. A data management method, characterized in that: include: Get the data to be stored; When the data to be stored is the first type of data, writing the data to be stored into the storage space of the master node; When the data to be stored is data of the second category, reconstructed data of the data to be stored is obtained, and the reconstructed data is distributedly stored in at least one slave node.

2. The method according to claim 1, characterized in that The obtaining of the reconstructed data of the data to be stored and distributively storing the reconstructed data in at least one slave node includes: Performing N reconstruction processes on the data to be stored to obtain N reconstructed data; The N reconstructed data are distributedly stored in the M slave nodes; wherein any one of the M slave nodes locally stores at least one reconstructed data; Wherein, N is an integer greater than 0, and M is an integer greater than 0.

3. The method according to claim 1 or 2, characterized in that: The obtaining the reconstructed data of the data to be stored includes: Splitting the data to be stored to obtain multiple data fragments; The data segments are reassembled to obtain the reconstructed data; wherein the reconstructed data is different from the data to be stored.

4. The method according to claim 3, characterized in that Before reassembling the data segments, the method further includes: Adding identification information to the data segment; wherein the identification information is used to identify the relationship between the data segment and the data to be stored; The identification information includes at least one of the following: format information and location information.

5. The method according to any one of claims 1 to 4, characterized in that: The obtaining of the reconstructed data of the data to be stored and distributively storing the reconstructed data in at least one slave node includes: The data to be stored is reconstructed using at least one of the slave nodes to obtain the reconstructed data, and the slave node stores the reconstructed data locally.

6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: Monitoring the status data of the target object, wherein the status data includes at least one of the following: load, storage space utilization, and access volume; When the state data indicates a change in the state of the target object, the storage structure of the target object is adjusted; the storage structure includes at least one of the following: storage space size, number of nodes.

7. The method according to claim 6, characterized in that When the target object is a slave node, the adjusting the storage structure of the target object includes: When the status data indicates that the slave node has a heavy load, increasing the number of the slave nodes; When the status data indicates that the slave node load is small, the number of the slave nodes is reduced.

8. The method according to claim 6, characterized in that When the target object is a primary node, adjusting the storage structure of the target object includes: When the status data indicates that the first type of data has a high access frequency, increasing the storage space of the master node; When the status data indicates that the access frequency of the first type of data is low, the storage space of the master node is reduced.

9. The method according to any one of claims 1 to 8, characterized in that: The access frequency of the first category of data is higher than the access frequency of the second category of data; and / or, The importance of the first category of data is higher than that of the second category of data.

10. The method according to any one of claims 1 to 9, characterized in that: The method further comprises: When an access request for any stored data is received, the master node or the slave node is used to respond to the data based on the data type of the stored data.

11. A data management device, characterized in that: include: An acquisition unit, used for acquiring data to be stored; A first management unit, configured to write the data to be stored into a storage space of a master node when the data to be stored is of the first type; The second management unit is used to obtain reconstructed data of the data to be stored when the data to be stored is the second type of data, and to store the reconstructed data in a distributed manner in at least one slave node.

12. An electronic device, characterized in that: include: a memory for storing computer readable instructions; as well as A processor is used to run the computer-readable instructions so that the electronic device executes the method according to any one of claims 1 to 10.

13. A non-transitory computer-readable storage medium for storing computer-readable instructions, characterized in that: When the computer-readable instructions are executed by a processor, the processor is caused to perform the method according to any one of claims 1 to 10.

14. A computer program product, characterized in that The method comprises a computer program, which implements the method according to any one of claims 1 to 10 when being executed by a processor.

Citation Information

Cited By

  • Performance tuning method and device

    CN119690341A

  • Automatic capacity management method and system for distributed data analysis engine

    CN119884254A