Distributed storage metadata capacity expansion method, device and equipment

By dividing the metadata migration process of the distributed storage system into three stages: cold data, hot data and incremental data, and using RDMA method for rapid migration, the problem of low metadata migration efficiency when the distributed storage system node is expanded is solved. , achieving more efficient expansion and lower business impact.

CN118708570APending Publication Date: 2024-09-27XINHUASAN INFORMATION TECH CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410866569.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

When the existing distributed storage system expands the node capacity, the metadata migration efficiency is low, resulting in a long expansion time and affecting the front-end I/O performance.

Method used

The metadata migration process is divided into three stages: cold data, hot data and incremental data. The SST file of the persistence layer is migrated through cold data, the memory table is migrated by hot data and I/O transactions of incremental data are migrated, using RDMA method. Migrate quickly, and update global mapping relationships and clean up junk data after the migration is completed.

Benefits of technology

It improves the efficiency of metadata migration, reduces the impact on the front-end business system during capacity expansion, and significantly reduces the number of I/Os and CPU resource overhead.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118708570A
    Figure CN118708570A
Patent Text Reader

Abstract

The invention provides a distributed storage metadata capacity expansion method, device and equipment, which are used for solving the technical problem of low capacity expansion efficiency of distributed storage metadata. According to the method, the migration process of to-be-migrated metadata packet data is divided into a plurality of stages, firstly, cold data located in a persistence layer is migrated, then, hot data and incremental data are migrated, and finally, the global mapping relation is updated, and junk data, not belonging to the current node, in a source node and a target node is cleared away. According to the method and the device, the migration efficiency of the metadata during capacity expansion can be improved, and the influence on a foreground service system during capacity expansion is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of storage technology, and in particular to a distributed storage metadata expansion method, device and equipment. Background Art

[0002] The architecture of distributed file systems all adopts the method of dispersing metadata distribution to achieve load balancing of metadata and data. However, the hard disk resources of a single node are always limited. When the capacity of the entire cluster is almost full, it is necessary to expand the node. This is one of the advantages of distributed storage systems compared to centralized storage. Therefore, how to expand the node of the storage system without affecting the business and can be completed quickly has become a difficult problem.

[0003] RocksDB is a high-performance, persistent key-value storage engine. It is suitable for applications that need to efficiently process large-scale data sets, especially in terms of data persistence and high-speed read and write operations.

[0004] MemTable refers to a data structure used to improve database read and write performance, usually used to support key-value storage engines (such as LevelDB, RocksDB, etc.). MemTable uses memory as the main data storage area to efficiently process database read and write operations.

[0005] LSM tree (Log-Structured Merge Tree) is a data structure used to implement persistent key-value storage, commonly used in NoSQL databases (such as LevelDB, RocksDB, etc.). LSM tree is designed to provide efficient write performance and fast range query operations. LSM tree consists of multiple components, including an in-memory data structure (usually an ordered array or skip list) and a series of on-disk data files. Write operations are first appended to the in-memory structure (usually called MemTable), and then the data in memory is periodically transferred to the SSTable (SortedString Table, ordered string table, referred to as SST file) on disk. This process is called write merging. Since the write operation is appended to the in-memory structure without updating the data file on disk, LSM tree can achieve efficient write operations. In addition, in order to support range query operations, the SSTable in the LSM tree is maintained as an ordered data file, so that the search operation can be merged and sorted in multiple SSTables, which can also improve the performance of range queries.

[0006] In RocksDB, the user's key-value pairs are first written to the MemTable in memory, which constitutes the L0 layer in the LSM (Log-Structured Merge) tree structure. When the MemTable reaches a certain size, it will be flushed to disk to form an immutable SST file. The data in the L0 layer is stored in the order in which it is written, and usually contains a large number of overlapping key-value pairs. Through the merging (compaction) operation, the data in the L0 layer will be merged into the higher-level L1 layer to improve query performance and reduce disk usage. At the L1 layer, multiple L0-layer MemTables will be merged into a larger SST file, which can optimize disk utilization and improve query performance. After that, after a series of merging and compression operations, the SST file will gradually rise to a higher level (such as L2, L3, etc.), and finally stored on the disk, forming the data storage structure of the entire LSM tree. The L0 layer is mainly used for fast writing and temporary storage, and the data is not sorted or merged; the L1 layer is the first persistent storage layer, which is used to merge and compress L0 layer data; the L2 layer and higher layers contain more merged and compressed data. This design enables RocksDB to have fast writing capabilities and efficient query performance, adapting to the storage and access needs of large-scale key-value pairs.

[0007] The metadata of a distributed storage system is usually evenly distributed to each node according to a certain algorithm, thereby giving full play to the multi-node parallel processing capabilities. On each node, there will be a metadata server (MDS) to manage all metadata of the node.

[0008] For example, the metadata of the entire system can be divided into 1024 groups through consistent hashing. The 1024 groups are evenly distributed to multiple storage nodes. The MDS on each node is responsible for managing the data and metadata of the group belonging to the node. The metadata of the distributed file system generally uses key-value pairs (kv) to store data. The mapping relationship between data and storage nodes is recorded in a global mapping table (map) in the distributed system. The MDS of each node can read this global mapping table. The mds on each node uses rocksdb as the storage engine for metadata key-value pairs to store the metadata of the actual data in the group belonging to the node, including the inode of the file system and the persistence layer index corresponding to the data. When the distributed storage system expands the node capacity (adding new storage nodes), the hash value of each metadata itself will not change, but the node to which the metadata group belongs may change, that is, the mapping relationship in the global map will change. For example, if a storage cluster originally has 3 nodes and 1 storage node is added, the old node needs to migrate some groups to the fourth node so that the fourth node can store the data and metadata assigned to the node.

[0009] Rocksdb itself is a high-performance stand-alone key-value storage engine that does not have the ability to expand. Therefore, metadata migration needs to be implemented at the mds level of the distributed system. The old node mds needs to read the previously written kv from the local rocksdb, and then send it in batches to the mds of the newly added node through the network, and write it through the rocksdb inside the new mds.

