Skip to content

Commit a72a1b8

Browse files
committed
ipfixprobed - add new option LZ4_COMPRESSION to init script and config example
1 parent 8366519 commit a72a1b8

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

init/ipfixprobed

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,12 @@ if [ -e "$CONFFILE" ]; then
118118
output_affinity="@$OUTPUT_WORKER_CPU"
119119
fi
120120

121-
output="-o ipfix$output_affinity;host=${HOST:-127.0.0.1};port=${PORT:-4739};id=${LINK:-0};dir=${DIR:-0};${UDP_PARAM};${NON_BLOCKING_TCP_PARAM};template=${TEMPLATE_REFRESH_RATE:-300}"
121+
LZ4_COMPRESSION_PARAM=""
122+
if [[ $LZ4_COMPRESSION == "yes" ]]; then
123+
LZ4_COMPRESSION_PARAM="lz4-compression";
124+
fi
125+
126+
output="-o ipfix$output_affinity;host=${HOST:-127.0.0.1};port=${PORT:-4739};id=${LINK:-0};dir=${DIR:-0};${UDP_PARAM};${NON_BLOCKING_TCP_PARAM};${LZ4_COMPRESSION_PARAM};template=${TEMPLATE_REFRESH_RATE:-300}"
122127

123128
telemetry=""
124129
if [ "$USE_FUSE" = "1" ]; then

init/link0.conf.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,9 @@ TEMPLATE_REFRESH_RATE=300
197197
# Define output worker (thread) affinity, e.g. CPU core isolated from the scheduler
198198
#OUTPUT_WORKER_CPU=12
199199

200+
# Enable LZ4 compression (only with TCP)
201+
LZ4_COMPRESSION=no
202+
200203
####### Fuse telemetry
201204

202205
USE_FUSE=0

0 commit comments

Comments
 (0)