Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for clustered deployment #1069

Open
jdunmore opened this issue Dec 5, 2015 · 3 comments
Open

Support for clustered deployment #1069

jdunmore opened this issue Dec 5, 2015 · 3 comments
Assignees

Comments

@jdunmore
Copy link

jdunmore commented Dec 5, 2015

Hi,

We deploy our webservers in a multi node environment (we're using docker, but the notion of multiple transient web servers with transient file systems isn't a new one), therefore we have to make a special case for the deployment of phpmyfaq - i.e. it needs a persistent file storage server, that's shared across web nodes.

It would be great if you added support for asset storage in S3 buckets (regardless of our deployment setup, segregating assets from the code base is never a bad thing).

We use this for our solution, I'm sure you might find it helpful:
https://github.com/thephpleague/flysystem

(then you can support multiple backends).

Thanks,
James.

@thorsten thorsten self-assigned this Dec 5, 2015
@winks
Copy link
Collaborator

winks commented Dec 5, 2015

@jdunmore That's a great idea, but I've got a few questions for clarification:

a) As I suppose you're talking about css/js/images and not any code that's included server-side, in my opinion the assets of the phpMyFAQ default template (your mileage may vary) are pretty minimal, so it probably can't be the space - is it about serving static content AT ALL versus php code?

b) There's also attachments, these would probably have to be saved to and retrieved from S3 as well?

So from a highlevel view, assuming /assets is the only path that's used - being able to rewrite this on the fly to something else would already cover use case a) - or are we talking "read from s3, send inline as base64"? I'm not disagreeing with your suggestion - just pondering how the result would look from and end user's PoV.

@jdunmore
Copy link
Author

jdunmore commented Dec 5, 2015

From my point of view, it's all the attachments (should have said that) and user content - css/js/styling images can deal with as a redeployment of the code base, but "user" generated content is the issue here.

I haven't looked into the back end database of phpmyfaq, but if the reference to the attachements is a URI, then just pointing it to the s3 bucket URL should be a straight forward swap.

The advantage as well, is that it takes a lot of load off the webserver doing heavy lifting such as downloading PDFs, etc. Not to mention, it's then got backup by default.

Thanks.

@juca2
Copy link

juca2 commented Dec 7, 2015

+1 for this - it would be great to be able to deploy phpMyFAQ to AWS or similar right away instead of implementing this in your own fork

@thorsten thorsten added this to the 3.2 milestone Dec 23, 2022
@thorsten thorsten modified the milestones: 3.2, 3.3 Jan 15, 2023
@stale stale bot added the wontfix label Apr 15, 2023
@thorsten thorsten removed this from the 3.3 milestone Apr 16, 2023
@stale stale bot removed the wontfix label Apr 16, 2023
Repository owner deleted a comment from stale bot Apr 23, 2023
@stale stale bot added the wontfix label Jul 22, 2023
@thorsten thorsten added Bug and removed wontfix labels Jul 22, 2023
Repository owner deleted a comment from stale bot Jul 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants