A
A
AndreyBerezov2017-01-17 17:19:48
Yii
AndreyBerezov, 2017-01-17 17:19:48

How to calculate the required server capacity for a project?

Good afternoon!
The boss set the task to develop a testing system.
Participants are given access keys. They enter the keys and start solving tasks. In an hour, you need to drive 5k users away. In general, the application performs simple actions:

  1. authorizes the user
  2. displays assignments of the corresponding course
  3. when moving from task to task, answers are saved
  4. at the end, the result is calculated and displayed

A project is being developed in Yii2. MySQL is used as a database.
How to calculate what kind of iron you need?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Andrey Nikolaev, 2017-01-17
@gromdron

Is the yii2 project itself already written or are you choosing a server without a project?
If written, then you can perform load testing (look at how many users will die), leave 80% of visitors (assume that server characteristics do not change, and leave only 80% of users). Well, catch up to 5k.
This is with a small, with a greater load, you will also need dances, like master-slave mysql and several application servers

S
Saboteur, 2017-01-17
@saboteur_kiev

It all depends on the implementation. You never know what the task of the course is. Maybe there is streaming of video questions, maybe there is plain text, maybe there is pdf, maybe there is an interactive lesson.
The server is calculated when you run at least some working version and can perform load testing.

D
Daemon23RUS, 2017-01-17
@Daemon23RUS

The task looks like calculating the average temperature in the hospital , taking into account the morgue and the purulent department.
And on the topic, as colleagues correctly noted - load testing.

Максим Тимофеев, 2017-01-17
@webinar Куратор тега Yii

Напишите проект, включите дебаг панель, там видно использование ресурсов, далее простая арифметика. В зависимости от сервера цифры будут разные, но простая страница на yii2 съедает около 5 мб оперативки на пике. Все 5000 человек не будут обращаться к серверу одновременно, так что в худшем случае Вам надо 4ГБ где-то. Исходя из этого выбираем vds ставим туда свой скрипт и тестируем нагрузкой, как написал Андрей Николаев . При необходимости докупаем ядра или оперативку.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question