Created
March 1, 2017 16:00
-
-
Save pgporada/eb0b19445f588d07dc1ab26ac3cbb951 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Give 50% of all memory to the JVM | |
set_fact: | |
elasticsearch_java_initial_heap_size: "{{ (2|pow(((ansible_memtotal_mb|log(2))|round|int)) * 0.50)|int }}m" | |
elasticsearch_java_maximum_heap_size: "{{ (2|pow(((ansible_memtotal_mb|log(2))|round|int)) * 0.50)|int }}m" | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment