Method and device for changing copy group members in distribution mode, equipment and medium
A technology for replicating groups and members, applied in the computer field, can solve problems such as affecting data reliability, and achieve the effects of low overhead, guaranteed reliability, and fast data synchronization.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Publication Date
- 2020-06-12
Smart Images

Figure 1 
Figure 2 
Figure 3
Abstract
Description
technical field
[0001] The embodiments of the present application relate to computer technology, in particular to data storage technology, and in particular to a method, device, device and medium for changing members of a replication group in a distribution mode. Background technique
[0002] The data redundancy strategy is a mechanism for the distributed storage system to store target data redundantly in order to ensure data reliability. A reasonable redundancy strategy can ensure that data will not be lost due to a single node failure. At present, in the mainstream implementation of distributed storage systems, there are three main modes for data storage: pipeline mode, distribution mode and tree mode.
[0003] Under different data storage modes, the decline in the availability of some nodes in the replication group will lead to changes in the members of the replication group. Especially in the distribution mode, if the trade-off writing mechanism is adopted, slow nodes w...
Examples
Embodiment 1
[0073] figure 1 It is a schematic flowchart of a method for changing replication group members in the distribution mode provided by Embodiment 1 of the present application. This embodiment is applicable to the situation where the members of the replication group need to be changed when data is stored in the distribution mode, and it can be performed by the device for changing the members of the replication group in the distribution mode provided by the embodiment of the present application. The device can use software and / or or hardware implementation. Such as figure 1 As shown, the method may include:
[0074] S101. When writing distribution data to a replication group, if it is detected that a target member in a replication group member set corresponding to the replication group does not satisfy an availability condition, determine a new changed member.
[0075] Wherein, a replication group represents a multi-copy backup of a data block. For example, a data block A has do...
Embodiment 2
[0104] figure 2 It is a schematic flowchart of a method for changing replication group members in the distribution mode provided by Embodiment 2 of the present application. This embodiment provides a specific implementation manner for the above embodiments, such as figure 2 As shown, the method may include:
[0105] S201. When writing distribution data to the replication group, if it is detected that the target member in the replication group member set corresponding to the replication group does not meet the availability condition, determine a new member to change.
[0106] S202. Select a synchronization member from other members of the replication group member set, and construct a replication group member change request, the replication group member change request includes: replication group identity, replication group member version number, stock data version number , the writer's version number, and the identity of the synchronization member.
[0107] Among them, the ...
Embodiment 3
[0144] image 3 It is a schematic structural diagram of an apparatus 30 for changing members of a replication group in a distribution mode provided in Embodiment 3 of the present application, which can execute a method for changing members of a replication group in a distribution mode provided in any embodiment of the present application, and has the ability to execute The corresponding functional modules and beneficial effects of the method. Such as image 3 As shown, the device may include:
[0145] The change member determination module 31 is used to determine a new change member if it detects that the target member in the copy group member set corresponding to the copy group does not meet the availability condition when writing distribution data to the copy group;
[0146] An inventory data synchronization module 32, configured to select a synchronization member from other members of the replication group member set, and control the change member to synchronize the inven...