mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-26 02:43:11 +01:00
LSHEAP and pipeline workers for virt
This commit is contained in:
@@ -14,7 +14,8 @@
|
||||
|
||||
{% if nodetype == "searchnode" %}
|
||||
|
||||
{% do DATA.update({'LSHOSTNAME': grains.host}) %}
|
||||
{# we can't use the host grain here because the grain may not be updated yet from the hostname change #}
|
||||
{% do DATA.update({'LSHOSTNAME': salt['cmd.run']('hostname')}) %}
|
||||
|
||||
{# this replicates the function es_heapsize in so-functions #}
|
||||
{% if total_mem < 8000 %}
|
||||
@@ -31,4 +32,13 @@
|
||||
{% endif %}
|
||||
{% do DATA.update({'ES_HEAP_SIZE': ES_HEAP_SIZE}) %}
|
||||
|
||||
{% if total_mem >= 32000 or nodetype in ['managersearch','heavynode','standalone'] %}
|
||||
{% set LS_HEAP_SIZE="1000m" %}
|
||||
{% elif nodetype == 'eval' %}
|
||||
{% set LS_HEAP_SIZE="700m" %}
|
||||
{% else %}
|
||||
{% set LS_HEAP_SIZE="500m" %}
|
||||
{% endif %}
|
||||
{% do DATA.update({'LS_HEAP_SIZE': LS_HEAP_SIZE}) %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
@@ -19,7 +19,7 @@ create_pillar:
|
||||
NODETYPE: {{ DATA.NODETYPE }}
|
||||
CORECOUNT: {{ DATA.CORECOUNT }}
|
||||
LSHOSTNAME: {{ DATA.LSHOSTNAME }}
|
||||
LSHEAP: {{ DATA.LSHEAP }}
|
||||
LS_HEAP_SIZE: {{ DATA.LSHEAP }}
|
||||
CPUCORES: {{ DATA.CPUCORES }}
|
||||
IDH_MGTRESTRICT: {{ DATA.IDH_MGTRESTRICT }}
|
||||
IDH_SERVICES: {{ DATA.IDH_SERVICES }}
|
||||
|
||||
Reference in New Issue
Block a user