Mailinglist Archive: opensuse-buildservice (245 mails)

< Previous Next >
Re: [opensuse-buildservice] Dispatcher optimization
  • From: Anas Nashif <nashif@xxxxxxxxxxxxxxx>
  • Date: Mon, 4 Oct 2010 14:08:51 +0100
  • Message-id: <1C24E00E-0F85-4A7B-98E3-F15BBDDFD052@xxxxxxxxxxxxxxx>
Hi,

On 2010-10-04, at 2:00 PM, Michael Schroeder wrote:

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,

bias? :)

'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.



Great, thanks. IMO this should go into the config template and in some README
somewhere :-)

Anas

Cheers,
Michael.

--
Michael Schroeder mls@xxxxxxx
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@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups