mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-01-19 22:51:23 +01:00
fix pipeline workers, zeek/suricata lbprocs, CPUCORES and CORECOUNT
This commit is contained in:
@@ -95,10 +95,16 @@ for i in "$@"; do
|
||||
MAINIP="${i#*=}"
|
||||
shift
|
||||
;;
|
||||
-c=*|--cpu=*)
|
||||
# Usable / Load Balance Cores for Zeek / Suricata
|
||||
-C=*|--lbc=*)
|
||||
CORECOUNT="${i#*=}"
|
||||
shift
|
||||
;;
|
||||
# Total number of CPU Cores
|
||||
-c=*|--cpu=*)
|
||||
CPUCORES="${i#*=}"
|
||||
shift
|
||||
;;
|
||||
-*|--*)
|
||||
echo "Unknown option $i"
|
||||
log "ERROR" "Unknown option $i"
|
||||
@@ -374,7 +380,7 @@ function add_logstash_to_minion() {
|
||||
"logstash:"\
|
||||
" enabled: True"\
|
||||
" config:"\
|
||||
" pipeline_x_workers: $CORECOUNT"\
|
||||
" pipeline_x_workers: $CPUCORES"\
|
||||
" settings:"\
|
||||
" lsheap: $LSHEAP"\
|
||||
" " >> $PILLARFILE
|
||||
|
||||
Reference in New Issue
Block a user