How to calculate cpu and ram for a website proyect

Webcs-Peter

New member
Hello

I was asked to make an estimated reference of the amount of cpu and ram for a website with an estimated rate of visitors of 1000 per hour.
Is there a way to make a calculation of any sort for this?

Thanks.
 
Clearly not in any way that is perfectly reliable. You don't know the software that the site relies on (including addons/plugins etc.), how active those 1000 visitors are etc.

Even if you would know all that, you'd have to have the experience with a very similar site. Even then, just because you host similar sites, it doesn't mean you've been analyzing their usage patterns.

An experienced host can make an educated guess, but it's still just a guess.
 
Way too many variables to make any calculations based on rate of visitors per hour. Agree with Dan that any answers would be purely guesses.
 
You can never really tell. It depends on the traffic the site generates, plus the script itself for running the main front-end of the site.
 
Exact amount of visitors can only be told after its live run.

However, a quality QA of that site will surely assure to use less CPU, RAM because in most cases usage is high due to bad programming.
 
To be frank, you really cannot estimate.

It depends on the server specs, and the speed of the CPU, the network speed.

And you cannot estimate without actually testing and seeing what works, it is pretty much impossible.
 
There's software around that'll help you load test and benchmark, but as others have said there are too many variables. Some customers might visit your front page, others might attempt to download a file, both of which are very different in terms of the load they'll place on your server.

Your best bet is to go for the best server you can afford, or start with a high end VPS which can be upgraded easily. This should allow you to estimate and grow as required.
 
My suggestion would be to consider getting on a Cloud Platform that has autoscaling features. That way you can just setup your server to start with the minimum required resources and then automatically scale up your CPU and RAM resources as needed. This way your virtual machine does the work for you and there is no guessing or overpaying for resources you don't need.
 
Back
Top