add config file

This commit is contained in:
2025-08-25 14:23:48 +03:30
parent e30b19ab79
commit 111c9d1565
5 changed files with 43 additions and 6 deletions

View File

@@ -65,4 +65,8 @@ CMMS_MACHINE_INFO_VIEW_NAME=
FMS_VEHICLE_ACTIVITY_URL=
FMS_VEHICLE_ACTIVITY_PASSWORD=
FMS_VEHICLE_ACTIVITY_USERNAME=
FMS_VEHICLE_ACTIVITY_USERNAME=
FMS_ERROR_RATE_URL=
FMS_ERROR_RATE_PASSWORD=
FMS_ERROR_RATE_USERNAME=

View File

@@ -16,10 +16,10 @@ class GetErrorRateService
public function __construct()
{
$this->url = config('fms_web_services.Vehicle_Activity.url');
$this->password = config('fms_web_services.Vehicle_Activity.password');
$this->username = config('fms_web_services.Vehicle_Activity.username');
$this->channelName = 'fms_vehicle_activity';
$this->url = config('fms_web_services.Error_Rate.url');
$this->password = config('fms_web_services.Error_Rate.password');
$this->username = config('fms_web_services.Error_Rate.username');
$this->channelName = 'fms_error_rate';
}
public function setInputParameters(array $inputs): void

View File

@@ -6,4 +6,9 @@ return [
'password' => env('FMS_VEHICLE_ACTIVITY_PASSWORD'),
'username' => env('FMS_VEHICLE_ACTIVITY_USERNAME'),
],
'Error_Rate' => [
'url' => env('FMS_ERROR_RATE_URL'),
'password' => env('FMS_ERROR_RATE_PASSWORD'),
'username' => env('FMS_ERROR_RATE_USERNAME'),
],
];

View File

@@ -182,7 +182,21 @@ return [
'defaults' => [
'supervisor-1' => [
'connection' => 'redis',
'queue' => ['default'],
'queue' => ['harim'],
'balance' => 'auto',
'autoScalingStrategy' => 'time',
'maxProcesses' => 1,
'maxTime' => 0,
'maxJobs' => 0,
'memory' => 128,
'tries' => 2,
'timeout' => 60,
'nice' => 0,
'backoff' => 10,
],
'supervisor-2' => [
'connection' => 'redis',
'queue' => ['fms'],
'balance' => 'auto',
'autoScalingStrategy' => 'time',
'maxProcesses' => 1,
@@ -203,12 +217,20 @@ return [
'balanceMaxShift' => 1,
'balanceCooldown' => 3,
],
'supervisor-2' => [
'maxProcesses' => 10,
'balanceMaxShift' => 1,
'balanceCooldown' => 3,
],
],
'local' => [
'supervisor-1' => [
'maxProcesses' => 3,
],
'supervisor-2' => [
'maxProcesses' => 3,
],
],
],
];

View File

@@ -129,6 +129,12 @@ return [
'path' => storage_path('logs/nikarayan.log'),
'level' => 'info',
],
'fms_error_rate' => [
'driver' => 'single',
'path' => storage_path('logs/fms/error_rate_service.log'),
'level' => 'info',
],
],
];