Strong consistency storage system, data strong consistency storage method, server and medium

By dividing the node clusters by region in the global strong consistent storage system and using the dominant node mapping table, the dominant node is dynamically adjusted, which solves the problem of insufficient performance and stability of the existing system and achieves more efficient data storage and better automatic operation. Adaptability.

CN112000285BActive Publication Date: 2024-09-24GUANGZHOU BAIGUOYUAN INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010809245.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-12
Publication Date
2024-09-24
Estimated Expiration
2040-08-12

AI Technical Summary

Technical Problem

Existing global strongly consistent storage systems have shortcomings in performance and stability, especially due to large network delays and poor system adaptive capabilities, resulting in poor storage performance and poor stability.

Method used

Using node clusters divided by region, each storage node stores the dominant node mapping table, completes strongly consistent storage submission of data objects through interaction with other nodes, and dynamically adjusts the dominant node to adapt to changes in data characteristics and load.

Benefits of technology

It improves the performance and adaptability of the strongly consistent data storage system, reduces cost investment, and improves the business experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112000285B
    Figure CN112000285B
Patent Text Reader

Abstract

The present invention discloses a strong consistency storage system, a data strong consistency storage method, a server and a storage medium. The system includes node clusters divided by region, each node cluster includes at least one storage node; each storage node stores a dominant node mapping table, the dominant node mapping table is used to record data objects and mapped dominant nodes; the storage node is used to analyze the received write request, determine the target data object contained in the write request, and complete the strong consistency storage submission of the target data object through interaction with other storage nodes according to the stored dominant node mapping table. Using this system, each data object can be regarded as a minimum unit, and each data object can be considered to be partitioned independently, ensuring that there is no dependency between the data objects, so that the system can achieve performance optimization of strong consistency storage of data objects according to the data characteristics of each data object, system load, and user access behavior.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the technical field of data storage, and in particular to a strongly consistent storage system, a strongly consistent data storage method, a server, and a medium. Background Art

[0002] For some companies in the Internet field, many of their business scenarios, such as payment flows and monthly currency business processes, require reliance on a global strong consistency storage system to store core data.

[0003] For the implementation of the above-mentioned reliance on a global strong consistency storage system for core data storage, the technologies that can be used are currently divided into two categories:

[0004] 1. Global strong consistency storage system represented by the classic strong consistency storage algorithm Paxos or its variant strong consistency storage algorithm Raft. This type of global strong consistency storage system needs to first deploy the required dominant nodes across multiple subclusters, and then all write requests generated by clients need to be routed to the deployed dominant nodes before subsequent storage submission. In this mode, since the network delay of each subcluster software around the world is very large, usually 200-500ms, if the request initiated by the client must be routed to the dominant node first, it will directly lead to a very large submission delay, thereby affecting the performance of the global strong consistency storage system; at the same time, the classic algorithms such as Paxos and Raft used in the system are difficult to implement in engineering and verify correctness, which also leads to poor stability of the global strong consistency storage system.

[0005] 2. An improved global strong consistent storage system Google Spanner, which can statically partition data and regard each partition as a Paxos group. Each group contains multiple data objects. Since multiple Paxos groups can perform write operations concurrently at the same time, the writing capability of the entire system is improved to a certain extent, which better solves the problem of poor storage performance in the above-mentioned first category of technology.

[0006] However, the above-mentioned second type of technical solution has the following problems in practical application:

[0007] a. Since the processable data objects are pre-assigned to different partitions for processing, for the write of the same data object o, no matter where the client with the write request is located, the write request must be routed to the dominant node corresponding to the Paxos group to which the data object o belongs to initiate the request, and the system has poor adaptability.

[0008] b. A key to the improved system is to statically partition the data and assign multiple data objects responsible for strong consistent storage processing to each partition. For multiple data objects in the same partition, they are logically bound together, but these data objects may conflict in terms of data characteristics, system load, and user access behavior. Therefore, when considering strong consistent storage optimization for certain data objects in a partition, the optimized partition may affect the storage performance of other data objects in the same partition, and this type of problem cannot be solved or avoided based on the existing partitioning strategy alone. Summary of the invention

[0009] In view of this, embodiments of the present invention provide a strongly consistent storage system, a data strongly consistent storage method, a server and a medium, which improve the system storage performance and system adaptability when implementing data strongly consistent storage.

[0010] In a first aspect, an embodiment of the present invention provides a strongly consistent storage system, including:

[0011] Node clusters divided by region, each node cluster includes at least one storage node;

[0012] A dominant node mapping table is stored on each of the storage nodes, and the dominant node mapping table is used to record data objects and mapped dominant nodes, wherein the dominant node is any storage node under any node cluster;

[0013] The storage node is used to analyze the received write request, determine the target data object contained in the write request, and complete the strongly consistent storage submission of the target data object through interaction with other storage nodes based on the stored dominant node mapping table.

[0014] In a second aspect, an embodiment of the present invention provides a method for storing data with strong consistency, including:

[0015] For each storage node that receives a write request, analyzing the received write request to determine a target data object included in the write request;

[0016] According to the dominant node mapping table stored locally, strong consistent storage submission of the target data object is completed through interaction with other storage nodes.

[0017] In a third aspect, an embodiment of the present invention provides a server, including:

[0018] one or more processors;

[0019] A storage device for storing one or more programs;

[0020] The one or more programs are executed by the one or more processors, so that the one or more processors implement the data strong consistency storage method provided in the embodiment of the first aspect of the present invention.

[0021] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the data strong consistency storage method provided by the embodiment of the first aspect of the present invention.

[0022] In the strongly consistent storage system, data strongly consistent storage method, server and medium provided by the embodiment of the present invention, the system includes node clusters divided by region, each node cluster includes at least one storage node, and each storage node stores a dominant node mapping table, the dominant node mapping table is used to record data objects and mapped dominant nodes, and the mapped dominant node is any storage node under any node cluster. At the same time, the storage node is used to analyze the received write request, determine the target data object contained in the write request, and complete the strongly consistent storage submission of the target data object through interaction with other storage nodes according to the stored dominant node mapping table. The above technical scheme of this embodiment regards each data object as the smallest unit, considers independent partitioning of each data object, ensures that there is no dependency between the data objects, so that the strongly consistent storage system provided by this embodiment can realize the performance optimization of strongly consistent storage of data objects according to the data characteristics, system load and user access behavior of each data object, and effectively improves the applicability of the strongly consistent storage system while reducing the cost investment of strongly consistent storage; in addition, it also improves the use experience of the business party of the system in the business scenario. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 An architecture diagram of a strongly consistent storage system provided by Embodiment 1 of the present invention is given;

