mirror of
https://github.com/friendica/friendica
synced 2024-12-23 08:40:16 +00:00
Make Load Exponent Configurable
This commit is contained in:
parent
97cabcecf2
commit
9cde4aa109
1 changed files with 1 additions and 6 deletions
|
@ -625,12 +625,7 @@ class Worker
|
|||
if ($load) {
|
||||
$maxsysload = intval(Config::get("system", "maxloadavg", 50));
|
||||
|
||||
if (Config::get('system', 'worker_linear_load', false)) {
|
||||
$exponent = 1;
|
||||
} else {
|
||||
$exponent = 3;
|
||||
}
|
||||
|
||||
$exponent = intval(Config::get('system', 'worker_load_exponent', 3));
|
||||
$slope = pow(max(0, $maxsysload - $load) / $maxsysload, $exponent);
|
||||
$queues = intval(ceil($slope * $maxqueues));
|
||||
|
||||
|
|
Loading…
Reference in a new issue