<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hi Carlo,<br>
      <br>
      Very good question: IMO it's a matter of compromise between having
      lots of small files to heal and how long it takes to heal each one
      shard.<br>
      <br>
      With small shards, it increases probability to have to self-heal
      more files in a failure, also it means latency in metadata of each
      file could be significant versus time to transfer rsync deltas.<br>
      <br>
      With big shards, time to rsync could be very long.<br>
      <br>
      You need to find a size something enough big for avoid latency
      affects significantly to self-heal process and so small to avoid
      rsync delta take too much time....<br>
      <br>
      We found 256MB shard size for distributed-replicated (replica 2 o
      3) volumes is good enough and also we recommend to use 512MB shard
      size for volumes distributed-dispersed 3 redundancy 1. For volumes
      distributed-dispersed 6 redundancy 2 we use 1024MB as shard size.<br>
      <br>
      Hope this helps!<br>
      <br>
      El 07/09/19 a les 15:04, Cristian Del Carlo ha escrit:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAF4d_RSoZtihifHNO2kNjLATs6e+1e6x-GAJ0gRdxRxaZsh6kg@mail.gmail.com">
      <div dir="ltr">
        <div>Thank you Ramon for your answer.</div>
        <div><br>
        </div>
        <div>The only thing I can't understand is why to use such a big
          shard?</div>
        <div>The default is 64MB. I thought maybe to decrease it, I
          wanted to do some tests on it.</div>
        <div><br>
        </div>
        <div>Best regards,<br>
        </div>
        <div><br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">Il giorno ven 6 set 2019 alle
          ore 23:09 Ramon Selga &lt;<a
            href="mailto:ramon.selga@gmail.com" moz-do-not-send="true">ramon.selga@gmail.com</a>&gt;
          ha scritto:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div bgcolor="#FFFFFF">
            <div class="gmail-m_-5423031927693632057moz-cite-prefix">Hi
              Cristian,<br>
              <br>
              Both approaches are correct but they have different usable
              capacity and tolerance to node failures.<br>
              <br>
              First one is a full replica 3 meaning you get your total
              node capacity divided by 3, because replica 3, and it
              tolerates a simultaneous of two nodes and very good for
              split-brain avoidance.<br>
              <br>
              Second one is a replica 2 with arbiter, also very good for
              split-brain avoidance (that's purpose of arbiter bricks).
              In this case you get your total capacity divided by two
              except a little space going to arbiter-bricks, may be less
              than 1% of normal storage bricks. It tolerates one node
              failure at the same time.<br>
              <br>
              For VM usage remember to enable sharding with a shard size
              of 256MB at least before use volume.<br>
              <br>
              If efficiency between total and usable capacity is a
              concern for you and you think you could tolerate only one
              node failure at the same time, may I suggest you to use a
              distributed dispersed 3 redundancy 1 volume?. You will get
              your total capacity divided by 3 times 2 (that's 2/3 of
              total capacity) and this config still tolerates one node
              failure at the same time.<br>
              <br>
              Hope this helps.<br>
              <p><font style="font-size:11pt" color="#666666" size="2"
                  face="Futura Bk BT"><b>Ramon Selga</b></font> <br>
                <img src="cid:part2.35A6553D.121EBE02@gmail.com"
                  name="m_-5423031927693632057_Imatge1" class=""
                  width="101" border="0" align="left" height="4"> <br>
                <font style="font-size:8pt" color="#666666" size="2"
                  face="Futura Bk BT"> 934 76 69 10<br>
                  670 25 37 05<br>
                </font></p>
              <p> <a href="http://www.datalab.es/" target="_blank"
                  moz-do-not-send="true"> <img
                    src="cid:part3.BF87220D.6A7B3A72@gmail.com"
                    name="m_-5423031927693632057_DataLab sl"
                    alt="DataLab SL" class="" width="100" border="0"
                    align="left" height="22"> </a> </p>
              <br>
              <p> <font style="font-size:8pt" align="left"
                  color="#666666" size="2" face="Futura Bk BT"> <a
                    href="http://www.datalab.es/cont_cas/legal.html"
                    target="_blank" moz-do-not-send="true"> Aviso Legal</a></font></p>
              <br>
              <br>
              <br>
              El 06/09/19 a les 17:11, Cristian Del Carlo ha escrit:<br>
            </div>
            <blockquote type="cite">
              <div dir="ltr">Hi,<br>
                <br>
                I have an environment consisting of 4 nodes ( with large
                disks).<br>
                I have to create a volume to contain image of virtual
                machines.<br>
                <br>
                In documentation i read:<br>
                <i>Hosting virtual machine images requires the
                  consistency of three-way replication, <br>
                  which is provided by three-way replicated volumes,
                  three-way distributed replicated volumes, <br>
                  arbitrated replicated volumes, and distributed
                  arbitrated replicated volumes. </i><br>
                <br>
                So I'm going to confusion to configure this volume.<br>
                I have 4 nodes and I don't want to lose space by
                dedicating one to the function of arbiter.<br>
                <br>
                Would it be reasonable to configure the volume as in
                these two examples?
                <div><br>
                </div>
                <div># gluster volume create test1 replica 3 \<br>
                  server1:/bricks/brick1 server2:/bricks/brick1
                  server3:/bricks/brick1 \<br>
                  server2:/bricks/brick2 server3:/bricks/brick2
                  server4:/bricks/brick2 \<br>
                  server3:/bricks/brick3 server4:/bricks/brick3
                  server1:/bricks/brick3 \<br>
                  server4:/bricks/brick4 server1:/bricks/brick4
                  server2:/bricks/brick4 <br>
                </div>
                <div><br>
                </div>
                <div># gluster volume create test1 replica 3 arbiter 1 \<br>
                  server1:/bricks/brick1 server2:/bricks/brick1
                  server3:/bricks/arbiter_brick1 \<br>
                  server2:/bricks/brick2 server3:/bricks/brick2
                  server4:/bricks/arbiter_brick2 \<br>
                  server3:/bricks/brick3 server4:/bricks/brick3
                  server1:/bricks/arbiter_brick3 \<br>
                  server4:/bricks/brick4 server1:/bricks/brick4
                  server2:/bricks/arbiter_brick4 </div>
                <div><br>
                </div>
                <div>Thanks,</div>
                <div><br>
                </div>
                <div>-- <br>
                  <div dir="ltr"
                    class="gmail-m_-5423031927693632057gmail_signature">
                    <div dir="ltr">
                      <div><span></span><span></span><br>
                      </div>
                      <div><font><b><font color="#990000"><i><br>
                              </i></font></b></font></div>
                      <div><font><b><font color="#990000"><i>Cristian
                                Del Carlo</i></font></b><br>
                        </font></div>
                      <br>
                    </div>
                  </div>
                </div>
              </div>
              <br>
              <fieldset
                class="gmail-m_-5423031927693632057mimeAttachmentHeader"></fieldset>
              <br>
              <pre>_______________________________________________
Gluster-users mailing list
<a class="gmail-m_-5423031927693632057moz-txt-link-abbreviated" href="mailto:Gluster-users@gluster.org" target="_blank" moz-do-not-send="true">Gluster-users@gluster.org</a>
<a class="gmail-m_-5423031927693632057moz-txt-link-freetext" href="https://lists.gluster.org/mailman/listinfo/gluster-users" target="_blank" moz-do-not-send="true">https://lists.gluster.org/mailman/listinfo/gluster-users</a></pre>
            </blockquote>
            <br>
          </div>
          _______________________________________________<br>
          Gluster-users mailing list<br>
          <a href="mailto:Gluster-users@gluster.org" target="_blank"
            moz-do-not-send="true">Gluster-users@gluster.org</a><br>
          <a
            href="https://lists.gluster.org/mailman/listinfo/gluster-users"
            rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.gluster.org/mailman/listinfo/gluster-users</a></blockquote>
      </div>
      <br clear="all">
      <br>
      -- <br>
      <div dir="ltr" class="gmail_signature">
        <div dir="ltr">
          <div><span></span><span></span><br>
          </div>
          <div><font><b><font color="#990000"><i><br>
                  </i></font></b></font></div>
          <div><font><b><font color="#990000"><i>Cristian Del Carlo</i></font></b><br>
            </font></div>
          <div><i><font>Target Solutions s.r.l.<br>
              </font></i></div>
          <div><i><font><br>
              </font></i></div>
          <div><font><span><b><font color="#ff0000">T</font></b><b> </b>+</span>39
              0583 1905621</font></div>
          <div><font><font color="#ff0000"><b>F</b></font> <a
                value="+3905831905675" moz-do-not-send="true">+39 0583
                1905675</a></font></div>
          <div>
          </div>
          <div><font><font color="#ff0000"><b>@</b></font> </font><font><a
                href="mailto:cristian.delcarlo@targetsolutions.it"
                target="_blank" moz-do-not-send="true">cristian.delcarlo@targetsolutions.it</a></font><br>
          </div>
          <div><br>
            <a href="http://www.targetsolutions.it/" target="_blank"
              moz-do-not-send="true"><font>http://www.targetsolutions.it</font></a><br>
            <font>P.IVA e C.Fiscale: 01815270465  Reg. Imp. di Lucca<br>
              Capitale Sociale:  €11.000,00 iv - REA n° 173227<br>
              <br>
            </font><font size="1">Il testo e gli eventuali documenti
              trasmessi contengono informazioni riservate al
              destinatario indicato. La seguente e-mail e' confidenziale
              e la sua riservatezza e' tutelata legalmente dal Decreto
              Legislativo 196 del 30/06/2003 (Codice di tutela della
              privacy). La lettura, copia o altro uso non autorizzato o
              qualsiasi altra azione derivante dalla conoscenza di
              queste informazioni sono rigorosamente vietate. Qualora
              abbiate ricevuto questo documento per errore siete
              cortesemente pregati di darne immediata comunicazione al
              mittente e di provvedere, immediatamente, alla sua
              distruzione.</font></div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Gluster-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a>
<a class="moz-txt-link-freetext" href="https://lists.gluster.org/mailman/listinfo/gluster-users">https://lists.gluster.org/mailman/listinfo/gluster-users</a></pre>
    </blockquote>
    <br>
  </body>
</html>