fix pipeline workers, zeek/suricata lbprocs, CPUCORES and CORECOUNT

This commit is contained in:
Josh Patterson
2025-02-28 17:21:06 -05:00
parent c6c979dc19
commit 8047e196fe
10 changed files with 15 additions and 118 deletions

View File

@@ -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