Let’s say I have to host 25 websites… How do I know how powerful should my VPS be? Which specs it should have, how fast the connection should be to handle X visits per day?
How do you understand which are your system requirements BEFORE deploying a project? Do you just make estimates and then scale up? Or there’s some kind of tool to benchmark? how to handle this kind of stuff?
You can run a stress test, and compare your desired response times with the resource usage on the server side.
https://en.wikipedia.org/wiki/ApacheBench
Take into account all the requests needed to load a website, and the fact that:
Loading some content in 100ms, then loading more in the background, is a reasonable compromise. You may want a very quick response time for the first few requests, then put the rest on a possibility slower server, or running at a lower priority.