Configuring auto-scaling

Table of ContentsEnabling auto-scaling Overflow CreditsYou can now enable auto-scaling on your stack, giving you full control over how many overflows are provisioned at any time, how many are provisioned within a single month and how long they should be provisioned for. Auto-scaling is disabled by default, but a feature you can turn on very … Continue reading

Implementing CDN

Table of ContentsTransferring DNS Enable CDN Configuring your applicationSonassi provide a high performance CDN as standard with MageStack that you can take advantage of, with no additional cost. There's a few prerequisites to get set up where this article will walk you through the process. Transferring DNS For the Sonassi CDN to function, we need … Continue reading

Implementing Elasticsearch

Table of ContentsDefault configuration settingsThere is native support for Elasticsearch on MageStack. Default configuration settings The configuration settings for Magento are as follows Host: search1.i Port: 9200

Implementing Varnish on Magento 2

Table of ContentsStore Configuration Nginx Configuration Dynamic Content Semi-Static Content Static ContentMagento 2 comes with native Varnish support, so it is not necessary to install any supporting dependencies like on Magento 1. You just need to add the respective configuration to the Nginx configuration files. There are three parts to enabling Varnish on a Magento … Continue reading

Implementing Redis on Magento 2

Table of ContentsCache and full page cache storage Session storageMagento 2 comes with native Redis support, so it is not necessary to install any supporting dependencies like on Magento 1. You just need to add the respective configuration to the Magento ./app/etc/env.php Cache and full page cache storage There's three elements to add for Redis; … Continue reading

Purging Varnish

Table of ContentsPurging Single Domain All domains Sample PHP scriptVarnish as a rule will maintain its own cache contents, updating the entries as necessary. As with any cache, it isn't recommended to manually clear the cache - as it will reduce its effectiveness. However, if you need to instantly clear the cache, it can be … Continue reading

Optimal Varnish Configuration

Table of ContentsDynamic Content Static Content Semi-Static ContentWe know there can be some confusion in the most optimal settings for a store running Varnish, below you'll find configurations (continually updated) to reflect the most optimal configuration. Dynamic Content In ___general/, be sure to replace, lb1.i # Enable If-Modified-Since set $magestack_last_modified true; # Enable Varnish … Continue reading

Image Optimiser

Table of ContentsExamples Running a lossless optimise on a single directory Running a lossy optimise on a single directory Running optimise on multiple directories Running optimise via cronThere is a native tool in MageStack to losslessly optimise images. This means images use less disk space and are served to the customer faster - without losing … Continue reading

Optimal Static Content Subdomain Configuration

Table of ContentsConfigure DNS Records Create Subdomains/Vhosts Change Magento URLs Secure the vhost Strip Cookies From FilesUsing subdomains for serving static content on your store will improve both performance and cacheability of static assets. Making this change is very straightforward and can be completed in a few minutes. In this example, we'll assume the domain … Continue reading

Implementing CloudFlare/Incapsula

Table of ContentsCaveat emptorCloudFlare and Incapsula are a popular utilities for providing website secrecy, content delivery and DOS (denial of service) mitigation. MageStack natively supports these services, no server-side configuration is required to facilitate correct pass through of IP addresses. The server $_SERVER['REMOTE_ADDR'] is correctly maintained throughout all layers in MageStack (read more about server … Continue reading