Autoscalable Magento cluster for your e-commerce projects

Magento is one of the best e-commerce platforms on the market. The modular architecture and wide variety of integrated features, such as the catalogue management, marketing tools, analytics, SEO, reports, etc., make it easy to customize your e-commerce website.

One important aspect is guaranteed availability of the e-commerce site for large numbers of users at the same time; this is made possible by a system architecture that allows scalability.

The autoscalable Magento Cluster is easy to install in just one click.

Some of the benefits

Libertà di gestione infrastruttura

TOTAL FREEDOM FROM INFRASTRUCTURE MANAGEMENT

Libertà di gestione infrastruttura

SCALING STRATEGY BASED ON TRAFFIC

Libertà di gestione infrastruttura

AUTO-CONFIGURATION OF THE HTTPS PROTOCOL

Libertà di gestione infrastruttura

DIRECT ACCESS TO THE MAGENTO INSTANCE

Libertà di gestione infrastruttura

LATEST VERSION OF MAGENTO 2.3.X

Libertà di gestione infrastruttura

Git-Push-Deploy

Libertà di gestione infrastruttura

NGINX Amplify

Libertà di gestione infrastruttura

New Relic Agent

Some details about the features of each component of the cluster.

The configuration and sizing settings are set up automatically. The following Docker images are used to unify and simplify the provisioning of application components:

Varnish

Load balancing to distribute incoming traffic within a cluster and store all static content in the cache running as an HTTPS proxy

NGINX PHP

Application server to manage the Magento engine itself, automatically scaled according to the volume of incoming traffic

Storage

Node for storing and sharing static content between application server instances via NFS

Redis Session Storage

Storage node to save the user's session settings so that, if one application server node is not available, the second one can retrieve the requested data and carry on serving clients uninterrupted

Redis Cache

Node to store the Magento cache to optimize the application response times when processing other similar requests

MySQL DB Cluster

MySQL database server with asynchronous master-slave replication to guarantee high availability and data protection



Each container is configured with default vertical scaling limit up to 8 cloudlets (equal to 1GB of RAM and 3.2GHz of CPU) together with a set of alerts (to warn you when your resource consumption is approaching the limit).

 

INSTALLING THE MAGENTO CLUSTER

GO TO THE MARKETPLACE AND SELECT AUTOSCALABLE MAGENTO CLUSTER

Open the Marketplace frame, search for the Autoscalable Magento Cluster package and click on Install.

INSTALL AUTOSCALABLE MAGENTO CLUSTER

In the pop-up installation window, type in the Environment and optional Display Name and click on Install.

SIGN IN TO THE MAGENTO ADMIN PANEL

It only takes a few minutes to install the environment and set up the cluster and, once you're done, you will be shown a pop-up window with details of how to sign in directly to the Magento admin panel and the login details to access it via a web browser.

Magento Homepage

Click on Open in browser to view the Magento LUMA Homepage.

RANGE OF E-COMMERCE MANAGEMENT TOOLS

In the same pop-up window you can access the admin panel for the e-commerce system (Admin Panel URL). Here you can find a wide range of e-commerce management tools, grouped into separate tabs according to the options provided - e.g. marketing, sales, catalogue, customers, stores, etc. To get started, you can create a catalogue for your online store.

OPTIMIZING THE APPLICATION

After installation, you can use the Change Environment Topology feature to optimize the application according to your needs (scaling, high availability, etc.)

MAGENTO APPLICATION SERVER AUTOSCALING SETTINGS

The number of application servers in the Magento cluster is managed dynamically based on the load received through automatic vertical and horizontal scaling according to the conditions that have been configured:

  • +1 node if CPU usage is greater than 70% for at least 1 minute
  • -1 node if CPU usage is less than 20% for at least 10 minutes.

You can set or create new triggers, applying them to all stacks in your environment. To do this, click on Settings, then select Auto Horizontal Scaling.

For the Autoscalable Magento Cluster, changes are automatically applied to add/remove application server nodes.

Each new instance is automatically added to the load balancer configurations along with the node restart.
You can view and change the default alert settings in Settings > Monitoring > Load Alerts.

Normally for Magento e-commerce systems in production, the external IP address is used for the cluster entry point for a more secure connection.
It should be associated with a custom domain and registered in the DNS as an A record. This cluster solution can help you build an e-commerce system from scratch or move an existing Magento project into the scalable Cloud.