[Gluster-users] Distributed-Replicated with mismatch number of bricks

Jose V. Carrión jocarbur at gmail.com
Wed Sep 12 11:11:30 UTC 2018


Hi,

I would like to implement  a distributed-replicated architecture but some
of my nodes have different number of bricks. My idea is to do a replica 2
through 6 nodes (all bricks with the same size).

My gluster architecture is:

Name node  |  Brick 1 | Brick 2

------------------------------------------

Node1          |      R1     |             |

Node2          |      R1     |             |

Node3          |      R2     |     R3    |

Node4          |      R2     |     R3    |

Node5          |      R4      |     R5   |

Node6          |      R4      |     R5   |

My questions are:

1.  Would be this correct ?

gluster volume create vol0 replica 2 transport tcp \
    node1:/data/gluster/vol0/brick1 node2:/data/gluster/vol0/brick1 \
    node3:/data/gluster/vol0/brick1 node4:/data/gluster/vol0/brick1 \
    node3:/data/gluster/vol0/brick2 node4:/data/gluster/vol0/brick2 \
    node5:/data/gluster/vol0/brick1 node6:/data/gluster/vol0/brick1 \
    node5:/data/gluster/vol0/brick2 node6:/data/gluster/vol0/brick2 \

2 If I need to add a new node in the future, I will be able to extend my
distributed replication system ? Something like:

Name node  |  Brick 1 | Brick 2

------------------------------------------

Node1          |      R1     |             |

Node2          |      R2      |            |

Node3          |      R3      |     R4   |

Node4          |      R3      |     R4   |

Node5          |      R5      |     R6   |

Node6          |      R5      |     R6   |

Node7          |      R1      |     R2   |


gluster volume create vol0 replica 2 transport tcp \
    node1:/data/gluster/vol0/brick1 node7:/data/gluster/vol0/brick1 \
    node2:/data/gluster/vol0/brick1 node7:/data/gluster/vol0/brick2 \
    node3:/data/gluster/vol0/brick1 node4:/data/gluster/vol0/brick1 \
    node3:/data/gluster/vol0/brick2 node4:/data/gluster/vol0/brick2 \
    node5:/data/gluster/vol0/brick1 node6:/data/gluster/vol0/brick1 \
    node5:/data/gluster/vol0/brick2 node6:/data/gluster/vol0/brick2 \

3. My nodes will also mount volumes (gluster clients) so in order to
optimize the read performance operations,  what is the best replication
system:  distributed-replicated or only replicated.


Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20180912/c67dc63b/attachment.html>


More information about the Gluster-users mailing list