-
Notifications
You must be signed in to change notification settings - Fork 10
/
heartbeat.php
70 lines (60 loc) · 2.01 KB
/
heartbeat.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
return [
/*
|--------------------------------------------------------------------------
| Heartbeat presets
|--------------------------------------------------------------------------
|
| Here you may define all of the heartbeats presets that will be used to
| send signals. Samples of each available type of connection are provided
| inside this array.
|
*/
'presets' => [
'file' => [
'channel' => 'file',
'file' => '/tmp/file.heartbeat',
],
'http' => [
'channel' => 'http',
'url' => 'https://beats.envoyer.io/heartbeat/example',
'options' => [
//
],
],
'disk' => [
'channel' => 'disk',
'disk' => 'local',
'file' => 'disk.heartbeat',
],
/*
|--------------------------------------------------------------------------
| Queue preset
|--------------------------------------------------------------------------
|
| Here is a default configuration that could be used to monitor your queue system.
| See configuration option `job_schedule` below.
|
*/
'queue' => [
'channel' => 'disk',
'disk' => 'local',
'file' => 'queue.heartbeat',
],
],
/*
|--------------------------------------------------------------------------
| Heartbeat job schedule
|--------------------------------------------------------------------------
|
| This option allows you to configure a heartbeat that will be signal
| periodically according to the cron expression specified. This heartbeat
| is trigger by Laravel's scheduler and is run asynchronously to validate
| that the queue system is still working.
|
*/
'job_schedule' => [
'preset' => env('HEARTBEAT_JOB_SCHEDULE_PRESET', 'queue'),
'cron' => env('HEARTBEAT_JOB_SCHEDULE_CRON', '*/15 * * * *'),
],
];