[Gluster-users] web folder on glusterfs

lemonnierk at ulrar.net
Sat, 22 Apr 2017 10:57:37 -0000

Hi,

I can't talk about performances on newer versions, but as of gluster
3.7 / 3.8, performances for small files (like a website) are pretty bad.
It does work well though as long as you configure OPCache to keep
everything in memory (bump the cache size and disable stat).

As for storing a disk on gluster, it would work a lot better yes
but that's not doable for a website, as you need all of your webservers
to access the files at the same time. For that you'd have to use OCSF2
instead of ext4, and that defeats the purpose of using glusterfs in the
first place I think.

You could consider setting up your 3 servers as hypervisors (we are using
proxmox in that configurating) and use gluster as your shared storage,
then set up a VM on that cluster : that way you would have a highly
available web server. That works very well, but that might be overkill
for just one website.

I'd go with what you are thinking of, it's simple to setup and with
agressive OPCache settings it works fairly well ! You really don't
want to forget disabling stat though. You'll have to restart PHP-FPM
everytime you make a change to a php file, but it's worth it.
One last thing, use a redis / memcache / whatever to store your
application cache, I don't know joomla but if it's anything like
prestashop / magento / wordpress, storing the cache on glusterfs will
kill performances even more than forgetting to disable stat in OPCache.

On Tue, Apr 11, 2017 at 11:00:01PM +0800, Umarzuki Mochlis
wrote:
> Hi,
>
> I'm planning to install glusterfs on 3 nodes of Joomla 3 with nginx
&
> php-fpm on buntu 16.04.
>
> /var/www will be used as storage volume on every node.
>
> Each node has a secondary network interface only used for mariadb
> cluster and glusterfs. 1G interface and 1G switch.
>
> Any pros/cons of this kind of setup?
>
> Would it be better to have a LUN shared among all nodes?
>
> I was told that to reduce a very slow "ls" command on volume with
> clustered filsystem, it is better that I created a raw image with
> diskdump, format it as ext4 and mount it. Is this the proper way for
> web folders?
>
> Thanks for any input and suggestions.
> _______________________________________________
> Gluster-users mailing list
> Gluster-users at gluster.org
> http://lists.gluster.org/mailman/listinfo/gluster-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL:
<http://lists.gluster.org/pipermail/gluster-users/attachments/20170422/870b8855/attachment.sig>