123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191 |
- <?php
- use Illuminate\Support\Str;
- use Linfo\Linfo;
- $lInfo = new Linfo();
- $parser = $lInfo->getParser();
- return [
-
- 'domain' => null,
-
- 'path' => 'monitor',
-
- 'use' => 'default',
-
- 'prefix' => env(
- 'HORIZON_PREFIX',
- Str::slug(env('APP_NAME', 'laravel'), '_').'_horizon:'
- ),
-
- 'middleware' => [],
-
- 'waits' => [
- 'redis:default' => 60,
- ],
-
- 'trim' => [
- 'recent' => 60,
- 'pending' => 60,
- 'completed' => 60,
- 'recent_failed' => 10080,
- 'failed' => 10080,
- 'monitored' => 10080,
- ],
-
- 'metrics' => [
- 'trim_snapshots' => [
- 'job' => 24,
- 'queue' => 24,
- ],
- ],
-
- 'fast_termination' => false,
-
- 'memory_limit' => 32,
-
- 'environments' => [
- 'local' => [
- 'V2board' => [
- 'connection' => 'redis',
- 'queue' => [
- 'order_handle',
- 'traffic_fetch',
- 'stat',
- 'send_email',
- 'send_email_mass',
- 'send_telegram',
- ],
- 'balance' => 'auto',
- 'minProcesses' => 1,
- 'maxProcesses' => (int)ceil($parser->getRam()['total'] / 1024 / 1024 / 1024 * 6),
- 'tries' => 1,
- 'nice' => 0,
- ],
- ],
- ],
- ];
|