Use koschei's built-in memory limit

This commit is contained in:
Michael Simacek 2016-09-29 15:52:26 +02:00
parent 097760b6a0
commit 0aeeb4a3ab
3 changed files with 3 additions and 14 deletions

View file

@ -1,2 +0,0 @@
[Service]
MemoryLimit=2G

View file

@ -25,18 +25,6 @@
- config
- 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
template: >
src="{{ item }}.j2"

View file

@ -48,6 +48,9 @@ config = {
"interval": 20*60, # in seconds
{% endif %}
},
"resolver": {
"memory_limit": 4 * 1024**3,
},
},
"logging": {
"loggers": {