[opensuse-buildservice] Priorities ?
Could someone please outline an understandable configuration of how to prioritize (dispatching) builds for certain repositories ? (i.e. I would like to give priority to builds for openSUSE 12.1 on Packman) Thanks! cheers -- -o) Pascal Bleser /\\ http://opensuse.org -- we haz green _\_v http://fosdem.org -- we haz conf
Am Mittwoch, 2. November 2011, 18:18:54 schrieb Pascal Bleser:
Could someone please outline an understandable configuration of how to prioritize (dispatching) builds for certain repositories ? (i.e. I would like to give priority to builds for openSUSE 12.1 on Packman)
http://lizards.opensuse.org/2010/12/16/how-we-use-our-power/ tries to summarizes all the different input variables the dispatcher collects. For your use case I suggest, to use our $dispatch_adjust = [ '.*/openSUSE_12.1' => +10 ]; This will ignore the load of openSUSE_12.1 repos by a factor of exp(-$scale * (log(10.)/10.)) - don't ask me why log(10.) is written so complicated in the code ;) You can play around with other values. Or check osc api /build/_dispatchprios, at that URL you can also POST similiar XML. Possibly only direct to the backend though. Greetings, Stephan -- Sent from openSUSE -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On 2011-11-02 21:40:34 (+0100), Stephan Kulow
Am Mittwoch, 2. November 2011, 18:18:54 schrieb Pascal Bleser:
Could someone please outline an understandable configuration of how to prioritize (dispatching) builds for certain repositories ? (i.e. I would like to give priority to builds for openSUSE 12.1 on Packman)
http://lizards.opensuse.org/2010/12/16/how-we-use-our-power/ tries to summarizes all the different input variables the dispatcher collects.
For your use case I suggest, to use our $dispatch_adjust = [ '.*/openSUSE_12.1' => +10 ];
This will ignore the load of openSUSE_12.1 repos by a factor of exp(-$scale * (log(10.)/10.)) - don't ask me why log(10.) is written so complicated in the code ;)
You can play around with other values. Or check osc api /build/_dispatchprios, at that URL you can also POST similiar XML. Possibly only direct to the backend though.
Thank you, that helps a lot :) To be complete, the osc commands to change those settings ("live") are: * osc api build/_dispatchprios to query the current settings, which gives an XML document, e.g. like this: <dispatchprios> <prio project="mozilla" repository="openSUSE_11.4" adjust="10" /> ... </dispatchprios> * to change the settings, fetch that XML document or create a new one, e.g.: $ osc api build/_dispatchprios > prios.xml $ vim prios.xml $ osc api -X PUT -T ./prios.xml build/_dispatchprios cheers -- -o) Pascal Bleser /\\ http://opensuse.org -- we haz green _\_v http://fosdem.org -- we haz conf
participants (2)
-
Pascal Bleser
-
Stephan Kulow