netsampler / goflow2

High performance sFlow/IPFIX/NetFlow Collector
BSD 3-Clause "New" or "Revised" License
452 stars 107 forks source link

Goflow LoadBalace traffic not working #331

Closed majid-darvishfard closed 1 month ago

majid-darvishfard commented 3 months ago

hi Why is the load not divided among the sockets, and one of the sockets is always queued? Screenshot from 2024-06-08 11-09-37

lspgn commented 2 months ago

Hello @majid-darvishfard, Could you use the issue template? I am missing a lot of information to be able to help. Please provide Linux kernel version, GoFlow2 version, command-line...

majid-darvishfard commented 2 months ago

hi @lspgn I created Docker image from commit 7265159 branch master, my OS is : Debian12 kernel: 6.1.27-1 (2023-05-08) x86_64 GNU/Linux docker version : 26.1.3

And I use the following option to run goflow: '-addr "10.10.48.159:8082" -listen "netflow://10.10.31.31:5678/?count=10&workers=20&blocking=true&queue_size=10000" -err.cnt 1 -format "bin" -transport "kafka" -transport.kafka.brokers "10.10.48.132:9092,10.10.48.133:9092,10.10.48.134:9092" -transport.kafka.compression "gzip" -transport.kafka.flushbytes 104857600 -transport.kafka.flushfreq 5s -transport.kafka.maxmsgbytes 1000000 -transport.kafka.topic "netflow"

lspgn commented 1 month ago

Sorry for the delay

What's the amount of flows per second?

Have a look at: https://github.com/netsampler/goflow2/blob/main/docs/performance.md Try without blocking mode

lspgn commented 1 month ago

@majid-darvishfard let me know if your issue is solved. Otherwise will close.