aMiSTACX S3Rocket Magento Configuration and Performance Tips
July 2018 – With the release of our new S3Rocket Module for AWS S3, horizontal scaling is now possible when used in conjunction with RDS, an AWS Loadbalancer, and with an AWS auto scale group.
The module is designed and should be administered only by admins and developers with extensive knowledge of both Magento and AWS! [We are not kidding.] Magento is quirky enough, but when combined with S3 and a CDN such as Cloudflare, you need to bring your A game.
S3Rocket Custom S3 Domain
Tip 1 – If you selected the option to configure a custom domain for your S3 name resolution, then here are some useful tips:Use a different domain then your root domain! And I do NOT mean a subdomain.
e.g. luma.awsamistacx.com [root] and s3r.awsamistacks.com [S3]
Note: This will help quality scores improve as you will not be serving S3 content from a domain that sets cookies.
Tip 2 – You need to have Cloudflare S3 CNAME set to CDN ON [Organge Cloud]. If you do not, then you will get mixed content warnings. Also make sure the S3 domain that Cloudflare is using has the Cloudflare SSL set to FULL.
Tip 3 – Very Important! Wait about 15-30 minutes for Cloudflare to kick in before you upload any Magento media content; otherwise, you will get certificate warnings. For example, say Magento sets a path to a media image that looks like this:
But when Cloudflare CDN has not fully propagated, you will get served a URL that looks like this:
Plus you will get a certificate warnings.
Paying attention to details and making sure you follow your aMiSTACX admin guide, and of course your own experience, will help make sure your deployment is successful.