[0024] Figure 2 A schematic diagram of a process flow of a data strong consistency storage method provided by Embodiment 2 of the present invention is provided;

[0025] Figure 3 A schematic diagram of the hardware structure of a server provided in Embodiment 3 of the present invention is given. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical scheme and advantages of the present invention clearer, the embodiments of the present invention will be further described in detail in conjunction with the accompanying drawings. It should be clear that the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present invention. In addition, in the absence of conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other, and the various embodiments can refer to and quote each other.

[0027] Embodiment 1

[0028] It should be noted that, through the description of the above background technology section, it can be seen that whether it is a global strong consistency storage system represented by the classic Paxos algorithm, or an improved global strong consistency storage system that statically partitions data so that each static partition corresponds to a Paxos group. They are all based on the Paxos algorithm to achieve strong consistency storage of each data object in the business scenario, and the key to the Paxos algorithm lies in the determination of the dominant node, wherein the data object can be understood as the data to be stored in a write request.

[0029] Regarding the determination of the dominant node, in the classic global strong consistency storage system, a storage node is directly selected from the node cluster as the dominant node, and the write request containing the data object can be directly routed to the determined dominant node, and the dominant node directly performs subsequent strong consistency storage submission for the data object contained in the write request. Because the dominant node and the client sending the write request may be in different regions, the system has the problem of poor system storage performance caused by network delay.

[0030] For the improved global strongly consistent storage system mentioned in the background technology, although the system considers dividing the dominant nodes corresponding to data objects according to static partitions, there is a problem of routing write requests containing data objects to the dominant nodes corresponding to the data objects. At the same time, there is also a problem that data objects in the same partition cannot select an effective dominant node for a certain data object due to conflicts in characteristics such as data characteristics, system load, and user access behavior.

[0031] Based on this, the first embodiment of the present invention proposes a strong consistency storage system that can solve the above problems. Figure 1 The following is an architecture diagram of a strongly consistent storage system provided by the first embodiment of the present invention. Figure 1 As shown, the strongly consistent storage system includes: node clusters 10 divided by region, each node cluster 10 includes at least one storage node 101;

[0032] Each storage node 101 stores a dominant node mapping table 1011, which is used to record data objects and mapped dominant nodes, wherein the dominant node is any storage node 101 under any node cluster 10;

[0033] The storage node 101 is used to analyze the received write request, determine the target data object contained in the write request, and complete the strongly consistent storage submission of the target data object through interaction with other storage nodes 101 according to the stored dominant node mapping table 1011.

[0034] First of all, it should be noted that the core idea of ​​the strongly consistent storage system provided in this embodiment is that by analyzing the problems existing in the existing strongly consistent storage system, the process of implementing strongly consistent storage of a data object can be modeled as follows: 强一致存储 =T1+T2, where T 强一致存储 It indicates the time required for a data object to achieve strong consistent storage. T1 indicates the time it takes for a write request containing a data object to reach the dominant node of the data object. T2 indicates the time it takes for the dominant node of the data object to initiate a strong consistent storage request and implement strong consistent storage submission through the Paxos algorithm.

[0035] Secondly, through the analysis of the Paxos algorithm, it can be seen that T2 mainly depends on the time spent on two rounds of interaction between the dominant node and the majority nodes in the cluster, among which the time spent on one round of interaction depends on the maximum round-trip time of interaction between the dominant node and the majority nodes in the cluster. Assuming that the dominant node corresponding to the data object can remain stable, the time spent by the dominant node of the data object to initiate a strong consistent storage request to implement a strong consistent storage commit is equivalent to one round of interaction time between the dominant node and the majority nodes in the cluster.

[0036] Therefore, in order to make the strong consistency storage system provided by this embodiment have good storage performance and enable the business party to have a better business experience when using the strong consistency storage system. The strong consistency storage system provided by this embodiment needs to ensure that the T 强一致存储 is an optimal value. 强一致存储 The condition for an optimal value can be seen as: the time T1 from the write request of the data object to the dominant node corresponding to the data object is minimized; at the same time, considering that the dominant nodes corresponding to the data object are in a reasonable stable state, T2 can also reach the optimal time.

[0037] In order to make the strong consistency storage system provided in this embodiment better meet T 强一致存储Optimal conditions. This embodiment considers data objects as the smallest unit, and uses a separate Paxos mechanism for each data object to achieve strong consistent storage of the data object, so as to ensure that different data objects can independently perform adaptive updates of the corresponding dominant nodes based on their data characteristics, system load, and user access behavior.

[0038] In this embodiment, the strongly consistent storage system provided is deployed based on a global network architecture. Under the global network architecture, the strongly consistent storage system may include multiple node clusters 10 divided by region, and different node clusters 10 may be composed of at least one storage node 101. In the strongly consistent storage system provided in this embodiment, each storage node 101 is equivalent to a physical node, which is responsible for the specific execution of the strongly consistent storage system provided in this embodiment to realize the strongly consistent storage of data objects.

[0039] In this embodiment, for the storage node 101, the operation performed here specifically refers to the operation started after receiving the write request. It should be noted that the write request received by the storage node 101 may be directly generated and sent by the user terminal, or forwarded by other storage nodes 101. In this embodiment, the receipt of the write request sent by the user terminal is the starting point for the storage node to perform strong consistency storage processing.

[0040] In order to achieve strong consistent storage of data objects, the storage node 101 that receives the write request containing the data object can first determine the dominant node corresponding to the data object, and then the storage node 101 that serves as the dominant node of the data object further completes the strong consistent storage of the data object. In order to effectively obtain the dominant node of the data object, a dominant node mapping table 1011 is correspondingly stored on each storage node 101 in this embodiment. It should be noted that the dominant node mapping table 1011 stored on each storage node 101 can specifically include each data object that has been processed by the storage node 101 and the dominant node mapped thereto, and the dominant node mapped to each data object can be any storage node 101 under any node cluster 10 in the strongly consistent storage system, and is not necessarily the storage node 101 that stores the dominant node mapping table 1011.

[0041] For each storage node 101, when it receives a write request, in order to achieve strongly consistent storage of the data object included in the write request, it is first necessary to analyze the data object included in the write request, which is recorded as the target data object in this embodiment. After that, the strongly consistent storage of the target data object can be completed based on the dominant node mapping table 1011 stored on this node, as well as through interaction with other storage nodes 101.

