initial pfannkuchen
This commit is contained in:
parent
b6dafc7a73
commit
4d305fa19f
99 changed files with 3575 additions and 321 deletions
43
sysctl.yaml
43
sysctl.yaml
|
|
@ -1,41 +1,6 @@
|
|||
---
|
||||
- name: Sysctl Tuning fuer Emby
|
||||
- name: Sysctl Tuning fuer Streaming-VMs
|
||||
hosts: all
|
||||
become: true
|
||||
|
||||
tasks:
|
||||
|
||||
- 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" }
|
||||
# RAM ist reichlich vorhanden, Transcoding auf tmpfs
|
||||
- { key: vm.swappiness, value: "1" }
|
||||
- { key: vm.dirty_ratio, value: "15" }
|
||||
- { key: vm.dirty_background_ratio, value: "5" }
|
||||
become: yes
|
||||
roles:
|
||||
- sysctl
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue