Bacula-users

Re: [Bacula-users] jobs getting canceled. again.

2008-05-27 09:21:04
Subject: Re: [Bacula-users] jobs getting canceled. again.
From: Tore Anderson <tore AT linpro DOT no>
To: Alan Brown <ajb2 AT mssl.ucl.ac DOT uk>
Date: Tue, 27 May 2008 15:20:45 +0200
* Alan Brown

> Jobs with differing priorities can't run concurrently.
> 
> Jobs with higher priorities won't usurp currently running jobs, but
> they will slot in the queue immediately behind the running ones and
> all other queued jobs will have to wait for those higher priority
> jobs to finish.

Hmm.  This explains the strange behaviour I've been seeing, I think...

A normal backup run here queues up about 150 jobs, and I'm running 10
concurrent ones.  I want to be able to at a later point start a higher
priority job (e.g. a restore, or a job which have to start later in the
night because it has a narrower backup window) which will go to the
front of the line and always get the first one of the 10 slots that
frees up.  However, when I do this it first waits for _all_ the 10 jobs
to finish¹, then the higher-priority job runs alone (during this backup
throughput is severily impacted), and after it has finished 10 new jobs
are dequeued.

[1] It actually says that it's waiting for jobs with _higher_ priority
to finish, which is incorrect;  the jobs running all have a _lower_
priority than the job waiting first in line.

I thought the priority would only control how a job would sort in the
queue while waiting for a storage definition or tape drive to become
available, but I guess I was mistaken.  If I start a restore job I want
it to be processed ASAP (ie. only wait until the first running job has
finished, not all of them), to be the first one to grab the tape drive
if several jobs are waiting for it, and also to not impact the overall
backup performance more than necessary (let the other nine jobs keep
running and allow new jobs to start).  Is this possible?

Regards,
-- 
Tore Anderson

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users