[0042] Specifically, the target data object analyzed on the storage node 101 may be a data object that has not been processed by the storage node 101. At this time, the record information relative to the target data object in the dominant node mapping table 1011 is empty. Therefore, the storage node 101 needs to determine the dominant node of the target data object through interaction with other storage nodes 101, and then complete the strong consistent storage of the target data object based on the dominant node of the target data object; when the target data object is a data object that has been processed by the storage node 101, there is a dominant node corresponding to the target data object in the dominant node mapping table 1011, and the storage node 101 needs to further determine whether the dominant node meets the conditions for continuing to serve as the dominant node. When the conditions are met, the dominant node can directly complete the strong consistent storage submission of the target data object. When the conditions are not met, it is necessary to determine a new dominant node through interaction with other storage nodes 101, and the new dominant node completes the strong consistent storage submission of the target data object.

[0043] In the strongly consistent storage system, the dominant node of the data object can be dynamically adjusted according to the data characteristics of the data object, system load, and user access behavior, so as to ensure that the time spent by the write request of the data object to the dominant node is the most reasonable.

[0044] The strongly consistent storage system provided in the first embodiment of the present invention can regard each data object as a minimum unit. The storage node can independently adopt a set of Paxos mechanisms to complete the strongly consistent storage of each data object, and consider independently partitioning each data object to ensure that there is no dependency between the data objects; and when processing with the data object as the minimum unit, according to the dominant node mapping table stored on the storage node, through interaction with other storage nodes, the target dominant node of the target data object is dynamically determined and the strongly consistent storage submission of the target data object is completed on this basis, so that the strongly consistent storage system provided in this embodiment can realize the performance optimization of the strongly consistent storage of data objects according to the data characteristics, system load and user access behavior of each data object, while reducing the cost investment of strongly consistent storage, effectively improving the applicability of the strongly consistent storage system; in addition, it also improves the use experience of the business party of the system in the business scenario.

[0045] This embodiment refines the functions of the storage node 101. Further, the storage node 101 may specifically include:

[0046] An object determination module, configured to analyze a received write request and determine a target data object included in the write request;

[0047] A first determination module, used to determine whether a target dominant node of the target data object exists in the stored dominant node mapping table 1011;

[0048] A first execution module is used for initiating, as an initiating node, a dominant node election request corresponding to the target data object to other storage nodes 101 when there is no target dominant node, so as to determine the target dominant node through interaction with other storage nodes 101, and complete the strong consistent storage submission of the target data object based on the determined target dominant node;

[0049] The second execution module is used to determine whether the target dominant node is the current node when there is a target dominant node, and complete the strong consistent storage submission of the target data object through interaction with other storage nodes 101 according to the determination result.

[0050] In this embodiment, the storage node 101 can be specifically divided into several different functional modules. For example, the object determination module in the storage node 101 can analyze the received write request to determine the target data object to be strongly consistent stored in the write request; for another example, the first determination module in the storage node 101 can directly determine whether the analyzed target data object exists in the dominant node mapping table 1011 on this node, thereby determining whether the target dominant node of the target data object is recorded on this node. Different determination results of the first determination module can trigger the first execution module or the second execution module in the storage node 101 to further perform subsequent operations.

[0051] Continuing with the above description, when the determination result of the first determination module meets the execution condition of the first execution module, that is, the target dominant node of the target data object does not exist in the dominant node mapping table 1011, the first execution module can first use this node as an initiating node to send a dominant node election request corresponding to the target data object to other storage nodes 101, thereby realizing interaction with other storage nodes 101 through the initiated dominant node election request, thereby determining the target dominant node of the target data object, and then completing the strongly consistent storage submission of the target data object based on the determined target dominant node.

[0052] It can be known that the first execution module in the storage node 101 interacts with other storage nodes 101 through the initiated dominant node election request to determine the target dominant node, which can actually be regarded as a request for initiating a round of interaction between the storage node 101 and the majority of other storage nodes 101 in the system in the Paxos algorithm. This round of interaction can be specifically used to determine the target dominant node corresponding to the target data object. At the same time, it can be known that after this node determines a new target dominant node for the target data object by initiating a dominant node election request to other storage nodes 101, the target data object and its corresponding target dominant node will be associated and stored in the dominant node mapping table 1011 created on this node.

[0053] In addition, when the determination result of the first determination module meets the execution condition of the second execution module, that is, when the target dominant node of the target data object exists in the dominant node mapping table 1011, the execution of the second execution module can be triggered. Specifically, the second execution module can first determine whether the existing target dominant node is the storage node 101, and then can complete the strong consistent storage submission of the target data object based on the determination result combined with the interaction with other storage nodes 101.

[0054] It can be understood that for the second execution module in the storage node 101, it can compare the target dominant node corresponding to the target data object in the dominant node mapping table 1011 with the node itself. If the target dominant node is the node, it is equivalent to the storage node 101 being the target dominant node of the target data object. After that, the rationality of the node as the target data object can be further considered, and when it is suitable as the target dominant node of the target data object, the data object is directly submitted for strong consistent storage by the node; if the target dominant node is not the node, it is equivalent to the target dominant node being other storage nodes 101 in the strong consistent storage system, and thus the second execution module needs to forward the write request containing the target data object to the target dominant node, and the target dominant node implements the strong consistent storage submission of the target data object, and the storage node 101 can end the processing of the target data object.

[0055] Furthermore, the second execution module is specifically used for:

[0056] When the existing target dominant node is the current node, determine whether the target data object meets the set dominant node transfer condition in combination with the historical access data corresponding to the target data object;

[0057] If satisfied, determine a candidate dominant node and transfer the target data object to the candidate dominant node, so as to determine a target dominant node of the target data object based on the candidate dominant node, and complete a strongly consistent storage commit of the target data object based on the determined target dominant node;

[0058] If not satisfied, a strongly consistent storage commit request is initiated to other storage nodes 101 to complete the strongly consistent storage commit of the target data object.

[0059] The above embodiment gives a specific description of the second execution module learning that the target dominant node is the current node. It can be seen that in the second execution module, after determining that the existing target dominant node is the current node, the historical access data of the corresponding target data object pre-existing on the current node can be further obtained. Among them, the historical access data at least includes the specific region from which the write request associated with the target data object is initiated, which is equivalent to including the initiation region information of the write request associated with the target data object.

