Skip to content
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

Fixes #33445: Increase default API gunicorn worker count #231

Merged
merged 1 commit into from
Oct 4, 2021

Conversation

jlsherrill
Copy link
Contributor

This increases the default API gunicorn worker count to be similar
to that of content worker count but with a smaller minimum. There
are different workloads that can require higher throughput through
the API and the current default of 1 is too low of a starting point.

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

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

👍 for this in general, but could you this line:

is_expected.to contain_systemd__unit_file('pulpcore-api.service')

is_expected.to contain_systemd__unit_file('pulpcore-api.service').with_content(%r{-w 2})

That should verify that when there's 1 processor (see line 6) it has 2 workers.

This increases the default API gunicorn worker count to be similar
to that of content worker count but with a smaller minimum. There
are different workloads that can require higher throughput through
the API and the current default of 1 is too low of a starting point.
@jlsherrill
Copy link
Contributor Author

updated with test!

@ekohl ekohl added the Enhancement New feature or request label Oct 4, 2021
@ekohl ekohl merged commit 2da9965 into theforeman:master Oct 4, 2021
@jlsherrill jlsherrill deleted the ehelms-fixes-33445 branch October 4, 2021 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request Needs testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants