Increase udp buffer sizes when installing afs client

Linux default udp buffer sizes are somewhat small if sending much udp
traffic. Openafs uses udp for all of its traffic so we increase the
buffer size to 25MB.

Change-Id: I62b86fa41e27d3b70c62afc0f069db44e61a7f31
This commit is contained in:
Clark Boylan 2019-12-05 15:41:46 -08:00
parent 3b4ec70584
commit c19f2b0b2c
1 changed files with 10 additions and 0 deletions

View File

@ -24,6 +24,16 @@ class openafs::client (
ensure => present,
}
file_line { 'UDP default buffer size':
path => '/etc/sysctl.conf',
line => 'net.core.rmem_default=26214400',
}
file_line { 'UDP max buffer size':
path => '/etc/sysctl.conf',
line => 'net.core.rmem_max=26214400',
}
if ($::osfamily == 'RedHat') {
# There is no official release of AFS for RHEL/CentOS7 at this