Jira (PUP-5646) fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used.
Title: Message Title Henrik Lindberg updated an issue Puppet / PUP-5646 fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used. Change By: Henrik Lindberg Story Points: 1 Release Notes Summary: Adding this to Language Triage to get a decision on which version this should go into. It is an overall improvement to have a better random number spread, but that can cause many resources to report change. That may not be wanted in a .z or even .y release. Sprint: Language Triage Scrum Team: Language Take the very typical code for once per day cron on 5 hosts named1.example.org, 2.example.org , ...{code}cron{'/bin/true': minute => fqdn_rand(60), hour=> fqdn_rand(24)}{code}There are 24 * 60 = 1440 cron slots in day but in reality even with 50,000 hostsonly 336 slots are ever used.The current fqdn_rand code is something like:{code}seed = Digest::MD5.hexdigest(h).hexhour = Puppet::Util.deterministic_rand(seed,24)min = Puppet::Util.deterministic_rand(seed,60){code}Our suspicion is that some where there is a construct N % 24 and an N % 60 which forces only the minute to ever besignificant value with the hour always predictable from the minute. Thiscan not be the whole picture because *336* cannot be explained.Whilst ignoring the underlying cause for now making following change to use the max number within the seed helps thingssignificantly. This breaks the relationship between *fqdn_rand(60)* and *fqdn_rand(24)* and we now get a flat distributionwith all 1440 cron slots being used.{code} seed = Digest::MD5.hexdigest("#{h}:24").hexhour = Puppet::Util.deterministic_rand(seed,24)seed = Digest::MD5.hexdigest("#{h}:60").hexmin = Puppet::Util.deterministic_rand(seed,60){code}The above would be a trivial patch to fqdn_rand.rb.Please find attached * test_fqdn.rb simulates 50,000 hosts with the existing and alternate seed method.* results.dat and results.png data and gnuplot of existing puppet code.* newresults.dat and newresults.png data and gnuplot of alternate method above.The .dat files are 24 by 60 matrix with a number of the occurrence of each cron slot used.The plots are similarly x
Jira (PUP-5646) fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used.
Title: Message Title Michael Smith commented on PUP-5646 Re: fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used. Branan Riley was going to chime in on this ticket. It may be better to create a new version with a more appropriate name - something that represents creating a hash key from the fqdn - and deprecate fqdn_rand. Due to the issues Henrik Lindberg outlined, it's unlikely we'll change this before a major release. Add Comment This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5646) fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used.
Title: Message Title Henrik Lindberg commented on PUP-5646 Re: fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used. We do not need another version of the function since it can just as well be called with a longer seed (it already supports that). People would have to change everywhere to use that anyway. The function actually provides a random number series seeded from the fqdn to make the series stable on every run. So, something like "stable_random_number_for_node()" Add Comment This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5646) fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used.
Title: Message Title Kylo Ginsberg commented on PUP-5646 Re: fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used. IIUC (doubtful), the discovery here is that: Digest::MD5.hexdigest("host1.example.com") Digest::MD5.hexdigest("host2.example.com") produce seeds that are too close to each other, but that: Digest::MD5.hexdigest("host1.example.com:24") Digest::MD5.hexdigest("host2.example.com:24") produce nicely spaced seeds? Is that right? If so, does anyone have intuitions about why? Add Comment
Jira (PUP-5646) fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used.
Title: Message Title Kylo Ginsberg commented on PUP-5646 Re: fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used. Btw, ignoring the "why does this work?" questions, and turning to the semver debate: this doesn't seem like a semver breaking change to me. It may be breaking behavior for someone who's relying on the distribution (or value) of fqdn_rand output, but that doesn't seem like a breach-of-contract (which is how I think of semver's "breaking API compatiblity"). Comments? Add Comment This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5646) fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used.
Title: Message Title Steve Traylen commented on PUP-5646 Re: fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used. It's not the distribution between host A and host B that is at sub optimal. It is the relationship between fqdn_rand(N) and fqdn_rand(M) on the one host which are seeded identically. Add Comment This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5646) fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used.
Title: Message Title Henrik Lindberg commented on PUP-5646 Re: fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used. The reason for the increased (better spread) is that the entropy in the hexdigest increases when the length of the string (and its entropy) increases. Entropy is important for a pseudo random number generator. Add Comment This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5646) fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used.
Title: Message Title Kylo Ginsberg commented on PUP-5646 Re: fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used. Steve Traylen ah, gotcha. Yes, the seeds today would be identical for all single-parameter invocations of fqdn_rand for a particular host. Add Comment This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5646) fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used.
Title: Message Title Michael Smith commented on PUP-5646 Re: fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used. Eric Sorenson we've been debating whether this change could be done in a minor release, or should be reserved for Puppet 5. Care to weigh in? Add Comment This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5646) fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used.
Title: Message Title Eric Sorenson commented on PUP-5646 Re: fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used. I agree with Kylo's comment above; I'm trying and failing to imagine a case where the exact value produced by a random number generator is an API contract. That said it would be worth a release note that people will see changes in their reports the first time the catalog generated by the fixed function is applies. Add Comment This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5646) fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used.
Title: Message Title Henrik Lindberg commented on PUP-5646 Re: fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used. Thanks Eric Sorenson, then we can just add this. It should be an improvement for everyone. Add Comment This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5646) fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used.
Title: Message Title Henrik Lindberg updated an issue Puppet / PUP-5646 fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used. Change By: Henrik Lindberg Fix Version/s: PUP 4.3.3 Add Comment This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5646) fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used.
Title: Message Title Henrik Lindberg commented on PUP-5646 Re: fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used. merged to master at: 053ac5a Add Comment This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5646) fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used.
Title: Message Title Michael Smith commented on PUP-5646 Re: fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used. It's master, so the release will likely be 4.4.0. Add Comment This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5646) fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used.
Title: Message Title Michael Smith updated an issue Puppet / PUP-5646 fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used. Change By: Michael Smith Fix Version/s: PUP 4.3.3 Fix Version/s: PUP 4.4.0 Add Comment This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5646) fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used.
Title: Message Title Henrik Lindberg updated an issue Puppet / PUP-5646 fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used. Change By: Henrik Lindberg Release Notes Summary: Adding this The fqdn_rand function when used to Language Triage to get produce a decision on which version this should go into series of random values for a node in a given range did not produce an even (random) spread over the range . It This has now been improved by lengthening the salt that is an overall improvement used to have produce the series.As a better consequence those resources (cron entries, resources with titles generated containing a random number spread , but that can cause many resources to report change etc . That ) may not be wanted reported as having changed the first time the version containing this fix is in a use . z or even .y release. Release Notes: Bug Fix Fix Version/s: PUP 4.4.0 Fix Version/s: PUP 4.3.3 Add Comment This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc)
Jira (PUP-5646) fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used.
Title: Message Title Henrik Lindberg updated an issue Puppet / PUP-5646 fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used. Change By: Henrik Lindberg Scope Change Category: Found Scope Change Reason: From community, was just waiting on decision. Sprint: Language Triage 2016-01-27 Add Comment This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5646) fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used.
Title: Message Title Henrik Lindberg updated an issue Puppet / PUP-5646 fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used. Change By: Henrik Lindberg Fix Version/s: PUP 4.3.3 Fix Version/s: PUP 4.4.0 Add Comment This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5646) fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used.
Title: Message Title Steve Traylen commented on PUP-5646 Re: fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used. Many thanks to all. Add Comment This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5646) fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used.
Title: Message Title Steve Barlow updated an issue Puppet / PUP-5646 fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used. Change By: Steve Barlow Sprint: Language 2016-01-27 , Language 2016-02-10 Add Comment This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5646) fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used.
Title: Message Title Branan Riley assigned an issue to qa Puppet / PUP-5646 fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used. Change By: Branan Riley Status: Ready for CI Test Assignee: qa Add Comment This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5646) fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used.
Title: Message Title Eric Thompson updated an issue Puppet / PUP-5646 fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used. Change By: Eric Thompson QA Risk Assessment: Medium Add Comment This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5646) fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used.
Title: Message Title John Duarte updated an issue Puppet / PUP-5646 fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used. Change By: John Duarte QA Status: Reviewed Add Comment This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5646) fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used.
Title: Message Title Eric Thompson assigned an issue to Eric Thompson Puppet / PUP-5646 fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used. Change By: Eric Thompson Assignee: qa Eric Thompson Add Comment This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5646) fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used.
Title: Message Title Eric Thompson updated an issue Puppet / PUP-5646 fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used. Change By: Eric Thompson Attachment: random_nums.txt Add Comment This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5646) fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used.
Title: Message Title Eric Thompson commented on PUP-5646 Re: fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used. at master SHA=5b8f627b259686a281ddee395dba0de74e9ef289 i tried many things to get a good distribution test on the new fqdn_rand. i ended up with 1000 individual puppet apply runs doing (each): #$size = range("1","10") # this produces all the same value because, map: #$randos = $size.map |$val| { fqdn_rand(24) * fqdn_rand(60) } # this is skewed by $val in non-deterministic ways #$randos = $size.map |$val| { fqdn_rand(24+$val) * fqdn_rand(60+$val) } #notice($randos) #notice("min: ${min(*$randos)} max: ${max(*$randos)}") # $fqdn doesn't change after run init #$size.each |Integer $val| { file {"/root/random_nums.txt":
Jira (PUP-5646) fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used.
Title: Message Title Eric Thompson updated an issue Puppet / PUP-5646 fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used. Change By: Eric Thompson QA Highest Test Level: Unit Add Comment This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5646) fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used.
Title: Message Title Eric Thompson updated an issue Puppet / PUP-5646 fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used. Change By: Eric Thompson QA Highest Test Level Reason: too slow to test in acceptance Add Comment This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5646) fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used.
Title: Message Title Steve Traylen created an issue Puppet / PUP-5646 fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used. Issue Type: Bug Assignee: Unassigned Attachments: newresults.dat, newresults.png, results.dat, results.png, test_fqdn.rb Created: 2016/01/04 7:15 AM Priority: Normal Reporter: Steve Traylen Take the very typical code for once per day cron on 5 hosts named 1.example.org, 2.example.org , ... cron{'/bin/true': minute => fqdn_rand(60), hour=> fqdn_rand(24)
Jira (PUP-5646) fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used.
Title: Message Title Steve Traylen commented on PUP-5646 Re: fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used. https://github.com/puppetlabs/puppet/pull/4543 implements to the trivial change to include max in the seed input. Add Comment This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5646) fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used.
Title: Message Title Steve Traylen commented on PUP-5646 Re: fqdn_rand in real world - only 336 of possible 1440 daily cron slots ever used. I have some deployed numbers now for comparison. For a weekly cron job cron{'/bin/true': hour => fqdn_rand(24), min => fqdn_rand(60), day => fqdn_rand(7) } There should be 24 * 60 * 7 = 10080 possible slots for the above cron job. production env with 14865 hosts only 638 slots are used. qa env with 1878 hosts we are using 1699 slots. The qa env has the proposed change. Add Comment