inital
This commit is contained in:
commit
b6dafc7a73
9 changed files with 391 additions and 0 deletions
27
sysctl-proxmox.yaml
Normal file
27
sysctl-proxmox.yaml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
---
|
||||
- name: Sysctl Tuning fuer Proxmox Hosts
|
||||
hosts: proxmox
|
||||
become: true
|
||||
|
||||
tasks:
|
||||
|
||||
- name: Sysctl Parameter setzen
|
||||
ansible.posix.sysctl:
|
||||
name: "{{ item.key }}"
|
||||
value: "{{ item.value }}"
|
||||
sysctl_file: /etc/sysctl.d/99-proxmox-tuning.conf
|
||||
reload: true
|
||||
state: present
|
||||
loop:
|
||||
# KVM / Virtualisierung
|
||||
- { key: vm.overcommit_memory, value: "1" }
|
||||
- { key: vm.swappiness, value: "1" }
|
||||
# Viele VMs = viele File Handles
|
||||
- { key: fs.file-max, value: "9999999" }
|
||||
- { key: fs.inotify.max_user_watches, value: "524288" }
|
||||
- { key: fs.inotify.max_user_instances, value: "512" }
|
||||
# Routing zwischen VMs / Bridges
|
||||
- { key: net.ipv4.ip_forward, value: "1" }
|
||||
# WireGuard MTU-Anpassung
|
||||
# TODO: entfernen sobald WireGuard abgeschaltet wird
|
||||
- { key: net.ipv4.tcp_mtu_probing, value: "1" }
|
||||
Loading…
Add table
Add a link
Reference in a new issue