From: Vincent Vanwaelscappel Date: Thu, 29 Aug 2024 13:01:33 +0000 (+0200) Subject: wait #7052 @2 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=e24cc45f5c66c9b40ce0f08ccf0797c198c2b3a5;p=pmi.git wait #7052 @2 --- diff --git a/.docker/production/images/php-fpm/overrides.conf b/.docker/production/images/php-fpm/overrides.conf index b799bf1..c3f3a6b 100644 --- a/.docker/production/images/php-fpm/overrides.conf +++ b/.docker/production/images/php-fpm/overrides.conf @@ -30,8 +30,8 @@ user = 1001 group = 33 pm = dynamic -pm.max_children = 16 -pm.start_servers = 4 -pm.min_spare_servers = 4 -pm.max_spare_servers = 8 +pm.max_children = 32 +pm.start_servers = 8 +pm.min_spare_servers = 8 +pm.max_spare_servers = 16 pm.max_requests = 500 diff --git a/app/Console/Commands/Check.php b/app/Console/Commands/Check.php new file mode 100644 index 0000000..49b644e --- /dev/null +++ b/app/Console/Commands/Check.php @@ -0,0 +1,18 @@ +command('pmi:check')->everyMinute(); if (config('app.env') !== 'production') { return; } // $schedule->command('backup:clean')->daily()->at('04:00'); // $schedule->command('backup:run')->daily()->at('05:00'); - $schedule->command('cubist:search:index', ['PMI', 'all'])->cron('35 */6 * * *'); - $schedule->command('cubist:search:index', ['MICHSCI', 'all'])->cron('5 */6 * * *'); + $schedule->command('cubist:search:index PMI all')->cron('35 */6 * * *'); + $schedule->command('cubist:search:index MICHSCI all')->cron('5 */6 * * *'); } /**