[0010] In the existing distributed storage system expansion and metadata migration method, MDS needs to call a large number of rocksdb read kv interfaces, as well as network transmission and a large number of rocksdb writes, and the overall CPU overhead is large. During network transmission, MDS can aggregate and transmit multiple kvs, but the granularity is limited. The system still processes the expansion according to the granularity of kv, and the aggregation of data migration is not good. If there are many kvs to be migrated, the expansion time will be very long. The expansion time is proportional to the number of kvs, and during the expansion period, the performance of the foreground I / O will also be affected to a certain extent. Summary of the invention

[0011] In view of this, the present invention provides a distributed storage metadata expansion method, device and equipment, which are used to solve the technical problem of low efficiency of distributed storage metadata expansion.

[0012] Based on one aspect of an embodiment of the present invention, the present invention further provides a distributed storage metadata expansion method, which is applied to a source node that needs to migrate part of the metadata group, i.e., the metadata group to be migrated, to a target node, and the metadata is stored in a key-value pair database (rocksdb), and the method includes:

[0013] Through the cold data migration process, the ordered key-value pair files (SST files) related to the metadata group to be migrated in the persistence layer of the source key-value pair database are migrated to the target key-value pair database; when the cold data migration process starts, the merging (compaction) function of the source key-value pair database is turned off;

[0014] Through the hot data migration process, all memtables in the top layer (L0) of the source key-value database are migrated to the top layer (L0) of the target key-value database (rocksdb4) of the target node. When the hot data migration process starts, the flush function of the source key-value database is turned off and the I / O transactions of the metadata group to be migrated are copied and saved as incremental data.

[0015] The incremental data of the metadata group to be migrated recorded in the source node memory is migrated to the memory table of the target key-value pair database of the target node through the incremental data migration process;

[0016] Suspend the I / O request of the source node for the metadata group to be migrated, and send a migration end request carrying a migration end mark and the remaining incremental data to the target node; the migration end request is used to make the target node write the remaining incremental data into the local memory table and delete the garbage data that does not belong to the target node;

[0017] After receiving the migration completion response sent by the target node, the source node reports a mapping relationship update request to the cluster, so that the cluster updates the global mapping relationship between the metadata group to be migrated and the source node to a mapping relationship between the metadata group to be migrated and the target node;

[0018] After completing the migration of the metadata group to be migrated, the source node deletes the data of the migrated metadata group and enables the flushing function and the merging function of the source key-value pair database.

[0019] Furthermore, the key field of the metadata in the key-value pair database is prefixed with the group to which the metadata belongs; the ordered key-value pair file (SST file) related to the metadata group to be migrated is obtained by calling the file list acquisition interface of the corresponding level to match the key field group prefix in the key-value pair database.

[0020] Furthermore, when the remaining incremental data of the metadata group to be migrated is less than a preset remaining threshold, the step of suspending the I / O request of the source node for the metadata group to be migrated is performed.

[0021] Furthermore, the ordered key-value pair file (SST file) related to the metadata group to be migrated is migrated to the target key-value pair database using a remote direct memory access (RDMA) method.

[0022] Based on another aspect of an embodiment of the present invention, the present invention further provides a distributed storage metadata expansion method, which is applied to a target node of a metadata group to be migrated in a migration source node, and the metadata is stored in a key-value pair database (rocksdb), and the method includes:

[0023] Receive the ordered key-value pair files (SST files) related to the metadata groups to be migrated from the persistence layer of the source key-value pair database during the cold data migration process and write them into the target key-value pair database;

[0024] Receive the memory table migrated from the source key-value database during the hot data migration process and write it to the top layer (L0) of the target key-value database;

[0025] Receive the incremental data of the metadata group to be migrated from the source node memory during the incremental data migration process and write it into the memory table of the target key-value database;

[0026] Receive the migration end request sent by the source node carrying the migration end marker and the remaining incremental data, write the remaining incremental data into the memory table of the target key-value database, send a migration end response to the source node, and delete the garbage data that does not belong to the target node.

[0027] Furthermore, during the cold data migration process, the ordered key-value pair files (SST files) related to the metadata group to be migrated in the persistence layer of the source key-value pair database are migrated to the corresponding persistence layer of the target key-value pair database;

[0028] Furthermore, when it is determined through the group prefix that the ordered key-value pair files related to the metadata group to be migrated have overlapping metadata key value ranges in the corresponding persistence layer in the target key-value pair database, the ordered key-value pair files related to the metadata group to be migrated are moved up and written to the upper persistence layer.

[0029] Based on another aspect of the embodiment of the present invention, the present invention further provides a distributed storage metadata expansion device, which is applied to a source node that needs to migrate part of the metadata group, that is, the metadata group to be migrated, to a target node, and the metadata is stored in a key-value pair database (rocksdb), and the device includes:

[0030] The cold data migration module is used to execute the cold data migration process, migrate the ordered key-value pair files (SST files) related to the metadata group to be migrated in the persistence layer of the source key-value pair database to the target key-value pair database; when the cold data migration process starts, the merging (compaction) function of the source key-value pair database is turned off;

[0031] The hot data migration module is used to execute the hot data migration process, migrate all the memory tables (memtable) of the top layer (L0) of the source key-value database to the top layer (L0) of the target key-value database (rocksdb4) of the target node, and close the flush function of the source key-value database at the beginning of the hot data migration process and copy and save the I / O transactions of the metadata group to be migrated as incremental data;

[0032] The incremental data migration module is used to execute the incremental data migration process and migrate the incremental data of the metadata group to be migrated recorded in the source node memory to the memory table of the target key-value pair database of the target node;

[0033] A mapping relationship reconstruction module is used to suspend the I / O request of the source node for the metadata group to be migrated, and send a migration end request carrying a migration end mark and the remaining incremental data to the target node; the migration end request is used to make the target node write the remaining incremental data into the local memory table and delete the garbage data that does not belong to the target node; when the source node receives the migration end response sent by the target node, it reports a mapping relationship update request to the cluster, so that the cluster updates the global mapping relationship between the metadata group to be migrated and the source node to the mapping relationship between the target node and the source node;

[0034] The cleanup module is used to delete the data of the migrated metadata groups after completing the migration of the metadata groups to be migrated, and enable the flushing function and the merging function of the source key-value pair database.

[0035] Furthermore, the key field of the metadata in the key-value pair database is prefixed with the group to which the metadata belongs;

[0036] The cold data migration module obtains the ordered key-value pair file (SST file) related to the metadata group to be migrated by matching the key field group prefix in the key-value pair database by calling the file list acquisition interface of the corresponding level.

[0037] Furthermore, after determining that the remaining incremental data of the metadata group to be migrated is less than a preset remaining threshold, the incremental data migration module instructs the mapping relationship reconstruction module to start execution.

[0038] Based on one aspect of an embodiment of the present invention, the present invention further provides a distributed storage metadata expansion device, which is applied to a target node of a metadata group to be migrated in a migration source node, and the metadata is stored in a key-value pair database (rocksdb), and the device includes:

[0039] The first module is used to receive the ordered key-value pair files (SST files) related to the metadata groups to be migrated from the persistence layer of the source key-value pair database during the cold data migration process and write them into the target key-value pair database;

[0040] The second module is used to receive the memory table migrated from the source key-value database during the hot data migration process and write it into the top layer (L0) of the target key-value database;

[0041] The third module is used to receive the incremental data of the metadata group to be migrated from the source node memory during the incremental data migration process and write it into the memory table of the target key-value pair database;

[0042] The fourth module is used to receive a migration end request sent by the source node, which carries a migration end marker and remaining incremental data, write the remaining incremental data into the memory table of the target key-value pair database, send a migration end response to the source node, and delete junk data that does not belong to the target node.

[0043] Furthermore, during the cold data migration process, the first module migrates the ordered key-value pair files (SST files) related to the metadata groups to be migrated in the persistence layer of the source key-value pair database to the corresponding persistence layer of the target key-value pair database; further, when it is determined through the group prefix that the ordered key-value pair files related to the metadata groups to be migrated have overlapping metadata key value ranges in the corresponding persistence layer of the target key-value pair database, the ordered key-value pair files related to the metadata groups to be migrated are moved up and written to the upper persistence layer.

[0044] The present invention proposes a distributed storage metadata rapid expansion solution, which is used to solve the technical problem of low distributed storage metadata expansion efficiency. The present invention divides the migration process of the metadata group data to be migrated into multiple stages, first migrating the cold data located in the persistence layer, then migrating the hot data and incremental data, and finally updating the global mapping relationship and cleaning up the garbage data that does not belong to the current node in the source node and the target node. The present invention can improve the migration efficiency of metadata during expansion and reduce the impact on the foreground business system during expansion. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments of the present invention or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings of the embodiments of the present invention.

[0046] Figure 1 A schematic diagram of metadata migration when a distributed storage system is expanding node capacity;

[0047] Figure 2 This is a schematic diagram of a distributed storage metadata expansion scenario in an embodiment of the present invention;

[0048] Figure 3 A schematic diagram of the steps of a distributed storage metadata expansion method provided by an embodiment of the present invention;

[0049] Figure 4 A schematic diagram of a cold data migration process in a distributed storage metadata expansion scenario provided by an embodiment of the present invention;

[0050] Figure 5A schematic diagram of a method for processing overlaps found between L2 and L1 layers during cold data migration in a distributed storage metadata expansion scenario is provided for one embodiment of the present invention;

[0051] Figure 6 A schematic diagram of the structure of an electronic device provided in one embodiment of the present invention for implementing the distributed storage metadata expansion method provided in the present invention. DETAILED DESCRIPTION

[0052] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, rather than limiting the embodiments of the present invention. The singular forms of "a", "said" and "the" used in the embodiments of the present invention are also intended to include plural forms, unless the context clearly indicates other meanings. Although the embodiments of the present invention may be described in a first, second, or third manner, this description is only used to distinguish similar information, entities, or steps, rather than to describe a specific order or sequence. For example, without departing from the scope of the embodiments of the present invention, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. For another example, in some scenarios, the first information may refer to one information or to multiple information of the same type. In addition, the word "if" used may be interpreted as "at..." or "when..." or "in response to determination". The "and / or" in the present invention is only a kind of association relationship describing the associated objects, indicating that there may be three relationships, for example, A and / or B, which may represent: A exists alone, A and B exist at the same time, and B exists alone, wherein A and B may be singular or plural. In addition, in the description of the present invention, unless otherwise specified, "multiple" refers to two or more than two. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or plural.

[0053] Figure 1The following is a schematic diagram of metadata migration when a distributed storage system is expanding its nodes. The original distributed storage system has three nodes, namely the first node, the second node, and the third node. The metadata is divided into 1024 groups based on consistent hashing, and the metadata in these groups is evenly distributed in the three nodes. After the expansion, the number of storage nodes is expanded to four, and some groups in the original three nodes will be migrated to the newly added fourth node. For example, the first node needs to read the metadata key-value pair kv data of group 4 from rocksdb, and then package it and send it to the newly added fourth node, and write it to the rocksdb of the fourth node. If this process is done in the conventional way, it will take a long time. One reason is that the amount of data is usually large, and the other reason is that each metadata is independent. The metadata key-value pair actually stores the information of the user file metadata, such as the name and access time of each file are different. Therefore, when expanding the capacity, a large number of random small blocks of data need to be read one by one and packaged and sent to the fourth node. In addition, during synchronization, it is necessary to control I / O at the distributed system level to ensure data consistency. There are two control methods. One method is to directly suspend / block the main I / O according to the group granularity to ensure that there will be no I / O for this group during the migration process, so that the data can be completely consistent. This method is relatively simple, but the suspension time of I / O is relatively long. Another method is to change the mapping relationship after adding a new node. During migration, because the mapping relationship has changed, the data to be migrated will be scattered on the newly added node, so I / O can be sent directly to the new node for processing, but the new node must check the situation of the old node every time when processing, that is, before the metadata is migrated, each I / O needs to confirm whether there is metadata on the old node through the network to ensure the global consistency of data processing. This method does not suspend I / O for a long time, but I / O will be amplified. After each group migration is completed, the global map will persist the intermediate completion status to ensure that the completed metadata is not migrated repeatedly. It still takes a long time to migrate all the metadata of all groups. Usually, when the storage cluster has a large capacity, the balancing time can reach several hours or even longer.

[0054] In order to improve the speed of metadata migration when distributed storage nodes are expanded, the technical problem of slow metadata migration when the storage cluster has stored a large amount of data and the MDS has a large number of kvs when the node is expanded is solved. The present invention proposes a distributed storage metadata rapid expansion solution. On the one hand, based on the characteristics of the metadata storage structure, the present invention migrates metadata in a group migration manner, thereby improving the metadata migration efficiency during expansion. On the other hand, based on the characteristics of the metadata storage structure, the present invention adopts a cold-then-hot hierarchical method for migration, reducing the impact on the foreground business system during expansion.

[0055] The specific implementation process of the present invention is described in detail below in conjunction with the drawings and specific embodiments. It should be noted that the steps shown in the processes of the drawings and embodiments can be executed in a computer system such as a set of computer executable instructions, and one or more of the exemplified method steps can be single or multiple or aggregated together and run in the computer system in the form of a software module or a virtual device. Moreover, although the exemplified step process has time and sequential logic, the present invention is not limited to these steps in certain cases. They can be executed in an order different from that here. Under the guidance of the purpose of the present invention, simple changes or combinations of the execution order of these steps should also fall within the scope of the disclosure of the embodiments of the present invention.

[0056] Figure 2 The schematic diagram of the distributed storage metadata expansion scenario in one embodiment of the present invention is that before the expansion, the original distributed storage system has 3 nodes, namely the first node, the second node and the third node. The metadata is divided into 1024 groups based on consistent hashing, and the metadata in these groups is evenly distributed in the 3 nodes. The metadata is stored in a persistent key-value storage data structure such as an LSM tree through a key-value storage engine such as Rocksdb. After the expansion, the storage nodes are expanded to 4, and the metadata of some groups in the original 3 nodes will be migrated to the newly added fourth node. For example, the first node needs to migrate the metadata in group No. 4 after the expansion, and the group number will be hashed to the fourth node, so it is necessary to migrate all the metadata in group No. 4 in the first node to the fourth node. The metadata key value in group No. 4 in the first node exists in the L0, L1, and L2 layers in the LSM tree of the first node. It may be stored in multiple memory tables memtable in the L0 layer, stored in sst12 in the L1 layer, and stored in sst23 and sst24 in the L2 layer.

[0057] Figure 2In the example, the migration node of the metadata before expansion is the first node, i.e., the source node, and the migration node is the fourth node, i.e., the target node. When the migration node is executed, MDS needs to call Rocksdb's read to obtain the full amount of kv. Originally, the keys need to be read out one by one, then aggregated and packaged, and then sent to the remote end through the network. The present invention aggregates the operation of the read key to reduce the overall overhead, and the aggregation is not done by batch reading in the upper layer, but by analyzing the internal principle of rocksdb. First, when all metadata is first written to rocksdb, it needs to be prefixed with the group number. After a period of time, the metadata with the same group number prefix will slowly aggregate together. This is because the key-value pair kv written by Rocksdb is first written as mentable, and then sorted in lexicographic order. According to the principle of rocksdb, after the memTable capacity reaches a certain size, it will be flushed to the disk to form an immutable ordered string table (Sorted StringTable, SST) file, which becomes part of the L0 layer. The SST files of the L0 layer are stored in the order of writing, and usually contain a large number of overlapping key-value pairs. These L0-layer SST files will be aggregated and deduplicated through the LSM merge compaction operation. After aggregation and deduplication, the L0-layer SST files will be merged to the higher-level L1 layer to improve query performance and reduce disk usage. At the L1 layer, multiple L0-layer SST files will be merged into a larger SST file, and so on, L1 will continue to aggregate to the L2 layer. These L1 and L2 SST files are completely arranged in lexicographic order, so the SST file can be understood as a data block in a lexicographic prefix interval.

[0058] Therefore, the metadata key-value pairs prefixed with shard No. 4 may be stored in some or all SST files in the L0 layer, or in one or some SST files in the L1 layer, or in one or some SST files in the L2 layer. The data of the SST files in the L1 and L2 layers are stored centrally, and the aggregation is very good. In order to improve the migration efficiency of metadata, the present invention, when migrating metadata prefixed with certain specified group numbers to the rocksdb of another storage node, does not match and migrate them one by one in the source node, but migrates the SST files related to the group number to be migrated as a whole, and then removes some of the redundant junk data therein.

[0059] Figure 3A schematic flow chart of the steps of a distributed storage metadata expansion method provided for one embodiment of the present invention. The following is a detailed description of the metadata migration process during the expansion of distributed storage system nodes in conjunction with the accompanying drawings. The distributed storage system includes multiple storage nodes before expansion. The present invention refers to the original storage nodes before expansion as source nodes, and the newly added nodes added to the distributed storage system during expansion as target nodes. The method is applied to source nodes that need to migrate part of the metadata groups to the target nodes. Which metadata groups in the specific source nodes need to be migrated to the target nodes is determined based on a consistent hash function. The specific migration process of the method is as follows:

[0060] S301. Migrate the ordered key-value pair files (SST files) related to the metadata groups to be migrated in the persistence layer of the source key-value pair database to the target key-value pair database through the cold data migration process; when the cold data migration process starts, turn off the merging (compaction) function of the source key-value pair database.

[0061] At the beginning of the cold data migration process, the compaction function of the source key-value database (rocksdb) storing metadata needs to be turned off. Through the cold data migration process, the ordered key-value files (SST files) related to the metadata group to be migrated in the source key-value database persistence level (L1, L2, etc.) are migrated to the target key-value database of the target node.

[0062] When the present invention starts metadata migration, the cold data is first migrated. The cold data refers to the SST file related to the metadata group to be migrated and located in the persistence layer (such as L1, L2 level or even higher level) after the merge operation in the log structure merge tree, i.e., the LSM tree. In the present invention, LSM is explained by taking L0, L1 and L2 levels as an example. In other application scenarios, the LSM tree can also have a higher aggregation level, such as L3 level. The specific number of levels is not specifically limited in the present invention.

[0063] The key field of metadata in the key-value database is stored with the metadata group as the prefix. Therefore, by using the group number of the metadata group to be migrated to match in LSM, all SST files related to the group to be migrated can be found. After the migration starts, the SST files related to the metadata group to be migrated are first migrated to the target node.

