logs.nimbus: leave memory for Lucene, use 32 GB heap

https://github.com/status-im/infra-nimbus/issues/96

"The moral of the story is this: even when you have memory to spare, try
to avoid crossing the 32 GB heap boundary. It wastes memory, reduces CPU
performance, and makes the GC struggle with large heaps."

https://www.elastic.co/guide/en/elasticsearch/guide/current/heap-sizing.html#compressed_oops
https://www.elastic.co/guide/en/elasticsearch/guide/current/heap-sizing.html#_give_less_than_half_your_memory_to_lucene

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2022-06-01 12:28:48 +02:00
parent 3366cd40ef
commit c474a3311d
No known key found for this signature in database
GPG Key ID: 09AA5403E54D9931
1 changed files with 2 additions and 4 deletions

View File

@ -37,10 +37,8 @@ es_number_of_shards: 3
es_number_of_replicas: 0
# JVM memory settings
es_jvm_mem_ratio: 0.8
es_jvm_mem: '{{ (ansible_memtotal_mb * es_jvm_mem_ratio) | round(0, "floor") }}'
es_jvm_min_heap: '{{ es_jvm_mem | int }}m'
es_jvm_max_heap: '{{ es_jvm_mem | int }}m'
es_jvm_min_heap: '32g'
es_jvm_max_heap: '32g'
# ElasticSearch HQ
es_hq_cont_enabled: true