Skip to content

Commit

Permalink
news: added news file
Browse files Browse the repository at this point in the history
Signed-off-by: Balazs Scheidler <bazsi77@gmail.com>
  • Loading branch information
bazsi committed Mar 18, 2023
1 parent 1b65191 commit 0b46933
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions news/feature-4365.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
`ebpf()` plugin and udp packet balancer: a new ebpf() plugin was added which
leverages the kernel's eBPF infrastructure to improve performance and
scalability of syslog-ng. The first ebpf based solution improves
performance when a single (or very few) senders generate most of the inbound
UDP traffic that syslog-ng needs to process. Normally, the kernel
distributes load between so-reuseport sockets by keeping each flow (e.g.
same source/dest ip/port) in its dedicated receiver. This fails to balance
the sockets properly if only a few senders are responsible for most of the
load. ebpf(reuseport()) will replace the original kernel algorithm with an
alternative that changes the algorithm, so individual packets will be
assigned to one of the sockets randomly, thereby producing a more uniform
load.

Example:

source s_udp {
udp(so-reuseport(yes) port(2000) persist-name("udp1")
ebpf(reuseport(sockets(4)))
);
udp(so-reuseport(yes) port(2000) persist-name("udp2"));
udp(so-reuseport(yes) port(2000) persist-name("udp3"));
udp(so-reuseport(yes) port(2000) persist-name("udp4"));
};

0 comments on commit 0b46933

Please sign in to comment.