<div dir="ltr">Hello!<br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 24, 2017 at 3:02 PM, FERNANDO FREDIANI <span dir="ltr">&lt;<a target="_blank" href="mailto:fernando.frediani@upx.com">fernando.frediani@upx.com</a>&gt;</span> wrote:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
  
    
  
  <div bgcolor="#FFFFFF">Out of curiosity, why do you and people in general use more
      replica 3 than replica 2 ?
    </div></blockquote><div><br></div><div>The answer is simple - quorum. With just two participants you don&#39;t know what to do, when your peer is unreachable. When you have three participants, you are able to establish a majority. In that case, when two partiticipants are able to communicate, they now, that lesser part of cluster knows, that it should not accept any changes.<br></div><div> </div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div bgcolor="#FFFFFF"><p>If I understand correctly this seems overkill and waste of
      storage as 2 copies of data (replica 2)  seems pretty reasonable
      similar to RAID 1 and still in the worst case the data can be
      replicated after a fail. I see that replica 3 helps more on
      performance at the cost of space.</p><span class="gmail-HOEnZb"><font color="#888888"></font></span><br></div></blockquote></div>You are absolutely right. You need two copies of data to provide data redundancy and you need three (or more) members in cluster to provide distinguishable majority. Therefore we have arbiter volumes, thus solving that issue [1]. <br><br>[1] <a href="https://gluster.readthedocs.io/en/latest/Administrator%20Guide/arbiter-volumes-and-quorum/">https://gluster.readthedocs.io/en/latest/Administrator%20Guide/arbiter-volumes-and-quorum/</a><br></div></div>