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?

  • jarfil@beehaw.org
    link
    fedilink
    arrow-up
    8
    ·
    4 days ago

    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:

    • if it takes more than 2 seconds, about 50% of your visits will leave
    • 3 seconds or more, and most people will start thinking it’s down
    • Google tries to keep theirs under 500ms

    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.