mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-09 22:41:03 +01:00
Added vm.max_map_count=262144
This commit is contained in:
parent
dd5f92f1c8
commit
dce2813ae2
2
roles/docker-elk/files/elasticsearch-sysctl.conf
Normal file
2
roles/docker-elk/files/elasticsearch-sysctl.conf
Normal file
@ -0,0 +1,2 @@
|
||||
# https://www.elastic.co/guide/en/elasticsearch/reference/current/vm-max-map-count.html
|
||||
vm.max_map_count=262144
|
@ -7,6 +7,17 @@
|
||||
template: src=roles/native-nginx-docker-proxy/templates/domain.conf.j2 dest=/etc/nginx/conf.d/{{domain}}.conf
|
||||
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}}"
|
||||
file:
|
||||
path: "{{docker_elk_compose_path}}"
|
||||
|
Loading…
Reference in New Issue
Block a user