A
A
apptester2017-06-19 14:50:35
PHP
apptester, 2017-06-19 14:50:35

How to share the load wisely?

Initial data: at the front of physical. nginx server, under it php-fpm, mysql database, task manager using redis, php application. One part of the application pulls data from the database and gives a response to nginx, the second part receives tasks from redis and executes them (text parsing + reading / writing to innodb tables). Here is the second part of the problem. It is very resource-intensive and loads the protsik in full. The first part at this time, of course, cannot process nginx requests.
Any advice on how to proceed wisely in this case?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sim3x, 2017-06-19
@apptester

nice
cgroups

D
Dmitry Shitskov, 2017-06-19
@Zarom

Go aside or virtualization to control resources, or scale the number of physical. servers, parallel or distribute across tasks.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question