Hello, I have a question, I have a VPS with such characteristics. Процессор Quad-Core AMD Opteron(tm) Processor 2386 SE 1203.175 Mhz Оперативная память 3145728 kB Размер дискового пространства 10240 Mb Средняя загрузка 0.05 0.06 0.01 Can it sustain a person 500 per day that will actively use mysql (All work will be done using AJAX)

  • Little specifics ... If the requests are simple, and the server scripts are simple - they can be more likely ... And if your request is fulfilled for 1 minute, then it is vryatle ... - timka_s

2 answers 2

500 users per day is not much and a server will stand easily provided that the code is OK and there are no requests, as correctly noted in comments, a minute + It is more convenient to measure requests per second: in your case, 500 users per day are 24 hours * 60 minutes * 60 seconds / 500 = 1 request in almost 3 minutes - these are pennies (provided that the user makes a request). But if all these users are online at the same time and begin to make actively different requests, then this is a completely different load.

  • @wind the meaning of my idea is that the user will load the page only once and all further information will come through AJAH and the user will update the info (and he will send requests also via AYAX) that is, the server will need to give the user a page and then he will communicate with the user on Ajax, through Ajax data will be received to add information to the database and take it from there. - Michael Nikolaev
  • IMHO for such purposes and with such hardware - a php server is not the best solution - Zowie
  • @AlexWindHope well, so tell me ... what would be better. - Michael Nikolaev
  • The difference is not big, how will the client exchange information with the server, by means of Ajax or not - this is in any case a request to the server that he needs to process, he can also, as you mentioned, pull information from the database, and this is an appeal to the database , which can stand on another server, the request may not be simple and pull a lot of data, and this time, delay, etc. and etc. For example: mssql server 2008 is bent at 40000 unique requests in a few minutes (mb half an hour), and the request is not heavy. The server keeps this load without problems and it is not much better in the parameters you specified. - wind
  • An example for IIS 7.5 and windows server 2008. I cannot say anything about php. - wind

If you have a ready-made application for the task, you can measure the load generated by the application. At least 3 types of measurements are taken. 1. No load at all. 2. With an average load. 3. With a heavy load. The following parameters will be measured. 1. Response time. 2. CPU load. 3. The use of RAM. 4. The number of disk accesses. Data obtained using synthetic tests with such conditions will allow an approximate assessment of the necessary resources. These tests do not necessarily hold on the combat server. Enough good desktop machine. When testing, it is advisable to determine in advance the bottleneck in the system or application, so that in case of a lack of performance, to know where to dig first.