I’m having a bit of an edge case so ill try to explain as much as can:
Currently using clustering so we can have multiple servers (lets call them server1 and server2)
Followed guide in https://docs.aegirproject.org/usage/servers/clustering/ and servers are working well, only issue is that we need to keep the drupal files directory in sync between server1 and server2.
Went to both servers and created a GlusterFS volume (can be NFS of anything else), deleted files directory and created a new one on the mount and symlinked to it in the site directory and everything is working fine now.

My issue is that I need to automate the last 2 parts (creating the directory on the mount and then symlink).
Is there anything we can hook into to achieve that? went in the code for a while but couldn’t find anything.

Any help is appreciated

Comments

josebc created an issue.

colan’s picture

You could probably clone the Web Pack module to see what it's doing, and then re-work it to do GlusterFS.

You could then publish it on drupal.org, and then add it to https://docs.aegirproject.org/extend/contrib/ and/or set the project Ecosystem to "Hostmaster (Aegir)" so it shows up at https://www.drupal.org/project/hostmaster/ecosystem. (This is new functionality so not everything's showing up there yet.)

Hosting Storage may also be useful.