The Best and preferred Server Setup for Your Magento 2 Store

Achieving the best Magento 2 server setup is a great one in these recent developing times. We will not be able to accomplish these figures without the help of either Varnish or FPC(or both). It is not impossible without the help of certainly the most relevant tools.

Talk to expert for the best Magento eCommerce solution for your business!!!

Which is the Best Magento 2 server setup?

When you Wrongly configure Varnish.

A correct configured Installation of Varnish will deliver < 100ms page load times(it is closer to <10ms). You Must Expect the same for Magento

When a customer is not logged in

When a customer is not logged in when he has not created a unique session (add-to-cart / wishlist, logging in, etc)

Uncashed Mage default cache partial FPC cache Total FPC cache Varnish

When a Customer is logged in

When a customer is logged in when he created a unique session (logged in, items in a cart, etc.). In this situation, the varnish will likely be off. If you plan for an alternative like ESI’s – depending on the reverse calls. It will also use up the same time for page loading as the FPC cache (due to bootstrap overheads) – or it may really increase page load times beyond just being Uncached.

Uncached Mage default cache Total FPC cache

This is not a case of turning Varnish – “It’s a case you are not actually caching anything at all”

The Ideal server setup for Magento 2 configuration files

The Best and preferred Server Setup for Your Magento 2 Store

When we operate multiple servers, like when we operate more than 400 servers and all servers are purely Magento stores – of different sizes and different capacity. It is the rate that the configuration files we have on one will match that of another. This is because not all business is operating likewise.

Some hindrances are as follows

  1. Number of visitors, continuously and concurrently, with active sessions
  2. Victims of bad crawl bots, generating crucial irrelevant and invaluable load
  3. A High proportion of layered navigation hits
  4. The High number of search queries
  5. High Volume of transactions/ hour
  6. Poorly built template
  7. Too many / slow/ heavy / Bulky 3rd party extensions
  8. Outdated inbound links are one of the major reason for the high proportion of 404 hits
  9. Network interface capacity is at the limit.
  10. Large and complex catalog(lots of products/ categories/attributes)

So to solve all these queries that are mentioned above, all across this spectrum each has different approaches to more optimal performance.

To solve the issues highlighted above:

We will easily overcome these above-stated queries not only with better hardware usage as follows:

  1. Use an FPC beyond that of Varnish
  2. Filter out/ Block bad bots at the network edge – or you can also redirect all requests to Varnish regardless of cookie state
  3. Change stock layered navigation to SQL, make layered navigation filters dependent
  4. Change Stock search to SQL
  5. Distribute MySQL load access across the master/slave configuration
  6. Re-build the template
  7. Strip them out
  8. Monitor access logs continuously and rewrites URLs effectively
  9. Split off static content to a CDN, or improve connectivity.
  10. Add more hardware (well, we had to say it at some point for effective management)
Talk to expert for the best Magento eCommerce solution for your business!!!

The ideal Magento 2 server stack

The ideal Magento server stack gets you closer to reality. Magento server is the best example to demonstrate dedication to Magento OS and its configuration.

Firewall, DOS filter, Load Balancer, Varnish, Nginx, PHP, Redis, Memcached, MySQL

So when you ask: Which is the best Magento Server setup?

It must have these following capacities

  1. High Availability
  2. Reliability
  3. Simplicity of administration
  4. High Performance
  5. Scalability

How do we achieve this?

We can achieve this by configuring Multi servers

Some Sub-components required for a multi-server configuration are

  • Firewall
  • Load server
  • Webserver
  • MySQL server
  • Common Storage

So when we multipurpose some systems. PCI-DSS compliance dictates a role, for each various servers as follows

Server 1: Load Balancer + Webserver

Server 2: Webserver

Server 3: Database Server

So What Hardware Should be used for What?

Web servers: Fastest CPU, CPU cores, Ratio of 2 GB RAM/core

DB Server: Fast CPU, fastest disk I/O, most RAM

Best layout for multipurpose with 3 different machines

Server 1: SSL Terminator -> Varnish->Nginx/Apache->PHP

Server 2: Nginx/Apache->PHP,Redis,(MYSQL Slave)

Server 3: MySQL

These particular types of usage are dependent based on your requirement. As to the specific configuration of each application, it’s mainly dependent on your hardware specifications, your store requirements and complexity usage, your type of visitors, and as well as the volume of visitors.

Contact webnexs and get a free consulting for your Magento development



, ,



Leave a Reply

Your email address will not be published. Required fields are marked *