From 04f714a0d02974825f1fa256dfb7cc6dde004b53 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Fri, 8 Dec 2017 15:28:16 +0100 Subject: [PATCH] Enable TCP BBR on a bunch of hosts. Not all for now, but maybe we should. (re: RT#6990) --- manifests/site.pp | 1 + modules/tcp_bbr/manifests/init.pp | 46 +++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 modules/tcp_bbr/manifests/init.pp diff --git a/manifests/site.pp b/manifests/site.pp index 12e8e51e3..fc283db24 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -44,6 +44,7 @@ node default { include postgres include haveged include huge_mem + include tcp_bbr if $::lsbdistcodename == squeeze { include roles::udldap::client diff --git a/modules/tcp_bbr/manifests/init.pp b/modules/tcp_bbr/manifests/init.pp new file mode 100644 index 000000000..ac7470f78 --- /dev/null +++ b/modules/tcp_bbr/manifests/init.pp @@ -0,0 +1,46 @@ +class tcp_bbr { + # this is included by all hosts, + # so filtering needs to happen here. + + if + has_role('api.ftp-master') or + has_role('bacula_storage') or + has_role('bugs_master') or + has_role('bugs_mirror') or + has_role('debian_mirror') or + has_role('debug_mirror') or + has_role('dgit_git') or + has_role('ftp.d.o') or + has_role('ftp.upload.d.o') or + has_role('ftp_master') or + has_role('git_master') or + has_role('historical_master') or + has_role('historical_mirror') or + has_role('ports_master') or + has_role('ports_mirror') or + has_role('postgres_backup_server') or + has_role('postgresql_server') or + has_role('security_master') or + has_role('security_mirror') or + has_role('security_upload') or + has_role('ssh.upload.d.o') or + has_role('static_master') or + has_role('static_mirror') or + has_role('static_source') or + has_role('syncproxy') or + has_role('www_master') or + false { + + site::linux_module { 'tcp_bbr': } + site::linux_module { 'sch_fq': } + + site::sysctl { 'puppet-net_core_default_qdisc': + key => 'net.core.default_qdisc', + value => 'fq', + } + site::sysctl { 'puppet-net_ipv4_tcp_congestion_control': + key => 'net.ipv4.tcp_congestion_control', + value => 'bbr', + } + } +} -- 2.20.1