]> _ Git - pmi.git/commitdiff
wait #7052 @2
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 29 Aug 2024 13:01:33 +0000 (15:01 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 29 Aug 2024 13:01:33 +0000 (15:01 +0200)
.docker/production/images/php-fpm/overrides.conf
app/Console/Commands/Check.php [new file with mode: 0644]
app/Console/Kernel.php

index b799bf136045a96df4b7feb4d3a04b834717013c..c3f3a6b3424cf92d41be1ad49ab1d7b635256424 100644 (file)
@@ -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 (file)
index 0000000..49b644e
--- /dev/null
@@ -0,0 +1,18 @@
+<?php
+
+namespace App\Console\Commands;
+
+use Illuminate\Console\Command;
+
+class Check extends Command
+{
+    protected $signature = 'pmi:check';
+    protected $description = 'Check config';
+
+    public function handle()
+    {
+        $res = config('app.env') . "\n";
+        file_put_contents("/application/check", $res);
+        echo $res;
+    }
+}
index 675a94b4fccc37492a2b2d95572813b4ba9b646f..825c4f2d9baa1990b71789ae67b4f52f33045079 100644 (file)
@@ -24,13 +24,14 @@ class Kernel extends ConsoleKernel
      */
     protected function schedule(Schedule $schedule)
     {
+        $schedule->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 * * *');
     }
 
     /**