<div>Thank you very much Erekle for your links, they are all relevant to me and very interesting as as you mention I will be mostly serving a lot of rather smaller files from my containers.<br></div><div><br></div><div>I will first consider upgrading my gluserfs from 3.8 to 3.10 to take advantage of the small file performance improvements which is afaik newly available in 3.10.<br></div><div><br></div><div>Best regards,<br></div><div>M.<br></div><div class="protonmail_signature_block protonmail_signature_block-empty"><div class="protonmail_signature_block-user protonmail_signature_block-empty"><div><br></div></div><div class="protonmail_signature_block-proton protonmail_signature_block-empty"><br></div></div><div><br></div><blockquote class="protonmail_quote" type="cite"><div>-------- Original Message --------<br></div><div>Subject: Re: [Gluster-users] Persistent storage for docker containers from a Gluster volume<br></div><div>Local Time: June 29, 2017 12:34 PM<br></div><div>UTC Time: June 29, 2017 10:34 AM<br></div><div>From: erekle.magradze@recogizer.de<br></div><div>To: mabi@protonmail.ch, gluster-users@gluster.org<br></div><div><br></div><div> <br></div><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].<br></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.<br></p><p>Cheers<br></p><p>Erekle<br></p><p><br></p><p>[1] <a href="http://blog.gluster.org/2016/10/gluster-tiering-and-small-file-performance/" class="moz-txt-link-freetext" rel="noreferrer nofollow noopener">http://blog.gluster.org/2016/10/gluster-tiering-and-small-file-performance/</a><br></p><p>[2] <a href="https://access.redhat.com/documentation/en-US/Red_Hat_Storage/3/html/Administration_Guide/Small_File_Performance_Enhancements.html" class="moz-txt-link-freetext" rel="noreferrer nofollow noopener">https://access.redhat.com/documentation/en-US/Red_Hat_Storage/3/html/Administration_Guide/Small_File_Performance_Enhancements.html</a><br></p><p>[3] <a href="http://events.linuxfoundation.org/sites/events/files/slides/glusterfs-arbiter-VAULT-2016.pdf" class="moz-txt-link-freetext" rel="noreferrer nofollow noopener">http://events.linuxfoundation.org/sites/events/files/slides/glusterfs-arbiter-VAULT-2016.pdf</a><br></p><div><br></div><div class="moz-cite-prefix">On 29.06.2017 11:55, Raghavendra Talur
wrote:<br></div><blockquote type="cite"><div dir="auto"><div><div><br></div><div class="gmail_extra"><div><br></div><div class="gmail_quote"><div>On 28-Jun-2017 5:49 PM, "mabi" <<a href="mailto:mabi@protonmail.ch" rel="noreferrer nofollow noopener">mabi@protonmail.ch</a>>
wrote:<br></div><div> <br></div><blockquote style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex" class="quote"><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 type="cite" class="m_6396911218922792078protonmail_quote"><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" rel="noreferrer nofollow noopener">mabi@protonmail.ch</a><br></div><div>To: Gluster Users <<a href="mailto:gluster-users@gluster.org" rel="noreferrer nofollow noopener">gluster-users@gluster.org</a>><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 <br></div><div dir="auto"><br></div><div dir="auto"><a href="https://github.com/gluster/gluster-kubernetes" rel="noreferrer nofollow noopener">https://github.com/gluster/gluster-kubernetes</a><br></div><div dir="auto"><br></div><div dir="auto">Otherwise, what you are suggesting works. <br></div><div dir="auto"><br></div><div dir="auto">Raghavendra Talur <br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex" class="quote"><div class="elided-text"><div><br></div><blockquote type="cite" class="m_6396911218922792078protonmail_quote"><div><div><br></div><div>Regards,<br></div></div><div>M.<br></div></blockquote></div><div><br></div><div>______________________________<wbr>_________________<br></div><div> Gluster-users mailing list<br></div><div> <a href="mailto:Gluster-users@gluster.org" rel="noreferrer nofollow noopener">Gluster-users@gluster.org</a><br></div><div> <a rel="noreferrer nofollow noopener" href="http://lists.gluster.org/mailman/listinfo/gluster-users">http://lists.gluster.org/<wbr>mailman/listinfo/gluster-users</a><br></div></blockquote></div><div><br></div></div></div></div><div><br></div><div><br></div><pre wrap="">_______________________________________________
Gluster-users mailing list
<a href="mailto:Gluster-users@gluster.org" class="moz-txt-link-abbreviated" rel="noreferrer nofollow noopener">Gluster-users@gluster.org</a>
<a href="http://lists.gluster.org/mailman/listinfo/gluster-users" class="moz-txt-link-freetext" rel="noreferrer nofollow noopener">http://lists.gluster.org/mailman/listinfo/gluster-users</a><br></pre></blockquote></blockquote><div><br></div>