-
Notifications
You must be signed in to change notification settings - Fork 106
Pulp tunings #2565
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pulp tunings #2565
Changes from 3 commits
77b2446
4446b96
ccf2b85
1e9cd9c
81c0615
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| [id="Pulp_Tunings_{context}"] | ||
| = Pulp Tunings | ||
|
|
||
| Pulp is a service that handles repository and content management.Pulp ensures efficient storage space by not duplicating RPM packages even when requested by Content Views in different organizations. | ||
ekohl marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,31 @@ | ||||||
| [id="Configuring_Pulpcore_API-Workers_{context}"] | ||||||
| = Configuring Pulpcore API Workers | ||||||
|
|
||||||
| The pulpcore-api workers responds to incoming API requests. Less api workers consume less memory and results in better performance. | ||||||
ekohl marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
|
|
||||||
| For example, we have compared these two setups: | ||||||
|
|
||||||
| [width="100%",cols="50%,50%",options="header",] | ||||||
| |=== | ||||||
| |{Project} VM with 8 CPUs, 32 GiB RAM, 3 pulpcore-api_workers |{Project} VM with 8 CPUs, 32 GiB RAM, 10 pulpcore-api_workers | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The default tuning for this is |
||||||
| |=== | ||||||
|
|
||||||
| Outcome looks similar in both cases, so the recommendation would be to lower the number of api workers because of the improvement in memory consumption. | ||||||
ekohl marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
|
|
||||||
| .Use the below procedure to tune the pulpcore API workers: | ||||||
|
|
||||||
Imaanpreet marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| . Update the pulpcore api_service_worker_count on your {ProjectServer} or {SmartProxyServer} in the custom-hiera.yaml file.: | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
I am unsure if we should recommend users editing this file vs. using foreman-installer.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've always taken a stance that If there's always a recommendation to lower the number of workers, that should be filed as a bug. Telling users "we have poor defaults, always change this" is a poor experience. My suggestion is to drop this chapter altogether.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And if it is common to change it, an RFE to add a parameter as was done with the worker count is also a valid solution.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hello @ekohl: I totally agree on
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm questioning the usefulness of
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. cool, let's drop this section.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hello @ekohl , I have removed this chapter Regarding
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Currently this is the code that sets it: https://projects.theforeman.org/issues/36957 was opened by @maximiliankolb to expose a parameter for this and I just opened theforeman/puppet-foreman_proxy_content#467. I still think that most users shouldn't touch this and if our default tuning is poor, then it should be fixed. |
||||||
| + | ||||||
| [options="nowrap", subs="+quotes,verbatim,attributes"] | ||||||
| ---- | ||||||
| pulpcore::api_service_worker_count: X | ||||||
| ---- | ||||||
| + | ||||||
| . Run the installer to apply your changes: | ||||||
| + | ||||||
| [options="nowrap", subs="+quotes,verbatim,attributes"] | ||||||
| ---- | ||||||
| foreman-installer | ||||||
| ---- | ||||||
| + | ||||||
|
|
||||||
Imaanpreet marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| [id="Configuring_Pulpcore_Workers_{context}"] | ||
| = Configuring Pulpcore Workers | ||
|
|
||
| The pulpcore workers are the ones that fetch things from the content delivery network, process metadata etc. and the number of those will have an influence on the sync performance. | ||
|
|
||
| Decreasing the number does not give any benefit from the sync speed point of view. | ||
| Increasing the number gives a marginal benefit from the sync speed point of view, at the expense of almost doubling system load and increasing the PG load. | ||
ekohl marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| For example, we have compared these two setups: | ||
|
|
||
| [width="100%",cols="50%,50%",options="header",] | ||
| |=== | ||
| |{Project} VM with 8 CPUs, 32 GiB RAM, 4 pulpcore-api_workers |{Project} VM with 8 CPUs, 32 GiB RAM, 16 pulpcore-api_workers | ||
| |=== | ||
|
|
||
| .Use the below procedure to tune the pulpcore workers: | ||
|
|
||
Imaanpreet marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| . Update the pulpcore worker_count on your {ProjectServer} or {SmartProxyServer} : | ||
| + | ||
| [options="nowrap", subs="+quotes,verbatim,attributes"] | ||
| ---- | ||
| foreman-installer --foreman-proxy-content-pulpcore-worker-count=X | ||
Imaanpreet marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ---- | ||
| + | ||
Imaanpreet marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
Uh oh!
There was an error while loading. Please reload this page.