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 2015-07-10 16:47 GMT+02:00 ambrose nikale <[email protected]>: > 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. > > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/16ee9824-b79d-43e7-87ac-eae3e7e15eaf%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/16ee9824-b79d-43e7-87ac-eae3e7e15eaf%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAMHD1X%2BJa17Ar0Jwbf9R-XMWUO7Ybo_0phPoVu0nB-P2h8FOGw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
