<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr">On Wed 12 Sep, 2018, 4:42 PM Jose V. Carrión, <<a href="mailto:jocarbur@gmail.com">jocarbur@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><p>Hi,</p>
<p>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).<br>
</p>
<p>My gluster architecture is:<br>
</p>
<p>Name node | Brick 1 | Brick 2</p>
<p>------------------------------------------<br>
</p>
<p>Node1 | <font color="#ff0000">R1</font> | |<br>
</p>
<p>Node2 | <font color="#ff0000">R1</font> | |<br>
</p>
<p>Node3 | <font color="#33ff33">R2</font> | <font color="#ffcc00">R3</font> |</p>
<p>Node4 | <font color="#33ff33">R2</font> | <font color="#ffcc00">R3</font> |</p>
<p>Node5 | <font color="#3333ff">R4</font> | <font color="#ff99ff">R5</font> |</p>
<p>Node6 | <font color="#3333ff">R4</font> | <font color="#ff99ff">R5</font> |</p>
<p>My questions are: <br>
</p>
<p>1. Would be this correct ?<br>
</p>
<p></p>
<pre style="font-family:monospace,Courier;color:black;background-color:rgb(249,249,249);border:1px solid rgb(221,221,221);padding:1em;line-height:1.3em;font-size:14px;white-space:pre-wrap">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 \<br> node3:/data/gluster/vol0/brick2 node4:/data/gluster/vol0/brick2 \<br> node5:/data/gluster/vol0/brick1 node6:/data/gluster/vol0/brick1 \<br> node5:/data/gluster/vol0/brick2 node6:/data/gluster/vol0/brick2 \</pre></div></div></blockquote></div></div><div dir="auto">Looks correct.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><pre style="font-family:monospace,Courier;color:black;background-color:rgb(249,249,249);border:1px solid rgb(221,221,221);padding:1em;line-height:1.3em;font-size:14px;white-space:pre-wrap">
</pre><p>2 If I need to add a new node in the future, I will be able to extend my distributed replication system ? Something like:<br></p><p>Name node | Brick 1 | Brick 2</p>
<p>------------------------------------------<br>
</p>
<p>Node1 | <font color="#ff0000">R1</font> | |<br>
</p>
<p>Node2 | <font color="#999999">R2</font> | |<br>
</p>
<p>Node3 | <font color="#33ff33">R3</font> | <font color="#ffcc00">R4</font> |</p>
<p>Node4 | <font color="#33ff33">R3</font> | <font color="#ffcc00">R4</font> |</p>
<p>Node5 | <font color="#3333ff">R5</font> | <font color="#ff99ff">R6</font> |</p>
<p>Node6 | <font color="#3333ff">R5</font> | <font color="#ff99ff">R6</font> |</p>
<p>Node7 | <font color="#ff0000">R1</font> | <font color="#999999">R2</font> |</p><p><br></p><pre style="font-family:monospace,Courier;color:black;background-color:rgb(249,249,249);border:1px solid rgb(221,221,221);padding:1em;line-height:1.3em;font-size:14px;white-space:pre-wrap">gluster volume create vol0 replica 2 transport tcp \
node1:/data/gluster/vol0/brick1 node7:/data/gluster/vol0/brick1 \<br> node2:/data/gluster/vol0/brick1 node7:/data/gluster/vol0/brick2 \<br> node3:/data/gluster/vol0/brick1 node4:/data/gluster/vol0/brick1 \<br> node3:/data/gluster/vol0/brick2 node4:/data/gluster/vol0/brick2 \<br> node5:/data/gluster/vol0/brick1 node6:/data/gluster/vol0/brick1 \<br> node5:/data/gluster/vol0/brick2 node6:/data/gluster/vol0/brick2 \</pre><p></p></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">This should be add-brick to existing volume, and not another create volume </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><p>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.</p><p></p></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">In this case, if you have just 3 machines, for read perf, replica is better. If you have more nodes then to utilise all the storage you need distributed replicate.</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><p><br></p><p>Thanks in advance.</p></div></div>
_______________________________________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org" target="_blank" rel="noreferrer">Gluster-users@gluster.org</a><br>
<a href="https://lists.gluster.org/mailman/listinfo/gluster-users" rel="noreferrer noreferrer" target="_blank">https://lists.gluster.org/mailman/listinfo/gluster-users</a></blockquote></div></div></div>