[0060] Following the above description, the second execution module can determine whether the target data object meets the pre-device dominant node transfer condition based on the content contained in the historical access data, and then the second execution module can give different execution modes according to the satisfaction determination result. Among them, the write requests containing the target data object received for a set number of consecutive times are all generated from the same initiating region, and the region to which the node belongs is different from the initiating region.

[0061] It should be noted that the process of determining whether the target data object satisfies the set dominant node transfer conditions can be specifically described as: searching for the historical access data of the target data object, extracting the write requests containing the target data object received by this node within the historical time; obtaining the initiating region information corresponding to each write request; assuming that the write requests received consecutively are all initiated from the same region, and the initiating region for sending these write requests is different from the region to which this node belongs, it can be determined that the dominant node transfer conditions are currently met.

[0062] Specifically, after the second execution module determines that the target data object meets the dominant node transfer condition, it can be considered that the node is no longer suitable to continue to be the target dominant node of the target data object, so that the target data object can be directly transferred to the determined candidate dominant node for processing, so that the candidate dominant node further determines the target dominant node of the target data object, and the determined target dominant node completes the strong consistent storage submission of the target data object. Among them, the candidate dominant node is any storage node 101 selected from the node cluster 10 corresponding to the specified region, and the specified region can be the initiation region corresponding to the write request associated with the target data object.

[0063] Exemplarily, the process of determining the candidate dominant node by the second execution module can be described as: selecting a storage node 101 from the node cluster 10 corresponding to the region where the write request is initiated as the candidate dominant node. Preferably, in order to ensure the efficiency of strongly consistent data storage, a storage node 101 that is not a dominant node for other data objects can be selected from the above node cluster 10 as a candidate dominant node for the target data object.

[0064] It can be understood that after the target dominant node of the target data object is determined by the candidate dominant node, the candidate dominant node can provide a message feedback to the current node to inform the current node which storage node 101 is the new target dominant node of the target data object, and update the target data object and the corresponding new target dominant node to the dominant node mapping table 1011 stored in the current node.

[0065] In addition, when the second execution module determines that the target data object does not meet the dominant node transfer conditions, it can be considered that this node can still serve as the target dominant node of the target data object. At this time, this node can directly initiate a strongly consistent storage submission request to other storage nodes 101 to complete the strongly consistent storage submission of the target data object.

[0066] Furthermore, the storage node 101 as the candidate leading node is specifically used for:

[0067] Initiate a request for the election of a leading node corresponding to the target data object to other storage nodes 101, and record them as initiating nodes;

[0068] After determining that it is allowed to be the target dominant node based on the election response results fed back by other storage nodes 101, it initiates a strongly consistent storage commit request to other storage nodes 101 to complete the strongly consistent storage commit of the target data object.

[0069] This embodiment also provides the operations that the storage node 101 should perform when serving as a candidate dominant node. Specifically, relative to the storage node 101 that receives the write request, the storage node 101 that receives the write request can perform the following operations after forwarding the target data object to the determined candidate dominant node: first, after receiving the target data object, the storage node 101 can initiate a dominant node election request corresponding to the target data object to other storage nodes 101. After that, the node can receive the election response results fed back by other storage nodes 101 based on the dominant node election requests sent by them, and can determine that it is allowed to be the target dominant node based on the election response results. Then, the node can directly initiate a strongly consistent storage commit request to other storage nodes 101 to complete the strongly consistent storage commit of the target data object.

[0070] Among them, the node that performs these operations can also be recorded as an initiating node after initiating the dominant node election request. In this embodiment, the storage node 101 that initiates the dominant node election request is uniformly recorded as an initiating node, so as to facilitate a more detailed description of the storage node 101 as the initiating node in the subsequent description.

[0071] It can be understood that the operation performed by the storage node 101 as a candidate dominant node in the present embodiment is actually equivalent to the storage node 101 executing a complete Paxos algorithm on the target data object, that is, it can be regarded as two rounds of interaction between the storage node 101 and the majority node in the system.

[0072] Furthermore, the second execution module is further configured to:

[0073] When the existing target dominant node is not this node, the write request is forwarded to the storage node 101 serving as the target dominant node, so that the storage node 101 serving as the target dominant node completes the strongly consistent storage submission of the target data object according to the received write request.

[0074] This embodiment also provides a specific description of the case where the second execution module learns that the target dominant node is not the current node. It can be seen that in the second execution module, after determining that the existing target dominant node is not the current node, the write request containing the target data object can be further forwarded to the storage node 101 as its target dominant node. Therefore, the storage node 101 as the target dominant node can subsequently complete the strong consistent storage submission of the target data object according to the received write request.

[0075] It can be known that the storage node 101 serving as the target dominant node in the present embodiment can also be equivalent to a storage node 101 that receives a write request, and can analyze the received write request again to determine the target data object contained in the write request, and based on the stored dominant node mapping table 1011, through interaction with other storage nodes 101, complete the operation of strongly consistent storage submission of the target data object, and can also implement strongly consistent storage submission of the target data object contained in the received write request based on the object determination module, the first judgment module, the first execution module and the second execution module included therein.

[0076] Based on the above optimization, the storage node 101 receiving the dominant node election request specifically includes:

[0077] An information search module, used to receive a dominant node election request sent by the storage node 101 as an initiating node, and search for an original dominant node corresponding to the target data object from a locally stored dominant node mapping table 1011;

[0078] The election response module is used to compare the original dominant node with the initiating node, and send an election response result corresponding to the dominant node election request to the initiating node according to the comparison result.

[0079] In this embodiment, the storage node 101 in the provided strongly consistent storage system may further specifically include: an information search module and an election response module, whereby the storage node 101 may, after receiving a dominant node election request initiated by other storage nodes 101 acting as initiating nodes, provide feedback of the election response result to the initiating node through the information search module and the election response module.

[0080] Specifically, for the information search module in the storage node 101, a dominant node election request sent by the storage node 101 as an initiating node can be received, and then the dominant node currently corresponding to the target data object can be found from the dominant node mapping table 1011 stored on this node, and the dominant node is recorded as the original dominant node. The dominant node election request can be regarded as a request including information such as the initiating node wants to be the dominant node of the target data object, and the information search module can analyze the initiating node that wants to be elected as the dominant node included in the received dominant node election request.

[0081] For the election response module in the storage node 101, it can obtain the initiating node that wants to be elected as the dominant node of the target data object, and can also obtain the original dominant node found by the information search module from the dominant node mapping table 1011 of this node; thereafter, the initiating node can be compared with the original dominant node, and then, based on the comparison result, an election response result corresponding to the dominant node election request can be sent to the initiating node.

[0082] It should be noted that the election response result fed back by the storage node 101 that receives the dominant node election request to the initiating node may include two situations, one is to allow the initiating node to be the target dominant node of the target data object, and the other is to refuse the initiating node to be the target dominant node of the target data object. If you want the election response result to allow the initiating node to be the target dominant node of the target data object, one of the following two conditions must be met: 1) The original dominant node corresponding to the target data object stored locally by the storage node 101 is the initiating node; 2) The data number of the target data object included in the dominant node election request is greater than the data number of the corresponding target data object recorded locally by the storage node 101. Among them, the data number of the target data object can be understood as an identification number that allows other storage nodes 101 to reach a consensus on the election of the target dominant node, and each storage node 101 can record the current maximum data number corresponding to each data object.

[0083] Through the above description, this embodiment can optimize the execution process of the election response module for determining the election response result as follows:

[0084] When the original dominant node and the initiating node are the same storage node 101, an election response result is sent to the initiating node to accept the initiating node as the target dominant node of the target data object.

[0085] For the election response module, when it is determined that the locally recorded original dominant node and the initiating node are the same storage node 101, it can be considered that the initiating node meets the conditions of being the target dominant node corresponding to the target data object, thereby directly sending to the initiating node an election response result accepting the initiating node as the target dominant node of the target data object.

[0086] At the same time, this embodiment can also optimize the execution process of the election response module for determining the election response result as follows: the election response module is specifically used for:

[0087] When the original dominant node and the initiating node are different storage nodes 101, obtaining the historical data number pre-stored locally corresponding to the target data object, and obtaining the current data number corresponding to the target data object from the dominant node election request;

[0088] If the current data number is greater than the historical data number, then after the response message sending condition is met, the current data number is used as the new historical data number and the initiating node is used as the new original dominant node, and an election response result is sent to the initiating node to accept the initiating node as the target dominant node of the target data object; otherwise,

[0089] An election response result is sent to the initiating node, rejecting the initiating node as a target dominant node for the target data object.

[0090] For the election response module, when it is determined that the original dominant node and the initiating node recorded locally are different storage nodes 101, it can first obtain the historical data number pre-corresponding to the target data object record from the current node; and compare the historical data number with the current data number of the target data object contained in the dominant node election request. When the current data number is greater than the historical data number, the current data number can be used as the new historical data number and the initiating node can be used as the new original dominant node after the response message sending conditions are met, and an election response result of accepting the initiating node as the target dominant node of the target data object is sent to the initiating node.

[0091] The response message sending condition here can be summarized as: the node performs self-check and determines that it is not currently in the dominant node election process for the same target data object. It can be known that when the response message sending condition is not met at present, it is necessary to wait for a period of time randomly and then re-check the self-check until it is checked that the node is not currently in the dominant node election process for the same target data object.

[0092] In this embodiment, when the original dominant node and the initiating node are different storage nodes 101 and the current data number is greater than the historical data number, the election response module needs to update the historical data number recorded in this node, and use the current data number to replace the historical data number as the new historical data number of the target data object in this node. At this time, the election response module can also use the initiating node as the new original dominant node corresponding to the target data object in the dominant node mapping table 1011 of this node to update the dominant node mapping table 1011.

[0093] In this embodiment, when the original dominant node and the initiating node are different storage nodes 101 but the current data number is not greater than the historical data number, the election response module considers that the initiating node does not meet the conditions of being the target dominant node corresponding to the target data object, and thus can directly send an election response result to the initiating node to reject the initiating node as the target dominant node of the target data object.

[0094] It can be known that the initiating node that sends the election response result to the storage node 101 that receives the dominant node election request can be the storage node 101 that receives the write request containing the target data object in this embodiment, or it can be the storage node 101 determined as a candidate dominant node by the storage node 101 that receives the write request containing the target data object.

[0095] Furthermore, the storage node 101 as the initiating node is specifically used for:

[0096] Receive the election response results fed back by other storage nodes 101 in response to the sent dominant node election request;

[0097] Counting the number of nodes whose election response results allow the node to be the target dominant node of the target data object;

[0098] When the number of nodes is greater than or equal to the set threshold, the node is determined to be the target dominant node of the target data object, the stored dominant node mapping table 1011 is updated, and a strongly consistent storage commit request is initiated to other storage nodes 101 to complete the strongly consistent storage commit of the target data object.

[0099] In this embodiment, the execution operation of the storage node 101 as the initiating node after receiving the election response result fed back by other storage nodes 101 is further provided. Specifically, the storage node 101 of this type as the initiating node can receive the election response result fed back by other storage nodes 101 in the system in response to the dominant node election request sent by it; then the election response result can be analyzed and the number of nodes whose election response result is to allow the node to be the target dominant node of the target data object can be counted, and finally, according to the counted number of nodes, it can be determined whether the node itself meets the condition of being the target dominant node corresponding to the target data object, and after meeting the condition (such as, the number of nodes is greater than or equal to the set threshold, which is equivalent to the condition when executing the dominant node election in the Paxos algorithm), the node itself is determined as the target dominant node of the target data object, and the operation of initiating a strong consistent storage submission request to other storage nodes 101 is executed to complete the strong consistent storage submission of the target data object.

[0100] It can be known that the storage node 101 as the initiating node can record the target data object and its corresponding target dominant node in the dominant node mapping table 1011 of the node after confirming that it is the target dominant node of the target data object.

[0101] Furthermore, the storage node 101 as the initiating node is also specifically used for:

[0102] When the number of nodes is less than a set threshold, the current dominant node carried in the target election response result is used as the target dominant node corresponding to the target data object in the locally stored dominant node mapping table 1011, wherein the target election response result is selected from the election response results whose sent content is to reject the initiating node as the target dominant node of the target data object;

[0103] The write request is forwarded to the storage node 101 serving as the target dominant node, so that the storage node 101 serving as the target dominant node completes a strongly consistent storage commit of the target data object according to the received write request.

[0104] In this embodiment, when the number of counted nodes is less than a set threshold, the storage node 101 serving as the initiating node can first select one with the largest current data number from the election response results sent to reject the initiating node as the target dominant node of the target data object as the target election response result, and use the current dominant node carried in the target election response result as the target dominant node corresponding to the target data object in the locally stored dominant node mapping table 1011; thereafter, the write request containing the target data object can be forwarded again to the storage node 101 serving as the target dominant node, so as to complete the strongly consistent storage submission of the target data object through the storage node 101 serving as the target dominant node according to the received write request.

[0105] It can be understood that before forwarding the write request containing the target data object to the storage node 101 serving as the target dominant node again, the initiating node can also update the data number of the local corresponding target data object record and use the current data number carried in the target election response result as the new historical data number corresponding to the target data object locally.

[0106] Embodiment 1 of the present invention provides a strongly consistent storage system, so that T 强一致存储 To achieve the optimal value, according to the above 强一致存储 From the description, we can see that T 强一致存储It actually consists of two parts: the time T1 spent by the write request containing the data object to the dominant node of the data object, and the time T2 spent by the dominant node of the data object from initiating a strongly consistent storage request to achieving a strongly consistent storage commit through the Paxos algorithm. For the time T2 spent by the dominant node of the data object from initiating a strongly consistent storage request to achieving a strongly consistent storage commit through the Paxos algorithm, the strongly consistent storage system provided in this embodiment adopts the same method as the existing strongly consistent storage system, without much improvement. Therefore, this embodiment mainly considers the optimization of the time T1 spent by the write request containing the data object to the dominant node of the data object,

[0107] For the optimization of T1, this embodiment considers the data object as the smallest unit, and the storage node can independently process each data object through the Paxos algorithm, ensuring that there is no dependency between the data objects, and the entire processing is mainly based on the dominant node mapping table stored on the storage node, and is dynamically completed through interaction with other storage nodes. Specifically, after a period of iterative updates of the dominant node mapping table on each storage node in the strongly consistent storage system of this embodiment, the stability of the dominant node corresponding to the data object can be basically guaranteed, and the storage node that receives the write request containing the data object is the dominant node of the data object, so that the time of sending the write request to the storage node can be regarded as T1, so as to achieve the optimization of T1. The strongly consistent storage system of this embodiment can better reflect the storage performance when the data is strongly consistent, and while reducing the cost investment of strongly consistent storage, it also reflects the applicability of the strongly consistent storage system; in addition, it also improves the use experience of the business party of the strongly consistent storage system in the business scenario.

[0108] Embodiment 2

[0109] Figure 2 A flow chart of a method for strongly consistent data storage provided in the second embodiment of the present invention is given. The method is applicable to the case of strongly consistent storage of business data. The method can be executed by the strongly consistent storage system provided in the first embodiment of the present invention.

[0110] According to the description of the strongly consistent storage system in the above embodiment, it can be known that the strongly consistent storage system specifically includes: node clusters divided in different regions, each node cluster also includes at least one storage node. At the same time, each storage node stores a dominant node mapping table, which includes each data object for which the storage node has determined the dominant node and the corresponding dominant node.

[0111] like Figure 2 As shown, a data strong consistency storage method provided in this embodiment 2 specifically includes the following operations:

[0112] S201. For each storage node that receives a write request, analyze the received write request to determine a target data object included in the write request.

[0113] In this embodiment, the receipt of a write request can be regarded as the starting step for each storage node in the strongly consistent storage system provided in the above embodiment to process the data object. For each storage node that receives a write request, the operation of this step can be used to determine the target data object contained in the write request, and thus start the strongly consistent storage processing of the target data object.

[0114] S202. According to the dominant node mapping table stored locally, through interaction with other storage nodes, a strongly consistent storage submission of the target data object is completed.

[0115] A dominant node mapping table is locally stored on the storage node. Based on the dominant node mapping table, through interaction with other storage nodes, a strongly consistent storage submission for the target data object can be completed.

[0116] Specifically, for the target data object, the dominant node mapping table may contain the corresponding target dominant node, or may not contain the target dominant node. Based on the above two situations of inclusion or non-inclusion, the storage node can perform different operations on the target data object. For example, when the target dominant node is not included, the storage node needs to initiate a dominant node election request to other storage nodes to determine a new target dominant node for the target data object through the participation of other storage nodes, and then the target dominant node can send a strong consistent storage request to other storage nodes to complete the strong consistent storage submission; for example, when the dominant node is included, if the dominant node conversion is not currently required, the storage node is directly equivalent to the target dominant node, and can directly send a strong consistent storage request to other storage nodes to complete the strong consistent storage submission of the target data object; if the dominant node conversion is currently required, the storage node can determine the candidate dominant node and transfer the target data object to the candidate dominant node, and then complete the strong consistent storage submission of the target data object through the interaction between the candidate dominant node and other storage nodes.

[0117] A data strong consistency storage method provided in the second embodiment of the present invention can regard each data object as a minimum unit, so that the storage node independently uses the Paxos algorithm to perform strong consistency storage for each data object, thereby ensuring that there is no dependency between the data objects. This embodiment dynamically determines the target dominant node of the target data object through interaction with other storage nodes based on the dominant node mapping table stored on the storage node, and completes the strong consistency storage submission of the target data object on this basis, so that the strong consistency storage system provided by this embodiment can achieve performance optimization of strong consistency storage of data objects according to the data characteristics, system load and user access behavior of each data object. This method effectively improves the applicability of the strong consistency storage system while reducing the cost investment of strong consistency storage; in addition, it also improves the user experience of the system by the business parties in the business scenario.

[0118] To facilitate a better understanding of the strong consistency storage processing of data objects by storage nodes in the strong consistency storage system provided in the above-mentioned embodiment 1, this embodiment 2 further describes the implementation process of strong consistency storage of data objects through the following examples.

[0119] First, this example assumes that the strongly consistent storage system includes three storage nodes, which can be in node clusters corresponding to different regions, and each storage node contains an updated dominant node mapping table. For ease of understanding, this embodiment records the three storage nodes as node 1, node 2, and node 3, and node 1 first receives a write request generated by a user terminal for a certain service, and the write request contains the target data object to be stored in a strongly consistent manner corresponding to the service.

[0120] After receiving the write request, node 1 can perform the following operations:

[0121] S1. Analyze the received write request and determine the target data object included in the write request.

[0122] S2. Search the stored dominant node mapping table to see whether the target dominant node of the target data object is included.

[0123] S3. If it does not exist, the initiating node initiates a dominant node election request to other storage nodes to determine the target dominant node through interaction with other storage nodes.

[0124] S4. If it exists, when the target dominant node is the current node 1, determine whether the target data object meets the set dominant node transfer condition in combination with the historical access data recorded for the target data object, and execute S5; otherwise, execute S7.

[0125] S5. If satisfied, determine a candidate dominant node and transfer the target data object to the candidate dominant node.

[0126] S6. If not satisfied, a strongly consistent storage commit request is initiated to other storage nodes to complete the strongly consistent storage commit of the target data object.

[0127] S7. Forward the write request to the storage node that is the target dominant node.

[0128] For the node, assuming that node 2 is a candidate dominant node and receives the target data object sent by node 1, node 2 can perform the following operations:

[0129] S8. Initiate a request for the election of a dominant node corresponding to the target data object to other storage nodes, and also record this node as the initiating node.

[0130] For node 3, assuming that node 3 receives the write request forwarded by node 1, node 3 is theoretically equivalent to the new node 1 and can re-execute the above operations corresponding to node 1.

[0131] For node 3, assuming that node 3 receives a leading node election request initiated by an initiating node (possibly node 1 or node 2), node 3 can perform the following operations:

[0132] S9. Analyze the received dominant node election request, determine the initiating node (node ​​1 or node 2) to apply to be the target dominant node of the target data object, and obtain the current data number corresponding to the target data object.

[0133] S10. Search the dominant node corresponding to the target data object from the locally stored dominant node mapping table, and record it as the original dominant node.

[0134] S11. Compare the initiating node and the original dominant node. If they are the same storage node, send an election response result to the initiating node (node ​​1 or node 2) to accept the initiating node as the target dominant node for the target data object.

[0135] S12. If the two are not the same storage node, obtain the historical data number pre-stored locally corresponding to the target data object. When the historical data number is smaller than the current data number, execute S13; when the historical data number is not smaller than the current data number, execute S14.

[0136] S13. After the conditions for sending a response message are met, the current data number is used as a new historical data number and the initiating node is used as a new original dominant node, and an election response result is sent to the initiating node to accept the initiating node as the target dominant node of the target data object.

[0137] S14. Sending to the initiating node an election response result rejecting the initiating node as the target dominant node of the target data object.

[0138] For node 1 or node 2 as the initiating node, after receiving the election response result, the initiating node can perform the following operations:

[0139] S15. Receive the election response results fed back by other storage nodes in response to the sent dominant node election request.

[0140] It should be noted that, in this example, the other storage node specifically refers to node 3, but in actual applications, the other storage nodes may be all storage nodes that receive the dominant node election request.

[0141] S16. Count the number of nodes whose election response results allow the current node to be the target dominant node of the target data object.

[0142] S17. When the number of nodes is greater than or equal to a set threshold, the initiating node is determined to be the target dominant node of the target data object, and the stored dominant node mapping table is updated to record the target data object and the currently newly associated dominant node.

[0143] S18. Initiate a strongly consistent storage commit request to other storage nodes to complete the strongly consistent storage commit of the target data object.

[0144] S19. When the number of nodes is less than a set threshold, the current dominant node carried in the target election response result is used as the target dominant node corresponding to the target data object in the locally stored dominant node mapping table.

[0145] The target election response result is selected from the election response results of the target dominant node whose sent content is to reject the initiating node as the target data object. In this example, the target election response result is the election response result fed back by node 3.

[0146] S20. Update the historical data number corresponding to the target data object, and forward the write request containing the target data object to the storage node serving as the target dominant node.

[0147] It can be understood that the storage node (assuming it is node 2) that receives the write request forwarded by S20 is also equivalent to the new node 1 in theory, and the above operations corresponding to node 1 can be re-executed.

[0148] It should be noted that the step numbers marked in the above examples do not represent the execution order of the steps, but only represent the sequence number of a step. Through the above examples, it can be seen that when a strongly consistent storage system implements strongly consistent storage of a data object contained in a write request, it mainly depends on the determination of the dominant node associated with the data object. After determining the dominant node, the dominant node can then directly send a strongly consistent storage commit request to other storage nodes to complete the strongly consistent storage commit of the data object. As for the determination of the dominant node associated with the data object, it can be determined specifically based on the dominant node mapping table stored on the storage node, and the final situations may be: 1) the storage node that receives the write request is the dominant node of the data object; 2) the storage node that receives the write request directly forwards the write request to the dominant node corresponding to the data object record in the dominant node mapping table; 3) the storage node that receives the write request initiates a dominant node election request to other nodes to become the dominant node of the data object, and acts as the dominant node of the data object after the request is allowed, and uses the storage node recommended by other storage nodes as the dominant node if not allowed; 4) the storage node that receives the write request transfers the data object to the candidate dominant node when the dominant node transfer conditions are met, and the candidate dominant node requests other storage nodes to act as the dominant node, and acts as the dominant node of the data object after the request is allowed, and uses the storage node recommended by other storage nodes as the dominant node if not allowed.

[0149] At the same time, it can be known that when the storage node confirms the dominant node associated with the data object, the dominant node mapping table stored on it is also updated accordingly. Therefore, the strong consistency system can form a relatively stable mapping relationship after a certain period of time by continuously iterating the dominant node associated with the data object when performing strong consistency storage processing through the storage node, thereby achieving the optimal time for strong consistency storage processing. In addition, the strong consistency storage system can also deploy storage nodes in advance based on the dominant node mapping table of the storage node, so that the write request generated by the client can be quickly received by the storage node that serves as the dominant node of the data object.

[0150] Embodiment 3

[0151] Figure 3 A hardware structure diagram of a server provided in Embodiment 3 of the present invention is given. Specifically, the server is used as a storage node in the strongly consistent storage system provided in Embodiment 1 above. Specifically, it may include: a processor and a storage device. At least one instruction is stored in the storage device, and the instruction is executed by the processor, so that the server can execute the operation steps corresponding to each storage node in the data strongly consistent storage method provided in Embodiment 2 above.

[0152] Reference Figure 3The server may specifically include: a processor 30, a storage device 31, a display screen 32, an input device 33, an output device 34, and a communication device 35. The number of processors 30 in the server may be one or more. Figure 3 In the example, a processor 30 is used. The number of storage devices 31 in the server can be one or more. Figure 3 A storage device 31 is taken as an example. The processor 30, storage device 31, display screen 32, input device 33, output device 34 and communication device 35 of the server can be connected through a bus or other means. Figure 3 The example of connecting through bus is taken in the following.

