Bacula-users

Re: [Bacula-users] Maximum Concurrent Jobs in job definition

2010-03-12 02:03:17
Subject: Re: [Bacula-users] Maximum Concurrent Jobs in job definition
From: Silver Salonen <silver AT ultrasoft DOT ee>
To: bacula-users AT lists.sourceforge DOT net
Date: Fri, 12 Mar 2010 09:00:10 +0200
Hi.

Did it work like it should in Bacula 3.0?

-- 
Silver

On Friday 12 March 2010 02:21:13 Norberto Meijome wrote:
> Anyone?
> 
> btw, it is 5.0 , on Centos 5.4 64bit
> _________________________
> {Beto|Norberto|Numard} Meijome
> 
> "The only people that never change are the stupid and the dead"
>  Jorge Luis Borges.
> 
> I speak for myself, not my employer. Contents may be hot. Slippery when wet.
> Reading disclaimers makes you go blind. Writing them is worse. You have been
> Warned.
> 
> 
> On 11 March 2010 13:40, Norberto Meijome <numardbsd AT gmail DOT com> wrote:
> 
> > Hi everyone,
> > I have a job that runs very frequently, and successive runs take different
> > sets of data (as determined by a pre-job script). To avoid problems, my
> > pre-job script sets a lock file and the post-clears it.
> >
> > When I configure my director for concurrent jobs = 2, i sometimes get 2 of
> > these jobs trying to run in parallel (which is understandable, many times 
a
> > run has more data than the average and is still running while the next one
> > is due). My pre-script will then cancel the execution of the 2nd script
> > (because it finds the lock file). Great.
> >
> > Of course, this is generating a bunch of (expected) errored jobs . I read
> > in the documentaiton [1]  that I can use "Maximum Concurrent Jobs" in the
> > Job def, to determine how many of this jobs can start in parallel. So I 
set
> > this to 1 [2]
> >
> > But it has no effect . I get 2 jobs running in parallel (for a short 
while,
> > until the pre-script kills it). If I change the director's Max Concurrent
> > Jobs to 1, then it's forced to 1 (but i need more than one, as I as have
> > spooling enabled and other jobs writing to the tape too..)
> >
> > What is going on ?
> >
> > TIA!
> > B
> > _________________________
> > {Beto|Norberto|Numard} Meijome
> >
> > "The only people that never change are the stupid and the dead"
> >  Jorge Luis Borges.
> >
> > I speak for myself, not my employer. Contents may be hot. Slippery when
> > wet.
> > Reading disclaimers makes you go blind. Writing them is worse. You have
> > been
> > Warned.
> >
> > [1]
> > http://bacula.org/5.0.x-
manuals/en/main/main/Configuring_Director.html#SECTION001730000000000000000, 
way down...
> >
> > [2]
> > [...]
> > Job {
> >   Name = "assetBackups"
> >   JobDefs = "DefaultJob"
> >   Level = Full
> >   FileSet="publishedAssetsSet"
> >   Messages = Standard
> >   Pool = "productionPool"
> >   Storage = "berthaTape"
> >   Schedule = "PublishedAssetsSchedule"
> >   Write Bootstrap = "/var/lib/bacula/%n.bsr"
> >   Priority = 10
> >   Accurate = yes
> >   Spool Data = yes
> >   # We only want one instance of this job running @ the same time.
> >   # enforced (errors out) in the apb_run.sh
> >   Maximum Concurrent Jobs = 1
> >   # This the list of asset versions to be backed up. The parameter passed
> > is the number of versions to include in this run
> >   RunBeforeJob = "/etc/bacula/backupFilelist/apb_run.sh 400"
> >   # This moves the current list out of the way and updates the offset
> >   # parameters passed are the jobId and the jobStatus
> >   RunAfterJob  = "/etc/bacula/backupFilelist/apb_post.sh %i %e"
> > }
> > [...]

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users