A colleague, now retired, wrote the attached piece of python - clearly you would need to customise this as it does things with our domain name to get the correct string to hash. I hope this helps.
Chris Ritson (Computing Officer and School Safety Officer) Room 707, Claremont Tower, EMAIL: c.r.rit...@ncl.ac.uk School of Computing Science, PHONE: +44 191 222 8175 Newcastle University, FAX : +44 191 222 8232 Newcastle upon Tyne, UK NE1 7RU. WEB : http://www.cs.ncl.ac.uk/ >-----Original Message----- >From: help-cfengine-boun...@cfengine.org [mailto:help-cfengine- >boun...@cfengine.org] On Behalf Of Justin Lloyd >Sent: 25 February 2010 16:51 >To: Help-cfengine >Subject: Splaytime and hostname hashing > >The documentation states that splaytime specifies an integer number of >minutes by which cf-execd's execution of cf-agent should be delayed. It >states the delay is between 0 and splaytime minutes, which to nitpick >should really read "0 to (splaytime * 60) seconds", since otherwise it >could be misinterpreted as meaning the delay would be an integer number >of minutes. > >Further, it mentions, basically in passing, that the specific delay for >a given host is based on the hash of that hostname (the algorithm for >which is in files_hashes.c, FWIW). Unless there's a way to do this that >I'm not seeing, I would be interested in being able to access and report >on hosts' hash values to see how well distributed they are. In other >words, if I have 1000 systems, I'd like to know the distribution of >their splaytimes to know how many systems will access policy servers, >etc. during an execution. This would be useful in tuning both splaytime >and the schedule variable in the executor control body, especially as an >environment grows. > >Has anyone done anything along these lines with existing information, or >is this something I should put in a ticket for? > >Thanks, >Justin > >-- >Justin C. Lloyd >Unix Infrastructure Engineer >DigitalGlobe, An Imaging and Information Company > > >This electronic communication and any attachments may contain >confidential and proprietary >information of DigitalGlobe, Inc. If you are not the intended recipient, >or an agent or employee >responsible for delivering this communication to the intended recipient, >or if you have received >this communication in error, please do not print, copy, retransmit, >disseminate or >otherwise use the information. Please indicate to the sender that you >have received this >communication in error, and delete the copy you received. DigitalGlobe >reserves the >right to monitor any electronic communication sent or received by its >employees, agents >or representatives. > >_______________________________________________ >Help-cfengine mailing list >Help-cfengine@cfengine.org >https://cfengine.org/mailman/listinfo/help-cfengine
splaytime
Description: splaytime
_______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine