File tree Expand file tree Collapse file tree 4 files changed +4
-0
lines changed Expand file tree Collapse file tree 4 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ All variables which can be overridden are stored in [defaults/main.yml](defaults
26
26
| ` cortex_interface ` | "{{ ansible_default_ipv4.interface }}" | Network adapter that cortex will be using |
27
27
| ` cortex_config_dir ` | "/etc/cortex" | Default directory for the cortex config |
28
28
| ` cortex_db_dir ` | "/var/lib/cortex" | Path to the directory of the Cortex database |
29
+ | ` cortex_limit_nofile ` | 10240 | Number of File Descriptors allowed for Cortex processes |
29
30
| ` cortex_system_user ` | "cortex" | Default Cortex user |
30
31
| ` cortex_system_group ` | "cortex" | Default Cortex group |
31
32
| ` cortex_version ` | "1.6.0" | The cortex package version |
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ cortex_all_in_one: true
5
5
cortex_web_listen_address : " 0.0.0.0:9009"
6
6
cortex_binary_local_dir : ' '
7
7
cortex_skip_install : false
8
+ cortex_limit_nofile : 10240
8
9
9
10
cortex_services : {}
10
11
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ ExecReload=/bin/kill -HUP $MAINPID
14
14
ExecStart={{ _cortex_binary_install_dir }}/cortex-linux-amd64 -config.file={{ cortex_config_dir }}/cortex.yml
15
15
WorkingDirectory={{ cortex_db_dir }}
16
16
SyslogIdentifier={{ cortex_system_user }}
17
+ LimitNOFILE={{ cortex_limit_nofile }}
17
18
Restart=always
18
19
RestartSec=5
19
20
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ ExecReload=/bin/kill -HUP $MAINPID
14
14
ExecStart={{ _cortex_binary_install_dir }}/cortex-linux-amd64 -config.file={{ cortex_config_dir }}/cortex-%i.yml
15
15
WorkingDirectory={{ cortex_db_dir }}
16
16
SyslogIdentifier={{ cortex_system_user }}
17
+ LimitNOFILE={{ cortex_limit_nofile }}
17
18
Restart=always
18
19
RestartSec=5
19
20
You can’t perform that action at this time.
0 commit comments