initial pfannkuchen
This commit is contained in:
parent
b6dafc7a73
commit
4d305fa19f
99 changed files with 3575 additions and 321 deletions
41
roles/sysctl/tasks/main.yml
Normal file
41
roles/sysctl/tasks/main.yml
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
---
|
||||
- name: BBR Kernel Modul laden
|
||||
ansible.builtin.modprobe:
|
||||
name: tcp_bbr
|
||||
state: present
|
||||
|
||||
- name: BBR Modul beim Boot laden
|
||||
ansible.builtin.copy:
|
||||
content: "tcp_bbr\n"
|
||||
dest: /etc/modules-load.d/bbr.conf
|
||||
mode: "0644"
|
||||
|
||||
- name: Sysctl Parameter setzen
|
||||
ansible.posix.sysctl:
|
||||
name: "{{ item.key }}"
|
||||
value: "{{ item.value }}"
|
||||
sysctl_file: /etc/sysctl.d/99-net-tuning.conf
|
||||
reload: true
|
||||
state: present
|
||||
loop:
|
||||
- { key: net.core.rmem_default, value: "262144" }
|
||||
- { key: net.core.wmem_default, value: "262144" }
|
||||
- { key: net.core.rmem_max, value: "67108864" }
|
||||
- { key: net.core.wmem_max, value: "67108864" }
|
||||
- { key: net.ipv4.tcp_rmem, value: "4096 87380 67108864" }
|
||||
- { key: net.ipv4.tcp_wmem, value: "4096 65536 67108864" }
|
||||
- { key: net.ipv4.tcp_window_scaling, value: "1" }
|
||||
- { key: net.ipv4.tcp_congestion_control, value: "bbr" }
|
||||
- { key: net.ipv4.tcp_slow_start_after_idle, value: "0" }
|
||||
- { key: net.ipv4.tcp_fastopen, value: "3" }
|
||||
- { key: net.core.netdev_max_backlog, value: "16384" }
|
||||
- { key: net.core.somaxconn, value: "4096" }
|
||||
- { key: net.ipv4.tcp_notsent_lowat, value: "16384" }
|
||||
- { key: net.ipv4.tcp_fin_timeout, value: "15" }
|
||||
- { key: net.ipv4.tcp_tw_reuse, value: "1" }
|
||||
- { key: vm.swappiness, value: "1" }
|
||||
- { key: vm.dirty_ratio, value: "15" }
|
||||
- { key: vm.dirty_background_ratio, value: "5" }
|
||||
- { key: net.ipv4.tcp_mtu_probing, value: "1" }
|
||||
- { key: net.ipv4.ip_forward, value: "1" }
|
||||
- { key: net.ipv6.conf.all.forwarding, value: "1" }
|
||||
Loading…
Add table
Add a link
Reference in a new issue