
On Mon, Oct 04, 2010 at 01:37:08PM +0100, Anas Nashif wrote:
Having the dispatcher as the topic, what exactly is the
dispatch_adjust
variable and how can it be configured in BSConfig?
Ours looks like this: our $dispatch_adjust = [ 'openSUSE:Tools' => +10, 'openSUSE:Factory' => +10, 'openSUSE:11.1' => +5, 'openSUSE:11.2' => +5, 'openSUSE:11.3' => +5, 'zypp:' => +5, 'YaST:' => +5, 'home:' => -5, 'Ports:' => -10, ]; Syntax is: project_repository_arch_regexp => adjust The regexp is anchored on the left. Adjust is the priority adjustmant in decibel, i.e. 10 means "build me ten times as often". All entries in dispatch_adjust are matched, if there are multiple matches the adjustments get summed. (Thus the order of the dispatch_adjust entries does not matter.) Note there is also the "$jobsdir/dispatchprios" file, which can be read/written by the source server through /build/_dispatchprios The XML looks like: <dispatchprios> <prio project="ppp" repository="xxx" arch="yyy" adjust="num" /> </dispatchprios> project/repository/arch are optional attributes. They don't support regexp/globbing, only exact string matching. Coolo uses this to adjust the priorities so that projects that are downloaded often get a higher priority. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org