[0064] Figure 4 A schematic diagram of the cold data migration process in a distributed storage metadata expansion scenario provided by an embodiment of the present invention. The metadata group number to be migrated is 4. After the migration starts, the SST files (sst12, sst23, and sst24) located in the L1 and L2 layers related to group number 4 are first migrated to the L1 and L2 layers of the target node.

[0065] In one embodiment of the present invention, in order to obtain the SST files in rocksdb related to the metadata group to be migrated, a corresponding SST file list acquisition interface, namely the listfile interface, is added to the distributed storage system. The key input parameter of this interface is the metadata group number to be migrated, and the return value is a list of all SST files containing the metadata to be migrated at the corresponding level.

[0066] For example, the SST file list acquisition interface for the L1 layer and the L2 layer can be implemented respectively to obtain the relevant SST file sst12 in the L1 layer of the source node's rocksdb1 of the metadata group 4 to be migrated, and the relevant SST files sst23 and sst24 in the L2 layer.

[0067] During the cold data migration phase, MDS first calls the listfile interface of the L2 layer in the order from L2 to L1 to obtain the list of all SST files in the L2 layer that store metadata of group 4, then reads the SST files of this layer one by one, and then uses the Remote Direct Memory Access (RDMA) method to quickly migrate these SST files to the target node.

[0068] Correspondingly, the present invention needs to add a new SST file migration interface in the rocksdb of the target node for migration. The migration interface needs to first write the SST file locally, and then add the migrated SST file path and index to the management metadata of the rocksdb of the target node. Since the SST file content in the L1 and L2 layers of the LSM is ordered, the migration interface needs to compare the key value range of the migrated SST file with the key value range of the existing SST file in the migration level of the target node, and it needs to be ensured that there is still a lexicographic order, so that the format meets the access requirements of rocksdb. If it is found that the migrated SST file has a boundary conflict with the existing SST file, the SST file is placed one layer higher and the boundary conflict is checked. If there is still a conflict, it is placed one layer higher. In the worst case, it is placed at the front of the L0 layer. The L0 layer of rocksdb itself has not yet performed the lexicographic deduplication logic. The duplicate data can be aggregated and deduplicated later by merging compaction operations.

[0069] Figure 5 A schematic diagram of a processing method for finding overlap between L2 and L1 layers during cold data migration in a distributed storage metadata expansion scenario is provided for an embodiment of the present invention, such as Figure 5For example, after migrating the SST23 and SST24 files of the L2 layer of the source node to the target node, i.e. the fourth node, if it is found that the metadata key value range in the SST23 file overlaps with the key value range of the existing metadata in the fourth node, and SST12 also overlaps in the L1 layer, then the SST23 file of the L2 layer can be moved up and written to the upper layer, i.e. the L1 layer, and the SST12 file of the L1 layer can be moved up and written to the L0 layer, thereby solving the overlapping problem.

[0070] Because RocksDB will merge and deduplicate the upper-level data through the compaction operation, in order to ensure data consistency and the security of the transmission process, it is necessary to temporarily disable the compaction merge function of the source node RocksDB during the cold data migration process.

[0071] During the expansion period, the target node can be set to not provide services to the external metadata group that performs the migration (the metadata group that has been migrated or does not need to perform the migration can provide services normally) to avoid data inconsistency or reduce the efficiency of expansion and migration during metadata migration. After completing the metadata migration, the cluster updates the global mapping table map and then brings the target node online. At this time, the target node can process the I / O requests of the migrated metadata group.

[0072] S302. All memtables in the top layer (L0) of the source key-value database are migrated to the top layer (L0) of the target key-value database (rocksdb4) of the target node through the hot data migration process. When the hot data migration process starts, the flush function of the source key-value database is turned off and the I / O transactions of the metadata group to be migrated are copied and saved as incremental data;

[0073] At the beginning of the self-heating data migration process, you need to turn off the flush function of the source key-value database (rocksdb1) and copy and save the I / O transactions of the metadata group to be migrated as incremental data, and keep the compaction function of the source key-value database (rocksdb1) turned off.

[0074] During the hot data migration process, all memtables in the top layer (L0) of the source key-value database will be migrated to the top layer (L0) of the target key-value database (rocksdb4) of the target node. During the hot data migration process, the I / O transactions of the migration group will be copied and saved as incremental data, which will be used in the subsequent incremental data migration process.

[0075] The hot data refers to the memory table memtable located in the top L0 layer of rocksdb. In order to improve the write performance, a large amount of duplicate data is stored in the L0 layer of rocksdb, and the duplicate data will be deduplicated through subsequent merge operations. In order not to miss data, the present invention will migrate all the memory tables memtable in the L0 layer of the migration source node to the L0 layer of the target node during the hot data migration stage.

[0076] In order to perform the migration of L0 layer hot data, the present invention adds an interface for appending the memtable of rocksdb, which is used to append the data of the L0 layer memtable migrated from the source node to the tail of the L0 layer of the rocksdb database of the target node to ensure orderliness.

[0077] The migration of hot data in the L0 layer can also use remote direct memory access (RDMA) to quickly migrate memtable data to the target node.

[0078] S303. Migrate the incremental data of the metadata group to be migrated recorded in the source node memory to the memory table of the target key-value pair database of the target node through the incremental data migration process;

[0079] During the incremental data migration process, keep the flush function of the source key-value database (rocksdb1) to the top layer (L0) closed, and keep the compaction function of the source key-value database (rocksdb1) closed. During the incremental data migration process, migrate the incremental data of the metadata group to be migrated recorded in the source node memory to the memory table of the target node;

[0080] Incremental data can be written to the target node's memtable by using rocksdb's append event interface, similar to the normal write interface. For example, the source node records the write I / O in the memory as incremental data in a transactional manner. The source node MDS sends these incremental data to the target node during the incremental migration phase. The target node calls rocksdb's append event interface to perform the append write operation to the target node's L0 layer memtable. No additional transaction encoding and decoding is required at the target node. When a certain amount is aggregated, the flush operation will be triggered to write the incremental data to the target node's L0 layer memtable.