[0153] Specifically, in the embodiment, when the processor 30 executes one or more programs stored in the storage device 31, it specifically performs the following, such as: for each storage node that receives a write request, analyze the received write request to determine the target data object contained in the write request; according to the locally stored dominant node mapping table, through interaction with other storage nodes, complete the strongly consistent storage submission of the target data object.

[0154] The embodiment of the present invention also provides a storage medium containing computer executable instructions, which are used to perform the embodiments of the present invention when executed by a computer processor. Exemplarily, the above embodiment includes: for each storage node that receives a write request, analyzing the received write request to determine the target data object contained in the write request; and completing the strong consistent storage submission of the target data object through interaction with other storage nodes according to the dominant node mapping table stored locally.

[0155] It should be noted that, for the server and storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0156] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A strongly consistent storage system, characterized in that: include: Node clusters divided by region, each node cluster includes at least one storage node; A dominant node mapping table is stored on each of the storage nodes, and the dominant node mapping table is used to record data objects and mapped dominant nodes, wherein the dominant node is any storage node under any node cluster; The storage node is used to analyze the received write request, determine the target data object included in the write request, and complete the strong consistent storage submission of the target data object through interaction with other storage nodes according to the stored dominant node mapping table; The storage nodes specifically include: An object determination module, configured to analyze a received write request and determine a target data object included in the write request; A first determination module is used to determine whether there is a target dominant node of the target data object in the stored dominant node mapping table; A first execution module is used for initiating, as an initiating node, a dominant node election request corresponding to the target data object to other storage nodes when there is no target dominant node, so as to determine the target dominant node through interaction with other storage nodes, and complete a strongly consistent storage submission of the target data object based on the determined target dominant node; The second execution module is used to determine whether the target dominant node is the current node when there is a target dominant node, and complete the strong consistent storage submission of the target data object through interaction with other storage nodes according to the determination result.

2. The system according to claim 1, characterized in that The second execution module is specifically used for: When the existing target dominant node is the current node, determine whether the target data object meets the set dominant node transfer condition in combination with the historical access data corresponding to the target data object; If satisfied, determine a candidate dominant node and transfer the target data object to the candidate dominant node, so as to determine a target dominant node of the target data object based on the candidate dominant node, and complete a strongly consistent storage commit of the target data object based on the determined target dominant node; If not satisfied, a strongly consistent storage commit request is initiated to other storage nodes to complete the strongly consistent storage commit of the target data object.

3. The system according to claim 2, characterized in that The historical access data corresponding to the target data object includes the initiation region information of the write request associated with the target data object; The transfer condition of the dominant node is: the write requests containing the target data object received for a set number of consecutive times are all generated from the same initiating region, and the region to which this node belongs is different from the initiating region.

4. The system according to claim 3, characterized in that The candidate dominant node is any storage node selected from a node cluster corresponding to a specified region, wherein the specified region is an initiating region corresponding to a write request associated with the target data object.

5. The system according to claim 2, characterized in that The storage node as the candidate leading node is specifically used for: Initiate a request for the election of a leading node corresponding to the target data object to other storage nodes, and record them as initiating nodes; After determining that it is allowed to be the target dominant node based on the election response results fed back by other storage nodes, it initiates a strongly consistent storage commit request to other storage nodes to complete the strongly consistent storage commit of the target data object.

6. The system according to claim 1, characterized in that The second execution module is further specifically used for: When the existing target dominant node is not the current node, the write request is forwarded to the storage node serving as the target dominant node, so that the storage node serving as the target dominant node completes the strongly consistent storage submission of the target data object according to the received write request.

7. The system according to any one of claims 1 to 6, characterized in that: The storage node that receives the leading node election request specifically includes: An information search module, used to receive a dominant node election request sent by a storage node as an initiating node, and search for an original dominant node corresponding to the target data object from a locally stored dominant node mapping table; The election response module is used to compare the original dominant node with the initiating node, and send an election response result corresponding to the dominant node election request to the initiating node according to the comparison result.

8. The system according to claim 7, characterized in that The election response module is specifically used for: When the original dominant node and the initiating node are the same storage node, an election response result of accepting the initiating node as the target dominant node of the target data object is sent to the initiating node.

9. The system according to claim 7, characterized in that The election response module is also specifically used for: When the original dominant node and the initiating node are different storage nodes, obtaining the historical data number pre-stored locally corresponding to the target data object, and obtaining the current data number corresponding to the target data object from the dominant node election request; If the current data number is greater than the historical data number, then after the response message sending condition is met, the current data number is used as the new historical data number and the initiating node is used as the new original dominant node, and an election response result is sent to the initiating node to accept the initiating node as the target dominant node of the target data object; otherwise, An election response result is sent to the initiating node, rejecting the initiating node as a target dominant node for the target data object.

10. The system according to claim 7, characterized in that As the storage node of the initiating node, it is specifically used for: Receive election response results from other storage nodes in response to the sent leader node election request; Counting the number of nodes whose election response results allow the node to be the target dominant node of the target data object; When the number of nodes is greater than or equal to the set threshold, the node is determined to be the target dominant node of the target data object, the stored dominant node mapping table is updated, and a strongly consistent storage commit request is initiated to other storage nodes to complete the strongly consistent storage commit of the target data object.

11. The system according to claim 10, characterized in that The storage node as the initiating node is also used for: When the number of nodes is less than a set threshold, the current dominant node carried in the target election response result is used as the target dominant node corresponding to the target data object in the locally stored dominant node mapping table, wherein the target election response result is selected from the election response results whose sent content is to reject the initiating node as the target dominant node of the target data object; The write request is forwarded to the storage node serving as the target dominant node, so that the storage node serving as the target dominant node completes a strongly consistent storage commit of the target data object according to the received write request.

12. A method for storing data with strong consistency, characterized in that: The method is performed by the strongly consistent storage system according to any one of claims 1 to 11, comprising: For each storage node that receives a write request, analyzing the received write request to determine a target data object included in the write request; According to the dominant node mapping table stored locally, strong consistent storage submission of the target data object is completed through interaction with other storage nodes.

13. A server, characterized in that: The server is used as a storage node in the strongly consistent storage system according to any one of claims 1 to 11, comprising: one or more processors; A storage device for storing one or more programs; The one or more programs are executed by the one or more processors, so that the one or more processors implement the data strong consistency storage method as claimed in claim 12.

14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the data strong consistency storage method as described in claim 12 is implemented.