Hi all,

This follows discussion on puppet users with Andrew Beresford 
https://groups.google.com/forum/?fromgroups=&pli=1#!topic/puppet-users/rOj9OszhlQM

I was hoping to get more input from the community; now trying puppet 
developers for some advice.

Summary of discussion is we've found the processorcount fact counts CPU 
threads on linux but CPU cores on Solaris.  The behaviour on Solaris 
violates the principle of least surprise for my colleagues and I.  Our 
first reaction was it is a bug.  Question is what we can do about it now 
that these facts are out there in the wild.

Andrew Beresford (who found conversely that the linux behaviour was more 
surprising to him) suggested we create new facts - processorcorecount and 
processorthreadcount and then deprecate processorcount.  I'm a bit agnostic 
on the matter.  Certainly I can't volunteer to implement the new facts on 
all platforms for lack of both time and access to all the platforms to test 
on.

Another option presumably is simply to change the Solaris processorcount 
fact to do the same as what it does on linux.  This could arguably be 
described as either a bugfix or a non-backwards compatible change depending 
on your perspective.  Certainly, having the fact count different things on 
Solaris & Linux appears to be an error.

Anyhow would be good to get the advice of Puppet Labs on this one.

Best regards,
Alex Harvey

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-dev/-/GZEBOO_xeoMJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to