[0081] The present invention starts the migration of hot data in the L0 layer only after completing the cold data migration of the L2 layer and the L1 layer, and finally migrates the incremental data in the memory. This migration sequence ensures the consistency of the final migrated data and is executed in order.

[0082] S304. Suspend the I / O request of the source node for the metadata group to be migrated, and send a migration end request carrying a migration end marker and the remaining incremental data to the target node; the migration end request is used to enable the target node to write the remaining incremental data into the local memory table and delete the garbage data that does not belong to the target node; when the source node receives the migration end response sent by the target node, it reports a mapping relationship update request to the cluster, so that the cluster updates the global mapping relationship between the metadata group to be migrated and the source node to the mapping relationship between the target node.

[0083] After completing the incremental data migration process, the source node suspends the I / O request for the metadata group to be migrated to temporarily prohibit the write request to the metadata group to be migrated. The source node sends a migration end request carrying a migration end mark and the remaining incremental data after the incremental data migration to the target node.

[0084] After receiving the migration end request, the target node writes the remaining incremental data into the local memory table. After successful writing, the target node sends a migration end response to the source node. After receiving the migration end response, the source node reports a mapping relationship update request to the cluster, so that the cluster updates the global mapping relationship to the mapping relationship between the metadata group to be migrated and the target node.

[0085] In one embodiment of the present invention, a remaining threshold of incremental data (e.g., 4M) is set. When the remaining incremental data of the metadata group to be migrated is less than the remaining threshold, the incremental data migration phase can be terminated, and then the mapping relationship reconstruction phase can be entered. During the mapping relationship reconstruction process, the source node's I / O request for the metadata group to be migrated needs to be suspended to prevent the distributed storage system from performing I / O operations on the metadata group to be migrated.

[0086] In the mapping relationship reconstruction phase, the MDS of the source node sends the remaining incremental data of the metadata group to be migrated to the target node through a migration end request, which can carry an end (end) mark; after receiving the migration end request, the target node writes the remaining incremental data carried in the request into the memtable of the local L0 layer by calling the rocksdb append event interface. After the writing is completed, a migration end response message is sent to the source node. After receiving the response message, the source node persists a metadata group marker file to be migrated locally, and then reports a mapping relationship update request to the global mapping relationship maintenance node, carrying the group marker file in the request, so that the global mapping relationship maintenance node updates the mapping relationship between the metadata group that has completed the metadata migration and the source node to the mapping relationship between the target node.

[0087] After receiving the mapping relationship update request reported by the source node and completing the mapping relationship update, the node responsible for maintaining the global mapping relationship in the distributed storage cluster (such as the main MDS node or the management node, etc.) will publish the updated mapping relationship to all storage nodes again to notify that the metadata group to be migrated has been completely migrated. After receiving the published mapping relationship, the target node can normally process the metadata I / O request of the metadata group that has completed the migration.

[0088] S305. After completing the migration of the metadata group to be migrated, the source node deletes the data of the migrated metadata group and enables the flush function and compaction function of the source key-value pair database;

[0089] After receiving the migration end response, the source node also needs to clean up the local data of the metadata group to be migrated, submit a batch deletion transaction with the metadata group number to be migrated as the prefix to rocksdb, and delete the metadata group data that has been migrated out of the local rocksdb.

[0090] After the target node processes the migration end request and writes the remaining incremental data to L0, the target node also needs to perform a garbage data cleanup process. During the migration process, the SST files and memtables of the L2 and L1 layers migrated from the source node may contain source data that does not belong to the target node (that is, the metadata migrated with the SST files or memtables may contain metadata that does not belong to the metadata group to be migrated), so this part of the garbage data needs to be deleted. Combined with the previous principle of organizing metadata according to the prefix of the group, here you only need to call the batch deletion interface of rocksdb to delete the metadata corresponding to the metadata prefix that does not belong to this node, and then each node needs to re-enable the merge compaction function to integrate the data.

[0091] In one embodiment of the present invention, an exception handling step is also included during metadata migration.

[0092] During the cold data migration phase, if an exception occurs on either the source node or the target node, such as a node device exception or a process exception, the cold data migration process will be re-executed after recovery from the exception. The current implementation supports re-entry. The L2 and L1 data are repeatedly migrated without causing consistency issues because they are all written in order and can be deduplicated later through compaction.

[0093] During the hot data migration or incremental data stage, if the target node is abnormal, the source node will re-initiate the source data migration request message carrying L0 layer data or incremental data that has not received a successful response, and the source node will retry the migration message; if the source node is abnormal, the entire metadata group to be migrated will be re-migrated.

[0094] In the mapping relationship reconstruction phase, if the metadata group marker file to be migrated is written successfully, but the mapping relationship update request fails to be reported, then after the abnormal recovery, the source node directly reports the mapping relationship update request again until it is sent successfully, and the mapping relationship maintenance node can publish the final mapping relationship.

[0095] The technical solution provided by the present invention, combined with the lexicographical arrangement and aggregation characteristics of the SST file in rocksdb, migrates large blocks of cold data distributed by metadata group prefixes to the target node in blocks, which can greatly reduce the number of I / O times and shorten the migration time, and then incrementally records subsequent hot data. The hot data and incremental data are limited, and I / O writing can still be supported during this period, ensuring business continuity.

[0096] In order to illustrate the technical effect of the technical solution of the present invention, the following is explained in combination with actual test data. According to the fully random balanced distribution, if the system stores 10 billion files, the metadata grouping is divided into 1024 groups through consistent hashing and stored on the server nodes of 3 storage nodes. Each group has approximately 9765625 key-value pairs kv, each node has 12 disks, and each hard disk needs to bear 28.4 groups of kv. Some will be divided into 28 groups, and some will be divided into 29 groups. Each disk starts a rocksdb instance. The key of each metadata is 128 bytes and the value is 128 bytes. Each rocksdb will store approximately 270 million kv. When expanding capacity, what is actually migrated is the kv in each group, that is, 9765625 kv in each group. If rocksdb is configured with L2, L1, and L0, 90% of the data is in L2, 8% of the data is in L1, and 2% of the data is in L0 and memory, then in total at the L0 level, it can be calculated that the L0 level requires approximately 0.02*9.76 million ≈ 195,200 key-value kv pairs. Assuming that each SST file in this layer holds 1,000 key-value pairs, the L0 level requires approximately 195,200 / 1,000 ≈ 195 SST files. At the L1 level, it can be calculated that the L1 level requires approximately 0.08*9.76 million ≈ 780,800 key-value pairs. Assuming that each SST file holds 500,000 key-value pairs, the L1 level requires approximately 780,800 / 500,000 ≈ 2 SST files. At the L2 level, it can be calculated that the L2 level requires approximately 0.9*9.76 million ≈ 8.784 million key-value pairs. Assuming that each SST file holds 5 million key-value pairs, the L2 level requires about 8.784 million / 5 million ≈ 2 SST files. In this case, the new solution needs to relocate 195 L0 128M files, 2 1G files, and 2 10G files. If each large file must be split into 1M I / O for migration, then 195*128+2*1024+2*10*1024=47488 1M I / Os and 195+2+2=199 SST metadata modifications are required. The number of I / Os for the newly added nodes for capacity expansion is 48,000 times, which is dozens of times less than the original 9.76 million times of reading kv. At the source node of the migration, there is also a read I / O. The solution provided by the present invention only needs to read according to 1M, which requires about 48,000 times, while the old solution requires 9.76 million reads. The number of I / O times is significantly reduced, which can greatly reduce the CPU and other resource overhead of the source and target nodes, achieving significant technical effects.

[0097] Figure 6A schematic diagram of the structure of an electronic device for implementing the distributed storage metadata expansion method provided by the present invention is provided in an embodiment of the present invention. The device 600 includes: a processor 610 such as a central processing unit (CPU), a communication bus 620, a communication interface 640, and a memory 630. The processor 610 and the memory 630 can communicate with each other through the communication bus 620. The memory 630 stores a computer program, and when the computer program is executed by the processor 610, the function of one or more steps in the distributed storage metadata expansion method provided by the present invention can be implemented.

[0098] Memory refers to a device based on a certain storage medium for storing computer programs and / or data. It can be a volatile memory (VM, often called memory) or a non-volatile memory (NVM). Memory refers to an internal memory that directly exchanges data with the processor. It can read and write data at any time and at a very fast speed. It is used as a storage medium for temporary data of the operating system and other running programs. Memory can be synchronous dynamic random access memory (SDRAM), dynamic random access memory (DRAM), etc. Non-volatile memory refers to a memory that uses a persistent storage medium. It has the characteristics of large capacity and persistent data storage. It can be a storage class memory (SCM), a solid state disk (SSD), a NAND flash memory, a disk, etc. SCM is the industry's general term for new storage media between memory and flash memory. It is a composite storage technology that combines persistent storage characteristics and memory characteristics. Its access speed is slower than DRAM and faster than SSD hard disks.

[0099] The processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0100] It should be appreciated that embodiments of the present invention may be implemented or implemented by computer hardware, a combination of hardware and software, or by computer instructions stored in a non-transitory (or non-persistent) memory. The method may be implemented in a computer program using standard programming techniques, including a non-transitory storage medium configured with a computer program, wherein the storage medium configured in this way causes the computer to operate in a specific and predefined manner. Each program may be implemented in a high-level procedural or object-oriented programming language to communicate with a computer system. However, if necessary, the program may be implemented in an assembly or machine language. In any case, the language may be a compiled or interpreted language. In addition, the program may be run on a programmed ASIC for this purpose. In addition, the operation of the process described in the present invention may be performed in any suitable order, unless the present invention otherwise indicates or otherwise clearly contradicts the context. The process described in the present invention (or variations and / or combinations thereof) may be performed under the control of one or more computer systems configured with executable instructions, and may be implemented as a code (e.g., executable instructions, one or more computer programs, or one or more applications) executed on one or more processors in common, by hardware or a combination thereof. The computer program includes a plurality of instructions that may be executed by one or more processors.

[0101] Further, the method can be implemented in any type of computing platform that is operably connected to a suitable computer, including but not limited to a personal computer, a minicomputer, a mainframe, a workstation, a network or distributed computing environment, a separate or integrated computer platform, or in communication with a charged particle tool or other imaging device, etc. Various aspects of the present invention can be implemented in machine-readable code stored on a non-transitory storage medium or device, whether removable or integrated into a computing platform, such as a hard disk, an optical read and / or write storage medium, a RAM, a ROM, etc., so that it can be read by a programmable computer, and when the storage medium or device is read by the computer, it can be used to configure and operate the computer to perform the process described herein. In addition, the machine-readable code, or portions thereof, can be transmitted via a wired or wireless network. When such media includes instructions or programs that implement the steps described above in conjunction with a microprocessor or other data processor, the invention described in the present invention includes these and other different types of non-transitory computer-readable storage media. When programmed according to the methods and techniques of the present invention, the present invention also includes the computer itself.

[0102] The above description is only an embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A distributed storage metadata expansion method, It is characterized in that The method is applied to a source node that needs to migrate part of the metadata group, i.e., the metadata group to be migrated, to a target node, and the metadata is stored in a key-value pair database. The method includes: Through the cold data migration process, the ordered key-value pair files related to the metadata group to be migrated in the persistence layer of the source key-value pair database are migrated to the target key-value pair database; when the cold data migration process starts, the merge function of the source key-value pair database is turned off; Through the hot data migration process, all memory tables at the top level of the source key-value database are migrated to the top level of the target key-value database of the target node. When the hot data migration process starts, the flush function of the source key-value database is turned off and the I / O transactions of the metadata group to be migrated are copied and saved as incremental data. The incremental data of the metadata group to be migrated recorded in the source node memory is migrated to the memory table of the target key-value pair database of the target node through the incremental data migration process; Suspend the I / O request of the source node for the metadata group to be migrated, and send a migration end request carrying a migration end marker and the remaining incremental data to the target node; the migration end request is used to make the target node write the remaining incremental data into the local memory table and delete the garbage data that does not belong to the target node; After receiving the migration completion response sent by the target node, the source node reports a mapping relationship update request to the cluster, so that the cluster updates the global mapping relationship between the metadata group to be migrated and the source node to a mapping relationship between the metadata group to be migrated and the target node; After completing the migration of the metadata group to be migrated, the source node deletes the data of the migrated metadata group and enables the flushing function and the merging function of the source key-value pair database.

