Reduce the default maximum load for the worker to 20

This commit is contained in:
Michael 2019-03-02 18:41:12 +00:00
parent df04bd9dbe
commit f2560c42d1
2 changed files with 4 additions and 4 deletions

View file

@ -611,7 +611,7 @@ class Worker
*/
private static function tooMuchWorkers()
{
$queues = Config::get("system", "worker_queues", 4);
$queues = Config::get("system", "worker_queues", 10);
$maxqueues = $queues;
@ -620,7 +620,7 @@ class Worker
// Decrease the number of workers at higher load
$load = System::currentLoad();
if ($load) {
$maxsysload = intval(Config::get("system", "maxloadavg", 50));
$maxsysload = intval(Config::get("system", "maxloadavg", 20));
/* Default exponent 3 causes queues to rapidly decrease as load increases.
* If you have 20 max queues at idle, then you get only 5 queues at 37.1% of $maxsysload.