Use koschei's built-in memory limit
This commit is contained in:
parent
097760b6a0
commit
0aeeb4a3ab
3 changed files with 3 additions and 14 deletions
|
@ -1,2 +0,0 @@
|
||||||
[Service]
|
|
||||||
MemoryLimit=2G
|
|
|
@ -25,18 +25,6 @@
|
||||||
- config
|
- config
|
||||||
- service
|
- service
|
||||||
|
|
||||||
- name: install systemd config files
|
|
||||||
copy: >
|
|
||||||
src=systemd-memory-limit.conf
|
|
||||||
dest=/etc/systemd/system/koschei-resolver.service.d/memory-limit.conf
|
|
||||||
notify:
|
|
||||||
- reload systemd
|
|
||||||
- restart koschei-resolver
|
|
||||||
tags:
|
|
||||||
- koschei
|
|
||||||
- config
|
|
||||||
- service
|
|
||||||
|
|
||||||
- name: install config files
|
- name: install config files
|
||||||
template: >
|
template: >
|
||||||
src="{{ item }}.j2"
|
src="{{ item }}.j2"
|
||||||
|
|
|
@ -48,6 +48,9 @@ config = {
|
||||||
"interval": 20*60, # in seconds
|
"interval": 20*60, # in seconds
|
||||||
{% endif %}
|
{% endif %}
|
||||||
},
|
},
|
||||||
|
"resolver": {
|
||||||
|
"memory_limit": 4 * 1024**3,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
"logging": {
|
"logging": {
|
||||||
"loggers": {
|
"loggers": {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue