mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 09:39:10 +08:00
update: set horizon with mem
This commit is contained in:
parent
ccf3497241
commit
e980c2d8f3
@ -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
|
||||
{
|
||||
|
@ -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",
|
||||
|
@ -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,
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user