cancel
Showing results for 
Search instead for 
Did you mean: 

optimizing server for magento

SOLVED

optimizing server for magento

Greetings Smiley Happy

 

Please give your opinion about my server optimization plan for running TWO - Magento 2.4 high traffic sites.  Good or bad plan?

 

1.  Planning on getting this server:

  • Xeon E3-1270v2 480GB SSD + 4TB Preconfig
  • 3.2GHz / 3.4GHz turbo
  • 4 Cores / 8 threads
  • 16GB DDR3
  • 500GB SSD + 4TB
  • 200TB Monthly Transfer

2.  Install and Configure LiteSpeed Software to make LiteSpeed Server

 

3.  Install and Configure HaProxy as my load balancer

     ::  Not sure if or how RabbitMQ fits here. 

 

4.  For caching ElastiSearch, Memcache and Redis

 

5.  Debating between MongoDB and MariaDB.

 

What else am I missing?  Thanks for your attention.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: optimizing server for magento


@Sheba wrote:

Hi JLHC,

 

Thank you so much for your responses.  I really appreciate it

 

Which memory is better for magento -  DDR3 or ECC?

Which CPU is better?  single or dual?

Which server below is better?

::  By the way, products for each site will be over 100K.

::  One database has 1.4 million records which are countries, city, postal codes.

 

Dedicated Server - Dual Xeon 5639 

  • 2.13GHz - 2 processors
  • 12 Cores / 24 threads
  • 32GB DDR3
  • 480GB SSD (one drive)
  • 200TB Monthly Transfer

 

Dedicated Server - Dual Xeon E5-2660 

  • 2.2Ghz (guessing one processor)
  • 16 cores / 32 Threads
  • 32GB ECC
  • 480GB SSD  (one drive)
  • 200TB Monthly Transfer

I wouldn't really focus on whether the server uses ECC RAM as it doesn't make too much of a difference. DDR3 RAM is fine but it is an older technology where DDR4 will be faster. 

 

The 16 Cores server with higher clock speed will be better but both servers are on a single drive which is very very risky. You will want at least 2 drives in a RAID 1 array like I mentioned or you will experience data loss and massive downtime when the drive fails (yes, it is "when" and not "if" as you are on a physical dedicated server). 

 

To be honest it sounds like you are better off going with a Managed provider who will take care of all these for you while allowing you to easily scale up when you need to.

 

I wouldn't recommend going down your route as you will most likely face countless issues by going with an unmanaged dedicated server with a single drive. 

 

 


@Sheba wrote:

Thanks Sunil, I'll add Varnish Smiley Happy


You'll only need Varnish or LiteMage Cache, not both as they are both Full Page Caches (FPC). 

View solution in original post

8 REPLIES 8

Re: optimizing server for magento

Are the server physical dedicated servers? Just to note that if they are physical servers, you will face difficulties in adding more resources when your traffic grows. 4 CPU Cores may also be insufficient when you deal with high traffic.

 

If they are physical servers, will the storage drive be a single SSD drive or will you be running them in a RAID array? For physical servers, you will want to look at at least RAID 1 for mirroring in case the drive fails (preferably hardware RAID). 

 

If you plan to run HAProxy, just a note that LiteMage Cache may not work very well with a Cluster setup unless you know how to tweak it. LiteSpeed has a Load Balancer product called LiteSpeed Web ADC but it is quite costly when coupled with LiteMage Cache. 

 

You'll only need Redis and not Memcached. 

 

AFAIK Magento doesn't work with MongoDB, only MariaDB/MySQL/Percona. 

Re: optimizing server for magento

Hello,

 

varnish is missing and some of thing depends on how many customer and products

 

 


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

Re: optimizing server for magento

Hi JLHC,

 

Thank you so much for your responses.  I really appreciate it

 

Which memory is better for magento -  DDR3 or ECC?

Which CPU is better?  single or dual?

Which server below is better?

::  By the way, products for each site will be over 100K.

::  One database has 1.4 million records which are countries, city, postal codes.

 

Dedicated Server - Dual Xeon 5639 

  • 2.13GHz - 2 processors
  • 12 Cores / 24 threads
  • 32GB DDR3
  • 480GB SSD (one drive)
  • 200TB Monthly Transfer

 

Dedicated Server - Dual Xeon E5-2660 

  • 2.2Ghz (guessing one processor)
  • 16 cores / 32 Threads
  • 32GB ECC
  • 480GB SSD  (one drive)
  • 200TB Monthly Transfer

Re: optimizing server for magento

Thanks Sunil, I'll add Varnish Smiley Happy

 

Re: optimizing server for magento


@Sheba wrote:

Hi JLHC,

 

Thank you so much for your responses.  I really appreciate it

 

Which memory is better for magento -  DDR3 or ECC?

Which CPU is better?  single or dual?

Which server below is better?

::  By the way, products for each site will be over 100K.

::  One database has 1.4 million records which are countries, city, postal codes.

 

Dedicated Server - Dual Xeon 5639 

  • 2.13GHz - 2 processors
  • 12 Cores / 24 threads
  • 32GB DDR3
  • 480GB SSD (one drive)
  • 200TB Monthly Transfer

 

Dedicated Server - Dual Xeon E5-2660 

  • 2.2Ghz (guessing one processor)
  • 16 cores / 32 Threads
  • 32GB ECC
  • 480GB SSD  (one drive)
  • 200TB Monthly Transfer

I wouldn't really focus on whether the server uses ECC RAM as it doesn't make too much of a difference. DDR3 RAM is fine but it is an older technology where DDR4 will be faster. 

 

The 16 Cores server with higher clock speed will be better but both servers are on a single drive which is very very risky. You will want at least 2 drives in a RAID 1 array like I mentioned or you will experience data loss and massive downtime when the drive fails (yes, it is "when" and not "if" as you are on a physical dedicated server). 

 

To be honest it sounds like you are better off going with a Managed provider who will take care of all these for you while allowing you to easily scale up when you need to.

 

I wouldn't recommend going down your route as you will most likely face countless issues by going with an unmanaged dedicated server with a single drive. 

 

 


@Sheba wrote:

Thanks Sunil, I'll add Varnish Smiley Happy


You'll only need Varnish or LiteMage Cache, not both as they are both Full Page Caches (FPC). 

Re: optimizing server for magento

Thanks James,  I really appreciate it Smiley Happy

Re: optimizing server for magento

Please consider installing  LiteMage Cache, it will help boost your store's performance

Also, it's better if you can give a little bit more info about the traffic (concurrent users, daily visitor) as well as number of products on Magento 2.4 site

We can base on your information to provide more suggestions

Re: optimizing server for magento

Hello. Thanks for your response. I hired a server person to do the
optimization.