MyBB Community Forums
Question about Architecture - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: Installation and Upgrades Support (https://community.mybb.com/forum-182.html)
+--- Thread: Question about Architecture (/thread-188867.html)

Pages: 1 2 3


RE: Question about Architecture - Misinformed - 2016-02-18

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.


RE: Question about Architecture - Misinformed - 2016-02-25

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.


RE: Question about Architecture - Euan T - 2016-02-25

Nice, that's good to know for sure!


RE: Question about Architecture - Misinformed - 2016-02-26

I'll keep a watch out on "GETS" when I go live and see how that averages.


RE: Question about Architecture - Misinformed - 2016-02-29

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?


RE: Question about Architecture - Euan T - 2016-02-29

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).


RE: Question about Architecture - Misinformed - 2016-02-29

(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.


RE: Question about Architecture - Misinformed - 2016-03-08

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


RE: Question about Architecture - Euan T - 2016-03-08

Yep, that would do it Wink


RE: Question about Architecture - Misinformed - 2016-03-08

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!