Skip to content

Commit a4a8ed1

Browse files
authored
feat(ansible): Install tuned for performance tuning (#2041)
* feat(ansible): Install tuned for performance tuning This commit introduces the tuned service to the Ansible playbook to enable dynamic system performance optimization. The changes include: - A new task ansible/tasks/setup-tuned.yml is created to handle the installation of the tuned package via apt. - The main ansible/playbook.yml is updated to import and execute this new task. - The installation is conditional and only runs when the stage2_nix variable is true, allowing for flexibility in different build stages. By installing tuned, the system can be better optimized for various workloads, which is particularly beneficial for database performance. * empty commit to tickle CI since GH is back
1 parent 7daa987 commit a4a8ed1

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

ansible/playbook.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
- set_fact:
2727
parallel_jobs: 16
2828

29+
- name: Install tuned
30+
import_tasks: tasks/setup-tuned.yml
31+
2932
- name: Install Postgres from source
3033
import_tasks: tasks/setup-postgres.yml
3134

ansible/tasks/setup-tuned.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
- name: Install tuned
2+
ansible.builtin.apt:
3+
force_apt_get: true
4+
name: tuned
5+
policy_rc_d: 101
6+
state: 'present'
7+
update_cache: true
8+
become: true
9+
when:
10+
- stage2_nix

0 commit comments

Comments
 (0)