aMiSTACX AWS EC2 Speed Optimization Tips

Our stacks are designed for simplicity and speed, and we have continually improved on both since our launch in June 2017.

Almost all of our new stacks have a few items worth noting, and we wish to share a few tips should you be tweaking the most out of your page speed and quality scores.

For simple deployments we recommend making use of CloudFlare as your CDN/DNS provider. Coupled with our stacks you can achieve grade A performance on just about any speed and quality test.

Items to note while testing:

vhost object caching

  • If your aMiSTACX Apache stack comes with vhost object caching pre-configured, make sure the Apache headers module is enabled! This can provide a big boost in score and increase your loading speed. To check simply from CLI:

sudo a2enmod headers

If prompted to restart Apache, then that means vhost object caching was off and now enabled. Restart Apache to take effect.

sudo service apache2 restart

 

Google PageSpeed

  • If your stack includes the Google Apache PageSpeed Module [Enabled by default for WordPress, and Disabled by default for Magento] then you have an opportunity to tweak the configuration to achieve even higher scores.You’ll have to refer to the pagespeed module documentation for advanced configurations as they are beyond the scope of this article. Magento requires the PS module to be enabled. Please make sure you do proper A/B testing with PS enabled/disabled, and be mindful of potential Redis conflicts. To enable PS on Magento:

sudo a2enmod pagespeed

sudo service apache2 restart

Then modify the apache pagespeed.conf file to turn PS on.

cd /etc/apache2/mods-available

sudo nano pagespeed.conf

Around line 4 set to on: ModPagespeed on

sudo service apache2 restart

 

CloudFlare Configs

  • If you decided to use CloudFlare for your CDN, then a little note worth trying A/B testing with is with CloudFlare’s Rocket Loader. In some cases it will improve your quality scores [good], but also increase the page loading times [not good], and in others instances it will decrease your quality scores [not good], but keeps page loading times about the same [not good]. So with a simple toggle of on/off you can A/B test Rocket Loader’s impact on your aMiSTACX stack, and make the call to keep it on or off based on your results.

Magento 2.2.x

  • Without a doubt, making use of our new S3Rocket module for Magento 2.2.x will help put a smile on your face when you see how fast your site loads. No more Magento piggy here.Make sure to bookmark this post as we plan to provide more speed and optimization tips here.

    Better – Stronger – Faster!

Leave a comment