-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
99 lines (87 loc) · 3.67 KB
/
config.yml
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# log levels: debug/info/warn/error
log_level: info
# kill processes on termination
handle_interrupts: true
# whether to reload from the configuration before executing a command
disable_reloads: false
# poll processes every [n] milliseconds
process_monitor_interval: 500
# wait [n] seconds before monitoring process statuses
initialization_period: 30
# a configuration file to specify a list of processes to start on the first initialization (json, yaml or toml)
process_config_file: /etc/pmon3/config/process.config.json
wait:
# wait [n] milliseconds before outputting list after running init/stop/restart/kill/drop/exec
cmd_exec_response: 1500
# wait [n] milliseconds after connecting to IPC client before issuing commands
ipc_connection: 0
# wait [n] milliseconds after enqueueing a dependent process
dependent_process_enqueued: 1000
#permission settings applied to files and directories of data/logs/message_queue
permissions:
# an OS user to access files in data/logs/message_queue directory
user:
# an OS group to access files in data/logs/message_queue directory (must also provide a user)
group:
# the mode to apply to the data/logs/message_queue directory
directory_mode: 0770
# the mode to apply to files within the data/logs/message_queue directory
file_mode: 0660
#settings specific to the logs directory (inherits from permissions by default)
logs:
# directory where the logs are stored
directory: /var/log/pmond
# an OS user to access files in logs directory
user:
# an OS group to access files in logs directory (must also provide a user)
group:
# the mode to apply to the logs directory
directory_mode: 0775
# the mode to apply to files within the logs directory
file_mode:
#settings specific to the data directory (inherits from permissions by default)
data:
# directory where the database is stored
directory: /etc/pmon3/data
# an OS user to access files in data directory
user:
# an OS group to access files in data directory (must also provide a user)
group:
# the mode to apply to the data directory
directory_mode:
# the mode to apply to files within the data directory
file_mode:
#settings specific to the message_queue directory (inherits from permissions by default)
message_queue:
# directory where the messages are stored
directory:
# custom shared memory directory
shmem: /dev/shm/
# custom posix_mq directory
posix_mq: /dev/mqueue/
# a string to append to the name of the queue
name_suffix:
# an OS user to access files in message_queue directory
user:
# an OS group to access files in message_queue directory (must also provide a user)
group:
# the mode to apply to the message_queue directory
directory_mode: 0775
# the mode to apply to files within the message_queue directory
file_mode: 0666
event_handling:
# a script to execute when a process is restarted which accepts the process details json as the first argument
process_restart:
# a script to execute when a process fails (--no-autorestart) which accepts the process details json as the first argument
process_failure:
# a script to execute when a process backs off when flap detection is enabled
process_backoff:
flap_detection:
# enable flap detection
is_enabled: false
# the amount of times a process can restart (within the countdown threshold) until backoff evaluation begins
threshold_restarted: 5
# the amount of process monitor intervals during a processes backoff period until process evaluation proceeds as normal
threshold_countdown: 120
# the amount of process monitor intervals during a processes backoff period until the processes restart counter is decremented. disabled with 0 value.
threshold_decrement: 60