Skip to content

feat(ansible): Install tuned for performance tuning#2041

Merged
hunleyd merged 2 commits intodevelopfrom
INDATA-414
Feb 11, 2026
Merged

feat(ansible): Install tuned for performance tuning#2041
hunleyd merged 2 commits intodevelopfrom
INDATA-414

Conversation

@hunleyd
Copy link
Copy Markdown
Contributor

@hunleyd hunleyd commented Feb 9, 2026

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.

note that tuned is not enabled nor configured in this PR. that'll come later.

  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.
@hunleyd hunleyd marked this pull request as ready for review February 10, 2026 14:07
@hunleyd hunleyd requested review from a team as code owners February 10, 2026 14:07
@hunleyd hunleyd enabled auto-merge February 10, 2026 17:46
Copy link
Copy Markdown
Collaborator

@samrose samrose left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think this is good but wonder what tests we'll apply before promoting it to our release and production?

@hunleyd
Copy link
Copy Markdown
Contributor Author

hunleyd commented Feb 11, 2026

i think this is good but wonder what tests we'll apply before promoting it to our release and production?

In this PR we're simply ensuring the binary is installed. Ansible takes care of ensuring that happens. I'm not sure what else we'd need to test unless we want to verify /usr/bin/tuned is present? Or are you thinking more about checking that it's not started? @samrose

@hunleyd
Copy link
Copy Markdown
Contributor Author

hunleyd commented Feb 11, 2026

============================================================
Test Summary
============================================================

ENGINE          RESULT
------          ------
15              PASSED (410s)
17              PASSED (439s)
17-oriole       PASSED (669s)

============================================================
Total: 3 | Passed: 3 | Failed: 0
============================================================

[INFO] Postgres commit: 4d292a50c6e274c8bb703a1898914728da385cca
[INFO] Cache location: /Users/jimchancojr/.cache/supadev/postgres/4d292a50c6e274c8bb703a1898914728da385cca
[SUCCESS] All tests passed!
jimchancojr@Mac scripts % ./test-postgres-engines-with-smoke.sh https://github.com/supabase/postgres/pull/2041

thanks @jchancojr

@hunleyd
Copy link
Copy Markdown
Contributor Author

hunleyd commented Feb 11, 2026

[SUCCESS] Version 17.6.0.038-orioledb marked as withdrawn

============================================================
Test Summary
============================================================

ENGINE          RESULT
------          ------
15              PASSED (260s)
17              PASSED (238s)
17-oriole       PASSED (318s)

============================================================
Total: 3 | Passed: 3 | Failed: 0
============================================================
[SUCCESS] All tests passed!```

(non-smoke)

again, thx to @jchancojr 

@hunleyd hunleyd added this pull request to the merge queue Feb 11, 2026
Merged via the queue into develop with commit a4a8ed1 Feb 11, 2026
25 checks passed
@hunleyd hunleyd deleted the INDATA-414 branch February 11, 2026 19:33
encima pushed a commit that referenced this pull request Feb 23, 2026
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants