<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi, <br>
    </p>
    <p>glusterFS is working fine for large files (in most of the cases
      it's used for VM image store), with docker you'll generate bunch
      of small size files and if you want to have a good performance may
      be look in [1] and [2].</p>
    <p>Also two node replica is a bit dangerous in case of high load
      with small files there is a good risk of split brain situation,
      therefore think about arbiter functionality of gluster [3], I
      think if you'll apply recommendations from [1] and [2] and deploy
      arbiter volume.</p>
    <p>Cheers</p>
    <p>Erekle<br>
    </p>
    <p><br>
    </p>
    <p>[1]
<a class="moz-txt-link-freetext" href="http://blog.gluster.org/2016/10/gluster-tiering-and-small-file-performance/">http://blog.gluster.org/2016/10/gluster-tiering-and-small-file-performance/</a></p>
    <p>[2]
<a class="moz-txt-link-freetext" href="https://access.redhat.com/documentation/en-US/Red_Hat_Storage/3/html/Administration_Guide/Small_File_Performance_Enhancements.html">https://access.redhat.com/documentation/en-US/Red_Hat_Storage/3/html/Administration_Guide/Small_File_Performance_Enhancements.html</a></p>
    <p>[3]
<a class="moz-txt-link-freetext" href="http://events.linuxfoundation.org/sites/events/files/slides/glusterfs-arbiter-VAULT-2016.pdf">http://events.linuxfoundation.org/sites/events/files/slides/glusterfs-arbiter-VAULT-2016.pdf</a><br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 29.06.2017 11:55, Raghavendra Talur
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAM5jxn8w77YfQ8i_5yDWot=5yM3B1o_i1GTyX+2uVrBHMmT9AA@mail.gmail.com">
      <div dir="auto">
        <div><br>
          <div class="gmail_extra"><br>
            <div class="gmail_quote">On 28-Jun-2017 5:49 PM, "mabi" &lt;<a
                href="mailto:mabi@protonmail.ch" moz-do-not-send="true">mabi@protonmail.ch</a>&gt;
              wrote:<br type="attribution">
              <blockquote class="quote" style="margin:0 0 0
                .8ex;border-left:1px #ccc solid;padding-left:1ex">
                <div>Anyone?<br>
                </div>
                <div class="elided-text">
                  <div
                    class="m_6396911218922792078protonmail_signature_block
m_6396911218922792078protonmail_signature_block-empty">
                    <div
                      class="m_6396911218922792078protonmail_signature_block-user
m_6396911218922792078protonmail_signature_block-empty">
                      <div><br>
                      </div>
                    </div>
                    <div
                      class="m_6396911218922792078protonmail_signature_block-proton
m_6396911218922792078protonmail_signature_block-empty"><br>
                    </div>
                  </div>
                  <div><br>
                  </div>
                  <blockquote
                    class="m_6396911218922792078protonmail_quote"
                    type="cite">
                    <div>-------- Original Message --------<br>
                    </div>
                    <div>Subject: Persistent storage for docker
                      containers from a Gluster volume<br>
                    </div>
                    <div>Local Time: June 25, 2017 6:38 PM<br>
                    </div>
                    <div>UTC Time: June 25, 2017 4:38 PM<br>
                    </div>
                    <div>From: <a href="mailto:mabi@protonmail.ch"
                        target="_blank" moz-do-not-send="true">mabi@protonmail.ch</a><br>
                    </div>
                    <div>To: Gluster Users &lt;<a
                        href="mailto:gluster-users@gluster.org"
                        target="_blank" moz-do-not-send="true">gluster-users@gluster.org</a>&gt;<br>
                    </div>
                    <div><br>
                    </div>
                    <div>Hello,<br>
                    </div>
                    <div>I have a two node replica 3.8 GlusterFS cluster
                      and am trying to find out the best way to use a
                      GlusterFS volume as persistent storage for docker
                      containers to store their data (e.g. web assets).<br>
                    </div>
                    <div>I was thinking that the simplest method would
                      be to mount my GlusterFS volume for that purpose
                      on all docker nodes using FUSE and then simply
                      start containers which require persistent storage
                      with a mount of bind type. For example here is how
                      I would create my container requiring persistent
                      storage:<br>
                    </div>
                    <div><br>
                    </div>
                    <div>docker service create --name testcontainer
                      --mount type=bind,source=/mnt/<wbr>gustervol/testcontainer,<wbr>target=/mnt
                      alpine<br>
                    </div>
                    <div
                      class="m_6396911218922792078protonmail_signature_block
m_6396911218922792078protonmail_signature_block-empty">
                      <div
                        class="m_6396911218922792078protonmail_signature_block-user
m_6396911218922792078protonmail_signature_block-empty">
                        <div><br>
                        </div>
                      </div>
                      <div
                        class="m_6396911218922792078protonmail_signature_block-proton
m_6396911218922792078protonmail_signature_block-empty"><br>
                      </div>
                    </div>
                    <div><br>
                    </div>
                    <div>What do you think about that? Is this a good
                      way? or is the even a better way?<br>
                    </div>
                  </blockquote>
                </div>
              </blockquote>
            </div>
          </div>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">If you are using kubernetes, then please have a
          look at </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto"><a
            href="https://github.com/gluster/gluster-kubernetes"
            moz-do-not-send="true">https://github.com/gluster/gluster-kubernetes</a><br>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">Otherwise, what you are suggesting works. </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">Raghavendra Talur </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">
          <div class="gmail_extra">
            <div class="gmail_quote">
              <blockquote class="quote" style="margin:0 0 0
                .8ex;border-left:1px #ccc solid;padding-left:1ex">
                <div class="elided-text"><br>
                  <blockquote
                    class="m_6396911218922792078protonmail_quote"
                    type="cite">
                    <div>
                      <div><br>
                      </div>
                      <div>Regards,<br>
                      </div>
                    </div>
                    <div>M.<br>
                    </div>
                  </blockquote>
                </div>
                <br>
                ______________________________<wbr>_________________<br>
                Gluster-users mailing list<br>
                <a href="mailto:Gluster-users@gluster.org"
                  moz-do-not-send="true">Gluster-users@gluster.org</a><br>
                <a
                  href="http://lists.gluster.org/mailman/listinfo/gluster-users"
                  rel="noreferrer" target="_blank"
                  moz-do-not-send="true">http://lists.gluster.org/<wbr>mailman/listinfo/gluster-users</a><br>
              </blockquote>
            </div>
            <br>
          </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="http://lists.gluster.org/mailman/listinfo/gluster-users">http://lists.gluster.org/mailman/listinfo/gluster-users</a></pre>
    </blockquote>
    <br>
  </body>
</html>