2. The method according to claim 1, It is characterized in that The key field of metadata in the key-value database is prefixed with the group to which the metadata belongs; The ordered key-value pair file (SST file) related to the metadata group to be migrated is obtained by calling the file list acquisition interface of the corresponding level to match the key field group prefix in the key-value pair database.

3. The method according to claim 1, It is characterized in that When the remaining incremental data of the metadata group to be migrated is less than the preset remaining threshold, the step of suspending the I / O request of the source node for the metadata group to be migrated is performed.

4. The method according to claim 1, It is characterized in that Using remote direct memory access RDMA, the ordered key-value pair file (SST file) related to the metadata group to be migrated is migrated to the target key-value pair database.

5. A distributed storage metadata expansion method, It is characterized in that The method is applied to a target node of a metadata group to be migrated in a migration source node, and the metadata is stored in a key-value pair database. The method includes: Receive the ordered key-value pair files related to the metadata groups to be migrated that are migrated from the persistence layer of the source key-value pair database during the cold data migration process and write them into the target key-value pair database; Receive the memory table migrated from the source key-value database during the hot data migration process and write it to the top layer of the target key-value database; Receive the incremental data of the metadata group to be migrated from the source node memory during the incremental data migration process and write it into the memory table of the target key-value database; Receive the migration end request sent by the source node carrying the migration end marker and the remaining incremental data, write the remaining incremental data into the memory table of the target key-value database, send a migration end response to the source node, and delete the garbage data that does not belong to the target node.

6. The method according to claim 5, It is characterized in that During the cold data migration process, the ordered key-value pair files related to the metadata group to be migrated in the persistence layer of the source key-value pair database are migrated to the corresponding persistence layer of the target key-value pair database; Furthermore, when it is determined through the group prefix that the ordered key-value pair files related to the metadata group to be migrated have overlapping metadata key value ranges in the corresponding persistence layer in the target key-value pair database, the ordered key-value pair files related to the metadata group to be migrated are moved up and written to the upper persistence layer.

7. A distributed storage metadata expansion device, It is characterized in that The device is applied to a source node that needs to migrate part of the metadata group, that is, the metadata group to be migrated, to a target node, and the metadata is stored in a key-value pair database. The device includes: The cold data migration module is used to execute the cold data migration process, migrate the ordered key-value pair files related to the metadata group to be migrated in the persistence layer of the source key-value pair database to the target key-value pair database; when the cold data migration process starts, the merging function of the source key-value pair database is turned off; The hot data migration module is used to execute the hot data migration process, migrate all the memory tables at the top level of the source key-value database to the top level of the target key-value database of the target node, and when the hot data migration process starts, turn off the flushing function of the source key-value database and copy and save the I / O transactions of the metadata group to be migrated as incremental data; The incremental data migration module is used to execute the incremental data migration process and migrate the incremental data of the metadata group to be migrated recorded in the source node memory to the memory table of the target key-value pair database of the target node; A mapping relationship reconstruction module is used to suspend the I / O request of the source node for the metadata group to be migrated, and send a migration end request carrying a migration end mark and the remaining incremental data to the target node; the migration end request is used to make the target node write the remaining incremental data into the local memory table and delete the garbage data that does not belong to the target node; when the source node receives the migration end response sent by the target node, it reports a mapping relationship update request to the cluster, so that the cluster updates the global mapping relationship between the metadata group to be migrated and the source node to the mapping relationship between the target node and the source node; The cleanup module is used to delete the data of the migrated metadata groups after completing the migration of the metadata groups to be migrated, and enable the flushing function and the merging function of the source key-value pair database.

8. The device according to claim 7, It is characterized in that The key field of the metadata in the key-value pair database is prefixed with the group to which the metadata belongs; The cold data migration module obtains the ordered key-value pair files related to the metadata group to be migrated by matching the key field group prefix in the key-value pair database by calling the file list acquisition interface of the corresponding level.

9. The device according to claim 7, It is characterized in that After determining that the remaining incremental data of the metadata group to be migrated is less than a preset remaining threshold, the incremental data migration module instructs the mapping relationship reconstruction module to start execution.

10. A distributed storage metadata expansion device, It is characterized in that The device is applied to a target node of a metadata group to be migrated in a migration source node, and the metadata is stored in a key-value pair database. The device includes: The first module is used to receive the ordered key-value pair files related to the metadata groups to be migrated from the persistence layer of the source key-value pair database during the cold data migration process and write them into the target key-value pair database; The second module is used to receive the memory table migrated from the source key-value database during the hot data migration process and write it into the top layer of the target key-value database; The third module is used to receive the incremental data of the metadata group to be migrated from the source node memory during the incremental data migration process and write it into the memory table of the target key-value pair database; The fourth module is used to receive a migration end request sent by the source node, which carries a migration end marker and remaining incremental data, write the remaining incremental data into the memory table of the target key-value pair database, send a migration end response to the source node, and delete junk data that does not belong to the target node.

11. The device according to claim 10, It is characterized in that During the cold data migration process, the first module migrates the ordered key-value pair files related to the metadata group to be migrated in the persistence layer of the source key-value pair database to the corresponding persistence layer of the target key-value pair database; further, when it is determined through the group prefix that the ordered key-value pair files related to the metadata group to be migrated have overlapping metadata key value ranges in the corresponding persistence layer of the target key-value pair database, the ordered key-value pair files related to the metadata group to be migrated are moved up and written to the upper persistence layer.

12. An electronic device, It is characterized in that It includes a processor, a communication interface, a storage medium and a communication bus, wherein the processor, the communication interface and the storage medium communicate with each other via the communication bus; Storage medium for storing computer programs; A processor, for implementing the method described in any one of claims 1 to 4 or 5 to 6 when executing a computer program stored on a storage medium.

Citation Information

Cited By

  • Metadata garbage collection method and device, electronic equipment and storage medium

    CN119576226A

  • Metadata garbage collection method and apparatus, electronic device, and storage medium

    CN119576226B

  • New energy large base database smooth expansion method and system based on optimization consistency Hash algorithm

    CN121478771A