forked from syslog-ng/syslog-ng
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Balazs Scheidler <bazsi77@gmail.com>
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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")); | ||
}; |