Answer the question
In order to leave comments, you need to log in
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:
Answer the question
In order to leave comments, you need to log in
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
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.
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.
Напишите проект, включите дебаг панель, там видно использование ресурсов, далее простая арифметика. В зависимости от сервера цифры будут разные, но простая страница на yii2 съедает около 5 мб оперативки на пике. Все 5000 человек не будут обращаться к серверу одновременно, так что в худшем случае Вам надо 4ГБ где-то. Исходя из этого выбираем vds ставим туда свой скрипт и тестируем нагрузкой, как написал Андрей Николаев . При необходимости докупаем ядра или оперативку.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question