0

Let's think we have 10 concurrent users per second on the Nginx server which serves only static files: html, css, js.

This is not CPU CPU-intensive operation, but still, Nginx will consume some CPU for configuration file logic. Each user will request multiple static files for example x.html will need 10-20 other static files (js, CSS, images) to serve.

In this case, which type of CPU is better, high-frequency higher single-core performance e.g. Xeon E-2314 or more core lower frequency CPU e.g. Intel Xeon Silver 4208?

2
  • 2
    Does this answer your question? Can you help me with my capacity planning? Commented Oct 3, 2023 at 18:05
  • a 386 could still serve requests for the internet on static html files. serving static files don't require a strong cpu, it requires a fast storage and a good caching and a reliable internet connection Commented Oct 4, 2023 at 18:08

1 Answer 1

2

I made some tests for 500rps-1000rps on a server for just static file serving.

The Server had a 1Gbps port. And basically, the response time was ok until I reached 1Gbps.

I had two CPU limits on my VM. And the CPU is Intel(R) Xeon(R) E5-2650 v3 @ 2.30GHz. CPUs never got over 40% (I watched CPU load while sending traffic to the server). Rather network was the limiting factor.

So my conclusion is any new multicore average speed (2Ghz) CPU is enough for this purpose. No need for high-end high frequency (higher single-core performance) CPUs.

I did only an HTML file test (with size of 10-40KB), I did not do tests with image files which will be larger in size.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.