Skip to content

Commit

Permalink
Clarify reusing UDP ports feature
Browse files Browse the repository at this point in the history
  • Loading branch information
g41797 committed Nov 2, 2023
1 parent 1b7e91a commit 72933ff
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,23 +172,19 @@ type SyslogConfiguration struct {
ROOT_CA_PATH string
}
```

### Experimental feature
For os with support of **SO_REUSEPORT** socket option, sidecar opens simultaneously
8 UDP ports:
8 UDP ports. You can use netstat command to see the list:
```sh
sudo netstat --tcp --udp --listening --programs --numeric|grep 5141
tcp 0 0 127.0.0.1:5141 0.0.0.0:* LISTEN 63457/./syslog-e2e
udp 0 0 127.0.0.1:5141 0.0.0.0:* 63457/./syslog-e2e
udp 0 0 127.0.0.1:5141 0.0.0.0:* 63457/./syslog-e2e
udp 0 0 127.0.0.1:5141 0.0.0.0:* 63457/./syslog-e2e
udp 0 0 127.0.0.1:5141 0.0.0.0:* 63457/./syslog-e2e
udp 0 0 127.0.0.1:5141 0.0.0.0:* 63457/./syslog-e2e
udp 0 0 127.0.0.1:5141 0.0.0.0:* 63457/./syslog-e2e
udp 0 0 127.0.0.1:5141 0.0.0.0:* 63457/./syslog-e2e
udp 0 0 127.0.0.1:5141 0.0.0.0:* 63457/./syslog-e2e
sudo netstat --udp --listening --programs --numeric|grep 5141
```

[it is intended to improve the performance of multithreaded network server applications running on top of multicore systems](https://lwn.net/Articles/542629/) and decrease number of dropped UDP messages (see [syslog udp message loss](https://axoflow.com/syslog-over-udp-message-loss-1/#))

_*Because this feature is experimental*_:
- it is not configurable
- may be removed in the near future


## Plugins

Expand Down

0 comments on commit 72933ff

Please sign in to comment.