Added vm.max_map_count=262144

This commit is contained in:
Kevin Veen-Birkenbach 2020-12-31 09:44:05 +01:00
parent dd5f92f1c8
commit dce2813ae2
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,2 @@
# https://www.elastic.co/guide/en/elasticsearch/reference/current/vm-max-map-count.html
vm.max_map_count=262144

View File

@ -7,6 +7,17 @@
template: src=roles/native-nginx-docker-proxy/templates/domain.conf.j2 dest=/etc/nginx/conf.d/{{domain}}.conf template: src=roles/native-nginx-docker-proxy/templates/domain.conf.j2 dest=/etc/nginx/conf.d/{{domain}}.conf
notify: restart nginx notify: restart nginx
- name: create elasticsearch-sysctl.conf
copy:
src: "elasticsearch-sysctl.conf"
dest: /etc/sysctl.d/elasticsearch-sysctl.conf
owner: root
group: root
- name: set vm.max_map_count=262144
command:
cmd: sysctl -w vm.max_map_count=262144
- name: "create {{docker_elk_compose_path}}" - name: "create {{docker_elk_compose_path}}"
file: file:
path: "{{docker_elk_compose_path}}" path: "{{docker_elk_compose_path}}"