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:
parent
3366cd40ef
commit
c474a3311d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue