MyBB Community Forums

Full Version: Question about Architecture
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
s3fs worked like a charm. It is syncing avatars and attachments to an S3 bucket. The web/app servers are now completely stateless and can be autoscaled. I tested it as well by pulling each instance out of the load balancer to make sure it is working correctly and checked S3 for the images I uploaded. Both performed as expected.

I think I might actually go with yas3fs next as I like the way it caches to each instance and might even save on gets in the long run. Will report back if I can get this working better than my current set up.
So I got yas3fs working and it is awesome. Does everything I need it to and with great performance. Just letting others know it is another option.
Nice, that's good to know for sure!
I'll keep a watch out on "GETS" when I go live and see how that averages.
New issue with auto scaling MyBB. When I kill the webservers and provision a fresh group of servers, my installed theme does not show up correctly. I installed the theme while the servers were provisioned but turned around and added all the files to the parent image I deploy from and the theme is broken.

It is my understanding that the xml of the theme lives in the database. Is this incorrect?
Yes, it is but the stylesheets are cached to ./cache/themes/ which will have to be mirrored (or you'll need to save the styles again one at a time from within the ACP).
(2016-02-29, 07:41 PM)Euan T Wrote: [ -> ]Yes, it is but the stylesheets are cached to ./cache/themes/ which will have to be mirrored (or you'll need to save the styles again one at a time from within the ACP).

Ok, thanks.  I'll give that a go.

So I just added another line to my rc.local file and mounted another folder in S3 for the stylesheets.  It mounted with no issues.  Lets see how it will handle uploading new themes.
Hmmm....What am I missing. I can create a file in the extended file system and folder cache from the server but when I install a new theme, the style sheets are not showing up in the S3 bucket. Everything is the same for avatars and attachments and they work.

Anything I should know about how stylesheets are handled?

Disregard.  I am an idiot.  I needed the folder themes inside my cache folder which did not exist which is why I am getting the permissions error in the admin panel.   Dodgy
Yep, that would do it Wink
That was it. Everything is working correctly now. I can now upload themes to my distributed web servers and even after destroying them and provisioning again, all themes show back up correctly. Yay AutoScale!
Pages: 1 2 3