Where are you guys seeing docs for this "H Token" thing?

Can you send a specific URL?  (Google didn't find it for me and Jenkins "?" 
doesn't show it as an option.)

Frank

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Mandeville, Rob
Sent: Thursday, February 14, 2013 5:50 AM
To: 'jenkinsci-users@googlegroups.com'
Subject: RE: Periodic even build question

If I read things correctly, the 'H' syntax gives you a pseudo-random start time 
(the same one for a given job), not an even one.

If you only had one job to run, 'H/15 * * * *' would run it every fifteen 
minutes, but that could either be :00, :15, :30, :45 or :04, :19, :34, :49, or 
something like that.
If you have a bunch of different jobs to schedule every fifteen minutes but 
don't want them to all kick off at the same time, then giving them all H/15 
schedules would give each job a fifteen-minute schedule.  On average, they'd 
scatter around that period for even loading, but you might get unlucky and have 
them all end up with the same schedule.

If you really want to enforce even loading, maybe you want to use the same 
nodes for them all and just limit the number of executors on those nodes.  If 
you have ten of these fifteen-minute jobs and only want one to run at a time, 
point them all to a one-galleon node.  Even if they all kick off at once, 
they'll still only run one at a time.  But they might not run in the same order 
all the time, so you could have five or twenty-five minutes between runs 
depending on the scheduler.

If you really, really want to enforce even loading with every-fifteen-minute 
running times, I think you're going to have to go "longhand", decide which ones 
launch on which minute, and set them up by hand.  I believe the cron entries 
would be like:

*/15 * * * *       # :00, :15, :30, :45
1-59/15 * * * * # :01, :16, :31, :46
2-59/15 * * * * # :02, :17, :32, :47
etc.

--Rob

From: jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com> 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Octavian Covalschi
Sent: Wednesday, February 13, 2013 5:06 PM
To: jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com>
Subject: Periodic even build question

Hello,

I'm trying to setup periodic builds for a few dozens of jobs, but in the same 
time I'd like to even the load... so for example, I need to run them at every 
15min, but would like to even the load... is it possible?

I saw the 'H'  token, but I'm not sure If it can help me...

The closest valid syntax I was able to put together is:

H(0-14),H(15-29),H(30-44),H(45-59) * * * *

But, I don't thinks it's what I need, since the 1st H may trigger it at min 13 
and 2nd H may trigger it at min 16, so I'll get 3 min interval, but I need ~15

Thank you in advance.
--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
jenkinsci-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/groups/opt_out.


The information in this message is for the intended recipient(s) only and may 
be the proprietary and/or confidential property of Litle & Co., LLC, and thus 
protected from disclosure. If you are not the intended recipient(s), or an 
employee or agent responsible for delivering this message to the intended 
recipient, you are hereby notified that any use, dissemination, distribution or 
copying of this communication is prohibited. If you have received this 
communication in error, please notify Litle & Co. immediately by replying to 
this message and then promptly deleting it and your reply permanently from your 
computer.
--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
jenkinsci-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/groups/opt_out.


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to