I’m not using Docker, but I am using Gluster for my HA WordPress setup. Works 
well, handles every failure scenario I’ve come up with pretty gracefully. 
(Maybe I’m not imaginative enough…) Ping me off-list if you have any questions 
about Gluster specifically – it was actually pretty easy to set up. Only issue 
is that the client eats a lot of CPU, but CPU is pretty cheap these days.

Depending on implementation details, S3 may not be able to do everything. You 
need to be able to update WordPress itself, and its plugins/themes, and those 
probably can’t be S3, since they’re code.

David Smith


From: tech-boun...@lists.lopsa.org [mailto:tech-boun...@lists.lopsa.org] On 
Behalf Of Matt Simmons
Sent: Friday, September 09, 2016 7:22 AM
To: Morgan Blackthorne <mor...@windsofstorm.net>
Cc: LOPSA Technical Discussions <t...@lopsa.org>
Subject: Re: [lopsa-tech] Docker swarm and filesystems

Have you considered using a Wordpress plugin to upload the files to an API, 
rather than a filesystem? If this were a swarm of machines in Amazon, for 
instance, the S3 plugin would make lots of sense. (It would still make sense if 
you were using Riak (or some other local S3-compliant object store)).

If nothing else, you could use NFS, but that's kind of icky for this solution. 
There's flocker (https://clusterhq.com/flocker/introduction/) but I've never 
used it and I don't know anything about it except that it claims to solve this 
problem.

Good luck and let us know what you use!


--Matt

On Friday, September 9, 2016, Morgan Blackthorne 
<mor...@windsofstorm.net<mailto:mor...@windsofstorm.net>> wrote:
Anyone out there working with Docker swarm where applications need to access a 
shared filesystem across the swarm? I know how to link containers together 
inside a host, but I don't think you can link to a container on a different 
host.

Specifically I'm looking at taking some forums and WordPress sites and moving 
them from single-host containers into Swarm services, without disrupting the 
ability to do file uploads for attachments, user avatars, etc.

I saw some references to running a Gluster swarm and using those as a 
container, but I haven't found much in the way of detail on that. Flocker looks 
interesting, but doesn't seem like it handles all the cases that I'm looking 
for. Or maybe I should just look at creating a replicated filesystem across the 
Docker host servers and then pointing the Swarm containers at subdirectories 
off of that shared filesystem. I'm sure it has to be a known issue, but with 
Swarm being so new, it's hard to find a lot of documentation around this 
scenario right now... or at least, trying to sift through the noise to find the 
signal.

Thanks!

--Morgan


--
"Today, vegetables... Tomorrow, the world!"
_______________________________________________
Tech mailing list
Tech@lists.lopsa.org
https://lists.lopsa.org/cgi-bin/mailman/listinfo/tech
This list provided by the League of Professional System Administrators
 http://lopsa.org/

Reply via email to