Server update for passengers: processor (processor) Core VS Ram?

I looked at the Passenger's documentation to see how many application instances it can run with respect to equipment configuration. RAM only documentation

The optimal value depends on your system hardware and average server load. You have to experiment with different values. But, generally speaking, the value should be at least equal to the number of processors (or processor cores) that you have. If your system has 2 GB of RAM, then we recommend a value of 30. If your system is a virtual private server (VPS) and has about 256 MB of RAM, and other services such as MySQL also work, then we recommend a value of 2.

He says that the minimum value may be the number of CPU / CPU cores that we have. I have a VPS with one VCPU and 1GB RAM, and my service provider has the option to simply upgrade RAM. I am wondering how far can I just upgrade only RAM? How important is it to upgrade the number of processors?

+3
source share
1 answer

Quick response

Depending on which resources are the bottleneck for your application.

Long answer

You need to consider several things:

  • How much CPU time does your application need?
  • How much RAM does this instance of your application use at maximum load?
  • Does your application spend a lot of time doing intensive I / O tasks? (i.e.: db and read / write files, network communication)

, , , . , . , , -, .

; , Apache, Passenger, . Apache concurrency . ​​ x*n, x - , , n - , Apache.

. ; Apache.

+3

All Articles