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

(PUP-12071) Increase default value for number_of_facts_soft_limit #9488

Conversation

AriaXLi
Copy link
Contributor

@AriaXLi AriaXLi commented Sep 26, 2024

This commit increases default value of number_of_facts_soft_limit from 2048 to 2048 * 5 = 10240.

2048 is too small for number_of_facts_soft_limit because:

  • The _package_inventory_1 fact in PE will report packages present by multiple providers which results in a package being reported up to 3 times and _package_inventory_1 to be have many more fact values than expected
  • A default PE install reports 5019 fact values which already exceeds the previous limit, 2048.

Taking into account the issues above and the feedback from Vox Pupuli in the Puppet Community Slack about their fact count, 10240 is a more suitable limit.

@AriaXLi AriaXLi requested a review from a team as a code owner September 26, 2024 22:11
@AriaXLi
Copy link
Contributor Author

AriaXLi commented Sep 26, 2024

If anyone is curious about the feedback Vox Pupuli community members provided: https://puppetcommunity.slack.com/archives/C0W1Y5VL0/p1727195872652739

@AriaXLi AriaXLi force-pushed the PUP-12071/increase_number_of_facts_soft_limit branch from e26a3ae to 1bc0fae Compare September 26, 2024 22:33
This commit increases default value of `number_of_facts_soft_limit` from 2048
to 2048 * 5 = 10240.

2048 is too small for `number_of_facts_soft_limit` because:
  - The `_package_inventory_1` fact in PE will report packages present by
  multiple providers which results in a package being reported up to 3 times and
  `_package_inventory_1` to be have many more fact values than expected
  - A default PE install reports 5019 fact values which already exceeds the
  previous limit, 2048.

Taking into account the issues above and the feedback from Vox Pupuli in the
Puppet Community Slack about their fact count, 10240 is a more suitable limit.
@AriaXLi AriaXLi force-pushed the PUP-12071/increase_number_of_facts_soft_limit branch from 1bc0fae to 791c216 Compare September 26, 2024 22:51
@joshcooper joshcooper merged commit a861c0c into puppetlabs:main Sep 27, 2024
11 checks passed
@joshcooper joshcooper added the bug Something isn't working label Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants