Skip to main content


!Friendica Support
How does Friendica get system load?
[schmaker@SchmaCloud ~]$ grep worker /srv/http/schmaker.eu/log/friendica.log
(...)
2023-03-15T17:35:25Z worker [NOTICE]: Load: 382.00732421875/500 - processes: 1/2/35 (0:2) - maximum: 3/60 [] - {"file":"Worker.php","line":817,"function":"tooMuchWorkers","uid":"68a9a8","process_id":406448}
(...)


[schmaker@SchmaCloud ~]$ uptime
 18:43:10 up 4 days, 10:26,  1 user,  load average: 0.00, 0.22, 0.23


I had to increase limit temporarily, but i think there is something funky happening.

Friendica Support reshared this.

Unknown parent

Schmaker
I don't have any worker specific keys in my local.config.php
/* If automatic system installation fails:
 *
 * Copy this file to local.config.php
 *
 * Why local.config.php? Because it contains sensitive information which could
 * give somebody complete control of your database. Apache's default
 * configuration will interpret any .php file as a script and won't show the values
 *
 * Then set the following for your MySQL installation
 *
 * If you're unsure about what any of the config keys below do, please check the static/defaults.config.php file for
 * detailed documentation of their data type and behavior.
 */

return [
        'database' => [
                'hostname' => 'localhost',
                'username' => '***',
                'password' => '***',
                'database' => '***',
                'charset' => 'utf8mb4',
        ],

        // ****************************************************************
        // The configuration below will be overruled by the admin panel.
        // Changes made below will only have an effect if the database does
        // not contain any configuration for the friendica system.
        // ****************************************************************

        'config' => [
                'admin_email' => 'schmaker***@***.com',
                'sitename' => 'Schmaker.eu - end of dem Internets',
                'register_policy' => \Friendica\Module\Register::OPEN,
                'register_text' => '',
                'set_creation_date' => true,
                'relay_deny_languages' => ['zh','jp','ru','uk'],
        ],
        'system' => [
                'default_timezone' => 'UTC',
                'language' => 'cs',
        ],
]; 

Friendica Support reshared this.

Unknown parent

Schmaker
I don't know how long is it happening as this is the first time i noticed this. Only thing i changed recently was worker frequency to 20 sec instead of 1 minute.

It seems wierd to me though, that it jumps so much and even reaches over 500 - my VPS is doing almost nothing, so i don't see the point of having such a big numbers.

Kliknutím otevřete/zavřete
[schmaker@SchmaCloud ~]$ grep "Load:" /srv/http/schmaker.eu/log/friendica.log
2023-03-15T18:06:59Z worker [NOTICE]: Load: 33.33154296875/500 - processes: 1/23/0 (0:20, 40:3) - maximum: 49/60 [] - {"file":"Worker.php","line":817,"function":"tooMuchWorkers","uid":"e58261","process_id":407893}
2023-03-15T18:06:59Z worker [NOTICE]: Load: 33.33154296875/500 - processes: 1/23/2 (0:22, 40:1) - maximum: 49/60 [] - {"file":"Worker.php","line":817,"function":"tooMuchWorkers","uid":"9c813a","process_id":407896}
2023-03-15T18:06:59Z worker [NOTICE]: Load: 33.33154296875/500 - processes: 1/23/0 (0:20, 40:3) - maximum: 49/60 [] - {"file":"Worker.php","line":817,"function":"tooMuchWorkers","uid":"278382","process_id":408057}
2023-03-15T18:07:00Z worker [NOTICE]: Load: 33.33154296875/500 - processes: 1/22/1 (0:21, 40:1) - maximum: 49/60 [] - {"file":"Worker.php","line":817,"function":"tooMuchWorkers","uid":"4be637","process_id":408008}
2023-03-15T18:07:00Z worker [NOTICE]: Load: 33.33154296875/500 - processes: 1/22/0 (0:21, 40:1) - maximum: 49/60 [] - {"file":"Worker.php","line":817,"function":"tooMuchWorkers","uid":"2f8450","process_id":408059}
2023-03-15T18:07:03Z worker [NOTICE]: Load: 33.12646484375/500 - processes: 1/2/0 (0:1, 40:1) - maximum: 49/60 [] - {"file":"Worker.php","line":817,"function":"tooMuchWorkers","uid":"ee157b","process_id":408001}
2023-03-15T18:18:02Z index [NOTICE]: Load: 575.71826171875/500 - processes: 1/1/12 (0:0, 40:1) - maximum: 0/60 [] - {"file":"Worker.php","line":817,"function":"tooMuchWorkers","uid":"d719b0","process_id":408301}
2023-03-15T18:18:02Z index [NOTICE]: Load: 575.71826171875/500 - processes: 1/1/13 (0:0, 40:1) - maximum: 0/60 [] - {"file":"Worker.php","line":817,"function":"tooMuchWorkers","uid":"d719b0","process_id":408301}
2023-03-15T18:18:14Z index [NOTICE]: Load: 551.97216796875/500 - processes: 1/1/14 (0:0, 40:1) - maximum: 0/60 [] - {"file":"Worker.php","line":817,"function":"tooMuchWorkers","uid":"7631c7","process_id":408367}
2023-03-15T18:20:19Z index [NOTICE]: Load: 380.21435546875/500 - processes: 1/1/15 (0:0, 40:1) - maximum: 2/60 [] - {"file":"Worker.php","line":817,"function":"tooMuchWorkers","uid":"da693e","process_id":408336}
2023-03-15T18:20:19Z worker [NOTICE]: Load: 380.21435546875/500 - processes: 1/2/15 (0:1, 40:1) - maximum: 3/60 [] - {"file":"Worker.php","line":817,"function":"tooMuchWorkers","uid":"c4e48a","process_id":408664}
2023-03-15T18:20:49Z worker [NOTICE]: Load: 346.32861328125/500 - processes: 1/2/0 (0:1, 40:1) - maximum: 2/60 [] - {"file":"Worker.php","line":817,"function":"tooMuchWorkers","uid":"c4e48a","process_id":408664}
2023-03-15T18:23:41Z index [NOTICE]: Load: 202.1240234375/500 - processes: 1/1/5 (0:0, 40:1) - maximum: 13/60 [] - {"file":"Worker.php","line":817,"function":"tooMuchWorkers","uid":"464ca5","process_id":408580}
2023-03-15T18:23:41Z worker [NOTICE]: Load: 202.1240234375/500 - processes: 1/2/5 (0:1, 40:1) - maximum: 13/60 [] - {"file":"Worker.php","line":817,"function":"tooMuchWorkers","uid":"9ef116","process_id":408859}

Friendica Support reshared this.

Unknown parent

Schmaker
Arch Linux with Apache, MariaDB and PHP8

Friendica Support reshared this.