log-store: add 2GB swap files to hosts

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2021-01-20 20:35:33 +01:00
parent 1218ab1772
commit 8ad0027936
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
2 changed files with 6 additions and 1 deletions

View File

@ -2,6 +2,10 @@
# Mount extra volume for ElasticSearch container
bootstrap__extra_volume_path: '/docker'
# Syncing can use a lot of mamory
swap_file_path: '/main.swap'
swap_file_size_mb: 2048
# ElasticSearch Cluster
es_master_nodes: |
{{ ansible_play_hosts

View File

@ -2,6 +2,8 @@
- name: Configure ElasticSearch servers
hosts: log-store
roles:
- role: swap-file
tags: swap-file
- role: origin-certs
tags: origin-certs
- role: elasticsearch
@ -17,7 +19,6 @@
- name: Configure ElasticSearch servers
hosts: log-dash
roles:
pre_tasks:
- name: Fetch available elasticsearch nodes
uri: