EXPERIMENT: Auto-tune PostgreSQL parameters#356
Draft
pablomh wants to merge 1 commit intotheforeman:masterfrom
Draft
EXPERIMENT: Auto-tune PostgreSQL parameters#356pablomh wants to merge 1 commit intotheforeman:masterfrom
pablomh wants to merge 1 commit intotheforeman:masterfrom
Conversation
9c3b2e0 to
681c4e9
Compare
ehelms
reviewed
Dec 11, 2025
| postgresql_max_connections: 500 | ||
| postgresql_shared_buffers: 512MB | ||
| postgresql_effective_cache_size: 1GB | ||
| postgresql_pulp_connections_count: "{{ pulp_worker_count + pulp_content_service_worker_count + pulp_api_service_worker_count }}" |
Member
There was a problem hiding this comment.
On the design, as we aim for role isolation, this should not reference the other roles variables. The right place would be something like vars/defaults.yml like you have in the PR.
Contributor
Author
There was a problem hiding this comment.
PTAL at the new version.
090aaed to
5f7b04d
Compare
Open
5f7b04d to
489a5da
Compare
489a5da to
024a7ea
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is opened for people to comment on it :)
Something similar to this is how I envision we should autoconfigure (at least) PostgrSQL tuning.
All the numbers derive only from one variable:
foreman_puma_threads_max, which (right now) would be the only one to "play" with.This approach tries to come up with similar figures to what current
--tuningwould return for the same hardware.