update: set horizon with mem

This commit is contained in:
tokumeikoi 2021-09-05 18:05:25 +09:00
parent ccf3497241
commit e980c2d8f3
3 changed files with 9 additions and 3 deletions

View File

@ -6,6 +6,7 @@ use App\Models\Order;
use App\Models\User;
use App\Utils\Helper;
use Illuminate\Console\Command;
use Matriphe\Larinfo;
class Test extends Command
{

View File

@ -14,11 +14,12 @@
"php": "^7.2.5|^8.0",
"fideloper/proxy": "^4.4",
"fruitcake/laravel-cors": "^2.0",
"google/recaptcha": "^1.2",
"guzzlehttp/guzzle": "^6.3.1|^7.0.1",
"laravel/framework": "^7.29",
"laravel/tinker": "^2.5",
"laravel/horizon": "^4.3.5",
"google/recaptcha": "^1.2",
"laravel/tinker": "^2.5",
"linfo/linfo": "^4.0",
"lokielse/omnipay-alipay": "3.1.2",
"lokielse/omnipay-wechatpay": "^3.0",
"php-curl-class/php-curl-class": "^8.6",

View File

@ -1,6 +1,10 @@
<?php
use Illuminate\Support\Str;
use Linfo\Linfo;
$lInfo = new Linfo();
$parser = $lInfo->getParser();
return [
@ -178,7 +182,7 @@ return [
],
'balance' => 'auto',
'minProcesses' => 1,
'maxProcesses' => 64,
'maxProcesses' => (int)ceil($parser->getRam()['total'] / 1024 / 1024 / 1024 * 12),
'tries' => 1,
'nice' => 0,
],