Check/expand network socket buffers during startup using sysctl

Description

When you are processing a large number and/or volume of packets on Linux, it's usually a good idea to expand some of the kernel network buffers to make sure that packets are not dropped by the kernel before they can be processed.

The socket buffer sizes are set to very conservative values by default:

We should check the socket buffer sizes (using sysctl) and probably expand them by default when OpenNMS or Minion starts up.

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Seth Leger February 21, 2017 at 12:33 PM

It would be more correct to do this with an /etc/sysctl.d file since that is the expected location to put sysctl settings. We can put the settings in a file like /etc/sysctl.d/minion.conf and then they will load on system boot. We could add a sysctl -p /etc/sysctl.d/minion.conf to our scripts to be extra sure that the settings are loaded.

Details

Assignee

Reporter

Labels

Components

Affects versions

Priority

PagerDuty

Created January 18, 2017 at 11:41 AM
Updated September 21, 2021 at 9:15 PM