Priority Sorter plugin fair queuing

21 views
Skip to first unread message

ambrose nikale

unread,
Jul 10, 2015, 10:47:41 AM7/10/15
to jenkins...@googlegroups.com
Hi,

I am trying to understand how fair queuing and weighted fair queuing works.

I set the priority strategy as Absolute and started multiple builds of the a single job with different priorities and teh jobs queued up in the priority order and not he order in which they were started as expected but,
when I changed the strategy to fair queuing, I could not see the expected results, in-fact i did not observe any sorting in the queue. the builds ran in order they were started.
Same was observed with weighted fair queuing.
I tried increasing the run time for the job, so jobs would be queued up for more time, but did not see expected results.

Can someone help me understand this.


Magnus Sandberg

unread,
Aug 17, 2015, 5:26:50 AM8/17/15
to jenkins...@googlegroups.com
Hi,

I suggest that you turn on more logging as described on the wiki - then observe the two values priority and weight and how they change with different settings.

Weight is the value that is used for sorting the queue. In Absolute mode the priority and the weight will be the same but this is not true for fair queueing where each priority is treated as a "bucket", the algorithm will try to distribute resources evenly over the different buckets/priorities.

This basically means that, given that we have three priorities, the sorter will run one jobs from priority one, then one job from priority two, then one from priority three, repeat from priority one.

In weighted mode it will give more resources to higher priorities so that it will (not really but almost), run three jobs from priority one, then two jobs from priority two, then one job from priority three, repeat from priority one.

In both cases the ordering within each bucket will be in the natural order, i.e in the order the jobs enter the queue.

Regards,
/Magnus

--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/16ee9824-b79d-43e7-87ac-eae3e7e15eaf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages