You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Puppet agents print a warning if the number of fact values exceeds its soft limit:
Warning: The current total number of facts: 5787 exceeds the number of facts limit: 2048
However, the wording "total number of facts" is confusing, because it sounds like it's the number of facts, when really the problem is the number of values that the facts are producing, due to nested arrays and hashes like the _puppet_inventory_1 fact in PE.
Expected Behavior
The message should say something like
The total number of fact values X exceeds the fact values limit Y
The documentation for the number_of_facts_soft_limit should be updated so its clear we're counting the leaves of structured facts.
Steps to Reproduce
Steps to reproduce the behavior:
# cat <<END > /opt/puppetlabs/facter/facts.d/many.rb
#!/opt/puppetlabs/puppet/bin/ruby
require 'json'
puts JSON.dump("many" => [*1..3000])
END
# puppet agent -t
/opt/puppetlabs/puppet/bin/puppet agent -t
Info: Using environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Warning: The current total number of facts: 3323 exceeds the number of facts limit: 2048
Environment
Version 8.4.0 and 7.28.0
Additional Context
This behavior is occurring because we corrected how fact values are counted, see f33de24
The text was updated successfully, but these errors were encountered:
Describe the Bug
Puppet agents print a warning if the number of fact values exceeds its soft limit:
Warning: The current total number of facts: 5787 exceeds the number of facts limit: 2048
However, the wording "total number of facts" is confusing, because it sounds like it's the number of facts, when really the problem is the number of values that the facts are producing, due to nested arrays and hashes like the
_puppet_inventory_1
fact in PE.Expected Behavior
The message should say something like
The total number of fact values X exceeds the fact values limit Y
See https://puppetcommunity.slack.com/archives/CFD8Z9A4T/p1705430272043379?thread_ts=1705428680.188929&cid=CFD8Z9A4T
The documentation for the
number_of_facts_soft_limit
should be updated so its clear we're counting the leaves of structured facts.Steps to Reproduce
Steps to reproduce the behavior:
Environment
Additional Context
This behavior is occurring because we corrected how fact values are counted, see f33de24
The text was updated successfully, but these errors were encountered: