arillso.system.tuning role – Apply system performance tuning configurations
Note
This role is part of the arillso.system collection (version 1.0.5).
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it use: ansible-galaxy collection install arillso.system.
To use it in a playbook, specify: arillso.system.tuning.
Entry point main – Apply system performance tuning configurations
Synopsis
This role configures system-level performance tuning including sysctl parameters, network tuning, I/O schedulers, CPU governors, and security limits for optimized server performance.
Parameters
Parameter |
Comments |
|---|---|
CPU governor to use. Set to ‘auto’ for automatic detection based on CPU type. Default: |
|
Override automatic CPU governor detection |
|
Kernel parameters to append to GRUB configuration Default: |
|
I/O scheduler to use. Set to ‘auto’ for automatic detection based on storage type. Default: |
|
List of specific block devices to apply I/O scheduler settings to Default: |
|
Override automatic I/O scheduler detection |
|
List of network interface ring buffer configurations Default: |
|
Network interface name (e.g., eth0, ens3) |
|
Receive ring buffer size |
|
Transmit ring buffer size |
|
Additional network-specific sysctl parameters. Keys are sysctl parameter names (e.g. net.ipv4.tcp_window_scaling, net.ipv4.tcp_timestamps, net.ipv4.ip_local_port_range). See defaults/main.yml for the full set of default parameters. Default: |
|
Path to network sysctl configuration file Default: |
|
Enable network-specific tuning Choices:
|
|
List of packages required for tuning (auto-detected based on OS family) Default: |
|
List of security limit configurations Default: |
|
User or group domain (e.g., ‘*’, ‘@group’, ‘user’) |
|
Resource item (e.g., nofile, nproc, memlock) |
|
Limit type (soft or hard) Choices:
|
|
Limit value |
|
Enable swap file creation Choices:
|
|
Path to swap file Default: |
|
Swap file size in megabytes Default: |
|
Swappiness value (0-100, lower = less swap usage) Default: |
|
Dictionary of sysctl parameters for performance tuning. Keys are sysctl parameter names (e.g. vm.dirty_ratio, net.core.rmem_max, fs.file-max, kernel.pid_max). Values are the desired settings. See defaults/main.yml for the full set of default parameters. Default: |
|
Path to sysctl configuration file Default: |
|
Transparent Huge Pages configuration Choices:
|
|
Tuned profile to apply Default: |
|
Validate settings before applying Choices:
|