mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-02-11 01:33:40 +01:00
fix pipeline workers, zeek/suricata lbprocs, CPUCORES and CORECOUNT
This commit is contained in:
@@ -40,12 +40,9 @@
|
||||
|
||||
{# Calculate reasonable core usage #}
|
||||
{% set cores_for_zeek = (DATA.CPUCORES / 2) - 1 %}
|
||||
{% do salt.log.info('cores_for_zeek calculation using CPUCORES: ' ~ DATA.CPUCORES|string) %}
|
||||
{% do salt.log.info('cores_for_zeek: ' ~ cores_for_zeek|string) %}
|
||||
{% set lb_procs_round = cores_for_zeek|round|int %}
|
||||
{% do salt.log.info('lb_procs_round: ' ~ lb_procs_round|string) %}
|
||||
{% set lb_procs = 1 if lb_procs_round < 1 else lb_procs_round %}
|
||||
{% do salt.log.info('lb_procs: ' ~ lb_procs|string) %}
|
||||
{% do salt.log.info('Cores for load balancing: ' ~ lb_procs|string) %}
|
||||
{# Check memory conditions #}
|
||||
{% set low_mem = false %}
|
||||
{% do salt.log.info('Memory check using total_mem: ' ~ total_mem|string) %}
|
||||
|
||||
Reference in New Issue
Block a user