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
--- /dev/null
+<?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;
+ }
+}
*/
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 * * *');
}
/**