On Thursday, November 7, 2013 6:53:25 PM UTC-6, David Mesler wrote:
>
> Well I found the cause of my 1% duplication rate. I was using the 
> recommendation from this page (
> http://projects.puppetlabs.com/projects/mcollective-plugins/wiki/FactsFacterYAML)
>  
> to generate a facts.yaml file for mcollective.
>


Most likely that would be because of the 'content' parameter of resource 
File['/etc/mcollective/facts.yaml'].  The values of resource parameters are 
part of the catalog, so to the extent that nodes have different facts 
($::hostname, for instance) their catalogs will differ.  That seems to 
present a fundamental problem for scaling to large numbers of nodes when 
you're also using PuppetDB.

 

> I got rid of that and my catalog duplication went up to 73%. I'm not sure 
> what else is changing, my catalogs are huge and I don't know how to diff 
> unsorted json files. 
>
>

A quick and dirty way to compare would be simply to pass the catalogs 
through 'sort' before 'diff'ing them.  Doing so will trash the json 
structure, but you should still get some useful information out of it.  At 
minimum you will find out whether there are few or many differences between 
your catalogs, and you should get at least a general idea about what 
differs.  This would be most effective if applied to catalogs that are 
distinct with the facts.yaml generation in place, but duplicate without.



John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/857f7988-2c26-49d5-a349-fbd57bb0f223%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to