5000 concurrent users


#1

Dear Team,

In order to support 5000 concurrent users on CakePHP 3.x. What will be the hardware requirements?

Web Server
Linux Platform (CentOS v7.x, httpd 2.4, PHP v7.x)
How much memory required : ??
How many CPU required: ??

Database Server :
Linux Platform (CentOS v7.x, MySQL 5.x)
How much memory required : ??
How many CPU required: ??

Thank you,
Elavarasan


#2

I do not think there is an answer to this. It is really depending on the app itself. There may be a heavy memory / cpu demanding app or a light one.


#3

like @rrd said, we can not simply give an answer to this as there are a whole lot of variables.

  • queries being made
  • calculations (or math equations) being made (if any)
  • how caching is being used (does it keep writing to and reading from the disk for every query, or does it use a cache?)
  • tuning (how nicely are your configs tuned for your specific app)

A simple blog site would, for example, hit your servers in a different way than a search engine does, and a RESTful API build in CakePHP would hit your servers in a different way than a social media site would.

I think your servers would generally be bottlenecked more by RAM and disks than by just the CPU.
You can always try a tool like Siege, Locust or Vegeta to stress test your setup while you monitor it.