×
Community Blog How to Select CPU and RAM of VPS for Web Hosting?

How to Select CPU and RAM of VPS for Web Hosting?

This article explains how to select the CPU and RAM of VPS for web hosting.

By Alain Francois

A web hosting service works through a server (a computer that stores data and sends it over the web to someone that wants to access it). So, it is the practice of serving websites to users. Depending on what you are going to deliver, the number of your visitors, the requests, you might be unsure what resource requirements to specify. This article explains how much RAM and CPU resources you could need in different scenarios.

Identify the Services You Plan to Offer

Always Remember: VPS shares the server resources with other VPS on the server. Web hosting offers some possibilities like WordPress or whatever else on which you could need to install some plugins. Depending on the services you plan to offer, you need to have an idea about your daily visitors because the number can increase over time.

When discussing web hosting, there is traffic transferred between client and VPS and the number of users visiting your website. Every time you have a visitor, your web server has to create a process to serve the request. This means the server needs some resources to spawn the processes. Sizing appropriately for your needs is critical because if your VPS is too small, it can crash, and if it is too large, you are throwing money down the drain.

Compression and Content Delivery Network (CDN)

With web hosting, if you have a high number of visitors accessing a large amount of data, such as downloading videos, your bandwidth will get eaten up rather quickly. Then, you can use compression and CDN to serve all the requests. It will ask for more resources for the server. Alibaba Cloud CDN helps you accelerate the resources users have requested and supports webpage optimization and smart compression to accelerate the delivery.

Memory

There are general requirements you can consider to choose the ideal RAM figure. Content Management Systems (CMS), such as WordPress, Drupal, Joomla, etc., usually need memory (RAM) for optimum performance. If you are running a website professionally, there are some pointers below on how your RAM requirements will vary according to a few additions your website may have:

  • Dynamic websites
  • Images, videos, or animations
  • High traffic websites
  • Caching to save webpages in memory to reply to browser queries for webpages without touching the hard drive
  • Control panel (cPanel, WHM, etc.)
  • CMS (Joomla, WordPress, etc.)

You need around 8 GB of memory for the preceding points. If you need to host more multimedia content, we recommend going for at least 16 GB of memory.

Alibaba Cloud offers ECS Memory-optimized instance families. The ecs.r7a family type offers a CPU-to-memory ratio of 1:8, including connections up to 250,000, at least 12,500/burstable, and up to 110,000 for the Disk baseline. This ECS family is useful when large volumes of packets are received and transmitted, such as on-screen video comments and telecom data forwarding. The ecs.re6p family type works well for I/O-intensive applications, such as e-commerce and media applications that use Intel OptaneTM persistent memory (at least 31.5 GB).

Processor (CPU)

Web hosting also involves CPUs when talking about resources. A CPU is made of several cores, and the cores do all the work. The CPU is one of the most important pieces of the puzzle when deciding on your server’s specification because you need to have an idea regarding the number of cores you will need, the clock speed, etc.

You should understand the factors that affect RAM requirements are also the same ones that affect the CPU requirements, and they can consume a lot of CPU power. Some loads will work well with 2 cores, but other heavier tasks (database interactions) will require 4 or more cores to run well.

Alibaba Cloud offers ECS compute-optimized instance families. The ecs.c7a family type offers a CPU-to-memory ratio of 1:2 that uses 2.55 GHz AMD EPYCTM MILAN with a maximum single-core turbo frequency of 3.5 GHz. It works well for web frontend servers when large volumes of packets are received and transmitted, such as on-screen video comments. The ecs.c7 family type uses the third-generation Intel Xeon Scalable (Ice Lake) processors that deliver a base frequency of 2.7 GHz and an all-core turbo frequency of 3.5 GHz, providing at least 02 vCPU and 20,000/burstable up to 110,000.

Wrapping Up

RAM and CPU are crucial for web hosting. You need to evaluate your requirements properly to offer better performance. It is better to have more resources, but you can also scale your infrastructure when needed.

0 0 0
Share on

Alibaba Cloud Community

875 posts | 198 followers

You may also like

Comments

Alibaba Cloud Community

875 posts | 198 followers

Related Products