M
M
Magir2014-09-17 13:44:26
linux
Magir, 2014-09-17 13:44:26

How to prioritize processes in crontab (Linux)?

There is a website running under nginx. There is a dedicated user that runs nginx and php-fpm. There are "heavy" scripts that are run by cron, at the moment of their launch, access via the web practically stops, everything lags very much. How to reduce the priority of scripts or balance the load between them so that they run in a reasonable time (5-10 minutes now), but the website does not slow down during their execution?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Burov, 2014-09-17
@BuriK666

nice -n 15 your command here

V
vitaliy2, 2016-04-27
@vitaliy2

nice -n10 ionice -c3 command arg1 arg2 arg3

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question