Storage system, data storage method, device, product and medium
By designing the first storage cluster and the second storage cluster in the storage system, and using metadata to unify the namespace and target protocol, the problem that traditional storage systems cannot achieve cross-regional data synchronization is solved, and high performance and large capacity of data are achieved. Storage and access.
Patent Information
- Application Number
- CN202410831919.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-06-26
AI Technical Summary
Traditional storage systems cannot effectively realize cross-regional data transmission and synchronization, resulting in the inability to achieve intelligent data storage and management between storage nodes in different regions.
A storage system is designed, including a first storage cluster and a second storage cluster. The first storage cluster is located near the business system, and the second storage cluster is located in a distant area. The unified namespace and target protocol of metadata are used to realize data storage in different areas. Area management and access use multi-threaded concurrent transmission and sharding technology to optimize data migration and access.
It achieves high-performance and low-latency data access to meet the needs of business systems for real-time data, and provides large-capacity storage resources to meet the needs of business systems for large-scale data storage. It realizes data storage through metadata unified namespace and target protocols. Management and access to different areas.
Smart Images

Figure CN118377442B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of storage systems, and in particular to a storage system, data storage method, device, product and medium. Background Art
[0002] Traditional storage systems are usually limited to data management in a single region and cannot effectively handle the needs of cross-regional data transmission and synchronization, and thus cannot achieve intelligent data storage and management between storage nodes in different regions. Summary of the invention
[0003] In view of this, embodiments of the present application provide a storage system, a data storage method, a device, a product, and a medium to overcome the above-mentioned problems or at least partially solve the above-mentioned problems.
[0004] A first aspect of an embodiment of the present application provides a storage system, the storage system comprising:
[0005] a first storage cluster and a second storage cluster;
[0006] A metadata unified namespace is deployed in the first storage cluster;
[0007] The first storage cluster includes multiple first storage nodes, the second storage cluster includes multiple second storage nodes, the area where the first storage cluster is located is less than a preset distance from the business system, the area where the second storage cluster is located is not less than the preset distance from the business system, the areas where the multiple second storage nodes included in the second storage cluster are located are different from each other, and the multiple second storage nodes are respectively connected to the first storage cluster through a target protocol;
[0008] The metadata unified namespace is used to store metadata information of the data stored in the storage system.
[0009] Optionally, it also includes:
[0010] The first storage cluster is further used to establish, in the metadata unified namespace, a first correspondence between data already stored in a plurality of first storage nodes included in the first storage cluster and the first storage node;
[0011] The first storage cluster is configured to update the first correspondence to a second correspondence between the data migrated to the second storage cluster and the second storage nodes after migrating the data stored in the multiple first storage nodes to the multiple second storage nodes of the second storage cluster.
[0012] Optionally, the first storage cluster is deployed with a hot data storage space, the hot data storage space is used to store hot data through a plurality of first storage nodes, and the data stored in the plurality of first storage nodes is divided into cold data and hot data according to the data heat of the data stored in the plurality of first storage nodes;
[0013] The hot data storage space is further used to initiate a data migration task for the cold data, so as to migrate the cold data in the plurality of first storage nodes to the plurality of second storage nodes in the second storage cluster.
[0014] Optionally, the first storage cluster is used to modify the metadata information stored in the metadata unified namespace and related to the cold data migrated to the multiple second storage nodes in the second storage cluster after the hot data storage space migrates the cold data to the multiple second storage nodes in the second storage cluster.
[0015] Optionally, a hot data storage space is deployed in the first storage cluster, and the hot data storage space is used to store the hot data through a plurality of first storage nodes;
[0016] The first storage cluster is used to determine the storage location of the first target data from the metadata unified namespace when receiving a read request for the first target data;
[0017] The first storage cluster is further configured to read the first target data from the hot data storage space when determining that the first target data is stored in the hot data storage space;
[0018] The first storage cluster is further configured to read the first target data through a target protocol when it is determined that the first target data is stored in any second storage node among the plurality of second storage nodes.
[0019] Optionally, the first storage cluster is used to obtain the modified second target data when receiving a modification command for the second target data issued by the business system;
[0020] The first storage cluster is used to determine the storage location of the second target data through the metadata unified namespace;
[0021] The first storage cluster is used to store the modified second target data in a storage location of the second target data.
[0022] Optionally, the multiple first storage nodes of the first storage cluster are used to execute multiple data migration tasks of cold data, the first storage cluster shares multiple data migration tasks, the first storage cluster is used to transmit multiple cold data in a multi-threaded concurrent manner, the multiple cold data include first data and second data, the data size of the first data is larger than a preset data size, and the data size of the second data is not larger than the preset data size;
[0023] When there is a failed first storage node in the first storage cluster, multiple data migration tasks on the failed first storage node are evenly distributed to multiple other first storage nodes in the first storage cluster.
[0024] Optionally, the first storage nodes included in the first storage cluster are configured to split the first data corresponding to the data migration task into multiple objects through a target protocol according to the data migration tasks performed by the first storage nodes, and to divide each of the objects into multiple shards;
[0025] The multiple first storage nodes included in the first storage cluster transmit the multiple shards in parallel in a multi-threaded concurrent manner.
[0026] Optionally, the first storage nodes included in the first storage cluster are configured to split the second data corresponding to the data migration task into multiple fragments through a target protocol according to the data migration tasks performed by the first storage nodes;
[0027] The multiple first storage nodes included in the first storage cluster transmit the multiple shards in parallel in a multi-threaded concurrent manner.
[0028] Optionally, the plurality of first storage nodes included in the first storage cluster transmit the plurality of shards in parallel in a multi-threaded concurrent manner, including:
[0029] The first storage node is used to asynchronously read the offset of each shard obtained after the data is divided and the data content included in the shard;
[0030] The first storage node is used for, when the data includes multiple objects, dividing the data migration task into multiple subtasks corresponding to the multiple objects, and placing the multiple subtasks into queues corresponding to the data in order, wherein the subtasks corresponding to the multiple data are placed into multiple queues;
[0031] The first storage node is used to concurrently transmit the shards corresponding to the subtasks in the multiple queues to the multiple second storage nodes in the second storage cluster in a multi-threaded concurrent manner according to the offsets corresponding to the shards.
[0032] Optionally, the plurality of first storage nodes included in the first storage cluster transmit the plurality of shards in parallel in a multi-threaded concurrent manner, further comprising:
[0033] The first storage node is used to determine the total number of multiple shards included in the data;
[0034] The first storage node is used for, in the process of concurrently transmitting the multiple fragments, for each data, after completing the transmission of one fragment of the data, reducing the total number of the multiple fragments included in the data by one;
[0035] The first storage node is used to determine that the data transmission is completed when the total number of shards included in the data is 0;
[0036] The first storage node is used to restart the transmission from the fragment that failed to be transmitted when there is a fragment that failed to be transmitted during the concurrent transmission of the multiple fragments.
[0037] The first storage cluster is used to modify metadata information stored in the metadata unified namespace and related to the cold data migrated to the multiple second storage nodes in the second storage cluster after the hot data storage space migrates the cold data to the multiple second storage nodes in the second storage cluster.
[0038] A second aspect of an embodiment of the present application provides a data storage method, which is applied to a storage system, wherein the storage system includes a first storage cluster and a second storage cluster, a metadata unified namespace is deployed in the first storage cluster, the first storage cluster includes multiple first storage nodes, the second storage cluster includes multiple second storage nodes, the area where the first storage cluster is located is less than a preset distance from a business system, the area where the second storage cluster is located is not less than the preset distance from the business system, the areas where the multiple second storage nodes included in the second storage cluster are located are different from each other, the multiple second storage nodes are respectively connected to the first storage cluster through a target protocol, the metadata unified namespace is used to store metadata information of data stored in the storage system, and the method includes:
[0039] Establishing, in the metadata unified namespace, a first correspondence between data already stored in a plurality of first storage nodes included in the first storage cluster and the first storage node;
[0040] After the data stored in the plurality of first storage nodes is migrated to the plurality of second storage nodes of the second storage cluster, the first correspondence is updated to a second correspondence between the data migrated to the second storage cluster and the second storage nodes.
[0041] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the data storage method as described in the second aspect.
[0042] In a fourth aspect of an embodiment of the present application, a computer program product is provided, including a computer program, which, when executed by a processor, implements the data storage method as described in the second aspect.
[0043] According to a fifth aspect of the embodiments of the present application, a computer-readable medium is provided, on which a computer program is stored, wherein when the computer program is executed by a processor, the data storage method as described in the second aspect is implemented.
[0044] Beneficial effects of this application:
[0045] An embodiment of the present application provides a storage system, a data storage method, a device, a product and a medium. The storage system includes: a first storage cluster and a second storage cluster; a metadata unified namespace is deployed in the first storage cluster; the first storage cluster includes multiple first storage nodes, the second storage cluster includes multiple second storage nodes, the area where the first storage cluster is located is less than a preset distance from a business system, the area where the second storage cluster is located is not less than the preset distance from the business system, the areas where the multiple second storage nodes included in the second storage cluster are located are different from each other, and the multiple second storage nodes are respectively connected to the first storage cluster through a target protocol; wherein the metadata unified namespace is used to store metadata information of data stored in the storage system.
[0046] The first storage cluster can be set in an area that is less than a preset distance from the business system to achieve high-performance and low-latency data access, meeting the business system's needs for real-time data. The second storage cluster is set in an area that is not less than a preset distance from the business system and connected to the first storage cluster through the target protocol, which can provide large-capacity storage resources to meet the business system's needs for large-scale data storage, and manage and access the storage system's data in different areas through the metadata unified namespace and target protocol, meeting the business system's needs for data storage. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application.
[0048] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the description of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0049] Figure 1 is a schematic diagram of a storage system provided by an embodiment of the present application;
[0050] Figure 2 is a hierarchical schematic diagram of a storage system provided by an embodiment of the present application;
[0051] Figure 3 It is a flowchart of a data storage method provided by an embodiment of the present application;
[0052] Figure 4 It is a schematic diagram of a data storage device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0053] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application may be combined with each other.
[0054] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0055] Figure 1 is a schematic diagram of a storage system provided by an embodiment of the present application, Figure 2 is a hierarchical schematic diagram of a storage system provided by an embodiment of the present application, such as Figure 1 As shown, an embodiment of the present application provides a storage system, the storage system comprising:
[0056] a first storage cluster and a second storage cluster;
[0057] A metadata unified namespace is deployed in the first storage cluster;
[0058] The first storage cluster includes multiple first storage nodes, the second storage cluster includes multiple second storage nodes, the area where the first storage cluster is located is less than a preset distance from the business system, the area where the second storage cluster is located is not less than the preset distance from the business system, the areas where the multiple second storage nodes included in the second storage cluster are located are different from each other, and the multiple second storage nodes are respectively connected to the first storage cluster through a target protocol;
[0059] The metadata unified namespace is used to store metadata information of the data stored in the storage system.
[0060] In one embodiment, if Figure 2 As shown in the figure, the storage system consists of two layers. The storage cluster closer to the application layer uses a unified namespace for storage metadata and accesses storage from multiple vendors in different regions (such as vendor 1 in Shanghai, vendor 2 in Beijing, and vendor 3 in Chengdu, etc.) through a target protocol.
[0061] Specifically, Figure 1 As shown, the storage system includes a first storage cluster and a second storage cluster. The first storage cluster and the second storage cluster are both used to store data generated by the business system. Different data can be stored in different locations according to the life cycle of the data.
[0062] The business system is responsible for processing business logic and business data and writing the data into the storage system, while the storage system provides data storage and access capabilities and stores the business system data in appropriate storage nodes.
[0063] The first storage cluster includes multiple first storage nodes. In order to fully utilize the storage space of the storage system, data can be stored in different storage nodes according to different data popularity. Specifically, the first storage node connects to different types of storage pools to store and manage data according to the business needs and performance requirements of the stored data, such as an all-flash pool, a mixed flash pool, and an HDD (mechanical hard disk) pool.
[0064] Preferably, for the full flash pool, frequently accessed data can be stored, such as: hot data of the database, cached data, real-time analysis data, transaction records, etc.; for the mixed flash pool, data with a certain access frequency can be stored, such as: warm data of the database (backup of hot data), historical data, intermediate results of big data analysis, etc.; for the HDD pool, data requiring large-capacity storage can be stored, such as: archived data, backup data, cold data in large-scale data warehouses, and long-term log data
[0065] Preferably, different storage pools can be selected for different business systems, such as:
[0066] For an e-commerce platform, the sales data of popular products and users' real-time transaction records are suitable for storage in an all-flash pool to provide high-performance and low-latency data access.
[0067] For a financial institution, historical transaction data and some intermediate analysis results are suitable for storage in a mixed flash pool to achieve a balance between performance and capacity.
[0068] For a medical institution, patients' electronic medical records and large-scale medical image data are suitable for storage in an HDD pool to provide large-capacity storage resources.
[0069] The multiple first storage nodes included in the first storage cluster are all located in the proximal storage of the data center where the business system is located. The distance between them and the business system is less than a preset threshold and can be quickly accessed. The first storage cluster can be used to cache the most frequently accessed data. When the client of the business system needs to read or write these data, it can directly access the first storage cluster without having to access the remote storage through the network, thereby improving performance.
[0070] The second storage cluster includes multiple second storage nodes, and different second storage nodes are located in different areas. They are all remote storage with a distance from the business system not less than a preset distance. Multiple second storage nodes are connected to the first storage cluster through a target protocol, such as AS13000, third-party storage, cloud storage, Blu-ray, tape library, etc., where the target protocol is an object storage protocol, namely Simple Storage Service (S3 for short), which is a public cloud storage service. S3 provides a RESTful API to implement interaction with the service programmatically. The data storage structure of S3 is divided into two layers, the first layer is Bucket, and the second layer is Object.
[0071] In the first storage cluster, a unified metadata namespace is deployed. The unified metadata namespace is used to store metadata information of data stored in multiple first storage nodes in the first storage cluster and multiple second storage nodes in the second storage cluster in the storage system, so as to centrally manage and access metadata of data objects. Metadata refers to information that describes the attributes of a data object, such as creation time, modification time, owner, permission, size, type, etc. The unified namespace means that these metadata share a global namespace so that any part of the entire storage system or storage cluster can access and reference these metadata information. Through the unified metadata namespace, no matter whether the data is migrated to a third-party cloud or a storage node in another storage system, it can be managed through a unified view provided by metadata management.
[0072] Through the above embodiments, the first storage cluster is set at the near end of the business system (less than a preset distance from the business system), which can achieve high-performance and low-latency data access, meeting the business system's demand for real-time data. The second storage cluster is located at the far end of the business system (not less than a preset distance from the business system) and connected to the first storage cluster through the target protocol, which can provide large-capacity storage resources and meet the business system's demand for large-scale data storage. And through the metadata unified namespace and target protocol, the data of the storage system can be managed and accessed in different areas, meeting the business system's demand for data storage.
[0073] Optionally, it also includes:
[0074] The first storage cluster is further used to establish, in the metadata unified namespace, a first correspondence between data already stored in a plurality of first storage nodes included in the first storage cluster and the first storage node;
[0075] The first storage cluster is configured to update the first correspondence to a second correspondence between the data migrated to the second storage cluster and the second storage nodes after migrating the data stored in the multiple first storage nodes to the multiple second storage nodes of the second storage cluster.
[0076] Specifically, in one embodiment, the data generated by the business system can be directly stored in the second storage cluster, or migrated to the second storage cluster through the first storage cluster. After the data is stored in the first storage cluster, a first correspondence between the data and the first storage node where the data is located will be newly created in the metadata unified namespace to record the storage location mapping of the data to each first storage node in the first storage cluster.
[0077] Furthermore, when these data are migrated from the first storage cluster to multiple storage nodes of the second storage cluster, corresponding modifications need to be made in the metadata unified namespace to update metadata information related to these migrated data.
[0078] Further, the mapping relationship between the data originally recorded in the "first corresponding relationship" in the metadata unified namespace and the first storage node is modified to a "second corresponding relationship" to map to the actual storage location of the migrated data in the second storage cluster.
[0079] In this way, the unified metadata namespace can track and record the latest storage location of the data in real time, providing metadata support for the application layer to correctly access the data.
[0080] Optionally, the first storage cluster is deployed with a hot data storage space, the hot data storage space is used to store hot data through a plurality of first storage nodes, and the data stored in the plurality of first storage nodes is divided into cold data and hot data according to the data heat of the data stored in the plurality of first storage nodes;
[0081] The hot data storage space is further used to initiate a data migration task for the cold data, so as to migrate the cold data in the plurality of first storage nodes to the plurality of second storage nodes in the second storage cluster.
[0082] Specifically, in one embodiment, multiple first storage nodes in a first storage cluster are used as hot data storage spaces, and hot data is stored in the hot data storage spaces. Hot data is data that is frequently accessed and updated, and based on the data heat of the data stored in the multiple first storage nodes, the data stored in the multiple first storage nodes are divided into cold data and hot data according to the data heat (when the data heat is greater than a heat threshold, it is determined to be hot data, otherwise it is cold data). When the data is determined to be cold data (for example, the data heat of the hot data decreases and becomes cold data), a corresponding data migration task for the cold data is initiated to migrate the cold data in the multiple first storage nodes to the multiple second storage nodes in the second storage cluster. In the process of dynamic storage of data, the data stored in the first storage cluster are all hot data, and the data stored in the second storage cluster are cold data.
[0083] Through the above embodiments, hot data can be stored in the hot data storage space and stored through multiple first storage nodes. When the hot data needs to be accessed, it can be quickly obtained from the hot data storage space, thereby improving the access speed and availability of the hot data. In addition, by storing cold data through the second storage cluster, the utilization of storage resources can be optimized, and the capacity and performance of the entire storage system can be improved. The data storage process changes dynamically with the data heat. When hot data becomes cold data, the data can be migrated from the hot data storage space to the second storage node of the second storage cluster, thereby realizing the flexibility of the storage system.
[0084] Optionally, the first storage cluster is used to modify the metadata information stored in the metadata unified namespace and related to the cold data migrated to the multiple second storage nodes in the second storage cluster after the hot data storage space migrates the cold data to the multiple second storage nodes in the second storage cluster.
[0085] Specifically, after the data is migrated to the second storage cluster far from the business system, the metadata information corresponding to the migrated data is centrally managed and tracked through a unified metadata namespace. The purpose of modifying the metadata information is to reflect the change in the actual storage location of the migrated data.
[0086] It should be noted that the metadata information of the data includes: name, path, size, creation / modification / access time, owner / permission information, checksum, storage node where the data is located, data mapping information (such as block storage), storage medium type (SSD / HDD, etc.), identification of hot data / cold data of the data, last access time, migration history record, storage cluster topology, capacity utilization, fault / backup information, etc. After migrating the data, the metadata information that needs to be modified includes at least: storage node where the data is located, data mapping information (such as block storage), storage medium type (SSD / HDD, etc.), identification of hot data / cold data of the data, and migration history record.
[0087] Specifically, the embodiment of the present application manages metadata through the target protocol (object storage protocol S3) and manages the second storage cluster into the first storage cluster. First, the second storage cluster creates a storage bucket and generates a public key and a private key of the object storage protocol as authentication credentials. Then, the public key and the private key are added to the first storage cluster through a command to establish a migration relationship. In this way, the first storage cluster can communicate with the second storage cluster through the object storage protocol. Next, a migration relationship is established between the local directory of the first storage cluster and the local directory of the second storage cluster through a command. In this way, the first storage cluster can determine which data to migrate to the second storage cluster. When the data is determined to need to be migrated according to the data heat rule, the first storage cluster initiates a data migration task. Through the object storage protocol, the first storage cluster automatically transfers the data from the first storage cluster to the second storage cluster. This means that the actual storage location of the data becomes the second storage cluster, but the metadata information of the data is still stored in the first storage cluster. After the data migration is completed, the first storage cluster modifies the metadata information of the data and marks that the data has been migrated to the second storage cluster through the migration relationship. When a user accesses data in the first storage cluster, based on the metadata information, if the data is still in the first storage cluster, the user directly accesses the first storage cluster; if the data has been migrated to the second storage cluster, the user reads the data from the second storage cluster through the object storage protocol. If the user modifies the content of the data, the modified content is also sent to the second storage cluster through the object storage protocol. This ensures that the user's read and write operations on the data can still be managed through the metadata of the first storage cluster and provides a unified view for the user.
[0088] Optionally, the distance of the migrated second storage node can also be determined based on the hotness or coldness of the data. The lower the data hotness of the cold data, the farther the second storage node is stored; the higher the data hotness of the cold data (but not higher than the critical value of the hotness of the cold data and the hot data), the closer the second storage node is stored.
[0089] Through the above embodiments, it is possible to achieve separate storage of hot data and cold data in the storage system. Through dynamic storage, only hot data can be stored in the first storage cluster, thereby improving the hot data access performance. The cold data can be migrated to the second storage cluster far away from the business system, which can reduce the cold data storage cost. The metadata information can be modified after migration, and efficient resource utilization can be achieved through centralized metadata management.
[0090] As an example, when data changes from hot data in the hot data storage space of the first storage cluster to cold data, the process of migrating the data to the second storage cluster includes the following steps:
[0091] 1. Hot data identification:
[0092] The storage system will continuously monitor the access frequency of data and determine whether the data has changed from hot data to cold data based on certain strategies and thresholds. Common identification methods include the least recently used (LRU) and most recently used (LFU) algorithms.
[0093] The storage system usually determines whether data changes from hot data to cold data based on data access frequency and certain policies and thresholds, including the following judgment methods:
[0094] ①Last Access Time
[0095] When data has not been accessed within a first target time period (eg, 30 days), it may be considered cold data.
[0096] ②Access Frequency
[0097] The number of accesses to each data item in the second target time period (for example, 90 days) is periodically counted. When the number of accesses to the data item is lower than a certain threshold (for example, 10 times), the data item is considered as cold data.
[0098] ③Modification Time
[0099] When data has not been modified within the third target time period, it is considered cold data.
[0100] ④Size
[0101] For data whose size is larger than a preset size (several GB or more), it is considered as cold data even if the access frequency is high.
[0102] ⑤File Type
[0103] For data of certain file types, such as logs and temporary files, the storage system may directly regard them as cold data.
[0104] 2. Data Migration:
[0105] For files identified as cold data, the storage system triggers a data migration task to transfer the data from the near-end storage (the first storage cluster) to the far-end storage (the second storage cluster).
[0106] 3. Metadata update:
[0107] After the data migration is completed, the metadata information related to the data in the unified metadata namespace needs to be updated, including the storage location and access path of the data after migration, to ensure that the application can correctly access the migrated data.
[0108] 4. Near-end data cleaning:
[0109] In order to free up storage space on the near-end storage (the first storage cluster) for new hot data, the storage system pre-configures a cleanup policy to clean up or delete cold data on the near-end storage that has been migrated to the far-end storage.
[0110] Optionally, a hot data storage space is deployed in the first storage cluster, and the hot data storage space is used to store the hot data through a plurality of first storage nodes;
[0111] The first storage cluster is used to determine the storage location of the first target data from the metadata unified namespace when receiving a read request for the first target data;
[0112] The first storage cluster is further configured to read the first target data from the hot data storage space when determining that the first target data is stored in the hot data storage space;
[0113] The first storage cluster is further configured to read the first target data through a target protocol when it is determined that the first target data is stored in any second storage node among the plurality of second storage nodes.
[0114] Specifically, in one embodiment, a hot data storage space is deployed in the first storage cluster to store frequently accessed hot data, and the hot data is stored in the hot data storage space composed of multiple first storage nodes. When a read request for a certain data (first target data) is received, the first storage cluster will first query the metadata information corresponding to the first target data in the metadata unified namespace, and obtain the storage location of the first target data therefrom. When it is determined that the first target data is stored in one or more first storage nodes in the hot data storage space, the first target data is directly read from one or more first storage nodes in the hot data storage space. When the metadata information shows that the target data has been migrated to a second storage node in the second storage cluster (a cluster storing cold data), the first storage cluster will remotely read the first target data from the corresponding second storage node of the second storage cluster through a specific target protocol (such as S3 protocol, Swift protocol, NFS protocol, CIFS protocol, HADOOP protocol, POSIX protocol).
[0115] In the above embodiment, by first querying the storage location of the first target data in the metadata unified namespace, and then accessing the data in different storage clusters according to the hot / cold status of the first target data, an efficient data reading service can be provided to the application layer (such as a business system) in a relatively transparent manner.
[0116] Optionally, the first storage cluster is used to obtain the modified second target data when receiving a modification command for the second target data issued by the business system;
[0117] The first storage cluster is used to determine the storage location of the second target data through the metadata unified namespace;
[0118] The first storage cluster is used to store the modified second target data in a storage location of the second target data.
[0119] Specifically, in one embodiment, the stored data can also be modified. First, when the business system issues a modification command for the second target data (including the data to be operated, the modification content, etc.), the first storage cluster will receive the modification command and obtain the modified data. Then, the first storage cluster will determine the storage location of the second target data by querying the metadata unified namespace. Finally, the first storage cluster will persist the modified second target data to the determined storage location of the second target data, completing the data modification of the second target data.
[0120] For example, suppose that the order data of an e-commerce system is stored in this distributed storage system. When a user places an order, the business system will issue a modification command to write the new order data into the storage system. After receiving the modification command, the storage system obtains the storage location of the order data by querying the metadata, and then persists the new order data to the location to ensure data consistency and reliability.
[0121] Through the above method, the access path of data is simple, and the application layer only needs to pay attention to the metadata information, without worrying about the specific location of the data in the storage system. Through the unified namespace of metadata, data can be seamlessly migrated to storage nodes in different storage clusters, which is transparent to the application layer.
[0122] Optionally, the multiple first storage nodes of the first storage cluster are used to execute multiple data migration tasks of cold data, the first storage cluster shares multiple data migration tasks, the first storage cluster is used to transmit multiple cold data in a multi-threaded concurrent manner, the multiple cold data include first data and second data, the data size of the first data is larger than a preset data size, and the data size of the second data is not larger than the preset data size;
[0123] When there is a failed first storage node in the first storage cluster, multiple data migration tasks on the failed first storage node are evenly distributed to multiple other first storage nodes in the first storage cluster.
[0124] Specifically, in one embodiment, the multiple first storage nodes included in the first storage cluster are responsible for executing multiple data migration tasks for cold data. Taking into account the failover requirements, the multiple data migration tasks of each first storage node are shared in the entire first storage cluster. In other words, these data migration tasks are not bound to a specific first storage node, but are allocated and executed within the scope of the first storage cluster. The data migration tasks are allocated, managed and coordinated by a centralized scheduling component pre-set in the first storage cluster, and task allocation can also be completed collaboratively between nodes based on a distributed consistency protocol.
[0125] Furthermore, it should be noted that the allocation of data migration tasks is automatically completed by the internal mechanism of the first storage cluster itself, rather than relying on external components, which can improve the efficiency of task scheduling and the autonomy of the storage system.
[0126] Furthermore, the first storage cluster uses a multi-threaded concurrent method to transmit multiple cold data, which means that data migration tasks of multiple cold data can be performed simultaneously, thereby improving transmission efficiency.
[0127] These cold data are divided into first data and second data according to different data sizes, the size of the first data is larger than the preset data size, and the size of the second data is not larger than the preset data size, that is, the first data is larger data, and the second data is smaller data.
[0128] When a first storage node in the first storage cluster fails, the data migration task on the failed first storage node will be evenly distributed to other normal first storage nodes in the first storage cluster, thereby ensuring the continuous execution of the data migration task and improving the availability and fault tolerance of the system.
[0129] Through the above method, the resource sharing and task allocation optimization of the first storage cluster are utilized, multi-threaded concurrent transmission is used to improve efficiency, and data of different sizes are treated differently. At the same time, it has failover capabilities, thereby improving the overall performance and reliability of the storage system during cold data migration.
[0130] Optionally, the first storage nodes included in the first storage cluster are configured to split the first data corresponding to the data migration task into multiple objects through a target protocol according to the data migration tasks performed by the first storage nodes, and to divide each of the objects into multiple shards;
[0131] The plurality of first storage nodes included in the first storage cluster transmit the plurality of shards in parallel in a multi-threaded concurrent manner.
[0132] Specifically, in one embodiment, each first storage node splits the first data with a larger data size to be migrated into multiple objects according to the target protocol according to the data migration task it performs, and further divides each object into multiple smaller fragments for each object obtained by the split. The multiple fragments after the split are transmitted in parallel at the same time through the multi-threaded concurrent mode of the first storage node, thereby realizing fine-grained processing and further improving the parallelism of the data transmission process.
[0133] By combining object splitting, sharding and multi-threaded parallelism, the CPU, memory, network and other resources of the first storage node can be maximized, significantly improving the data migration efficiency and throughput of larger data (first data).
[0134] Optionally, the first storage nodes included in the first storage cluster are configured to split the second data corresponding to the data migration task into multiple fragments through a target protocol according to the data migration tasks performed by the first storage nodes respectively;
[0135] The plurality of first storage nodes included in the first storage cluster transmit the plurality of shards in parallel in a multi-threaded concurrent manner.
[0136] Specifically, in one embodiment, since the second data is smaller than the preset data size, each second data can be directly used as an object, and each first storage node uses the target protocol to split the second data (i.e., smaller data) in the data migration task performed by each node into multiple smaller fragments. The purpose of data fragmentation is to improve transmission efficiency.
[0137] Furthermore, the split multiple shards are transmitted in parallel by the first storage node in a multi-threaded concurrent manner. Multi-threaded concurrent transmission can maximize the use of the computing power and network resources of each first storage node, avoiding the low resource utilization rate during single-threaded transmission. Furthermore, data splitting and multi-threaded concurrent transmission are combined to significantly improve the migration efficiency and throughput of the second data.
[0138] In general, this sharding and parallel transmission optimization strategy takes advantage of the characteristics of smaller data and makes full use of computing and network resources to significantly improve data migration efficiency, while also demonstrating high flexibility and scalability. This is an important performance optimization method for storage systems that need to frequently migrate large amounts of data.
[0139] Optionally, the plurality of first storage nodes included in the first storage cluster transmit the plurality of shards in parallel in a multi-threaded concurrent manner, including:
[0140] The first storage node is used to asynchronously read the offset of each shard obtained after the data is divided and the data content included in the shard;
[0141] The first storage node is used for, when the data includes multiple objects, dividing the data migration task into multiple subtasks corresponding to the multiple objects, and placing the multiple subtasks into queues corresponding to the data in order, wherein the subtasks corresponding to the multiple data are placed into multiple queues;
[0142] The first storage node is used to concurrently transmit the shards corresponding to the subtasks in the multiple queues to the multiple second storage nodes in the second storage cluster in a multi-threaded concurrent manner according to the offsets corresponding to the shards.
[0143] Specifically, in one embodiment, first, multiple first storage nodes divide the data to be migrated indicated by the data migration task into multiple shards according to their respective data migration tasks, and each shard corresponds to an offset and data content. The load of multiple first storage nodes in the first storage cluster is balanced to multiple physical disks through striping technology in an asynchronous reading manner, thereby realizing effective decentralized storage of data shards. Each shard can obtain its offset and data content in the data through the object storage protocol. When the data to be migrated contains multiple objects, the entire data migration task is divided into multiple subtasks equal to the number of objects. For a piece of data, whenever the asynchronous reading of an object is completed, the callback function is triggered, and the subtasks of multiple objects corresponding to the data are placed in the queue related to the data in order. When a larger piece of data (first data) is divided into multiple objects, the subtasks of multiple objects corresponding to the data are placed in different queues respectively, and each subtask corresponds to multiple shards. The first storage node creates multiple threads according to the offsets corresponding to the multiple shards of a subtask, and concurrently obtains the data content of the shards corresponding to the subtask from multiple queues, and uses these threads to concurrently transmit the data content of the obtained shards to the corresponding second storage node in the second storage cluster. When a smaller piece of data (second data) is used as an object, it is divided into multiple shards. The data corresponds to a data migration task, and the data transmission of multiple shards is realized through a queue.
[0144] Optionally, in order to avoid excessive resource usage, the transmission bandwidth can be controlled by controlling the ratio of read and write speeds, which can balance the speed of data migration and avoid excessive load on the system.
[0145] Through the above method, the network and IO resources of the storage node can be used in parallel and multi-threaded concurrently, which significantly improves the transmission efficiency and throughput of the data migration task. At the same time, through the subtask queue, the large data migration task containing multiple objects is processed in an orderly manner, which improves the reliability of the processing.
[0146] Optionally, the plurality of first storage nodes included in the first storage cluster transmit the plurality of shards in parallel in a multi-threaded concurrent manner, further comprising:
[0147] The first storage node is used to determine the total number of multiple shards included in the data;
[0148] The first storage node is used for, in the process of concurrently transmitting the multiple fragments, for each data, after completing the transmission of one fragment of the data, reducing the total number of the multiple fragments included in the data by one;
[0149] The first storage node is used to determine that the data transmission is completed when the total number of shards included in the data is 0;
[0150] The first storage node is used to restart the transmission from the fragment that failed to be transmitted when there is a fragment that failed to be transmitted during the concurrent transmission of the multiple fragments.
[0151] Specifically, in one embodiment, during the parallel transmission of shards, multiple first storage nodes in the first storage cluster need to ensure the integrity and correctness of data transmission. Therefore, this can be achieved by atomic counting. Specifically, the first storage node needs to determine how many shards the data to be transmitted is divided into, that is, the total number of shards contained in the data. Further, during the multi-threaded concurrent transmission of each shard, each time a shard is transmitted, the first storage node will reduce the count of the total number of shards contained in the data by 1 until the count of the total number of shards contained in the data is 0, and then determine that the transmission of all shards of the data is completed. In addition, when some shards fail to be transmitted during the concurrent transmission, the first storage node will determine the offset of the shard that failed to be transmitted, and re-initiate data transmission from the shard that failed to be transmitted.
[0152] Through the above method, the total number of shards is first confirmed and the shard count is performed to ensure that each shard is successfully transmitted once. At the same time, if a shard transmission failure is found, it can be retransmitted to avoid data loss. The multi-threaded concurrent method is used to transmit each shard in parallel to improve the transmission efficiency.
[0153] Optionally, it also includes that after all data transmissions are completed, it is necessary to store the shards of the above data transmission on the second storage node in the second storage cluster, and reorganize the multiple shards that have completed the data transmission according to the sequence number of each shard to obtain the original data before the transmission.
[0154] Figure 3 is a flow chart of a data storage method provided by an embodiment of the present application, such as Figure 3 As shown, an embodiment of the present application provides a data storage method, which is applied to a storage system, wherein the storage system includes a first storage cluster and a second storage cluster, a metadata unified namespace is deployed in the first storage cluster, the first storage cluster includes multiple first storage nodes, the second storage cluster includes multiple second storage nodes, the area where the first storage cluster is located is less than a preset distance from a business system, the area where the second storage cluster is located is not less than the preset distance from the business system, the areas where the multiple second storage nodes included in the second storage cluster are located are different from each other, the multiple second storage nodes are respectively connected to the first storage cluster through a target protocol, the metadata unified namespace is used to store metadata information of data stored in the storage system, and the method includes:
[0155] In step S101, a first correspondence between data already stored in a plurality of first storage nodes included in the first storage cluster and a first storage node is established in the metadata unified namespace;
[0156] In step S12, after migrating the data stored in the plurality of first storage nodes to the plurality of second storage nodes of the second storage cluster, the first correspondence is updated to a second correspondence between the data migrated to the second storage cluster and the second storage nodes.
[0157] Optionally, the first storage cluster is deployed with hot data storage space, and the method further includes:
[0158] storing hot data through a plurality of first storage nodes, and dividing the data stored in the plurality of first storage nodes into cold data and hot data according to the data heat of the data stored in the plurality of first storage nodes;
[0159] A data migration task is initiated for the cold data to migrate the cold data in the multiple first storage nodes to the multiple second storage nodes in the second storage cluster.
[0160] Optionally, after the hot data storage space migrates the cold data to multiple second storage nodes in the second storage cluster, metadata information stored in the metadata unified namespace and related to the cold data migrated to the multiple second storage nodes in the second storage cluster is modified.
[0161] Optionally, a hot data storage space is deployed in the first storage cluster, and the method further includes:
[0162] Storing the hot data by using a plurality of first storage nodes;
[0163] When receiving a read request for first target data, determining a storage location of the first target data from the metadata unified namespace;
[0164] When it is determined that the first target data is stored in the hot data storage space, reading the first target data from the hot data storage space;
[0165] When it is determined that the first target data is stored in any second storage node among the plurality of second storage nodes, the first target data is read through the target protocol.
[0166] Optionally, the method further comprises:
[0167] When receiving a modification command for the second target data issued by the business system, acquiring the modified second target data;
[0168] Determining a storage location of the second target data through the metadata unified namespace;
[0169] The modified second target data is stored in the storage location of the second target data.
[0170] Optionally, the method further comprises:
[0171] Splitting the first data corresponding to the data migration task into a plurality of objects through a target protocol, and dividing each of the objects into a plurality of shards;
[0172] Splitting the second data corresponding to the data migration task into multiple fragments through the target protocol;
[0173] The multiple shards are transmitted in parallel in a multi-threaded concurrent manner, including:
[0174] Asynchronously reading the offset of each shard obtained after the data is divided and the data content included in the shard;
[0175] When the data contains multiple objects, the data migration task is divided into multiple subtasks corresponding to the multiple objects, and the multiple subtasks are placed in queues corresponding to the data in order, wherein the subtasks corresponding to the multiple data are placed in multiple queues;
[0176] According to the offset of the shard, the shards corresponding to the subtasks in the multiple queues are concurrently transmitted to the multiple second storage nodes in the second storage cluster in a multi-threaded concurrent manner.
[0177] Figure 4 is a schematic diagram of a data storage device provided by an embodiment of the present application. Figure 4 As shown, an embodiment of the present application provides a data storage device, which is applied to a storage system, wherein the storage system includes a first storage cluster and a second storage cluster, a metadata unified namespace is deployed in the first storage cluster, the first storage cluster includes multiple first storage nodes, the second storage cluster includes multiple second storage nodes, the area where the first storage cluster is located is less than a preset distance from a business system, the area where the second storage cluster is located is not less than the preset distance from the business system, the areas where the multiple second storage nodes included in the second storage cluster are located are different from each other, the multiple second storage nodes are respectively connected to the first storage cluster through a target protocol, the metadata unified namespace is used to store metadata information of data stored in the storage system, and the device includes:
[0178] An establishing module 11 is used to establish, in the metadata unified namespace, a first correspondence between data already stored in a plurality of first storage nodes included in the first storage cluster and the first storage node;
[0179] The migration module 12 is configured to update the first correspondence to a second correspondence between the data migrated to the second storage cluster and the second storage nodes after migrating the data stored in the multiple first storage nodes to the multiple second storage nodes of the second storage cluster.
[0180] Optionally, the first storage cluster is deployed with hot data storage space, and the device further includes:
[0181] A data partitioning module, configured to store hot data through a plurality of first storage nodes, and to divide the data stored in the plurality of first storage nodes into cold data and hot data according to the data heat of the data stored in the plurality of first storage nodes;
[0182] The data migration task initiating module is used to initiate a data migration task for the cold data, and migrate the cold data in the multiple first storage nodes to the multiple second storage nodes in the second storage cluster.
[0183] Optionally, the device also includes: a modification module, used to modify the metadata information stored in the metadata unified namespace and related to the cold data migrated to the multiple second storage nodes in the second storage cluster after the hot data storage space migrates the cold data to the multiple second storage nodes in the second storage cluster.
[0184] Optionally, a hot data storage space is deployed in the first storage cluster, and the device further includes:
[0185] A thermal data storage module, used for storing the thermal data through a plurality of first storage nodes;
[0186] a first target data storage location determination module, configured to determine the storage location of the first target data from the metadata unified namespace upon receiving a read request for the first target data;
[0187] A first reading module, configured to read the first target data from the hot data storage space when it is determined that the first target data is stored in the hot data storage space;
[0188] A second reading module is configured to read the first target data through the target protocol when it is determined that the first target data is stored in any second storage node among the plurality of second storage nodes.
[0189] Optionally, the device further comprises:
[0190] an acquisition module, configured to acquire the modified second target data upon receiving a modification command for the second target data issued by the business system;
[0191] A storage location determination module for second target data, configured to determine the storage location of the second target data through the metadata unified namespace;
[0192] The modified storage module is used to store the modified second target data in the storage location of the second target data.
[0193] Optionally, the device further comprises:
[0194] A first splitting module, used to split the first data corresponding to the data migration task into multiple objects through a target protocol, and divide each of the objects into multiple fragments;
[0195] A second splitting module, used to split the second data corresponding to the data migration task into multiple fragments through a target protocol;
[0196] The parallel transmission module is used to transmit the multiple shards in parallel in a multi-threaded concurrent manner, including:
[0197] An asynchronous reading module, used for asynchronously reading the offset of each shard obtained after the data is divided and the data content included in the shard;
[0198] an enqueue module, for dividing the data migration task into a plurality of subtasks corresponding to the plurality of objects when the data contains a plurality of objects, and placing the plurality of subtasks into queues corresponding to the data in order, wherein the subtasks corresponding to the plurality of data are placed into a plurality of queues;
[0199] A concurrent transmission unit is used to concurrently transmit the shards corresponding to the subtasks in the multiple queues to the multiple second storage nodes in the second storage cluster in a multi-threaded concurrent manner according to the offset of the shards.
[0200] Based on the same inventive concept, another embodiment of the present application further provides an electronic device, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the data storage method as described in any of the above embodiments.
[0201] Based on the same inventive concept, another embodiment of the present application further provides a computer program product, including a computer program, which is executed by a processor to perform the data storage method described in any of the above embodiments.
[0202] Based on the same inventive concept, another embodiment of the present application further provides a computer-readable medium on which a computer program is stored, wherein when the program is executed by a processor, the data storage method as described in any of the above embodiments is implemented.
[0203] As for the method, since it is basically similar to the system embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the system embodiment.
Claims
1. A storage system, It is characterized in that The storage system comprises: a first storage cluster and a second storage cluster; A metadata unified namespace is deployed in the first storage cluster; The first storage cluster includes multiple first storage nodes, the second storage cluster includes multiple second storage nodes, the area where the first storage cluster is located is less than a preset distance from the business system, the area where the second storage cluster is located is not less than the preset distance from the business system, the areas where the multiple second storage nodes included in the second storage cluster are located are different from each other, and the multiple second storage nodes are respectively connected to the first storage cluster through a target protocol; The metadata unified namespace is used to store metadata information of the data stored in the storage system.
2. The storage system according to claim 1, It is characterized in that Also includes: The first storage cluster is further used to establish, in the metadata unified namespace, a first correspondence between data already stored in a plurality of first storage nodes included in the first storage cluster and the first storage node; The first storage cluster is configured to update the first correspondence to a second correspondence between the data migrated to the second storage cluster and the second storage nodes after migrating the data stored in the multiple first storage nodes to the multiple second storage nodes of the second storage cluster.
3. The storage system according to claim 1, It is characterized in that The first storage cluster is deployed with a hot data storage space, the hot data storage space is used to store hot data through a plurality of first storage nodes, and the data stored in the plurality of first storage nodes is divided into cold data and hot data according to the data heat of the data stored in the plurality of first storage nodes; The hot data storage space is further used to initiate a data migration task for the cold data, so as to migrate the cold data in the plurality of first storage nodes to the plurality of second storage nodes in the second storage cluster.
4. The storage system according to claim 3, It is characterized in that The first storage cluster is used to modify metadata information stored in the metadata unified namespace and related to the cold data migrated to the multiple second storage nodes in the second storage cluster after the hot data storage space migrates the cold data to the multiple second storage nodes in the second storage cluster.
5. The storage system according to claim 3, It is characterized in that A hot data storage space is deployed in the first storage cluster, and the hot data storage space is used to store the hot data through a plurality of first storage nodes; The first storage cluster is used to determine the storage location of the first target data from the metadata unified namespace when receiving a read request for the first target data; The first storage cluster is further configured to read the first target data from the hot data storage space when determining that the first target data is stored in the hot data storage space; The first storage cluster is further configured to read the first target data through the target protocol when it is determined that the first target data is stored in any second storage node among the plurality of second storage nodes.
6. The storage system according to claim 1, It is characterized in that The first storage cluster is used to obtain the modified second target data when receiving a modification command for the second target data issued by the business system; The first storage cluster is used to determine the storage location of the second target data through the metadata unified namespace; The first storage cluster is used to store the modified second target data in a storage location of the second target data.
7. The storage system according to claim 2, It is characterized in that The multiple first storage nodes of the first storage cluster are used to execute data migration tasks of multiple cold data, the first storage cluster shares the multiple data migration tasks, the first storage cluster is used to transmit multiple cold data in a multi-threaded concurrent manner, the multiple cold data include first data and second data, the data size of the first data is larger than a preset data size, and the data size of the second data is not larger than the preset data size; When there is a failed first storage node in the first storage cluster, multiple data migration tasks on the failed first storage node are evenly distributed to multiple other first storage nodes in the first storage cluster.
8. The storage system according to claim 7, It is characterized in that The first storage nodes included in the first storage cluster are configured to split the first data corresponding to the data migration task into multiple objects through a target protocol according to the data migration tasks performed by the first storage nodes, and to divide each of the objects into multiple shards; The multiple first storage nodes included in the first storage cluster transmit the multiple shards in parallel in a multi-threaded concurrent manner.
9. The storage system according to claim 7, It is characterized in that The first storage nodes included in the first storage cluster are configured to split the second data corresponding to the data migration task into multiple fragments through a target protocol according to the data migration tasks performed by the first storage nodes respectively; The multiple first storage nodes included in the first storage cluster transmit the multiple shards in parallel in a multi-threaded concurrent manner.
10. The storage system according to claim 8 or 9, It is characterized in that The plurality of first storage nodes included in the first storage cluster transmit the plurality of shards in parallel in a multi-threaded concurrent manner, including: The first storage node is used to asynchronously read the offset of each shard obtained after the data is divided and the data content included in the shard; The first storage node is used for, when the data includes multiple objects, dividing the data migration task into multiple subtasks corresponding to the multiple objects, and placing the multiple subtasks into queues corresponding to the data in order, wherein the subtasks corresponding to the multiple data are placed into multiple queues; The first storage node is used to concurrently transmit the shards corresponding to the subtasks in the multiple queues to the multiple second storage nodes in the second storage cluster in a multi-threaded concurrent manner according to the offsets corresponding to the shards.
11. The storage system according to claim 8 or 9, It is characterized in that The plurality of first storage nodes included in the first storage cluster transmit the plurality of shards in parallel in a multi-threaded concurrent manner, further comprising: The first storage node is used to determine the total number of multiple shards included in the data; The first storage node is used for, in the process of concurrently transmitting the multiple fragments, for each data, after completing the transmission of one fragment of the data, reducing the total number of the multiple fragments included in the data by one; The first storage node is used to determine that the data transmission is completed when the total number of shards included in the data is 0; The first storage node is used to restart the transmission from the fragment that failed to be transmitted when there is a fragment that failed to be transmitted during the concurrent transmission of the multiple fragments.
12. A data storage method, It is characterized in that Applied to a storage system, the storage system includes a first storage cluster and a second storage cluster, a metadata unified namespace is deployed in the first storage cluster, the first storage cluster includes multiple first storage nodes, the second storage cluster includes multiple second storage nodes, the area where the first storage cluster is located is less than a preset distance from a business system, the area where the second storage cluster is located is not less than the preset distance from the business system, the areas where the multiple second storage nodes included in the second storage cluster are located are different from each other, the multiple second storage nodes are respectively connected to the first storage cluster through a target protocol, the metadata unified namespace is used to store metadata information of data stored in the storage system, and the method includes: Establishing, in the metadata unified namespace, a first correspondence between data already stored in a plurality of first storage nodes included in the first storage cluster and the first storage node; After the data stored in the plurality of first storage nodes is migrated to the plurality of second storage nodes of the second storage cluster, the first correspondence is updated to a second correspondence between the data migrated to the second storage cluster and the second storage nodes.
13. The data storage method according to claim 12, It is characterized in that The first storage cluster is deployed with hot data storage space, and the method further includes: storing hot data through a plurality of first storage nodes, and dividing the data stored in the plurality of first storage nodes into cold data and hot data according to the data heat of the data stored in the plurality of first storage nodes; A data migration task is initiated for the cold data to migrate the cold data in the multiple first storage nodes to the multiple second storage nodes in the second storage cluster.
14. The data storage method according to claim 13, It is characterized in that After the hot data storage space migrates the cold data to the multiple second storage nodes of the second storage cluster, metadata information stored in the metadata unified namespace and related to the cold data migrated to the multiple second storage nodes in the second storage cluster is modified.
15. The data storage method according to claim 13, It is characterized in that A hot data storage space is deployed in the first storage cluster, and the method further includes: Storing the hot data by using a plurality of first storage nodes; When receiving a read request for first target data, determining a storage location of the first target data from the metadata unified namespace; When it is determined that the first target data is stored in the hot data storage space, reading the first target data from the hot data storage space; When it is determined that the first target data is stored in any second storage node among the plurality of second storage nodes, the first target data is read through the target protocol.
16. The data storage method according to claim 12, It is characterized in that The method further comprises: When receiving a modification command for the second target data issued by the business system, acquiring the modified second target data; Determining a storage location of the second target data through the metadata unified namespace; The modified second target data is stored in the storage location of the second target data.
17. The data storage method according to claim 13, It is characterized in that The method further comprises: Splitting the first data corresponding to the data migration task into a plurality of objects through a target protocol, and dividing each of the objects into a plurality of shards; Splitting the second data corresponding to the data migration task into multiple fragments through the target protocol; The multiple shards are transmitted in parallel in a multi-threaded concurrent manner, including: Asynchronously reading the offset of each shard obtained after the data is divided and the data content included in the shard; When the data contains multiple objects, the data migration task is divided into multiple subtasks corresponding to the multiple objects, and the multiple subtasks are placed in queues corresponding to the data in order, wherein the subtasks corresponding to the multiple data are placed in multiple queues; According to the offset of the shard, the shards corresponding to the subtasks in the multiple queues are concurrently transmitted to the multiple second storage nodes in the second storage cluster in a multi-threaded concurrent manner.
18. An electronic device, It is characterized in that The device comprises a memory, a processor and a computer program stored in the memory, wherein the processor executes the computer program to implement the data storage method according to any one of claims 12 to 17.
19. A computer readable medium, It is characterized in that A computer program is stored thereon, wherein when the computer program is executed by a processor, the data storage method according to any one of claims 12 to 17 is implemented.
20. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the data storage method according to any one of claims 12 to 17 is implemented.
Citation Information
Patent Citations
Storage system spanning multiple failure domains
CN112262372A
Data transmission method, related device, equipment, system and storage medium
CN113992658A
Data synchronization method and device, equipment and medium
CN115129676A
Remote volume access and migration via a clustered server namespace
US20100114889A1
Global naming for inter-cluster replication
US20200042402A1
